@yoast/ai-insights-client 1.4.128 → 1.4.129

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.
@@ -34,25 +34,25 @@ function Eb() {
34
34
  const p = new a(), m = y.length;
35
35
  if (m < 2)
36
36
  return p;
37
- const v = (f == null ? void 0 : f.decode) || c;
38
- let g = 0;
37
+ const g = (f == null ? void 0 : f.decode) || c;
38
+ let v = 0;
39
39
  do {
40
- const S = y.indexOf("=", g);
40
+ const S = y.indexOf("=", v);
41
41
  if (S === -1)
42
42
  break;
43
- const O = y.indexOf(";", g), k = O === -1 ? m : O;
43
+ const E = y.indexOf(";", v), k = E === -1 ? m : E;
44
44
  if (S > k) {
45
- g = y.lastIndexOf(";", S - 1) + 1;
45
+ v = y.lastIndexOf(";", S - 1) + 1;
46
46
  continue;
47
47
  }
48
- const C = o(y, g, S), b = l(y, S, C), A = y.slice(C, b);
48
+ const C = o(y, v, S), b = l(y, S, C), A = y.slice(C, b);
49
49
  if (p[A] === void 0) {
50
50
  let x = o(y, S + 1, k), L = l(y, k, x);
51
- const B = v(y.slice(x, L));
51
+ const B = g(y.slice(x, L));
52
52
  p[A] = B;
53
53
  }
54
- g = k + 1;
55
- } while (g < m);
54
+ v = k + 1;
55
+ } while (v < m);
56
56
  return p;
57
57
  }
58
58
  function o(y, f, p) {
@@ -75,42 +75,42 @@ function Eb() {
75
75
  const m = (p == null ? void 0 : p.encode) || encodeURIComponent;
76
76
  if (!t.test(y))
77
77
  throw new TypeError(`argument name is invalid: ${y}`);
78
- const v = m(f);
79
- if (!e.test(v))
78
+ const g = m(f);
79
+ if (!e.test(g))
80
80
  throw new TypeError(`argument val is invalid: ${f}`);
81
- let g = y + "=" + v;
81
+ let v = y + "=" + g;
82
82
  if (!p)
83
- return g;
83
+ return v;
84
84
  if (p.maxAge !== void 0) {
85
85
  if (!Number.isInteger(p.maxAge))
86
86
  throw new TypeError(`option maxAge is invalid: ${p.maxAge}`);
87
- g += "; Max-Age=" + p.maxAge;
87
+ v += "; Max-Age=" + p.maxAge;
88
88
  }
89
89
  if (p.domain) {
90
90
  if (!n.test(p.domain))
91
91
  throw new TypeError(`option domain is invalid: ${p.domain}`);
92
- g += "; Domain=" + p.domain;
92
+ v += "; Domain=" + p.domain;
93
93
  }
94
94
  if (p.path) {
95
95
  if (!r.test(p.path))
96
96
  throw new TypeError(`option path is invalid: ${p.path}`);
97
- g += "; Path=" + p.path;
97
+ v += "; Path=" + p.path;
98
98
  }
99
99
  if (p.expires) {
100
100
  if (!d(p.expires) || !Number.isFinite(p.expires.valueOf()))
101
101
  throw new TypeError(`option expires is invalid: ${p.expires}`);
102
- g += "; Expires=" + p.expires.toUTCString();
102
+ v += "; Expires=" + p.expires.toUTCString();
103
103
  }
104
- if (p.httpOnly && (g += "; HttpOnly"), p.secure && (g += "; Secure"), p.partitioned && (g += "; Partitioned"), p.priority)
104
+ if (p.httpOnly && (v += "; HttpOnly"), p.secure && (v += "; Secure"), p.partitioned && (v += "; Partitioned"), p.priority)
105
105
  switch (typeof p.priority == "string" ? p.priority.toLowerCase() : void 0) {
106
106
  case "low":
107
- g += "; Priority=Low";
107
+ v += "; Priority=Low";
108
108
  break;
109
109
  case "medium":
110
- g += "; Priority=Medium";
110
+ v += "; Priority=Medium";
111
111
  break;
112
112
  case "high":
113
- g += "; Priority=High";
113
+ v += "; Priority=High";
114
114
  break;
115
115
  default:
116
116
  throw new TypeError(`option priority is invalid: ${p.priority}`);
@@ -119,18 +119,18 @@ function Eb() {
119
119
  switch (typeof p.sameSite == "string" ? p.sameSite.toLowerCase() : p.sameSite) {
120
120
  case !0:
121
121
  case "strict":
122
- g += "; SameSite=Strict";
122
+ v += "; SameSite=Strict";
123
123
  break;
124
124
  case "lax":
125
- g += "; SameSite=Lax";
125
+ v += "; SameSite=Lax";
126
126
  break;
127
127
  case "none":
128
- g += "; SameSite=None";
128
+ v += "; SameSite=None";
129
129
  break;
130
130
  default:
131
131
  throw new TypeError(`option sameSite is invalid: ${p.sameSite}`);
132
132
  }
133
- return g;
133
+ return v;
134
134
  }
135
135
  function c(y) {
136
136
  if (y.indexOf("%") === -1)
@@ -166,18 +166,18 @@ function Ob(t = {}) {
166
166
  return i[a];
167
167
  }
168
168
  function c(f, p = null, m) {
169
- let v = Tb(
169
+ let g = Tb(
170
170
  i ? u().pathname : "/",
171
171
  f,
172
172
  p,
173
173
  m
174
174
  );
175
175
  return xn(
176
- v.pathname.charAt(0) === "/",
176
+ g.pathname.charAt(0) === "/",
177
177
  `relative pathnames are not supported in memory history: ${JSON.stringify(
178
178
  f
179
179
  )}`
180
- ), v;
180
+ ), g;
181
181
  }
182
182
  function d(f) {
183
183
  return typeof f == "string" ? f : zo(f);
@@ -667,7 +667,7 @@ function n2(t, e) {
667
667
  return i0(t, e);
668
668
  }
669
669
  function i0(t, e, n, r) {
670
- var g;
670
+ var v;
671
671
  $e(
672
672
  Ii(),
673
673
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -689,7 +689,7 @@ Please change the parent <Route path="${S}"> to <Route path="${S === "/" ? "*" :
689
689
  if (e) {
690
690
  let S = typeof e == "string" ? Ti(e) : e;
691
691
  $e(
692
- u === "/" || ((g = S.pathname) == null ? void 0 : g.startsWith(u)),
692
+ u === "/" || ((v = S.pathname) == null ? void 0 : v.startsWith(u)),
693
693
  `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${S.pathname}" was given in the \`location\` prop.`
694
694
  ), y = S;
695
695
  } else
@@ -707,7 +707,7 @@ Please change the parent <Route path="${S}"> to <Route path="${S === "/" ? "*" :
707
707
  m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0,
708
708
  `Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
709
709
  );
710
- let v = o2(
710
+ let g = o2(
711
711
  m && m.map(
712
712
  (S) => Object.assign({}, S, {
713
713
  params: Object.assign({}, o, S.params),
@@ -727,7 +727,7 @@ Please change the parent <Route path="${S}"> to <Route path="${S === "/" ? "*" :
727
727
  n,
728
728
  r
729
729
  );
730
- return e && v ? /* @__PURE__ */ M.createElement(
730
+ return e && g ? /* @__PURE__ */ M.createElement(
731
731
  Ds.Provider,
732
732
  {
733
733
  value: {
@@ -743,8 +743,8 @@ Please change the parent <Route path="${S}"> to <Route path="${S === "/" ? "*" :
743
743
  /* Pop */
744
744
  }
745
745
  },
746
- v
747
- ) : v;
746
+ g
747
+ ) : g;
748
748
  }
749
749
  function r2() {
750
750
  let t = f2(), e = Vb(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), n = t instanceof Error ? t.stack : null, r = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: r }, a = { padding: "2px 4px", backgroundColor: r }, s = null;
@@ -841,9 +841,9 @@ function o2(t, e = [], n = null, r = null) {
841
841
  !1,
842
842
  "No `HydrateFallback` element provided to render during initial hydration"
843
843
  ), y = !0, p = null) : o === c && (y = !0, p = u.route.hydrateFallbackElement || null)));
844
- let m = e.concat(i.slice(0, c + 1)), v = () => {
845
- let g;
846
- return d ? g = f : y ? g = p : u.route.Component ? g = /* @__PURE__ */ M.createElement(u.route.Component, null) : u.route.element ? g = u.route.element : g = l, /* @__PURE__ */ M.createElement(
844
+ let m = e.concat(i.slice(0, c + 1)), g = () => {
845
+ let v;
846
+ return d ? v = f : y ? v = p : u.route.Component ? v = /* @__PURE__ */ M.createElement(u.route.Component, null) : u.route.element ? v = u.route.element : v = l, /* @__PURE__ */ M.createElement(
847
847
  s2,
848
848
  {
849
849
  match: u,
@@ -852,7 +852,7 @@ function o2(t, e = [], n = null, r = null) {
852
852
  matches: m,
853
853
  isDataRoute: n != null
854
854
  },
855
- children: g
855
+ children: v
856
856
  }
857
857
  );
858
858
  };
@@ -863,10 +863,10 @@ function o2(t, e = [], n = null, r = null) {
863
863
  revalidation: n.revalidation,
864
864
  component: f,
865
865
  error: d,
866
- children: v(),
866
+ children: g(),
867
867
  routeContext: { outlet: null, matches: m, isDataRoute: !0 }
868
868
  }
869
- ) : v();
869
+ ) : g();
870
870
  }, null);
871
871
  }
872
872
  function od(t) {
@@ -1316,13 +1316,13 @@ function D2(t, e) {
1316
1316
  let n = M.useContext(cd), [r, i] = M.useState(!1), [a, s] = M.useState(!1), { onFocus: o, onBlur: l, onMouseEnter: u, onMouseLeave: c, onTouchStart: d } = e, y = M.useRef(null);
1317
1317
  M.useEffect(() => {
1318
1318
  if (t === "render" && s(!0), t === "viewport") {
1319
- let m = (g) => {
1320
- g.forEach((S) => {
1319
+ let m = (v) => {
1320
+ v.forEach((S) => {
1321
1321
  s(S.isIntersecting);
1322
1322
  });
1323
- }, v = new IntersectionObserver(m, { threshold: 0.5 });
1324
- return y.current && v.observe(y.current), () => {
1325
- v.disconnect();
1323
+ }, g = new IntersectionObserver(m, { threshold: 0.5 });
1324
+ return y.current && g.observe(y.current), () => {
1325
+ g.disconnect();
1326
1326
  };
1327
1327
  }
1328
1328
  }, [t]), M.useEffect(() => {
@@ -1409,17 +1409,17 @@ function F2({
1409
1409
  if (t === r.pathname + r.search + r.hash)
1410
1410
  return [];
1411
1411
  let p = /* @__PURE__ */ new Set(), m = !1;
1412
- if (e.forEach((g) => {
1413
- var O;
1414
- let S = i.routes[g.route.id];
1415
- !S || !S.hasLoader || (!u.some((k) => k.route.id === g.route.id) && g.route.id in o && ((O = a[g.route.id]) != null && O.shouldRevalidate) || S.hasClientLoader ? m = !0 : p.add(g.route.id));
1412
+ if (e.forEach((v) => {
1413
+ var E;
1414
+ let S = i.routes[v.route.id];
1415
+ !S || !S.hasLoader || (!u.some((k) => k.route.id === v.route.id) && v.route.id in o && ((E = a[v.route.id]) != null && E.shouldRevalidate) || S.hasClientLoader ? m = !0 : p.add(v.route.id));
1416
1416
  }), p.size === 0)
1417
1417
  return [];
1418
- let v = _2(t, s);
1419
- return m && p.size > 0 && v.searchParams.set(
1418
+ let g = _2(t, s);
1419
+ return m && p.size > 0 && g.searchParams.set(
1420
1420
  "_routes",
1421
- e.filter((g) => p.has(g.route.id)).map((g) => g.route.id).join(",")
1422
- ), [v.pathname + v.search];
1421
+ e.filter((v) => p.has(v.route.id)).map((v) => v.route.id).join(",")
1422
+ ), [g.pathname + g.search];
1423
1423
  }, [
1424
1424
  s,
1425
1425
  o,
@@ -1466,18 +1466,18 @@ var u0 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, wn = M.forwardRef(
1466
1466
  viewTransition: d,
1467
1467
  ...y
1468
1468
  }, f) {
1469
- let { basename: p } = M.useContext(Ln), m = typeof u == "string" && u0.test(u), v, g = !1;
1470
- if (typeof u == "string" && m && (v = u, l0))
1469
+ let { basename: p } = M.useContext(Ln), m = typeof u == "string" && u0.test(u), g, v = !1;
1470
+ if (typeof u == "string" && m && (g = u, l0))
1471
1471
  try {
1472
1472
  let L = new URL(window.location.href), B = u.startsWith("//") ? new URL(L.protocol + u) : new URL(u), _ = wr(B.pathname, p);
1473
- B.origin === L.origin && _ != null ? u = _ + B.search + B.hash : g = !0;
1473
+ B.origin === L.origin && _ != null ? u = _ + B.search + B.hash : v = !0;
1474
1474
  } catch (L) {
1475
1475
  xn(
1476
1476
  !1,
1477
1477
  `<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1478
1478
  );
1479
1479
  }
1480
- let S = Zb(u, { relative: i }), [O, k, C] = D2(
1480
+ let S = Zb(u, { relative: i }), [E, k, C] = D2(
1481
1481
  r,
1482
1482
  y
1483
1483
  ), b = W2(u, {
@@ -1498,15 +1498,15 @@ var u0 = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, wn = M.forwardRef(
1498
1498
  {
1499
1499
  ...y,
1500
1500
  ...C,
1501
- href: v || S,
1502
- onClick: g || a ? e : A,
1501
+ href: g || S,
1502
+ onClick: v || a ? e : A,
1503
1503
  ref: z2(f, k),
1504
1504
  target: l,
1505
1505
  "data-discover": !m && n === "render" ? "true" : void 0
1506
1506
  }
1507
1507
  )
1508
1508
  );
1509
- return O && !m ? /* @__PURE__ */ M.createElement(M.Fragment, null, x, /* @__PURE__ */ M.createElement(B2, { page: S })) : x;
1509
+ return E && !m ? /* @__PURE__ */ M.createElement(M.Fragment, null, x, /* @__PURE__ */ M.createElement(B2, { page: S })) : x;
1510
1510
  }
1511
1511
  );
1512
1512
  wn.displayName = "Link";
@@ -1522,21 +1522,21 @@ var U2 = M.forwardRef(
1522
1522
  children: l,
1523
1523
  ...u
1524
1524
  }, c) {
1525
- let d = Bs(s, { relative: u.relative }), y = Lt(), f = M.useContext(fl), { navigator: p, basename: m } = M.useContext(Ln), v = f != null && // Conditional usage is OK here because the usage of a data router is static
1525
+ let d = Bs(s, { relative: u.relative }), y = Lt(), f = M.useContext(fl), { navigator: p, basename: m } = M.useContext(Ln), g = f != null && // Conditional usage is OK here because the usage of a data router is static
1526
1526
  // eslint-disable-next-line react-hooks/rules-of-hooks
1527
- K2(d) && o === !0, g = p.encodeLocation ? p.encodeLocation(d).pathname : d.pathname, S = y.pathname, O = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
1528
- n || (S = S.toLowerCase(), O = O ? O.toLowerCase() : null, g = g.toLowerCase()), O && m && (O = wr(O, m) || O);
1529
- const k = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length;
1530
- let C = S === g || !i && S.startsWith(g) && S.charAt(k) === "/", b = O != null && (O === g || !i && O.startsWith(g) && O.charAt(g.length) === "/"), A = {
1527
+ K2(d) && o === !0, v = p.encodeLocation ? p.encodeLocation(d).pathname : d.pathname, S = y.pathname, E = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
1528
+ n || (S = S.toLowerCase(), E = E ? E.toLowerCase() : null, v = v.toLowerCase()), E && m && (E = wr(E, m) || E);
1529
+ const k = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
1530
+ let C = S === v || !i && S.startsWith(v) && S.charAt(k) === "/", b = E != null && (E === v || !i && E.startsWith(v) && E.charAt(v.length) === "/"), A = {
1531
1531
  isActive: C,
1532
1532
  isPending: b,
1533
- isTransitioning: v
1533
+ isTransitioning: g
1534
1534
  }, x = C ? e : void 0, L;
1535
1535
  typeof r == "function" ? L = r(A) : L = [
1536
1536
  r,
1537
1537
  C ? "active" : null,
1538
1538
  b ? "pending" : null,
1539
- v ? "transitioning" : null
1539
+ g ? "transitioning" : null
1540
1540
  ].filter(Boolean).join(" ");
1541
1541
  let B = typeof a == "function" ? a(A) : a;
1542
1542
  return /* @__PURE__ */ M.createElement(
@@ -1571,11 +1571,11 @@ var H2 = M.forwardRef(
1571
1571
  viewTransition: d,
1572
1572
  ...y
1573
1573
  }, f) => {
1574
- let p = Y2(), m = V2(o, { relative: u }), v = s.toLowerCase() === "get" ? "get" : "post", g = typeof o == "string" && u0.test(o), S = (O) => {
1575
- if (l && l(O), O.defaultPrevented) return;
1576
- O.preventDefault();
1577
- let k = O.nativeEvent.submitter, C = (k == null ? void 0 : k.getAttribute("formmethod")) || s;
1578
- p(k || O.currentTarget, {
1574
+ let p = Y2(), m = V2(o, { relative: u }), g = s.toLowerCase() === "get" ? "get" : "post", v = typeof o == "string" && u0.test(o), S = (E) => {
1575
+ if (l && l(E), E.defaultPrevented) return;
1576
+ E.preventDefault();
1577
+ let k = E.nativeEvent.submitter, C = (k == null ? void 0 : k.getAttribute("formmethod")) || s;
1578
+ p(k || E.currentTarget, {
1579
1579
  fetcherKey: e,
1580
1580
  method: C,
1581
1581
  navigate: n,
@@ -1590,11 +1590,11 @@ var H2 = M.forwardRef(
1590
1590
  "form",
1591
1591
  {
1592
1592
  ref: f,
1593
- method: v,
1593
+ method: g,
1594
1594
  action: m,
1595
1595
  onSubmit: r ? l : S,
1596
1596
  ...y,
1597
- "data-discover": !g && t === "render" ? "true" : void 0
1597
+ "data-discover": !v && t === "render" ? "true" : void 0
1598
1598
  }
1599
1599
  );
1600
1600
  }
@@ -2103,10 +2103,10 @@ var Vu = class extends Error {
2103
2103
  function p0(t) {
2104
2104
  let e = !1, n = 0, r;
2105
2105
  const i = Yu(), a = () => i.status !== "pending", s = (m) => {
2106
- var v;
2106
+ var g;
2107
2107
  if (!a()) {
2108
- const g = new Vu(m);
2109
- y(g), (v = t.onCancel) == null || v.call(t, g);
2108
+ const v = new Vu(m);
2109
+ y(v), (g = t.onCancel) == null || g.call(t, v);
2110
2110
  }
2111
2111
  }, o = () => {
2112
2112
  e = !0;
@@ -2117,10 +2117,10 @@ function p0(t) {
2117
2117
  }, y = (m) => {
2118
2118
  a() || (r == null || r(), i.reject(m));
2119
2119
  }, f = () => new Promise((m) => {
2120
- var v;
2121
- r = (g) => {
2122
- (a() || u()) && m(g);
2123
- }, (v = t.onPause) == null || v.call(t);
2120
+ var g;
2121
+ r = (v) => {
2122
+ (a() || u()) && m(v);
2123
+ }, (g = t.onPause) == null || g.call(t);
2124
2124
  }).then(() => {
2125
2125
  var m;
2126
2126
  r = void 0, a() || (m = t.onContinue) == null || m.call(t);
@@ -2128,23 +2128,23 @@ function p0(t) {
2128
2128
  if (a())
2129
2129
  return;
2130
2130
  let m;
2131
- const v = n === 0 ? t.initialPromise : void 0;
2131
+ const g = n === 0 ? t.initialPromise : void 0;
2132
2132
  try {
2133
- m = v != null ? v : t.fn();
2134
- } catch (g) {
2135
- m = Promise.reject(g);
2133
+ m = g != null ? g : t.fn();
2134
+ } catch (v) {
2135
+ m = Promise.reject(v);
2136
2136
  }
2137
- Promise.resolve(m).then(d).catch((g) => {
2137
+ Promise.resolve(m).then(d).catch((v) => {
2138
2138
  var b, A, x;
2139
2139
  if (a())
2140
2140
  return;
2141
- const S = (b = t.retry) != null ? b : Ai ? 0 : 3, O = (A = t.retryDelay) != null ? A : l1, k = typeof O == "function" ? O(n, g) : O, C = S === !0 || typeof S == "number" && n < S || typeof S == "function" && S(n, g);
2141
+ const S = (b = t.retry) != null ? b : Ai ? 0 : 3, E = (A = t.retryDelay) != null ? A : l1, k = typeof E == "function" ? E(n, v) : E, C = S === !0 || typeof S == "number" && n < S || typeof S == "function" && S(n, v);
2142
2142
  if (e || !C) {
2143
- y(g);
2143
+ y(v);
2144
2144
  return;
2145
2145
  }
2146
- n++, (x = t.onFail) == null || x.call(t, n, g), t1(k).then(() => u() ? void 0 : f()).then(() => {
2147
- e ? y(g) : p();
2146
+ n++, (x = t.onFail) == null || x.call(t, n, v), t1(k).then(() => u() ? void 0 : f()).then(() => {
2147
+ e ? y(v) : p();
2148
2148
  });
2149
2149
  });
2150
2150
  };
@@ -2280,7 +2280,7 @@ var di, Fm, m0 = (Fm = class {
2280
2280
  this.state.isInvalidated || Ee(this, On, lr).call(this, { type: "invalidate" });
2281
2281
  }
2282
2282
  async fetch(e, n) {
2283
- var l, u, c, d, y, f, p, m, v, g, S, O;
2283
+ var l, u, c, d, y, f, p, m, g, v, S, E;
2284
2284
  if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
2285
2285
  // re-start the fetch; there is a chance that the query is still in a
2286
2286
  // pending state when that happens
@@ -2375,11 +2375,11 @@ var di, Fm, m0 = (Fm = class {
2375
2375
  throw Ee(this, On, lr).call(this, {
2376
2376
  type: "error",
2377
2377
  error: k
2378
- }), (g = (v = j(this, pn).config).onError) == null || g.call(
2379
- v,
2378
+ }), (v = (g = j(this, pn).config).onError) == null || v.call(
2379
+ g,
2380
2380
  k,
2381
2381
  this
2382
- ), (O = (S = j(this, pn).config).onSettled) == null || O.call(
2382
+ ), (E = (S = j(this, pn).config).onSettled) == null || E.call(
2383
2383
  S,
2384
2384
  this.state.data,
2385
2385
  k,
@@ -2608,21 +2608,21 @@ var Bt, Ie, Ns, Pt, pi, ea, fr, Lr, Ls, ta, na, mi, gi, Mr, ra, Fe, Ga, Ku, Xu,
2608
2608
  ...g0(c.data, e.options)
2609
2609
  }), n._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
2610
2610
  }
2611
- let { error: p, errorUpdatedAt: m, status: v } = d;
2611
+ let { error: p, errorUpdatedAt: m, status: g } = d;
2612
2612
  f = d.data;
2613
- let g = !1;
2614
- if (n.placeholderData !== void 0 && f === void 0 && v === "pending") {
2613
+ let v = !1;
2614
+ if (n.placeholderData !== void 0 && f === void 0 && g === "pending") {
2615
2615
  let B;
2616
- a != null && a.isPlaceholderData && n.placeholderData === (o == null ? void 0 : o.placeholderData) ? (B = a.data, g = !0) : B = typeof n.placeholderData == "function" ? n.placeholderData(
2616
+ a != null && a.isPlaceholderData && n.placeholderData === (o == null ? void 0 : o.placeholderData) ? (B = a.data, v = !0) : B = typeof n.placeholderData == "function" ? n.placeholderData(
2617
2617
  (L = j(this, na)) == null ? void 0 : L.state.data,
2618
2618
  j(this, na)
2619
- ) : n.placeholderData, B !== void 0 && (v = "success", f = Qu(
2619
+ ) : n.placeholderData, B !== void 0 && (g = "success", f = Qu(
2620
2620
  a == null ? void 0 : a.data,
2621
2621
  B,
2622
2622
  n
2623
2623
  ), y = !0);
2624
2624
  }
2625
- if (n.select && f !== void 0 && !g)
2625
+ if (n.select && f !== void 0 && !v)
2626
2626
  if (a && f === (s == null ? void 0 : s.data) && n.select === j(this, Ls))
2627
2627
  f = j(this, ta);
2628
2628
  else
@@ -2631,12 +2631,12 @@ var Bt, Ie, Ns, Pt, pi, ea, fr, Lr, Ls, ta, na, mi, gi, Mr, ra, Fe, Ga, Ku, Xu,
2631
2631
  } catch (B) {
2632
2632
  $(this, Lr, B);
2633
2633
  }
2634
- j(this, Lr) && (p = j(this, Lr), f = j(this, ta), m = Date.now(), v = "error");
2635
- const S = d.fetchStatus === "fetching", O = v === "pending", k = v === "error", C = O && S, b = f !== void 0, x = {
2636
- status: v,
2634
+ j(this, Lr) && (p = j(this, Lr), f = j(this, ta), m = Date.now(), g = "error");
2635
+ const S = d.fetchStatus === "fetching", E = g === "pending", k = g === "error", C = E && S, b = f !== void 0, x = {
2636
+ status: g,
2637
2637
  fetchStatus: d.fetchStatus,
2638
- isPending: O,
2639
- isSuccess: v === "success",
2638
+ isPending: E,
2639
+ isSuccess: g === "success",
2640
2640
  isError: k,
2641
2641
  isInitialLoading: C,
2642
2642
  isLoading: C,
@@ -2650,7 +2650,7 @@ var Bt, Ie, Ns, Pt, pi, ea, fr, Lr, Ls, ta, na, mi, gi, Mr, ra, Fe, Ga, Ku, Xu,
2650
2650
  isFetched: d.dataUpdateCount > 0 || d.errorUpdateCount > 0,
2651
2651
  isFetchedAfterMount: d.dataUpdateCount > u.dataUpdateCount || d.errorUpdateCount > u.errorUpdateCount,
2652
2652
  isFetching: S,
2653
- isRefetching: S && !O,
2653
+ isRefetching: S && !E,
2654
2654
  isLoadingError: k && !b,
2655
2655
  isPaused: d.fetchStatus === "paused",
2656
2656
  isPlaceholderData: y,
@@ -2782,16 +2782,16 @@ function gf(t) {
2782
2782
  const r = e.options, i = (y = (d = (c = e.fetchOptions) == null ? void 0 : c.meta) == null ? void 0 : d.fetchMore) == null ? void 0 : y.direction, a = ((f = e.state.data) == null ? void 0 : f.pages) || [], s = ((p = e.state.data) == null ? void 0 : p.pageParams) || [];
2783
2783
  let o = { pages: [], pageParams: [] }, l = 0;
2784
2784
  const u = async () => {
2785
- var O;
2785
+ var E;
2786
2786
  let m = !1;
2787
- const v = (k) => {
2787
+ const g = (k) => {
2788
2788
  Object.defineProperty(k, "signal", {
2789
2789
  enumerable: !0,
2790
2790
  get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
2791
2791
  m = !0;
2792
2792
  }), e.signal)
2793
2793
  });
2794
- }, g = f0(e.options, e.fetchOptions), S = async (k, C, b) => {
2794
+ }, v = f0(e.options, e.fetchOptions), S = async (k, C, b) => {
2795
2795
  if (m)
2796
2796
  return Promise.reject();
2797
2797
  if (C == null && k.pages.length)
@@ -2804,8 +2804,8 @@ function gf(t) {
2804
2804
  direction: b ? "backward" : "forward",
2805
2805
  meta: e.options.meta
2806
2806
  };
2807
- return v(N), N;
2808
- })(), L = await g(x), { maxPages: B } = e.options, _ = b ? r1 : n1;
2807
+ return g(N), N;
2808
+ })(), L = await v(x), { maxPages: B } = e.options, _ = b ? r1 : n1;
2809
2809
  return {
2810
2810
  pages: _(k.pages, L, B),
2811
2811
  pageParams: _(k.pageParams, C, B)
@@ -2820,7 +2820,7 @@ function gf(t) {
2820
2820
  } else {
2821
2821
  const k = t != null ? t : a.length;
2822
2822
  do {
2823
- const C = l === 0 ? (O = s[0]) != null ? O : r.initialPageParam : vf(r, o);
2823
+ const C = l === 0 ? (E = s[0]) != null ? E : r.initialPageParam : vf(r, o);
2824
2824
  if (l > 0 && C == null)
2825
2825
  break;
2826
2826
  o = await S(o, C), l++;
@@ -2829,8 +2829,8 @@ function gf(t) {
2829
2829
  return o;
2830
2830
  };
2831
2831
  e.options.persister ? e.fetchFn = () => {
2832
- var m, v;
2833
- return (v = (m = e.options).persister) == null ? void 0 : v.call(
2832
+ var m, g;
2833
+ return (g = (m = e.options).persister) == null ? void 0 : g.call(
2834
2834
  m,
2835
2835
  u,
2836
2836
  {
@@ -2899,7 +2899,7 @@ var Ms, Qn, Tt, vi, Yn, Pr, Hm, y1 = (Hm = class extends m0 {
2899
2899
  );
2900
2900
  }
2901
2901
  async execute(e) {
2902
- var s, o, l, u, c, d, y, f, p, m, v, g, S, O, k, C, b, A, x, L, B;
2902
+ var s, o, l, u, c, d, y, f, p, m, g, v, S, E, k, C, b, A, x, L, B;
2903
2903
  const n = () => {
2904
2904
  Ee(this, Yn, Pr).call(this, { type: "continue" });
2905
2905
  }, r = {
@@ -2958,7 +2958,7 @@ var Ms, Qn, Tt, vi, Yn, Pr, Hm, y1 = (Hm = class extends m0 {
2958
2958
  e,
2959
2959
  this.state.context,
2960
2960
  r
2961
- )), await ((v = (m = j(this, Tt).config).onSettled) == null ? void 0 : v.call(
2961
+ )), await ((g = (m = j(this, Tt).config).onSettled) == null ? void 0 : g.call(
2962
2962
  m,
2963
2963
  _,
2964
2964
  null,
@@ -2966,8 +2966,8 @@ var Ms, Qn, Tt, vi, Yn, Pr, Hm, y1 = (Hm = class extends m0 {
2966
2966
  this.state.context,
2967
2967
  this,
2968
2968
  r
2969
- )), await ((S = (g = this.options).onSettled) == null ? void 0 : S.call(
2970
- g,
2969
+ )), await ((S = (v = this.options).onSettled) == null ? void 0 : S.call(
2970
+ v,
2971
2971
  _,
2972
2972
  null,
2973
2973
  e,
@@ -2976,8 +2976,8 @@ var Ms, Qn, Tt, vi, Yn, Pr, Hm, y1 = (Hm = class extends m0 {
2976
2976
  )), Ee(this, Yn, Pr).call(this, { type: "success", data: _ }), _;
2977
2977
  } catch (_) {
2978
2978
  try {
2979
- throw await ((k = (O = j(this, Tt).config).onError) == null ? void 0 : k.call(
2980
- O,
2979
+ throw await ((k = (E = j(this, Tt).config).onError) == null ? void 0 : k.call(
2980
+ E,
2981
2981
  _,
2982
2982
  e,
2983
2983
  this.state.context,
@@ -3634,9 +3634,9 @@ function I1(t, e, n) {
3634
3634
  ), u = l.getOptimisticResult(s), c = !r && t.subscribed !== !1;
3635
3635
  if (M.useSyncExternalStore(
3636
3636
  M.useCallback(
3637
- (v) => {
3638
- const g = c ? l.subscribe(ut.batchCalls(v)) : It;
3639
- return l.updateResult(), g;
3637
+ (g) => {
3638
+ const v = c ? l.subscribe(ut.batchCalls(g)) : It;
3639
+ return l.updateResult(), v;
3640
3640
  },
3641
3641
  [l, c]
3642
3642
  ),
@@ -3659,14 +3659,14 @@ function I1(t, e, n) {
3659
3659
  s,
3660
3660
  u
3661
3661
  ), s.experimental_prefetchInRender && !Ai && P1(u, r)) {
3662
- const v = o ? (
3662
+ const g = o ? (
3663
3663
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
3664
3664
  bf(s, l, i)
3665
3665
  ) : (
3666
3666
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
3667
3667
  (m = a.getQueryCache().get(s.queryHash)) == null ? void 0 : m.promise
3668
3668
  );
3669
- v == null || v.catch(It).finally(() => {
3669
+ g == null || g.catch(It).finally(() => {
3670
3670
  l.updateResult();
3671
3671
  });
3672
3672
  }
@@ -4000,8 +4000,8 @@ function bl(t, e, n) {
4000
4000
  metaTokens: !0,
4001
4001
  dots: !1,
4002
4002
  indexes: !1
4003
- }, !1, function(m, v) {
4004
- return !H.isUndefined(v[m]);
4003
+ }, !1, function(m, g) {
4004
+ return !H.isUndefined(g[m]);
4005
4005
  });
4006
4006
  const r = n.metaTokens, i = n.visitor || c, a = n.dots, s = n.indexes, l = (n.Blob || typeof Blob != "undefined" && Blob) && H.isSpecCompliantForm(e);
4007
4007
  if (!H.isFunction(i))
@@ -4016,21 +4016,21 @@ function bl(t, e, n) {
4016
4016
  throw new Se("Blob is not supported. Use a Buffer instead.");
4017
4017
  return H.isArrayBuffer(p) || H.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
4018
4018
  }
4019
- function c(p, m, v) {
4020
- let g = p;
4021
- if (p && !v && typeof p == "object") {
4019
+ function c(p, m, g) {
4020
+ let v = p;
4021
+ if (p && !g && typeof p == "object") {
4022
4022
  if (H.endsWith(m, "{}"))
4023
4023
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
4024
- else if (H.isArray(p) && gx(p) || (H.isFileList(p) || H.endsWith(m, "[]")) && (g = H.toArray(p)))
4025
- return m = L0(m), g.forEach(function(O, k) {
4026
- !(H.isUndefined(O) || O === null) && e.append(
4024
+ else if (H.isArray(p) && gx(p) || (H.isFileList(p) || H.endsWith(m, "[]")) && (v = H.toArray(p)))
4025
+ return m = L0(m), v.forEach(function(E, k) {
4026
+ !(H.isUndefined(E) || E === null) && e.append(
4027
4027
  // eslint-disable-next-line no-nested-ternary
4028
4028
  s === !0 ? wf([m], k, a) : s === null ? m : m + "[]",
4029
- u(O)
4029
+ u(E)
4030
4030
  );
4031
4031
  }), !1;
4032
4032
  }
4033
- return ac(p) ? !0 : (e.append(wf(v, m, a), u(p)), !1);
4033
+ return ac(p) ? !0 : (e.append(wf(g, m, a), u(p)), !1);
4034
4034
  }
4035
4035
  const d = [], y = Object.assign(vx, {
4036
4036
  defaultVisitor: c,
@@ -4041,14 +4041,14 @@ function bl(t, e, n) {
4041
4041
  if (!H.isUndefined(p)) {
4042
4042
  if (d.indexOf(p) !== -1)
4043
4043
  throw Error("Circular reference detected in " + m.join("."));
4044
- d.push(p), H.forEach(p, function(g, S) {
4045
- (!(H.isUndefined(g) || g === null) && i.call(
4044
+ d.push(p), H.forEach(p, function(v, S) {
4045
+ (!(H.isUndefined(v) || v === null) && i.call(
4046
4046
  e,
4047
- g,
4047
+ v,
4048
4048
  H.isString(S) ? S.trim() : S,
4049
4049
  m,
4050
4050
  y
4051
- )) === !0 && f(g, m ? m.concat(S) : [S]);
4051
+ )) === !0 && f(v, m ? m.concat(S) : [S]);
4052
4052
  }), d.pop();
4053
4053
  }
4054
4054
  }
@@ -4714,53 +4714,53 @@ const z0 = (t) => {
4714
4714
  function m() {
4715
4715
  f && f(), p && p(), i.cancelToken && i.cancelToken.unsubscribe(c), i.signal && i.signal.removeEventListener("abort", c);
4716
4716
  }
4717
- let v = new XMLHttpRequest();
4718
- v.open(i.method.toUpperCase(), i.url, !0), v.timeout = i.timeout;
4719
- function g() {
4720
- if (!v)
4717
+ let g = new XMLHttpRequest();
4718
+ g.open(i.method.toUpperCase(), i.url, !0), g.timeout = i.timeout;
4719
+ function v() {
4720
+ if (!g)
4721
4721
  return;
4722
- const O = Ht.from(
4723
- "getAllResponseHeaders" in v && v.getAllResponseHeaders()
4722
+ const E = Ht.from(
4723
+ "getAllResponseHeaders" in g && g.getAllResponseHeaders()
4724
4724
  ), C = {
4725
- data: !o || o === "text" || o === "json" ? v.responseText : v.response,
4726
- status: v.status,
4727
- statusText: v.statusText,
4728
- headers: O,
4725
+ data: !o || o === "text" || o === "json" ? g.responseText : g.response,
4726
+ status: g.status,
4727
+ statusText: g.statusText,
4728
+ headers: E,
4729
4729
  config: t,
4730
- request: v
4730
+ request: g
4731
4731
  };
4732
4732
  j0(function(A) {
4733
4733
  n(A), m();
4734
4734
  }, function(A) {
4735
4735
  r(A), m();
4736
- }, C), v = null;
4737
- }
4738
- "onloadend" in v ? v.onloadend = g : v.onreadystatechange = function() {
4739
- !v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(g);
4740
- }, v.onabort = function() {
4741
- v && (r(new Se("Request aborted", Se.ECONNABORTED, t, v)), v = null);
4742
- }, v.onerror = function() {
4743
- r(new Se("Network Error", Se.ERR_NETWORK, t, v)), v = null;
4744
- }, v.ontimeout = function() {
4736
+ }, C), g = null;
4737
+ }
4738
+ "onloadend" in g ? g.onloadend = v : g.onreadystatechange = function() {
4739
+ !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(v);
4740
+ }, g.onabort = function() {
4741
+ g && (r(new Se("Request aborted", Se.ECONNABORTED, t, g)), g = null);
4742
+ }, g.onerror = function() {
4743
+ r(new Se("Network Error", Se.ERR_NETWORK, t, g)), g = null;
4744
+ }, g.ontimeout = function() {
4745
4745
  let k = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
4746
4746
  const C = i.transitional || R0;
4747
4747
  i.timeoutErrorMessage && (k = i.timeoutErrorMessage), r(new Se(
4748
4748
  k,
4749
4749
  C.clarifyTimeoutError ? Se.ETIMEDOUT : Se.ECONNABORTED,
4750
4750
  t,
4751
- v
4752
- )), v = null;
4753
- }, a === void 0 && s.setContentType(null), "setRequestHeader" in v && H.forEach(s.toJSON(), function(k, C) {
4754
- v.setRequestHeader(C, k);
4755
- }), H.isUndefined(i.withCredentials) || (v.withCredentials = !!i.withCredentials), o && o !== "json" && (v.responseType = i.responseType), u && ([y, p] = Wo(u, !0), v.addEventListener("progress", y)), l && v.upload && ([d, f] = Wo(l), v.upload.addEventListener("progress", d), v.upload.addEventListener("loadend", f)), (i.cancelToken || i.signal) && (c = (O) => {
4756
- v && (r(!O || O.type ? new ba(null, t, v) : O), v.abort(), v = null);
4751
+ g
4752
+ )), g = null;
4753
+ }, a === void 0 && s.setContentType(null), "setRequestHeader" in g && H.forEach(s.toJSON(), function(k, C) {
4754
+ g.setRequestHeader(C, k);
4755
+ }), H.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), o && o !== "json" && (g.responseType = i.responseType), u && ([y, p] = Wo(u, !0), g.addEventListener("progress", y)), l && g.upload && ([d, f] = Wo(l), g.upload.addEventListener("progress", d), g.upload.addEventListener("loadend", f)), (i.cancelToken || i.signal) && (c = (E) => {
4756
+ g && (r(!E || E.type ? new ba(null, t, g) : E), g.abort(), g = null);
4757
4757
  }, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
4758
4758
  const S = jx(i.url);
4759
4759
  if (S && St.protocols.indexOf(S) === -1) {
4760
4760
  r(new Se("Unsupported protocol " + S + ":", Se.ERR_BAD_REQUEST, t));
4761
4761
  return;
4762
4762
  }
4763
- v.send(a || null);
4763
+ g.send(a || null);
4764
4764
  });
4765
4765
  }, Yx = (t, e) => {
4766
4766
  const { length: n } = t = t ? t.filter(Boolean) : [];
@@ -4905,9 +4905,9 @@ const $x = async (t) => {
4905
4905
  const m = f && f.unsubscribe && (() => {
4906
4906
  f.unsubscribe();
4907
4907
  });
4908
- let v;
4908
+ let g;
4909
4909
  try {
4910
- if (l && Zx && n !== "get" && n !== "head" && (v = await ew(c, r)) !== 0) {
4910
+ if (l && Zx && n !== "get" && n !== "head" && (g = await ew(c, r)) !== 0) {
4911
4911
  let C = new Request(e, {
4912
4912
  method: "POST",
4913
4913
  body: r,
@@ -4915,14 +4915,14 @@ const $x = async (t) => {
4915
4915
  }), b;
4916
4916
  if (H.isFormData(r) && (b = C.headers.get("content-type")) && c.setContentType(b), C.body) {
4917
4917
  const [A, x] = kf(
4918
- v,
4918
+ g,
4919
4919
  Wo(Ef(l))
4920
4920
  );
4921
4921
  r = Pf(C.body, Tf, A, x);
4922
4922
  }
4923
4923
  }
4924
4924
  H.isString(d) || (d = d ? "include" : "omit");
4925
- const g = "credentials" in Request.prototype;
4925
+ const v = "credentials" in Request.prototype;
4926
4926
  p = new Request(e, {
4927
4927
  ...y,
4928
4928
  signal: f,
@@ -4930,11 +4930,11 @@ const $x = async (t) => {
4930
4930
  headers: c.normalize().toJSON(),
4931
4931
  body: r,
4932
4932
  duplex: "half",
4933
- credentials: g ? d : void 0
4933
+ credentials: v ? d : void 0
4934
4934
  });
4935
4935
  let S = await fetch(p, y);
4936
- const O = oc && (u === "stream" || u === "response");
4937
- if (oc && (o || O && m)) {
4936
+ const E = oc && (u === "stream" || u === "response");
4937
+ if (oc && (o || E && m)) {
4938
4938
  const C = {};
4939
4939
  ["status", "statusText", "headers"].forEach((L) => {
4940
4940
  C[L] = S[L];
@@ -4952,7 +4952,7 @@ const $x = async (t) => {
4952
4952
  }
4953
4953
  u = u || "text";
4954
4954
  let k = await Go[H.findKey(Go, u) || "text"](S, t);
4955
- return !O && m && m(), await new Promise((C, b) => {
4955
+ return !E && m && m(), await new Promise((C, b) => {
4956
4956
  j0(C, b, {
4957
4957
  data: k,
4958
4958
  headers: Ht.from(S.headers),
@@ -4962,13 +4962,13 @@ const $x = async (t) => {
4962
4962
  request: p
4963
4963
  });
4964
4964
  });
4965
- } catch (g) {
4966
- throw m && m(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
4965
+ } catch (v) {
4966
+ throw m && m(), v && v.name === "TypeError" && /Load failed|fetch/i.test(v.message) ? Object.assign(
4967
4967
  new Se("Network Error", Se.ERR_NETWORK, t, p),
4968
4968
  {
4969
- cause: g.cause || g
4969
+ cause: v.cause || v
4970
4970
  }
4971
- ) : Se.from(g, g && g.code, t, p);
4971
+ ) : Se.from(v, v && v.code, t, p);
4972
4972
  }
4973
4973
  }), lc = {
4974
4974
  http: mx,
@@ -5166,8 +5166,8 @@ let bi = class {
5166
5166
  const p = o[d++], m = o[d++];
5167
5167
  try {
5168
5168
  f = p(f);
5169
- } catch (v) {
5170
- m.call(this, v);
5169
+ } catch (g) {
5170
+ m.call(this, g);
5171
5171
  break;
5172
5172
  }
5173
5173
  }
@@ -5413,9 +5413,9 @@ function ds(t) {
5413
5413
  }
5414
5414
  function Nt() {
5415
5415
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
5416
- function a(f, p, m, v) {
5417
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
5418
- return Jt(S, "_invoke", function(O, k, C) {
5416
+ function a(f, p, m, g) {
5417
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
5418
+ return Jt(S, "_invoke", function(E, k, C) {
5419
5419
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
5420
5420
  return b = P, A = 0, x = t, N.n = R, s;
5421
5421
  } };
@@ -5439,7 +5439,7 @@ function Nt() {
5439
5439
  x = e.value, A < 2 && (A = 0);
5440
5440
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
5441
5441
  b = t;
5442
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
5442
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
5443
5443
  } catch (D) {
5444
5444
  b = t, A = 1, x = D;
5445
5445
  } finally {
@@ -5448,7 +5448,7 @@ function Nt() {
5448
5448
  }
5449
5449
  return { value: e, done: _ };
5450
5450
  };
5451
- }(f, m, v), !0), S;
5451
+ }(f, m, g), !0), S;
5452
5452
  }
5453
5453
  var s = {};
5454
5454
  function o() {
@@ -6320,14 +6320,14 @@ var wA = function() {
6320
6320
  var r = AA(e);
6321
6321
  return Mn(r);
6322
6322
  }, Z0 = nd(void 0), CA = function(e) {
6323
- var n, r, i, a, s, o, l = e.children, u = e.brandId, c = e.analysisId, d = e.aiProvider, y = e.hostAppProps, f = y === void 0 ? {} : y, p = $s("/brands/:brandId"), m = $s("/brands/:brandId/*"), v = $s("/brands/:brandId/analysis/:analysisId"), g = $s("/brands/:brandId/analysis/:analysisId/*"), S = (v == null || (n = v.params) === null || n === void 0 ? void 0 : n.brandId) || (g == null || (r = g.params) === null || r === void 0 ? void 0 : r.brandId) || (m == null || (i = m.params) === null || i === void 0 ? void 0 : i.brandId) || (p == null || (a = p.params) === null || a === void 0 ? void 0 : a.brandId), O = (v == null || (s = v.params) === null || s === void 0 ? void 0 : s.analysisId) || (g == null || (o = g.params) === null || o === void 0 ? void 0 : o.analysisId), k = Qe(function() {
6323
+ var n, r, i, a, s, o, l = e.children, u = e.brandId, c = e.analysisId, d = e.aiProvider, y = e.hostAppProps, f = y === void 0 ? {} : y, p = $s("/brands/:brandId"), m = $s("/brands/:brandId/*"), g = $s("/brands/:brandId/analysis/:analysisId"), v = $s("/brands/:brandId/analysis/:analysisId/*"), S = (g == null || (n = g.params) === null || n === void 0 ? void 0 : n.brandId) || (v == null || (r = v.params) === null || r === void 0 ? void 0 : r.brandId) || (m == null || (i = m.params) === null || i === void 0 ? void 0 : i.brandId) || (p == null || (a = p.params) === null || a === void 0 ? void 0 : a.brandId), E = (g == null || (s = g.params) === null || s === void 0 ? void 0 : s.analysisId) || (v == null || (o = v.params) === null || o === void 0 ? void 0 : o.analysisId), k = Qe(function() {
6324
6324
  return {
6325
6325
  brandId: S || u || "",
6326
- analysisId: O || c || "latest",
6326
+ analysisId: E || c || "latest",
6327
6327
  aiProvider: d || "openai",
6328
6328
  hostAppProps: f
6329
6329
  };
6330
- }, [S, u, O, c, d, f]), C = Qe(function() {
6330
+ }, [S, u, E, c, d, f]), C = Qe(function() {
6331
6331
  return {
6332
6332
  data: k
6333
6333
  };
@@ -6394,8 +6394,8 @@ function TA(t) {
6394
6394
  if (Array.isArray(t)) return t;
6395
6395
  }
6396
6396
  var IA = function(e) {
6397
- var n = e.children, r = e.hostAppProps, i = r === void 0 ? {} : r, a = te(void 0), s = Jl(a, 2), o = s[0], l = s[1], u = te("latest"), c = Jl(u, 2), d = c[0], y = c[1], f = te(void 0), p = Jl(f, 2), m = p[0], v = p[1];
6398
- return /* @__PURE__ */ h(kA, { brandId: o, setBrandId: l, analysisId: d, setAnalysisId: y, aiProvider: m, setAiProvider: v, children: /* @__PURE__ */ h(CA, { brandId: o, analysisId: d, aiProvider: m, hostAppProps: i, children: n }) });
6397
+ var n = e.children, r = e.hostAppProps, i = r === void 0 ? {} : r, a = te(void 0), s = Jl(a, 2), o = s[0], l = s[1], u = te("latest"), c = Jl(u, 2), d = c[0], y = c[1], f = te(void 0), p = Jl(f, 2), m = p[0], g = p[1];
6398
+ return /* @__PURE__ */ h(kA, { brandId: o, setBrandId: l, analysisId: d, setAnalysisId: y, aiProvider: m, setAiProvider: g, children: /* @__PURE__ */ h(CA, { brandId: o, analysisId: d, aiProvider: m, hostAppProps: i, children: n }) });
6399
6399
  }, Mt = function() {
6400
6400
  var e = cl(Z0);
6401
6401
  if (e === void 0)
@@ -6918,9 +6918,9 @@ var P3 = function(e) {
6918
6918
  return C == null ? void 0 : C.data;
6919
6919
  }
6920
6920
  }
6921
- }), f = y.data, p = y.isLoading, m = MA(o), v = m.mutate, g = m.isPending, S = function(k) {
6922
- if (k.preventDefault(), d(!0), !g)
6923
- return v();
6921
+ }), f = y.data, p = y.isLoading, m = MA(o), g = m.mutate, v = m.isPending, S = function(k) {
6922
+ if (k.preventDefault(), d(!0), !v)
6923
+ return g();
6924
6924
  };
6925
6925
  return /* @__PURE__ */ w("div", { className: ue("ystaii-sidemenu"), children: [
6926
6926
  /* @__PURE__ */ h("div", { className: "ystaii-mobile-menu lg:yst-hidden", children: /* @__PURE__ */ h(qi, { activePath: i, children: /* @__PURE__ */ h(qi.Mobile, { closeButtonScreenReaderText: "Close sidebar", openButtonScreenReaderText: "Open sidebar", children: /* @__PURE__ */ h(Hf, {}) }) }) }),
@@ -6932,7 +6932,7 @@ var P3 = function(e) {
6932
6932
  /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(vt, { variant: "primary", className: "yst-no-underline", onClick: S, children: p ? /* @__PURE__ */ w(tt, { children: [
6933
6933
  "Sign out ",
6934
6934
  /* @__PURE__ */ h("span", { "aria-hidden": "true", children: "→" })
6935
- ] }) : c || g ? /* @__PURE__ */ h(we, { children: "Signing out..." }) : /* @__PURE__ */ w(we, { children: [
6935
+ ] }) : c || v ? /* @__PURE__ */ h(we, { children: "Signing out..." }) : /* @__PURE__ */ w(we, { children: [
6936
6936
  "Sign out ",
6937
6937
  /* @__PURE__ */ h("span", { "aria-hidden": "true", children: "→" })
6938
6938
  ] }) }) })
@@ -6990,9 +6990,9 @@ function $l(t) {
6990
6990
  }
6991
6991
  function Qa() {
6992
6992
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
6993
- function a(f, p, m, v) {
6994
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
6995
- return Zt(S, "_invoke", function(O, k, C) {
6993
+ function a(f, p, m, g) {
6994
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
6995
+ return Zt(S, "_invoke", function(E, k, C) {
6996
6996
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
6997
6997
  return b = P, A = 0, x = t, N.n = R, s;
6998
6998
  } };
@@ -7016,7 +7016,7 @@ function Qa() {
7016
7016
  x = e.value, A < 2 && (A = 0);
7017
7017
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
7018
7018
  b = t;
7019
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
7019
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
7020
7020
  } catch (D) {
7021
7021
  b = t, A = 1, x = D;
7022
7022
  } finally {
@@ -7025,7 +7025,7 @@ function Qa() {
7025
7025
  }
7026
7026
  return { value: e, done: _ };
7027
7027
  };
7028
- }(f, m, v), !0), S;
7028
+ }(f, m, g), !0), S;
7029
7029
  }
7030
7030
  var s = {};
7031
7031
  function o() {
@@ -7154,7 +7154,7 @@ var F3 = function(e) {
7154
7154
  ge(function() {
7155
7155
  u(m.length !== 0);
7156
7156
  }, [m]);
7157
- var v = /* @__PURE__ */ function() {
7157
+ var g = /* @__PURE__ */ function() {
7158
7158
  var k = Gf(/* @__PURE__ */ Qa().m(function C() {
7159
7159
  var b;
7160
7160
  return Qa().w(function(A) {
@@ -7178,12 +7178,12 @@ var F3 = function(e) {
7178
7178
  return function() {
7179
7179
  return k.apply(this, arguments);
7180
7180
  };
7181
- }(), g = /* @__PURE__ */ function() {
7181
+ }(), v = /* @__PURE__ */ function() {
7182
7182
  var k = Gf(/* @__PURE__ */ Qa().m(function C() {
7183
7183
  return Qa().w(function(b) {
7184
7184
  for (; ; ) switch (b.n) {
7185
7185
  case 0:
7186
- return b.n = 1, v();
7186
+ return b.n = 1, g();
7187
7187
  case 1:
7188
7188
  a("/settings");
7189
7189
  case 2:
@@ -7194,7 +7194,7 @@ var F3 = function(e) {
7194
7194
  return function() {
7195
7195
  return k.apply(this, arguments);
7196
7196
  };
7197
- }(), S = m.length === 1 ? "One brand has been deactivated" : "Multiple brands have been deactivated", O = m.length === 1 ? /* @__PURE__ */ w(we, { children: [
7197
+ }(), S = m.length === 1 ? "One brand has been deactivated" : "Multiple brands have been deactivated", E = m.length === 1 ? /* @__PURE__ */ w(we, { children: [
7198
7198
  /* @__PURE__ */ h("p", { children: "You recently lost a subscription. Because of this, we could not analyze all your active brands." }),
7199
7199
  /* @__PURE__ */ w("p", { children: [
7200
7200
  "The brand ",
@@ -7218,14 +7218,14 @@ var F3 = function(e) {
7218
7218
  " and deactivate different brand(s) instead."
7219
7219
  ] })
7220
7220
  ] });
7221
- return l ? /* @__PURE__ */ h(re, { isOpen: l, onClose: g, position: "center", as: "div", className: r, children: /* @__PURE__ */ w(re.Panel, { children: [
7221
+ return l ? /* @__PURE__ */ h(re, { isOpen: l, onClose: v, position: "center", as: "div", className: r, children: /* @__PURE__ */ w(re.Panel, { children: [
7222
7222
  /* @__PURE__ */ h("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: /* @__PURE__ */ w("div", { className: "yst-flex-1", children: [
7223
7223
  /* @__PURE__ */ h(re.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ h(re.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: S }) }),
7224
- /* @__PURE__ */ h(re.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: O })
7224
+ /* @__PURE__ */ h(re.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: E })
7225
7225
  ] }) }),
7226
7226
  /* @__PURE__ */ w(re.Container.Footer, { className: "yst-mt-3 yst-flex yst-justify-end yst-gap-2", children: [
7227
- /* @__PURE__ */ h(de, { variant: "secondary", onClick: g, children: "Close" }),
7228
- /* @__PURE__ */ h(de, { variant: "primary", onClick: g, isLoading: p, disabled: p, children: "Go to settings" })
7227
+ /* @__PURE__ */ h(de, { variant: "secondary", onClick: v, children: "Close" }),
7228
+ /* @__PURE__ */ h(de, { variant: "primary", onClick: v, isLoading: p, disabled: p, children: "Go to settings" })
7229
7229
  ] })
7230
7230
  ] }) }) : null;
7231
7231
  };
@@ -7324,7 +7324,7 @@ var Y3 = {
7324
7324
  // NOTE: even though it defaults to show,
7325
7325
  // it is only rendered based on the logic below
7326
7326
  !0
7327
- ), v = H3(m, 2), g = v[0], S = v[1], O = {
7327
+ ), g = H3(m, 2), v = g[0], S = g[1], E = {
7328
7328
  disable: d,
7329
7329
  hideNav: u
7330
7330
  }, k = Mt(), C = k.brandId, b = wa(), A = b.setBrandId, x = Ni({
@@ -7354,19 +7354,19 @@ var Y3 = {
7354
7354
  N();
7355
7355
  }, [N]);
7356
7356
  if (f.pathname !== Y3.HOME && B)
7357
- return /* @__PURE__ */ h($l, { ...O, children: /* @__PURE__ */ h(Yr, {}) });
7357
+ return /* @__PURE__ */ h($l, { ...E, children: /* @__PURE__ */ h(Yr, {}) });
7358
7358
  if (_)
7359
- return /* @__PURE__ */ h($l, { ...O, children: /* @__PURE__ */ h("div", { className: "yst-flex yst-min-h-screen yst-items-center yst-justify-center", children: /* @__PURE__ */ w("div", { className: "yst-space-y-4 yst-text-center", children: [
7359
+ return /* @__PURE__ */ h($l, { ...E, children: /* @__PURE__ */ h("div", { className: "yst-flex yst-min-h-screen yst-items-center yst-justify-center", children: /* @__PURE__ */ w("div", { className: "yst-space-y-4 yst-text-center", children: [
7360
7360
  /* @__PURE__ */ h("div", { className: "yst-mb-4 yst-text-6xl yst-text-red-600", children: "⚠️" }),
7361
7361
  /* @__PURE__ */ h("h2", { className: "yst-text-xl yst-font-semibold yst-text-slate-900", children: "Something went wrong" }),
7362
7362
  /* @__PURE__ */ h("p", { className: "yst-text-slate-600", children: "We couldn't load your Brand Analysis. Please try again shortly." }),
7363
7363
  /* @__PURE__ */ h(de, { variant: "primary", onClick: D, children: "Retry" })
7364
7364
  ] }) }) });
7365
- var W = I == null || (n = I.data) === null || n === void 0 ? void 0 : n.trialAnalysisCompletedAt, Q = !!W && Date.now() - new Date(W).getTime() < 8 * 60 * 60 * 1e3, E = (I == null || (r = I.data) === null || r === void 0 ? void 0 : r.activeSubscriptions) === 0 && !Q, q = (I == null || (i = I.data) === null || i === void 0 ? void 0 : i.brands) && (I == null || (a = I.data) === null || a === void 0 || (a = a.brands) === null || a === void 0 ? void 0 : a.length) > 0;
7366
- return /* @__PURE__ */ w($l, { DebugInfo: y, ...O, children: [
7365
+ var W = I == null || (n = I.data) === null || n === void 0 ? void 0 : n.trialAnalysisCompletedAt, Q = !!W && Date.now() - new Date(W).getTime() < 8 * 60 * 60 * 1e3, O = (I == null || (r = I.data) === null || r === void 0 ? void 0 : r.activeSubscriptions) === 0 && !Q, q = (I == null || (i = I.data) === null || i === void 0 ? void 0 : i.brands) && (I == null || (a = I.data) === null || a === void 0 || (a = a.brands) === null || a === void 0 ? void 0 : a.length) > 0;
7366
+ return /* @__PURE__ */ w($l, { DebugInfo: y, ...E, children: [
7367
7367
  /* @__PURE__ */ h(ua, {}),
7368
7368
  /* @__PURE__ */ h(F3, {}),
7369
- E && /* @__PURE__ */ h(ng, { isOpen: g, variant: I != null && (s = I.data) !== null && s !== void 0 && s.isEligibleForFreeTrial ? "trial" : "purchase", onClose: q || I != null && (o = I.data) !== null && o !== void 0 && o.isEligibleForFreeTrial ? function() {
7369
+ O && /* @__PURE__ */ h(ng, { isOpen: v, variant: I != null && (s = I.data) !== null && s !== void 0 && s.isEligibleForFreeTrial ? "trial" : "purchase", onClose: q || I != null && (o = I.data) !== null && o !== void 0 && o.isEligibleForFreeTrial ? function() {
7370
7370
  S(!1);
7371
7371
  } : (
7372
7372
  // passing undefined hides the close buttons in the modal
@@ -7497,16 +7497,16 @@ var vd = nd(void 0), iS = function(e) {
7497
7497
  );
7498
7498
  if (p)
7499
7499
  return d;
7500
- var m = "toast-".concat(Date.now(), "-").concat(Math.random().toString(36).slice(2, 11)), v = (y = c.duration) !== null && y !== void 0 ? y : 5e3, g = {
7500
+ var m = "toast-".concat(Date.now(), "-").concat(Math.random().toString(36).slice(2, 11)), g = (y = c.duration) !== null && y !== void 0 ? y : 5e3, v = {
7501
7501
  id: m,
7502
7502
  message: u,
7503
7503
  variant: c.variant || "info",
7504
- duration: v,
7504
+ duration: g,
7505
7505
  dismissible: (f = c.dismissible) !== null && f !== void 0 ? f : !0
7506
7506
  };
7507
- return v > 0 && setTimeout(function() {
7507
+ return g > 0 && setTimeout(function() {
7508
7508
  o(m);
7509
- }, v), [].concat(X3(d), [g]);
7509
+ }, g), [].concat(X3(d), [v]);
7510
7510
  });
7511
7511
  }, [o]);
7512
7512
  return /* @__PURE__ */ h(vd.Provider, { value: {
@@ -7816,7 +7816,7 @@ function IS(t, e) {
7816
7816
  return n;
7817
7817
  }
7818
7818
  var ys = function(e) {
7819
- var n = e.children, r = e.as, i = r === void 0 ? "span" : r, a = e.startColor, s = a === void 0 ? "#A61E69" : a, o = e.endColor, l = o === void 0 ? "#6366F1" : o, u = e.angle, c = u === void 0 ? 102 : u, d = e.disabled, y = d === void 0 ? !1 : d, f = e.style, p = f === void 0 ? {} : f, m = e.className, v = m === void 0 ? "" : m, g = TS(e, kS), S = th(y ? {
7819
+ var n = e.children, r = e.as, i = r === void 0 ? "span" : r, a = e.startColor, s = a === void 0 ? "#A61E69" : a, o = e.endColor, l = o === void 0 ? "#6366F1" : o, u = e.angle, c = u === void 0 ? 102 : u, d = e.disabled, y = d === void 0 ? !1 : d, f = e.style, p = f === void 0 ? {} : f, m = e.className, g = m === void 0 ? "" : m, v = TS(e, kS), S = th(y ? {
7820
7820
  display: "inline-block"
7821
7821
  } : {
7822
7822
  background: "linear-gradient(".concat(c, "deg, ").concat(s, ", ").concat(l, ")"),
@@ -7825,7 +7825,7 @@ var ys = function(e) {
7825
7825
  backgroundClip: "text",
7826
7826
  display: "inline-block"
7827
7827
  }, p);
7828
- return /* @__PURE__ */ h(i, { className: v, style: S, ...g, children: n });
7828
+ return /* @__PURE__ */ h(i, { className: g, style: S, ...v, children: n });
7829
7829
  };
7830
7830
  function bd(t) {
7831
7831
  var e = t.children, n = t.nestedInPaperContent, r = n === void 0 ? !1 : n, i = t.className;
@@ -7999,10 +7999,10 @@ var Ws = function(e) {
7999
7999
  return i && /* @__PURE__ */ h(Ge, { className: r, children: i }, a);
8000
8000
  }) });
8001
8001
  }, lg = function(e) {
8002
- var n, r, i, a, s = e.title, o = s === void 0 ? "Sentiment" : s, l = e.tooltip, u = l === void 0 ? "" : l, c = e.data, d = c == null ? void 0 : c.brandName, y = c == null || (n = c.positivityPercentage) === null || n === void 0 ? void 0 : n.value, f = c == null || (r = c.positivityPercentage) === null || r === void 0 || (r = r.previous) === null || r === void 0 ? void 0 : r.difference, p = c == null || (i = c.keywords) === null || i === void 0 ? void 0 : i.positive, m = c == null || (a = c.keywords) === null || a === void 0 ? void 0 : a.negative, v = !c || y === void 0 && f === void 0;
8002
+ var n, r, i, a, s = e.title, o = s === void 0 ? "Sentiment" : s, l = e.tooltip, u = l === void 0 ? "" : l, c = e.data, d = c == null ? void 0 : c.brandName, y = c == null || (n = c.positivityPercentage) === null || n === void 0 ? void 0 : n.value, f = c == null || (r = c.positivityPercentage) === null || r === void 0 || (r = r.previous) === null || r === void 0 ? void 0 : r.difference, p = c == null || (i = c.keywords) === null || i === void 0 ? void 0 : i.positive, m = c == null || (a = c.keywords) === null || a === void 0 ? void 0 : a.negative, g = !c || y === void 0 && f === void 0;
8003
8003
  return /* @__PURE__ */ h(Ae, { className: "yst-overflow-visible", children: /* @__PURE__ */ w(Ae.Content, { className: "yst-space-y-8", children: [
8004
8004
  /* @__PURE__ */ h(Ws, { title: o, tooltip: u }),
8005
- /* @__PURE__ */ h("div", { className: "yst-space-y-3", children: !v && /* @__PURE__ */ w(we, { children: [
8005
+ /* @__PURE__ */ h("div", { className: "yst-space-y-3", children: !g && /* @__PURE__ */ w(we, { children: [
8006
8006
  /* @__PURE__ */ h("p", { children: d || /* @__PURE__ */ h(tt, { className: "yst-h-6 yst-w-20" }) }),
8007
8007
  /* @__PURE__ */ w("div", { children: [
8008
8008
  /* @__PURE__ */ h("div", { className: "yst-inline-flex", children: /* @__PURE__ */ h(Aa, { className: "yst-mb-1.5", score: y, scoreFormat: "percentage", suffix: "positive", delta: f }) }),
@@ -8016,7 +8016,7 @@ var Ws = function(e) {
8016
8016
  ) })
8017
8017
  ] })
8018
8018
  ] }) }),
8019
- v && /* @__PURE__ */ h(ct, { variant: "info", children: "The selected AI platform returned no brand sentiment data for your queries. This can happen with some queries or platforms." }),
8019
+ g && /* @__PURE__ */ h(ct, { variant: "info", children: "The selected AI platform returned no brand sentiment data for your queries. This can happen with some queries or platforms." }),
8020
8020
  !!p && /* @__PURE__ */ w("div", { className: "yst-space-y-2", children: [
8021
8021
  /* @__PURE__ */ h(We, { as: "h5", size: "5", children: "Positive keywords" }),
8022
8022
  /* @__PURE__ */ h(rh, { keywords: p, badgeClassName: "yst-bg-green-100 yst-text-green-800" })
@@ -8096,16 +8096,16 @@ var Sr = function(e, n, r) {
8096
8096
  var i = Mt(), a = i.brandId, s = i.analysisId, o = i.aiProvider, l = a, u = s, c = o, d = zs(l, u, {
8097
8097
  query: {
8098
8098
  enabled: !!l && !!u,
8099
- select: function(v) {
8100
- var g = v.data;
8101
- return g == null ? void 0 : g.analysis;
8099
+ select: function(g) {
8100
+ var v = g.data;
8101
+ return v == null ? void 0 : v.analysis;
8102
8102
  }
8103
8103
  }
8104
8104
  }), y = d.data, f = GS(d, zS), p = Qe(function() {
8105
8105
  if (!y || !c) return null;
8106
8106
  var m = y.completedScans || [];
8107
- return m.find(function(v) {
8108
- return String(v.aiProvider) === String(c);
8107
+ return m.find(function(g) {
8108
+ return String(g.aiProvider) === String(c);
8109
8109
  }) || null;
8110
8110
  }, [y, c]);
8111
8111
  return US({
@@ -8380,7 +8380,7 @@ var Na = Vr(sh || (sh = cg(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8380
8380
  }, gc = function() {
8381
8381
  return /* @__PURE__ */ h("span", { role: "img", "aria-label": "Brand citation", children: /* @__PURE__ */ h(wS, { className: "yst-inline yst-h-4 yst-w-4 yst-fill-amber-500" }) });
8382
8382
  }, oC = function(e) {
8383
- var n, r, i, a, s = e.enableCategories, o = s === void 0 ? !1 : s, l = te("all"), u = ch(l, 2), c = u[0], d = u[1], y = te(1), f = ch(y, 2), p = f[0], m = f[1], v = Sr(), g = v.data, S = v.isLoading, O = v.isRefetching, k = g == null ? void 0 : g.citations, C = k == null || (n = k.list) === null || n === void 0 ? void 0 : n.filter(function(N) {
8383
+ var n, r, i, a, s = e.enableCategories, o = s === void 0 ? !1 : s, l = te("all"), u = ch(l, 2), c = u[0], d = u[1], y = te(1), f = ch(y, 2), p = f[0], m = f[1], g = Sr(), v = g.data, S = g.isLoading, E = g.isRefetching, k = v == null ? void 0 : v.citations, C = k == null || (n = k.list) === null || n === void 0 ? void 0 : n.filter(function(N) {
8384
8384
  return c === "all" ? !0 : N.category === c;
8385
8385
  }), b = 10, A = (C == null ? void 0 : C.length) || 0, x = Math.ceil(A / b), L = (p - 1) * b, B = L + b, _ = C == null ? void 0 : C.slice(L, B);
8386
8386
  return ge(function() {
@@ -8395,7 +8395,7 @@ var Na = Vr(sh || (sh = cg(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8395
8395
  ] }),
8396
8396
  /* @__PURE__ */ h(Aa, { score: k == null || (r = k.total) === null || r === void 0 ? void 0 : r.value, suffix: "citations", delta: k == null || (i = k.total) === null || i === void 0 || (i = i.previous) === null || i === void 0 ? void 0 : i.difference, deltaSuffix: "since last analysis", isLoading: S, hideTotal: !0 })
8397
8397
  ] }),
8398
- (k == null || (a = k.list) === null || a === void 0 ? void 0 : a.length) === 0 && !S && !O ? /* @__PURE__ */ h(ct, { children: "The selected AI platform returned no citations for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ w(we, { children: [
8398
+ (k == null || (a = k.list) === null || a === void 0 ? void 0 : a.length) === 0 && !S && !E ? /* @__PURE__ */ h(ct, { children: "The selected AI platform returned no citations for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ w(we, { children: [
8399
8399
  /* @__PURE__ */ w("div", { children: [
8400
8400
  o && /* @__PURE__ */ h(
8401
8401
  ls,
@@ -8426,7 +8426,7 @@ var Na = Vr(sh || (sh = cg(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8426
8426
  o && /* @__PURE__ */ h(ee.Cell, { className: "yst-hidden yst-align-top yst-text-slate-900 md:yst-table-cell", children: "Category" }),
8427
8427
  /* @__PURE__ */ h(ee.Cell, { className: "yst-hidden yst-align-top yst-text-slate-900 md:yst-table-cell", children: "Brands" })
8428
8428
  ] }) }),
8429
- /* @__PURE__ */ h(ee.Body, { children: S || O ? (
8429
+ /* @__PURE__ */ h(ee.Body, { children: S || E ? (
8430
8430
  // Show skeleton rows when loading
8431
8431
  Array.from({
8432
8432
  length: 5
@@ -8510,7 +8510,7 @@ function fC(t) {
8510
8510
  if (Array.isArray(t)) return t;
8511
8511
  }
8512
8512
  var yh = function(e) {
8513
- var n, r = e.data, i = e.totalQueries, a = e.isFirstScan, s = a === void 0 ? !0 : a, o = e.isLoading, l = o === void 0 ? !1 : o, u = l || !r, c = r || {}, d = c.rank, y = c.brand, f = d == null ? void 0 : d.previous, p = typeof (f == null ? void 0 : f.difference) == "number" ? f.difference * -1 : void 0, m = y == null ? void 0 : y.numberOfMentions, v = m == null ? void 0 : m.previous, g = typeof (v == null ? void 0 : v.difference) == "number" ? v.difference : void 0;
8513
+ var n, r = e.data, i = e.totalQueries, a = e.isFirstScan, s = a === void 0 ? !0 : a, o = e.isLoading, l = o === void 0 ? !1 : o, u = l || !r, c = r || {}, d = c.rank, y = c.brand, f = d == null ? void 0 : d.previous, p = typeof (f == null ? void 0 : f.difference) == "number" ? f.difference * -1 : void 0, m = y == null ? void 0 : y.numberOfMentions, g = m == null ? void 0 : m.previous, v = typeof (g == null ? void 0 : g.difference) == "number" ? g.difference : void 0;
8514
8514
  return /* @__PURE__ */ w(ee.Row, { children: [
8515
8515
  /* @__PURE__ */ h(ee.Cell, { children: u ? /* @__PURE__ */ h(tt, { className: "yst-h-6 yst-w-8" }) : /* @__PURE__ */ w("span", { className: "yst-flex yst-justify-between yst-gap-4", children: [
8516
8516
  /* @__PURE__ */ w("span", { className: "yst-flex yst-flex-nowrap yst-gap-2 yst-font-medium", children: [
@@ -8531,17 +8531,17 @@ var yh = function(e) {
8531
8531
  i
8532
8532
  ] })
8533
8533
  ] }),
8534
- !s && /* @__PURE__ */ h("span", { className: ue("yst-ml-auto", Yo(v && typeof g == "number" ? g : 0)), children: v && typeof g == "number" ? /* @__PURE__ */ w(we, { children: [
8535
- g > -1 && "+",
8536
- g
8534
+ !s && /* @__PURE__ */ h("span", { className: ue("yst-ml-auto", Yo(g && typeof v == "number" ? v : 0)), children: g && typeof v == "number" ? /* @__PURE__ */ w(we, { children: [
8535
+ v > -1 && "+",
8536
+ v
8537
8537
  ] }) : null })
8538
8538
  ] }) })
8539
8539
  ] }, u || d == null ? void 0 : d.value);
8540
8540
  }, hC = function(e) {
8541
- var n, r, i = e.className, a = zt(null), s = te(1), o = lC(s, 2), l = o[0], u = o[1], c = Sr(), d = c.data, y = c.isLoading, f = c.isRefetching, p = d == null || (n = d.rankings) === null || n === void 0 ? void 0 : n.list, m = (d == null || (r = d.scores) === null || r === void 0 || (r = r.standardized) === null || r === void 0 ? void 0 : r.ranking) || {}, v = Object.hasOwn(m, "previous"), g = 5, S = (p == null ? void 0 : p.length) || 0, O = Math.ceil(S / g), k = (l - 1) * g, C = k + g, b = p == null ? void 0 : p.slice(k, C);
8541
+ var n, r, i = e.className, a = zt(null), s = te(1), o = lC(s, 2), l = o[0], u = o[1], c = Sr(), d = c.data, y = c.isLoading, f = c.isRefetching, p = d == null || (n = d.rankings) === null || n === void 0 ? void 0 : n.list, m = (d == null || (r = d.scores) === null || r === void 0 || (r = r.standardized) === null || r === void 0 ? void 0 : r.ranking) || {}, g = Object.hasOwn(m, "previous"), v = 5, S = (p == null ? void 0 : p.length) || 0, E = Math.ceil(S / v), k = (l - 1) * v, C = k + v, b = p == null ? void 0 : p.slice(k, C);
8542
8542
  return ge(function() {
8543
- l > O && O > 0 && u(1);
8544
- }, [O, l, u]), /* @__PURE__ */ h(Ae, { ref: a, className: ue("yst-overflow-visible", i), children: /* @__PURE__ */ w(Ae.Content, { className: "yst-mt-0 yst-space-y-6", children: [
8543
+ l > E && E > 0 && u(1);
8544
+ }, [E, l, u]), /* @__PURE__ */ h(Ae, { ref: a, className: ue("yst-overflow-visible", i), children: /* @__PURE__ */ w(Ae.Content, { className: "yst-mt-0 yst-space-y-6", children: [
8545
8545
  /* @__PURE__ */ w("div", { className: "yst-space-y-2", children: [
8546
8546
  /* @__PURE__ */ h(
8547
8547
  Ws,
@@ -8560,17 +8560,17 @@ var yh = function(e) {
8560
8560
  ] }) }),
8561
8561
  /* @__PURE__ */ h(ee.Body, { children: b && Array.isArray(b) && b.length > 0 ? b.map(function(A) {
8562
8562
  var x;
8563
- return /* @__PURE__ */ h(yh, { data: A, totalQueries: d == null ? void 0 : d.numberOfQueries, isFirstScan: !v }, "rank-row-".concat((x = A.rank) === null || x === void 0 ? void 0 : x.value));
8563
+ return /* @__PURE__ */ h(yh, { data: A, totalQueries: d == null ? void 0 : d.numberOfQueries, isFirstScan: !g }, "rank-row-".concat((x = A.rank) === null || x === void 0 ? void 0 : x.value));
8564
8564
  }) : y || f ? (
8565
8565
  // Show 5 skeleton ranking rows when loading
8566
8566
  Array.from({
8567
- length: g
8567
+ length: v
8568
8568
  }).map(function(A, x) {
8569
8569
  return /* @__PURE__ */ h(yh, { isLoading: !0 }, "skeleton-".concat(x));
8570
8570
  })
8571
8571
  ) : null })
8572
8572
  ] }),
8573
- !y && !f && p && p.length > g && /* @__PURE__ */ h(Rs, { current: l, total: O, className: "yst-flex-row", onNavigate: u, screenReaderTextNext: "Next", screenReaderTextPrevious: "Previous", variant: "text" })
8573
+ !y && !f && p && p.length > v && /* @__PURE__ */ h(Rs, { current: l, total: E, className: "yst-flex-row", onNavigate: u, screenReaderTextNext: "Next", screenReaderTextPrevious: "Previous", variant: "text" })
8574
8574
  ] }) });
8575
8575
  }, yC = function() {
8576
8576
  var e, n = Sr(), r = n.data, i = r == null || (e = r.sentiment) === null || e === void 0 ? void 0 : e.topCompetitor;
@@ -9149,8 +9149,8 @@ function o5(t, e) {
9149
9149
  return Math.round(r / dg) + 1;
9150
9150
  }
9151
9151
  function mg(t, e) {
9152
- var c, d, y, f, p, m, v, g;
9153
- const n = _t(t, e == null ? void 0 : e.in), r = n.getFullYear(), i = Ol(), a = (g = (v = (f = (y = e == null ? void 0 : e.firstWeekContainsDate) != null ? y : (d = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) != null ? f : i.firstWeekContainsDate) != null ? v : (m = (p = i.locale) == null ? void 0 : p.options) == null ? void 0 : m.firstWeekContainsDate) != null ? g : 1, s = Wt((e == null ? void 0 : e.in) || t, 0);
9152
+ var c, d, y, f, p, m, g, v;
9153
+ const n = _t(t, e == null ? void 0 : e.in), r = n.getFullYear(), i = Ol(), a = (v = (g = (f = (y = e == null ? void 0 : e.firstWeekContainsDate) != null ? y : (d = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) != null ? f : i.firstWeekContainsDate) != null ? g : (m = (p = i.locale) == null ? void 0 : p.options) == null ? void 0 : m.firstWeekContainsDate) != null ? v : 1, s = Wt((e == null ? void 0 : e.in) || t, 0);
9154
9154
  s.setFullYear(r + 1, 0, a), s.setHours(0, 0, 0, 0);
9155
9155
  const o = gs(s, e), l = Wt((e == null ? void 0 : e.in) || t, 0);
9156
9156
  l.setFullYear(r, 0, a), l.setHours(0, 0, 0, 0);
@@ -9862,30 +9862,30 @@ function v5(t, e, n) {
9862
9862
  }
9863
9863
  const b5 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, x5 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, w5 = /^'([^]*?)'?$/, A5 = /''/g, S5 = /[a-zA-Z]/;
9864
9864
  function Xn(t, e, n) {
9865
- var c, d, y, f, p, m, v, g, S;
9866
- const r = Ol(), i = (c = r.locale) != null ? c : a5, a = (p = (f = r.firstWeekContainsDate) != null ? f : (y = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : y.firstWeekContainsDate) != null ? p : 1, s = (S = (g = r.weekStartsOn) != null ? g : (v = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : v.weekStartsOn) != null ? S : 0, o = _t(t, n == null ? void 0 : n.in);
9865
+ var c, d, y, f, p, m, g, v, S;
9866
+ const r = Ol(), i = (c = r.locale) != null ? c : a5, a = (p = (f = r.firstWeekContainsDate) != null ? f : (y = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : y.firstWeekContainsDate) != null ? p : 1, s = (S = (v = r.weekStartsOn) != null ? v : (g = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : g.weekStartsOn) != null ? S : 0, o = _t(t, n == null ? void 0 : n.in);
9867
9867
  if (!wC(o))
9868
9868
  throw new RangeError("Invalid time value");
9869
- let l = e.match(x5).map((O) => {
9870
- const k = O[0];
9869
+ let l = e.match(x5).map((E) => {
9870
+ const k = E[0];
9871
9871
  if (k === "p" || k === "P") {
9872
9872
  const C = d5[k];
9873
- return C(O, i.formatLong);
9873
+ return C(E, i.formatLong);
9874
9874
  }
9875
- return O;
9876
- }).join("").match(b5).map((O) => {
9877
- if (O === "''")
9875
+ return E;
9876
+ }).join("").match(b5).map((E) => {
9877
+ if (E === "''")
9878
9878
  return { isToken: !1, value: "'" };
9879
- const k = O[0];
9879
+ const k = E[0];
9880
9880
  if (k === "'")
9881
- return { isToken: !1, value: C5(O) };
9881
+ return { isToken: !1, value: C5(E) };
9882
9882
  if (gh[k])
9883
- return { isToken: !0, value: O };
9883
+ return { isToken: !0, value: E };
9884
9884
  if (k.match(S5))
9885
9885
  throw new RangeError(
9886
9886
  "Format string contains an unescaped latin alphabet character `" + k + "`"
9887
9887
  );
9888
- return { isToken: !1, value: O };
9888
+ return { isToken: !1, value: E };
9889
9889
  });
9890
9890
  i.localize.preprocessor && (l = i.localize.preprocessor(o, l));
9891
9891
  const u = {
@@ -9893,9 +9893,9 @@ function Xn(t, e, n) {
9893
9893
  weekStartsOn: s,
9894
9894
  locale: i
9895
9895
  };
9896
- return l.map((O) => {
9897
- if (!O.isToken) return O.value;
9898
- const k = O.value;
9896
+ return l.map((E) => {
9897
+ if (!E.isToken) return E.value;
9898
+ const k = E.value;
9899
9899
  (m5(k) || p5(k)) && g5(k, e, String(t));
9900
9900
  const C = gh[k[0]];
9901
9901
  return C(o, k, i.localize, u);
@@ -10005,7 +10005,7 @@ function L5(t) {
10005
10005
  if (Array.isArray(t)) return t;
10006
10006
  }
10007
10007
  var M5 = function() {
10008
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.shouldBlock, r = n === void 0 ? !0 : n, i = e.onConfirmLeave, a = e.onCancelLeave, s = kt(), o = P5(), l = o.basename, u = o.stripBasename, c = te(!1), d = nu(c, 2), y = d[0], f = d[1], p = te(null), m = nu(p, 2), v = m[0], g = m[1], S = te(!1), O = nu(S, 2), k = O[0], C = O[1], b = zt(!1);
10008
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.shouldBlock, r = n === void 0 ? !0 : n, i = e.onConfirmLeave, a = e.onCancelLeave, s = kt(), o = P5(), l = o.basename, u = o.stripBasename, c = te(!1), d = nu(c, 2), y = d[0], f = d[1], p = te(null), m = nu(p, 2), g = m[0], v = m[1], S = te(!1), E = nu(S, 2), k = E[0], C = E[1], b = zt(!1);
10009
10009
  ge(function() {
10010
10010
  if (!(!r || k)) {
10011
10011
  var _ = function(F) {
@@ -10014,7 +10014,7 @@ var M5 = function() {
10014
10014
  var R = P.getAttribute("href");
10015
10015
  if (R && R.startsWith("/") && !R.startsWith("//")) {
10016
10016
  var D = window.location.pathname, W = u(R), Q = u(D);
10017
- W !== Q && (F.preventDefault(), F.stopPropagation(), g(W), f(!0));
10017
+ W !== Q && (F.preventDefault(), F.stopPropagation(), v(W), f(!0));
10018
10018
  }
10019
10019
  }
10020
10020
  };
@@ -10030,7 +10030,7 @@ var M5 = function() {
10030
10030
  b.current = !0;
10031
10031
  return;
10032
10032
  }
10033
- g(-1), f(!0);
10033
+ v(-1), f(!0);
10034
10034
  var I = window.location.href;
10035
10035
  window.history.pushState({
10036
10036
  blockerActive: !0
@@ -10066,26 +10066,26 @@ var M5 = function() {
10066
10066
  s(N);
10067
10067
  }
10068
10068
  }, [s, u, l]), x = Je(function() {
10069
- v !== null && (f(!1), C(!0), i == null || i(), setTimeout(function() {
10070
- if (v === -1) {
10069
+ g !== null && (f(!1), C(!0), i == null || i(), setTimeout(function() {
10070
+ if (g === -1) {
10071
10071
  var _;
10072
10072
  (_ = window.history.state) !== null && _ !== void 0 && _.blockerActive ? (window.history.back(), setTimeout(function() {
10073
10073
  window.history.back();
10074
10074
  }, 10)) : window.history.back();
10075
10075
  } else
10076
- A(v);
10077
- g(null), setTimeout(function() {
10076
+ A(g);
10077
+ v(null), setTimeout(function() {
10078
10078
  return C(!1);
10079
10079
  }, 100);
10080
10080
  }, 0));
10081
- }, [v, A, i]), L = Je(function() {
10082
- f(!1), g(null), a == null || a();
10081
+ }, [g, A, i]), L = Je(function() {
10082
+ f(!1), v(null), a == null || a();
10083
10083
  }, [a]), B = Je(function(_) {
10084
- r ? (g(_), f(!0)) : A(_);
10084
+ r ? (v(_), f(!0)) : A(_);
10085
10085
  }, [r, A]);
10086
10086
  return {
10087
10087
  showModal: y,
10088
- pendingNavigation: v,
10088
+ pendingNavigation: g,
10089
10089
  confirmLeave: x,
10090
10090
  cancelLeave: L,
10091
10091
  navigateAway: B
@@ -10157,8 +10157,8 @@ var F5 = function(e) {
10157
10157
  "” now. This usually takes a few minutes — we’ll email you when it’s ready."
10158
10158
  ] })
10159
10159
  ] }) });
10160
- var v = r.setupStatus === "pendingQuerySelection" || r.setupStatus === "firstAnalysisInProgress";
10161
- return !y || v || r.setupStatus !== "firstAnalysisNotScheduled" ? null : /* @__PURE__ */ h(ct, { className: "yst-mt-0", children: /* @__PURE__ */ w("div", { className: "yst-max-w-xl yst-space-y-4", children: [
10160
+ var g = r.setupStatus === "pendingQuerySelection" || r.setupStatus === "firstAnalysisInProgress";
10161
+ return !y || g || r.setupStatus !== "firstAnalysisNotScheduled" ? null : /* @__PURE__ */ h(ct, { className: "yst-mt-0", children: /* @__PURE__ */ w("div", { className: "yst-max-w-xl yst-space-y-4", children: [
10162
10162
  /* @__PURE__ */ w("div", { className: "yst-space-y-2", children: [
10163
10163
  /* @__PURE__ */ h("h3", { className: "yst-font-medium", children: "Use your free trial on this brand?" }),
10164
10164
  /* @__PURE__ */ w("p", { children: [
@@ -10354,12 +10354,12 @@ var Fn = {
10354
10354
  return n.length === 0 ? null : n.reduce(function(b, A) {
10355
10355
  return new Date(A.createdAt) > new Date(b.createdAt) ? A : b;
10356
10356
  });
10357
- }, [n]), v = function() {
10357
+ }, [n]), g = function() {
10358
10358
  if (m) {
10359
10359
  var A = Tr(m.createdAt);
10360
10360
  A && f(A);
10361
10361
  }
10362
- }, g = Qe(function() {
10362
+ }, v = Qe(function() {
10363
10363
  if (!m) return !1;
10364
10364
  var b = Tr(m.createdAt);
10365
10365
  return b ? wh(b, y) : !1;
@@ -10384,7 +10384,7 @@ var Fn = {
10384
10384
  analyses: R
10385
10385
  };
10386
10386
  });
10387
- }, [y, p, r]), O = function() {
10387
+ }, [y, p, r]), E = function() {
10388
10388
  f(function(A) {
10389
10389
  return E5(A);
10390
10390
  });
@@ -10410,7 +10410,7 @@ var Fn = {
10410
10410
  /* @__PURE__ */ h("div", { className: "yst-h-48 yst-rounded yst-bg-slate-200" })
10411
10411
  ] }) }) : /* @__PURE__ */ w("div", { className: "yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-min-w-80 yst-max-w-sm yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg", children: [
10412
10412
  /* @__PURE__ */ w("div", { className: "yst-mb-6 yst-flex yst-items-center yst-justify-between", children: [
10413
- /* @__PURE__ */ w("button", { type: "button", onClick: O, className: "yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500", children: [
10413
+ /* @__PURE__ */ w("button", { type: "button", onClick: E, className: "yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500", children: [
10414
10414
  /* @__PURE__ */ h("span", { className: "yst-sr-only", children: "Previous month" }),
10415
10415
  /* @__PURE__ */ h(WA, { className: "yst-h-5 yst-w-5" })
10416
10416
  ] }),
@@ -10470,7 +10470,7 @@ var Fn = {
10470
10470
  /* @__PURE__ */ h("span", { children: "Today" })
10471
10471
  ] })
10472
10472
  ] }),
10473
- m && /* @__PURE__ */ h("div", { className: "yst-mt-6", children: /* @__PURE__ */ h(de, { onClick: v, className: "yst-w-full", disabled: g, children: "Show latest analysis" }) })
10473
+ m && /* @__PURE__ */ h("div", { className: "yst-mt-6", children: /* @__PURE__ */ h(de, { onClick: g, className: "yst-w-full", disabled: v, children: "Show latest analysis" }) })
10474
10474
  ] }) : null;
10475
10475
  };
10476
10476
  function kh(t, e) {
@@ -10514,7 +10514,7 @@ function $5(t) {
10514
10514
  if (Array.isArray(t)) return t;
10515
10515
  }
10516
10516
  var wg = function(e) {
10517
- var n = e.analyses, r = e.selectedAnalysisId, i = e.onAnalysisSelect, a = e.isLoading, s = a === void 0 ? !1 : a, o = e.disabled, l = o === void 0 ? !1 : o, u = e.id, c = u === void 0 ? "analysis-date-select" : u, d = te(!1), y = kh(d, 2), f = y[0], p = y[1], m = te("latest"), v = kh(m, 2), g = v[0], S = v[1], O = zt(null), k = Je(function(F) {
10517
+ var n = e.analyses, r = e.selectedAnalysisId, i = e.onAnalysisSelect, a = e.isLoading, s = a === void 0 ? !1 : a, o = e.disabled, l = o === void 0 ? !1 : o, u = e.id, c = u === void 0 ? "analysis-date-select" : u, d = te(!1), y = kh(d, 2), f = y[0], p = y[1], m = te("latest"), g = kh(m, 2), v = g[0], S = g[1], E = zt(null), k = Je(function(F) {
10518
10518
  var I = Tr(F.createdAt);
10519
10519
  return I ? I.getTime() : -1 / 0;
10520
10520
  }, []);
@@ -10542,7 +10542,7 @@ var wg = function(e) {
10542
10542
  S(C);
10543
10543
  }, [C]);
10544
10544
  var b = n.find(function(F) {
10545
- return String(F.id) === String(g);
10545
+ return String(F.id) === String(v);
10546
10546
  }), A = n.length > 0 ? String(n.reduce(function(F, I) {
10547
10547
  return k(I) > k(F) ? I : F;
10548
10548
  }).id) : "", x = function() {
@@ -10557,7 +10557,7 @@ var wg = function(e) {
10557
10557
  }();
10558
10558
  ge(function() {
10559
10559
  var F = function(P) {
10560
- O.current && !O.current.contains(P.target) && p(!1);
10560
+ E.current && !E.current.contains(P.target) && p(!1);
10561
10561
  };
10562
10562
  return f && document.addEventListener("mousedown", F), function() {
10563
10563
  document.removeEventListener("mousedown", F);
@@ -10572,7 +10572,7 @@ var wg = function(e) {
10572
10572
  }, N = function(I) {
10573
10573
  I.key === "Enter" || I.key === " " ? (I.preventDefault(), L()) : I.key === "Escape" && p(!1);
10574
10574
  };
10575
- return /* @__PURE__ */ w("div", { ref: O, className: "yst-relative", children: [
10575
+ return /* @__PURE__ */ w("div", { ref: E, className: "yst-relative", children: [
10576
10576
  /* @__PURE__ */ w("div", { className: "yst-relative", children: [
10577
10577
  /* @__PURE__ */ h(
10578
10578
  ul,
@@ -10601,7 +10601,7 @@ var wg = function(e) {
10601
10601
  "yst-text-gray-400": l || s
10602
10602
  }) })
10603
10603
  ] }),
10604
- /* @__PURE__ */ h(K5, { analyses: n, selectedAnalysisId: g, onAnalysisSelect: B, isLoading: s, isOpen: f, onClose: _ })
10604
+ /* @__PURE__ */ h(K5, { analyses: n, selectedAnalysisId: v, onAnalysisSelect: B, isLoading: s, isOpen: f, onClose: _ })
10605
10605
  ] });
10606
10606
  };
10607
10607
  function Oh(t, e) {
@@ -10645,17 +10645,17 @@ function r6(t) {
10645
10645
  if (Array.isArray(t)) return t;
10646
10646
  }
10647
10647
  var Th = function(e) {
10648
- var n = e.id, r = e.isVisible, i = e.onClose, a = e.children, s = e.className, o = e.variant, l = o === void 0 ? "info" : o, u = e.showArrow, c = u === void 0 ? !0 : u, d = e.keepOpenOnExternalClick, y = d === void 0 ? !1 : d, f = e.delay, p = f === void 0 ? 0 : f, m = zt(null), v = te(!1), g = Oh(v, 2), S = g[0], O = g[1], k = te(!1), C = Oh(k, 2), b = C[0], A = C[1];
10648
+ var n = e.id, r = e.isVisible, i = e.onClose, a = e.children, s = e.className, o = e.variant, l = o === void 0 ? "info" : o, u = e.showArrow, c = u === void 0 ? !0 : u, d = e.keepOpenOnExternalClick, y = d === void 0 ? !1 : d, f = e.delay, p = f === void 0 ? 0 : f, m = zt(null), g = te(!1), v = Oh(g, 2), S = v[0], E = v[1], k = te(!1), C = Oh(k, 2), b = C[0], A = C[1];
10649
10649
  return ge(function() {
10650
10650
  if (!r) {
10651
- (S || b) && (O(!1), A(!1));
10651
+ (S || b) && (E(!1), A(!1));
10652
10652
  return;
10653
10653
  }
10654
10654
  if (r)
10655
10655
  if (p > 0) {
10656
- A(!1), O(!1);
10656
+ A(!1), E(!1);
10657
10657
  var x = setTimeout(function() {
10658
- O(!0), setTimeout(function() {
10658
+ E(!0), setTimeout(function() {
10659
10659
  return A(!0);
10660
10660
  }, 50);
10661
10661
  }, p);
@@ -10663,7 +10663,7 @@ var Th = function(e) {
10663
10663
  return clearTimeout(x);
10664
10664
  };
10665
10665
  } else
10666
- O(!0), A(!1);
10666
+ E(!0), A(!1);
10667
10667
  }, [r, p]), ge(function() {
10668
10668
  if (!y) {
10669
10669
  var x = function(B) {
@@ -10745,9 +10745,9 @@ var Th = function(e) {
10745
10745
  };
10746
10746
  function xc() {
10747
10747
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
10748
- function a(f, p, m, v) {
10749
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
10750
- return $t(S, "_invoke", function(O, k, C) {
10748
+ function a(f, p, m, g) {
10749
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
10750
+ return $t(S, "_invoke", function(E, k, C) {
10751
10751
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
10752
10752
  return b = P, A = 0, x = t, N.n = R, s;
10753
10753
  } };
@@ -10771,7 +10771,7 @@ function xc() {
10771
10771
  x = e.value, A < 2 && (A = 0);
10772
10772
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
10773
10773
  b = t;
10774
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
10774
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
10775
10775
  } catch (D) {
10776
10776
  b = t, A = 1, x = D;
10777
10777
  } finally {
@@ -10780,7 +10780,7 @@ function xc() {
10780
10780
  }
10781
10781
  return { value: e, done: _ };
10782
10782
  };
10783
- }(f, m, v), !0), S;
10783
+ }(f, m, g), !0), S;
10784
10784
  }
10785
10785
  var s = {};
10786
10786
  function o() {
@@ -10874,13 +10874,13 @@ var Cg = function(e, n) {
10874
10874
  if (s === "none")
10875
10875
  return null;
10876
10876
  var c = function() {
10877
- n.filter(function(g) {
10878
- return g.canManualRetry;
10879
- }).forEach(function(g) {
10877
+ n.filter(function(v) {
10878
+ return v.canManualRetry;
10879
+ }).forEach(function(v) {
10880
10880
  l({
10881
10881
  brandId: r,
10882
10882
  analysisId: i,
10883
- scanId: g.id
10883
+ scanId: v.id
10884
10884
  });
10885
10885
  });
10886
10886
  }, d = /* @__PURE__ */ h(vt, { as: "button", className: "yst-py-1.5 yst-pr-2 yst-no-underline yst-text-inherit yst-font-medium", onClick: a, variant: "default", children: "Dismiss" }), y = /* @__PURE__ */ h("div", { className: "yst-ml-auto yst-flex-shrink-0", children: /* @__PURE__ */ h(vt, { onClick: a, variant: "default", children: /* @__PURE__ */ h(El, { className: "yst-h-4 yst-w-4" }) }) }), f = function() {
@@ -10896,16 +10896,16 @@ var Cg = function(e, n) {
10896
10896
  y
10897
10897
  ] }) });
10898
10898
  }, p = function() {
10899
- var g = Sg(n);
10899
+ var v = Sg(n);
10900
10900
  return /* @__PURE__ */ h(ct, { variant: "info", children: /* @__PURE__ */ w("div", { className: "yst-flex yst-w-full", children: [
10901
10901
  /* @__PURE__ */ w("div", { className: "yst-flex-1 yst-space-y-2", children: [
10902
10902
  /* @__PURE__ */ h("p", { className: "yst-mb-0 yst-font-medium", children: "Analysis still incomplete" }),
10903
10903
  /* @__PURE__ */ w("p", { className: "yst-mb-0", children: [
10904
10904
  "We still can't retrieve the data. Please wait 24 hours before trying again.",
10905
- g && /* @__PURE__ */ w(we, { children: [
10905
+ v && /* @__PURE__ */ w(we, { children: [
10906
10906
  /* @__PURE__ */ h("br", {}),
10907
10907
  "Next retry available: ",
10908
- /* @__PURE__ */ h("strong", { children: a6(Ag(g)) }),
10908
+ /* @__PURE__ */ h("strong", { children: a6(Ag(v)) }),
10909
10909
  "."
10910
10910
  ] })
10911
10911
  ] })
@@ -10991,9 +10991,9 @@ function d6(t, e) {
10991
10991
  }
10992
10992
  function wc() {
10993
10993
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
10994
- function a(f, p, m, v) {
10995
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
10996
- return en(S, "_invoke", function(O, k, C) {
10994
+ function a(f, p, m, g) {
10995
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
10996
+ return en(S, "_invoke", function(E, k, C) {
10997
10997
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
10998
10998
  return b = P, A = 0, x = t, N.n = R, s;
10999
10999
  } };
@@ -11017,7 +11017,7 @@ function wc() {
11017
11017
  x = e.value, A < 2 && (A = 0);
11018
11018
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
11019
11019
  b = t;
11020
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
11020
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
11021
11021
  } catch (D) {
11022
11022
  b = t, A = 1, x = D;
11023
11023
  } finally {
@@ -11026,7 +11026,7 @@ function wc() {
11026
11026
  }
11027
11027
  return { value: e, done: _ };
11028
11028
  };
11029
- }(f, m, v), !0), S;
11029
+ }(f, m, g), !0), S;
11030
11030
  }
11031
11031
  var s = {};
11032
11032
  function o() {
@@ -11135,7 +11135,7 @@ function g6(t, e) {
11135
11135
  var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-13"), Dh = "gemini_tooltip_dismissed", b6 = /* @__PURE__ */ new Date("2026-03-01"), iu = Vr(Nh || (Nh = g6(["yst-flex-1 yst-space-y-2"]))), x6 = function(e, n) {
11136
11136
  return "yst_legal_alert_dismissed_".concat(e, "_").concat(n);
11137
11137
  }, w6 = function(e) {
11138
- var n, r, i, a, s, o, l, u, c, d = e.className, y = Mt(), f = y.brandId, p = y.analysisId, m = y.aiProvider, v = wa(), g = v.setAiProvider, S = v.setAnalysisId, O = Gt(), k = kt(), C = te(function() {
11138
+ var n, r, i, a, s, o, l, u, c, d = e.className, y = Mt(), f = y.brandId, p = y.analysisId, m = y.aiProvider, g = wa(), v = g.setAiProvider, S = g.setAnalysisId, E = Gt(), k = kt(), C = te(function() {
11139
11139
  return localStorage.getItem(Rh) === "true";
11140
11140
  }), b = Di(C, 2), A = b[0], x = b[1], L = te(function() {
11141
11141
  return localStorage.getItem(Dh) === "true";
@@ -11146,14 +11146,14 @@ var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-
11146
11146
  return _e;
11147
11147
  }
11148
11148
  }
11149
- }), R = P.data, D = P.isLoading, W = R == null ? void 0 : R.data, Q = W == null ? void 0 : W.displayName, E = Ni({
11149
+ }), R = P.data, D = P.isLoading, W = R == null ? void 0 : R.data, Q = W == null ? void 0 : W.displayName, O = Ni({
11150
11150
  query: {
11151
11151
  select: function(Oe) {
11152
11152
  var _e = Oe.data;
11153
11153
  return _e == null ? void 0 : _e.brands;
11154
11154
  }
11155
11155
  }
11156
- }), q = E.data, U = E.isLoading, T = Sl(f, {
11156
+ }), q = O.data, U = O.isLoading, T = Sl(f, {
11157
11157
  query: {
11158
11158
  enabled: !!f,
11159
11159
  select: function(Oe) {
@@ -11209,11 +11209,11 @@ var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-
11209
11209
  for (; ; ) switch (_i.n) {
11210
11210
  case 0:
11211
11211
  if (Vt = X == null ? void 0 : X.analysis, Sn = (Vt == null ? void 0 : Vt.completedScans) || [], ar = G || [], Jr = function() {
11212
- return Promise.all([O.invalidateQueries({
11212
+ return Promise.all([E.invalidateQueries({
11213
11213
  queryKey: Al(f)
11214
- }), O.invalidateQueries({
11214
+ }), E.invalidateQueries({
11215
11215
  queryKey: Nn(f, p)
11216
- }), O.invalidateQueries({
11216
+ }), E.invalidateQueries({
11217
11217
  queryKey: Cl(f)
11218
11218
  })]);
11219
11219
  }, K(!1), Vt) {
@@ -11226,7 +11226,7 @@ var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-
11226
11226
  case 2:
11227
11227
  return Ul = Sn.filter(function(Zr) {
11228
11228
  return Zr.aiProvider !== m;
11229
- }), Ul.length > 0 ? g(Ul[0].aiProvider) : (Hl = ar.filter(function(Zr) {
11229
+ }), Ul.length > 0 ? v(Ul[0].aiProvider) : (Hl = ar.filter(function(Zr) {
11230
11230
  return Zr.id !== p;
11231
11231
  }), Hl.length > 0 ? (ql = Hl.reduce(function(Zr, nf) {
11232
11232
  return new Date(nf.createdAt || 0) > new Date(Zr.createdAt || 0) ? nf : Zr;
@@ -11260,10 +11260,10 @@ var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-
11260
11260
  });
11261
11261
  if (!m || !le.includes(m)) {
11262
11262
  var Oe = fe[0].aiProvider;
11263
- Oe && g(Oe);
11263
+ Oe && v(Oe);
11264
11264
  }
11265
11265
  }
11266
- }, [fe, m, g]);
11266
+ }, [fe, m, v]);
11267
11267
  var zl = G != null && G.some(function(le) {
11268
11268
  return String(le.id) === String(p);
11269
11269
  }) ? p : G && G.length > 0 ? G[0].id : "latest", Vs = Us(f, {
@@ -11410,7 +11410,7 @@ var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-
11410
11410
  /* @__PURE__ */ w(iu, { className: "yst-relative", children: [
11411
11411
  /* @__PURE__ */ h("div", { className: "yst-flex yst-items-center yst-gap-2", children: /* @__PURE__ */ h(Gl, { htmlFor: "ai-tool", children: "AI platform" }) }),
11412
11412
  /* @__PURE__ */ h(ls, { onChange: function(le) {
11413
- Object.values(kn).includes(le) ? g(le) : console.error("Invalid AI provider selected:", le), le === kn.perplexity && Ks(), le === kn.gemini && Xs();
11413
+ Object.values(kn).includes(le) ? v(le) : console.error("Invalid AI provider selected:", le), le === kn.perplexity && Ks(), le === kn.gemini && Xs();
11414
11414
  }, id: "ai-tool", value: m, options: ce || J ? [{
11415
11415
  value: m,
11416
11416
  label: "Loading..."
@@ -11461,7 +11461,7 @@ var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-
11461
11461
  var le = gt.find(function(Oe) {
11462
11462
  return Oe.value === kn.perplexity;
11463
11463
  });
11464
- le && g(kn.perplexity), Ks(!0);
11464
+ le && v(kn.perplexity), Ks(!0);
11465
11465
  }, children: "Select Perplexity" })
11466
11466
  ] })
11467
11467
  ] })
@@ -11507,7 +11507,7 @@ var Rh = "perplexity_tooltip_dismissed", v6 = /* @__PURE__ */ new Date("2026-01-
11507
11507
  var le = gt.find(function(Oe) {
11508
11508
  return Oe.value === kn.gemini;
11509
11509
  });
11510
- le && g(kn.gemini), Xs(!0);
11510
+ le && v(kn.gemini), Xs(!0);
11511
11511
  }, children: "Select Gemini" })
11512
11512
  ] })
11513
11513
  ] })
@@ -12354,7 +12354,7 @@ function h4(t, e, n) {
12354
12354
  // @ts-expect-error Need to fix types on _lookupByKey
12355
12355
  n ? r : li(e, c, s.getPixelForValue(d)).lo
12356
12356
  ), u) {
12357
- const m = l.slice(0, i + 1).reverse().findIndex((v) => !qe(v[o.axis]));
12357
+ const m = l.slice(0, i + 1).reverse().findIndex((g) => !qe(g[o.axis]));
12358
12358
  i -= Math.max(0, m);
12359
12359
  }
12360
12360
  i = vn(i, 0, r - 1);
@@ -12367,8 +12367,8 @@ function h4(t, e, n) {
12367
12367
  n ? 0 : li(e, c, s.getPixelForValue(y), !0).hi + 1
12368
12368
  );
12369
12369
  if (u) {
12370
- const v = l.slice(m - 1).findIndex((g) => !qe(g[o.axis]));
12371
- m += Math.max(0, v);
12370
+ const g = l.slice(m - 1).findIndex((v) => !qe(v[o.axis]));
12371
+ m += Math.max(0, g);
12372
12372
  }
12373
12373
  a = vn(m, i, r) - i;
12374
12374
  } else
@@ -12759,9 +12759,9 @@ function kc(t, e, n, r) {
12759
12759
  function Rg(t, e, n, r, i) {
12760
12760
  let a, s, o, l, u, c, d, y;
12761
12761
  const f = e.pointStyle, p = e.rotation, m = e.radius;
12762
- let v = (p || 0) * $6;
12762
+ let g = (p || 0) * $6;
12763
12763
  if (f && typeof f == "object" && (a = f.toString(), a === "[object HTMLImageElement]" || a === "[object HTMLCanvasElement]")) {
12764
- t.save(), t.translate(n, r), t.rotate(v), t.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), t.restore();
12764
+ t.save(), t.translate(n, r), t.rotate(g), t.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), t.restore();
12765
12765
  return;
12766
12766
  }
12767
12767
  if (!(isNaN(m) || m <= 0)) {
@@ -12771,35 +12771,35 @@ function Rg(t, e, n, r, i) {
12771
12771
  i ? t.ellipse(n, r, i / 2, m, 0, 0, dn) : t.arc(n, r, m, 0, dn), t.closePath();
12772
12772
  break;
12773
12773
  case "triangle":
12774
- c = i ? i / 2 : m, t.moveTo(n + Math.sin(v) * c, r - Math.cos(v) * m), v += qh, t.lineTo(n + Math.sin(v) * c, r - Math.cos(v) * m), v += qh, t.lineTo(n + Math.sin(v) * c, r - Math.cos(v) * m), t.closePath();
12774
+ c = i ? i / 2 : m, t.moveTo(n + Math.sin(g) * c, r - Math.cos(g) * m), g += qh, t.lineTo(n + Math.sin(g) * c, r - Math.cos(g) * m), g += qh, t.lineTo(n + Math.sin(g) * c, r - Math.cos(g) * m), t.closePath();
12775
12775
  break;
12776
12776
  case "rectRounded":
12777
- u = m * 0.516, l = m - u, s = Math.cos(v + $r) * l, d = Math.cos(v + $r) * (i ? i / 2 - u : l), o = Math.sin(v + $r) * l, y = Math.sin(v + $r) * (i ? i / 2 - u : l), t.arc(n - d, r - o, u, v - lt, v - un), t.arc(n + y, r - s, u, v - un, v), t.arc(n + d, r + o, u, v, v + un), t.arc(n - y, r + s, u, v + un, v + lt), t.closePath();
12777
+ u = m * 0.516, l = m - u, s = Math.cos(g + $r) * l, d = Math.cos(g + $r) * (i ? i / 2 - u : l), o = Math.sin(g + $r) * l, y = Math.sin(g + $r) * (i ? i / 2 - u : l), t.arc(n - d, r - o, u, g - lt, g - un), t.arc(n + y, r - s, u, g - un, g), t.arc(n + d, r + o, u, g, g + un), t.arc(n - y, r + s, u, g + un, g + lt), t.closePath();
12778
12778
  break;
12779
12779
  case "rect":
12780
12780
  if (!p) {
12781
12781
  l = Math.SQRT1_2 * m, c = i ? i / 2 : l, t.rect(n - c, r - l, 2 * c, 2 * l);
12782
12782
  break;
12783
12783
  }
12784
- v += $r;
12784
+ g += $r;
12785
12785
  /* falls through */
12786
12786
  case "rectRot":
12787
- d = Math.cos(v) * (i ? i / 2 : m), s = Math.cos(v) * m, o = Math.sin(v) * m, y = Math.sin(v) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + y, r - s), t.lineTo(n + d, r + o), t.lineTo(n - y, r + s), t.closePath();
12787
+ d = Math.cos(g) * (i ? i / 2 : m), s = Math.cos(g) * m, o = Math.sin(g) * m, y = Math.sin(g) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + y, r - s), t.lineTo(n + d, r + o), t.lineTo(n - y, r + s), t.closePath();
12788
12788
  break;
12789
12789
  case "crossRot":
12790
- v += $r;
12790
+ g += $r;
12791
12791
  /* falls through */
12792
12792
  case "cross":
12793
- d = Math.cos(v) * (i ? i / 2 : m), s = Math.cos(v) * m, o = Math.sin(v) * m, y = Math.sin(v) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + d, r + o), t.moveTo(n + y, r - s), t.lineTo(n - y, r + s);
12793
+ d = Math.cos(g) * (i ? i / 2 : m), s = Math.cos(g) * m, o = Math.sin(g) * m, y = Math.sin(g) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + d, r + o), t.moveTo(n + y, r - s), t.lineTo(n - y, r + s);
12794
12794
  break;
12795
12795
  case "star":
12796
- d = Math.cos(v) * (i ? i / 2 : m), s = Math.cos(v) * m, o = Math.sin(v) * m, y = Math.sin(v) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + d, r + o), t.moveTo(n + y, r - s), t.lineTo(n - y, r + s), v += $r, d = Math.cos(v) * (i ? i / 2 : m), s = Math.cos(v) * m, o = Math.sin(v) * m, y = Math.sin(v) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + d, r + o), t.moveTo(n + y, r - s), t.lineTo(n - y, r + s);
12796
+ d = Math.cos(g) * (i ? i / 2 : m), s = Math.cos(g) * m, o = Math.sin(g) * m, y = Math.sin(g) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + d, r + o), t.moveTo(n + y, r - s), t.lineTo(n - y, r + s), g += $r, d = Math.cos(g) * (i ? i / 2 : m), s = Math.cos(g) * m, o = Math.sin(g) * m, y = Math.sin(g) * (i ? i / 2 : m), t.moveTo(n - d, r - o), t.lineTo(n + d, r + o), t.moveTo(n + y, r - s), t.lineTo(n - y, r + s);
12797
12797
  break;
12798
12798
  case "line":
12799
- s = i ? i / 2 : Math.cos(v) * m, o = Math.sin(v) * m, t.moveTo(n - s, r - o), t.lineTo(n + s, r + o);
12799
+ s = i ? i / 2 : Math.cos(g) * m, o = Math.sin(g) * m, t.moveTo(n - s, r - o), t.lineTo(n + s, r + o);
12800
12800
  break;
12801
12801
  case "dash":
12802
- t.moveTo(n, r), t.lineTo(n + Math.cos(v) * (i ? i / 2 : m), r + Math.sin(v) * m);
12802
+ t.moveTo(n, r), t.lineTo(n + Math.cos(g) * (i ? i / 2 : m), r + Math.sin(g) * m);
12803
12803
  break;
12804
12804
  case !1:
12805
12805
  t.closePath();
@@ -13467,18 +13467,18 @@ function Gg(t, e, n) {
13467
13467
  t
13468
13468
  ];
13469
13469
  const { property: r, start: i, end: a } = n, s = e.length, { compare: o, between: l, normalize: u } = Wg(r), { start: c, end: d, loop: y, style: f } = dk(t, e, n), p = [];
13470
- let m = !1, v = null, g, S, O;
13471
- const k = () => l(i, O, g) && o(i, O) !== 0, C = () => o(a, g) === 0 || l(a, O, g), b = () => m || k(), A = () => !m || C();
13470
+ let m = !1, g = null, v, S, E;
13471
+ const k = () => l(i, E, v) && o(i, E) !== 0, C = () => o(a, v) === 0 || l(a, E, v), b = () => m || k(), A = () => !m || C();
13472
13472
  for (let x = c, L = c; x <= d; ++x)
13473
- S = e[x % s], !S.skip && (g = u(S[r]), g !== O && (m = l(g, i, a), v === null && b() && (v = o(g, i) === 0 ? x : L), v !== null && A() && (p.push(ny({
13474
- start: v,
13473
+ S = e[x % s], !S.skip && (v = u(S[r]), v !== E && (m = l(v, i, a), g === null && b() && (g = o(v, i) === 0 ? x : L), g !== null && A() && (p.push(ny({
13474
+ start: g,
13475
13475
  end: x,
13476
13476
  loop: y,
13477
13477
  count: s,
13478
13478
  style: f
13479
- })), v = null), L = x, O = g));
13480
- return v !== null && p.push(ny({
13481
- start: v,
13479
+ })), g = null), L = x, E = v));
13480
+ return g !== null && p.push(ny({
13481
+ start: g,
13482
13482
  end: d,
13483
13483
  loop: y,
13484
13484
  count: s,
@@ -13546,7 +13546,7 @@ function ry(t, e, n, r) {
13546
13546
  function pk(t, e, n, r) {
13547
13547
  const i = t._chart.getContext(), a = iy(t.options), { _datasetIndex: s, options: { spanGaps: o } } = t, l = n.length, u = [];
13548
13548
  let c = a, d = e[0].start, y = d;
13549
- function f(p, m, v, g) {
13549
+ function f(p, m, g, v) {
13550
13550
  const S = o ? -1 : 1;
13551
13551
  if (p !== m) {
13552
13552
  for (p += l; n[p % l].skip; )
@@ -13556,24 +13556,24 @@ function pk(t, e, n, r) {
13556
13556
  p % l !== m % l && (u.push({
13557
13557
  start: p % l,
13558
13558
  end: m % l,
13559
- loop: v,
13560
- style: g
13561
- }), c = g, d = m % l);
13559
+ loop: g,
13560
+ style: v
13561
+ }), c = v, d = m % l);
13562
13562
  }
13563
13563
  }
13564
13564
  for (const p of e) {
13565
13565
  d = o ? d : p.start;
13566
- let m = n[d % l], v;
13566
+ let m = n[d % l], g;
13567
13567
  for (y = d + 1; y <= p.end; y++) {
13568
- const g = n[y % l];
13569
- v = iy(r.setContext(Kr(i, {
13568
+ const v = n[y % l];
13569
+ g = iy(r.setContext(Kr(i, {
13570
13570
  type: "segment",
13571
13571
  p0: m,
13572
- p1: g,
13572
+ p1: v,
13573
13573
  p0DataIndex: (y - 1) % l,
13574
13574
  p1DataIndex: y % l,
13575
13575
  datasetIndex: s
13576
- }))), mk(v, c) && f(d, y - 1, p.loop, c), m = g, c = v;
13576
+ }))), mk(g, c) && f(d, y - 1, p.loop, c), m = v, c = g;
13577
13577
  }
13578
13578
  d < y - 1 && f(d, y - 1, p.loop, c);
13579
13579
  }
@@ -13959,10 +13959,10 @@ function uy(t, e) {
13959
13959
  const { chart: n, _cachedMeta: r } = t, i = n._stacks || (n._stacks = {}), { iScale: a, vScale: s, index: o } = r, l = a.axis, u = s.axis, c = Ek(a, s, r), d = e.length;
13960
13960
  let y;
13961
13961
  for (let f = 0; f < d; ++f) {
13962
- const p = e[f], { [l]: m, [u]: v } = p, g = p._stacks || (p._stacks = {});
13963
- y = g[u] = Pk(i, c, m), y[o] = v, y._top = ly(y, s, !0, r.type), y._bottom = ly(y, s, !1, r.type);
13962
+ const p = e[f], { [l]: m, [u]: g } = p, v = p._stacks || (p._stacks = {});
13963
+ y = v[u] = Pk(i, c, m), y[o] = g, y._top = ly(y, s, !0, r.type), y._bottom = ly(y, s, !1, r.type);
13964
13964
  const S = y._visualValues || (y._visualValues = {});
13965
- S[o] = v;
13965
+ S[o] = g;
13966
13966
  }
13967
13967
  }
13968
13968
  function uu(t, e) {
@@ -14379,16 +14379,16 @@ class Mo extends Yi {
14379
14379
  }, e), this.updateElements(i, o, l, e);
14380
14380
  }
14381
14381
  updateElements(e, n, r, i) {
14382
- const a = i === "reset", { iScale: s, vScale: o, _stacked: l, _dataset: u } = this._cachedMeta, { sharedOptions: c, includeOptions: d } = this._getSharedOptions(n, i), y = s.axis, f = o.axis, { spanGaps: p, segment: m } = this.options, v = Ss(p) ? p : Number.POSITIVE_INFINITY, g = this.chart._animationsDisabled || a || i === "none", S = n + r, O = e.length;
14382
+ const a = i === "reset", { iScale: s, vScale: o, _stacked: l, _dataset: u } = this._cachedMeta, { sharedOptions: c, includeOptions: d } = this._getSharedOptions(n, i), y = s.axis, f = o.axis, { spanGaps: p, segment: m } = this.options, g = Ss(p) ? p : Number.POSITIVE_INFINITY, v = this.chart._animationsDisabled || a || i === "none", S = n + r, E = e.length;
14383
14383
  let k = n > 0 && this.getParsed(n - 1);
14384
- for (let C = 0; C < O; ++C) {
14385
- const b = e[C], A = g ? b : {};
14384
+ for (let C = 0; C < E; ++C) {
14385
+ const b = e[C], A = v ? b : {};
14386
14386
  if (C < n || C >= S) {
14387
14387
  A.skip = !0;
14388
14388
  continue;
14389
14389
  }
14390
14390
  const x = this.getParsed(C), L = qe(x[f]), B = A[y] = s.getPixelForValue(x[y], C), _ = A[f] = a || L ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, x, l) : x[f], C);
14391
- A.skip = isNaN(B) || isNaN(_) || L, A.stop = C > 0 && Math.abs(x[y] - k[y]) > v, m && (A.parsed = x, A.raw = u.data[C]), d && (A.options = c || this.resolveDataElementOptions(C, b.active ? "active" : i)), g || this.updateElement(b, C, A, i), k = x;
14391
+ A.skip = isNaN(B) || isNaN(_) || L, A.stop = C > 0 && Math.abs(x[y] - k[y]) > g, m && (A.parsed = x, A.raw = u.data[C]), d && (A.options = c || this.resolveDataElementOptions(C, b.active ? "active" : i)), v || this.updateElement(b, C, A, i), k = x;
14392
14392
  }
14393
14393
  }
14394
14394
  getMaxOverflow() {
@@ -14611,14 +14611,14 @@ function Dk(t, e, n, r, i, a) {
14611
14611
  const p = c.getCenterPoint(i);
14612
14612
  if (!(!!a || t.isPointInArea(p)) && !f)
14613
14613
  return;
14614
- const v = o(e, p);
14615
- v < l ? (s = [
14614
+ const g = o(e, p);
14615
+ g < l ? (s = [
14616
14616
  {
14617
14617
  element: c,
14618
14618
  datasetIndex: d,
14619
14619
  index: y
14620
14620
  }
14621
- ], l = v) : v === l && s.push({
14621
+ ], l = g) : g === l && s.push({
14622
14622
  element: c,
14623
14623
  datasetIndex: d,
14624
14624
  index: y
@@ -14869,7 +14869,7 @@ var bn = {
14869
14869
  He(t.boxes, (m) => {
14870
14870
  typeof m.beforeLayout == "function" && m.beforeLayout();
14871
14871
  });
14872
- const c = l.reduce((m, v) => v.box.options && v.box.options.display === !1 ? m : m + 1, 0) || 1, d = Object.freeze({
14872
+ const c = l.reduce((m, g) => g.box.options && g.box.options.display === !1 ? m : m + 1, 0) || 1, d = Object.freeze({
14873
14873
  outerWidth: e,
14874
14874
  outerHeight: n,
14875
14875
  padding: i,
@@ -14894,8 +14894,8 @@ var bn = {
14894
14894
  height: f.h,
14895
14895
  width: f.w
14896
14896
  }, He(o.chartArea, (m) => {
14897
- const v = m.box;
14898
- Object.assign(v, t.chartArea), v.update(f.w, f.h, {
14897
+ const g = m.box;
14898
+ Object.assign(g, t.chartArea), g.update(f.w, f.h, {
14899
14899
  left: 0,
14900
14900
  top: 0,
14901
14901
  right: 0,
@@ -15258,18 +15258,18 @@ function m8(t, e, n) {
15258
15258
  function g8(t, e, n, r) {
15259
15259
  const { top: i, left: a, bottom: s, right: o, chart: l } = t, { chartArea: u, scales: c } = l;
15260
15260
  let d = 0, y, f, p;
15261
- const m = s - i, v = o - a;
15261
+ const m = s - i, g = o - a;
15262
15262
  if (t.isHorizontal()) {
15263
15263
  if (f = At(r, a, o), Ne(n)) {
15264
- const g = Object.keys(n)[0], S = n[g];
15265
- p = c[g].getPixelForValue(S) + m - e;
15264
+ const v = Object.keys(n)[0], S = n[v];
15265
+ p = c[v].getPixelForValue(S) + m - e;
15266
15266
  } else n === "center" ? p = (u.bottom + u.top) / 2 + m - e : p = gy(t, n, e);
15267
15267
  y = o - a;
15268
15268
  } else {
15269
15269
  if (Ne(n)) {
15270
- const g = Object.keys(n)[0], S = n[g];
15271
- f = c[g].getPixelForValue(S) - v + e;
15272
- } else n === "center" ? f = (u.left + u.right) / 2 - v + e : f = gy(t, n, e);
15270
+ const v = Object.keys(n)[0], S = n[v];
15271
+ f = c[v].getPixelForValue(S) - g + e;
15272
+ } else n === "center" ? f = (u.left + u.right) / 2 - g + e : f = gy(t, n, e);
15273
15273
  p = At(r, s, i), d = n === "left" ? -un : un;
15274
15274
  }
15275
15275
  return {
@@ -15454,15 +15454,15 @@ class Sa extends Ar {
15454
15454
  if (s) {
15455
15455
  const l = xy(i, n.options.font);
15456
15456
  if (o ? (e.width = this.maxWidth, e.height = Ba(a) + l) : (e.height = this.maxHeight, e.width = Ba(a) + l), r.display && this.ticks.length) {
15457
- const { first: u, last: c, widest: d, highest: y } = this._getLabelSizes(), f = r.padding * 2, p = Fr(this.labelRotation), m = Math.cos(p), v = Math.sin(p);
15457
+ const { first: u, last: c, widest: d, highest: y } = this._getLabelSizes(), f = r.padding * 2, p = Fr(this.labelRotation), m = Math.cos(p), g = Math.sin(p);
15458
15458
  if (o) {
15459
- const g = r.mirror ? 0 : v * d.width + m * y.height;
15460
- e.height = Math.min(this.maxHeight, e.height + g + f);
15459
+ const v = r.mirror ? 0 : g * d.width + m * y.height;
15460
+ e.height = Math.min(this.maxHeight, e.height + v + f);
15461
15461
  } else {
15462
- const g = r.mirror ? 0 : m * d.width + v * y.height;
15463
- e.width = Math.min(this.maxWidth, e.width + g + f);
15462
+ const v = r.mirror ? 0 : m * d.width + g * y.height;
15463
+ e.width = Math.min(this.maxWidth, e.width + v + f);
15464
15464
  }
15465
- this._calculatePadding(u, c, v, m);
15465
+ this._calculatePadding(u, c, g, m);
15466
15466
  }
15467
15467
  }
15468
15468
  this._handleMargins(), o ? (this.width = this._length = n.width - this._margins.left - this._margins.right, this.height = e.height) : (this.width = e.width, this.height = this._length = n.height - this._margins.top - this._margins.bottom);
@@ -15511,17 +15511,17 @@ class Sa extends Ar {
15511
15511
  }
15512
15512
  _computeLabelSizes(e, n, r) {
15513
15513
  const { ctx: i, _longestTextCache: a } = this, s = [], o = [], l = Math.floor(n / vy(n, r));
15514
- let u = 0, c = 0, d, y, f, p, m, v, g, S, O, k, C;
15514
+ let u = 0, c = 0, d, y, f, p, m, g, v, S, E, k, C;
15515
15515
  for (d = 0; d < n; d += l) {
15516
- if (p = e[d].label, m = this._resolveTickFontOptions(d), i.font = v = m.string, g = a[v] = a[v] || {
15516
+ if (p = e[d].label, m = this._resolveTickFontOptions(d), i.font = g = m.string, v = a[g] = a[g] || {
15517
15517
  data: {},
15518
15518
  gc: []
15519
- }, S = m.lineHeight, O = k = 0, !qe(p) && !nt(p))
15520
- O = tl(i, g.data, g.gc, O, p), k = S;
15519
+ }, S = m.lineHeight, E = k = 0, !qe(p) && !nt(p))
15520
+ E = tl(i, v.data, v.gc, E, p), k = S;
15521
15521
  else if (nt(p))
15522
15522
  for (y = 0, f = p.length; y < f; ++y)
15523
- C = p[y], !qe(C) && !nt(C) && (O = tl(i, g.data, g.gc, O, C), k += S);
15524
- s.push(O), o.push(k), u = Math.max(O, u), c = Math.max(k, c);
15523
+ C = p[y], !qe(C) && !nt(C) && (E = tl(i, v.data, v.gc, E, C), k += S);
15524
+ s.push(E), o.push(k), u = Math.max(E, u), c = Math.max(k, c);
15525
15525
  }
15526
15526
  h8(a, n);
15527
15527
  const b = s.indexOf(u), A = o.indexOf(c), x = (L) => ({
@@ -15582,39 +15582,39 @@ class Sa extends Ar {
15582
15582
  return e !== "auto" ? !!e : this.getMatchingVisibleMetas().length > 0;
15583
15583
  }
15584
15584
  _computeGridLineItems(e) {
15585
- const n = this.axis, r = this.chart, i = this.options, { grid: a, position: s, border: o } = i, l = a.offset, u = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), y = Ba(a), f = [], p = o.setContext(this.getContext()), m = p.display ? p.width : 0, v = m / 2, g = function(R) {
15585
+ const n = this.axis, r = this.chart, i = this.options, { grid: a, position: s, border: o } = i, l = a.offset, u = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), y = Ba(a), f = [], p = o.setContext(this.getContext()), m = p.display ? p.width : 0, g = m / 2, v = function(R) {
15586
15586
  return ei(r, R, m);
15587
15587
  };
15588
- let S, O, k, C, b, A, x, L, B, _, N, F;
15588
+ let S, E, k, C, b, A, x, L, B, _, N, F;
15589
15589
  if (s === "top")
15590
- S = g(this.bottom), A = this.bottom - y, L = S - v, _ = g(e.top) + v, F = e.bottom;
15590
+ S = v(this.bottom), A = this.bottom - y, L = S - g, _ = v(e.top) + g, F = e.bottom;
15591
15591
  else if (s === "bottom")
15592
- S = g(this.top), _ = e.top, F = g(e.bottom) - v, A = S + v, L = this.top + y;
15592
+ S = v(this.top), _ = e.top, F = v(e.bottom) - g, A = S + g, L = this.top + y;
15593
15593
  else if (s === "left")
15594
- S = g(this.right), b = this.right - y, x = S - v, B = g(e.left) + v, N = e.right;
15594
+ S = v(this.right), b = this.right - y, x = S - g, B = v(e.left) + g, N = e.right;
15595
15595
  else if (s === "right")
15596
- S = g(this.left), B = e.left, N = g(e.right) - v, b = S + v, x = this.left + y;
15596
+ S = v(this.left), B = e.left, N = v(e.right) - g, b = S + g, x = this.left + y;
15597
15597
  else if (n === "x") {
15598
15598
  if (s === "center")
15599
- S = g((e.top + e.bottom) / 2 + 0.5);
15599
+ S = v((e.top + e.bottom) / 2 + 0.5);
15600
15600
  else if (Ne(s)) {
15601
15601
  const R = Object.keys(s)[0], D = s[R];
15602
- S = g(this.chart.scales[R].getPixelForValue(D));
15602
+ S = v(this.chart.scales[R].getPixelForValue(D));
15603
15603
  }
15604
- _ = e.top, F = e.bottom, A = S + v, L = A + y;
15604
+ _ = e.top, F = e.bottom, A = S + g, L = A + y;
15605
15605
  } else if (n === "y") {
15606
15606
  if (s === "center")
15607
- S = g((e.left + e.right) / 2);
15607
+ S = v((e.left + e.right) / 2);
15608
15608
  else if (Ne(s)) {
15609
15609
  const R = Object.keys(s)[0], D = s[R];
15610
- S = g(this.chart.scales[R].getPixelForValue(D));
15610
+ S = v(this.chart.scales[R].getPixelForValue(D));
15611
15611
  }
15612
- b = S - v, x = b - y, B = e.left, N = e.right;
15612
+ b = S - g, x = b - y, B = e.left, N = e.right;
15613
15613
  }
15614
15614
  const I = Te(i.ticks.maxTicksLimit, d), P = Math.max(1, Math.ceil(d / I));
15615
- for (O = 0; O < d; O += P) {
15616
- const R = this.getContext(O), D = a.setContext(R), W = o.setContext(R), Q = D.lineWidth, E = D.color, q = W.dash || [], U = W.dashOffset, T = D.tickWidth, G = D.tickColor, J = D.tickBorderDash || [], V = D.tickBorderDashOffset;
15617
- k = f8(this, O, l), k !== void 0 && (C = ei(r, k, Q), u ? b = x = B = N = C : A = L = _ = F = C, f.push({
15615
+ for (E = 0; E < d; E += P) {
15616
+ const R = this.getContext(E), D = a.setContext(R), W = o.setContext(R), Q = D.lineWidth, O = D.color, q = W.dash || [], U = W.dashOffset, T = D.tickWidth, G = D.tickColor, J = D.tickBorderDash || [], V = D.tickBorderDashOffset;
15617
+ k = f8(this, E, l), k !== void 0 && (C = ei(r, k, Q), u ? b = x = B = N = C : A = L = _ = F = C, f.push({
15618
15618
  tx1: b,
15619
15619
  ty1: A,
15620
15620
  tx2: x,
@@ -15624,7 +15624,7 @@ class Sa extends Ar {
15624
15624
  x2: N,
15625
15625
  y2: F,
15626
15626
  width: Q,
15627
- color: E,
15627
+ color: O,
15628
15628
  borderDash: q,
15629
15629
  borderDashOffset: U,
15630
15630
  tickWidth: T,
@@ -15636,8 +15636,8 @@ class Sa extends Ar {
15636
15636
  return this._ticksLength = d, this._borderValue = S, f;
15637
15637
  }
15638
15638
  _computeLabelItems(e) {
15639
- const n = this.axis, r = this.options, { position: i, ticks: a } = r, s = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: u, padding: c, mirror: d } = a, y = Ba(r.grid), f = y + c, p = d ? -c : f, m = -Fr(this.labelRotation), v = [];
15640
- let g, S, O, k, C, b, A, x, L, B, _, N, F = "middle";
15639
+ const n = this.axis, r = this.options, { position: i, ticks: a } = r, s = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: u, padding: c, mirror: d } = a, y = Ba(r.grid), f = y + c, p = d ? -c : f, m = -Fr(this.labelRotation), g = [];
15640
+ let v, S, E, k, C, b, A, x, L, B, _, N, F = "middle";
15641
15641
  if (i === "top")
15642
15642
  b = this.bottom - p, A = this._getXAxisLabelAlignment();
15643
15643
  else if (i === "bottom")
@@ -15667,16 +15667,16 @@ class Sa extends Ar {
15667
15667
  }
15668
15668
  n === "y" && (l === "start" ? F = "top" : l === "end" && (F = "bottom"));
15669
15669
  const I = this._getLabelSizes();
15670
- for (g = 0, S = o.length; g < S; ++g) {
15671
- O = o[g], k = O.label;
15672
- const P = a.setContext(this.getContext(g));
15673
- x = this.getPixelForTick(g) + a.labelOffset, L = this._resolveTickFontOptions(g), B = L.lineHeight, _ = nt(k) ? k.length : 1;
15670
+ for (v = 0, S = o.length; v < S; ++v) {
15671
+ E = o[v], k = E.label;
15672
+ const P = a.setContext(this.getContext(v));
15673
+ x = this.getPixelForTick(v) + a.labelOffset, L = this._resolveTickFontOptions(v), B = L.lineHeight, _ = nt(k) ? k.length : 1;
15674
15674
  const R = _ / 2, D = P.color, W = P.textStrokeColor, Q = P.textStrokeWidth;
15675
- let E = A;
15676
- s ? (C = x, A === "inner" && (g === S - 1 ? E = this.options.reverse ? "left" : "right" : g === 0 ? E = this.options.reverse ? "right" : "left" : E = "center"), i === "top" ? u === "near" || m !== 0 ? N = -_ * B + B / 2 : u === "center" ? N = -I.highest.height / 2 - R * B + B : N = -I.highest.height + B / 2 : u === "near" || m !== 0 ? N = B / 2 : u === "center" ? N = I.highest.height / 2 - R * B : N = I.highest.height - _ * B, d && (N *= -1), m !== 0 && !P.showLabelBackdrop && (C += B / 2 * Math.sin(m))) : (b = x, N = (1 - _) * B / 2);
15675
+ let O = A;
15676
+ s ? (C = x, A === "inner" && (v === S - 1 ? O = this.options.reverse ? "left" : "right" : v === 0 ? O = this.options.reverse ? "right" : "left" : O = "center"), i === "top" ? u === "near" || m !== 0 ? N = -_ * B + B / 2 : u === "center" ? N = -I.highest.height / 2 - R * B + B : N = -I.highest.height + B / 2 : u === "near" || m !== 0 ? N = B / 2 : u === "center" ? N = I.highest.height / 2 - R * B : N = I.highest.height - _ * B, d && (N *= -1), m !== 0 && !P.showLabelBackdrop && (C += B / 2 * Math.sin(m))) : (b = x, N = (1 - _) * B / 2);
15677
15677
  let q;
15678
15678
  if (P.showLabelBackdrop) {
15679
- const U = Ct(P.backdropPadding), T = I.heights[g], G = I.widths[g];
15679
+ const U = Ct(P.backdropPadding), T = I.heights[v], G = I.widths[v];
15680
15680
  let J = N - U.top, V = 0 - U.left;
15681
15681
  switch (F) {
15682
15682
  case "middle":
@@ -15694,7 +15694,7 @@ class Sa extends Ar {
15694
15694
  V -= G;
15695
15695
  break;
15696
15696
  case "inner":
15697
- g === S - 1 ? V -= G : g > 0 && (V -= G / 2);
15697
+ v === S - 1 ? V -= G : v > 0 && (V -= G / 2);
15698
15698
  break;
15699
15699
  }
15700
15700
  q = {
@@ -15705,7 +15705,7 @@ class Sa extends Ar {
15705
15705
  color: P.backdropColor
15706
15706
  };
15707
15707
  }
15708
- v.push({
15708
+ g.push({
15709
15709
  label: k,
15710
15710
  font: L,
15711
15711
  textOffset: N,
@@ -15714,7 +15714,7 @@ class Sa extends Ar {
15714
15714
  color: D,
15715
15715
  strokeColor: W,
15716
15716
  strokeWidth: Q,
15717
- textAlign: E,
15717
+ textAlign: O,
15718
15718
  textBaseline: F,
15719
15719
  translation: [
15720
15720
  C,
@@ -15724,7 +15724,7 @@ class Sa extends Ar {
15724
15724
  }
15725
15725
  });
15726
15726
  }
15727
- return v;
15727
+ return g;
15728
15728
  }
15729
15729
  _getXAxisLabelAlignment() {
15730
15730
  const { position: e, ticks: n } = this.options;
@@ -16900,17 +16900,17 @@ function q8(t, e, n, r) {
16900
16900
  }
16901
16901
  function W8(t, e, n, r) {
16902
16902
  const i = e.points, { count: a, start: s, ilen: o } = sv(i, n, r), { move: l = !0, reverse: u } = r || {};
16903
- let c = 0, d = 0, y, f, p, m, v, g;
16904
- const S = (k) => (s + (u ? o - k : k)) % a, O = () => {
16905
- m !== v && (t.lineTo(c, v), t.lineTo(c, m), t.lineTo(c, g));
16903
+ let c = 0, d = 0, y, f, p, m, g, v;
16904
+ const S = (k) => (s + (u ? o - k : k)) % a, E = () => {
16905
+ m !== g && (t.lineTo(c, g), t.lineTo(c, m), t.lineTo(c, v));
16906
16906
  };
16907
16907
  for (l && (f = i[S(0)], t.moveTo(f.x, f.y)), y = 0; y <= o; ++y) {
16908
16908
  if (f = i[S(y)], f.skip)
16909
16909
  continue;
16910
16910
  const k = f.x, C = f.y, b = k | 0;
16911
- b === p ? (C < m ? m = C : C > v && (v = C), c = (d * c + k) / ++d) : (O(), t.lineTo(k, C), p = b, d = 0, m = v = C), g = C;
16911
+ b === p ? (C < m ? m = C : C > g && (g = C), c = (d * c + k) / ++d) : (E(), t.lineTo(k, C), p = b, d = 0, m = g = C), v = C;
16912
16912
  }
16913
- O();
16913
+ E();
16914
16914
  }
16915
16915
  function Pc(t) {
16916
16916
  const e = t.options, n = e.borderDash && e.borderDash.length;
@@ -16979,8 +16979,8 @@ class Ur extends Ar {
16979
16979
  o.push(f);
16980
16980
  continue;
16981
16981
  }
16982
- const m = Math.abs((i - f[n]) / (p[n] - f[n])), v = l(f, p, m, r.stepped);
16983
- v[n] = e[n], o.push(v);
16982
+ const m = Math.abs((i - f[n]) / (p[n] - f[n])), g = l(f, p, m, r.stepped);
16983
+ g[n] = e[n], o.push(g);
16984
16984
  }
16985
16985
  return o.length === 1 ? o[0] : o;
16986
16986
  }
@@ -17420,16 +17420,16 @@ function pu(t, e) {
17420
17420
  const { style: { backgroundColor: f = a } = {} } = u, p = r !== !0;
17421
17421
  t.save(), t.fillStyle = f, yE(t, s, o, p && Tc(i, d, y)), t.beginPath();
17422
17422
  const m = !!n.pathSegment(t, u);
17423
- let v;
17423
+ let g;
17424
17424
  if (p) {
17425
17425
  m ? t.closePath() : Ry(t, r, y, i);
17426
- const g = !!r.pathSegment(t, c, {
17426
+ const v = !!r.pathSegment(t, c, {
17427
17427
  move: m,
17428
17428
  reverse: !0
17429
17429
  });
17430
- v = m && g, v || Ry(t, r, d, i);
17430
+ g = m && v, g || Ry(t, r, d, i);
17431
17431
  }
17432
- t.closePath(), t.fill(v ? "evenodd" : "nonzero"), t.restore();
17432
+ t.closePath(), t.fill(g ? "evenodd" : "nonzero"), t.restore();
17433
17433
  }
17434
17434
  }
17435
17435
  function yE(t, e, n, r) {
@@ -17529,31 +17529,31 @@ class By extends Ar {
17529
17529
  a.textAlign = "left", a.textBaseline = "middle";
17530
17530
  let y = -1, f = -c;
17531
17531
  return this.legendItems.forEach((p, m) => {
17532
- const v = r + n / 2 + a.measureText(p.text).width;
17533
- (m === 0 || u[u.length - 1] + v + 2 * o > s) && (d += c, u[u.length - (m > 0 ? 0 : 1)] = 0, f += c, y++), l[m] = {
17532
+ const g = r + n / 2 + a.measureText(p.text).width;
17533
+ (m === 0 || u[u.length - 1] + g + 2 * o > s) && (d += c, u[u.length - (m > 0 ? 0 : 1)] = 0, f += c, y++), l[m] = {
17534
17534
  left: 0,
17535
17535
  top: f,
17536
17536
  row: y,
17537
- width: v,
17537
+ width: g,
17538
17538
  height: i
17539
- }, u[u.length - 1] += v + o;
17539
+ }, u[u.length - 1] += g + o;
17540
17540
  }), d;
17541
17541
  }
17542
17542
  _fitCols(e, n, r, i) {
17543
17543
  const { ctx: a, maxHeight: s, options: { labels: { padding: o } } } = this, l = this.legendHitBoxes = [], u = this.columnSizes = [], c = s - e;
17544
17544
  let d = o, y = 0, f = 0, p = 0, m = 0;
17545
- return this.legendItems.forEach((v, g) => {
17546
- const { itemWidth: S, itemHeight: O } = gE(r, n, a, v, i);
17547
- g > 0 && f + O + 2 * o > c && (d += y + o, u.push({
17545
+ return this.legendItems.forEach((g, v) => {
17546
+ const { itemWidth: S, itemHeight: E } = gE(r, n, a, g, i);
17547
+ v > 0 && f + E + 2 * o > c && (d += y + o, u.push({
17548
17548
  width: y,
17549
17549
  height: f
17550
- }), p += y + o, m++, y = f = 0), l[g] = {
17550
+ }), p += y + o, m++, y = f = 0), l[v] = {
17551
17551
  left: p,
17552
17552
  top: f,
17553
17553
  col: m,
17554
17554
  width: S,
17555
- height: O
17556
- }, y = Math.max(y, S), f += O + o;
17555
+ height: E
17556
+ }, y = Math.max(y, S), f += E + o;
17557
17557
  }), d += y, u.push({
17558
17558
  width: y,
17559
17559
  height: f
@@ -17586,7 +17586,7 @@ class By extends Ar {
17586
17586
  const { options: e, columnSizes: n, lineWidths: r, ctx: i } = this, { align: a, labels: s } = e, o = it.color, l = Qi(e.rtl, this.left, this.width), u = dt(s.font), { padding: c } = s, d = u.size, y = d / 2;
17587
17587
  let f;
17588
17588
  this.drawTitle(), i.textAlign = l.textAlign("left"), i.textBaseline = "middle", i.lineWidth = 0.5, i.font = u.string;
17589
- const { boxWidth: p, boxHeight: m, itemHeight: v } = Dy(s, d), g = function(b, A, x) {
17589
+ const { boxWidth: p, boxHeight: m, itemHeight: g } = Dy(s, d), v = function(b, A, x) {
17590
17590
  if (isNaN(p) || p <= 0 || isNaN(m) || m < 0)
17591
17591
  return;
17592
17592
  i.save();
@@ -17611,12 +17611,12 @@ class By extends Ar {
17611
17611
  }
17612
17612
  i.restore();
17613
17613
  }, S = function(b, A, x) {
17614
- Pi(i, x.text, b, A + v / 2, u, {
17614
+ Pi(i, x.text, b, A + g / 2, u, {
17615
17615
  strikethrough: x.hidden,
17616
17616
  textAlign: l.textAlign(x.textAlign)
17617
17617
  });
17618
- }, O = this.isHorizontal(), k = this._computeTitleHeight();
17619
- O ? f = {
17618
+ }, E = this.isHorizontal(), k = this._computeTitleHeight();
17619
+ E ? f = {
17620
17620
  x: At(a, this.left + c, this.right - r[0]),
17621
17621
  y: this.top + c + k,
17622
17622
  line: 0
@@ -17625,14 +17625,14 @@ class By extends Ar {
17625
17625
  y: At(a, this.top + k + c, this.bottom - n[0].height),
17626
17626
  line: 0
17627
17627
  }, Hg(this.ctx, e.textDirection);
17628
- const C = v + c;
17628
+ const C = g + c;
17629
17629
  this.legendItems.forEach((b, A) => {
17630
17630
  i.strokeStyle = b.fontColor, i.fillStyle = b.fontColor;
17631
17631
  const x = i.measureText(b.text).width, L = l.textAlign(b.textAlign || (b.textAlign = s.textAlign)), B = p + y + x;
17632
17632
  let _ = f.x, N = f.y;
17633
- l.setWidth(this.width), O ? A > 0 && _ + B + c > this.right && (N = f.y += C, f.line++, _ = f.x = At(a, this.left + c, this.right - r[f.line])) : A > 0 && N + C > this.bottom && (_ = f.x = _ + n[f.line].width + c, f.line++, N = f.y = At(a, this.top + k + c, this.bottom - n[f.line].height));
17633
+ l.setWidth(this.width), E ? A > 0 && _ + B + c > this.right && (N = f.y += C, f.line++, _ = f.x = At(a, this.left + c, this.right - r[f.line])) : A > 0 && N + C > this.bottom && (_ = f.x = _ + n[f.line].width + c, f.line++, N = f.y = At(a, this.top + k + c, this.bottom - n[f.line].height));
17634
17634
  const F = l.x(_);
17635
- if (g(F, N, b), _ = f4(L, _ + p + y, O ? _ + B : this.right, e.rtl), S(l.x(_), N, b), O)
17635
+ if (v(F, N, b), _ = f4(L, _ + p + y, E ? _ + B : this.right, e.rtl), S(l.x(_), N, b), E)
17636
17636
  f.x += B + c;
17637
17637
  else if (typeof b.text != "string") {
17638
17638
  const I = u.lineHeight;
@@ -17650,7 +17650,7 @@ class By extends Ar {
17650
17650
  if (this.isHorizontal())
17651
17651
  y = Math.max(...this.lineWidths), c = this.top + u, d = At(e.align, d, this.right - y);
17652
17652
  else {
17653
- const p = this.columnSizes.reduce((m, v) => Math.max(m, v.height), 0);
17653
+ const p = this.columnSizes.reduce((m, g) => Math.max(m, g.height), 0);
17654
17654
  c = u + At(e.align, this.top, this.bottom - p - e.labels.padding - this._computeTitleHeight());
17655
17655
  }
17656
17656
  const f = At(o, d, d + y);
@@ -17952,20 +17952,20 @@ function CE(t, e) {
17952
17952
  }
17953
17953
  function jy(t, e) {
17954
17954
  const n = t.chart.ctx, { body: r, footer: i, title: a } = t, { boxWidth: s, boxHeight: o } = e, l = dt(e.bodyFont), u = dt(e.titleFont), c = dt(e.footerFont), d = a.length, y = i.length, f = r.length, p = Ct(e.padding);
17955
- let m = p.height, v = 0, g = r.reduce((k, C) => k + C.before.length + C.lines.length + C.after.length, 0);
17956
- if (g += t.beforeBody.length + t.afterBody.length, d && (m += d * u.lineHeight + (d - 1) * e.titleSpacing + e.titleMarginBottom), g) {
17955
+ let m = p.height, g = 0, v = r.reduce((k, C) => k + C.before.length + C.lines.length + C.after.length, 0);
17956
+ if (v += t.beforeBody.length + t.afterBody.length, d && (m += d * u.lineHeight + (d - 1) * e.titleSpacing + e.titleMarginBottom), v) {
17957
17957
  const k = e.displayColors ? Math.max(o, l.lineHeight) : l.lineHeight;
17958
- m += f * k + (g - f) * l.lineHeight + (g - 1) * e.bodySpacing;
17958
+ m += f * k + (v - f) * l.lineHeight + (v - 1) * e.bodySpacing;
17959
17959
  }
17960
17960
  y && (m += e.footerMarginTop + y * c.lineHeight + (y - 1) * e.footerSpacing);
17961
17961
  let S = 0;
17962
- const O = function(k) {
17963
- v = Math.max(v, n.measureText(k).width + S);
17962
+ const E = function(k) {
17963
+ g = Math.max(g, n.measureText(k).width + S);
17964
17964
  };
17965
- return n.save(), n.font = u.string, He(t.title, O), n.font = l.string, He(t.beforeBody.concat(t.afterBody), O), S = e.displayColors ? s + 2 + e.boxPadding : 0, He(r, (k) => {
17966
- He(k.before, O), He(k.lines, O), He(k.after, O);
17967
- }), S = 0, n.font = c.string, He(t.footer, O), n.restore(), v += p.width, {
17968
- width: v,
17965
+ return n.save(), n.font = u.string, He(t.title, E), n.font = l.string, He(t.beforeBody.concat(t.afterBody), E), S = e.displayColors ? s + 2 + e.boxPadding : 0, He(r, (k) => {
17966
+ He(k.before, E), He(k.lines, E), He(k.after, E);
17967
+ }), S = 0, n.font = c.string, He(t.footer, E), n.restore(), g += p.width, {
17968
+ width: g,
17969
17969
  height: m
17970
17970
  };
17971
17971
  }
@@ -18168,12 +18168,12 @@ class Ic extends Ar {
18168
18168
  }
18169
18169
  getCaretPosition(e, n, r) {
18170
18170
  const { xAlign: i, yAlign: a } = this, { caretSize: s, cornerRadius: o } = r, { topLeft: l, topRight: u, bottomLeft: c, bottomRight: d } = Gi(o), { x: y, y: f } = e, { width: p, height: m } = n;
18171
- let v, g, S, O, k, C;
18172
- return a === "center" ? (k = f + m / 2, i === "left" ? (v = y, g = v - s, O = k + s, C = k - s) : (v = y + p, g = v + s, O = k - s, C = k + s), S = v) : (i === "left" ? g = y + Math.max(l, c) + s : i === "right" ? g = y + p - Math.max(u, d) - s : g = this.caretX, a === "top" ? (O = f, k = O - s, v = g - s, S = g + s) : (O = f + m, k = O + s, v = g + s, S = g - s), C = O), {
18173
- x1: v,
18174
- x2: g,
18171
+ let g, v, S, E, k, C;
18172
+ return a === "center" ? (k = f + m / 2, i === "left" ? (g = y, v = g - s, E = k + s, C = k - s) : (g = y + p, v = g + s, E = k - s, C = k + s), S = g) : (i === "left" ? v = y + Math.max(l, c) + s : i === "right" ? v = y + p - Math.max(u, d) - s : v = this.caretX, a === "top" ? (E = f, k = E - s, g = v - s, S = v + s) : (E = f + m, k = E + s, g = v + s, S = v - s), C = E), {
18173
+ x1: g,
18174
+ x2: v,
18175
18175
  x3: S,
18176
- y1: O,
18176
+ y1: E,
18177
18177
  y2: k,
18178
18178
  y3: C
18179
18179
  };
@@ -18195,24 +18195,24 @@ class Ic extends Ar {
18195
18195
  pointStyle: o.pointStyle,
18196
18196
  rotation: o.rotation,
18197
18197
  borderWidth: 1
18198
- }, v = i.leftForLtr(y, u) + u / 2, g = p + l / 2;
18199
- e.strokeStyle = a.multiKeyBackground, e.fillStyle = a.multiKeyBackground, kc(e, m, v, g), e.strokeStyle = s.borderColor, e.fillStyle = s.backgroundColor, kc(e, m, v, g);
18198
+ }, g = i.leftForLtr(y, u) + u / 2, v = p + l / 2;
18199
+ e.strokeStyle = a.multiKeyBackground, e.fillStyle = a.multiKeyBackground, kc(e, m, g, v), e.strokeStyle = s.borderColor, e.fillStyle = s.backgroundColor, kc(e, m, g, v);
18200
18200
  } else {
18201
18201
  e.lineWidth = Ne(s.borderWidth) ? Math.max(...Object.values(s.borderWidth)) : s.borderWidth || 1, e.strokeStyle = s.borderColor, e.setLineDash(s.borderDash || []), e.lineDashOffset = s.borderDashOffset || 0;
18202
- const m = i.leftForLtr(y, u), v = i.leftForLtr(i.xPlus(y, 1), u - 2), g = Gi(s.borderRadius);
18203
- Object.values(g).some((S) => S !== 0) ? (e.beginPath(), e.fillStyle = a.multiKeyBackground, nl(e, {
18202
+ const m = i.leftForLtr(y, u), g = i.leftForLtr(i.xPlus(y, 1), u - 2), v = Gi(s.borderRadius);
18203
+ Object.values(v).some((S) => S !== 0) ? (e.beginPath(), e.fillStyle = a.multiKeyBackground, nl(e, {
18204
18204
  x: m,
18205
18205
  y: p,
18206
18206
  w: u,
18207
18207
  h: l,
18208
- radius: g
18208
+ radius: v
18209
18209
  }), e.fill(), e.stroke(), e.fillStyle = s.backgroundColor, e.beginPath(), nl(e, {
18210
- x: v,
18210
+ x: g,
18211
18211
  y: p + 1,
18212
18212
  w: u - 2,
18213
18213
  h: l - 2,
18214
- radius: g
18215
- }), e.fill()) : (e.fillStyle = a.multiKeyBackground, e.fillRect(m, p, u, l), e.strokeRect(m, p, u, l), e.fillStyle = s.backgroundColor, e.fillRect(v, p + 1, u - 2, l - 2));
18214
+ radius: v
18215
+ }), e.fill()) : (e.fillStyle = a.multiKeyBackground, e.fillRect(m, p, u, l), e.strokeRect(m, p, u, l), e.fillStyle = s.backgroundColor, e.fillRect(g, p + 1, u - 2, l - 2));
18216
18216
  }
18217
18217
  e.fillStyle = this.labelTextColors[r];
18218
18218
  }
@@ -18221,12 +18221,12 @@ class Ic extends Ar {
18221
18221
  let y = d.lineHeight, f = 0;
18222
18222
  const p = Qi(r.rtl, this.x, this.width), m = function(x) {
18223
18223
  n.fillText(x, p.x(e.x + f), e.y + y / 2), e.y += y + a;
18224
- }, v = p.textAlign(s);
18225
- let g, S, O, k, C, b, A;
18226
- for (n.textAlign = s, n.textBaseline = "middle", n.font = d.string, e.x = yo(this, v, r), n.fillStyle = r.bodyColor, He(this.beforeBody, m), f = o && v !== "right" ? s === "center" ? u / 2 + c : u + 2 + c : 0, k = 0, b = i.length; k < b; ++k) {
18227
- for (g = i[k], S = this.labelTextColors[k], n.fillStyle = S, He(g.before, m), O = g.lines, o && O.length && (this._drawColorBox(n, e, k, p, r), y = Math.max(d.lineHeight, l)), C = 0, A = O.length; C < A; ++C)
18228
- m(O[C]), y = d.lineHeight;
18229
- He(g.after, m);
18224
+ }, g = p.textAlign(s);
18225
+ let v, S, E, k, C, b, A;
18226
+ for (n.textAlign = s, n.textBaseline = "middle", n.font = d.string, e.x = yo(this, g, r), n.fillStyle = r.bodyColor, He(this.beforeBody, m), f = o && g !== "right" ? s === "center" ? u / 2 + c : u + 2 + c : 0, k = 0, b = i.length; k < b; ++k) {
18227
+ for (v = i[k], S = this.labelTextColors[k], n.fillStyle = S, He(v.before, m), E = v.lines, o && E.length && (this._drawColorBox(n, e, k, p, r), y = Math.max(d.lineHeight, l)), C = 0, A = E.length; C < A; ++C)
18228
+ m(E[C]), y = d.lineHeight;
18229
+ He(v.after, m);
18230
18230
  }
18231
18231
  f = 0, y = d.lineHeight, He(this.afterBody, m), e.y -= a;
18232
18232
  }
@@ -18507,22 +18507,22 @@ pe(Nc, "id", "category"), pe(Nc, "defaults", {
18507
18507
  }
18508
18508
  });
18509
18509
  function RE(t, e) {
18510
- const n = [], { bounds: i, step: a, min: s, max: o, precision: l, count: u, maxTicks: c, maxDigits: d, includeBounds: y } = t, f = a || 1, p = c - 1, { min: m, max: v } = e, g = !qe(s), S = !qe(o), O = !qe(u), k = (v - m) / (d + 1);
18511
- let C = Wh((v - m) / p / f) * f, b, A, x, L;
18512
- if (C < 1e-14 && !g && !S)
18510
+ const n = [], { bounds: i, step: a, min: s, max: o, precision: l, count: u, maxTicks: c, maxDigits: d, includeBounds: y } = t, f = a || 1, p = c - 1, { min: m, max: g } = e, v = !qe(s), S = !qe(o), E = !qe(u), k = (g - m) / (d + 1);
18511
+ let C = Wh((g - m) / p / f) * f, b, A, x, L;
18512
+ if (C < 1e-14 && !v && !S)
18513
18513
  return [
18514
18514
  {
18515
18515
  value: m
18516
18516
  },
18517
18517
  {
18518
- value: v
18518
+ value: g
18519
18519
  }
18520
18520
  ];
18521
- L = Math.ceil(v / C) - Math.floor(m / C), L > p && (C = Wh(L * C / p / f) * f), qe(l) || (b = Math.pow(10, l), C = Math.ceil(C * b) / b), i === "ticks" ? (A = Math.floor(m / C) * C, x = Math.ceil(v / C) * C) : (A = m, x = v), g && S && a && n4((o - s) / a, C / 1e3) ? (L = Math.round(Math.min((o - s) / C, c)), C = (o - s) / L, A = s, x = o) : O ? (A = g ? s : A, x = S ? o : x, L = u - 1, C = (x - A) / L) : (L = (x - A) / C, ns(L, Math.round(L), C / 1e3) ? L = Math.round(L) : L = Math.ceil(L));
18521
+ L = Math.ceil(g / C) - Math.floor(m / C), L > p && (C = Wh(L * C / p / f) * f), qe(l) || (b = Math.pow(10, l), C = Math.ceil(C * b) / b), i === "ticks" ? (A = Math.floor(m / C) * C, x = Math.ceil(g / C) * C) : (A = m, x = g), v && S && a && n4((o - s) / a, C / 1e3) ? (L = Math.round(Math.min((o - s) / C, c)), C = (o - s) / L, A = s, x = o) : E ? (A = v ? s : A, x = S ? o : x, L = u - 1, C = (x - A) / L) : (L = (x - A) / C, ns(L, Math.round(L), C / 1e3) ? L = Math.round(L) : L = Math.ceil(L));
18522
18522
  const B = Math.max(Gh(C), Gh(A));
18523
18523
  b = Math.pow(10, qe(l) ? B : l), A = Math.round(A * b) / b, x = Math.round(x * b) / b;
18524
18524
  let _ = 0;
18525
- for (g && (y && A !== s ? (n.push({
18525
+ for (v && (y && A !== s ? (n.push({
18526
18526
  value: s
18527
18527
  }), A < s && _++, ns(Math.round((A + _ * C) * b) / b, s, Wy(s, k, t)) && _++) : A < s && _++); _ < L; ++_) {
18528
18528
  const N = Math.round((A + _ * C) * b) / b;
@@ -18664,8 +18664,8 @@ function BE(t) {
18664
18664
  i[l] = u.padding;
18665
18665
  const c = t.getPointPosition(l, t.drawingArea + i[l], o), d = dt(u.font), y = DE(t.ctx, d, t._pointLabels[l]);
18666
18666
  r[l] = y;
18667
- const f = ln(t.getIndexAngle(l) + o), p = Math.round(Ed(f)), m = Gy(p, c.x, y.w, 0, 180), v = Gy(p, c.y, y.h, 90, 270);
18668
- jE(n, e, f, m, v);
18667
+ const f = ln(t.getIndexAngle(l) + o), p = Math.round(Ed(f)), m = Gy(p, c.x, y.w, 0, 180), g = Gy(p, c.y, y.h, 90, 270);
18668
+ jE(n, e, f, m, g);
18669
18669
  }
18670
18670
  t.setCenterPoint(e.l - n.l, n.r - e.r, e.t - n.t, n.b - e.b), t._pointLabelItems = UE(t, r, i);
18671
18671
  }
@@ -19311,7 +19311,7 @@ function e7(t, e) {
19311
19311
  },
19312
19312
  plugins: u
19313
19313
  }), Zy(e, p.current));
19314
- }, v = () => {
19314
+ }, g = () => {
19315
19315
  Zy(e, null), p.current && (p.current.destroy(), p.current = null);
19316
19316
  };
19317
19317
  return ge(() => {
@@ -19330,7 +19330,7 @@ function e7(t, e) {
19330
19330
  i,
19331
19331
  o.datasets
19332
19332
  ]), ge(() => {
19333
- p.current && (i ? (v(), setTimeout(m)) : p.current.update(d));
19333
+ p.current && (i ? (g(), setTimeout(m)) : p.current.update(d));
19334
19334
  }, [
19335
19335
  i,
19336
19336
  l,
@@ -19338,10 +19338,10 @@ function e7(t, e) {
19338
19338
  o.datasets,
19339
19339
  d
19340
19340
  ]), ge(() => {
19341
- p.current && (v(), setTimeout(m));
19341
+ p.current && (g(), setTimeout(m));
19342
19342
  }, [
19343
19343
  s
19344
- ]), ge(() => (m(), () => v()), []), /* @__PURE__ */ pa.createElement("canvas", {
19344
+ ]), ge(() => (m(), () => g()), []), /* @__PURE__ */ pa.createElement("canvas", {
19345
19345
  ref: f,
19346
19346
  role: "img",
19347
19347
  height: n,
@@ -19469,16 +19469,16 @@ function l7(t) {
19469
19469
  });
19470
19470
  }
19471
19471
  var u7 = function() {
19472
- var e, n, r, i, a = Sr(), s = a.data, o = a.isLoading, l = a.isRefetching, u = s == null ? void 0 : s.mentions, c = u == null || (e = u.mentionedInNumberOfQueries) === null || e === void 0 || (e = e.previous) === null || e === void 0 ? void 0 : e.difference, d = u == null ? void 0 : u.chart, y = Array.isArray(d == null ? void 0 : d.labels) ? d.labels : d != null && d.labels && ha(d.labels) === "object" ? Object.values(d.labels) : [], f = y.map(function(g) {
19473
- return l7(String(g));
19474
- }), p = s == null ? void 0 : s.numberOfQueries;
19475
- if (!p) {
19476
- var m = 0;
19477
- Array.isArray(d == null ? void 0 : d.datasets) && d.datasets.forEach(function(g) {
19478
- Array.isArray(g == null ? void 0 : g.data) && g.data.forEach(function(S) {
19479
- typeof S == "number" && S > m && (m = S);
19472
+ var e, n, r, i, a = Sr(), s = a.data, o = a.isLoading, l = a.isRefetching, u = s == null ? void 0 : s.mentions, c = u == null || (e = u.mentionedInNumberOfQueries) === null || e === void 0 || (e = e.previous) === null || e === void 0 ? void 0 : e.difference, d = u == null ? void 0 : u.chart, y = d == null || (n = d.datasets) === null || n === void 0 ? void 0 : n[0], f = Array.isArray(d == null ? void 0 : d.labels) ? d.labels : d != null && d.labels && ha(d.labels) === "object" ? Object.values(d.labels) : [], p = f.map(function(S) {
19473
+ return l7(String(S));
19474
+ }), m = s == null ? void 0 : s.numberOfQueries;
19475
+ if (!m) {
19476
+ var g = 0;
19477
+ Array.isArray(d == null ? void 0 : d.datasets) && d.datasets.forEach(function(S) {
19478
+ Array.isArray(S == null ? void 0 : S.data) && S.data.forEach(function(E) {
19479
+ typeof E == "number" && E > g && (g = E);
19480
19480
  });
19481
- }), p = m + 2;
19481
+ }), m = g + 2;
19482
19482
  }
19483
19483
  var v = ep(ep({}, Rc), {}, {
19484
19484
  responsive: !0,
@@ -19502,7 +19502,7 @@ var u7 = function() {
19502
19502
  },
19503
19503
  beginAtZero: !0,
19504
19504
  // Extend Y-axis to show a bit more range above the data
19505
- max: p,
19505
+ max: m,
19506
19506
  ticks: {
19507
19507
  stepSize: 1
19508
19508
  }
@@ -19518,16 +19518,12 @@ var u7 = function() {
19518
19518
  tooltip: "Tracks how your brand mentions have changed over time across the same query set."
19519
19519
  }
19520
19520
  ),
19521
- /* @__PURE__ */ h(Aa, { score: u == null || (n = u.mentionedInNumberOfQueries) === null || n === void 0 ? void 0 : n.value, total: s == null ? void 0 : s.numberOfQueries, delta: c, deltaSuffix: "since last analysis", suffix: "queries", isLoading: o || l })
19521
+ /* @__PURE__ */ h(Aa, { score: u == null || (r = u.mentionedInNumberOfQueries) === null || r === void 0 ? void 0 : r.value, total: s == null ? void 0 : s.numberOfQueries, delta: c, deltaSuffix: "since last analysis", suffix: "queries", isLoading: o || l })
19522
19522
  ] }),
19523
- Array.isArray(d == null || (r = d.datasets) === null || r === void 0 ? void 0 : r.data) && // @ts-expect-error - TODO: check api schema
19524
- (d == null || (i = d.datasets) === null || i === void 0 ? void 0 : i.data.length) < 2 ? /* @__PURE__ */ h(ct, { variant: "info", children: "One more analysis needed to show more insights." }) : /* @__PURE__ */ h("div", { className: "yst-h-72", children: /* @__PURE__ */ h(n7, { data: function() {
19525
- var g = {
19526
- labels: f,
19527
- datasets: Array.isArray(d == null ? void 0 : d.datasets) ? d.datasets : []
19528
- };
19529
- return g;
19530
- }(), options: v }) })
19523
+ y && y.data.length < 2 ? /* @__PURE__ */ h(ct, { variant: "info", children: "One more analysis needed to show more insights." }) : /* @__PURE__ */ h("div", { className: "yst-h-72", children: /* @__PURE__ */ h(n7, { data: {
19524
+ labels: p,
19525
+ datasets: (i = d == null ? void 0 : d.datasets) !== null && i !== void 0 ? i : []
19526
+ }, options: v }) })
19531
19527
  ] }) });
19532
19528
  }, c7 = function() {
19533
19529
  var e, n = Sr(), r = n.data, i = n.isLoading, a = n.isRefetching;
@@ -19697,12 +19693,12 @@ function w7(t, e) {
19697
19693
  return (e === "string" ? String : Number)(t);
19698
19694
  }
19699
19695
  function A7() {
19700
- var t, e, n, r, i, a, s, o, l, u, c, d, y, f, p, m, v, g, S, O, k, C, b, A = Sr(), x = A.data, L = A.isLoading, B = x == null || (t = x.scores) === null || t === void 0 ? void 0 : t.standardized, _ = (e = x == null || (n = x.mentions) === null || n === void 0 || (n = n.mentionedInNumberOfQueries) === null || n === void 0 ? void 0 : n.value) !== null && e !== void 0 ? e : 0, N = x == null || (r = x.mentions) === null || r === void 0 || (r = r.mentionedInNumberOfQueries) === null || r === void 0 || (r = r.previous) === null || r === void 0 ? void 0 : r.difference, F = (i = x == null || (a = x.scores) === null || a === void 0 || (a = a.standardized) === null || a === void 0 || (a = a.citations) === null || a === void 0 ? void 0 : a.value) !== null && i !== void 0 ? i : 0, I = (s = x == null || (o = x.citations) === null || o === void 0 || (o = o.total) === null || o === void 0 ? void 0 : o.value) !== null && s !== void 0 ? s : 0, P = x == null || (l = x.citations) === null || l === void 0 || (l = l.total) === null || l === void 0 || (l = l.previous) === null || l === void 0 ? void 0 : l.difference, R = x == null || (u = x.rankings) === null || u === void 0 || (u = u.list) === null || u === void 0 ? void 0 : u.find(function(se) {
19696
+ var t, e, n, r, i, a, s, o, l, u, c, d, y, f, p, m, g, v, S, E, k, C, b, A = Sr(), x = A.data, L = A.isLoading, B = x == null || (t = x.scores) === null || t === void 0 ? void 0 : t.standardized, _ = (e = x == null || (n = x.mentions) === null || n === void 0 || (n = n.mentionedInNumberOfQueries) === null || n === void 0 ? void 0 : n.value) !== null && e !== void 0 ? e : 0, N = x == null || (r = x.mentions) === null || r === void 0 || (r = r.mentionedInNumberOfQueries) === null || r === void 0 || (r = r.previous) === null || r === void 0 ? void 0 : r.difference, F = (i = x == null || (a = x.scores) === null || a === void 0 || (a = a.standardized) === null || a === void 0 || (a = a.citations) === null || a === void 0 ? void 0 : a.value) !== null && i !== void 0 ? i : 0, I = (s = x == null || (o = x.citations) === null || o === void 0 || (o = o.total) === null || o === void 0 ? void 0 : o.value) !== null && s !== void 0 ? s : 0, P = x == null || (l = x.citations) === null || l === void 0 || (l = l.total) === null || l === void 0 || (l = l.previous) === null || l === void 0 ? void 0 : l.difference, R = x == null || (u = x.rankings) === null || u === void 0 || (u = u.list) === null || u === void 0 ? void 0 : u.find(function(se) {
19701
19697
  var Le;
19702
19698
  return ((Le = se.brand) === null || Le === void 0 ? void 0 : Le.isSelf) === !0;
19703
19699
  }), D = (c = R == null || (d = R.rank) === null || d === void 0 ? void 0 : d.value) !== null && c !== void 0 ? c : "—", W = R == null || (y = R.rank) === null || y === void 0 || (y = y.previous) === null || y === void 0 ? void 0 : y.difference;
19704
19700
  W && (W = W * -1);
19705
- var Q = (f = B == null || (p = B.visibility) === null || p === void 0 ? void 0 : p.value) !== null && f !== void 0 ? f : 0, E = B == null || (m = B.visibility) === null || m === void 0 || (m = m.previous) === null || m === void 0 ? void 0 : m.value, q = (v = B == null || (g = B.ranking) === null || g === void 0 ? void 0 : g.value) !== null && v !== void 0 ? v : 0, U = (S = B == null || (O = B.sentiment) === null || O === void 0 ? void 0 : O.value) !== null && S !== void 0 ? S : 0, T = (k = B == null || (C = B.mentions) === null || C === void 0 ? void 0 : C.value) !== null && k !== void 0 ? k : 0, G = {
19701
+ var Q = (f = B == null || (p = B.visibility) === null || p === void 0 ? void 0 : p.value) !== null && f !== void 0 ? f : 0, O = B == null || (m = B.visibility) === null || m === void 0 || (m = m.previous) === null || m === void 0 ? void 0 : m.value, q = (g = B == null || (v = B.ranking) === null || v === void 0 ? void 0 : v.value) !== null && g !== void 0 ? g : 0, U = (S = B == null || (E = B.sentiment) === null || E === void 0 ? void 0 : E.value) !== null && S !== void 0 ? S : 0, T = (k = B == null || (C = B.mentions) === null || C === void 0 ? void 0 : C.value) !== null && k !== void 0 ? k : 0, G = {
19706
19702
  labels: ["Mentions", "Ranking", "Citations", "Sentiment"],
19707
19703
  datasets: [{
19708
19704
  data: [T, q, F, U],
@@ -19749,7 +19745,7 @@ function A7() {
19749
19745
  }, []), /* @__PURE__ */ h(Ae, { className: "yst-overflow-visible md:yst-col-span-2", children: /* @__PURE__ */ w(Ae.Content, { children: [
19750
19746
  /* @__PURE__ */ h(We, { size: "3", className: "yst-mb-2", children: "AI Visibility Index (AIVI)" }),
19751
19747
  /* @__PURE__ */ h(Aa, { score: Q, total: 100, isLoading: L }),
19752
- /* @__PURE__ */ h(h7, { current: Q, previous: E, className: "yst-mb-4" }),
19748
+ /* @__PURE__ */ h(h7, { current: Q, previous: O, className: "yst-mb-4" }),
19753
19749
  /* @__PURE__ */ w("div", { className: "yst-flex yst-flex-col yst-items-center yst-justify-around yst-justify-items-center yst-gap-8 md:yst-flex-row", children: [
19754
19750
  /* @__PURE__ */ w("div", { className: "yst-radar-chart-container yst-relative yst-aspect-square yst-h-full yst-w-full md:yst-flex md:yst-w-1/2 md:yst-items-center md:yst-justify-center", children: [
19755
19751
  /* @__PURE__ */ h(r7, { data: G, options: J }),
@@ -19871,14 +19867,14 @@ var mu = function() {
19871
19867
  return P == null ? void 0 : P.analyses;
19872
19868
  }
19873
19869
  }
19874
- }), p = f.data, m = f.isLoading, v = d == null ? void 0 : d.status, g = u || y || m, S = l && (l == null ? void 0 : l.length) > 0, O = !g && d && v === Tn.completed, k = te(!1), C = S7(k, 2), b = C[0], A = C[1], x = zt(null), L = zt(void 0), B = localStorage.getItem("yst_congratulations_toast_seen") === "true";
19870
+ }), p = f.data, m = f.isLoading, g = d == null ? void 0 : d.status, v = u || y || m, S = l && (l == null ? void 0 : l.length) > 0, E = !v && d && g === Tn.completed, k = te(!1), C = S7(k, 2), b = C[0], A = C[1], x = zt(null), L = zt(void 0), B = localStorage.getItem("yst_congratulations_toast_seen") === "true";
19875
19871
  ge(function() {
19876
- return O && !L.current && !B && (x.current = setTimeout(function() {
19872
+ return E && !L.current && !B && (x.current = setTimeout(function() {
19877
19873
  A(!0), localStorage.setItem("yst_congratulations_toast_seen", "true");
19878
- }, 1e4)), !O && L.current && (A(!1), x.current && (clearTimeout(x.current), x.current = null)), L.current = O, function() {
19874
+ }, 1e4)), !E && L.current && (A(!1), x.current && (clearTimeout(x.current), x.current = null)), L.current = E, function() {
19879
19875
  x.current && (clearTimeout(x.current), x.current = null);
19880
19876
  };
19881
- }, [O, B]);
19877
+ }, [E, B]);
19882
19878
  function _(F) {
19883
19879
  var I = F.children;
19884
19880
  if (typeof window == "undefined")
@@ -19916,11 +19912,11 @@ var mu = function() {
19916
19912
  };
19917
19913
  return u ? /* @__PURE__ */ h(Yr, {}) : S ? /* @__PURE__ */ w("div", { className: "yst-space-y-4", children: [
19918
19914
  /* @__PURE__ */ h(w6, {}),
19919
- g && !u && /* @__PURE__ */ w("div", { children: [
19915
+ v && !u && /* @__PURE__ */ w("div", { children: [
19920
19916
  /* @__PURE__ */ h(We, { size: "2", className: "yst-mb-2", children: "Your brand analysis is loading" }),
19921
19917
  /* @__PURE__ */ h("div", { className: "yst-inline-flex yst-w-full yst-items-center yst-justify-center", children: /* @__PURE__ */ h(ya, { size: "8", variant: "primary", className: "yst-ml-2" }) })
19922
19918
  ] }),
19923
- O && /* @__PURE__ */ w("div", { className: "yst-space-y-4", children: [
19919
+ E && /* @__PURE__ */ w("div", { className: "yst-space-y-4", children: [
19924
19920
  /* @__PURE__ */ w("div", { className: "yst-flex yst-flex-col yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-between", children: [
19925
19921
  /* @__PURE__ */ h(We, { size: "2", children: "Your brand analysis" }),
19926
19922
  /* @__PURE__ */ w("div", { className: "yst-flex yst-flex-wrap yst-gap-2", children: [
@@ -20118,16 +20114,16 @@ function Q7(t) {
20118
20114
  if (Array.isArray(t)) return t;
20119
20115
  }
20120
20116
  var kM = function(e) {
20121
- var n = e.isRtl, r = n === void 0 ? !1 : n, i = e.className, a = e.style, s = e.token, o = s === void 0 ? "" : s, l = e.apiUrl, u = e.env, c = e.DebugInfo, d = e.basename, y = d === void 0 ? "/" : d, f = e.subpath, p = f === void 0 ? "/" : f, m = e.onNavigate, v = m === void 0 ? function() {
20122
- } : m, g = e.onLogout, S = g === void 0 ? function() {
20123
- } : g, O = e.onAddSubscription, k = O === void 0 ? function() {
20124
- } : O, C = function(N, F) {
20117
+ var n = e.isRtl, r = n === void 0 ? !1 : n, i = e.className, a = e.style, s = e.token, o = s === void 0 ? "" : s, l = e.apiUrl, u = e.env, c = e.DebugInfo, d = e.basename, y = d === void 0 ? "/" : d, f = e.subpath, p = f === void 0 ? "/" : f, m = e.onNavigate, g = m === void 0 ? function() {
20118
+ } : m, v = e.onLogout, S = v === void 0 ? function() {
20119
+ } : v, E = e.onAddSubscription, k = E === void 0 ? function() {
20120
+ } : E, C = function(N, F) {
20125
20121
  var I = N.endsWith("/") ? N.slice(0, -1) : N, P = F.startsWith("/") ? F : "/".concat(F);
20126
20122
  return I + P || "/";
20127
20123
  }, b = te(!!(o || l)), A = H7(b, 2), x = A[0], L = A[1], B = {
20128
20124
  onAddSubscription: k,
20129
20125
  onLogout: S,
20130
- onNavigate: v,
20126
+ onNavigate: g,
20131
20127
  env: u,
20132
20128
  DebugInfo: c,
20133
20129
  basename: y,
@@ -20138,7 +20134,7 @@ var kM = function(e) {
20138
20134
  return o;
20139
20135
  } : o), L(!1);
20140
20136
  }, [l, o]), x ? /* @__PURE__ */ h("div", { className: i, style: a, children: /* @__PURE__ */ h(ya, {}) }) : /* @__PURE__ */ h("div", { className: i, style: a, children: /* @__PURE__ */ w(p2, { initialEntries: [C(y, p)], basename: y || "/", children: [
20141
- /* @__PURE__ */ h(U7, { subpath: p, onNavigate: v }),
20137
+ /* @__PURE__ */ h(U7, { subpath: p, onNavigate: g }),
20142
20138
  /* @__PURE__ */ h(Sb, { context: {
20143
20139
  isRtl: r
20144
20140
  }, children: /* @__PURE__ */ h(z7, { DebugInfo: c, hostAppProps: B }) })
@@ -20164,9 +20160,9 @@ function Dc(t) {
20164
20160
  }
20165
20161
  function Za() {
20166
20162
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
20167
- function a(f, p, m, v) {
20168
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
20169
- return tn(S, "_invoke", function(O, k, C) {
20163
+ function a(f, p, m, g) {
20164
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
20165
+ return tn(S, "_invoke", function(E, k, C) {
20170
20166
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
20171
20167
  return b = P, A = 0, x = t, N.n = R, s;
20172
20168
  } };
@@ -20190,7 +20186,7 @@ function Za() {
20190
20186
  x = e.value, A < 2 && (A = 0);
20191
20187
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
20192
20188
  b = t;
20193
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
20189
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
20194
20190
  } catch (D) {
20195
20191
  b = t, A = 1, x = D;
20196
20192
  } finally {
@@ -20199,7 +20195,7 @@ function Za() {
20199
20195
  }
20200
20196
  return { value: e, done: _ };
20201
20197
  };
20202
- }(f, m, v), !0), S;
20198
+ }(f, m, g), !0), S;
20203
20199
  }
20204
20200
  var s = {};
20205
20201
  function o() {
@@ -20303,15 +20299,15 @@ function X7(t) {
20303
20299
  if (Array.isArray(t)) return t;
20304
20300
  }
20305
20301
  var J7 = function(e) {
20306
- var n = e.isOpen, r = e.onClose, i = e.groupToEdit, a = e.allBrands, s = Mt(), o = s.brandId, l = s.analysisId, u = te(""), c = gu(u, 2), d = c[0], y = c[1], f = te([]), p = gu(f, 2), m = p[0], v = p[1], g = te(!1), S = gu(g, 2), O = S[0], k = S[1], C = Gt();
20302
+ var n = e.isOpen, r = e.onClose, i = e.groupToEdit, a = e.allBrands, s = Mt(), o = s.brandId, l = s.analysisId, u = te(""), c = gu(u, 2), d = c[0], y = c[1], f = te([]), p = gu(f, 2), m = p[0], g = p[1], v = te(!1), S = gu(v, 2), E = S[0], k = S[1], C = Gt();
20307
20303
  ge(function() {
20308
20304
  if (n && i && i.type === "group") {
20309
20305
  var Q;
20310
20306
  y(String(i.name || ""));
20311
- var E = ((Q = i.groupedBrands) === null || Q === void 0 ? void 0 : Q.map(function(q) {
20307
+ var O = ((Q = i.groupedBrands) === null || Q === void 0 ? void 0 : Q.map(function(q) {
20312
20308
  return String(q.id || "");
20313
20309
  })) || [];
20314
- v(E);
20310
+ g(O);
20315
20311
  }
20316
20312
  }, [n, i]);
20317
20313
  var b = X0({
@@ -20347,14 +20343,14 @@ var J7 = function(e) {
20347
20343
  }
20348
20344
  }, q);
20349
20345
  }));
20350
- function E() {
20346
+ function O() {
20351
20347
  return Q.apply(this, arguments);
20352
20348
  }
20353
- return E;
20349
+ return O;
20354
20350
  }(),
20355
20351
  // TODO: Handle error states
20356
- onError: function(E) {
20357
- console.error("Error creating brand group:", E);
20352
+ onError: function(O) {
20353
+ console.error("Error creating brand group:", O);
20358
20354
  }
20359
20355
  }
20360
20356
  }), A = b.mutate, x = b.isPending, L = Kw({
@@ -20390,13 +20386,13 @@ var J7 = function(e) {
20390
20386
  }
20391
20387
  }, q);
20392
20388
  }));
20393
- function E() {
20389
+ function O() {
20394
20390
  return Q.apply(this, arguments);
20395
20391
  }
20396
- return E;
20392
+ return O;
20397
20393
  }(),
20398
- onError: function(E) {
20399
- console.error("Error deleting brand group:", E), window.alert(
20394
+ onError: function(O) {
20395
+ console.error("Error deleting brand group:", O), window.alert(
20400
20396
  // TODO: improve this UX when we know more about why this might fail
20401
20397
  "An error occurred while ungrouping the brands. Please try again later."
20402
20398
  );
@@ -20411,18 +20407,18 @@ var J7 = function(e) {
20411
20407
  }
20412
20408
  });
20413
20409
  }, I = function() {
20414
- y(""), v([]), r();
20410
+ y(""), g([]), r();
20415
20411
  }, P = function() {
20416
- return m.map(function(E) {
20412
+ return m.map(function(O) {
20417
20413
  if (i && i.type === "group") {
20418
20414
  var q, U = (q = i.groupedBrands) === null || q === void 0 ? void 0 : q.find(function(G) {
20419
- return String(G.id) === E;
20415
+ return String(G.id) === O;
20420
20416
  });
20421
20417
  if (U)
20422
20418
  return U.name || "";
20423
20419
  }
20424
20420
  var T = a.find(function(G) {
20425
- return String(G.id) === E;
20421
+ return String(G.id) === O;
20426
20422
  });
20427
20423
  return T ? T.type === "group" ? "Group: ".concat(T.name) : T.name || "" : "";
20428
20424
  }).filter(Boolean);
@@ -20441,7 +20437,7 @@ var J7 = function(e) {
20441
20437
  });
20442
20438
  };
20443
20439
  return !i || i.type !== "group" ? null : /* @__PURE__ */ w(we, { children: [
20444
- /* @__PURE__ */ h(re, { isOpen: n, onClose: O ? function() {
20440
+ /* @__PURE__ */ h(re, { isOpen: n, onClose: E ? function() {
20445
20441
  } : I, as: "div", children: /* @__PURE__ */ h(re.Panel, { children: /* @__PURE__ */ w(re.Container, { children: [
20446
20442
  /* @__PURE__ */ h(re.Container.Header, { className: "yst-mb-4", children: /* @__PURE__ */ h(re.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Edit brand group" }) }),
20447
20443
  /* @__PURE__ */ w(re.Container.Content, { className: "yst-mb-8 yst-space-y-4", children: [
@@ -20456,8 +20452,8 @@ var J7 = function(e) {
20456
20452
  /* @__PURE__ */ h(Vm, { readOnly: !0, id: "editGroupedBrands", label: "Grouped brands", tags: P(), onRemoveTag: function(Q) {
20457
20453
  if (m.length < 2)
20458
20454
  return k(!0);
20459
- v(function(E) {
20460
- return E.filter(function(q, U) {
20455
+ g(function(O) {
20456
+ return O.filter(function(q, U) {
20461
20457
  return U !== Q;
20462
20458
  });
20463
20459
  });
@@ -20474,7 +20470,7 @@ var J7 = function(e) {
20474
20470
  ] })
20475
20471
  ] }) })
20476
20472
  ] }) }) }),
20477
- /* @__PURE__ */ h(Tl, { isOpen: O, onClose: D, onConfirm: W, disabled: !N || _, isLoading: _, title: "Ungroup this brand group?", description: /* @__PURE__ */ w(we, { children: [
20473
+ /* @__PURE__ */ h(Tl, { isOpen: E, onClose: D, onConfirm: W, disabled: !N || _, isLoading: _, title: "Ungroup this brand group?", description: /* @__PURE__ */ w(we, { children: [
20478
20474
  /* @__PURE__ */ h("p", { children: "The group will be removed, but the brands inside will remain in your brand list." }),
20479
20475
  /* @__PURE__ */ h("p", { children: "This action cannot be undone. To create a new group with these brands, simply select them and create a new group." })
20480
20476
  ] }), confirmText: "Yes, ungroup" })
@@ -20482,9 +20478,9 @@ var J7 = function(e) {
20482
20478
  };
20483
20479
  function Bc() {
20484
20480
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
20485
- function a(f, p, m, v) {
20486
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
20487
- return nn(S, "_invoke", function(O, k, C) {
20481
+ function a(f, p, m, g) {
20482
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
20483
+ return nn(S, "_invoke", function(E, k, C) {
20488
20484
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
20489
20485
  return b = P, A = 0, x = t, N.n = R, s;
20490
20486
  } };
@@ -20508,7 +20504,7 @@ function Bc() {
20508
20504
  x = e.value, A < 2 && (A = 0);
20509
20505
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
20510
20506
  b = t;
20511
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
20507
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
20512
20508
  } catch (D) {
20513
20509
  b = t, A = 1, x = D;
20514
20510
  } finally {
@@ -20517,7 +20513,7 @@ function Bc() {
20517
20513
  }
20518
20514
  return { value: e, done: _ };
20519
20515
  };
20520
- }(f, m, v), !0), S;
20516
+ }(f, m, g), !0), S;
20521
20517
  }
20522
20518
  var s = {};
20523
20519
  function o() {
@@ -20621,11 +20617,11 @@ function nO(t) {
20621
20617
  if (Array.isArray(t)) return t;
20622
20618
  }
20623
20619
  var rO = function(e) {
20624
- var n = e.isOpen, r = e.onClose, i = e.brandId, a = e.brandsToGroup, s = e.onGroupCreated, o = Gt(), l = Mt(), u = l.analysisId, c = te(""), d = up(c, 2), y = d[0], f = d[1], p = te([]), m = up(p, 2), v = m[0], g = m[1];
20620
+ var n = e.isOpen, r = e.onClose, i = e.brandId, a = e.brandsToGroup, s = e.onGroupCreated, o = Gt(), l = Mt(), u = l.analysisId, c = te(""), d = up(c, 2), y = d[0], f = d[1], p = te([]), m = up(p, 2), g = m[0], v = m[1];
20625
20621
  ge(function() {
20626
20622
  if (n && a.length > 0) {
20627
20623
  var L, B = (L = a[0]) === null || L === void 0 ? void 0 : L.name;
20628
- f(String(B || "New Group")), g(a.map(function(_) {
20624
+ f(String(B || "New Group")), v(a.map(function(_) {
20629
20625
  var N;
20630
20626
  return String((N = _.id) !== null && N !== void 0 ? N : "");
20631
20627
  }));
@@ -20675,11 +20671,11 @@ var rO = function(e) {
20675
20671
  console.error("Error creating group:", B);
20676
20672
  }
20677
20673
  }
20678
- }), O = S.mutate, k = S.isPending, C = function() {
20679
- f(""), g([]), r();
20674
+ }), E = S.mutate, k = S.isPending, C = function() {
20675
+ f(""), v([]), r();
20680
20676
  }, b = function() {
20681
- if (!(!y.trim() || v.length === 0)) {
20682
- var B = v.flatMap(function(_) {
20677
+ if (!(!y.trim() || g.length === 0)) {
20678
+ var B = g.flatMap(function(_) {
20683
20679
  var N = a.find(function(F) {
20684
20680
  return String(F.id) === _;
20685
20681
  });
@@ -20687,7 +20683,7 @@ var rO = function(e) {
20687
20683
  return String(F.id);
20688
20684
  }) : _;
20689
20685
  });
20690
- O({
20686
+ E({
20691
20687
  brandId: i,
20692
20688
  data: {
20693
20689
  groupName: y.trim(),
@@ -20698,13 +20694,13 @@ var rO = function(e) {
20698
20694
  });
20699
20695
  }
20700
20696
  }, A = function(B) {
20701
- g(function(_) {
20697
+ v(function(_) {
20702
20698
  var N = _.filter(function(F) {
20703
20699
  return F !== B;
20704
20700
  });
20705
20701
  return N.length === 0 && C(), N;
20706
20702
  });
20707
- }, x = v.map(function(L) {
20703
+ }, x = g.map(function(L) {
20708
20704
  var B = a.find(function(_) {
20709
20705
  return String(_.id) === L;
20710
20706
  });
@@ -20720,18 +20716,18 @@ var rO = function(e) {
20720
20716
  }, placeholder: "Enter group name", className: "yst-w-full" })
20721
20717
  ] }),
20722
20718
  /* @__PURE__ */ w("div", { children: [
20723
- /* @__PURE__ */ h(Vm, { readOnly: !0, id: "groupedBrands", label: "Brands in group (".concat(v.length, ")"), tags: x, onRemoveTag: function(L) {
20724
- var B = v[L];
20719
+ /* @__PURE__ */ h(Vm, { readOnly: !0, id: "groupedBrands", label: "Brands in group (".concat(g.length, ")"), tags: x, onRemoveTag: function(L) {
20720
+ var B = g[L];
20725
20721
  B && A(B);
20726
20722
  }, onAddTag: function() {
20727
20723
  } }),
20728
- v.length === 0 && /* @__PURE__ */ h("p", { className: "yst-text-sm yst-italic yst-text-gray-500", children: "No brands selected" })
20724
+ g.length === 0 && /* @__PURE__ */ h("p", { className: "yst-text-sm yst-italic yst-text-gray-500", children: "No brands selected" })
20729
20725
  ] }),
20730
20726
  /* @__PURE__ */ h("p", { children: "Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped." })
20731
20727
  ] }),
20732
20728
  /* @__PURE__ */ h(re.Container.Footer, { className: "yst-pt-4", children: /* @__PURE__ */ w("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
20733
20729
  /* @__PURE__ */ h(de, { variant: "secondary", onClick: C, disabled: k, children: "Cancel" }),
20734
- /* @__PURE__ */ h(de, { variant: "primary", onClick: b, disabled: !y.trim() || v.length === 0 || k, children: k ? "Saving..." : "Save group" })
20730
+ /* @__PURE__ */ h(de, { variant: "primary", onClick: b, disabled: !y.trim() || g.length === 0 || k, children: k ? "Saving..." : "Save group" })
20735
20731
  ] }) })
20736
20732
  ] }) }) });
20737
20733
  };
@@ -20838,18 +20834,18 @@ function fO(t) {
20838
20834
  if (Array.isArray(t)) return t;
20839
20835
  }
20840
20836
  var hO = function() {
20841
- var e, n = kt(), r = te(!1), i = Un(r, 2), a = i[0], s = i[1], o = te({}), l = Un(o, 2), u = l[0], c = l[1], d = te(""), y = Un(d, 2), f = y[0], p = y[1], m = te(1), v = Un(m, 2), g = v[0], S = v[1], O = te({}), k = Un(O, 2), C = k[0], b = k[1], A = te(!1), x = Un(A, 2), L = x[0], B = x[1], _ = te(!1), N = Un(_, 2), F = N[0], I = N[1], P = te(null), R = Un(P, 2), D = R[0], W = R[1], Q = Mt(), E = Q.brandId;
20837
+ var e, n = kt(), r = te(!1), i = Un(r, 2), a = i[0], s = i[1], o = te({}), l = Un(o, 2), u = l[0], c = l[1], d = te(""), y = Un(d, 2), f = y[0], p = y[1], m = te(1), g = Un(m, 2), v = g[0], S = g[1], E = te({}), k = Un(E, 2), C = k[0], b = k[1], A = te(!1), x = Un(A, 2), L = x[0], B = x[1], _ = te(!1), N = Un(_, 2), F = N[0], I = N[1], P = te(null), R = Un(P, 2), D = R[0], W = R[1], Q = Mt(), O = Q.brandId;
20842
20838
  function q(ve) {
20843
20839
  return String(ve.id);
20844
20840
  }
20845
- var U = Ww(E, {
20841
+ var U = Ww(O, {
20846
20842
  query: {
20847
- enabled: !!E
20843
+ enabled: !!O
20848
20844
  }
20849
20845
  }), T = U.data, G = U.isLoading, J = 10, V = (T == null || (e = T.data) === null || e === void 0 ? void 0 : e.associatedBrands.filter(function(ve) {
20850
20846
  var be, Pe;
20851
20847
  return f ? ((be = (Pe = ve.name) === null || Pe === void 0 ? void 0 : Pe.toLowerCase()) !== null && be !== void 0 ? be : "").includes(f.toLowerCase()) : !0;
20852
- })) || [], X = Math.ceil(V.length / J), ce = (g - 1) * J, fe = sO(V).sort(function(ve, be) {
20848
+ })) || [], X = Math.ceil(V.length / J), ce = (v - 1) * J, fe = sO(V).sort(function(ve, be) {
20853
20849
  return ve.type === "group" && be.type !== "group" ? -1 : ve.type !== "group" && be.type === "group" ? 1 : 0;
20854
20850
  }), se = fe.slice(ce, ce + J), Le = function(be) {
20855
20851
  var Pe = V.find(function(z) {
@@ -21031,7 +21027,7 @@ var hO = function() {
21031
21027
  /* @__PURE__ */ h(c3, {}),
21032
21028
  " Group brands"
21033
21029
  ] }),
21034
- /* @__PURE__ */ h(Rs, { variant: "text", current: g, total: X, onNavigate: S, className: "yst-flex-row", screenReaderTextPrevious: "Previous page", screenReaderTextNext: "Next page" })
21030
+ /* @__PURE__ */ h(Rs, { variant: "text", current: v, total: X, onNavigate: S, className: "yst-flex-row", screenReaderTextPrevious: "Previous page", screenReaderTextNext: "Next page" })
21035
21031
  ] })
21036
21032
  ] }),
21037
21033
  /* @__PURE__ */ h(bd, { children: /* @__PURE__ */ h("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: a ? /* @__PURE__ */ w(we, { children: [
@@ -21043,9 +21039,9 @@ var hO = function() {
21043
21039
  // immediately when brands are grouped or excluded, so this
21044
21040
  // provides a way back to the analysis and does not perform
21045
21041
  // any action
21046
- /* @__PURE__ */ h(de, { as: wn, to: "/brands/".concat(E), variant: "tertiary", className: "yst-mb-0", children: "Return to analysis" })
21042
+ /* @__PURE__ */ h(de, { as: wn, to: "/brands/".concat(O), variant: "tertiary", className: "yst-mb-0", children: "Return to analysis" })
21047
21043
  ) }) }),
21048
- /* @__PURE__ */ h(rO, { isOpen: L, onClose: Rn, brandId: E, brandsToGroup: V.filter(function(ve) {
21044
+ /* @__PURE__ */ h(rO, { isOpen: L, onClose: Rn, brandId: O, brandsToGroup: V.filter(function(ve) {
21049
21045
  return Z.includes(q(ve));
21050
21046
  }), onGroupCreated: xt }),
21051
21047
  /* @__PURE__ */ h(J7, { isOpen: F, onClose: er, groupToEdit: D, allBrands: V })
@@ -22254,39 +22250,39 @@ function LO() {
22254
22250
  gp = 1;
22255
22251
  var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, a = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
22256
22252
  `, u = "/", c = "*", d = "", y = "comment", f = "declaration";
22257
- function p(v, g) {
22258
- if (typeof v != "string")
22253
+ function p(g, v) {
22254
+ if (typeof g != "string")
22259
22255
  throw new TypeError("First argument must be a string");
22260
- if (!v) return [];
22261
- g = g || {};
22262
- var S = 1, O = 1;
22256
+ if (!g) return [];
22257
+ v = v || {};
22258
+ var S = 1, E = 1;
22263
22259
  function k(I) {
22264
22260
  var P = I.match(e);
22265
22261
  P && (S += P.length);
22266
22262
  var R = I.lastIndexOf(l);
22267
- O = ~R ? I.length - R : O + I.length;
22263
+ E = ~R ? I.length - R : E + I.length;
22268
22264
  }
22269
22265
  function C() {
22270
- var I = { line: S, column: O };
22266
+ var I = { line: S, column: E };
22271
22267
  return function(P) {
22272
22268
  return P.position = new b(I), L(), P;
22273
22269
  };
22274
22270
  }
22275
22271
  function b(I) {
22276
- this.start = I, this.end = { line: S, column: O }, this.source = g.source;
22272
+ this.start = I, this.end = { line: S, column: E }, this.source = v.source;
22277
22273
  }
22278
- b.prototype.content = v;
22274
+ b.prototype.content = g;
22279
22275
  function A(I) {
22280
22276
  var P = new Error(
22281
- g.source + ":" + S + ":" + O + ": " + I
22277
+ v.source + ":" + S + ":" + E + ": " + I
22282
22278
  );
22283
- if (P.reason = I, P.filename = g.source, P.line = S, P.column = O, P.source = v, !g.silent) throw P;
22279
+ if (P.reason = I, P.filename = v.source, P.line = S, P.column = E, P.source = g, !v.silent) throw P;
22284
22280
  }
22285
22281
  function x(I) {
22286
- var P = I.exec(v);
22282
+ var P = I.exec(g);
22287
22283
  if (P) {
22288
22284
  var R = P[0];
22289
- return k(R), v = v.slice(R.length), P;
22285
+ return k(R), g = g.slice(R.length), P;
22290
22286
  }
22291
22287
  }
22292
22288
  function L() {
@@ -22300,13 +22296,13 @@ function LO() {
22300
22296
  }
22301
22297
  function _() {
22302
22298
  var I = C();
22303
- if (!(u != v.charAt(0) || c != v.charAt(1))) {
22304
- for (var P = 2; d != v.charAt(P) && (c != v.charAt(P) || u != v.charAt(P + 1)); )
22299
+ if (!(u != g.charAt(0) || c != g.charAt(1))) {
22300
+ for (var P = 2; d != g.charAt(P) && (c != g.charAt(P) || u != g.charAt(P + 1)); )
22305
22301
  ++P;
22306
- if (P += 2, d === v.charAt(P - 1))
22302
+ if (P += 2, d === g.charAt(P - 1))
22307
22303
  return A("End of comment missing");
22308
- var R = v.slice(2, P - 2);
22309
- return O += 2, k(R), v = v.slice(P), O += 2, I({
22304
+ var R = g.slice(2, P - 2);
22305
+ return E += 2, k(R), g = g.slice(P), E += 2, I({
22310
22306
  type: y,
22311
22307
  comment: R
22312
22308
  });
@@ -22333,8 +22329,8 @@ function LO() {
22333
22329
  }
22334
22330
  return L(), F();
22335
22331
  }
22336
- function m(v) {
22337
- return v ? v.replace(o, d) : d;
22332
+ function m(g) {
22333
+ return g ? g.replace(o, d) : d;
22338
22334
  }
22339
22335
  return bu = p, bu;
22340
22336
  }
@@ -23012,14 +23008,14 @@ function b9(t) {
23012
23008
  const e = this, n = [];
23013
23009
  let r = 0, i, a, s;
23014
23010
  return o;
23015
- function o(O) {
23011
+ function o(E) {
23016
23012
  if (r < n.length) {
23017
23013
  const k = n[r];
23018
- return e.containerState = k[1], t.attempt(k[0].continuation, l, u)(O);
23014
+ return e.containerState = k[1], t.attempt(k[0].continuation, l, u)(E);
23019
23015
  }
23020
- return u(O);
23016
+ return u(E);
23021
23017
  }
23022
- function l(O) {
23018
+ function l(E) {
23023
23019
  if (r++, e.containerState._closeFlow) {
23024
23020
  e.containerState._closeFlow = void 0, i && S();
23025
23021
  const k = e.events.length;
@@ -23029,59 +23025,59 @@ function b9(t) {
23029
23025
  b = e.events[C][1].end;
23030
23026
  break;
23031
23027
  }
23032
- g(r);
23028
+ v(r);
23033
23029
  let A = k;
23034
23030
  for (; A < e.events.length; )
23035
23031
  e.events[A][1].end = {
23036
23032
  ...b
23037
23033
  }, A++;
23038
- return Jn(e.events, C + 1, 0, e.events.slice(k)), e.events.length = A, u(O);
23034
+ return Jn(e.events, C + 1, 0, e.events.slice(k)), e.events.length = A, u(E);
23039
23035
  }
23040
- return o(O);
23036
+ return o(E);
23041
23037
  }
23042
- function u(O) {
23038
+ function u(E) {
23043
23039
  if (r === n.length) {
23044
23040
  if (!i)
23045
- return y(O);
23041
+ return y(E);
23046
23042
  if (i.currentConstruct && i.currentConstruct.concrete)
23047
- return p(O);
23043
+ return p(E);
23048
23044
  e.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
23049
23045
  }
23050
- return e.containerState = {}, t.check(Ep, c, d)(O);
23046
+ return e.containerState = {}, t.check(Ep, c, d)(E);
23051
23047
  }
23052
- function c(O) {
23053
- return i && S(), g(r), y(O);
23048
+ function c(E) {
23049
+ return i && S(), v(r), y(E);
23054
23050
  }
23055
- function d(O) {
23056
- return e.parser.lazy[e.now().line] = r !== n.length, s = e.now().offset, p(O);
23051
+ function d(E) {
23052
+ return e.parser.lazy[e.now().line] = r !== n.length, s = e.now().offset, p(E);
23057
23053
  }
23058
- function y(O) {
23059
- return e.containerState = {}, t.attempt(Ep, f, p)(O);
23054
+ function y(E) {
23055
+ return e.containerState = {}, t.attempt(Ep, f, p)(E);
23060
23056
  }
23061
- function f(O) {
23062
- return r++, n.push([e.currentConstruct, e.containerState]), y(O);
23057
+ function f(E) {
23058
+ return r++, n.push([e.currentConstruct, e.containerState]), y(E);
23063
23059
  }
23064
- function p(O) {
23065
- if (O === null) {
23066
- i && S(), g(0), t.consume(O);
23060
+ function p(E) {
23061
+ if (E === null) {
23062
+ i && S(), v(0), t.consume(E);
23067
23063
  return;
23068
23064
  }
23069
23065
  return i = i || e.parser.flow(e.now()), t.enter("chunkFlow", {
23070
23066
  _tokenizer: i,
23071
23067
  contentType: "flow",
23072
23068
  previous: a
23073
- }), m(O);
23069
+ }), m(E);
23074
23070
  }
23075
- function m(O) {
23076
- if (O === null) {
23077
- v(t.exit("chunkFlow"), !0), g(0), t.consume(O);
23071
+ function m(E) {
23072
+ if (E === null) {
23073
+ g(t.exit("chunkFlow"), !0), v(0), t.consume(E);
23078
23074
  return;
23079
23075
  }
23080
- return me(O) ? (t.consume(O), v(t.exit("chunkFlow")), r = 0, e.interrupt = void 0, o) : (t.consume(O), m);
23076
+ return me(E) ? (t.consume(E), g(t.exit("chunkFlow")), r = 0, e.interrupt = void 0, o) : (t.consume(E), m);
23081
23077
  }
23082
- function v(O, k) {
23083
- const C = e.sliceStream(O);
23084
- if (k && C.push(null), O.previous = a, a && (a.next = O), a = O, i.defineSkip(O.start), i.write(C), e.parser.lazy[O.start.line]) {
23078
+ function g(E, k) {
23079
+ const C = e.sliceStream(E);
23080
+ if (k && C.push(null), E.previous = a, a && (a.next = E), a = E, i.defineSkip(E.start), i.write(C), e.parser.lazy[E.start.line]) {
23085
23081
  let b = i.events.length;
23086
23082
  for (; b--; )
23087
23083
  if (
@@ -23101,20 +23097,20 @@ function b9(t) {
23101
23097
  }
23102
23098
  L = !0;
23103
23099
  }
23104
- for (g(r), b = A; b < e.events.length; )
23100
+ for (v(r), b = A; b < e.events.length; )
23105
23101
  e.events[b][1].end = {
23106
23102
  ...B
23107
23103
  }, b++;
23108
23104
  Jn(e.events, x + 1, 0, e.events.slice(A)), e.events.length = b;
23109
23105
  }
23110
23106
  }
23111
- function g(O) {
23107
+ function v(E) {
23112
23108
  let k = n.length;
23113
- for (; k-- > O; ) {
23109
+ for (; k-- > E; ) {
23114
23110
  const C = n[k];
23115
23111
  e.containerState = C[1], C[0].exit.call(e, t);
23116
23112
  }
23117
- n.length = O;
23113
+ n.length = E;
23118
23114
  }
23119
23115
  function S() {
23120
23116
  i.write([null]), a = void 0, i = void 0, e.containerState._closeFlow = void 0;
@@ -23384,19 +23380,19 @@ function N9(t, e, n) {
23384
23380
  return b === null || me(b) ? (t.exit("chunkString"), t.exit("codeFencedFenceMeta"), d(b)) : b === 96 && b === o ? n(b) : (t.consume(b), p);
23385
23381
  }
23386
23382
  function m(b) {
23387
- return t.attempt(i, k, v)(b);
23388
- }
23389
- function v(b) {
23390
- return t.enter("lineEnding"), t.consume(b), t.exit("lineEnding"), g;
23383
+ return t.attempt(i, k, g)(b);
23391
23384
  }
23392
23385
  function g(b) {
23386
+ return t.enter("lineEnding"), t.consume(b), t.exit("lineEnding"), v;
23387
+ }
23388
+ function v(b) {
23393
23389
  return a > 0 && De(b) ? Ke(t, S, "linePrefix", a + 1)(b) : S(b);
23394
23390
  }
23395
23391
  function S(b) {
23396
- return b === null || me(b) ? t.check(Tp, m, k)(b) : (t.enter("codeFlowValue"), O(b));
23392
+ return b === null || me(b) ? t.check(Tp, m, k)(b) : (t.enter("codeFlowValue"), E(b));
23397
23393
  }
23398
- function O(b) {
23399
- return b === null || me(b) ? (t.exit("codeFlowValue"), S(b)) : (t.consume(b), O);
23394
+ function E(b) {
23395
+ return b === null || me(b) ? (t.exit("codeFlowValue"), S(b)) : (t.consume(b), E);
23400
23396
  }
23401
23397
  function k(b) {
23402
23398
  return t.exit("codeFenced"), e(b);
@@ -23714,7 +23710,7 @@ function U9(t, e) {
23714
23710
  s || (s = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
23715
23711
  const o = s.events, l = [], u = {};
23716
23712
  let c, d, y = -1, f = n, p = 0, m = 0;
23717
- const v = [m];
23713
+ const g = [m];
23718
23714
  for (; f; ) {
23719
23715
  for (; t.get(++i)[1] !== f; )
23720
23716
  ;
@@ -23722,10 +23718,10 @@ function U9(t, e) {
23722
23718
  }
23723
23719
  for (f = n; ++y < o.length; )
23724
23720
  // Find a void token that includes a break.
23725
- o[y][0] === "exit" && o[y - 1][0] === "enter" && o[y][1].type === o[y - 1][1].type && o[y][1].start.line !== o[y][1].end.line && (m = y + 1, v.push(m), f._tokenizer = void 0, f.previous = void 0, f = f.next);
23726
- for (s.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : v.pop(), y = v.length; y--; ) {
23727
- const g = o.slice(v[y], v[y + 1]), S = a.pop();
23728
- l.push([S, S + g.length - 1]), t.splice(S, 2, g);
23721
+ o[y][0] === "exit" && o[y - 1][0] === "enter" && o[y][1].type === o[y - 1][1].type && o[y][1].start.line !== o[y][1].end.line && (m = y + 1, g.push(m), f._tokenizer = void 0, f.previous = void 0, f = f.next);
23722
+ for (s.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : g.pop(), y = g.length; y--; ) {
23723
+ const v = o.slice(g[y], g[y + 1]), S = a.pop();
23724
+ l.push([S, S + v.length - 1]), t.splice(S, 2, v);
23729
23725
  }
23730
23726
  for (l.reverse(), y = -1; ++y < l.length; )
23731
23727
  u[p + l[y][0]] = p + l[y][1], p += l[y][1] - l[y][0] - 1;
@@ -23779,27 +23775,27 @@ function Fv(t, e, n, r, i, a, s, o, l) {
23779
23775
  const u = l || Number.POSITIVE_INFINITY;
23780
23776
  let c = 0;
23781
23777
  return d;
23782
- function d(g) {
23783
- return g === 60 ? (t.enter(r), t.enter(i), t.enter(a), t.consume(g), t.exit(a), y) : g === null || g === 32 || g === 41 || qc(g) ? n(g) : (t.enter(r), t.enter(s), t.enter(o), t.enter("chunkString", {
23778
+ function d(v) {
23779
+ return v === 60 ? (t.enter(r), t.enter(i), t.enter(a), t.consume(v), t.exit(a), y) : v === null || v === 32 || v === 41 || qc(v) ? n(v) : (t.enter(r), t.enter(s), t.enter(o), t.enter("chunkString", {
23784
23780
  contentType: "string"
23785
- }), m(g));
23781
+ }), m(v));
23786
23782
  }
23787
- function y(g) {
23788
- return g === 62 ? (t.enter(a), t.consume(g), t.exit(a), t.exit(i), t.exit(r), e) : (t.enter(o), t.enter("chunkString", {
23783
+ function y(v) {
23784
+ return v === 62 ? (t.enter(a), t.consume(v), t.exit(a), t.exit(i), t.exit(r), e) : (t.enter(o), t.enter("chunkString", {
23789
23785
  contentType: "string"
23790
- }), f(g));
23786
+ }), f(v));
23791
23787
  }
23792
- function f(g) {
23793
- return g === 62 ? (t.exit("chunkString"), t.exit(o), y(g)) : g === null || g === 60 || me(g) ? n(g) : (t.consume(g), g === 92 ? p : f);
23788
+ function f(v) {
23789
+ return v === 62 ? (t.exit("chunkString"), t.exit(o), y(v)) : v === null || v === 60 || me(v) ? n(v) : (t.consume(v), v === 92 ? p : f);
23794
23790
  }
23795
- function p(g) {
23796
- return g === 60 || g === 62 || g === 92 ? (t.consume(g), f) : f(g);
23791
+ function p(v) {
23792
+ return v === 60 || v === 62 || v === 92 ? (t.consume(v), f) : f(v);
23797
23793
  }
23798
- function m(g) {
23799
- return !c && (g === null || g === 41 || qt(g)) ? (t.exit("chunkString"), t.exit(o), t.exit(s), t.exit(r), e(g)) : c < u && g === 40 ? (t.consume(g), c++, m) : g === 41 ? (t.consume(g), c--, m) : g === null || g === 32 || g === 40 || qc(g) ? n(g) : (t.consume(g), g === 92 ? v : m);
23794
+ function m(v) {
23795
+ return !c && (v === null || v === 41 || qt(v)) ? (t.exit("chunkString"), t.exit(o), t.exit(s), t.exit(r), e(v)) : c < u && v === 40 ? (t.consume(v), c++, m) : v === 41 ? (t.consume(v), c--, m) : v === null || v === 32 || v === 40 || qc(v) ? n(v) : (t.consume(v), v === 92 ? g : m);
23800
23796
  }
23801
- function v(g) {
23802
- return g === 40 || g === 41 || g === 92 ? (t.consume(g), m) : m(g);
23797
+ function g(v) {
23798
+ return v === 40 || v === 41 || v === 92 ? (t.consume(v), m) : m(v);
23803
23799
  }
23804
23800
  }
23805
23801
  function zv(t, e, n, r, i, a) {
@@ -24069,42 +24065,42 @@ function oP(t, e, n) {
24069
24065
  return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(T), d;
24070
24066
  }
24071
24067
  function d(T) {
24072
- return T === 33 ? (t.consume(T), y) : T === 47 ? (t.consume(T), a = !0, m) : T === 63 ? (t.consume(T), i = 3, r.interrupt ? e : E) : Kn(T) ? (t.consume(T), s = String.fromCharCode(T), v) : n(T);
24068
+ return T === 33 ? (t.consume(T), y) : T === 47 ? (t.consume(T), a = !0, m) : T === 63 ? (t.consume(T), i = 3, r.interrupt ? e : O) : Kn(T) ? (t.consume(T), s = String.fromCharCode(T), g) : n(T);
24073
24069
  }
24074
24070
  function y(T) {
24075
- return T === 45 ? (t.consume(T), i = 2, f) : T === 91 ? (t.consume(T), i = 5, o = 0, p) : Kn(T) ? (t.consume(T), i = 4, r.interrupt ? e : E) : n(T);
24071
+ return T === 45 ? (t.consume(T), i = 2, f) : T === 91 ? (t.consume(T), i = 5, o = 0, p) : Kn(T) ? (t.consume(T), i = 4, r.interrupt ? e : O) : n(T);
24076
24072
  }
24077
24073
  function f(T) {
24078
- return T === 45 ? (t.consume(T), r.interrupt ? e : E) : n(T);
24074
+ return T === 45 ? (t.consume(T), r.interrupt ? e : O) : n(T);
24079
24075
  }
24080
24076
  function p(T) {
24081
24077
  const G = "CDATA[";
24082
24078
  return T === G.charCodeAt(o++) ? (t.consume(T), o === G.length ? r.interrupt ? e : N : p) : n(T);
24083
24079
  }
24084
24080
  function m(T) {
24085
- return Kn(T) ? (t.consume(T), s = String.fromCharCode(T), v) : n(T);
24081
+ return Kn(T) ? (t.consume(T), s = String.fromCharCode(T), g) : n(T);
24086
24082
  }
24087
- function v(T) {
24083
+ function g(T) {
24088
24084
  if (T === null || T === 47 || T === 62 || qt(T)) {
24089
24085
  const G = T === 47, J = s.toLowerCase();
24090
- return !G && !a && Np.includes(J) ? (i = 1, r.interrupt ? e(T) : N(T)) : nP.includes(s.toLowerCase()) ? (i = 6, G ? (t.consume(T), g) : r.interrupt ? e(T) : N(T)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(T) : a ? S(T) : O(T));
24086
+ return !G && !a && Np.includes(J) ? (i = 1, r.interrupt ? e(T) : N(T)) : nP.includes(s.toLowerCase()) ? (i = 6, G ? (t.consume(T), v) : r.interrupt ? e(T) : N(T)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(T) : a ? S(T) : E(T));
24091
24087
  }
24092
- return T === 45 || cn(T) ? (t.consume(T), s += String.fromCharCode(T), v) : n(T);
24088
+ return T === 45 || cn(T) ? (t.consume(T), s += String.fromCharCode(T), g) : n(T);
24093
24089
  }
24094
- function g(T) {
24090
+ function v(T) {
24095
24091
  return T === 62 ? (t.consume(T), r.interrupt ? e : N) : n(T);
24096
24092
  }
24097
24093
  function S(T) {
24098
24094
  return De(T) ? (t.consume(T), S) : B(T);
24099
24095
  }
24100
- function O(T) {
24101
- return T === 47 ? (t.consume(T), B) : T === 58 || T === 95 || Kn(T) ? (t.consume(T), k) : De(T) ? (t.consume(T), O) : B(T);
24096
+ function E(T) {
24097
+ return T === 47 ? (t.consume(T), B) : T === 58 || T === 95 || Kn(T) ? (t.consume(T), k) : De(T) ? (t.consume(T), E) : B(T);
24102
24098
  }
24103
24099
  function k(T) {
24104
24100
  return T === 45 || T === 46 || T === 58 || T === 95 || cn(T) ? (t.consume(T), k) : C(T);
24105
24101
  }
24106
24102
  function C(T) {
24107
- return T === 61 ? (t.consume(T), b) : De(T) ? (t.consume(T), C) : O(T);
24103
+ return T === 61 ? (t.consume(T), b) : De(T) ? (t.consume(T), C) : E(T);
24108
24104
  }
24109
24105
  function b(T) {
24110
24106
  return T === null || T === 60 || T === 61 || T === 62 || T === 96 ? n(T) : T === 34 || T === 39 ? (t.consume(T), l = T, A) : De(T) ? (t.consume(T), b) : x(T);
@@ -24116,7 +24112,7 @@ function oP(t, e, n) {
24116
24112
  return T === null || T === 34 || T === 39 || T === 47 || T === 60 || T === 61 || T === 62 || T === 96 || qt(T) ? C(T) : (t.consume(T), x);
24117
24113
  }
24118
24114
  function L(T) {
24119
- return T === 47 || T === 62 || De(T) ? O(T) : n(T);
24115
+ return T === 47 || T === 62 || De(T) ? E(T) : n(T);
24120
24116
  }
24121
24117
  function B(T) {
24122
24118
  return T === 62 ? (t.consume(T), _) : n(T);
@@ -24125,7 +24121,7 @@ function oP(t, e, n) {
24125
24121
  return T === null || me(T) ? N(T) : De(T) ? (t.consume(T), _) : n(T);
24126
24122
  }
24127
24123
  function N(T) {
24128
- return T === 45 && i === 2 ? (t.consume(T), R) : T === 60 && i === 1 ? (t.consume(T), D) : T === 62 && i === 4 ? (t.consume(T), q) : T === 63 && i === 3 ? (t.consume(T), E) : T === 93 && i === 5 ? (t.consume(T), Q) : me(T) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(iP, U, F)(T)) : T === null || me(T) ? (t.exit("htmlFlowData"), F(T)) : (t.consume(T), N);
24124
+ return T === 45 && i === 2 ? (t.consume(T), R) : T === 60 && i === 1 ? (t.consume(T), D) : T === 62 && i === 4 ? (t.consume(T), q) : T === 63 && i === 3 ? (t.consume(T), O) : T === 93 && i === 5 ? (t.consume(T), Q) : me(T) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(iP, U, F)(T)) : T === null || me(T) ? (t.exit("htmlFlowData"), F(T)) : (t.consume(T), N);
24129
24125
  }
24130
24126
  function F(T) {
24131
24127
  return t.check(aP, I, U)(T);
@@ -24137,7 +24133,7 @@ function oP(t, e, n) {
24137
24133
  return T === null || me(T) ? F(T) : (t.enter("htmlFlowData"), N(T));
24138
24134
  }
24139
24135
  function R(T) {
24140
- return T === 45 ? (t.consume(T), E) : N(T);
24136
+ return T === 45 ? (t.consume(T), O) : N(T);
24141
24137
  }
24142
24138
  function D(T) {
24143
24139
  return T === 47 ? (t.consume(T), s = "", W) : N(T);
@@ -24150,10 +24146,10 @@ function oP(t, e, n) {
24150
24146
  return Kn(T) && s.length < 8 ? (t.consume(T), s += String.fromCharCode(T), W) : N(T);
24151
24147
  }
24152
24148
  function Q(T) {
24153
- return T === 93 ? (t.consume(T), E) : N(T);
24149
+ return T === 93 ? (t.consume(T), O) : N(T);
24154
24150
  }
24155
- function E(T) {
24156
- return T === 62 ? (t.consume(T), q) : T === 45 && i === 2 ? (t.consume(T), E) : N(T);
24151
+ function O(T) {
24152
+ return T === 62 ? (t.consume(T), q) : T === 45 && i === 2 ? (t.consume(T), O) : N(T);
24157
24153
  }
24158
24154
  function q(T) {
24159
24155
  return T === null || me(T) ? (t.exit("htmlFlowData"), U(T)) : (t.consume(T), q);
@@ -24186,93 +24182,93 @@ function dP(t, e, n) {
24186
24182
  const r = this;
24187
24183
  let i, a, s;
24188
24184
  return o;
24189
- function o(E) {
24190
- return t.enter("htmlText"), t.enter("htmlTextData"), t.consume(E), l;
24185
+ function o(O) {
24186
+ return t.enter("htmlText"), t.enter("htmlTextData"), t.consume(O), l;
24191
24187
  }
24192
- function l(E) {
24193
- return E === 33 ? (t.consume(E), u) : E === 47 ? (t.consume(E), C) : E === 63 ? (t.consume(E), O) : Kn(E) ? (t.consume(E), x) : n(E);
24188
+ function l(O) {
24189
+ return O === 33 ? (t.consume(O), u) : O === 47 ? (t.consume(O), C) : O === 63 ? (t.consume(O), E) : Kn(O) ? (t.consume(O), x) : n(O);
24194
24190
  }
24195
- function u(E) {
24196
- return E === 45 ? (t.consume(E), c) : E === 91 ? (t.consume(E), a = 0, p) : Kn(E) ? (t.consume(E), S) : n(E);
24191
+ function u(O) {
24192
+ return O === 45 ? (t.consume(O), c) : O === 91 ? (t.consume(O), a = 0, p) : Kn(O) ? (t.consume(O), S) : n(O);
24197
24193
  }
24198
- function c(E) {
24199
- return E === 45 ? (t.consume(E), f) : n(E);
24194
+ function c(O) {
24195
+ return O === 45 ? (t.consume(O), f) : n(O);
24200
24196
  }
24201
- function d(E) {
24202
- return E === null ? n(E) : E === 45 ? (t.consume(E), y) : me(E) ? (s = d, D(E)) : (t.consume(E), d);
24197
+ function d(O) {
24198
+ return O === null ? n(O) : O === 45 ? (t.consume(O), y) : me(O) ? (s = d, D(O)) : (t.consume(O), d);
24203
24199
  }
24204
- function y(E) {
24205
- return E === 45 ? (t.consume(E), f) : d(E);
24200
+ function y(O) {
24201
+ return O === 45 ? (t.consume(O), f) : d(O);
24206
24202
  }
24207
- function f(E) {
24208
- return E === 62 ? R(E) : E === 45 ? y(E) : d(E);
24203
+ function f(O) {
24204
+ return O === 62 ? R(O) : O === 45 ? y(O) : d(O);
24209
24205
  }
24210
- function p(E) {
24206
+ function p(O) {
24211
24207
  const q = "CDATA[";
24212
- return E === q.charCodeAt(a++) ? (t.consume(E), a === q.length ? m : p) : n(E);
24208
+ return O === q.charCodeAt(a++) ? (t.consume(O), a === q.length ? m : p) : n(O);
24213
24209
  }
24214
- function m(E) {
24215
- return E === null ? n(E) : E === 93 ? (t.consume(E), v) : me(E) ? (s = m, D(E)) : (t.consume(E), m);
24210
+ function m(O) {
24211
+ return O === null ? n(O) : O === 93 ? (t.consume(O), g) : me(O) ? (s = m, D(O)) : (t.consume(O), m);
24216
24212
  }
24217
- function v(E) {
24218
- return E === 93 ? (t.consume(E), g) : m(E);
24213
+ function g(O) {
24214
+ return O === 93 ? (t.consume(O), v) : m(O);
24219
24215
  }
24220
- function g(E) {
24221
- return E === 62 ? R(E) : E === 93 ? (t.consume(E), g) : m(E);
24216
+ function v(O) {
24217
+ return O === 62 ? R(O) : O === 93 ? (t.consume(O), v) : m(O);
24222
24218
  }
24223
- function S(E) {
24224
- return E === null || E === 62 ? R(E) : me(E) ? (s = S, D(E)) : (t.consume(E), S);
24219
+ function S(O) {
24220
+ return O === null || O === 62 ? R(O) : me(O) ? (s = S, D(O)) : (t.consume(O), S);
24225
24221
  }
24226
- function O(E) {
24227
- return E === null ? n(E) : E === 63 ? (t.consume(E), k) : me(E) ? (s = O, D(E)) : (t.consume(E), O);
24222
+ function E(O) {
24223
+ return O === null ? n(O) : O === 63 ? (t.consume(O), k) : me(O) ? (s = E, D(O)) : (t.consume(O), E);
24228
24224
  }
24229
- function k(E) {
24230
- return E === 62 ? R(E) : O(E);
24225
+ function k(O) {
24226
+ return O === 62 ? R(O) : E(O);
24231
24227
  }
24232
- function C(E) {
24233
- return Kn(E) ? (t.consume(E), b) : n(E);
24228
+ function C(O) {
24229
+ return Kn(O) ? (t.consume(O), b) : n(O);
24234
24230
  }
24235
- function b(E) {
24236
- return E === 45 || cn(E) ? (t.consume(E), b) : A(E);
24231
+ function b(O) {
24232
+ return O === 45 || cn(O) ? (t.consume(O), b) : A(O);
24237
24233
  }
24238
- function A(E) {
24239
- return me(E) ? (s = A, D(E)) : De(E) ? (t.consume(E), A) : R(E);
24234
+ function A(O) {
24235
+ return me(O) ? (s = A, D(O)) : De(O) ? (t.consume(O), A) : R(O);
24240
24236
  }
24241
- function x(E) {
24242
- return E === 45 || cn(E) ? (t.consume(E), x) : E === 47 || E === 62 || qt(E) ? L(E) : n(E);
24237
+ function x(O) {
24238
+ return O === 45 || cn(O) ? (t.consume(O), x) : O === 47 || O === 62 || qt(O) ? L(O) : n(O);
24243
24239
  }
24244
- function L(E) {
24245
- return E === 47 ? (t.consume(E), R) : E === 58 || E === 95 || Kn(E) ? (t.consume(E), B) : me(E) ? (s = L, D(E)) : De(E) ? (t.consume(E), L) : R(E);
24240
+ function L(O) {
24241
+ return O === 47 ? (t.consume(O), R) : O === 58 || O === 95 || Kn(O) ? (t.consume(O), B) : me(O) ? (s = L, D(O)) : De(O) ? (t.consume(O), L) : R(O);
24246
24242
  }
24247
- function B(E) {
24248
- return E === 45 || E === 46 || E === 58 || E === 95 || cn(E) ? (t.consume(E), B) : _(E);
24243
+ function B(O) {
24244
+ return O === 45 || O === 46 || O === 58 || O === 95 || cn(O) ? (t.consume(O), B) : _(O);
24249
24245
  }
24250
- function _(E) {
24251
- return E === 61 ? (t.consume(E), N) : me(E) ? (s = _, D(E)) : De(E) ? (t.consume(E), _) : L(E);
24246
+ function _(O) {
24247
+ return O === 61 ? (t.consume(O), N) : me(O) ? (s = _, D(O)) : De(O) ? (t.consume(O), _) : L(O);
24252
24248
  }
24253
- function N(E) {
24254
- return E === null || E === 60 || E === 61 || E === 62 || E === 96 ? n(E) : E === 34 || E === 39 ? (t.consume(E), i = E, F) : me(E) ? (s = N, D(E)) : De(E) ? (t.consume(E), N) : (t.consume(E), I);
24249
+ function N(O) {
24250
+ return O === null || O === 60 || O === 61 || O === 62 || O === 96 ? n(O) : O === 34 || O === 39 ? (t.consume(O), i = O, F) : me(O) ? (s = N, D(O)) : De(O) ? (t.consume(O), N) : (t.consume(O), I);
24255
24251
  }
24256
- function F(E) {
24257
- return E === i ? (t.consume(E), i = void 0, P) : E === null ? n(E) : me(E) ? (s = F, D(E)) : (t.consume(E), F);
24252
+ function F(O) {
24253
+ return O === i ? (t.consume(O), i = void 0, P) : O === null ? n(O) : me(O) ? (s = F, D(O)) : (t.consume(O), F);
24258
24254
  }
24259
- function I(E) {
24260
- return E === null || E === 34 || E === 39 || E === 60 || E === 61 || E === 96 ? n(E) : E === 47 || E === 62 || qt(E) ? L(E) : (t.consume(E), I);
24255
+ function I(O) {
24256
+ return O === null || O === 34 || O === 39 || O === 60 || O === 61 || O === 96 ? n(O) : O === 47 || O === 62 || qt(O) ? L(O) : (t.consume(O), I);
24261
24257
  }
24262
- function P(E) {
24263
- return E === 47 || E === 62 || qt(E) ? L(E) : n(E);
24258
+ function P(O) {
24259
+ return O === 47 || O === 62 || qt(O) ? L(O) : n(O);
24264
24260
  }
24265
- function R(E) {
24266
- return E === 62 ? (t.consume(E), t.exit("htmlTextData"), t.exit("htmlText"), e) : n(E);
24261
+ function R(O) {
24262
+ return O === 62 ? (t.consume(O), t.exit("htmlTextData"), t.exit("htmlText"), e) : n(O);
24267
24263
  }
24268
- function D(E) {
24269
- return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(E), t.exit("lineEnding"), W;
24264
+ function D(O) {
24265
+ return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(O), t.exit("lineEnding"), W;
24270
24266
  }
24271
- function W(E) {
24272
- return De(E) ? Ke(t, Q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(E) : Q(E);
24267
+ function W(O) {
24268
+ return De(O) ? Ke(t, Q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : Q(O);
24273
24269
  }
24274
- function Q(E) {
24275
- return t.enter("htmlTextData"), s(E);
24270
+ function Q(O) {
24271
+ return t.enter("htmlTextData"), s(O);
24276
24272
  }
24277
24273
  }
24278
24274
  const Gd = {
@@ -24809,7 +24805,7 @@ function ZP(t, e, n) {
24809
24805
  attempt: A(C),
24810
24806
  check: A(b),
24811
24807
  consume: S,
24812
- enter: O,
24808
+ enter: E,
24813
24809
  exit: k,
24814
24810
  interrupt: A(b, {
24815
24811
  interrupt: !0
@@ -24829,7 +24825,7 @@ function ZP(t, e, n) {
24829
24825
  let c = e.tokenize.call(u, l);
24830
24826
  return e.resolveAll && a.push(e), u;
24831
24827
  function d(_) {
24832
- return s = gn(s, _), v(), s[s.length - 1] !== null ? [] : (x(e, 0), u.events = Wd(a, u.events, u), u.events);
24828
+ return s = gn(s, _), g(), s[s.length - 1] !== null ? [] : (x(e, 0), u.events = Wd(a, u.events, u), u.events);
24833
24829
  }
24834
24830
  function y(_, N) {
24835
24831
  return eT(f(_), N);
@@ -24856,18 +24852,18 @@ function ZP(t, e, n) {
24856
24852
  function m(_) {
24857
24853
  i[_.line] = _.column, B();
24858
24854
  }
24859
- function v() {
24855
+ function g() {
24860
24856
  let _;
24861
24857
  for (; r._index < s.length; ) {
24862
24858
  const N = s[r._index];
24863
24859
  if (typeof N == "string")
24864
24860
  for (_ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === _ && r._bufferIndex < N.length; )
24865
- g(N.charCodeAt(r._bufferIndex));
24861
+ v(N.charCodeAt(r._bufferIndex));
24866
24862
  else
24867
- g(N);
24863
+ v(N);
24868
24864
  }
24869
24865
  }
24870
- function g(_) {
24866
+ function v(_) {
24871
24867
  c = c(_);
24872
24868
  }
24873
24869
  function S(_) {
@@ -24876,7 +24872,7 @@ function ZP(t, e, n) {
24876
24872
  /** @type {string} */
24877
24873
  s[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = _;
24878
24874
  }
24879
- function O(_, N) {
24875
+ function E(_, N) {
24880
24876
  const F = N || {};
24881
24877
  return F.type = _, F.start = p(), u.events.push(["enter", F, u]), o.push(F), F;
24882
24878
  }
@@ -24893,7 +24889,7 @@ function ZP(t, e, n) {
24893
24889
  function A(_, N) {
24894
24890
  return F;
24895
24891
  function F(I, P, R) {
24896
- let D, W, Q, E;
24892
+ let D, W, Q, O;
24897
24893
  return Array.isArray(I) ? (
24898
24894
  /* c8 ignore next 1 */
24899
24895
  U(I)
@@ -24922,7 +24918,7 @@ function ZP(t, e, n) {
24922
24918
  function T(V) {
24923
24919
  return X;
24924
24920
  function X(ce) {
24925
- return E = L(), Q = V, V.partial || (u.currentConstruct = V), V.name && u.parser.constructs.disable.null.includes(V.name) ? J() : V.tokenize.call(
24921
+ return O = L(), Q = V, V.partial || (u.currentConstruct = V), V.name && u.parser.constructs.disable.null.includes(V.name) ? J() : V.tokenize.call(
24926
24922
  // If we do have fields, create an object w/ `context` as its
24927
24923
  // prototype.
24928
24924
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -24934,10 +24930,10 @@ function ZP(t, e, n) {
24934
24930
  }
24935
24931
  }
24936
24932
  function G(V) {
24937
- return _(Q, E), P;
24933
+ return _(Q, O), P;
24938
24934
  }
24939
24935
  function J(V) {
24940
- return E.restore(), ++W < D.length ? T(D[W]) : R;
24936
+ return O.restore(), ++W < D.length ? T(D[W]) : R;
24941
24937
  }
24942
24938
  }
24943
24939
  }
@@ -25151,19 +25147,19 @@ function lT(t) {
25151
25147
  characterReferenceMarkerNumeric: J,
25152
25148
  characterReferenceValue: V,
25153
25149
  characterReference: X,
25154
- codeFenced: l(v),
25150
+ codeFenced: l(g),
25155
25151
  codeFencedFence: m,
25156
25152
  codeFencedFenceInfo: f,
25157
25153
  codeFencedFenceMeta: p,
25158
25154
  codeFlowValue: B,
25159
- codeIndented: l(g),
25155
+ codeIndented: l(v),
25160
25156
  codeText: l(P),
25161
25157
  codeTextData: B,
25162
25158
  data: B,
25163
25159
  definition: l(),
25164
25160
  definitionDestinationString: k,
25165
25161
  definitionLabelString: S,
25166
- definitionTitleString: O,
25162
+ definitionTitleString: E,
25167
25163
  emphasis: l(),
25168
25164
  hardBreakEscape: l(N),
25169
25165
  hardBreakTrailing: l(N),
@@ -25181,7 +25177,7 @@ function lT(t) {
25181
25177
  listUnordered: l(),
25182
25178
  paragraph: l(),
25183
25179
  referenceString: G,
25184
- resourceDestinationString: E,
25180
+ resourceDestinationString: O,
25185
25181
  resourceTitleString: q,
25186
25182
  resource: U,
25187
25183
  setextHeading: l(x),
@@ -25351,11 +25347,11 @@ function lT(t) {
25351
25347
  function m() {
25352
25348
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
25353
25349
  }
25354
- function v() {
25350
+ function g() {
25355
25351
  const z = this.resume(), K = this.stack[this.stack.length - 1];
25356
25352
  K.value = z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
25357
25353
  }
25358
- function g() {
25354
+ function v() {
25359
25355
  const z = this.resume(), K = this.stack[this.stack.length - 1];
25360
25356
  K.value = z.replace(/(\r?\n|\r)$/g, "");
25361
25357
  }
@@ -25363,7 +25359,7 @@ function lT(t) {
25363
25359
  const K = this.resume(), ye = this.stack[this.stack.length - 1];
25364
25360
  ye.label = K, ye.identifier = Ki(this.sliceSerialize(z)).toLowerCase();
25365
25361
  }
25366
- function O() {
25362
+ function E() {
25367
25363
  const z = this.resume(), K = this.stack[this.stack.length - 1];
25368
25364
  K.title = z;
25369
25365
  }
@@ -25455,7 +25451,7 @@ function lT(t) {
25455
25451
  } else
25456
25452
  ye.alt = K;
25457
25453
  }
25458
- function E() {
25454
+ function O() {
25459
25455
  const z = this.resume(), K = this.stack[this.stack.length - 1];
25460
25456
  K.url = z;
25461
25457
  }
@@ -26225,19 +26221,19 @@ function qT(t) {
26225
26221
  children: Array.isArray(S) ? S : [S]
26226
26222
  });
26227
26223
  }
26228
- const v = c[c.length - 1];
26229
- if (v && v.type === "element" && v.tagName === "p") {
26230
- const S = v.children[v.children.length - 1];
26231
- S && S.type === "text" ? S.value += " " : v.children.push({ type: "text", value: " " }), v.children.push(...p);
26224
+ const g = c[c.length - 1];
26225
+ if (g && g.type === "element" && g.tagName === "p") {
26226
+ const S = g.children[g.children.length - 1];
26227
+ S && S.type === "text" ? S.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...p);
26232
26228
  } else
26233
26229
  c.push(...p);
26234
- const g = {
26230
+ const v = {
26235
26231
  type: "element",
26236
26232
  tagName: "li",
26237
26233
  properties: { id: e + "fn-" + y },
26238
26234
  children: t.wrap(c, !0)
26239
26235
  };
26240
- t.patch(u, g), o.push(g);
26236
+ t.patch(u, v), o.push(v);
26241
26237
  }
26242
26238
  if (o.length !== 0)
26243
26239
  return {
@@ -26380,18 +26376,18 @@ function JT(t, e, n, r) {
26380
26376
  }
26381
26377
  return y;
26382
26378
  function y() {
26383
- let f = Zv, p, m, v;
26379
+ let f = Zv, p, m, g;
26384
26380
  if ((!e || a(l, u, c[c.length - 1] || void 0)) && (f = ZT(n(l, c)), f[0] === Up))
26385
26381
  return f;
26386
26382
  if ("children" in l && l.children) {
26387
- const g = (
26383
+ const v = (
26388
26384
  /** @type {UnistParent} */
26389
26385
  l
26390
26386
  );
26391
- if (g.children && f[0] !== XT)
26392
- for (m = (r ? g.children.length : -1) + s, v = c.concat(g); m > -1 && m < g.children.length; ) {
26393
- const S = g.children[m];
26394
- if (p = o(S, m, v)(), p[0] === Up)
26387
+ if (v.children && f[0] !== XT)
26388
+ for (m = (r ? v.children.length : -1) + s, g = c.concat(v); m > -1 && m < v.children.length; ) {
26389
+ const S = v.children[m];
26390
+ if (p = o(S, m, g)(), p[0] === Up)
26395
26391
  return p;
26396
26392
  m = typeof p[1] == "number" ? p[1] : m + s;
26397
26393
  }
@@ -26438,8 +26434,8 @@ function eI(t, e) {
26438
26434
  return f(o, c, d);
26439
26435
  if (o.options.passThrough && o.options.passThrough.includes(y)) {
26440
26436
  if ("children" in c) {
26441
- const { children: m, ...v } = c, g = ol(v);
26442
- return g.children = o.all(c), g;
26437
+ const { children: m, ...g } = c, v = ol(g);
26438
+ return v.children = o.all(c), v;
26443
26439
  }
26444
26440
  return ol(c);
26445
26441
  }
@@ -26562,9 +26558,9 @@ function sI() {
26562
26558
  return u[c];
26563
26559
  };
26564
26560
  return Su = function l() {
26565
- var u, c, d, y, f, p, m = arguments[0], v = 1, g = arguments.length, S = !1;
26566
- for (typeof m == "boolean" && (S = m, m = arguments[1] || {}, v = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); v < g; ++v)
26567
- if (u = arguments[v], u != null)
26561
+ var u, c, d, y, f, p, m = arguments[0], g = 1, v = arguments.length, S = !1;
26562
+ for (typeof m == "boolean" && (S = m, m = arguments[1] || {}, g = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); g < v; ++g)
26563
+ if (u = arguments[g], u != null)
26568
26564
  for (c in u)
26569
26565
  d = o(m, c), y = o(u, c), m !== y && (S && y && (a(y) || (f = i(y))) ? (f ? (f = !1, p = d && i(d) ? d : []) : p = d && a(d) ? d : {}, s(m, { name: c, newValue: l(S, p, y) })) : typeof y != "undefined" && s(m, { name: c, newValue: y }));
26570
26566
  return m;
@@ -28178,16 +28174,16 @@ function aN(t) {
28178
28174
  if (Array.isArray(t)) return t;
28179
28175
  }
28180
28176
  var sN = function(e) {
28181
- var n, r, i = e.items, a = te((n = (r = i[0]) === null || r === void 0 ? void 0 : r.id) !== null && n !== void 0 ? n : ""), s = em(a, 2), o = s[0], l = s[1], u = zt(/* @__PURE__ */ new Map()), c = te(null), d = em(c, 2), y = d[0], f = d[1], p = Je(function(v) {
28182
- var g = u.current.get(v);
28183
- g && f({
28184
- top: g.offsetTop,
28185
- height: g.offsetHeight
28177
+ var n, r, i = e.items, a = te((n = (r = i[0]) === null || r === void 0 ? void 0 : r.id) !== null && n !== void 0 ? n : ""), s = em(a, 2), o = s[0], l = s[1], u = zt(/* @__PURE__ */ new Map()), c = te(null), d = em(c, 2), y = d[0], f = d[1], p = Je(function(g) {
28178
+ var v = u.current.get(g);
28179
+ v && f({
28180
+ top: v.offsetTop,
28181
+ height: v.offsetHeight
28186
28182
  });
28187
28183
  }, []);
28188
28184
  ge(function() {
28189
28185
  if (i.length !== 0) {
28190
- var v = new IntersectionObserver(function(C) {
28186
+ var g = new IntersectionObserver(function(C) {
28191
28187
  var b = C.filter(function(L) {
28192
28188
  return L.isIntersecting;
28193
28189
  });
@@ -28200,30 +28196,30 @@ var sN = function(e) {
28200
28196
  }, {
28201
28197
  rootMargin: "-10% 0px -80% 0px",
28202
28198
  threshold: 0
28203
- }), g = nN(i), S;
28199
+ }), v = nN(i), S;
28204
28200
  try {
28205
- for (g.s(); !(S = g.n()).done; ) {
28206
- var O = S.value, k = document.getElementById(O.id);
28207
- k && v.observe(k);
28201
+ for (v.s(); !(S = v.n()).done; ) {
28202
+ var E = S.value, k = document.getElementById(E.id);
28203
+ k && g.observe(k);
28208
28204
  }
28209
28205
  } catch (C) {
28210
- g.e(C);
28206
+ v.e(C);
28211
28207
  } finally {
28212
- g.f();
28208
+ v.f();
28213
28209
  }
28214
28210
  return function() {
28215
- return v.disconnect();
28211
+ return g.disconnect();
28216
28212
  };
28217
28213
  }
28218
28214
  }, [i, p]), ge(function() {
28219
28215
  p(o);
28220
28216
  }, [o, p]);
28221
- var m = function(g) {
28222
- var S = document.getElementById(g);
28217
+ var m = function(v) {
28218
+ var S = document.getElementById(v);
28223
28219
  S && (S.scrollIntoView({
28224
28220
  behavior: "smooth",
28225
28221
  block: "start"
28226
- }), l(g));
28222
+ }), l(v));
28227
28223
  };
28228
28224
  return i.length === 0 ? null : /* @__PURE__ */ h("nav", { "aria-label": "Table of contents", className: "yst-sticky yst-top-4 yst-overflow-visible", children: /* @__PURE__ */ w("div", { className: "yst-relative yst-flex yst-flex-col", children: [
28229
28225
  y && /* @__PURE__ */ h("div", { className: "yst-absolute yst-left-0 yst-w-0.5 yst-bg-slate-700 yst-rounded-full", style: {
@@ -28231,12 +28227,12 @@ var sN = function(e) {
28231
28227
  height: y.height,
28232
28228
  transition: "top 0.3s ease, height 0.3s ease"
28233
28229
  } }),
28234
- i.map(function(v) {
28235
- return /* @__PURE__ */ h("button", { ref: function(g) {
28236
- u.current.set(v.id, g);
28230
+ i.map(function(g) {
28231
+ return /* @__PURE__ */ h("button", { ref: function(v) {
28232
+ u.current.set(g.id, v);
28237
28233
  }, type: "button", onClick: function() {
28238
- return m(v.id);
28239
- }, className: ue("yst-text-left yst-pl-4 yst-py-1.5 yst-text-sm yst-transition-colors yst-duration-200", o === v.id ? "yst-text-slate-700 yst-font-semibold" : "yst-text-slate-400 hover:yst-text-slate-500"), children: v.label }, v.id);
28234
+ return m(g.id);
28235
+ }, className: ue("yst-text-left yst-pl-4 yst-py-1.5 yst-text-sm yst-transition-colors yst-duration-200", o === g.id ? "yst-text-slate-700 yst-font-semibold" : "yst-text-slate-400 hover:yst-text-slate-500"), children: g.label }, g.id);
28240
28236
  })
28241
28237
  ] }) });
28242
28238
  }, oN = function(e) {
@@ -28392,7 +28388,7 @@ var yN = function() {
28392
28388
  return W;
28393
28389
  }
28394
28390
  }
28395
- }), m = p.data, v = p.isLoading, g = zs(n, r, {
28391
+ }), m = p.data, g = p.isLoading, v = zs(n, r, {
28396
28392
  query: {
28397
28393
  enabled: !!n && !!r,
28398
28394
  select: function(D) {
@@ -28400,7 +28396,7 @@ var yN = function() {
28400
28396
  return W == null ? void 0 : W.analysis;
28401
28397
  }
28402
28398
  }
28403
- }), S = g.data, O = g.isLoading, k = te(!1), C = uN(k, 2), b = C[0], A = C[1];
28399
+ }), S = v.data, E = v.isLoading, k = te(!1), C = uN(k, 2), b = C[0], A = C[1];
28404
28400
  ge(function() {
28405
28401
  var R = S == null ? void 0 : S.id, D = c == null ? void 0 : c.id;
28406
28402
  if (!n || !R || !i || !D || (S == null ? void 0 : S.status) !== Tn.completed) {
@@ -28414,8 +28410,8 @@ var yN = function() {
28414
28410
  D.preventDefault();
28415
28411
  var W = S == null ? void 0 : S.id, Q = c == null ? void 0 : c.id;
28416
28412
  if (!(!n || !W || !i || !Q)) {
28417
- var E = Xo(Q, n, W, i);
28418
- window.localStorage.setItem(E, "true"), A(!1);
28413
+ var O = Xo(Q, n, W, i);
28414
+ window.localStorage.setItem(O, "true"), A(!1);
28419
28415
  }
28420
28416
  }, L = Qe(function() {
28421
28417
  var R;
@@ -28446,7 +28442,7 @@ var yN = function() {
28446
28442
  }
28447
28443
  }
28448
28444
  }, [L, i, s]);
28449
- var N = v || O || f, F = S && S.status === Tn.completed;
28445
+ var N = g || E || f, F = S && S.status === Tn.completed;
28450
28446
  if (N)
28451
28447
  return /* @__PURE__ */ h(Yr, {});
28452
28448
  if (!F)
@@ -28485,12 +28481,12 @@ var yN = function() {
28485
28481
  ] }),
28486
28482
  /* @__PURE__ */ w("div", { className: "yst-flex-1 yst-min-w-[200px] yst-max-w-xs yst-space-y-2", children: [
28487
28483
  /* @__PURE__ */ h("span", { className: "yst-text-sm yst-font-medium yst-text-slate-600", children: "AI platform" }),
28488
- /* @__PURE__ */ h(ls, { id: "ai-platform-select", value: i != null ? i : "", options: O ? [{
28484
+ /* @__PURE__ */ h(ls, { id: "ai-platform-select", value: i != null ? i : "", options: E ? [{
28489
28485
  value: i != null ? i : "",
28490
28486
  label: "Loading..."
28491
28487
  }] : _, onChange: function(R) {
28492
28488
  s(R);
28493
- }, disabled: O || _.length < 2 })
28489
+ }, disabled: E || _.length < 2 })
28494
28490
  ] })
28495
28491
  ] }),
28496
28492
  (B == null ? void 0 : B.id) && /* @__PURE__ */ h(lN, { brandId: n, analysisId: r, scanId: B.id })
@@ -28542,15 +28538,15 @@ function bN(t) {
28542
28538
  if (Array.isArray(t)) return t;
28543
28539
  }
28544
28540
  var xN = function(e) {
28545
- var n = e.queryResult, r = te(null), i = Lu(r, 2), a = i[0], s = i[1], o = te(null), l = Lu(o, 2), u = l[0], c = l[1], d = te(null), y = Lu(d, 2), f = y[0], p = y[1], m = zt(null), v = n.response || "No response available", g = Qe(function() {
28541
+ var n = e.queryResult, r = te(null), i = Lu(r, 2), a = i[0], s = i[1], o = te(null), l = Lu(o, 2), u = l[0], c = l[1], d = te(null), y = Lu(d, 2), f = y[0], p = y[1], m = zt(null), g = n.response || "No response available", v = Qe(function() {
28546
28542
  return n.mentionedBrands || [];
28547
- }, [n.mentionedBrands]), S = n.citations || [], O = n.sentiments || [], k = u !== null ? u : a, C = Qe(function() {
28548
- if (k === null) return v;
28549
- var x = g.find(function(L) {
28543
+ }, [n.mentionedBrands]), S = n.citations || [], E = n.sentiments || [], k = u !== null ? u : a, C = Qe(function() {
28544
+ if (k === null) return g;
28545
+ var x = v.find(function(L) {
28550
28546
  return L.id === k;
28551
28547
  });
28552
- return x ? v.replaceAll(x.name, "**".concat(x.name, "**")) : v;
28553
- }, [v, k, g]), b = function(L) {
28548
+ return x ? g.replaceAll(x.name, "**".concat(x.name, "**")) : g;
28549
+ }, [g, k, v]), b = function(L) {
28554
28550
  c(u === L ? null : L);
28555
28551
  };
28556
28552
  ge(function() {
@@ -28559,7 +28555,7 @@ var xN = function(e) {
28559
28555
  (f === null || x > f) && p(x);
28560
28556
  }
28561
28557
  }, [k, C, f]);
28562
- var A = Array.from(new Map(g.map(function(x) {
28558
+ var A = Array.from(new Map(v.map(function(x) {
28563
28559
  return [x.id, x];
28564
28560
  })).values());
28565
28561
  return /* @__PURE__ */ h(Ae, { className: "yst-mb-4", children: /* @__PURE__ */ h(Ae.Content, { className: "yst-p-4", children: /* @__PURE__ */ w("details", { className: "yst-group", children: [
@@ -28567,7 +28563,7 @@ var xN = function(e) {
28567
28563
  /* @__PURE__ */ w("div", { className: "yst-flex-1", children: [
28568
28564
  /* @__PURE__ */ h(We, { size: "3", className: "yst-mb-2", children: n.query }),
28569
28565
  /* @__PURE__ */ w("div", { className: "yst-flex yst-gap-4 yst-text-sm yst-text-gray-600", children: [
28570
- g.length > 0 && /* @__PURE__ */ w("span", { children: [
28566
+ v.length > 0 && /* @__PURE__ */ w("span", { children: [
28571
28567
  A.length,
28572
28568
  " brand",
28573
28569
  A.length !== 1 ? "s" : ""
@@ -28577,10 +28573,10 @@ var xN = function(e) {
28577
28573
  " citation",
28578
28574
  S.length !== 1 ? "s" : ""
28579
28575
  ] }),
28580
- O.length > 0 && /* @__PURE__ */ w("span", { children: [
28581
- O.length,
28576
+ E.length > 0 && /* @__PURE__ */ w("span", { children: [
28577
+ E.length,
28582
28578
  " sentiment",
28583
- O.length !== 1 ? "s" : ""
28579
+ E.length !== 1 ? "s" : ""
28584
28580
  ] })
28585
28581
  ] })
28586
28582
  ] }),
@@ -28601,7 +28597,7 @@ var xN = function(e) {
28601
28597
  }
28602
28598
  }, children: C }) }) }) })
28603
28599
  ] }),
28604
- g.length > 0 && /* @__PURE__ */ w("details", { className: "yst-border-t yst-pt-4", children: [
28600
+ v.length > 0 && /* @__PURE__ */ w("details", { className: "yst-border-t yst-pt-4", children: [
28605
28601
  /* @__PURE__ */ w("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
28606
28602
  /* @__PURE__ */ w("span", { children: [
28607
28603
  "Brands (",
@@ -28625,7 +28621,7 @@ var xN = function(e) {
28625
28621
  ] }),
28626
28622
  /* @__PURE__ */ w("div", { children: [
28627
28623
  /* @__PURE__ */ h("p", { className: "yst-mb-2 yst-text-sm yst-font-medium", children: "Brand ranking:" }),
28628
- /* @__PURE__ */ h("ol", { className: "yst-list-decimal yst-list-inside yst-space-y-3", children: g.sort(function(x, L) {
28624
+ /* @__PURE__ */ h("ol", { className: "yst-list-decimal yst-list-inside yst-space-y-3", children: v.sort(function(x, L) {
28629
28625
  return x.rank - L.rank;
28630
28626
  }).map(function(x) {
28631
28627
  return /* @__PURE__ */ w("li", { className: "yst-text-sm", children: [
@@ -28685,16 +28681,16 @@ var xN = function(e) {
28685
28681
  }) })
28686
28682
  ] }) })
28687
28683
  ] }),
28688
- O.length > 0 && /* @__PURE__ */ w("details", { className: "yst-border-t yst-pt-4", children: [
28684
+ E.length > 0 && /* @__PURE__ */ w("details", { className: "yst-border-t yst-pt-4", children: [
28689
28685
  /* @__PURE__ */ w("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
28690
28686
  /* @__PURE__ */ w("span", { children: [
28691
28687
  "Sentiment Analysis (",
28692
- O.length,
28688
+ E.length,
28693
28689
  ")"
28694
28690
  ] }),
28695
28691
  /* @__PURE__ */ h("span", { className: "yst-text-gray-500", children: "▶" })
28696
28692
  ] }),
28697
- /* @__PURE__ */ h("div", { className: "yst-mt-2 yst-flex yst-flex-col yst-gap-4", children: O.map(function(x) {
28693
+ /* @__PURE__ */ h("div", { className: "yst-mt-2 yst-flex yst-flex-col yst-gap-4", children: E.map(function(x) {
28698
28694
  return /* @__PURE__ */ w("div", { className: "yst-rounded-lg yst-border yst-border-gray-300 yst-p-4", children: [
28699
28695
  /* @__PURE__ */ w("div", { className: "yst-flex yst-items-center yst-gap-3 yst-mb-3", children: [
28700
28696
  /* @__PURE__ */ w("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
@@ -28875,9 +28871,9 @@ var TN = function(e) {
28875
28871
  };
28876
28872
  function Jc() {
28877
28873
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
28878
- function a(f, p, m, v) {
28879
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
28880
- return rn(S, "_invoke", function(O, k, C) {
28874
+ function a(f, p, m, g) {
28875
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
28876
+ return rn(S, "_invoke", function(E, k, C) {
28881
28877
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
28882
28878
  return b = P, A = 0, x = t, N.n = R, s;
28883
28879
  } };
@@ -28901,7 +28897,7 @@ function Jc() {
28901
28897
  x = e.value, A < 2 && (A = 0);
28902
28898
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
28903
28899
  b = t;
28904
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
28900
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
28905
28901
  } catch (D) {
28906
28902
  b = t, A = 1, x = D;
28907
28903
  } finally {
@@ -28910,7 +28906,7 @@ function Jc() {
28910
28906
  }
28911
28907
  return { value: e, done: _ };
28912
28908
  };
28913
- }(f, m, v), !0), S;
28909
+ }(f, m, g), !0), S;
28914
28910
  }
28915
28911
  var s = {};
28916
28912
  function o() {
@@ -29017,7 +29013,7 @@ var DN = function(e) {
29017
29013
  var n = e.isOpen, r = e.brandId, i = e.onClose, a = e.brandName, s = Gt(), o = kl(), l = te(""), u = NN(l, 2), c = u[0], d = u[1], y = aA({
29018
29014
  mutation: {
29019
29015
  onSuccess: function() {
29020
- var m = IN(/* @__PURE__ */ Jc().m(function g() {
29016
+ var m = IN(/* @__PURE__ */ Jc().m(function v() {
29021
29017
  return Jc().w(function(S) {
29022
29018
  for (; ; ) switch (S.n) {
29023
29019
  case 0:
@@ -29033,16 +29029,16 @@ var DN = function(e) {
29033
29029
  case 2:
29034
29030
  return S.a(2);
29035
29031
  }
29036
- }, g);
29032
+ }, v);
29037
29033
  }));
29038
- function v() {
29034
+ function g() {
29039
29035
  return m.apply(this, arguments);
29040
29036
  }
29041
- return v;
29037
+ return g;
29042
29038
  }(),
29043
- onError: function(v) {
29044
- var g = v instanceof Error ? v.message : "Please try again later.";
29045
- o("Failed to delete brand. ".concat(g), {
29039
+ onError: function(g) {
29040
+ var v = g instanceof Error ? g.message : "Please try again later.";
29041
+ o("Failed to delete brand. ".concat(v), {
29046
29042
  variant: "error"
29047
29043
  });
29048
29044
  }
@@ -29077,9 +29073,9 @@ function Ps(t) {
29077
29073
  }
29078
29074
  function $a() {
29079
29075
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
29080
- function a(f, p, m, v) {
29081
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
29082
- return an(S, "_invoke", function(O, k, C) {
29076
+ function a(f, p, m, g) {
29077
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
29078
+ return an(S, "_invoke", function(E, k, C) {
29083
29079
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
29084
29080
  return b = P, A = 0, x = t, N.n = R, s;
29085
29081
  } };
@@ -29103,7 +29099,7 @@ function $a() {
29103
29099
  x = e.value, A < 2 && (A = 0);
29104
29100
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
29105
29101
  b = t;
29106
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
29102
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
29107
29103
  } catch (D) {
29108
29104
  b = t, A = 1, x = D;
29109
29105
  } finally {
@@ -29112,7 +29108,7 @@ function $a() {
29112
29108
  }
29113
29109
  return { value: e, done: _ };
29114
29110
  };
29115
- }(f, m, v), !0), S;
29111
+ }(f, m, g), !0), S;
29116
29112
  }
29117
29113
  var s = {};
29118
29114
  function o() {
@@ -29254,7 +29250,7 @@ function WN(t) {
29254
29250
  if (Array.isArray(t)) return t;
29255
29251
  }
29256
29252
  var GN = function(e) {
29257
- var n, r, i = e.brand, a = e.isLast, s = e.onDelete, o = i.id, l = Mt(), u = l.hostAppProps, c = l.analysisId, d = u.onAddSubscription, y = kt(), f = wa(), p = f.setBrandId, m = te(!1), v = zN(m, 2), g = v[0], S = v[1], O = Gt(), k = Li({
29253
+ var n, r, i = e.brand, a = e.isLast, s = e.onDelete, o = i.id, l = Mt(), u = l.hostAppProps, c = l.analysisId, d = u.onAddSubscription, y = kt(), f = wa(), p = f.setBrandId, m = te(!1), g = zN(m, 2), v = g[0], S = g[1], E = Gt(), k = Li({
29258
29254
  query: {
29259
29255
  // keep the same select, but force fresh data on mount/window focus/reconnect
29260
29256
  select: function(P) {
@@ -29273,15 +29269,15 @@ var GN = function(e) {
29273
29269
  mutation: {
29274
29270
  onMutate: function() {
29275
29271
  var I = um(/* @__PURE__ */ $a().m(function R(D) {
29276
- var W, Q, E;
29272
+ var W, Q, O;
29277
29273
  return $a().w(function(q) {
29278
29274
  for (; ; ) switch (q.n) {
29279
29275
  case 0:
29280
- return W = D.brandId, Q = D.data, q.n = 1, O.cancelQueries({
29276
+ return W = D.brandId, Q = D.data, q.n = 1, E.cancelQueries({
29281
29277
  queryKey: In()
29282
29278
  });
29283
29279
  case 1:
29284
- return E = O.getQueryData(In()), O.setQueryData(In(), function(U) {
29280
+ return O = E.getQueryData(In()), E.setQueryData(In(), function(U) {
29285
29281
  var T, G;
29286
29282
  return U && Er(Er({}, U), {}, {
29287
29283
  data: Er(Er({}, U.data), {}, {
@@ -29295,7 +29291,7 @@ var GN = function(e) {
29295
29291
  })
29296
29292
  });
29297
29293
  }), q.a(2, {
29298
- previous: E
29294
+ previous: O
29299
29295
  });
29300
29296
  }
29301
29297
  }, R);
@@ -29311,26 +29307,26 @@ var GN = function(e) {
29311
29307
  S(!N);
29312
29308
  },
29313
29309
  onError: function(P, R, D) {
29314
- D != null && D.previous && O.setQueryData(In(), D.previous);
29310
+ D != null && D.previous && E.setQueryData(In(), D.previous);
29315
29311
  },
29316
29312
  onSettled: function() {
29317
29313
  var I = um(/* @__PURE__ */ $a().m(function R() {
29318
29314
  return $a().w(function(D) {
29319
29315
  for (; ; ) switch (D.n) {
29320
29316
  case 0:
29321
- return D.n = 1, Promise.all([O.invalidateQueries({
29317
+ return D.n = 1, Promise.all([E.invalidateQueries({
29322
29318
  queryKey: In()
29323
- }), O.invalidateQueries({
29319
+ }), E.invalidateQueries({
29324
29320
  queryKey: Hs()
29325
- }), O.invalidateQueries({
29321
+ }), E.invalidateQueries({
29326
29322
  queryKey: Cl(o)
29327
- }), O.invalidateQueries({
29323
+ }), E.invalidateQueries({
29328
29324
  queryKey: gr(o, "latest")
29329
- }), O.invalidateQueries({
29325
+ }), E.invalidateQueries({
29330
29326
  queryKey: Nn(o, "latest")
29331
- }), O.invalidateQueries({
29327
+ }), E.invalidateQueries({
29332
29328
  queryKey: gr(o, c)
29333
- }), O.invalidateQueries({
29329
+ }), E.invalidateQueries({
29334
29330
  queryKey: Nn(o, c)
29335
29331
  })]);
29336
29332
  case 1:
@@ -29384,7 +29380,7 @@ var GN = function(e) {
29384
29380
  " Delete brand"
29385
29381
  ] }) })
29386
29382
  ] }),
29387
- /* @__PURE__ */ h(re, { isOpen: g, onClose: function() {
29383
+ /* @__PURE__ */ h(re, { isOpen: v, onClose: function() {
29388
29384
  return S(!1);
29389
29385
  }, position: "center", as: "div", className: ue({
29390
29386
  "yst-mx-auto yst-max-w-xl": _
@@ -29485,14 +29481,14 @@ function Jd(t, e) {
29485
29481
  return e || (e = t.slice(0)), Object.freeze(Object.defineProperties(t, { raw: { value: Object.freeze(e) } }));
29486
29482
  }
29487
29483
  var pm = Vr(dm || (dm = Jd(["xl:yst-w-1/3"]))), mm = Vr(fm || (fm = Jd(["xl:yst-w-2/3"]))), gm = Vr(hm || (hm = Jd(["yst-flex yst-flex-col yst-gap-8 xl:yst-flex-row"]))), XN = function() {
29488
- var e, n, r, i, a = te(!1), s = Mu(a, 2), o = s[0], l = s[1], u = te(!1), c = Mu(u, 2), d = c[0], y = c[1], f = te(null), p = Mu(f, 2), m = p[0], v = p[1], g = Li({
29484
+ var e, n, r, i, a = te(!1), s = Mu(a, 2), o = s[0], l = s[1], u = te(!1), c = Mu(u, 2), d = c[0], y = c[1], f = te(null), p = Mu(f, 2), m = p[0], g = p[1], v = Li({
29489
29485
  query: {
29490
29486
  select: function(A) {
29491
29487
  var x = A.data;
29492
29488
  return x;
29493
29489
  }
29494
29490
  }
29495
- }), S = g.data, O = Ni({
29491
+ }), S = v.data, E = Ni({
29496
29492
  query: {
29497
29493
  select: function(A) {
29498
29494
  var x = A.data;
@@ -29507,7 +29503,7 @@ var pm = Vr(dm || (dm = Jd(["xl:yst-w-1/3"]))), mm = Vr(fm || (fm = Jd(["xl:yst-
29507
29503
  refetchInterval: 30 * 1e3
29508
29504
  // 30 seconds
29509
29505
  }
29510
- }), k = O.data, C = k == null ? void 0 : k.find(function(b) {
29506
+ }), k = E.data, C = k == null ? void 0 : k.find(function(b) {
29511
29507
  return b.id === m;
29512
29508
  });
29513
29509
  return /* @__PURE__ */ w("form", { children: [
@@ -29554,7 +29550,7 @@ var pm = Vr(dm || (dm = Jd(["xl:yst-w-1/3"]))), mm = Vr(fm || (fm = Jd(["xl:yst-
29554
29550
  name: "Loading..."
29555
29551
  }]).map(function(b, A, x) {
29556
29552
  return /* @__PURE__ */ h(GN, { brand: b, isLast: A === x.length - 1, onDelete: function(L) {
29557
- v(L), l(!0);
29553
+ g(L), l(!0);
29558
29554
  } }, b.id);
29559
29555
  })
29560
29556
  ] })
@@ -29581,7 +29577,7 @@ var pm = Vr(dm || (dm = Jd(["xl:yst-w-1/3"]))), mm = Vr(fm || (fm = Jd(["xl:yst-
29581
29577
  ] })
29582
29578
  ] }),
29583
29579
  /* @__PURE__ */ h(DN, { isOpen: o, onClose: function() {
29584
- l(!1), v(null);
29580
+ l(!1), g(null);
29585
29581
  }, brandId: m || "", brandName: C == null ? void 0 : C.name }),
29586
29582
  /* @__PURE__ */ h(TN, { isOpen: d, onClose: function() {
29587
29583
  y(!1);
@@ -30941,9 +30937,9 @@ function oL(t, e) {
30941
30937
  }
30942
30938
  function $c() {
30943
30939
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
30944
- function a(f, p, m, v) {
30945
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
30946
- return sn(S, "_invoke", function(O, k, C) {
30940
+ function a(f, p, m, g) {
30941
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
30942
+ return sn(S, "_invoke", function(E, k, C) {
30947
30943
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
30948
30944
  return b = P, A = 0, x = t, N.n = R, s;
30949
30945
  } };
@@ -30967,7 +30963,7 @@ function $c() {
30967
30963
  x = e.value, A < 2 && (A = 0);
30968
30964
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
30969
30965
  b = t;
30970
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
30966
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
30971
30967
  } catch (D) {
30972
30968
  b = t, A = 1, x = D;
30973
30969
  } finally {
@@ -30976,7 +30972,7 @@ function $c() {
30976
30972
  }
30977
30973
  return { value: e, done: _ };
30978
30974
  };
30979
- }(f, m, v), !0), S;
30975
+ }(f, m, g), !0), S;
30980
30976
  }
30981
30977
  var s = {};
30982
30978
  function o() {
@@ -31088,7 +31084,7 @@ var hL = function() {
31088
31084
  isLocal: !1,
31089
31085
  country: void 0,
31090
31086
  region: ""
31091
- }), f = zi(y, 2), p = f[0], m = f[1], v = te(null), g = zi(v, 2), S = g[0], O = g[1], k = te(""), C = zi(k, 2), b = C[0], A = C[1], x = Qe(function() {
31087
+ }), f = zi(y, 2), p = f[0], m = f[1], g = te(null), v = zi(g, 2), S = v[0], E = v[1], k = te(""), C = zi(k, 2), b = C[0], A = C[1], x = Qe(function() {
31092
31088
  var U;
31093
31089
  if (!p.country)
31094
31090
  return "";
@@ -31169,8 +31165,8 @@ var hL = function() {
31169
31165
  }, W = function(T) {
31170
31166
  R("country", T != null ? T : void 0), A("");
31171
31167
  }, Q = function(T) {
31172
- if (T.preventDefault(), O(null), p.description.length > 250) {
31173
- O("Your brand description is too long. Please keep it within the 250-character limit."), d(!1);
31168
+ if (T.preventDefault(), E(null), p.description.length > 250) {
31169
+ E("Your brand description is too long. Please keep it within the 250-character limit."), d(!1);
31174
31170
  return;
31175
31171
  }
31176
31172
  d(!0);
@@ -31187,10 +31183,10 @@ var hL = function() {
31187
31183
  }
31188
31184
  });
31189
31185
  };
31190
- function E(U) {
31186
+ function O(U) {
31191
31187
  return Gr(U) === "object" && U !== null && "response" in U && Gr(U.response) === "object" && U.response !== void 0 && "data" in U.response;
31192
31188
  }
31193
- var q = E(F) ? F.response.data.errors : void 0;
31189
+ var q = O(F) ? F.response.data.errors : void 0;
31194
31190
  return /* @__PURE__ */ w("form", { onSubmit: Q, children: [
31195
31191
  /* @__PURE__ */ w("div", { className: "yst-space-y-6", children: [
31196
31192
  /* @__PURE__ */ h(We, { size: "2", children: "Brand info" }),
@@ -31352,9 +31348,9 @@ function wL(t, e) {
31352
31348
  }
31353
31349
  function ed() {
31354
31350
  var t, e, n = typeof Symbol == "function" ? Symbol : {}, r = n.iterator || "@@iterator", i = n.toStringTag || "@@toStringTag";
31355
- function a(f, p, m, v) {
31356
- var g = p && p.prototype instanceof o ? p : o, S = Object.create(g.prototype);
31357
- return on(S, "_invoke", function(O, k, C) {
31351
+ function a(f, p, m, g) {
31352
+ var v = p && p.prototype instanceof o ? p : o, S = Object.create(v.prototype);
31353
+ return on(S, "_invoke", function(E, k, C) {
31358
31354
  var b, A, x, L = 0, B = C || [], _ = !1, N = { p: 0, n: 0, v: t, a: F, f: F.bind(t, 4), d: function(P, R) {
31359
31355
  return b = P, A = 0, x = t, N.n = R, s;
31360
31356
  } };
@@ -31378,7 +31374,7 @@ function ed() {
31378
31374
  x = e.value, A < 2 && (A = 0);
31379
31375
  } else A === 1 && (e = b.return) && e.call(b), A < 2 && (x = TypeError("The iterator does not provide a '" + I + "' method"), A = 1);
31380
31376
  b = t;
31381
- } else if ((e = (_ = N.n < 0) ? x : O.call(k, N)) !== s) break;
31377
+ } else if ((e = (_ = N.n < 0) ? x : E.call(k, N)) !== s) break;
31382
31378
  } catch (D) {
31383
31379
  b = t, A = 1, x = D;
31384
31380
  } finally {
@@ -31387,7 +31383,7 @@ function ed() {
31387
31383
  }
31388
31384
  return { value: e, done: _ };
31389
31385
  };
31390
- }(f, m, v), !0), S;
31386
+ }(f, m, g), !0), S;
31391
31387
  }
31392
31388
  var s = {};
31393
31389
  function o() {
@@ -31509,7 +31505,7 @@ var Hi = 5, es = "Generating...", EL = "Re-generating...", OL = 100, PL = 800, T
31509
31505
  };
31510
31506
  });
31511
31507
  }, LL = function() {
31512
- var e, n, r, i = hl(), a = i.brandId, s = "/setup/".concat(a, "/analysis"), o = kt(), l = Gt(), u = kl(), c = pa.useRef(!1), d = te(IL), y = or(d, 2), f = y[0], p = y[1], m = te(!1), v = or(m, 2), g = v[0], S = v[1], O = te([]), k = or(O, 2), C = k[0], b = k[1], A = te([]), x = or(A, 2), L = x[0], B = x[1], _ = te(!1), N = or(_, 2), F = N[0], I = N[1], P = te(null), R = or(P, 2), D = R[0], W = R[1], Q = te(!1), E = or(Q, 2), q = E[0], U = E[1], T = M5({
31508
+ var e, n, r, i = hl(), a = i.brandId, s = "/setup/".concat(a, "/analysis"), o = kt(), l = Gt(), u = kl(), c = pa.useRef(!1), d = te(IL), y = or(d, 2), f = y[0], p = y[1], m = te(!1), g = or(m, 2), v = g[0], S = g[1], E = te([]), k = or(E, 2), C = k[0], b = k[1], A = te([]), x = or(A, 2), L = x[0], B = x[1], _ = te(!1), N = or(_, 2), F = N[0], I = N[1], P = te(null), R = or(P, 2), D = R[0], W = R[1], Q = te(!1), O = or(Q, 2), q = O[0], U = O[1], T = M5({
31513
31509
  shouldBlock: !0
31514
31510
  // Always block navigation on this page
31515
31511
  }), G = T.showModal, J = T.confirmLeave, V = T.cancelLeave, X = te(!1), ce = or(X, 2), fe = ce[0], se = ce[1], Le = te(null), Z = or(Le, 2), Ze = Z[0], Yt = Z[1], bt = yA(a || "", {
@@ -31683,8 +31679,8 @@ var Hi = 5, es = "Generating...", EL = "Re-generating...", OL = 100, PL = 800, T
31683
31679
  }, [L]), nr = Qe(function() {
31684
31680
  return ft || f.length === 0 || f.some(function(ne) {
31685
31681
  return ne.isRegenerating || ne.text === es && !xt || ne.text.trim() === "";
31686
- }) || g;
31687
- }, [ft, f, g, xt]), Dn = ft || f.some(function(ne) {
31682
+ }) || v;
31683
+ }, [ft, f, v, xt]), Dn = ft || f.some(function(ne) {
31688
31684
  return ne.text === es;
31689
31685
  }) && !xt, Re = Je(function(ne) {
31690
31686
  var ae = ne.toString();
@@ -31702,7 +31698,7 @@ var Hi = 5, es = "Generating...", EL = "Re-generating...", OL = 100, PL = 800, T
31702
31698
  });
31703
31699
  });
31704
31700
  }, []), gt = function() {
31705
- S(!g), b([]);
31701
+ S(!v), b([]);
31706
31702
  }, zl = Je(function() {
31707
31703
  if (!(ft || C.length === 0)) {
31708
31704
  p(function(ze) {
@@ -31755,7 +31751,7 @@ var Hi = 5, es = "Generating...", EL = "Re-generating...", OL = 100, PL = 800, T
31755
31751
  /* @__PURE__ */ h(We, { size: "2", className: "yst-mb-2", children: "Your queries" }),
31756
31752
  /* @__PURE__ */ w("div", { className: "yst-space-y-4", children: [
31757
31753
  /* @__PURE__ */ h("p", { children: "You can edit your queries or regenerate new ones with AI." }),
31758
- /* @__PURE__ */ h("div", { className: ue("yst-flex yst-gap-2", g ? "yst-justify-end" : "yst-justify-start"), children: g ? /* @__PURE__ */ w(we, { children: [
31754
+ /* @__PURE__ */ h("div", { className: ue("yst-flex yst-gap-2", v ? "yst-justify-end" : "yst-justify-start"), children: v ? /* @__PURE__ */ w(we, { children: [
31759
31755
  /* @__PURE__ */ h(de, { size: "small", variant: "secondary", onClick: gt, children: "Done" }),
31760
31756
  /* @__PURE__ */ w(de, { variant: "secondary", size: "small", onClick: zl, className: "yst-gap-1", isLoading: ft || F, disabled: F || ft || C.length === 0, children: [
31761
31757
  /* @__PURE__ */ h(hc, { "aria-hidden": "true" }),
@@ -31772,7 +31768,7 @@ var Hi = 5, es = "Generating...", EL = "Re-generating...", OL = 100, PL = 800, T
31772
31768
  }) : f.slice(0, Hi).map(function(ne, ae) {
31773
31769
  var he = ne.isRegenerating ? ne.text === es ? es : EL : ne.text;
31774
31770
  return /* @__PURE__ */ h("div", { className: ue("yst-mb-4"), children: /* @__PURE__ */ w("div", { className: "yst-flex yst-gap-2", children: [
31775
- g && /* @__PURE__ */ h("div", { className: "yst-flex yst-items-center", children: /* @__PURE__ */ h(
31771
+ v && /* @__PURE__ */ h("div", { className: "yst-flex yst-items-center", children: /* @__PURE__ */ h(
31776
31772
  Uu,
31777
31773
  {
31778
31774
  id: "query-regenerate-".concat(ae),
@@ -31848,8 +31844,8 @@ var Cm;
31848
31844
  function _L() {
31849
31845
  if (Cm) return Be;
31850
31846
  Cm = 1;
31851
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, y = t ? Symbol.for("react.suspense_list") : 60120, f = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119;
31852
- function O(C) {
31847
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, y = t ? Symbol.for("react.suspense_list") : 60120, f = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119;
31848
+ function E(C) {
31853
31849
  if (typeof C == "object" && C !== null) {
31854
31850
  var b = C.$$typeof;
31855
31851
  switch (b) {
@@ -31880,44 +31876,44 @@ function _L() {
31880
31876
  }
31881
31877
  }
31882
31878
  function k(C) {
31883
- return O(C) === u;
31879
+ return E(C) === u;
31884
31880
  }
31885
31881
  return Be.AsyncMode = l, Be.ConcurrentMode = u, Be.ContextConsumer = o, Be.ContextProvider = s, Be.Element = e, Be.ForwardRef = c, Be.Fragment = r, Be.Lazy = p, Be.Memo = f, Be.Portal = n, Be.Profiler = a, Be.StrictMode = i, Be.Suspense = d, Be.isAsyncMode = function(C) {
31886
- return k(C) || O(C) === l;
31882
+ return k(C) || E(C) === l;
31887
31883
  }, Be.isConcurrentMode = k, Be.isContextConsumer = function(C) {
31888
- return O(C) === o;
31884
+ return E(C) === o;
31889
31885
  }, Be.isContextProvider = function(C) {
31890
- return O(C) === s;
31886
+ return E(C) === s;
31891
31887
  }, Be.isElement = function(C) {
31892
31888
  return typeof C == "object" && C !== null && C.$$typeof === e;
31893
31889
  }, Be.isForwardRef = function(C) {
31894
- return O(C) === c;
31890
+ return E(C) === c;
31895
31891
  }, Be.isFragment = function(C) {
31896
- return O(C) === r;
31892
+ return E(C) === r;
31897
31893
  }, Be.isLazy = function(C) {
31898
- return O(C) === p;
31894
+ return E(C) === p;
31899
31895
  }, Be.isMemo = function(C) {
31900
- return O(C) === f;
31896
+ return E(C) === f;
31901
31897
  }, Be.isPortal = function(C) {
31902
- return O(C) === n;
31898
+ return E(C) === n;
31903
31899
  }, Be.isProfiler = function(C) {
31904
- return O(C) === a;
31900
+ return E(C) === a;
31905
31901
  }, Be.isStrictMode = function(C) {
31906
- return O(C) === i;
31902
+ return E(C) === i;
31907
31903
  }, Be.isSuspense = function(C) {
31908
- return O(C) === d;
31904
+ return E(C) === d;
31909
31905
  }, Be.isValidElementType = function(C) {
31910
- return typeof C == "string" || typeof C == "function" || C === r || C === u || C === a || C === i || C === d || C === y || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === f || C.$$typeof === s || C.$$typeof === o || C.$$typeof === c || C.$$typeof === v || C.$$typeof === g || C.$$typeof === S || C.$$typeof === m);
31911
- }, Be.typeOf = O, Be;
31906
+ return typeof C == "string" || typeof C == "function" || C === r || C === u || C === a || C === i || C === d || C === y || typeof C == "object" && C !== null && (C.$$typeof === p || C.$$typeof === f || C.$$typeof === s || C.$$typeof === o || C.$$typeof === c || C.$$typeof === g || C.$$typeof === v || C.$$typeof === S || C.$$typeof === m);
31907
+ }, Be.typeOf = E, Be;
31912
31908
  }
31913
31909
  var je = {};
31914
31910
  var km;
31915
31911
  function RL() {
31916
31912
  return km || (km = 1, process.env.NODE_ENV !== "production" && function() {
31917
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, y = t ? Symbol.for("react.suspense_list") : 60120, f = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, g = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119;
31918
- function O(Z) {
31913
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, y = t ? Symbol.for("react.suspense_list") : 60120, f = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119;
31914
+ function E(Z) {
31919
31915
  return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
31920
- Z === r || Z === u || Z === a || Z === i || Z === d || Z === y || typeof Z == "object" && Z !== null && (Z.$$typeof === p || Z.$$typeof === f || Z.$$typeof === s || Z.$$typeof === o || Z.$$typeof === c || Z.$$typeof === v || Z.$$typeof === g || Z.$$typeof === S || Z.$$typeof === m);
31916
+ Z === r || Z === u || Z === a || Z === i || Z === d || Z === y || typeof Z == "object" && Z !== null && (Z.$$typeof === p || Z.$$typeof === f || Z.$$typeof === s || Z.$$typeof === o || Z.$$typeof === c || Z.$$typeof === g || Z.$$typeof === v || Z.$$typeof === S || Z.$$typeof === m);
31921
31917
  }
31922
31918
  function k(Z) {
31923
31919
  if (typeof Z == "object" && Z !== null) {
@@ -31953,9 +31949,9 @@ function RL() {
31953
31949
  }
31954
31950
  var C = l, b = u, A = o, x = s, L = e, B = c, _ = r, N = p, F = f, I = n, P = a, R = i, D = d, W = !1;
31955
31951
  function Q(Z) {
31956
- return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), E(Z) || k(Z) === l;
31952
+ return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(Z) || k(Z) === l;
31957
31953
  }
31958
- function E(Z) {
31954
+ function O(Z) {
31959
31955
  return k(Z) === u;
31960
31956
  }
31961
31957
  function q(Z) {
@@ -31991,7 +31987,7 @@ function RL() {
31991
31987
  function Le(Z) {
31992
31988
  return k(Z) === d;
31993
31989
  }
31994
- je.AsyncMode = C, je.ConcurrentMode = b, je.ContextConsumer = A, je.ContextProvider = x, je.Element = L, je.ForwardRef = B, je.Fragment = _, je.Lazy = N, je.Memo = F, je.Portal = I, je.Profiler = P, je.StrictMode = R, je.Suspense = D, je.isAsyncMode = Q, je.isConcurrentMode = E, je.isContextConsumer = q, je.isContextProvider = U, je.isElement = T, je.isForwardRef = G, je.isFragment = J, je.isLazy = V, je.isMemo = X, je.isPortal = ce, je.isProfiler = fe, je.isStrictMode = se, je.isSuspense = Le, je.isValidElementType = O, je.typeOf = k;
31990
+ je.AsyncMode = C, je.ConcurrentMode = b, je.ContextConsumer = A, je.ContextProvider = x, je.Element = L, je.ForwardRef = B, je.Fragment = _, je.Lazy = N, je.Memo = F, je.Portal = I, je.Profiler = P, je.StrictMode = R, je.Suspense = D, je.isAsyncMode = Q, je.isConcurrentMode = O, je.isContextConsumer = q, je.isContextProvider = U, je.isElement = T, je.isForwardRef = G, je.isFragment = J, je.isLazy = V, je.isMemo = X, je.isPortal = ce, je.isProfiler = fe, je.isStrictMode = se, je.isSuspense = Le, je.isValidElementType = E, je.typeOf = k;
31995
31991
  }()), je;
31996
31992
  }
31997
31993
  var Em;
@@ -32123,22 +32119,22 @@ function jL() {
32123
32119
  }
32124
32120
  return Fu = function(o, l) {
32125
32121
  var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
32126
- function d(E) {
32127
- var q = E && (u && E[u] || E[c]);
32122
+ function d(O) {
32123
+ var q = O && (u && O[u] || O[c]);
32128
32124
  if (typeof q == "function")
32129
32125
  return q;
32130
32126
  }
32131
32127
  var y = "<<anonymous>>", f = {
32132
- array: g("array"),
32133
- bigint: g("bigint"),
32134
- bool: g("boolean"),
32135
- func: g("function"),
32136
- number: g("number"),
32137
- object: g("object"),
32138
- string: g("string"),
32139
- symbol: g("symbol"),
32128
+ array: v("array"),
32129
+ bigint: v("bigint"),
32130
+ bool: v("boolean"),
32131
+ func: v("function"),
32132
+ number: v("number"),
32133
+ object: v("object"),
32134
+ string: v("string"),
32135
+ symbol: v("symbol"),
32140
32136
  any: S(),
32141
- arrayOf: O,
32137
+ arrayOf: E,
32142
32138
  element: k(),
32143
32139
  elementType: C(),
32144
32140
  instanceOf: b,
@@ -32149,14 +32145,14 @@ function jL() {
32149
32145
  shape: N,
32150
32146
  exact: F
32151
32147
  };
32152
- function p(E, q) {
32153
- return E === q ? E !== 0 || 1 / E === 1 / q : E !== E && q !== q;
32148
+ function p(O, q) {
32149
+ return O === q ? O !== 0 || 1 / O === 1 / q : O !== O && q !== q;
32154
32150
  }
32155
- function m(E, q) {
32156
- this.message = E, this.data = q && typeof q == "object" ? q : {}, this.stack = "";
32151
+ function m(O, q) {
32152
+ this.message = O, this.data = q && typeof q == "object" ? q : {}, this.stack = "";
32157
32153
  }
32158
32154
  m.prototype = Error.prototype;
32159
- function v(E) {
32155
+ function g(O) {
32160
32156
  if (process.env.NODE_ENV !== "production")
32161
32157
  var q = {}, U = 0;
32162
32158
  function T(J, V, X, ce, fe, se, Le) {
@@ -32174,31 +32170,31 @@ function jL() {
32174
32170
  ), q[Ze] = !0, U++);
32175
32171
  }
32176
32172
  }
32177
- return V[X] == null ? J ? V[X] === null ? new m("The " + fe + " `" + se + "` is marked as required " + ("in `" + ce + "`, but its value is `null`.")) : new m("The " + fe + " `" + se + "` is marked as required in " + ("`" + ce + "`, but its value is `undefined`.")) : null : E(V, X, ce, fe, se);
32173
+ return V[X] == null ? J ? V[X] === null ? new m("The " + fe + " `" + se + "` is marked as required " + ("in `" + ce + "`, but its value is `null`.")) : new m("The " + fe + " `" + se + "` is marked as required in " + ("`" + ce + "`, but its value is `undefined`.")) : null : O(V, X, ce, fe, se);
32178
32174
  }
32179
32175
  var G = T.bind(null, !1);
32180
32176
  return G.isRequired = T.bind(null, !0), G;
32181
32177
  }
32182
- function g(E) {
32178
+ function v(O) {
32183
32179
  function q(U, T, G, J, V, X) {
32184
32180
  var ce = U[T], fe = R(ce);
32185
- if (fe !== E) {
32181
+ if (fe !== O) {
32186
32182
  var se = D(ce);
32187
32183
  return new m(
32188
- "Invalid " + J + " `" + V + "` of type " + ("`" + se + "` supplied to `" + G + "`, expected ") + ("`" + E + "`."),
32189
- { expectedType: E }
32184
+ "Invalid " + J + " `" + V + "` of type " + ("`" + se + "` supplied to `" + G + "`, expected ") + ("`" + O + "`."),
32185
+ { expectedType: O }
32190
32186
  );
32191
32187
  }
32192
32188
  return null;
32193
32189
  }
32194
- return v(q);
32190
+ return g(q);
32195
32191
  }
32196
32192
  function S() {
32197
- return v(s);
32193
+ return g(s);
32198
32194
  }
32199
- function O(E) {
32195
+ function E(O) {
32200
32196
  function q(U, T, G, J, V) {
32201
- if (typeof E != "function")
32197
+ if (typeof O != "function")
32202
32198
  return new m("Property `" + V + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
32203
32199
  var X = U[T];
32204
32200
  if (!Array.isArray(X)) {
@@ -32206,16 +32202,16 @@ function jL() {
32206
32202
  return new m("Invalid " + J + " `" + V + "` of type " + ("`" + ce + "` supplied to `" + G + "`, expected an array."));
32207
32203
  }
32208
32204
  for (var fe = 0; fe < X.length; fe++) {
32209
- var se = E(X, fe, G, J, V + "[" + fe + "]", n);
32205
+ var se = O(X, fe, G, J, V + "[" + fe + "]", n);
32210
32206
  if (se instanceof Error)
32211
32207
  return se;
32212
32208
  }
32213
32209
  return null;
32214
32210
  }
32215
- return v(q);
32211
+ return g(q);
32216
32212
  }
32217
32213
  function k() {
32218
- function E(q, U, T, G, J) {
32214
+ function O(q, U, T, G, J) {
32219
32215
  var V = q[U];
32220
32216
  if (!o(V)) {
32221
32217
  var X = R(V);
@@ -32223,10 +32219,10 @@ function jL() {
32223
32219
  }
32224
32220
  return null;
32225
32221
  }
32226
- return v(E);
32222
+ return g(O);
32227
32223
  }
32228
32224
  function C() {
32229
- function E(q, U, T, G, J) {
32225
+ function O(q, U, T, G, J) {
32230
32226
  var V = q[U];
32231
32227
  if (!t.isValidElementType(V)) {
32232
32228
  var X = R(V);
@@ -32234,65 +32230,65 @@ function jL() {
32234
32230
  }
32235
32231
  return null;
32236
32232
  }
32237
- return v(E);
32233
+ return g(O);
32238
32234
  }
32239
- function b(E) {
32235
+ function b(O) {
32240
32236
  function q(U, T, G, J, V) {
32241
- if (!(U[T] instanceof E)) {
32242
- var X = E.name || y, ce = Q(U[T]);
32237
+ if (!(U[T] instanceof O)) {
32238
+ var X = O.name || y, ce = Q(U[T]);
32243
32239
  return new m("Invalid " + J + " `" + V + "` of type " + ("`" + ce + "` supplied to `" + G + "`, expected ") + ("instance of `" + X + "`."));
32244
32240
  }
32245
32241
  return null;
32246
32242
  }
32247
- return v(q);
32243
+ return g(q);
32248
32244
  }
32249
- function A(E) {
32250
- if (!Array.isArray(E))
32245
+ function A(O) {
32246
+ if (!Array.isArray(O))
32251
32247
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
32252
32248
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
32253
32249
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
32254
32250
  function q(U, T, G, J, V) {
32255
- for (var X = U[T], ce = 0; ce < E.length; ce++)
32256
- if (p(X, E[ce]))
32251
+ for (var X = U[T], ce = 0; ce < O.length; ce++)
32252
+ if (p(X, O[ce]))
32257
32253
  return null;
32258
- var fe = JSON.stringify(E, function(Le, Z) {
32254
+ var fe = JSON.stringify(O, function(Le, Z) {
32259
32255
  var Ze = D(Z);
32260
32256
  return Ze === "symbol" ? String(Z) : Z;
32261
32257
  });
32262
32258
  return new m("Invalid " + J + " `" + V + "` of value `" + String(X) + "` " + ("supplied to `" + G + "`, expected one of " + fe + "."));
32263
32259
  }
32264
- return v(q);
32260
+ return g(q);
32265
32261
  }
32266
- function x(E) {
32262
+ function x(O) {
32267
32263
  function q(U, T, G, J, V) {
32268
- if (typeof E != "function")
32264
+ if (typeof O != "function")
32269
32265
  return new m("Property `" + V + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
32270
32266
  var X = U[T], ce = R(X);
32271
32267
  if (ce !== "object")
32272
32268
  return new m("Invalid " + J + " `" + V + "` of type " + ("`" + ce + "` supplied to `" + G + "`, expected an object."));
32273
32269
  for (var fe in X)
32274
32270
  if (r(X, fe)) {
32275
- var se = E(X, fe, G, J, V + "." + fe, n);
32271
+ var se = O(X, fe, G, J, V + "." + fe, n);
32276
32272
  if (se instanceof Error)
32277
32273
  return se;
32278
32274
  }
32279
32275
  return null;
32280
32276
  }
32281
- return v(q);
32277
+ return g(q);
32282
32278
  }
32283
- function L(E) {
32284
- if (!Array.isArray(E))
32279
+ function L(O) {
32280
+ if (!Array.isArray(O))
32285
32281
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
32286
- for (var q = 0; q < E.length; q++) {
32287
- var U = E[q];
32282
+ for (var q = 0; q < O.length; q++) {
32283
+ var U = O[q];
32288
32284
  if (typeof U != "function")
32289
32285
  return a(
32290
32286
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(U) + " at index " + q + "."
32291
32287
  ), s;
32292
32288
  }
32293
32289
  function T(G, J, V, X, ce) {
32294
- for (var fe = [], se = 0; se < E.length; se++) {
32295
- var Le = E[se], Z = Le(G, J, V, X, ce, n);
32290
+ for (var fe = [], se = 0; se < O.length; se++) {
32291
+ var Le = O[se], Z = Le(G, J, V, X, ce, n);
32296
32292
  if (Z == null)
32297
32293
  return null;
32298
32294
  Z.data && r(Z.data, "expectedType") && fe.push(Z.data.expectedType);
@@ -32300,26 +32296,26 @@ function jL() {
32300
32296
  var Ze = fe.length > 0 ? ", expected one of type [" + fe.join(", ") + "]" : "";
32301
32297
  return new m("Invalid " + X + " `" + ce + "` supplied to " + ("`" + V + "`" + Ze + "."));
32302
32298
  }
32303
- return v(T);
32299
+ return g(T);
32304
32300
  }
32305
32301
  function B() {
32306
- function E(q, U, T, G, J) {
32302
+ function O(q, U, T, G, J) {
32307
32303
  return I(q[U]) ? null : new m("Invalid " + G + " `" + J + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
32308
32304
  }
32309
- return v(E);
32305
+ return g(O);
32310
32306
  }
32311
- function _(E, q, U, T, G) {
32307
+ function _(O, q, U, T, G) {
32312
32308
  return new m(
32313
- (E || "React class") + ": " + q + " type `" + U + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
32309
+ (O || "React class") + ": " + q + " type `" + U + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
32314
32310
  );
32315
32311
  }
32316
- function N(E) {
32312
+ function N(O) {
32317
32313
  function q(U, T, G, J, V) {
32318
32314
  var X = U[T], ce = R(X);
32319
32315
  if (ce !== "object")
32320
32316
  return new m("Invalid " + J + " `" + V + "` of type `" + ce + "` " + ("supplied to `" + G + "`, expected `object`."));
32321
- for (var fe in E) {
32322
- var se = E[fe];
32317
+ for (var fe in O) {
32318
+ var se = O[fe];
32323
32319
  if (typeof se != "function")
32324
32320
  return _(G, J, V, fe, D(se));
32325
32321
  var Le = se(X, fe, G, J, V + "." + fe, n);
@@ -32328,22 +32324,22 @@ function jL() {
32328
32324
  }
32329
32325
  return null;
32330
32326
  }
32331
- return v(q);
32327
+ return g(q);
32332
32328
  }
32333
- function F(E) {
32329
+ function F(O) {
32334
32330
  function q(U, T, G, J, V) {
32335
32331
  var X = U[T], ce = R(X);
32336
32332
  if (ce !== "object")
32337
32333
  return new m("Invalid " + J + " `" + V + "` of type `" + ce + "` " + ("supplied to `" + G + "`, expected `object`."));
32338
- var fe = e({}, U[T], E);
32334
+ var fe = e({}, U[T], O);
32339
32335
  for (var se in fe) {
32340
- var Le = E[se];
32341
- if (r(E, se) && typeof Le != "function")
32336
+ var Le = O[se];
32337
+ if (r(O, se) && typeof Le != "function")
32342
32338
  return _(G, J, V, se, D(Le));
32343
32339
  if (!Le)
32344
32340
  return new m(
32345
32341
  "Invalid " + J + " `" + V + "` key `" + se + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(U[T], null, " ") + `
32346
- Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
32342
+ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
32347
32343
  );
32348
32344
  var Z = Le(X, se, G, J, V + "." + se, n);
32349
32345
  if (Z)
@@ -32351,25 +32347,25 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
32351
32347
  }
32352
32348
  return null;
32353
32349
  }
32354
- return v(q);
32350
+ return g(q);
32355
32351
  }
32356
- function I(E) {
32357
- switch (typeof E) {
32352
+ function I(O) {
32353
+ switch (typeof O) {
32358
32354
  case "number":
32359
32355
  case "string":
32360
32356
  case "undefined":
32361
32357
  return !0;
32362
32358
  case "boolean":
32363
- return !E;
32359
+ return !O;
32364
32360
  case "object":
32365
- if (Array.isArray(E))
32366
- return E.every(I);
32367
- if (E === null || o(E))
32361
+ if (Array.isArray(O))
32362
+ return O.every(I);
32363
+ if (O === null || o(O))
32368
32364
  return !0;
32369
- var q = d(E);
32365
+ var q = d(O);
32370
32366
  if (q) {
32371
- var U = q.call(E), T;
32372
- if (q !== E.entries) {
32367
+ var U = q.call(O), T;
32368
+ if (q !== O.entries) {
32373
32369
  for (; !(T = U.next()).done; )
32374
32370
  if (!I(T.value))
32375
32371
  return !1;
@@ -32386,27 +32382,27 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
32386
32382
  return !1;
32387
32383
  }
32388
32384
  }
32389
- function P(E, q) {
32390
- return E === "symbol" ? !0 : q ? q["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && q instanceof Symbol : !1;
32385
+ function P(O, q) {
32386
+ return O === "symbol" ? !0 : q ? q["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && q instanceof Symbol : !1;
32391
32387
  }
32392
- function R(E) {
32393
- var q = typeof E;
32394
- return Array.isArray(E) ? "array" : E instanceof RegExp ? "object" : P(q, E) ? "symbol" : q;
32388
+ function R(O) {
32389
+ var q = typeof O;
32390
+ return Array.isArray(O) ? "array" : O instanceof RegExp ? "object" : P(q, O) ? "symbol" : q;
32395
32391
  }
32396
- function D(E) {
32397
- if (typeof E == "undefined" || E === null)
32398
- return "" + E;
32399
- var q = R(E);
32392
+ function D(O) {
32393
+ if (typeof O == "undefined" || O === null)
32394
+ return "" + O;
32395
+ var q = R(O);
32400
32396
  if (q === "object") {
32401
- if (E instanceof Date)
32397
+ if (O instanceof Date)
32402
32398
  return "date";
32403
- if (E instanceof RegExp)
32399
+ if (O instanceof RegExp)
32404
32400
  return "regexp";
32405
32401
  }
32406
32402
  return q;
32407
32403
  }
32408
- function W(E) {
32409
- var q = D(E);
32404
+ function W(O) {
32405
+ var q = D(O);
32410
32406
  switch (q) {
32411
32407
  case "array":
32412
32408
  case "object":
@@ -32419,8 +32415,8 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
32419
32415
  return q;
32420
32416
  }
32421
32417
  }
32422
- function Q(E) {
32423
- return !E.constructor || !E.constructor.name ? y : E.constructor.name;
32418
+ function Q(O) {
32419
+ return !O.constructor || !O.constructor.name ? y : O.constructor.name;
32424
32420
  }
32425
32421
  return f.checkPropTypes = i, f.resetWarningCache = i.resetWarningCache, f.PropTypes = f, f;
32426
32422
  }, Fu;
@@ -32612,7 +32608,7 @@ var XL = function(e) {
32612
32608
  return B;
32613
32609
  }
32614
32610
  }
32615
- }), m = p.data, v = Rw(
32611
+ }), m = p.data, g = Rw(
32616
32612
  u,
32617
32613
  // NOTE: in the future we may need to select a specific analysis ID rather than always use 'latest' here
32618
32614
  "latest",
@@ -32629,21 +32625,21 @@ var XL = function(e) {
32629
32625
  }
32630
32626
  }
32631
32627
  }
32632
- ), g = v.data, S = g == null ? void 0 : g.id, O = S ? "/brands/".concat(u, "/analysis/").concat(S) : "/brands/".concat(u);
32628
+ ), v = g.data, S = v == null ? void 0 : v.id, E = S ? "/brands/".concat(u, "/analysis/").concat(S) : "/brands/".concat(u);
32633
32629
  ge(function() {
32634
- var x = (g == null ? void 0 : g.status) === "pending" || (g == null ? void 0 : g.status) === "processing" || (g == null ? void 0 : g.status) === "completed";
32635
- m != null && m.nextScheduledAnalysis && g !== null && g !== void 0 && g.status && z5(m.nextScheduledAnalysis, 5) && !x && i("/brands/".concat(u), {
32630
+ var x = (v == null ? void 0 : v.status) === "pending" || (v == null ? void 0 : v.status) === "processing" || (v == null ? void 0 : v.status) === "completed";
32631
+ m != null && m.nextScheduledAnalysis && v !== null && v !== void 0 && v.status && z5(m.nextScheduledAnalysis, 5) && !x && i("/brands/".concat(u), {
32636
32632
  // replace history to avoid going "back" to the analysis page
32637
32633
  replace: !0
32638
32634
  });
32639
- }, [m == null ? void 0 : m.nextScheduledAnalysis, u, i, g == null ? void 0 : g.status]), ge(function() {
32640
- ((m == null ? void 0 : m.setupStatus) === "completed" || (m == null ? void 0 : m.setupStatus) === "firstAnalysisNotScheduled" || (m == null ? void 0 : m.setupStatus) === "scheduledFirstAnalysis" && m !== null && m !== void 0 && m.firstNextAnalysisOpportunity && !xg(m.firstNextAnalysisOpportunity, 2)) && i(O, {
32635
+ }, [m == null ? void 0 : m.nextScheduledAnalysis, u, i, v == null ? void 0 : v.status]), ge(function() {
32636
+ ((m == null ? void 0 : m.setupStatus) === "completed" || (m == null ? void 0 : m.setupStatus) === "firstAnalysisNotScheduled" || (m == null ? void 0 : m.setupStatus) === "scheduledFirstAnalysis" && m !== null && m !== void 0 && m.firstNextAnalysisOpportunity && !xg(m.firstNextAnalysisOpportunity, 2)) && i(E, {
32641
32637
  replace: !0
32642
32638
  });
32643
- }, [m == null ? void 0 : m.firstNextAnalysisOpportunity, m == null ? void 0 : m.setupStatus, O, i]);
32644
- var k = m == null || (e = m.queries) === null || e === void 0 ? void 0 : e.length, C = (g == null || (n = g.completedQueries) === null || n === void 0 ? void 0 : n.length) || 0;
32639
+ }, [m == null ? void 0 : m.firstNextAnalysisOpportunity, m == null ? void 0 : m.setupStatus, E, i]);
32640
+ var k = m == null || (e = m.queries) === null || e === void 0 ? void 0 : e.length, C = (v == null || (n = v.completedQueries) === null || n === void 0 ? void 0 : n.length) || 0;
32645
32641
  ge(function() {
32646
- if ((g == null ? void 0 : g.status) === "processing" && k && C === k) {
32642
+ if ((v == null ? void 0 : v.status) === "processing" && k && C === k) {
32647
32643
  f("building");
32648
32644
  var x = setTimeout(function() {
32649
32645
  f("finalizing");
@@ -32653,11 +32649,11 @@ var XL = function(e) {
32653
32649
  };
32654
32650
  } else
32655
32651
  f(null);
32656
- }, [g == null ? void 0 : g.status, k, C]);
32652
+ }, [v == null ? void 0 : v.status, k, C]);
32657
32653
  var b = function() {
32658
32654
  if (k && k > 0) {
32659
32655
  var x = 80 / k, L = C * x;
32660
- return (g == null ? void 0 : g.status) === "completed" ? 100 : (g == null ? void 0 : g.status) === "processing" && C === k && y !== null ? y === "building" ? 90 : 95 : Math.round(Math.min(L, 80));
32656
+ return (v == null ? void 0 : v.status) === "completed" ? 100 : (v == null ? void 0 : v.status) === "processing" && C === k && y !== null ? y === "building" ? 90 : 95 : Math.round(Math.min(L, 80));
32661
32657
  }
32662
32658
  return 0;
32663
32659
  }(), A = b <= 80 || b === 100;
@@ -32667,7 +32663,7 @@ var XL = function(e) {
32667
32663
  A && /* @__PURE__ */ w(we, { children: [
32668
32664
  /* @__PURE__ */ h(Ei, {}),
32669
32665
  /* @__PURE__ */ h("div", { className: "yst-space-y-8", children: m == null || (r = m.queries) === null || r === void 0 ? void 0 : r.map(function(x) {
32670
- var L, B = x.id, _ = x.query, N = B && (g == null || (L = g.completedQueries) === null || L === void 0 ? void 0 : L.includes(B));
32666
+ var L, B = x.id, _ = x.query, N = B && (v == null || (L = v.completedQueries) === null || L === void 0 ? void 0 : L.includes(B));
32671
32667
  return /* @__PURE__ */ w("div", { className: ue("yst-flex yst-items-center yst-justify-between yst-gap-3"), children: [
32672
32668
  N === !0 ? (
32673
32669
  // found
@@ -32681,7 +32677,7 @@ var XL = function(e) {
32681
32677
  }) })
32682
32678
  ] })
32683
32679
  ] }),
32684
- /* @__PURE__ */ h("div", { className: "yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem] yst-mt-8 yst-flex yst-justify-end yst-gap-4 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6", children: /* @__PURE__ */ h(de, { as: wn, to: O, onClick: function(x) {
32680
+ /* @__PURE__ */ h("div", { className: "yst-mb-[-2rem] yst-ml-[-2rem] yst-mr-[-2rem] yst-mt-8 yst-flex yst-justify-end yst-gap-4 yst-rounded-bl-lg yst-rounded-br-lg yst-border-t yst-border-slate-200 yst-bg-slate-50 yst-px-8 yst-py-6", children: /* @__PURE__ */ h(de, { as: wn, to: E, onClick: function(x) {
32685
32681
  if (b !== 100) {
32686
32682
  x.preventDefault();
32687
32683
  return;
@@ -32731,8 +32727,8 @@ var $L = function() {
32731
32727
  ] }) }) })
32732
32728
  ] }),
32733
32729
  (o = u.brands) !== null && o !== void 0 && o.length ? u.brands.map(function(y) {
32734
- var f, p, m = (f = (p = u.analyses) === null || p === void 0 ? void 0 : p.filter(function(v) {
32735
- return v.brandId === y.id;
32730
+ var f, p, m = (f = (p = u.analyses) === null || p === void 0 ? void 0 : p.filter(function(g) {
32731
+ return g.brandId === y.id;
32736
32732
  })) !== null && f !== void 0 ? f : [];
32737
32733
  return /* @__PURE__ */ w(Ae, { children: [
32738
32734
  /* @__PURE__ */ h(mr, { title: /* @__PURE__ */ w("span", { className: "yst-flex yst-items-center yst-gap-3", children: [
@@ -32749,16 +32745,16 @@ var $L = function() {
32749
32745
  /* @__PURE__ */ h("th", { className: "yst-py-2 yst-pr-4 yst-font-medium yst-text-slate-700", children: "Trial" }),
32750
32746
  /* @__PURE__ */ h("th", { className: "yst-py-2 yst-font-medium yst-text-slate-700", children: "Status" })
32751
32747
  ] }) }),
32752
- /* @__PURE__ */ h("tbody", { children: m.map(function(v) {
32748
+ /* @__PURE__ */ h("tbody", { children: m.map(function(g) {
32753
32749
  return /* @__PURE__ */ w("tr", { className: "yst-border-b yst-border-slate-200", children: [
32754
- /* @__PURE__ */ h("td", { className: "yst-py-2 yst-pr-4", children: Wa(v.createdAt) }),
32755
- /* @__PURE__ */ h("td", { className: "yst-py-2 yst-pr-4", children: Wa(v.finishedAt) }),
32756
- /* @__PURE__ */ h("td", { className: "yst-py-2 yst-pr-4", children: v.isTrial ? "Yes" : "-" }),
32757
- /* @__PURE__ */ h("td", { className: "yst-py-2", children: v.deletedAt ? /* @__PURE__ */ w(Ge, { variant: "plain", children: [
32750
+ /* @__PURE__ */ h("td", { className: "yst-py-2 yst-pr-4", children: Wa(g.createdAt) }),
32751
+ /* @__PURE__ */ h("td", { className: "yst-py-2 yst-pr-4", children: Wa(g.finishedAt) }),
32752
+ /* @__PURE__ */ h("td", { className: "yst-py-2 yst-pr-4", children: g.isTrial ? "Yes" : "-" }),
32753
+ /* @__PURE__ */ h("td", { className: "yst-py-2", children: g.deletedAt ? /* @__PURE__ */ w(Ge, { variant: "plain", children: [
32758
32754
  "Deleted ",
32759
- Wa(v.deletedAt)
32760
- ] }) : v.finishedAt ? /* @__PURE__ */ h(Ge, { variant: "info", children: "Completed" }) : /* @__PURE__ */ h(Ge, { variant: "plain", children: "In progress" }) })
32761
- ] }, v.id);
32755
+ Wa(g.deletedAt)
32756
+ ] }) : g.finishedAt ? /* @__PURE__ */ h(Ge, { variant: "info", children: "Completed" }) : /* @__PURE__ */ h(Ge, { variant: "plain", children: "In progress" }) })
32757
+ ] }, g.id);
32762
32758
  }) })
32763
32759
  ] }) }) })
32764
32760
  ] }, y.id);