@spotlightjs/overlay 2.4.0-next.0 → 2.4.0-next.1

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.
@@ -375,8 +375,8 @@ function eN(e) {
375
375
  }
376
376
  function u(N, I, h) {
377
377
  I === void 0 && (I = null);
378
- let p = nN(i ? l().pathname : "/", N, I, h);
379
- return pa(p.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(N)), p;
378
+ let O = nN(i ? l().pathname : "/", N, I, h);
379
+ return pa(O.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(N)), O;
380
380
  }
381
381
  function c(N) {
382
382
  return typeof N == "string" ? N : oE(N);
@@ -1168,11 +1168,11 @@ const XN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1168
1168
  } = P.useContext(Wn), I, h = !1;
1169
1169
  if (typeof l == "string" && ZN.test(l) && (I = l, JN))
1170
1170
  try {
1171
- let O = new URL(window.location.href), d = l.startsWith("//") ? new URL(O.protocol + l) : new URL(l), m = Ti(d.pathname, N);
1172
- d.origin === O.origin && m != null ? l = m + d.search + d.hash : h = !0;
1171
+ let p = new URL(window.location.href), d = l.startsWith("//") ? new URL(p.protocol + l) : new URL(l), m = Ti(d.pathname, N);
1172
+ d.origin === p.origin && m != null ? l = m + d.search + d.hash : h = !0;
1173
1173
  } catch {
1174
1174
  }
1175
- let p = CN(l, {
1175
+ let O = CN(l, {
1176
1176
  relative: i
1177
1177
  }), A = qN(l, {
1178
1178
  replace: a,
@@ -1182,13 +1182,13 @@ const XN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1182
1182
  relative: i,
1183
1183
  unstable_viewTransition: c
1184
1184
  });
1185
- function R(O) {
1186
- r && r(O), O.defaultPrevented || A(O);
1185
+ function R(p) {
1186
+ r && r(p), p.defaultPrevented || A(p);
1187
1187
  }
1188
1188
  return (
1189
1189
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1190
1190
  /* @__PURE__ */ P.createElement("a", Vs({}, f, {
1191
- href: I || p,
1191
+ href: I || O,
1192
1192
  onClick: h || s ? r : R,
1193
1193
  ref: n,
1194
1194
  target: E
@@ -1208,16 +1208,16 @@ const XN = ["onClick", "relative", "reloadDocument", "replace", "state", "target
1208
1208
  relative: c.relative
1209
1209
  }), N = Xn(), I = P.useContext($c), {
1210
1210
  navigator: h
1211
- } = P.useContext(Wn), p = I != null && // Conditional usage is OK here because the usage of a data router is static
1211
+ } = P.useContext(Wn), O = I != null && // Conditional usage is OK here because the usage of a data router is static
1212
1212
  // eslint-disable-next-line react-hooks/rules-of-hooks
1213
- $N(f) && l === !0, A = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, R = N.pathname, O = I && I.navigation && I.navigation.location ? I.navigation.location.pathname : null;
1214
- i || (R = R.toLowerCase(), O = O ? O.toLowerCase() : null, A = A.toLowerCase());
1215
- let d = R === A || !a && R.startsWith(A) && R.charAt(A.length) === "/", m = O != null && (O === A || !a && O.startsWith(A) && O.charAt(A.length) === "/"), _ = {
1213
+ $N(f) && l === !0, A = h.encodeLocation ? h.encodeLocation(f).pathname : f.pathname, R = N.pathname, p = I && I.navigation && I.navigation.location ? I.navigation.location.pathname : null;
1214
+ i || (R = R.toLowerCase(), p = p ? p.toLowerCase() : null, A = A.toLowerCase());
1215
+ let d = R === A || !a && R.startsWith(A) && R.charAt(A.length) === "/", m = p != null && (p === A || !a && p.startsWith(A) && p.charAt(A.length) === "/"), _ = {
1216
1216
  isActive: d,
1217
1217
  isPending: m,
1218
- isTransitioning: p
1218
+ isTransitioning: O
1219
1219
  }, C = d ? r : void 0, L;
1220
- typeof s == "function" ? L = s(_) : L = [s, d ? "active" : null, m ? "pending" : null, p ? "transitioning" : null].filter(Boolean).join(" ");
1220
+ typeof s == "function" ? L = s(_) : L = [s, d ? "active" : null, m ? "pending" : null, O ? "transitioning" : null].filter(Boolean).join(" ");
1221
1221
  let g = typeof o == "function" ? o(_) : o;
1222
1222
  return /* @__PURE__ */ P.createElement(me, Vs({}, c, {
1223
1223
  "aria-current": C,
@@ -1853,7 +1853,8 @@ function op({
1853
1853
  isOnline: i,
1854
1854
  setTriggerButtonCount: s,
1855
1855
  fullPage: a,
1856
- showClearEventsButton: o
1856
+ showClearEventsButton: o,
1857
+ skipSidecar: E
1857
1858
  }) {
1858
1859
  return /* @__PURE__ */ T.jsx(ap, { isOpen: t, setOpen: n, fullPage: a, children: /* @__PURE__ */ T.jsxs("div", { className: J("spotlight-debugger", a ? "spotlight-fullscreen" : ""), children: [
1859
1860
  /* @__PURE__ */ T.jsxs("div", { className: "text-primary-200 flex items-center gap-x-2 px-6 py-4", children: [
@@ -1880,7 +1881,7 @@ function op({
1880
1881
  }
1881
1882
  )
1882
1883
  ] }),
1883
- /* @__PURE__ */ T.jsxs(
1884
+ !E && /* @__PURE__ */ T.jsxs(
1884
1885
  "div",
1885
1886
  {
1886
1887
  className: J("ml-2 flex items-center gap-x-2 pl-2 text-xs", i ? "" : "text-red-400"),
@@ -2052,69 +2053,74 @@ function cp({
2052
2053
  sidecarUrl: r,
2053
2054
  anchor: i,
2054
2055
  fullPage: s = !1,
2055
- showClearEventsButton: a = !0
2056
+ showClearEventsButton: a = !0,
2057
+ skipSidecar: o = !1
2056
2058
  }) {
2057
- const [o, E] = P.useState({}), [l, u] = P.useState(!1), [c, f] = P.useState({ count: 0, severe: !1 }), [N, I] = P.useState(e);
2058
- ee("App rerender", o, l, c, N);
2059
- const h = P.useMemo(() => {
2060
- const O = /* @__PURE__ */ new Map();
2061
- for (const d of n)
2062
- if (d.forwardedContentType)
2063
- for (const m of d.forwardedContentType) {
2064
- let _ = O.get(m);
2065
- _ || (_ = [], O.set(m, _)), _.push(d);
2059
+ const [E, l] = P.useState({}), [u, c] = P.useState(!1), [f, N] = P.useState({ count: 0, severe: !1 }), [I, h] = P.useState(e);
2060
+ ee("App rerender", E, u, f, I);
2061
+ const O = P.useMemo(() => {
2062
+ const d = /* @__PURE__ */ new Map();
2063
+ for (const m of n)
2064
+ if (m.forwardedContentType)
2065
+ for (const _ of m.forwardedContentType) {
2066
+ let C = d.get(_);
2067
+ C || (C = [], d.set(_, C)), C.push(m);
2066
2068
  }
2067
- return O;
2069
+ return d;
2068
2070
  }, [n]);
2069
2071
  P.useEffect(
2070
- () => Ap(r, h, E, u),
2071
- [r, h]
2072
+ () => o ? () => {
2073
+ } : Ap(r, O, l, c),
2074
+ [r, O, o]
2072
2075
  );
2073
- const p = P.useMemo(() => Gi(), []), A = _a(), R = P.useMemo(() => (ee("useMemo: initializing event handlers"), { clearEvents: async () => {
2074
- const { origin: L } = new URL(r), g = `${L}/clear`;
2076
+ const A = P.useMemo(() => Gi(), []), R = _a(), p = P.useMemo(() => (ee("useMemo: initializing event handlers"), { clearEvents: async () => {
2077
+ if (o)
2078
+ return;
2079
+ const { origin: g } = new URL(r), S = `${g}/clear`;
2075
2080
  try {
2076
- await fetch(g, {
2081
+ await fetch(S, {
2077
2082
  method: "DELETE",
2078
2083
  mode: "cors"
2079
2084
  });
2080
- } catch (S) {
2085
+ } catch (D) {
2081
2086
  console.error(
2082
- "Spotlight can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",
2083
- S
2087
+ "Spotlight can't connect to Sidecar - is it running? See: https://spotlightjs.com/sidecar/npx/",
2088
+ D
2084
2089
  );
2085
2090
  return;
2086
2091
  }
2087
- for (const S of n)
2088
- E((D) => ({ ...D, [S.name]: [] })), S.reset && S.reset();
2089
- }, onOpen: (L) => {
2090
- ee("Open"), I(!0), L.detail.path && A(L.detail.path);
2092
+ for (const D of n)
2093
+ l((M) => ({ ...M, [D.name]: [] })), D.reset && D.reset();
2094
+ }, onOpen: (g) => {
2095
+ ee("Open"), h(!0), g.detail.path && R(g.detail.path);
2091
2096
  }, onClose: () => {
2092
- ee("Close"), I(!1);
2093
- }, onNavigate: (L) => {
2094
- ee("Navigate"), A(L.detail);
2097
+ ee("Close"), h(!1);
2098
+ }, onNavigate: (g) => {
2099
+ ee("Navigate"), R(g.detail);
2095
2100
  }, onToggle: () => {
2096
- ee("Toggle"), I((L) => !L);
2097
- } }), [n, A, r]);
2098
- return uR(["ctrlKey", "F12"], R.onToggle), P.useEffect(() => (ee("useEffect: Adding event listeners"), p.addEventListener("open", R.onOpen), p.addEventListener("close", R.onClose), p.addEventListener("navigate", R.onNavigate), p.addEventListener("clearEvents", R.clearEvents), () => {
2099
- ee("useEffect[destructor]: Removing event listeners"), p.removeEventListener("open", R.onOpen), p.removeEventListener("close", R.onClose), p.removeEventListener("navigate", R.onNavigate), p.removeEventListener("clearEvents", R.clearEvents);
2100
- }), [p, R]), P.useEffect(() => {
2101
- N ? (p.dispatchEvent(new CustomEvent("opened")), document.body.style.overflow = "hidden") : (p.dispatchEvent(new CustomEvent("closed")), document.body.style.overflow = "auto");
2102
- }, [N, p]), P.useEffect(() => {
2103
- c.severe && p.dispatchEvent(
2104
- new CustomEvent("severeEventCount", { detail: { count: c.count } })
2101
+ ee("Toggle"), h((g) => !g);
2102
+ } }), [n, R, r, o]);
2103
+ return uR(["ctrlKey", "F12"], p.onToggle), P.useEffect(() => (ee("useEffect: Adding event listeners"), A.addEventListener("open", p.onOpen), A.addEventListener("close", p.onClose), A.addEventListener("navigate", p.onNavigate), A.addEventListener("clearEvents", p.clearEvents), () => {
2104
+ ee("useEffect[destructor]: Removing event listeners"), A.removeEventListener("open", p.onOpen), A.removeEventListener("close", p.onClose), A.removeEventListener("navigate", p.onNavigate), A.removeEventListener("clearEvents", p.clearEvents);
2105
+ }), [A, p]), P.useEffect(() => {
2106
+ I ? (A.dispatchEvent(new CustomEvent("opened")), document.body.style.overflow = "hidden") : (A.dispatchEvent(new CustomEvent("closed")), document.body.style.overflow = "auto");
2107
+ }, [I, A]), P.useEffect(() => {
2108
+ f.severe && A.dispatchEvent(
2109
+ new CustomEvent("severeEventCount", { detail: { count: f.count } })
2105
2110
  );
2106
- }, [c, p]), /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
2107
- t && /* @__PURE__ */ T.jsx(up, { isOpen: N, setOpen: I, notificationCount: c, anchor: i }),
2111
+ }, [f, A]), /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
2112
+ t && /* @__PURE__ */ T.jsx(up, { isOpen: I, setOpen: h, notificationCount: f, anchor: i }),
2108
2113
  /* @__PURE__ */ T.jsx(
2109
2114
  op,
2110
2115
  {
2111
- isOpen: s || N,
2112
- setOpen: I,
2113
- isOnline: l,
2116
+ isOpen: s || I,
2117
+ setOpen: h,
2118
+ isOnline: u,
2114
2119
  integrations: n,
2115
- integrationData: o,
2116
- setTriggerButtonCount: f,
2120
+ integrationData: E,
2121
+ setTriggerButtonCount: N,
2117
2122
  fullPage: s,
2123
+ skipSidecar: o,
2118
2124
  showClearEventsButton: a
2119
2125
  }
2120
2126
  )
@@ -2678,15 +2684,15 @@ var fR = { exports: {} };
2678
2684
  (function(n, r) {
2679
2685
  e.exports = r();
2680
2686
  })(ce, function() {
2681
- var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", E = "hour", l = "day", u = "week", c = "month", f = "quarter", N = "year", I = "date", h = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
2687
+ var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", E = "hour", l = "day", u = "week", c = "month", f = "quarter", N = "year", I = "date", h = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
2682
2688
  var U = ["th", "st", "nd", "rd"], w = v % 100;
2683
2689
  return "[" + v + (U[(w - 20) % 10] || U[w] || U[0]) + "]";
2684
- } }, O = function(v, U, w) {
2690
+ } }, p = function(v, U, w) {
2685
2691
  var F = String(v);
2686
2692
  return !F || F.length >= U ? v : "" + Array(U + 1 - F.length).join(w) + v;
2687
- }, d = { s: O, z: function(v) {
2693
+ }, d = { s: p, z: function(v) {
2688
2694
  var U = -v.utcOffset(), w = Math.abs(U), F = Math.floor(w / 60), Y = w % 60;
2689
- return (U <= 0 ? "+" : "-") + O(F, 2, "0") + ":" + O(Y, 2, "0");
2695
+ return (U <= 0 ? "+" : "-") + p(F, 2, "0") + ":" + p(Y, 2, "0");
2690
2696
  }, m: function v(U, w) {
2691
2697
  if (U.date() < w.date())
2692
2698
  return -v(w, U);
@@ -2741,7 +2747,7 @@ var fR = { exports: {} };
2741
2747
  if (Y instanceof Date)
2742
2748
  return new Date(Y);
2743
2749
  if (typeof Y == "string" && !/Z$/i.test(Y)) {
2744
- var B = Y.match(p);
2750
+ var B = Y.match(O);
2745
2751
  if (B) {
2746
2752
  var V = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
2747
2753
  return y ? new Date(Date.UTC(B[1], V, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], V, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
@@ -2977,20 +2983,20 @@ var dR = { exports: {} };
2977
2983
  return s.fromToBase(l, u, c, f);
2978
2984
  }
2979
2985
  i.en.relativeTime = a, s.fromToBase = function(l, u, c, f, N) {
2980
- for (var I, h, p, A = c.$locale().relativeTime || a, R = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], O = R.length, d = 0; d < O; d += 1) {
2986
+ for (var I, h, O, A = c.$locale().relativeTime || a, R = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], p = R.length, d = 0; d < p; d += 1) {
2981
2987
  var m = R[d];
2982
2988
  m.d && (I = f ? i(l).diff(c, m.d, !0) : c.diff(l, m.d, !0));
2983
2989
  var _ = (n.rounding || Math.round)(Math.abs(I));
2984
- if (p = I > 0, _ <= m.r || !m.r) {
2990
+ if (O = I > 0, _ <= m.r || !m.r) {
2985
2991
  _ <= 1 && d > 0 && (m = R[d - 1]);
2986
2992
  var C = A[m.l];
2987
- N && (_ = N("" + _)), h = typeof C == "string" ? C.replace("%d", _) : C(_, u, m.l, p);
2993
+ N && (_ = N("" + _)), h = typeof C == "string" ? C.replace("%d", _) : C(_, u, m.l, O);
2988
2994
  break;
2989
2995
  }
2990
2996
  }
2991
2997
  if (u)
2992
2998
  return h;
2993
- var L = p ? A.future : A.past;
2999
+ var L = O ? A.future : A.past;
2994
3000
  return typeof L == "function" ? L(h) : L.replace("%s", h);
2995
3001
  }, s.to = function(l, u) {
2996
3002
  return o(l, u, this, !0);
@@ -3214,7 +3220,7 @@ function hl(e) {
3214
3220
  }
3215
3221
  );
3216
3222
  }
3217
- const oO = P.lazy(() => import("./main-1dfdd51f.js").then((e) => e.m)), EO = () => {
3223
+ const oO = P.lazy(() => import("./main-fb88ae23.js").then((e) => e.m)), EO = () => {
3218
3224
  };
3219
3225
  function Eo({
3220
3226
  data: e,
@@ -3576,9 +3582,9 @@ var IR = { exports: {} };
3576
3582
  E === void 0 && (E = "YYYY-MM-DDTHH:mm:ssZ");
3577
3583
  var l = this.$locale().formats, u = function(c, f) {
3578
3584
  return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(N, I, h) {
3579
- var p = h && h.toUpperCase();
3580
- return I || f[h] || n[h] || f[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, R, O) {
3581
- return R || O.slice(1);
3585
+ var O = h && h.toUpperCase();
3586
+ return I || f[h] || n[h] || f[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, R, p) {
3587
+ return R || p.slice(1);
3582
3588
  });
3583
3589
  });
3584
3590
  }(E, l === void 0 ? {} : l);
@@ -4319,16 +4325,16 @@ function tI(e, t, n, r, i, s, a, o) {
4319
4325
  const E = e / 2 + r + o, l = {
4320
4326
  x: t + e / 2 - s / 2,
4321
4327
  y: n + e / 2 + a / 2
4322
- }, u = Object.values(i).reduce((M, v) => M + v, 0), c = -90, f = (M) => M / u * 360, [N, I, h, p, A] = [
4328
+ }, u = Object.values(i).reduce((M, v) => M + v, 0), c = -90, f = (M) => M / u * 360, [N, I, h, O, A] = [
4323
4329
  i.lcp,
4324
4330
  i.fcp,
4325
4331
  i.fid,
4326
4332
  i.cls,
4327
4333
  i.ttfb
4328
- ].map(f), R = l.x + E * Math.cos((c + N / 2) * Math.PI / 180), O = l.y + E * Math.sin((c + N / 2) * Math.PI / 180), d = l.x + E * Math.cos((c + N + I / 2) * Math.PI / 180), m = l.y + E * Math.sin((c + N + I / 2) * Math.PI / 180), _ = l.x + E * Math.cos((c + N + I + h / 2) * Math.PI / 180), C = l.y + E * Math.sin((c + N + I + h / 2) * Math.PI / 180), L = l.x + E * Math.cos((c + N + I + h + p / 2) * Math.PI / 180), g = l.y + E * Math.sin((c + N + I + h + p / 2) * Math.PI / 180), S = l.x - 12 + E * Math.cos((c + N + I + h + p + A / 2) * Math.PI / 180), D = l.y + E * Math.sin((c + N + I + h + p + A / 2) * Math.PI / 180);
4334
+ ].map(f), R = l.x + E * Math.cos((c + N / 2) * Math.PI / 180), p = l.y + E * Math.sin((c + N / 2) * Math.PI / 180), d = l.x + E * Math.cos((c + N + I / 2) * Math.PI / 180), m = l.y + E * Math.sin((c + N + I / 2) * Math.PI / 180), _ = l.x + E * Math.cos((c + N + I + h / 2) * Math.PI / 180), C = l.y + E * Math.sin((c + N + I + h / 2) * Math.PI / 180), L = l.x + E * Math.cos((c + N + I + h + O / 2) * Math.PI / 180), g = l.y + E * Math.sin((c + N + I + h + O / 2) * Math.PI / 180), S = l.x - 12 + E * Math.cos((c + N + I + h + O + A / 2) * Math.PI / 180), D = l.y + E * Math.sin((c + N + I + h + O + A / 2) * Math.PI / 180);
4329
4335
  return {
4330
4336
  lcpX: R,
4331
- lcpY: O,
4337
+ lcpY: p,
4332
4338
  fcpX: d,
4333
4339
  fcpY: m,
4334
4340
  fidX: _,
@@ -4433,12 +4439,12 @@ function sI({
4433
4439
  onBlur: u,
4434
4440
  ...c
4435
4441
  }) {
4436
- const f = n / 2, N = n / 4, I = n / 2 - r / 2, h = 2 * Math.PI * I, p = P.useMemo(() => {
4437
- const A = t.reduce((O, d) => O + d, 0);
4442
+ const f = n / 2, N = n / 4, I = n / 2 - r / 2, h = 2 * Math.PI * I, O = P.useMemo(() => {
4443
+ const A = t.reduce((p, d) => p + d, 0);
4438
4444
  let R = rI;
4439
- return t.flatMap((O, d) => {
4440
- const m = Math.min(Math.max(e[d], 0), O), _ = e.length > 1 ? iI : 0, C = (1 - Math.max(O - _, 0) / A) * h, L = (1 - Math.max(m - _, 0) / A) * h, g = R;
4441
- R += 360 * O / A;
4445
+ return t.flatMap((p, d) => {
4446
+ const m = Math.min(Math.max(e[d], 0), p), _ = e.length > 1 ? iI : 0, C = (1 - Math.max(p - _, 0) / A) * h, L = (1 - Math.max(m - _, 0) / A) * h, g = R;
4447
+ R += 360 * p / A;
4442
4448
  const S = I + r / 2, D = `${S}-${o[d]}-${a[d]}`;
4443
4449
  return [
4444
4450
  /* @__PURE__ */ T.jsx(
@@ -4504,7 +4510,7 @@ function sI({
4504
4510
  ]);
4505
4511
  return /* @__PURE__ */ T.jsxs("svg", { className: "relative", role: "img", height: I * 2 + r, width: I * 2 + r, ...c, children: [
4506
4512
  /* @__PURE__ */ T.jsx("title", { children: "Web Vitals Breakdown" }),
4507
- p,
4513
+ O,
4508
4514
  /* @__PURE__ */ T.jsx(
4509
4515
  "foreignObject",
4510
4516
  {
@@ -4623,7 +4629,7 @@ const EI = ({
4623
4629
  N({ x: D, y: M });
4624
4630
  }
4625
4631
  }
4626
- }), { lcpX: p, lcpY: A, fcpX: R, fcpY: O, fidX: d, fidY: m, clsX: _, clsY: C, ttfbX: L, ttfbY: g } = tI(
4632
+ }), { lcpX: O, lcpY: A, fcpX: R, fcpY: p, fidX: d, fidY: m, clsX: _, clsY: C, ttfbX: L, ttfbY: g } = tI(
4627
4633
  r,
4628
4634
  s,
4629
4635
  a,
@@ -4656,7 +4662,7 @@ const EI = ({
4656
4662
  {
4657
4663
  webVital: "lcp",
4658
4664
  coordinates: {
4659
- x: p,
4665
+ x: O,
4660
4666
  y: A
4661
4667
  }
4662
4668
  }
@@ -4667,7 +4673,7 @@ const EI = ({
4667
4673
  webVital: "fcp",
4668
4674
  coordinates: {
4669
4675
  x: R,
4670
- y: O
4676
+ y: p
4671
4677
  }
4672
4678
  }
4673
4679
  ),
@@ -13900,8 +13906,8 @@ var FR = { exports: {} };
13900
13906
  var I = u[N];
13901
13907
  if (I.isComplete) {
13902
13908
  if (I.finish(), I.data !== a.fail) {
13903
- for (var h = I.wantedBy, p = h.length; p--; ) {
13904
- var A = h[p];
13909
+ for (var h = I.wantedBy, O = h.length; O--; ) {
13910
+ var A = h[O];
13905
13911
  this.complete(A, I);
13906
13912
  }
13907
13913
  if (I.reference === this.index) {
@@ -13917,8 +13923,8 @@ var FR = { exports: {} };
13917
13923
  }
13918
13924
  if (c[R]) {
13919
13925
  if (c[R].push(I), f.hasOwnProperty(R))
13920
- for (var O = f[R], p = 0; p < O.length; p++) {
13921
- var d = O[p];
13926
+ for (var p = f[R], O = 0; O < p.length; O++) {
13927
+ var d = p[O];
13922
13928
  this.complete(I, d);
13923
13929
  }
13924
13930
  } else
@@ -13978,16 +13984,16 @@ var FR = { exports: {} };
13978
13984
  var N = this.index - this.lastLineBreak, I = String(this.line).length;
13979
13985
  return u += " at line " + this.line + " col " + N + `:
13980
13986
 
13981
- `, u += f.map(function(p, A) {
13982
- return h(this.line - f.length + A + 1, I) + " " + p;
13987
+ `, u += f.map(function(O, A) {
13988
+ return h(this.line - f.length + A + 1, I) + " " + O;
13983
13989
  }, this).join(`
13984
13990
  `), u += `
13985
13991
  ` + h("", I + N) + `^
13986
13992
  `, u;
13987
13993
  } else
13988
13994
  return u + " at index " + (this.index - 1);
13989
- function h(p, A) {
13990
- var R = String(p);
13995
+ function h(O, A) {
13996
+ var R = String(O);
13991
13997
  return Array(A - R.length + 1).join(" ") + R;
13992
13998
  }
13993
13999
  };
@@ -14023,9 +14029,9 @@ var FR = { exports: {} };
14023
14029
  this.options.keepHistory || delete this.table[this.current - 1];
14024
14030
  var I = this.current + 1, h = new r(this.grammar, I);
14025
14031
  this.table.push(h);
14026
- for (var p = c.text !== void 0 ? c.text : c.value, A = u.constructor === s ? c.value : c, R = N.scannable, O = R.length; O--; ) {
14027
- var d = R[O], m = d.rule.symbols[d.dot];
14028
- if (m.test ? m.test(A) : m.type ? m.type === c.type : m.literal === p) {
14032
+ for (var O = c.text !== void 0 ? c.text : c.value, A = u.constructor === s ? c.value : c, R = N.scannable, p = R.length; p--; ) {
14033
+ var d = R[p], m = d.rule.symbols[d.dot];
14034
+ if (m.test ? m.test(A) : m.type ? m.type === c.type : m.literal === O) {
14029
14035
  var _ = d.nextState({ data: A, token: c, isToken: !0, reference: I - 1 });
14030
14036
  h.states.push(_);
14031
14037
  }
@@ -14046,8 +14052,8 @@ var FR = { exports: {} };
14046
14052
  }, a.prototype.reportErrorCommon = function(l, u) {
14047
14053
  var c = [];
14048
14054
  c.push(l);
14049
- var f = this.table.length - 2, N = this.table[f], I = N.states.filter(function(p) {
14050
- var A = p.rule.symbols[p.dot];
14055
+ var f = this.table.length - 2, N = this.table[f], I = N.states.filter(function(O) {
14056
+ var A = O.rule.symbols[O.dot];
14051
14057
  return A && typeof A != "string";
14052
14058
  });
14053
14059
  if (I.length === 0)
@@ -14056,12 +14062,12 @@ var FR = { exports: {} };
14056
14062
  else {
14057
14063
  c.push("Unexpected " + u + `. Instead, I was expecting to see one of the following:
14058
14064
  `);
14059
- var h = I.map(function(p) {
14060
- return this.buildFirstStateStack(p, []) || [p];
14065
+ var h = I.map(function(O) {
14066
+ return this.buildFirstStateStack(O, []) || [O];
14061
14067
  }, this);
14062
- h.forEach(function(p) {
14063
- var A = p[0], R = A.rule.symbols[A.dot], O = this.getSymbolDisplay(R);
14064
- c.push("A " + O + " based on:"), this.displayStateStack(p, c);
14068
+ h.forEach(function(O) {
14069
+ var A = O[0], R = A.rule.symbols[A.dot], p = this.getSymbolDisplay(R);
14070
+ c.push("A " + p + " based on:"), this.displayStateStack(O, c);
14065
14071
  }, this);
14066
14072
  }
14067
14073
  return c.push(""), c.join(`
@@ -15686,15 +15692,15 @@ const n1 = ({
15686
15692
  },
15687
15693
  query: E
15688
15694
  }) => {
15689
- var R, O;
15695
+ var R, p;
15690
15696
  const { spanId: l } = Mr(), u = P.useRef(null), [c, f] = P.useState(
15691
15697
  e.transaction && s > 1 && r !== 1 || r >= 15
15692
- ), [N, I] = P.useState(!1), h = Or(e.start_timestamp, e.timestamp), p = (d) => {
15698
+ ), [N, I] = P.useState(!1), h = Or(e.start_timestamp, e.timestamp), O = (d) => {
15693
15699
  if (u.current) {
15694
15700
  const m = u.current.getBoundingClientRect(), C = (d.clientX - m.left) / m.width * 100;
15695
15701
  o(C);
15696
15702
  }
15697
- }, A = E ? e.span_id.includes(E) || ((R = e.op) == null ? void 0 : R.includes(E)) || ((O = e.description) == null ? void 0 : O.includes(E)) : !1;
15703
+ }, A = E ? e.span_id.includes(E) || ((R = e.op) == null ? void 0 : R.includes(E)) || ((p = e.description) == null ? void 0 : p.includes(E)) : !1;
15698
15704
  return /* @__PURE__ */ T.jsxs("li", { className: "pl-4", ref: u, children: [
15699
15705
  /* @__PURE__ */ T.jsxs(
15700
15706
  me,
@@ -15759,7 +15765,7 @@ const n1 = ({
15759
15765
  left: `${a}%`
15760
15766
  },
15761
15767
  children: [
15762
- /* @__PURE__ */ T.jsx(t1, { setIsResizing: I, isResizing: N, handleResize: p }),
15768
+ /* @__PURE__ */ T.jsx(t1, { setIsResizing: I, isResizing: N, handleResize: O }),
15763
15769
  /* @__PURE__ */ T.jsx(
15764
15770
  "div",
15765
15771
  {
@@ -16301,9 +16307,9 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16301
16307
  return a.now() - o;
16302
16308
  };
16303
16309
  }
16304
- var E = [], l = [], u = 1, c = null, f = 3, N = !1, I = !1, h = !1, p = typeof setTimeout == "function" ? setTimeout : null, A = typeof clearTimeout == "function" ? clearTimeout : null, R = typeof setImmediate < "u" ? setImmediate : null;
16310
+ var E = [], l = [], u = 1, c = null, f = 3, N = !1, I = !1, h = !1, O = typeof setTimeout == "function" ? setTimeout : null, A = typeof clearTimeout == "function" ? clearTimeout : null, R = typeof setImmediate < "u" ? setImmediate : null;
16305
16311
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
16306
- function O(y) {
16312
+ function p(y) {
16307
16313
  for (var B = n(l); B !== null; ) {
16308
16314
  if (B.callback === null)
16309
16315
  r(l);
@@ -16315,7 +16321,7 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16315
16321
  }
16316
16322
  }
16317
16323
  function d(y) {
16318
- if (h = !1, O(y), !I)
16324
+ if (h = !1, p(y), !I)
16319
16325
  if (n(E) !== null)
16320
16326
  I = !0, F(m);
16321
16327
  else {
@@ -16327,12 +16333,12 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16327
16333
  I = !1, h && (h = !1, A(L), L = -1), N = !0;
16328
16334
  var V = f;
16329
16335
  try {
16330
- for (O(B), c = n(E); c !== null && (!(c.expirationTime > B) || y && !D()); ) {
16336
+ for (p(B), c = n(E); c !== null && (!(c.expirationTime > B) || y && !D()); ) {
16331
16337
  var X = c.callback;
16332
16338
  if (typeof X == "function") {
16333
16339
  c.callback = null, f = c.priorityLevel;
16334
16340
  var K = X(c.expirationTime <= B);
16335
- B = e.unstable_now(), typeof K == "function" ? c.callback = K : c === n(E) && r(E), O(B);
16341
+ B = e.unstable_now(), typeof K == "function" ? c.callback = K : c === n(E) && r(E), p(B);
16336
16342
  } else
16337
16343
  r(E);
16338
16344
  c = n(E);
@@ -16377,13 +16383,13 @@ var RE = {}, KR = { exports: {} }, it = {}, JR = { exports: {} }, ZR = {};
16377
16383
  };
16378
16384
  } else
16379
16385
  v = function() {
16380
- p(M, 0);
16386
+ O(M, 0);
16381
16387
  };
16382
16388
  function F(y) {
16383
16389
  C = y, _ || (_ = !0, v());
16384
16390
  }
16385
16391
  function Y(y, B) {
16386
- L = p(function() {
16392
+ L = O(function() {
16387
16393
  y(e.unstable_now());
16388
16394
  }, B);
16389
16395
  }
@@ -18228,12 +18234,12 @@ function Mo(e, t, n, r, i) {
18228
18234
  case "pointerup":
18229
18235
  N = QT;
18230
18236
  }
18231
- var h = (t & 4) !== 0, p = !h && e === "scroll", A = h ? f !== null ? f + "Capture" : null : f;
18237
+ var h = (t & 4) !== 0, O = !h && e === "scroll", A = h ? f !== null ? f + "Capture" : null : f;
18232
18238
  h = [];
18233
- for (var R = l, O; R !== null; ) {
18234
- O = R;
18235
- var d = O.stateNode;
18236
- if (O.tag === 5 && d !== null && (O = d, A !== null && (d = Si(R, A), d != null && h.push(_i(R, d, O)))), p)
18239
+ for (var R = l, p; R !== null; ) {
18240
+ p = R;
18241
+ var d = p.stateNode;
18242
+ if (p.tag === 5 && d !== null && (p = d, A !== null && (d = Si(R, A), d != null && h.push(_i(R, d, p)))), O)
18237
18243
  break;
18238
18244
  R = R.return;
18239
18245
  }
@@ -18244,17 +18250,17 @@ function Mo(e, t, n, r, i) {
18244
18250
  e: {
18245
18251
  if (f = e === "mouseover" || e === "pointerover", N = e === "mouseout" || e === "pointerout", f && n !== PE && (I = n.relatedTarget || n.fromElement) && (gn(I) || I[Ht]))
18246
18252
  break e;
18247
- if ((N || f) && (f = u.window === u ? u : (f = u.ownerDocument) ? f.defaultView || f.parentWindow : window, N ? (I = n.relatedTarget || n.toElement, N = l, I = I ? gn(I) : null, I !== null && (p = Zn(I), I !== p || I.tag !== 5 && I.tag !== 6) && (I = null)) : (N = null, I = l), N !== I)) {
18248
- if (h = ZT, d = "onMouseLeave", A = "onMouseEnter", R = "mouse", (e === "pointerout" || e === "pointerover") && (h = QT, d = "onPointerLeave", A = "onPointerEnter", R = "pointer"), p = N == null ? f : sr(N), O = I == null ? f : sr(I), f = new h(d, R + "leave", N, n, u), f.target = p, f.relatedTarget = O, d = null, gn(u) === l && (h = new h(A, R + "enter", I, n, u), h.target = O, h.relatedTarget = p, d = h), p = d, N && I)
18253
+ if ((N || f) && (f = u.window === u ? u : (f = u.ownerDocument) ? f.defaultView || f.parentWindow : window, N ? (I = n.relatedTarget || n.toElement, N = l, I = I ? gn(I) : null, I !== null && (O = Zn(I), I !== O || I.tag !== 5 && I.tag !== 6) && (I = null)) : (N = null, I = l), N !== I)) {
18254
+ if (h = ZT, d = "onMouseLeave", A = "onMouseEnter", R = "mouse", (e === "pointerout" || e === "pointerover") && (h = QT, d = "onPointerLeave", A = "onPointerEnter", R = "pointer"), O = N == null ? f : sr(N), p = I == null ? f : sr(I), f = new h(d, R + "leave", N, n, u), f.target = O, f.relatedTarget = p, d = null, gn(u) === l && (h = new h(A, R + "enter", I, n, u), h.target = p, h.relatedTarget = O, d = h), O = d, N && I)
18249
18255
  t: {
18250
- for (h = N, A = I, R = 0, O = h; O; O = qn(O))
18256
+ for (h = N, A = I, R = 0, p = h; p; p = qn(p))
18251
18257
  R++;
18252
- for (O = 0, d = A; d; d = qn(d))
18253
- O++;
18254
- for (; 0 < R - O; )
18258
+ for (p = 0, d = A; d; d = qn(d))
18259
+ p++;
18260
+ for (; 0 < R - p; )
18255
18261
  h = qn(h), R--;
18256
- for (; 0 < O - R; )
18257
- A = qn(A), O--;
18262
+ for (; 0 < p - R; )
18263
+ A = qn(A), p--;
18258
18264
  for (; R--; ) {
18259
18265
  if (h === A || A !== null && h === A.alternate)
18260
18266
  break t;
@@ -18264,7 +18270,7 @@ function Mo(e, t, n, r, i) {
18264
18270
  }
18265
18271
  else
18266
18272
  h = null;
18267
- N !== null && EA(c, f, N, h, !1), I !== null && p !== null && EA(c, p, I, h, !0);
18273
+ N !== null && EA(c, f, N, h, !1), I !== null && O !== null && EA(c, O, I, h, !0);
18268
18274
  }
18269
18275
  }
18270
18276
  e: {
@@ -18897,8 +18903,8 @@ function OA(e) {
18897
18903
  function ef(e) {
18898
18904
  function t(A, R) {
18899
18905
  if (e) {
18900
- var O = A.deletions;
18901
- O === null ? (A.deletions = [R], A.flags |= 16) : O.push(R);
18906
+ var p = A.deletions;
18907
+ p === null ? (A.deletions = [R], A.flags |= 16) : p.push(R);
18902
18908
  }
18903
18909
  }
18904
18910
  function n(A, R) {
@@ -18916,117 +18922,117 @@ function ef(e) {
18916
18922
  function i(A, R) {
18917
18923
  return A = cn(A, R), A.index = 0, A.sibling = null, A;
18918
18924
  }
18919
- function s(A, R, O) {
18920
- return A.index = O, e ? (O = A.alternate, O !== null ? (O = O.index, O < R ? (A.flags |= 2, R) : O) : (A.flags |= 2, R)) : (A.flags |= 1048576, R);
18925
+ function s(A, R, p) {
18926
+ return A.index = p, e ? (p = A.alternate, p !== null ? (p = p.index, p < R ? (A.flags |= 2, R) : p) : (A.flags |= 2, R)) : (A.flags |= 1048576, R);
18921
18927
  }
18922
18928
  function a(A) {
18923
18929
  return e && A.alternate === null && (A.flags |= 2), A;
18924
18930
  }
18925
- function o(A, R, O, d) {
18926
- return R === null || R.tag !== 6 ? (R = Bo(O, A.mode, d), R.return = A, R) : (R = i(R, O), R.return = A, R);
18931
+ function o(A, R, p, d) {
18932
+ return R === null || R.tag !== 6 ? (R = Bo(p, A.mode, d), R.return = A, R) : (R = i(R, p), R.return = A, R);
18927
18933
  }
18928
- function E(A, R, O, d) {
18929
- var m = O.type;
18930
- return m === tr ? u(A, R, O.props.children, d, O.key) : R !== null && (R.elementType === m || typeof m == "object" && m !== null && m.$$typeof === Jt && OA(m) === R.type) ? (d = i(R, O.props), d.ref = Xr(A, R, O), d.return = A, d) : (d = ws(O.type, O.key, O.props, null, A.mode, d), d.ref = Xr(A, R, O), d.return = A, d);
18934
+ function E(A, R, p, d) {
18935
+ var m = p.type;
18936
+ return m === tr ? u(A, R, p.props.children, d, p.key) : R !== null && (R.elementType === m || typeof m == "object" && m !== null && m.$$typeof === Jt && OA(m) === R.type) ? (d = i(R, p.props), d.ref = Xr(A, R, p), d.return = A, d) : (d = ws(p.type, p.key, p.props, null, A.mode, d), d.ref = Xr(A, R, p), d.return = A, d);
18931
18937
  }
18932
- function l(A, R, O, d) {
18933
- return R === null || R.tag !== 4 || R.stateNode.containerInfo !== O.containerInfo || R.stateNode.implementation !== O.implementation ? (R = Fo(O, A.mode, d), R.return = A, R) : (R = i(R, O.children || []), R.return = A, R);
18938
+ function l(A, R, p, d) {
18939
+ return R === null || R.tag !== 4 || R.stateNode.containerInfo !== p.containerInfo || R.stateNode.implementation !== p.implementation ? (R = Fo(p, A.mode, d), R.return = A, R) : (R = i(R, p.children || []), R.return = A, R);
18934
18940
  }
18935
- function u(A, R, O, d, m) {
18936
- return R === null || R.tag !== 7 ? (R = xn(O, A.mode, d, m), R.return = A, R) : (R = i(R, O), R.return = A, R);
18941
+ function u(A, R, p, d, m) {
18942
+ return R === null || R.tag !== 7 ? (R = xn(p, A.mode, d, m), R.return = A, R) : (R = i(R, p), R.return = A, R);
18937
18943
  }
18938
- function c(A, R, O) {
18944
+ function c(A, R, p) {
18939
18945
  if (typeof R == "string" && R !== "" || typeof R == "number")
18940
- return R = Bo("" + R, A.mode, O), R.return = A, R;
18946
+ return R = Bo("" + R, A.mode, p), R.return = A, R;
18941
18947
  if (typeof R == "object" && R !== null) {
18942
18948
  switch (R.$$typeof) {
18943
18949
  case $i:
18944
- return O = ws(R.type, R.key, R.props, null, A.mode, O), O.ref = Xr(A, null, R), O.return = A, O;
18950
+ return p = ws(R.type, R.key, R.props, null, A.mode, p), p.ref = Xr(A, null, R), p.return = A, p;
18945
18951
  case er:
18946
- return R = Fo(R, A.mode, O), R.return = A, R;
18952
+ return R = Fo(R, A.mode, p), R.return = A, R;
18947
18953
  case Jt:
18948
18954
  var d = R._init;
18949
- return c(A, d(R._payload), O);
18955
+ return c(A, d(R._payload), p);
18950
18956
  }
18951
18957
  if (qr(R) || Fr(R))
18952
- return R = xn(R, A.mode, O, null), R.return = A, R;
18958
+ return R = xn(R, A.mode, p, null), R.return = A, R;
18953
18959
  us(A, R);
18954
18960
  }
18955
18961
  return null;
18956
18962
  }
18957
- function f(A, R, O, d) {
18963
+ function f(A, R, p, d) {
18958
18964
  var m = R !== null ? R.key : null;
18959
- if (typeof O == "string" && O !== "" || typeof O == "number")
18960
- return m !== null ? null : o(A, R, "" + O, d);
18961
- if (typeof O == "object" && O !== null) {
18962
- switch (O.$$typeof) {
18965
+ if (typeof p == "string" && p !== "" || typeof p == "number")
18966
+ return m !== null ? null : o(A, R, "" + p, d);
18967
+ if (typeof p == "object" && p !== null) {
18968
+ switch (p.$$typeof) {
18963
18969
  case $i:
18964
- return O.key === m ? E(A, R, O, d) : null;
18970
+ return p.key === m ? E(A, R, p, d) : null;
18965
18971
  case er:
18966
- return O.key === m ? l(A, R, O, d) : null;
18972
+ return p.key === m ? l(A, R, p, d) : null;
18967
18973
  case Jt:
18968
- return m = O._init, f(
18974
+ return m = p._init, f(
18969
18975
  A,
18970
18976
  R,
18971
- m(O._payload),
18977
+ m(p._payload),
18972
18978
  d
18973
18979
  );
18974
18980
  }
18975
- if (qr(O) || Fr(O))
18976
- return m !== null ? null : u(A, R, O, d, null);
18977
- us(A, O);
18981
+ if (qr(p) || Fr(p))
18982
+ return m !== null ? null : u(A, R, p, d, null);
18983
+ us(A, p);
18978
18984
  }
18979
18985
  return null;
18980
18986
  }
18981
- function N(A, R, O, d, m) {
18987
+ function N(A, R, p, d, m) {
18982
18988
  if (typeof d == "string" && d !== "" || typeof d == "number")
18983
- return A = A.get(O) || null, o(R, A, "" + d, m);
18989
+ return A = A.get(p) || null, o(R, A, "" + d, m);
18984
18990
  if (typeof d == "object" && d !== null) {
18985
18991
  switch (d.$$typeof) {
18986
18992
  case $i:
18987
- return A = A.get(d.key === null ? O : d.key) || null, E(R, A, d, m);
18993
+ return A = A.get(d.key === null ? p : d.key) || null, E(R, A, d, m);
18988
18994
  case er:
18989
- return A = A.get(d.key === null ? O : d.key) || null, l(R, A, d, m);
18995
+ return A = A.get(d.key === null ? p : d.key) || null, l(R, A, d, m);
18990
18996
  case Jt:
18991
18997
  var _ = d._init;
18992
- return N(A, R, O, _(d._payload), m);
18998
+ return N(A, R, p, _(d._payload), m);
18993
18999
  }
18994
19000
  if (qr(d) || Fr(d))
18995
- return A = A.get(O) || null, u(R, A, d, m, null);
19001
+ return A = A.get(p) || null, u(R, A, d, m, null);
18996
19002
  us(R, d);
18997
19003
  }
18998
19004
  return null;
18999
19005
  }
19000
- function I(A, R, O, d) {
19001
- for (var m = null, _ = null, C = R, L = R = 0, g = null; C !== null && L < O.length; L++) {
19006
+ function I(A, R, p, d) {
19007
+ for (var m = null, _ = null, C = R, L = R = 0, g = null; C !== null && L < p.length; L++) {
19002
19008
  C.index > L ? (g = C, C = null) : g = C.sibling;
19003
- var S = f(A, C, O[L], d);
19009
+ var S = f(A, C, p[L], d);
19004
19010
  if (S === null) {
19005
19011
  C === null && (C = g);
19006
19012
  break;
19007
19013
  }
19008
19014
  e && C && S.alternate === null && t(A, C), R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S, C = g;
19009
19015
  }
19010
- if (L === O.length)
19016
+ if (L === p.length)
19011
19017
  return n(A, C), oe && Pn(A, L), m;
19012
19018
  if (C === null) {
19013
- for (; L < O.length; L++)
19014
- C = c(A, O[L], d), C !== null && (R = s(C, R, L), _ === null ? m = C : _.sibling = C, _ = C);
19019
+ for (; L < p.length; L++)
19020
+ C = c(A, p[L], d), C !== null && (R = s(C, R, L), _ === null ? m = C : _.sibling = C, _ = C);
19015
19021
  return oe && Pn(A, L), m;
19016
19022
  }
19017
- for (C = r(A, C); L < O.length; L++)
19018
- g = N(C, A, L, O[L], d), g !== null && (e && g.alternate !== null && C.delete(g.key === null ? L : g.key), R = s(g, R, L), _ === null ? m = g : _.sibling = g, _ = g);
19023
+ for (C = r(A, C); L < p.length; L++)
19024
+ g = N(C, A, L, p[L], d), g !== null && (e && g.alternate !== null && C.delete(g.key === null ? L : g.key), R = s(g, R, L), _ === null ? m = g : _.sibling = g, _ = g);
19019
19025
  return e && C.forEach(function(D) {
19020
19026
  return t(A, D);
19021
19027
  }), oe && Pn(A, L), m;
19022
19028
  }
19023
- function h(A, R, O, d) {
19024
- var m = Fr(O);
19029
+ function h(A, R, p, d) {
19030
+ var m = Fr(p);
19025
19031
  if (typeof m != "function")
19026
19032
  throw Error(H(150));
19027
- if (O = m.call(O), O == null)
19033
+ if (p = m.call(p), p == null)
19028
19034
  throw Error(H(151));
19029
- for (var _ = m = null, C = R, L = R = 0, g = null, S = O.next(); C !== null && !S.done; L++, S = O.next()) {
19035
+ for (var _ = m = null, C = R, L = R = 0, g = null, S = p.next(); C !== null && !S.done; L++, S = p.next()) {
19030
19036
  C.index > L ? (g = C, C = null) : g = C.sibling;
19031
19037
  var D = f(A, C, S.value, d);
19032
19038
  if (D === null) {
@@ -19041,30 +19047,30 @@ function ef(e) {
19041
19047
  C
19042
19048
  ), oe && Pn(A, L), m;
19043
19049
  if (C === null) {
19044
- for (; !S.done; L++, S = O.next())
19050
+ for (; !S.done; L++, S = p.next())
19045
19051
  S = c(A, S.value, d), S !== null && (R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S);
19046
19052
  return oe && Pn(A, L), m;
19047
19053
  }
19048
- for (C = r(A, C); !S.done; L++, S = O.next())
19054
+ for (C = r(A, C); !S.done; L++, S = p.next())
19049
19055
  S = N(C, A, L, S.value, d), S !== null && (e && S.alternate !== null && C.delete(S.key === null ? L : S.key), R = s(S, R, L), _ === null ? m = S : _.sibling = S, _ = S);
19050
19056
  return e && C.forEach(function(M) {
19051
19057
  return t(A, M);
19052
19058
  }), oe && Pn(A, L), m;
19053
19059
  }
19054
- function p(A, R, O, d) {
19055
- if (typeof O == "object" && O !== null && O.type === tr && O.key === null && (O = O.props.children), typeof O == "object" && O !== null) {
19056
- switch (O.$$typeof) {
19060
+ function O(A, R, p, d) {
19061
+ if (typeof p == "object" && p !== null && p.type === tr && p.key === null && (p = p.props.children), typeof p == "object" && p !== null) {
19062
+ switch (p.$$typeof) {
19057
19063
  case $i:
19058
19064
  e: {
19059
- for (var m = O.key, _ = R; _ !== null; ) {
19065
+ for (var m = p.key, _ = R; _ !== null; ) {
19060
19066
  if (_.key === m) {
19061
- if (m = O.type, m === tr) {
19067
+ if (m = p.type, m === tr) {
19062
19068
  if (_.tag === 7) {
19063
- n(A, _.sibling), R = i(_, O.props.children), R.return = A, A = R;
19069
+ n(A, _.sibling), R = i(_, p.props.children), R.return = A, A = R;
19064
19070
  break e;
19065
19071
  }
19066
19072
  } else if (_.elementType === m || typeof m == "object" && m !== null && m.$$typeof === Jt && OA(m) === _.type) {
19067
- n(A, _.sibling), R = i(_, O.props), R.ref = Xr(A, _, O), R.return = A, A = R;
19073
+ n(A, _.sibling), R = i(_, p.props), R.ref = Xr(A, _, p), R.return = A, A = R;
19068
19074
  break e;
19069
19075
  }
19070
19076
  n(A, _);
@@ -19073,15 +19079,15 @@ function ef(e) {
19073
19079
  t(A, _);
19074
19080
  _ = _.sibling;
19075
19081
  }
19076
- O.type === tr ? (R = xn(O.props.children, A.mode, d, O.key), R.return = A, A = R) : (d = ws(O.type, O.key, O.props, null, A.mode, d), d.ref = Xr(A, R, O), d.return = A, A = d);
19082
+ p.type === tr ? (R = xn(p.props.children, A.mode, d, p.key), R.return = A, A = R) : (d = ws(p.type, p.key, p.props, null, A.mode, d), d.ref = Xr(A, R, p), d.return = A, A = d);
19077
19083
  }
19078
19084
  return a(A);
19079
19085
  case er:
19080
19086
  e: {
19081
- for (_ = O.key; R !== null; ) {
19087
+ for (_ = p.key; R !== null; ) {
19082
19088
  if (R.key === _)
19083
- if (R.tag === 4 && R.stateNode.containerInfo === O.containerInfo && R.stateNode.implementation === O.implementation) {
19084
- n(A, R.sibling), R = i(R, O.children || []), R.return = A, A = R;
19089
+ if (R.tag === 4 && R.stateNode.containerInfo === p.containerInfo && R.stateNode.implementation === p.implementation) {
19090
+ n(A, R.sibling), R = i(R, p.children || []), R.return = A, A = R;
19085
19091
  break e;
19086
19092
  } else {
19087
19093
  n(A, R);
@@ -19091,21 +19097,21 @@ function ef(e) {
19091
19097
  t(A, R);
19092
19098
  R = R.sibling;
19093
19099
  }
19094
- R = Fo(O, A.mode, d), R.return = A, A = R;
19100
+ R = Fo(p, A.mode, d), R.return = A, A = R;
19095
19101
  }
19096
19102
  return a(A);
19097
19103
  case Jt:
19098
- return _ = O._init, p(A, R, _(O._payload), d);
19104
+ return _ = p._init, O(A, R, _(p._payload), d);
19099
19105
  }
19100
- if (qr(O))
19101
- return I(A, R, O, d);
19102
- if (Fr(O))
19103
- return h(A, R, O, d);
19104
- us(A, O);
19106
+ if (qr(p))
19107
+ return I(A, R, p, d);
19108
+ if (Fr(p))
19109
+ return h(A, R, p, d);
19110
+ us(A, p);
19105
19111
  }
19106
- return typeof O == "string" && O !== "" || typeof O == "number" ? (O = "" + O, R !== null && R.tag === 6 ? (n(A, R.sibling), R = i(R, O), R.return = A, A = R) : (n(A, R), R = Bo(O, A.mode, d), R.return = A, A = R), a(A)) : n(A, R);
19112
+ return typeof p == "string" && p !== "" || typeof p == "number" ? (p = "" + p, R !== null && R.tag === 6 ? (n(A, R.sibling), R = i(R, p), R.return = A, A = R) : (n(A, R), R = Bo(p, A.mode, d), R.return = A, A = R), a(A)) : n(A, R);
19107
19113
  }
19108
- return p;
19114
+ return O;
19109
19115
  }
19110
19116
  var Cr = ef(!0), tf = ef(!1), Vi = {}, gt = In(Vi), Ci = In(Vi), Li = In(Vi);
19111
19117
  function yn(e) {
@@ -20364,13 +20370,13 @@ function $L(e, t) {
20364
20370
  break;
20365
20371
  case 1:
20366
20372
  if (I !== null) {
20367
- var h = I.memoizedProps, p = I.memoizedState, A = t.stateNode, R = A.getSnapshotBeforeUpdate(t.elementType === t.type ? h : ct(t.type, h), p);
20373
+ var h = I.memoizedProps, O = I.memoizedState, A = t.stateNode, R = A.getSnapshotBeforeUpdate(t.elementType === t.type ? h : ct(t.type, h), O);
20368
20374
  A.__reactInternalSnapshotBeforeUpdate = R;
20369
20375
  }
20370
20376
  break;
20371
20377
  case 3:
20372
- var O = t.stateNode.containerInfo;
20373
- O.nodeType === 1 ? O.textContent = "" : O.nodeType === 9 && O.documentElement && O.removeChild(O.documentElement);
20378
+ var p = t.stateNode.containerInfo;
20379
+ p.nodeType === 1 ? p.textContent = "" : p.nodeType === 9 && p.documentElement && p.removeChild(p.documentElement);
20374
20380
  break;
20375
20381
  case 5:
20376
20382
  case 6:
@@ -21275,9 +21281,9 @@ function Ff(e, t) {
21275
21281
  E = Error(H(426));
21276
21282
  }
21277
21283
  } else if (oe && o.mode & 1) {
21278
- var p = CA(a);
21279
- if (p !== null) {
21280
- !(p.flags & 65536) && (p.flags |= 256), LA(p, a, o, s, t), Jl(mr(E, o));
21284
+ var O = CA(a);
21285
+ if (O !== null) {
21286
+ !(O.flags & 65536) && (O.flags |= 256), LA(O, a, o, s, t), Jl(mr(E, o));
21281
21287
  break e;
21282
21288
  }
21283
21289
  }
@@ -21291,8 +21297,8 @@ function Ff(e, t) {
21291
21297
  break e;
21292
21298
  case 1:
21293
21299
  o = E;
21294
- var R = s.type, O = s.stateNode;
21295
- if (!(s.flags & 128) && (typeof R.getDerivedStateFromError == "function" || O !== null && typeof O.componentDidCatch == "function" && (Tn === null || !Tn.has(O)))) {
21300
+ var R = s.type, p = s.stateNode;
21301
+ if (!(s.flags & 128) && (typeof R.getDerivedStateFromError == "function" || p !== null && typeof p.componentDidCatch == "function" && (Tn === null || !Tn.has(p)))) {
21296
21302
  s.flags |= 65536, t &= -t, s.lanes |= t;
21297
21303
  var d = Cf(s, o, t);
21298
21304
  fA(s, d);
@@ -21463,8 +21469,8 @@ function dr() {
21463
21469
  if (h !== null) {
21464
21470
  I.child = null;
21465
21471
  do {
21466
- var p = h.sibling;
21467
- h.sibling = null, h = p;
21472
+ var O = h.sibling;
21473
+ h.sibling = null, h = O;
21468
21474
  } while (h !== null);
21469
21475
  }
21470
21476
  }
@@ -21494,9 +21500,9 @@ function dr() {
21494
21500
  var R = e.current;
21495
21501
  for (k = R; k !== null; ) {
21496
21502
  a = k;
21497
- var O = a.child;
21498
- if (a.subtreeFlags & 2064 && O !== null)
21499
- O.return = a, k = O;
21503
+ var p = a.child;
21504
+ if (a.subtreeFlags & 2064 && p !== null)
21505
+ p.return = a, k = p;
21500
21506
  else
21501
21507
  e:
21502
21508
  for (a = R; k !== null; ) {
@@ -22767,7 +22773,7 @@ function ds() {
22767
22773
  EOF: n.EOF
22768
22774
  }, l = new r(/\/\*/, /\*\//), u = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, c = /[0-9]/, f = /[^\d\.]/, N = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), I = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
22769
22775
  I = I.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), I = "\\?\\.(?!\\d) " + I, I = I.replace(/ /g, "|");
22770
- var h = new RegExp(I), p = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), A = p.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), R = new RegExp("^(?:" + A.join("|") + ")$"), O, d = function(_, C) {
22776
+ var h = new RegExp(I), O = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), A = O.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), R = new RegExp("^(?:" + A.join("|") + ")$"), p, d = function(_, C) {
22771
22777
  t.call(this, _, C), this._patterns.whitespace = this._patterns.whitespace.matching(
22772
22778
  /\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
22773
22779
  /\u2028\u2029/.source
@@ -22800,7 +22806,7 @@ function ds() {
22800
22806
  }, d.prototype._is_closing = function(_, C) {
22801
22807
  return (_.type === E.END_BLOCK || _.type === E.END_EXPR) && C && (_.text === "]" && C.text === "[" || _.text === ")" && C.text === "(" || _.text === "}" && C.text === "{");
22802
22808
  }, d.prototype._reset = function() {
22803
- O = !1;
22809
+ p = !1;
22804
22810
  }, d.prototype._get_next_token = function(_, C) {
22805
22811
  var L = null;
22806
22812
  this._readWhitespace();
@@ -22845,10 +22851,10 @@ function ds() {
22845
22851
  if (C = this.__patterns.html_comment_start.read(), C) {
22846
22852
  for (; this._input.hasNext() && !this._input.testChar(i.newline); )
22847
22853
  C += this._input.next();
22848
- return O = !0, this._create_token(E.COMMENT, C);
22854
+ return p = !0, this._create_token(E.COMMENT, C);
22849
22855
  }
22850
- } else if (O && _ === "-" && (C = this.__patterns.html_comment_end.read(), C))
22851
- return O = !1, this._create_token(E.COMMENT, C);
22856
+ } else if (p && _ === "-" && (C = this.__patterns.html_comment_end.read(), C))
22857
+ return p = !1, this._create_token(E.COMMENT, C);
22852
22858
  return null;
22853
22859
  }, d.prototype._read_comment = function(_) {
22854
22860
  var C = null;
@@ -22936,7 +22942,7 @@ function ds() {
22936
22942
  M += S.read(), D += M;
22937
22943
  }
22938
22944
  return D;
22939
- }, $n.Tokenizer = d, $n.TOKEN = E, $n.positionable_operators = N.slice(), $n.line_starters = p.slice(), $n;
22945
+ }, $n.Tokenizer = d, $n.TOKEN = E, $n.positionable_operators = N.slice(), $n.line_starters = O.slice(), $n;
22940
22946
  }
22941
22947
  var tc;
22942
22948
  function C0() {
@@ -22961,7 +22967,7 @@ function C0() {
22961
22967
  function f(S, D) {
22962
22968
  return S && S.type === o.RESERVED && E(S.text, D);
22963
22969
  }
22964
- var N = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], I = ["before-newline", "after-newline", "preserve-newline"], h = u(I), p = [h.before_newline, h.preserve_newline], A = {
22970
+ var N = ["case", "return", "do", "if", "throw", "else", "await", "break", "continue", "async"], I = ["before-newline", "after-newline", "preserve-newline"], h = u(I), O = [h.before_newline, h.preserve_newline], A = {
22965
22971
  BlockStatement: "BlockStatement",
22966
22972
  // 'BLOCK'
22967
22973
  Statement: "Statement",
@@ -22980,7 +22986,7 @@ function C0() {
22980
22986
  function R(S, D) {
22981
22987
  D.multiline_frame || D.mode === A.ForInitializer || D.mode === A.Conditional || S.remove_indent(D.start_line_index);
22982
22988
  }
22983
- function O(S) {
22989
+ function p(S) {
22984
22990
  S = S.replace(n.allLineBreaks, `
22985
22991
  `);
22986
22992
  for (var D = [], M = S.indexOf(`
@@ -23083,7 +23089,7 @@ function C0() {
23083
23089
  if (D = D === void 0 ? !1 : D, !this._output.just_added_newline()) {
23084
23090
  var M = this._options.preserve_newlines && S.newlines || D, v = E(this._flags.last_token.text, a) || E(S.text, a);
23085
23091
  if (v) {
23086
- var U = E(this._flags.last_token.text, a) && E(this._options.operator_position, p) || E(S.text, a);
23092
+ var U = E(this._flags.last_token.text, a) && E(this._options.operator_position, O) || E(S.text, a);
23087
23093
  M = M && U;
23088
23094
  }
23089
23095
  if (M)
@@ -23258,7 +23264,7 @@ function C0() {
23258
23264
  this.print_token(S);
23259
23265
  return;
23260
23266
  }
23261
- if (this._flags.last_token.type === o.OPERATOR && E(this._options.operator_position, p) && this.allow_wrap_or_preserved_newline(S), S.text === ":" && this._flags.in_case) {
23267
+ if (this._flags.last_token.type === o.OPERATOR && E(this._options.operator_position, O) && this.allow_wrap_or_preserved_newline(S), S.text === ":" && this._flags.in_case) {
23262
23268
  this.print_token(S), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== o.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
23263
23269
  return;
23264
23270
  }
@@ -23306,7 +23312,7 @@ function C0() {
23306
23312
  } else
23307
23313
  this.print_block_commment(S, D);
23308
23314
  }, L.prototype.print_block_commment = function(S, D) {
23309
- var M = O(S.text), v, U = !1, w = !1, F = S.whitespace_before, Y = F.length;
23315
+ var M = p(S.text), v, U = !1, w = !1, F = S.whitespace_before, Y = F.length;
23310
23316
  if (this.print_newline(!1, D), this.print_token_line_indentation(S), this._output.add_token(M[0]), this.print_newline(!1, D), M.length > 1) {
23311
23317
  for (M = M.slice(1), U = _(M, "*"), w = C(M, F), U && (this._flags.alignment = 1), v = 0; v < M.length; v++)
23312
23318
  U ? (this.print_token_line_indentation(S), this._output.add_token(l(M[v]))) : w && M[v] ? (this.print_token_line_indentation(S), this._output.add_token(M[v].substring(Y))) : (this._output.current_line.set_indent(-1), this._output.add_token(M[v])), this.print_newline(!1, D);
@@ -23431,7 +23437,7 @@ function m0() {
23431
23437
  `);
23432
23438
  var I = f.match(/^[\t ]*/)[0];
23433
23439
  this._output = new t(this._options, I), this._input = new n(f), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
23434
- for (var h = 0, p = !1, A = !1, R = !1, O = !1, d = !1, m = this._ch, _ = !1, C, L, g; C = this._input.read(E), L = C !== "", g = m, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), m = this._ch, this._ch; )
23440
+ for (var h = 0, O = !1, A = !1, R = !1, p = !1, d = !1, m = this._ch, _ = !1, C, L, g; C = this._input.read(E), L = C !== "", g = m, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), m = this._ch, this._ch; )
23435
23441
  if (this._ch === "/" && this._input.peek() === "*") {
23436
23442
  this._output.add_new_line(), this._input.back();
23437
23443
  var S = this._input.read(l), D = i.get_directives(S);
@@ -23448,26 +23454,26 @@ function m0() {
23448
23454
  else {
23449
23455
  this.print_string(this._ch);
23450
23456
  var v = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
23451
- v.match(/[ :]$/) && (v = this.eatString(": ").replace(/\s+$/, ""), this.print_string(v), this._output.space_before_token = !0), h === 0 && v.indexOf(":") !== -1 ? (A = !0, this.indent()) : v in this.NESTED_AT_RULE ? (this._nestedLevel += 1, v in this.CONDITIONAL_GROUP_RULE && (R = !0)) : h === 0 && !A && (O = !0);
23457
+ v.match(/[ :]$/) && (v = this.eatString(": ").replace(/\s+$/, ""), this.print_string(v), this._output.space_before_token = !0), h === 0 && v.indexOf(":") !== -1 ? (A = !0, this.indent()) : v in this.NESTED_AT_RULE ? (this._nestedLevel += 1, v in this.CONDITIONAL_GROUP_RULE && (R = !0)) : h === 0 && !A && (p = !0);
23452
23458
  }
23453
23459
  else if (this._ch === "#" && this._input.peek() === "{")
23454
23460
  this.preserveSingleSpace(L), this.print_string(this._ch + this.eatString("}"));
23455
23461
  else if (this._ch === "{")
23456
- A && (A = !1, this.outdent()), O = !1, R ? (R = !1, p = this._indentLevel >= this._nestedLevel) : p = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && p && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (g === "(" ? this._output.space_before_token = !1 : g !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
23462
+ A && (A = !1, this.outdent()), p = !1, R ? (R = !1, O = this._indentLevel >= this._nestedLevel) : O = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && O && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (g === "(" ? this._output.space_before_token = !1 : g !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
23457
23463
  else if (this._ch === "}")
23458
- this.outdent(), this._output.add_new_line(), g === "{" && this._output.trim(!0), A && (this.outdent(), A = !1), this.print_string(this._ch), p = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
23464
+ this.outdent(), this._output.add_new_line(), g === "{" && this._output.trim(!0), A && (this.outdent(), A = !1), this.print_string(this._ch), O = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
23459
23465
  else if (this._ch === ":") {
23460
23466
  for (var U = 0; U < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; U++)
23461
23467
  if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[U])) {
23462
23468
  _ = !0;
23463
23469
  break;
23464
23470
  }
23465
- (p || R) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !O && h === 0 ? (this.print_string(":"), A || (A = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
23471
+ (O || R) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !p && h === 0 ? (this.print_string(":"), A || (A = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
23466
23472
  } else if (this._ch === '"' || this._ch === "'") {
23467
23473
  var w = g === '"' || g === "'";
23468
23474
  this.preserveSingleSpace(w || L), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
23469
23475
  } else if (this._ch === ";")
23470
- _ = !1, h === 0 ? (A && (this.outdent(), A = !1), O = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
23476
+ _ = !1, h === 0 ? (A && (this.outdent(), A = !1), p = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
23471
23477
  else if (this._ch === "(")
23472
23478
  if (this._input.lookBack("url"))
23473
23479
  this.print_string(this._ch), this.eatWhitespace(), h++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), h && (h--, this.outdent()));
@@ -23478,7 +23484,7 @@ function m0() {
23478
23484
  else if (this._ch === ")")
23479
23485
  h && (h--, this.outdent()), d && this._input.peek() === ";" && this._options.selector_separator_newline && (d = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
23480
23486
  else if (this._ch === ",")
23481
- this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!A || d) && h === 0 && !O ? this._output.add_new_line() : this._output.space_before_token = !0;
23487
+ this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!A || d) && h === 0 && !p ? this._output.add_new_line() : this._output.space_before_token = !0;
23482
23488
  else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !A && h === 0)
23483
23489
  this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && o.test(this._ch) && (this._ch = ""));
23484
23490
  else if (this._ch === "]")
@@ -23733,38 +23739,38 @@ function D0() {
23733
23739
  if (lc)
23734
23740
  return tE;
23735
23741
  lc = 1;
23736
- var e = id().Options, t = Ou().Output, n = Ec().Tokenizer, r = Ec().TOKEN, i = /\r\n|[\r\n]/, s = /\r\n|[\r\n]/g, a = function(p, A) {
23737
- this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = p.max_preserve_newlines, this.preserve_newlines = p.preserve_newlines, this._output = new t(p, A);
23742
+ var e = id().Options, t = Ou().Output, n = Ec().Tokenizer, r = Ec().TOKEN, i = /\r\n|[\r\n]/, s = /\r\n|[\r\n]/g, a = function(O, A) {
23743
+ this.indent_level = 0, this.alignment_size = 0, this.max_preserve_newlines = O.max_preserve_newlines, this.preserve_newlines = O.preserve_newlines, this._output = new t(O, A);
23738
23744
  };
23739
- a.prototype.current_line_has_match = function(p) {
23740
- return this._output.current_line.has_match(p);
23741
- }, a.prototype.set_space_before_token = function(p, A) {
23742
- this._output.space_before_token = p, this._output.non_breaking_space = A;
23745
+ a.prototype.current_line_has_match = function(O) {
23746
+ return this._output.current_line.has_match(O);
23747
+ }, a.prototype.set_space_before_token = function(O, A) {
23748
+ this._output.space_before_token = O, this._output.non_breaking_space = A;
23743
23749
  }, a.prototype.set_wrap_point = function() {
23744
23750
  this._output.set_indent(this.indent_level, this.alignment_size), this._output.set_wrap_point();
23745
- }, a.prototype.add_raw_token = function(p) {
23746
- this._output.add_raw_token(p);
23747
- }, a.prototype.print_preserved_newlines = function(p) {
23751
+ }, a.prototype.add_raw_token = function(O) {
23752
+ this._output.add_raw_token(O);
23753
+ }, a.prototype.print_preserved_newlines = function(O) {
23748
23754
  var A = 0;
23749
- p.type !== r.TEXT && p.previous.type !== r.TEXT && (A = p.newlines ? 1 : 0), this.preserve_newlines && (A = p.newlines < this.max_preserve_newlines + 1 ? p.newlines : this.max_preserve_newlines + 1);
23755
+ O.type !== r.TEXT && O.previous.type !== r.TEXT && (A = O.newlines ? 1 : 0), this.preserve_newlines && (A = O.newlines < this.max_preserve_newlines + 1 ? O.newlines : this.max_preserve_newlines + 1);
23750
23756
  for (var R = 0; R < A; R++)
23751
23757
  this.print_newline(R > 0);
23752
23758
  return A !== 0;
23753
- }, a.prototype.traverse_whitespace = function(p) {
23754
- return p.whitespace_before || p.newlines ? (this.print_preserved_newlines(p) || (this._output.space_before_token = !0), !0) : !1;
23759
+ }, a.prototype.traverse_whitespace = function(O) {
23760
+ return O.whitespace_before || O.newlines ? (this.print_preserved_newlines(O) || (this._output.space_before_token = !0), !0) : !1;
23755
23761
  }, a.prototype.previous_token_wrapped = function() {
23756
23762
  return this._output.previous_token_wrapped;
23757
- }, a.prototype.print_newline = function(p) {
23758
- this._output.add_new_line(p);
23759
- }, a.prototype.print_token = function(p) {
23760
- p.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(p.text));
23763
+ }, a.prototype.print_newline = function(O) {
23764
+ this._output.add_new_line(O);
23765
+ }, a.prototype.print_token = function(O) {
23766
+ O.text && (this._output.set_indent(this.indent_level, this.alignment_size), this._output.add_token(O.text));
23761
23767
  }, a.prototype.indent = function() {
23762
23768
  this.indent_level++;
23763
- }, a.prototype.get_full_indent = function(p) {
23764
- return p = this.indent_level + (p || 0), p < 1 ? "" : this._output.get_indent_string(p);
23769
+ }, a.prototype.get_full_indent = function(O) {
23770
+ return O = this.indent_level + (O || 0), O < 1 ? "" : this._output.get_indent_string(O);
23765
23771
  };
23766
- var o = function(p) {
23767
- for (var A = null, R = p.next; R.type !== r.EOF && p.closed !== R; ) {
23772
+ var o = function(O) {
23773
+ for (var A = null, R = O.next; R.type !== r.EOF && O.closed !== R; ) {
23768
23774
  if (R.type === r.ATTRIBUTE && R.text === "type") {
23769
23775
  R.next && R.next.type === r.EQUALS && R.next.next && R.next.next.type === r.VALUE && (A = R.next.next.text);
23770
23776
  break;
@@ -23772,29 +23778,29 @@ function D0() {
23772
23778
  R = R.next;
23773
23779
  }
23774
23780
  return A;
23775
- }, E = function(p, A) {
23776
- var R = null, O = null;
23777
- return A.closed ? (p === "script" ? R = "text/javascript" : p === "style" && (R = "text/css"), R = o(A) || R, R.search("text/css") > -1 ? O = "css" : R.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? O = "javascript" : R.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? O = "html" : R.search(/test\/null/) > -1 && (O = "null"), O) : null;
23781
+ }, E = function(O, A) {
23782
+ var R = null, p = null;
23783
+ return A.closed ? (O === "script" ? R = "text/javascript" : O === "style" && (R = "text/css"), R = o(A) || R, R.search("text/css") > -1 ? p = "css" : R.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? p = "javascript" : R.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? p = "html" : R.search(/test\/null/) > -1 && (p = "null"), p) : null;
23778
23784
  };
23779
- function l(p, A) {
23780
- return A.indexOf(p) !== -1;
23785
+ function l(O, A) {
23786
+ return A.indexOf(O) !== -1;
23781
23787
  }
23782
- function u(p, A, R) {
23783
- this.parent = p || null, this.tag = A ? A.tag_name : "", this.indent_level = R || 0, this.parser_token = A || null;
23788
+ function u(O, A, R) {
23789
+ this.parent = O || null, this.tag = A ? A.tag_name : "", this.indent_level = R || 0, this.parser_token = A || null;
23784
23790
  }
23785
- function c(p) {
23786
- this._printer = p, this._current_frame = null;
23791
+ function c(O) {
23792
+ this._printer = O, this._current_frame = null;
23787
23793
  }
23788
23794
  c.prototype.get_parser_token = function() {
23789
23795
  return this._current_frame ? this._current_frame.parser_token : null;
23790
- }, c.prototype.record_tag = function(p) {
23791
- var A = new u(this._current_frame, p, this._printer.indent_level);
23796
+ }, c.prototype.record_tag = function(O) {
23797
+ var A = new u(this._current_frame, O, this._printer.indent_level);
23792
23798
  this._current_frame = A;
23793
- }, c.prototype._try_pop_frame = function(p) {
23799
+ }, c.prototype._try_pop_frame = function(O) {
23794
23800
  var A = null;
23795
- return p && (A = p.parser_token, this._printer.indent_level = p.indent_level, this._current_frame = p.parent), A;
23796
- }, c.prototype._get_frame = function(p, A) {
23797
- for (var R = this._current_frame; R && p.indexOf(R.tag) === -1; ) {
23801
+ return O && (A = O.parser_token, this._printer.indent_level = O.indent_level, this._current_frame = O.parent), A;
23802
+ }, c.prototype._get_frame = function(O, A) {
23803
+ for (var R = this._current_frame; R && O.indexOf(R.tag) === -1; ) {
23798
23804
  if (A && A.indexOf(R.tag) !== -1) {
23799
23805
  R = null;
23800
23806
  break;
@@ -23802,66 +23808,66 @@ function D0() {
23802
23808
  R = R.parent;
23803
23809
  }
23804
23810
  return R;
23805
- }, c.prototype.try_pop = function(p, A) {
23806
- var R = this._get_frame([p], A);
23811
+ }, c.prototype.try_pop = function(O, A) {
23812
+ var R = this._get_frame([O], A);
23807
23813
  return this._try_pop_frame(R);
23808
- }, c.prototype.indent_to_tag = function(p) {
23809
- var A = this._get_frame(p);
23814
+ }, c.prototype.indent_to_tag = function(O) {
23815
+ var A = this._get_frame(O);
23810
23816
  A && (this._printer.indent_level = A.indent_level);
23811
23817
  };
23812
- function f(p, A, R, O) {
23813
- this._source_text = p || "", A = A || {}, this._js_beautify = R, this._css_beautify = O, this._tag_stack = null;
23818
+ function f(O, A, R, p) {
23819
+ this._source_text = O || "", A = A || {}, this._js_beautify = R, this._css_beautify = p, this._tag_stack = null;
23814
23820
  var d = new e(A, "html");
23815
23821
  this._options = d, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 5) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 8) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned";
23816
23822
  }
23817
23823
  f.prototype.beautify = function() {
23818
23824
  if (this._options.disabled)
23819
23825
  return this._source_text;
23820
- var p = this._source_text, A = this._options.eol;
23826
+ var O = this._source_text, A = this._options.eol;
23821
23827
  this._options.eol === "auto" && (A = `
23822
- `, p && i.test(p) && (A = p.match(i)[0])), p = p.replace(s, `
23828
+ `, O && i.test(O) && (A = O.match(i)[0])), O = O.replace(s, `
23823
23829
  `);
23824
- var R = p.match(/^[\t ]*/)[0], O = {
23830
+ var R = O.match(/^[\t ]*/)[0], p = {
23825
23831
  text: "",
23826
23832
  type: ""
23827
- }, d = new N(), m = new a(this._options, R), _ = new n(p, this._options).tokenize();
23833
+ }, d = new N(), m = new a(this._options, R), _ = new n(O, this._options).tokenize();
23828
23834
  this._tag_stack = new c(m);
23829
23835
  for (var C = null, L = _.next(); L.type !== r.EOF; )
23830
- L.type === r.TAG_OPEN || L.type === r.COMMENT ? (C = this._handle_tag_open(m, L, d, O, _), d = C) : L.type === r.ATTRIBUTE || L.type === r.EQUALS || L.type === r.VALUE || L.type === r.TEXT && !d.tag_complete ? C = this._handle_inside_tag(m, L, d, O) : L.type === r.TAG_CLOSE ? C = this._handle_tag_close(m, L, d) : L.type === r.TEXT ? C = this._handle_text(m, L, d) : m.add_raw_token(L), O = C, L = _.next();
23836
+ L.type === r.TAG_OPEN || L.type === r.COMMENT ? (C = this._handle_tag_open(m, L, d, p, _), d = C) : L.type === r.ATTRIBUTE || L.type === r.EQUALS || L.type === r.VALUE || L.type === r.TEXT && !d.tag_complete ? C = this._handle_inside_tag(m, L, d, p) : L.type === r.TAG_CLOSE ? C = this._handle_tag_close(m, L, d) : L.type === r.TEXT ? C = this._handle_text(m, L, d) : m.add_raw_token(L), p = C, L = _.next();
23831
23837
  var g = m._output.get_code(A);
23832
23838
  return g;
23833
- }, f.prototype._handle_tag_close = function(p, A, R) {
23834
- var O = {
23839
+ }, f.prototype._handle_tag_close = function(O, A, R) {
23840
+ var p = {
23835
23841
  text: A.text,
23836
23842
  type: A.type
23837
23843
  };
23838
- return p.alignment_size = 0, R.tag_complete = !0, p.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? p.add_raw_token(A) : (R.tag_start_char === "<" && (p.set_space_before_token(A.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && R.has_wrapped_attrs && p.print_newline(!1)), p.print_token(A)), R.indent_content && !(R.is_unformatted || R.is_content_unformatted) && (p.indent(), R.indent_content = !1), !R.is_inline_element && !(R.is_unformatted || R.is_content_unformatted) && p.set_wrap_point(), O;
23839
- }, f.prototype._handle_inside_tag = function(p, A, R, O) {
23844
+ return O.alignment_size = 0, R.tag_complete = !0, O.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? O.add_raw_token(A) : (R.tag_start_char === "<" && (O.set_space_before_token(A.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && R.has_wrapped_attrs && O.print_newline(!1)), O.print_token(A)), R.indent_content && !(R.is_unformatted || R.is_content_unformatted) && (O.indent(), R.indent_content = !1), !R.is_inline_element && !(R.is_unformatted || R.is_content_unformatted) && O.set_wrap_point(), p;
23845
+ }, f.prototype._handle_inside_tag = function(O, A, R, p) {
23840
23846
  var d = R.has_wrapped_attrs, m = {
23841
23847
  text: A.text,
23842
23848
  type: A.type
23843
23849
  };
23844
- return p.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? p.add_raw_token(A) : R.tag_start_char === "{" && A.type === r.TEXT ? p.print_preserved_newlines(A) ? (A.newlines = 0, p.add_raw_token(A)) : p.print_token(A) : (A.type === r.ATTRIBUTE ? p.set_space_before_token(!0) : (A.type === r.EQUALS || A.type === r.VALUE && A.previous.type === r.EQUALS) && p.set_space_before_token(!1), A.type === r.ATTRIBUTE && R.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (p.traverse_whitespace(A), d = d || A.newlines !== 0), this._is_wrap_attributes_force && R.attr_count >= this._options.wrap_attributes_min_attrs && (O.type !== r.TAG_OPEN || // ie. second attribute and beyond
23845
- this._is_wrap_attributes_force_expand_multiline) && (p.print_newline(!1), d = !0)), p.print_token(A), d = d || p.previous_token_wrapped(), R.has_wrapped_attrs = d), m;
23846
- }, f.prototype._handle_text = function(p, A, R) {
23847
- var O = {
23850
+ return O.set_space_before_token(A.newlines || A.whitespace_before !== "", !0), R.is_unformatted ? O.add_raw_token(A) : R.tag_start_char === "{" && A.type === r.TEXT ? O.print_preserved_newlines(A) ? (A.newlines = 0, O.add_raw_token(A)) : O.print_token(A) : (A.type === r.ATTRIBUTE ? O.set_space_before_token(!0) : (A.type === r.EQUALS || A.type === r.VALUE && A.previous.type === r.EQUALS) && O.set_space_before_token(!1), A.type === r.ATTRIBUTE && R.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (O.traverse_whitespace(A), d = d || A.newlines !== 0), this._is_wrap_attributes_force && R.attr_count >= this._options.wrap_attributes_min_attrs && (p.type !== r.TAG_OPEN || // ie. second attribute and beyond
23851
+ this._is_wrap_attributes_force_expand_multiline) && (O.print_newline(!1), d = !0)), O.print_token(A), d = d || O.previous_token_wrapped(), R.has_wrapped_attrs = d), m;
23852
+ }, f.prototype._handle_text = function(O, A, R) {
23853
+ var p = {
23848
23854
  text: A.text,
23849
23855
  type: "TK_CONTENT"
23850
23856
  };
23851
- return R.custom_beautifier_name ? this._print_custom_beatifier_text(p, A, R) : R.is_unformatted || R.is_content_unformatted ? p.add_raw_token(A) : (p.traverse_whitespace(A), p.print_token(A)), O;
23852
- }, f.prototype._print_custom_beatifier_text = function(p, A, R) {
23853
- var O = this;
23857
+ return R.custom_beautifier_name ? this._print_custom_beatifier_text(O, A, R) : R.is_unformatted || R.is_content_unformatted ? O.add_raw_token(A) : (O.traverse_whitespace(A), O.print_token(A)), p;
23858
+ }, f.prototype._print_custom_beatifier_text = function(O, A, R) {
23859
+ var p = this;
23854
23860
  if (A.text !== "") {
23855
23861
  var d = A.text, m, _ = 1, C = "", L = "";
23856
23862
  R.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? m = this._js_beautify : R.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? m = this._css_beautify : R.custom_beautifier_name === "html" && (m = function(U, w) {
23857
- var F = new f(U, w, O._js_beautify, O._css_beautify);
23863
+ var F = new f(U, w, p._js_beautify, p._css_beautify);
23858
23864
  return F.beautify();
23859
- }), this._options.indent_scripts === "keep" ? _ = 0 : this._options.indent_scripts === "separate" && (_ = -p.indent_level);
23860
- var g = p.get_full_indent(_);
23865
+ }), this._options.indent_scripts === "keep" ? _ = 0 : this._options.indent_scripts === "separate" && (_ = -O.indent_level);
23866
+ var g = O.get_full_indent(_);
23861
23867
  if (d = d.replace(/\n[ \t]*$/, ""), R.custom_beautifier_name !== "html" && d[0] === "<" && d.match(/^(<!--|<!\[CDATA\[)/)) {
23862
23868
  var S = /^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(d);
23863
23869
  if (!S) {
23864
- p.add_raw_token(A);
23870
+ O.add_raw_token(A);
23865
23871
  return;
23866
23872
  }
23867
23873
  C = g + S[1] + `
@@ -23885,64 +23891,64 @@ function D0() {
23885
23891
  ` + g);
23886
23892
  }
23887
23893
  C && (d ? d = C + d + `
23888
- ` + L : d = C + L), p.print_newline(!1), d && (A.text = d, A.whitespace_before = "", A.newlines = 0, p.add_raw_token(A), p.print_newline(!0));
23894
+ ` + L : d = C + L), O.print_newline(!1), d && (A.text = d, A.whitespace_before = "", A.newlines = 0, O.add_raw_token(A), O.print_newline(!0));
23889
23895
  }
23890
- }, f.prototype._handle_tag_open = function(p, A, R, O, d) {
23896
+ }, f.prototype._handle_tag_open = function(O, A, R, p, d) {
23891
23897
  var m = this._get_tag_open_token(A);
23892
- if ((R.is_unformatted || R.is_content_unformatted) && !R.is_empty_element && A.type === r.TAG_OPEN && !m.is_start_tag ? (p.add_raw_token(A), m.start_tag_token = this._tag_stack.try_pop(m.tag_name)) : (p.traverse_whitespace(A), this._set_tag_position(p, A, m, R, O), m.is_inline_element || p.set_wrap_point(), p.print_token(A)), m.is_start_tag && this._is_wrap_attributes_force) {
23898
+ if ((R.is_unformatted || R.is_content_unformatted) && !R.is_empty_element && A.type === r.TAG_OPEN && !m.is_start_tag ? (O.add_raw_token(A), m.start_tag_token = this._tag_stack.try_pop(m.tag_name)) : (O.traverse_whitespace(A), this._set_tag_position(O, A, m, R, p), m.is_inline_element || O.set_wrap_point(), O.print_token(A)), m.is_start_tag && this._is_wrap_attributes_force) {
23893
23899
  var _ = 0, C;
23894
23900
  do
23895
23901
  C = d.peek(_), C.type === r.ATTRIBUTE && (m.attr_count += 1), _ += 1;
23896
23902
  while (C.type !== r.EOF && C.type !== r.TAG_CLOSE);
23897
23903
  }
23898
- return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (m.alignment_size = A.text.length + 1), !m.tag_complete && !m.is_unformatted && (p.alignment_size = m.alignment_size), m;
23904
+ return (this._is_wrap_attributes_force_aligned || this._is_wrap_attributes_aligned_multiple || this._is_wrap_attributes_preserve_aligned) && (m.alignment_size = A.text.length + 1), !m.tag_complete && !m.is_unformatted && (O.alignment_size = m.alignment_size), m;
23899
23905
  };
23900
- var N = function(p, A) {
23901
- if (this.parent = p || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !A)
23906
+ var N = function(O, A) {
23907
+ if (this.parent = O || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !A)
23902
23908
  this.tag_complete = !0;
23903
23909
  else {
23904
23910
  var R;
23905
23911
  this.tag_start_char = A.text[0], this.text = A.text, this.tag_start_char === "<" ? (R = A.text.match(/^<([^\s>]*)/), this.tag_check = R ? R[1] : "") : (R = A.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/), this.tag_check = R ? R[1] : "", (A.text.startsWith("{{#>") || A.text.startsWith("{{~#>")) && this.tag_check[0] === ">" && (this.tag_check === ">" && A.next !== null ? this.tag_check = A.next.text.split(" ")[0] : this.tag_check = A.text.split(">")[1])), this.tag_check = this.tag_check.toLowerCase(), A.type === r.COMMENT && (this.tag_complete = !0), this.is_start_tag = this.tag_check.charAt(0) !== "/", this.tag_name = this.is_start_tag ? this.tag_check : this.tag_check.substr(1), this.is_end_tag = !this.is_start_tag || A.closed && A.closed.text === "/>";
23906
- var O = 2;
23907
- this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (O = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(O)));
23912
+ var p = 2;
23913
+ this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (p = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (this.text.length < 3 || /[^#\^]/.test(this.text.charAt(p)));
23908
23914
  }
23909
23915
  };
23910
- f.prototype._get_tag_open_token = function(p) {
23911
- var A = new N(this._tag_stack.get_parser_token(), p);
23916
+ f.prototype._get_tag_open_token = function(O) {
23917
+ var A = new N(this._tag_stack.get_parser_token(), O);
23912
23918
  return A.alignment_size = this._options.wrap_attributes_indent_size, A.is_end_tag = A.is_end_tag || l(A.tag_check, this._options.void_elements), A.is_empty_element = A.tag_complete || A.is_start_tag && A.is_end_tag, A.is_unformatted = !A.tag_complete && l(A.tag_check, this._options.unformatted), A.is_content_unformatted = !A.is_empty_element && l(A.tag_check, this._options.content_unformatted), A.is_inline_element = l(A.tag_name, this._options.inline) || this._options.inline_custom_elements && A.tag_name.includes("-") || A.tag_start_char === "{", A;
23913
- }, f.prototype._set_tag_position = function(p, A, R, O, d) {
23914
- if (R.is_empty_element || (R.is_end_tag ? R.start_tag_token = this._tag_stack.try_pop(R.tag_name) : (this._do_optional_end_element(R) && (R.is_inline_element || p.print_newline(!1)), this._tag_stack.record_tag(R), (R.tag_name === "script" || R.tag_name === "style") && !(R.is_unformatted || R.is_content_unformatted) && (R.custom_beautifier_name = E(R.tag_check, A)))), l(R.tag_check, this._options.extra_liners) && (p.print_newline(!1), p._output.just_added_blankline() || p.print_newline(!0)), R.is_empty_element) {
23919
+ }, f.prototype._set_tag_position = function(O, A, R, p, d) {
23920
+ if (R.is_empty_element || (R.is_end_tag ? R.start_tag_token = this._tag_stack.try_pop(R.tag_name) : (this._do_optional_end_element(R) && (R.is_inline_element || O.print_newline(!1)), this._tag_stack.record_tag(R), (R.tag_name === "script" || R.tag_name === "style") && !(R.is_unformatted || R.is_content_unformatted) && (R.custom_beautifier_name = E(R.tag_check, A)))), l(R.tag_check, this._options.extra_liners) && (O.print_newline(!1), O._output.just_added_blankline() || O.print_newline(!0)), R.is_empty_element) {
23915
23921
  if (R.tag_start_char === "{" && R.tag_check === "else") {
23916
23922
  this._tag_stack.indent_to_tag(["if", "unless", "each"]), R.indent_content = !0;
23917
- var m = p.current_line_has_match(/{{#if/);
23918
- m || p.print_newline(!1);
23923
+ var m = O.current_line_has_match(/{{#if/);
23924
+ m || O.print_newline(!1);
23919
23925
  }
23920
- R.tag_name === "!--" && d.type === r.TAG_CLOSE && O.is_end_tag && R.text.indexOf(`
23921
- `) === -1 || (R.is_inline_element || R.is_unformatted || p.print_newline(!1), this._calcluate_parent_multiline(p, R));
23926
+ R.tag_name === "!--" && d.type === r.TAG_CLOSE && p.is_end_tag && R.text.indexOf(`
23927
+ `) === -1 || (R.is_inline_element || R.is_unformatted || O.print_newline(!1), this._calcluate_parent_multiline(O, R));
23922
23928
  } else if (R.is_end_tag) {
23923
23929
  var _ = !1;
23924
- _ = R.start_tag_token && R.start_tag_token.multiline_content, _ = _ || !R.is_inline_element && !(O.is_inline_element || O.is_unformatted) && !(d.type === r.TAG_CLOSE && R.start_tag_token === O) && d.type !== "TK_CONTENT", (R.is_content_unformatted || R.is_unformatted) && (_ = !1), _ && p.print_newline(!1);
23930
+ _ = R.start_tag_token && R.start_tag_token.multiline_content, _ = _ || !R.is_inline_element && !(p.is_inline_element || p.is_unformatted) && !(d.type === r.TAG_CLOSE && R.start_tag_token === p) && d.type !== "TK_CONTENT", (R.is_content_unformatted || R.is_unformatted) && (_ = !1), _ && O.print_newline(!1);
23925
23931
  } else
23926
- R.indent_content = !R.custom_beautifier_name, R.tag_start_char === "<" && (R.tag_name === "html" ? R.indent_content = this._options.indent_inner_html : R.tag_name === "head" ? R.indent_content = this._options.indent_head_inner_html : R.tag_name === "body" && (R.indent_content = this._options.indent_body_inner_html)), !(R.is_inline_element || R.is_unformatted) && (d.type !== "TK_CONTENT" || R.is_content_unformatted) && p.print_newline(!1), this._calcluate_parent_multiline(p, R);
23927
- }, f.prototype._calcluate_parent_multiline = function(p, A) {
23928
- A.parent && p._output.just_added_newline() && !((A.is_inline_element || A.is_unformatted) && A.parent.is_inline_element) && (A.parent.multiline_content = !0);
23932
+ R.indent_content = !R.custom_beautifier_name, R.tag_start_char === "<" && (R.tag_name === "html" ? R.indent_content = this._options.indent_inner_html : R.tag_name === "head" ? R.indent_content = this._options.indent_head_inner_html : R.tag_name === "body" && (R.indent_content = this._options.indent_body_inner_html)), !(R.is_inline_element || R.is_unformatted) && (d.type !== "TK_CONTENT" || R.is_content_unformatted) && O.print_newline(!1), this._calcluate_parent_multiline(O, R);
23933
+ }, f.prototype._calcluate_parent_multiline = function(O, A) {
23934
+ A.parent && O._output.just_added_newline() && !((A.is_inline_element || A.is_unformatted) && A.parent.is_inline_element) && (A.parent.multiline_content = !0);
23929
23935
  };
23930
23936
  var I = ["address", "article", "aside", "blockquote", "details", "div", "dl", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "main", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"], h = ["a", "audio", "del", "ins", "map", "noscript", "video"];
23931
- return f.prototype._do_optional_end_element = function(p) {
23937
+ return f.prototype._do_optional_end_element = function(O) {
23932
23938
  var A = null;
23933
- if (!(p.is_empty_element || !p.is_start_tag || !p.parent)) {
23934
- if (p.tag_name === "body")
23939
+ if (!(O.is_empty_element || !O.is_start_tag || !O.parent)) {
23940
+ if (O.tag_name === "body")
23935
23941
  A = A || this._tag_stack.try_pop("head");
23936
- else if (p.tag_name === "li")
23942
+ else if (O.tag_name === "li")
23937
23943
  A = A || this._tag_stack.try_pop("li", ["ol", "ul", "menu"]);
23938
- else if (p.tag_name === "dd" || p.tag_name === "dt")
23944
+ else if (O.tag_name === "dd" || O.tag_name === "dt")
23939
23945
  A = A || this._tag_stack.try_pop("dt", ["dl"]), A = A || this._tag_stack.try_pop("dd", ["dl"]);
23940
- else if (p.parent.tag_name === "p" && I.indexOf(p.tag_name) !== -1) {
23941
- var R = p.parent.parent;
23946
+ else if (O.parent.tag_name === "p" && I.indexOf(O.tag_name) !== -1) {
23947
+ var R = O.parent.parent;
23942
23948
  (!R || h.indexOf(R.tag_name) === -1) && (A = A || this._tag_stack.try_pop("p"));
23943
23949
  } else
23944
- p.tag_name === "rp" || p.tag_name === "rt" ? (A = A || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), A = A || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : p.tag_name === "optgroup" ? A = A || this._tag_stack.try_pop("optgroup", ["select"]) : p.tag_name === "option" ? A = A || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : p.tag_name === "colgroup" ? A = A || this._tag_stack.try_pop("caption", ["table"]) : p.tag_name === "thead" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"])) : p.tag_name === "tbody" || p.tag_name === "tfoot" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("thead", ["table"]), A = A || this._tag_stack.try_pop("tbody", ["table"])) : p.tag_name === "tr" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (p.tag_name === "th" || p.tag_name === "td") && (A = A || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), A = A || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
23945
- return p.parent = this._tag_stack.get_parser_token(), A;
23950
+ O.tag_name === "rp" || O.tag_name === "rt" ? (A = A || this._tag_stack.try_pop("rt", ["ruby", "rtc"]), A = A || this._tag_stack.try_pop("rp", ["ruby", "rtc"])) : O.tag_name === "optgroup" ? A = A || this._tag_stack.try_pop("optgroup", ["select"]) : O.tag_name === "option" ? A = A || this._tag_stack.try_pop("option", ["select", "datalist", "optgroup"]) : O.tag_name === "colgroup" ? A = A || this._tag_stack.try_pop("caption", ["table"]) : O.tag_name === "thead" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"])) : O.tag_name === "tbody" || O.tag_name === "tfoot" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("thead", ["table"]), A = A || this._tag_stack.try_pop("tbody", ["table"])) : O.tag_name === "tr" ? (A = A || this._tag_stack.try_pop("caption", ["table"]), A = A || this._tag_stack.try_pop("colgroup", ["table"]), A = A || this._tag_stack.try_pop("tr", ["table", "thead", "tbody", "tfoot"])) : (O.tag_name === "th" || O.tag_name === "td") && (A = A || this._tag_stack.try_pop("td", ["table", "thead", "tbody", "tfoot", "tr"]), A = A || this._tag_stack.try_pop("th", ["table", "thead", "tbody", "tfoot", "tr"]));
23951
+ return O.parent = this._tag_stack.get_parser_token(), A;
23946
23952
  }
23947
23953
  }, tE.Beautifier = f, tE;
23948
23954
  }
@@ -23987,8 +23993,8 @@ var y0 = qf.exports, sd = { exports: {} };
23987
23993
  (function(e, t) {
23988
23994
  (function() {
23989
23995
  function n(r, i) {
23990
- var s, a = 0, o = r.length, E, l = "", u, c, f, N, I, h, p, A, R = !0, O = !1, d;
23991
- s = arguments.length > 1 ? i : {}, typeof s.indent > "u" && (s.indent = " "), typeof s.openbrace == "string" && (R = s.openbrace === "end-of-line"), typeof s.autosemicolon == "boolean" && (O = s.autosemicolon);
23996
+ var s, a = 0, o = r.length, E, l = "", u, c, f, N, I, h, O, A, R = !0, p = !1, d;
23997
+ s = arguments.length > 1 ? i : {}, typeof s.indent > "u" && (s.indent = " "), typeof s.openbrace == "string" && (R = s.openbrace === "end-of-line"), typeof s.autosemicolon == "boolean" && (p = s.autosemicolon);
23992
23998
  function m(D) {
23993
23999
  return D === " " || D === `
23994
24000
  ` || D === " " || D === "\r" || D === "\f";
@@ -24012,7 +24018,7 @@ var y0 = qf.exports, sd = { exports: {} };
24012
24018
  }
24013
24019
  function S() {
24014
24020
  var D;
24015
- h -= 1, l = d(l), l.length > 0 && O && (D = l.charAt(l.length - 1), D !== ";" && D !== "{" && (l += ";")), l += `
24021
+ h -= 1, l = d(l), l.length > 0 && p && (D = l.charAt(l.length - 1), D !== ";" && D !== "{" && (l += ";")), l += `
24016
24022
  `, L(), l += "}", E.push(l), l = "";
24017
24023
  }
24018
24024
  for (String.prototype.trimRight ? d = function(D) {
@@ -24031,12 +24037,12 @@ var y0 = qf.exports, sd = { exports: {} };
24031
24037
  URL: 8
24032
24038
  }, h = 0, N = I.Start, A = !1, E = [], r = r.replace(/\r\n/g, `
24033
24039
  `); a < o; ) {
24034
- if (u = r.charAt(a), c = r.charAt(a + 1), a += 1, _(p)) {
24035
- l += u, u === p && (p = null), u === "\\" && c === p && (l += c, a += 1);
24040
+ if (u = r.charAt(a), c = r.charAt(a + 1), a += 1, _(O)) {
24041
+ l += u, u === O && (O = null), u === "\\" && c === O && (l += c, a += 1);
24036
24042
  continue;
24037
24043
  }
24038
24044
  if (_(u)) {
24039
- l += u, p = u;
24045
+ l += u, O = u;
24040
24046
  continue;
24041
24047
  }
24042
24048
  if (A) {
@@ -24388,13 +24394,13 @@ function U0(e, t) {
24388
24394
  var h = -n.indent_level;
24389
24395
  else
24390
24396
  var h = 1;
24391
- var p = n.get_full_indent(h);
24397
+ var O = n.get_full_indent(h);
24392
24398
  if (I)
24393
- N = I(N.replace(/^\s*/, p), t);
24399
+ N = I(N.replace(/^\s*/, O), t);
24394
24400
  else {
24395
- var A = N.match(/^\s*/)[0], R = A.match(/[^\n\r]*$/)[0].split(n.indent_string).length - 1, O = n.get_full_indent(h - R);
24396
- N = N.replace(/^\s*/, p).replace(/\r\n|\r|\n/g, `
24397
- ` + O).replace(/\s*$/, "");
24401
+ var A = N.match(/^\s*/)[0], R = A.match(/[^\n\r]*$/)[0].split(n.indent_string).length - 1, p = n.get_full_indent(h - R);
24402
+ N = N.replace(/^\s*/, O).replace(/\r\n|\r|\n/g, `
24403
+ ` + p).replace(/\s*$/, "");
24398
24404
  }
24399
24405
  N && (n.print_token(N), n.print_newline(!0, n.output));
24400
24406
  }
@@ -24480,10 +24486,10 @@ var Y0 = ad.exports, Rn = {}, od = {}, kt = {};
24480
24486
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, E = o.callback;
24481
24487
  typeof o == "function" && (E = o, o = {}), this.options = o;
24482
24488
  var l = this;
24483
- function u(O) {
24489
+ function u(p) {
24484
24490
  return E ? (setTimeout(function() {
24485
- E(void 0, O);
24486
- }, 0), !0) : O;
24491
+ E(void 0, p);
24492
+ }, 0), !0) : p;
24487
24493
  }
24488
24494
  s = this.castInput(s), a = this.castInput(a), s = this.removeEmpty(this.tokenize(s)), a = this.removeEmpty(this.tokenize(a));
24489
24495
  var c = a.length, f = s.length, N = 1, I = c + f;
@@ -24491,36 +24497,36 @@ var Y0 = ad.exports, Rn = {}, od = {}, kt = {};
24491
24497
  var h = [{
24492
24498
  newPos: -1,
24493
24499
  components: []
24494
- }], p = this.extractCommon(h[0], a, s, 0);
24495
- if (h[0].newPos + 1 >= c && p + 1 >= f)
24500
+ }], O = this.extractCommon(h[0], a, s, 0);
24501
+ if (h[0].newPos + 1 >= c && O + 1 >= f)
24496
24502
  return u([{
24497
24503
  value: this.join(a),
24498
24504
  count: a.length
24499
24505
  }]);
24500
24506
  function A() {
24501
- for (var O = -1 * N; O <= N; O += 2) {
24507
+ for (var p = -1 * N; p <= N; p += 2) {
24502
24508
  var d = (
24503
24509
  /*istanbul ignore start*/
24504
24510
  void 0
24505
- ), m = h[O - 1], _ = h[O + 1], C = (_ ? _.newPos : 0) - O;
24506
- m && (h[O - 1] = void 0);
24511
+ ), m = h[p - 1], _ = h[p + 1], C = (_ ? _.newPos : 0) - p;
24512
+ m && (h[p - 1] = void 0);
24507
24513
  var L = m && m.newPos + 1 < c, g = _ && 0 <= C && C < f;
24508
24514
  if (!L && !g) {
24509
- h[O] = void 0;
24515
+ h[p] = void 0;
24510
24516
  continue;
24511
24517
  }
24512
- if (!L || g && m.newPos < _.newPos ? (d = r(_), l.pushComponent(d.components, void 0, !0)) : (d = m, d.newPos++, l.pushComponent(d.components, !0, void 0)), C = l.extractCommon(d, a, s, O), d.newPos + 1 >= c && C + 1 >= f)
24518
+ if (!L || g && m.newPos < _.newPos ? (d = r(_), l.pushComponent(d.components, void 0, !0)) : (d = m, d.newPos++, l.pushComponent(d.components, !0, void 0)), C = l.extractCommon(d, a, s, p), d.newPos + 1 >= c && C + 1 >= f)
24513
24519
  return u(n(l, d.components, a, s, l.useLongestToken));
24514
- h[O] = d;
24520
+ h[p] = d;
24515
24521
  }
24516
24522
  N++;
24517
24523
  }
24518
24524
  if (E)
24519
- (function O() {
24525
+ (function p() {
24520
24526
  setTimeout(function() {
24521
24527
  if (N > I)
24522
24528
  return E();
24523
- A() || O();
24529
+ A() || p();
24524
24530
  }, 0);
24525
24531
  })();
24526
24532
  else
@@ -24593,16 +24599,16 @@ var Y0 = ad.exports, Rn = {}, od = {}, kt = {};
24593
24599
  if (!N.added && E) {
24594
24600
  var I = a.slice(c, c + N.count);
24595
24601
  I = I.map(function(A, R) {
24596
- var O = o[f + R];
24597
- return O.length > A.length ? O : A;
24602
+ var p = o[f + R];
24603
+ return p.length > A.length ? p : A;
24598
24604
  }), N.value = i.join(I);
24599
24605
  } else
24600
24606
  N.value = i.join(a.slice(c, c + N.count));
24601
24607
  c += N.count, N.added || (f += N.count);
24602
24608
  }
24603
24609
  }
24604
- var p = s[u - 1];
24605
- return u > 1 && typeof p.value == "string" && (p.added || p.removed) && i.equals("", p.value) && (s[u - 2].value += p.value, s.pop()), s;
24610
+ var O = s[u - 1];
24611
+ return u > 1 && typeof O.value == "string" && (O.added || O.removed) && i.equals("", O.value) && (s[u - 2].value += O.value, s.pop()), s;
24606
24612
  }
24607
24613
  function r(i) {
24608
24614
  return {
@@ -24964,12 +24970,12 @@ function Ad(e, t) {
24964
24970
  return !0;
24965
24971
  }
24966
24972
  for (var I = 0; I < s.length; I++) {
24967
- for (var h = s[I], p = r.length - h.oldLines, A = 0, R = u + h.oldStart - 1, O = (
24973
+ for (var h = s[I], O = r.length - h.oldLines, A = 0, R = u + h.oldStart - 1, p = (
24968
24974
  /*istanbul ignore start*/
24969
24975
  /*istanbul ignore end*/
24970
24976
  /*istanbul ignore start*/
24971
- (0, fm.default)(R, l, p)
24972
- ); A !== void 0; A = O())
24977
+ (0, fm.default)(R, l, O)
24978
+ ); A !== void 0; A = p())
24973
24979
  if (N(h, R + A)) {
24974
24980
  h.offset = u += A;
24975
24981
  break;
@@ -25089,9 +25095,9 @@ function cd(e, t, n, r, i, s, a) {
25089
25095
  });
25090
25096
  }
25091
25097
  for (var l = [], u = 0, c = 0, f = [], N = 1, I = 1, h = function(R) {
25092
- var O = o[R], d = O.lines || O.value.replace(/\n$/, "").split(`
25098
+ var p = o[R], d = p.lines || p.value.replace(/\n$/, "").split(`
25093
25099
  `);
25094
- if (O.lines = d, O.added || O.removed) {
25100
+ if (p.lines = d, p.added || p.removed) {
25095
25101
  var m;
25096
25102
  if (!u) {
25097
25103
  var _ = o[R - 1];
@@ -25105,10 +25111,10 @@ function cd(e, t, n, r, i, s, a) {
25105
25111
  rE(
25106
25112
  /*istanbul ignore end*/
25107
25113
  d.map(function(U) {
25108
- return (O.added ? "+" : "-") + U;
25114
+ return (p.added ? "+" : "-") + U;
25109
25115
  })
25110
25116
  )
25111
- ), O.added ? I += d.length : N += d.length;
25117
+ ), p.added ? I += d.length : N += d.length;
25112
25118
  } else {
25113
25119
  if (u)
25114
25120
  if (d.length <= a.context * 2 && R < o.length - 2) {
@@ -25150,10 +25156,10 @@ function cd(e, t, n, r, i, s, a) {
25150
25156
  }
25151
25157
  N += d.length, I += d.length;
25152
25158
  }
25153
- }, p = 0; p < o.length; p++)
25159
+ }, O = 0; O < o.length; O++)
25154
25160
  h(
25155
25161
  /*istanbul ignore end*/
25156
- p
25162
+ O
25157
25163
  );
25158
25164
  return {
25159
25165
  oldFileName: e,
@@ -25636,8 +25642,8 @@ function Hm(e) {
25636
25642
  }
25637
25643
  });
25638
25644
  var t = h(kt), n = ki, r = Ur, i = hn, s = Xi, a = ji, o = xr, E = Ki, l = Qa, u = Ji, c = qa, f = zn, N = Du, I = gu;
25639
- function h(p) {
25640
- return p && p.__esModule ? p : { default: p };
25645
+ function h(O) {
25646
+ return O && O.__esModule ? O : { default: O };
25641
25647
  }
25642
25648
  })(od);
25643
25649
  var Bm = ce && ce.__createBinding || (Object.create ? function(e, t, n, r) {
@@ -25690,10 +25696,10 @@ const Cc = (e) => e === "" ? [] : e.replace(/\n$/, "").split(`
25690
25696
  ignoreCase: !1
25691
25697
  }) : a = ul.diffJson(e, t);
25692
25698
  let o = i, E = i, l = [], u = 0;
25693
- const c = [], f = [], N = (I, h, p, A, R) => Cc(I).map((d, m) => {
25699
+ const c = [], f = [], N = (I, h, O, A, R) => Cc(I).map((d, m) => {
25694
25700
  const _ = {}, C = {};
25695
25701
  if (!(f.includes(`${h}-${m}`) || R && m !== 0)) {
25696
- if (p || A) {
25702
+ if (O || A) {
25697
25703
  let L = !0;
25698
25704
  if (A) {
25699
25705
  E += 1, _.lineNumber = E, _.type = wt.REMOVED, _.value = d || " ";
@@ -25720,10 +25726,10 @@ const Cc = (e) => e === "" ? [] : e.replace(/\n$/, "").split(`
25720
25726
  return (s != null && s.includes(`L-${_.lineNumber}`) || s != null && s.includes(`R-${C.lineNumber}`) && !c.includes(u)) && c.push(u), R || (u += 1), { right: C, left: _ };
25721
25727
  }
25722
25728
  }).filter(Boolean);
25723
- return a.forEach(({ added: I, removed: h, value: p }, A) => {
25729
+ return a.forEach(({ added: I, removed: h, value: O }, A) => {
25724
25730
  l = [
25725
25731
  ...l,
25726
- ...N(p, A, I, h)
25732
+ ...N(O, A, I, h)
25727
25733
  ];
25728
25734
  }), {
25729
25735
  lineInformation: l,
@@ -25914,7 +25920,7 @@ function oP(e) {
25914
25920
  return hd(Bs("", null, null, null, [""], e = _d(e), 0, [0], e));
25915
25921
  }
25916
25922
  function Bs(e, t, n, r, i, s, a, o, E) {
25917
- for (var l = 0, u = 0, c = a, f = 0, N = 0, I = 0, h = 1, p = 1, A = 1, R = 0, O = "", d = i, m = s, _ = r, C = O; p; )
25923
+ for (var l = 0, u = 0, c = a, f = 0, N = 0, I = 0, h = 1, O = 1, A = 1, R = 0, p = "", d = i, m = s, _ = r, C = p; O; )
25918
25924
  switch (I = R, R = nt()) {
25919
25925
  case 40:
25920
25926
  if (I != 108 && Me(C, c - 1) == 58) {
@@ -25953,14 +25959,14 @@ function Bs(e, t, n, r, i, s, a, o, E) {
25953
25959
  switch (R) {
25954
25960
  case 0:
25955
25961
  case 125:
25956
- p = 0;
25962
+ O = 0;
25957
25963
  case 59 + u:
25958
25964
  A == -1 && (C = $(C, /\f/g, "")), N > 0 && Ct(C) - c && _s(N > 32 ? mc(C + ";", r, n, c - 1) : mc($(C, " ", "") + ";", r, n, c - 2), E);
25959
25965
  break;
25960
25966
  case 59:
25961
25967
  C += ";";
25962
25968
  default:
25963
- if (_s(_ = Lc(C, t, n, l, u, i, o, O, d = [], m = [], c), s), R === 123)
25969
+ if (_s(_ = Lc(C, t, n, l, u, i, o, p, d = [], m = [], c), s), R === 123)
25964
25970
  if (u === 0)
25965
25971
  Bs(C, t, _, _, d, s, c, o, m);
25966
25972
  else
@@ -25969,13 +25975,13 @@ function Bs(e, t, n, r, i, s, a, o, E) {
25969
25975
  case 108:
25970
25976
  case 109:
25971
25977
  case 115:
25972
- Bs(e, _, _, r && _s(Lc(e, _, _, 0, 0, i, o, O, i, d = [], c), m), i, m, c, o, r ? d : m);
25978
+ Bs(e, _, _, r && _s(Lc(e, _, _, 0, 0, i, o, p, i, d = [], c), m), i, m, c, o, r ? d : m);
25973
25979
  break;
25974
25980
  default:
25975
25981
  Bs(C, _, _, _, [""], m, 0, o, m);
25976
25982
  }
25977
25983
  }
25978
- l = u = N = 0, h = A = 1, O = C = "", c = a;
25984
+ l = u = N = 0, h = A = 1, p = C = "", c = a;
25979
25985
  break;
25980
25986
  case 58:
25981
25987
  c = 1 + Ct(C), N = I;
@@ -25994,7 +26000,7 @@ function Bs(e, t, n, r, i, s, a, o, E) {
25994
26000
  o[l++] = (Ct(C) - 1) * A, A = 1;
25995
26001
  break;
25996
26002
  case 64:
25997
- Mt() === 45 && (C += Hs(nt())), f = Mt(), u = c = Ct(O = C += aP(bs())), R++;
26003
+ Mt() === 45 && (C += Hs(nt())), f = Mt(), u = c = Ct(p = C += aP(bs())), R++;
25998
26004
  break;
25999
26005
  case 45:
26000
26006
  I === 45 && Ct(C) == 2 && (h = 0);
@@ -26003,9 +26009,9 @@ function Bs(e, t, n, r, i, s, a, o, E) {
26003
26009
  return s;
26004
26010
  }
26005
26011
  function Lc(e, t, n, r, i, s, a, o, E, l, u) {
26006
- for (var c = i - 1, f = i === 0 ? s : [""], N = Uu(f), I = 0, h = 0, p = 0; I < r; ++I)
26007
- for (var A = 0, R = yi(e, c + 1, c = zm(h = a[I])), O = e; A < N; ++A)
26008
- (O = Od(h > 0 ? f[A] + " " + R : $(R, /&\f/g, f[A]))) && (E[p++] = O);
26012
+ for (var c = i - 1, f = i === 0 ? s : [""], N = Uu(f), I = 0, h = 0, O = 0; I < r; ++I)
26013
+ for (var A = 0, R = yi(e, c + 1, c = zm(h = a[I])), p = e; A < N; ++A)
26014
+ (p = Od(h > 0 ? f[A] + " " + R : $(R, /&\f/g, f[A]))) && (E[O++] = p);
26009
26015
  return no(e, t, n, i === 0 ? yu : o, E, l, u);
26010
26016
  }
26011
26017
  function EP(e, t, n) {
@@ -26253,8 +26259,8 @@ var NP = function(t, n, r, i) {
26253
26259
  if (n === "css") {
26254
26260
  var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
26255
26261
  Array.prototype.forEach.call(r, function(h) {
26256
- var p = h.getAttribute("data-emotion");
26257
- p.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
26262
+ var O = h.getAttribute("data-emotion");
26263
+ O.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
26258
26264
  });
26259
26265
  }
26260
26266
  var i = t.stylisPlugins || pP, s = {}, a, o = [];
@@ -26263,8 +26269,8 @@ var NP = function(t, n, r, i) {
26263
26269
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
26264
26270
  document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
26265
26271
  function(h) {
26266
- for (var p = h.getAttribute("data-emotion").split(" "), A = 1; A < p.length; A++)
26267
- s[p[A]] = !0;
26272
+ for (var O = h.getAttribute("data-emotion").split(" "), A = 1; A < O.length; A++)
26273
+ s[O[A]] = !0;
26268
26274
  o.push(h);
26269
26275
  }
26270
26276
  );
@@ -26272,11 +26278,11 @@ var NP = function(t, n, r, i) {
26272
26278
  {
26273
26279
  var u, c = [lP, TP(function(h) {
26274
26280
  u.insert(h);
26275
- })], f = uP(l.concat(i, c)), N = function(p) {
26276
- return pr(oP(p), f);
26281
+ })], f = uP(l.concat(i, c)), N = function(O) {
26282
+ return pr(oP(O), f);
26277
26283
  };
26278
- E = function(p, A, R, O) {
26279
- u = R, N(p ? p + "{" + A.styles + "}" : A.styles), O && (I.inserted[A.name] = !0);
26284
+ E = function(O, A, R, p) {
26285
+ u = R, N(O ? O + "{" + A.styles + "}" : A.styles), p && (I.inserted[A.name] = !0);
26280
26286
  };
26281
26287
  }
26282
26288
  var I = {
@@ -26694,7 +26700,7 @@ Mu.default = (e, t = !1, n = "") => {
26694
26700
  }), h = o({
26695
26701
  color: a.gutterColor,
26696
26702
  label: "line-number"
26697
- }), p = o({
26703
+ }), O = o({
26698
26704
  background: a.removedBackground,
26699
26705
  color: a.removedColor,
26700
26706
  pre: {
@@ -26720,7 +26726,7 @@ Mu.default = (e, t = !1, n = "") => {
26720
26726
  color: a.gutterColor
26721
26727
  },
26722
26728
  label: "diff-changed"
26723
- }), O = o({
26729
+ }), p = o({
26724
26730
  padding: 2,
26725
26731
  display: "inline-flex",
26726
26732
  borderRadius: 4,
@@ -26762,7 +26768,7 @@ Mu.default = (e, t = !1, n = "") => {
26762
26768
  color: a.addedColor
26763
26769
  }
26764
26770
  },
26765
- [`&.${p}`]: {
26771
+ [`&.${O}`]: {
26766
26772
  pre: {
26767
26773
  color: a.removedColor
26768
26774
  }
@@ -26796,7 +26802,7 @@ Mu.default = (e, t = !1, n = "") => {
26796
26802
  [`&.${A}`]: {
26797
26803
  background: a.addedGutterBackground
26798
26804
  },
26799
- [`&.${p}`]: {
26805
+ [`&.${O}`]: {
26800
26806
  background: a.removedGutterBackground
26801
26807
  },
26802
26808
  [`&.${D}`]: {
@@ -26816,7 +26822,7 @@ Mu.default = (e, t = !1, n = "") => {
26816
26822
  label: "line"
26817
26823
  }), w = {
26818
26824
  diffContainer: c,
26819
- diffRemoved: p,
26825
+ diffRemoved: O,
26820
26826
  diffAdded: A,
26821
26827
  diffChanged: R,
26822
26828
  splitView: u,
@@ -26825,7 +26831,7 @@ Mu.default = (e, t = !1, n = "") => {
26825
26831
  highlightedLine: S,
26826
26832
  gutter: M,
26827
26833
  line: U,
26828
- wordDiff: O,
26834
+ wordDiff: p,
26829
26835
  wordAdded: d,
26830
26836
  wordRemoved: m,
26831
26837
  codeFoldGutter: _,
@@ -26901,26 +26907,26 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26901
26907
  default: BP
26902
26908
  }, Symbol.toStringTag, { value: "Module" })), YP = /* @__PURE__ */ Gc(FP);
26903
26909
  (function(e) {
26904
- var t = ce && ce.__createBinding || (Object.create ? function(h, p, A, R) {
26910
+ var t = ce && ce.__createBinding || (Object.create ? function(h, O, A, R) {
26905
26911
  R === void 0 && (R = A);
26906
- var O = Object.getOwnPropertyDescriptor(p, A);
26907
- (!O || ("get" in O ? !p.__esModule : O.writable || O.configurable)) && (O = { enumerable: !0, get: function() {
26908
- return p[A];
26909
- } }), Object.defineProperty(h, R, O);
26910
- } : function(h, p, A, R) {
26911
- R === void 0 && (R = A), h[R] = p[A];
26912
- }), n = ce && ce.__setModuleDefault || (Object.create ? function(h, p) {
26913
- Object.defineProperty(h, "default", { enumerable: !0, value: p });
26914
- } : function(h, p) {
26915
- h.default = p;
26912
+ var p = Object.getOwnPropertyDescriptor(O, A);
26913
+ (!p || ("get" in p ? !O.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() {
26914
+ return O[A];
26915
+ } }), Object.defineProperty(h, R, p);
26916
+ } : function(h, O, A, R) {
26917
+ R === void 0 && (R = A), h[R] = O[A];
26918
+ }), n = ce && ce.__setModuleDefault || (Object.create ? function(h, O) {
26919
+ Object.defineProperty(h, "default", { enumerable: !0, value: O });
26920
+ } : function(h, O) {
26921
+ h.default = O;
26916
26922
  }), r = ce && ce.__importStar || function(h) {
26917
26923
  if (h && h.__esModule)
26918
26924
  return h;
26919
- var p = {};
26925
+ var O = {};
26920
26926
  if (h != null)
26921
26927
  for (var A in h)
26922
- A !== "default" && Object.prototype.hasOwnProperty.call(h, A) && t(p, h, A);
26923
- return n(p, h), p;
26928
+ A !== "default" && Object.prototype.hasOwnProperty.call(h, A) && t(O, h, A);
26929
+ return n(O, h), O;
26924
26930
  }, i = ce && ce.__importDefault || function(h) {
26925
26931
  return h && h.__esModule ? h : { default: h };
26926
26932
  };
@@ -26935,8 +26941,8 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26935
26941
  h.LEFT = "L", h.RIGHT = "R";
26936
26942
  })(N || (e.LineNumberPrefix = N = {}));
26937
26943
  class I extends a.Component {
26938
- constructor(p) {
26939
- super(p), this.resetCodeBlocks = () => this.state.expandedBlocks.length > 0 ? (this.setState({
26944
+ constructor(O) {
26945
+ super(O), this.resetCodeBlocks = () => this.state.expandedBlocks.length > 0 ? (this.setState({
26940
26946
  expandedBlocks: []
26941
26947
  }), !0) : !1, this.onBlockExpand = (A) => {
26942
26948
  const R = this.state.expandedBlocks.slice();
@@ -26944,11 +26950,11 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26944
26950
  expandedBlocks: R
26945
26951
  });
26946
26952
  }, this.computeStyles = f(l.default), this.onLineNumberClickProxy = (A) => this.props.onLineNumberClick ? (R) => this.props.onLineNumberClick(A, R) : () => {
26947
- }, this.renderWordDiff = (A, R) => A.map((O, d) => (0, s.jsx)("span", { className: (0, o.default)(this.styles.wordDiff, {
26948
- [this.styles.wordAdded]: O.type === E.DiffType.ADDED,
26949
- [this.styles.wordRemoved]: O.type === E.DiffType.REMOVED
26950
- }), children: R ? R(O.value) : O.value }, d)), this.renderLine = (A, R, O, d, m, _) => {
26951
- const C = `${O}-${A}`, L = `${_}-${m}`, g = this.props.highlightLines.includes(C) || this.props.highlightLines.includes(L), S = R === E.DiffType.ADDED, D = R === E.DiffType.REMOVED, M = R === E.DiffType.CHANGED;
26953
+ }, this.renderWordDiff = (A, R) => A.map((p, d) => (0, s.jsx)("span", { className: (0, o.default)(this.styles.wordDiff, {
26954
+ [this.styles.wordAdded]: p.type === E.DiffType.ADDED,
26955
+ [this.styles.wordRemoved]: p.type === E.DiffType.REMOVED
26956
+ }), children: R ? R(p.value) : p.value }, d)), this.renderLine = (A, R, p, d, m, _) => {
26957
+ const C = `${p}-${A}`, L = `${_}-${m}`, g = this.props.highlightLines.includes(C) || this.props.highlightLines.includes(L), S = R === E.DiffType.ADDED, D = R === E.DiffType.REMOVED, M = R === E.DiffType.CHANGED;
26952
26958
  let v;
26953
26959
  return Array.isArray(d) ? v = this.renderWordDiff(d, this.props.renderContent) : this.props.renderContent ? v = this.props.renderContent(d) : v = d, (0, s.jsxs)(a.Fragment, { children: [!this.props.hideLineNumbers && (0, s.jsx)("td", { onClick: A && this.onLineNumberClickProxy(C), className: (0, o.default)(this.styles.gutter, {
26954
26960
  [this.styles.emptyGutter]: !A,
@@ -26965,7 +26971,7 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26965
26971
  }), children: (0, s.jsx)("pre", { className: this.styles.lineNumber, children: m }) }), this.props.renderGutter ? this.props.renderGutter({
26966
26972
  lineNumber: A,
26967
26973
  type: R,
26968
- prefix: O,
26974
+ prefix: p,
26969
26975
  value: d,
26970
26976
  additionalLineNumber: m,
26971
26977
  additionalPrefix: _,
@@ -26983,16 +26989,16 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26983
26989
  [this.styles.diffChanged]: M,
26984
26990
  [this.styles.highlightedLine]: g
26985
26991
  }), children: (0, s.jsx)("pre", { className: this.styles.contentText, children: v }) })] });
26986
- }, this.renderSplitView = ({ left: A, right: R }, O) => (0, s.jsxs)("tr", { className: this.styles.line, children: [this.renderLine(A.lineNumber, A.type, N.LEFT, A.value), this.renderLine(R.lineNumber, R.type, N.RIGHT, R.value)] }, O), this.renderInlineView = ({ left: A, right: R }, O) => {
26992
+ }, this.renderSplitView = ({ left: A, right: R }, p) => (0, s.jsxs)("tr", { className: this.styles.line, children: [this.renderLine(A.lineNumber, A.type, N.LEFT, A.value), this.renderLine(R.lineNumber, R.type, N.RIGHT, R.value)] }, p), this.renderInlineView = ({ left: A, right: R }, p) => {
26987
26993
  let d;
26988
- return A.type === E.DiffType.REMOVED && R.type === E.DiffType.ADDED ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null) }), (0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber) })] }, O) : (A.type === E.DiffType.REMOVED && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null)), A.type === E.DiffType.DEFAULT && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, R.lineNumber, N.RIGHT)), R.type === E.DiffType.ADDED && (d = this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber)), (0, s.jsx)("tr", { className: this.styles.line, children: d }, O));
26989
- }, this.onBlockClickProxy = (A) => () => this.onBlockExpand(A), this.renderSkippedLineIndicator = (A, R, O, d) => {
26990
- const { hideLineNumbers: m, splitView: _ } = this.props, C = this.props.codeFoldMessageRenderer ? this.props.codeFoldMessageRenderer(A, O, d) : (0, s.jsxs)("pre", { className: this.styles.codeFoldContent, children: ["Expand ", A, " lines ..."] }), L = (0, s.jsx)("td", { children: (0, s.jsx)("a", { onClick: this.onBlockClickProxy(R), tabIndex: 0, children: C }) }), g = !_ && !m;
26994
+ return A.type === E.DiffType.REMOVED && R.type === E.DiffType.ADDED ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null) }), (0, s.jsx)("tr", { className: this.styles.line, children: this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber) })] }, p) : (A.type === E.DiffType.REMOVED && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, null)), A.type === E.DiffType.DEFAULT && (d = this.renderLine(A.lineNumber, A.type, N.LEFT, A.value, R.lineNumber, N.RIGHT)), R.type === E.DiffType.ADDED && (d = this.renderLine(null, R.type, N.RIGHT, R.value, R.lineNumber)), (0, s.jsx)("tr", { className: this.styles.line, children: d }, p));
26995
+ }, this.onBlockClickProxy = (A) => () => this.onBlockExpand(A), this.renderSkippedLineIndicator = (A, R, p, d) => {
26996
+ const { hideLineNumbers: m, splitView: _ } = this.props, C = this.props.codeFoldMessageRenderer ? this.props.codeFoldMessageRenderer(A, p, d) : (0, s.jsxs)("pre", { className: this.styles.codeFoldContent, children: ["Expand ", A, " lines ..."] }), L = (0, s.jsx)("td", { children: (0, s.jsx)("a", { onClick: this.onBlockClickProxy(R), tabIndex: 0, children: C }) }), g = !_ && !m;
26991
26997
  return (0, s.jsxs)("tr", { className: this.styles.codeFold, children: [!m && (0, s.jsx)("td", { className: this.styles.codeFoldGutter }), this.props.renderGutter ? (0, s.jsx)("td", { className: this.styles.codeFoldGutter }) : null, (0, s.jsx)("td", { className: (0, o.default)({
26992
26998
  [this.styles.codeFoldGutter]: g
26993
- }) }), g ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("td", {}), L] }) : (0, s.jsxs)(a.Fragment, { children: [L, this.props.renderGutter ? (0, s.jsx)("td", {}) : null, (0, s.jsx)("td", {})] }), (0, s.jsx)("td", {}), (0, s.jsx)("td", {})] }, `${O}-${d}`);
26999
+ }) }), g ? (0, s.jsxs)(a.Fragment, { children: [(0, s.jsx)("td", {}), L] }) : (0, s.jsxs)(a.Fragment, { children: [L, this.props.renderGutter ? (0, s.jsx)("td", {}) : null, (0, s.jsx)("td", {})] }), (0, s.jsx)("td", {}), (0, s.jsx)("td", {})] }, `${p}-${d}`);
26994
27000
  }, this.renderDiff = () => {
26995
- const { oldValue: A, newValue: R, splitView: O, disableWordDiff: d, compareMethod: m, linesOffset: _ } = this.props, { lineInformation: C, diffLines: L } = (0, E.computeLineInformation)(A, R, d, m, _, this.props.alwaysShowLines), g = this.props.extraLinesSurroundingDiff < 0 ? 0 : Math.round(this.props.extraLinesSurroundingDiff), { lineBlocks: S, blocks: D } = (0, u.computeHiddenBlocks)(C, L, g);
27001
+ const { oldValue: A, newValue: R, splitView: p, disableWordDiff: d, compareMethod: m, linesOffset: _ } = this.props, { lineInformation: C, diffLines: L } = (0, E.computeLineInformation)(A, R, d, m, _, this.props.alwaysShowLines), g = this.props.extraLinesSurroundingDiff < 0 ? 0 : Math.round(this.props.extraLinesSurroundingDiff), { lineBlocks: S, blocks: D } = (0, u.computeHiddenBlocks)(C, L, g);
26996
27002
  return C.map((M, v) => {
26997
27003
  if (this.props.showDiffOnly) {
26998
27004
  const w = S[v];
@@ -27004,13 +27010,13 @@ const FP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27004
27010
  return null;
27005
27011
  }
27006
27012
  }
27007
- return O ? this.renderSplitView(M, v) : this.renderInlineView(M, v);
27013
+ return p ? this.renderSplitView(M, v) : this.renderInlineView(M, v);
27008
27014
  });
27009
27015
  }, this.render = () => {
27010
- const { oldValue: A, newValue: R, useDarkTheme: O, leftTitle: d, rightTitle: m, splitView: _, hideLineNumbers: C, hideMarkers: L, nonce: g } = this.props;
27016
+ const { oldValue: A, newValue: R, useDarkTheme: p, leftTitle: d, rightTitle: m, splitView: _, hideLineNumbers: C, hideMarkers: L, nonce: g } = this.props;
27011
27017
  if (this.props.compareMethod !== E.DiffMethod.JSON && (typeof A != "string" || typeof R != "string"))
27012
27018
  throw Error('"oldValue" and "newValue" should be strings');
27013
- this.styles = this.computeStyles(this.props.styles, O, g);
27019
+ this.styles = this.computeStyles(this.props.styles, p, g);
27014
27020
  const S = this.renderDiff();
27015
27021
  let D = C ? 2 : 3, M = C ? 2 : 4;
27016
27022
  L && (D -= 1, M -= 1);
@@ -27054,9 +27060,9 @@ function kP() {
27054
27060
  if (!o || !E || !(() => {
27055
27061
  if (i)
27056
27062
  return !0;
27057
- const p = document.head.querySelectorAll("style"), A = Array.from(p).filter((d) => d.getAttribute("data-emotion")), R = new CSSStyleSheet(), O = Array.from(A).map((d) => d.innerHTML).join(`
27063
+ const O = document.head.querySelectorAll("style"), A = Array.from(O).filter((d) => d.getAttribute("data-emotion")), R = new CSSStyleSheet(), p = Array.from(A).map((d) => d.innerHTML).join(`
27058
27064
  `);
27059
- return R.replaceSync(O), c && c.adoptedStyleSheets && !(c.adoptedStyleSheets.indexOf(R) >= 0) && A.length > 0 ? (c.adoptedStyleSheets = [...c.adoptedStyleSheets, R], s(!0), !0) : !1;
27065
+ return R.replaceSync(p), c && c.adoptedStyleSheets && !(c.adoptedStyleSheets.indexOf(R) >= 0) && A.length > 0 ? (c.adoptedStyleSheets = [...c.adoptedStyleSheets, R], s(!0), !0) : !1;
27060
27066
  })())
27061
27067
  return;
27062
27068
  const N = Ac(o, { format: "html" });
@@ -27163,57 +27169,59 @@ async function eD({
27163
27169
  integrations: a,
27164
27170
  experiments: o = uE,
27165
27171
  fullPage: E = !1,
27166
- showClearEventsButton: l = !0
27172
+ showClearEventsButton: l = !0,
27173
+ skipSidecar: u = !1
27167
27174
  } = {}) {
27168
27175
  if (typeof document > "u")
27169
27176
  return;
27170
- const u = { ...uE, ...o };
27177
+ const c = { ...uE, ...o };
27171
27178
  if (wc())
27172
27179
  return;
27173
27180
  s && Tp();
27174
- const c = [T1({ sidecarUrl: r })], f = {
27181
+ const f = [T1({ sidecarUrl: r })], N = {
27175
27182
  open: XP,
27176
27183
  close: jP,
27177
- experiments: u
27178
- }, [N] = await AR(a ?? c, f), I = document.createElement("div");
27179
- I.id = "sentry-spotlight-root";
27180
- const h = I.attachShadow({ mode: "open" }), p = document.createElement("div");
27181
- E ? (I.style.height = "100%", I.style.backgroundColor = np.indigo[950], p.style.height = "inherit") : (p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.right = "0"), h.appendChild(p);
27182
- const A = xc(Rp);
27183
- h.adoptedStyleSheets = [xc($d), A];
27184
- const R = N.flatMap(
27185
- (m) => {
27186
- var _;
27187
- return ((_ = m.tabs) == null ? void 0 : _.call(m, { processedEvents: [] }).map((C) => ({
27188
- ...C,
27184
+ experiments: c
27185
+ }, [I] = await AR(a ?? f, N), h = document.createElement("div");
27186
+ h.id = "sentry-spotlight-root";
27187
+ const O = h.attachShadow({ mode: "open" }), A = document.createElement("div");
27188
+ E ? (h.style.height = "100%", h.style.backgroundColor = np.indigo[950], A.style.height = "inherit") : (A.style.position = "absolute", A.style.top = "0", A.style.left = "0", A.style.right = "0"), O.appendChild(A);
27189
+ const R = xc(Rp);
27190
+ O.adoptedStyleSheets = [xc($d), R];
27191
+ const p = I.flatMap(
27192
+ (_) => {
27193
+ var C;
27194
+ return ((C = _.tabs) == null ? void 0 : C.call(_, { processedEvents: [] }).map((L) => ({
27195
+ ...L,
27189
27196
  processedEvents: []
27190
27197
  }))) || [];
27191
27198
  }
27192
- ), O = R.length ? `/${R[0].id}` : "/no-tabs";
27193
- RE.createRoot(p).render(
27199
+ ), d = p.length ? `/${p[0].id}` : "/no-tabs";
27200
+ RE.createRoot(A).render(
27194
27201
  // <React.StrictMode>
27195
- /* @__PURE__ */ T.jsx(YN, { initialEntries: [O], children: /* @__PURE__ */ T.jsx(Kp, { context: f, children: /* @__PURE__ */ T.jsx(
27202
+ /* @__PURE__ */ T.jsx(YN, { initialEntries: [d], children: /* @__PURE__ */ T.jsx(Kp, { context: N, children: /* @__PURE__ */ T.jsx(
27196
27203
  cp,
27197
27204
  {
27198
- integrations: N,
27205
+ integrations: I,
27199
27206
  openOnInit: e,
27200
27207
  showTriggerButton: t,
27201
27208
  sidecarUrl: r,
27202
27209
  anchor: i,
27203
27210
  fullPage: E,
27204
- showClearEventsButton: l
27211
+ showClearEventsButton: l,
27212
+ skipSidecar: u
27205
27213
  }
27206
27214
  ) }) })
27207
27215
  // </React.StrictMode>
27208
27216
  );
27209
- function d() {
27217
+ function m() {
27210
27218
  if (wc()) {
27211
27219
  ee("Spotlight already injected, bailing.");
27212
27220
  return;
27213
27221
  }
27214
- ee("Injecting into application"), document.body.append(I);
27222
+ ee("Injecting into application"), document.body.append(h);
27215
27223
  }
27216
- document.readyState === "complete" || n ? d() : window.addEventListener("load", d), window.addEventListener("error", d);
27224
+ document.readyState === "complete" || n ? m() : window.addEventListener("load", m), window.addEventListener("error", m);
27217
27225
  }
27218
27226
  window.Spotlight && Spotlight.init();
27219
27227
  export {
@@ -27240,4 +27248,4 @@ export {
27240
27248
  lR as t,
27241
27249
  zP as v
27242
27250
  };
27243
- //# sourceMappingURL=index-b5d12201.js.map
27251
+ //# sourceMappingURL=index-047a72e8.js.map