@visitscotland/component-library 5.16.1 → 5.16.3

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.
@@ -2600,9 +2600,9 @@ function _sfc_render$1H(e, n, t, a, r, s) {
2600
2600
  renderSlot(e.$slots, "vs-canned-search-of")
2601
2601
  ]),
2602
2602
  default: withCtx(() => [
2603
- (openBlock(!0), createElementBlock(Fragment, null, renderList(r.products, (N, O) => (openBlock(), createBlock(S, {
2604
- key: O,
2605
- "slide-index": `${O}`,
2603
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.products, (N, A) => (openBlock(), createBlock(S, {
2604
+ key: A,
2605
+ "slide-index": `${A}`,
2606
2606
  "img-src": N.images ? N.images[0].mediaUrl : "",
2607
2607
  title: N.name,
2608
2608
  "detail-link": {
@@ -5060,44 +5060,44 @@ function formatLocale(e) {
5060
5060
  d = formatSpecifier(d);
5061
5061
  var m = d.fill, f = d.align, p = d.sign, g = d.symbol, _ = d.zero, v = d.width, b = d.comma, k = d.precision, C = d.trim, S = d.type;
5062
5062
  S === "n" ? (b = !0, S = "g") : formatTypes[S] || (k === void 0 && (k = 12), C = !0, S = "g"), (_ || m === "0" && f === "=") && (_ = !0, m = "0", f = "=");
5063
- var V = g === "$" ? t : g === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", E = g === "$" ? a : /[%p]/.test(S) ? o : "", N = formatTypes[S], O = /[defgprs%]/.test(S);
5063
+ var V = g === "$" ? t : g === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", E = g === "$" ? a : /[%p]/.test(S) ? o : "", N = formatTypes[S], A = /[defgprs%]/.test(S);
5064
5064
  k = k === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, k)) : Math.max(0, Math.min(20, k));
5065
- function R(D) {
5065
+ function D(O) {
5066
5066
  var z = V, P = E, j, Z, Q;
5067
5067
  if (S === "c")
5068
- P = N(D) + P, D = "";
5068
+ P = N(O) + P, O = "";
5069
5069
  else {
5070
- D = +D;
5071
- var Y = D < 0 || 1 / D < 0;
5072
- if (D = isNaN(D) ? l : N(Math.abs(D), k), C && (D = formatTrim(D)), Y && +D == 0 && p !== "+" && (Y = !1), z = (Y ? p === "(" ? p : i : p === "-" || p === "(" ? "" : p) + z, P = (S === "s" ? prefixes[8 + prefixExponent / 3] : "") + P + (Y && p === "(" ? ")" : ""), O) {
5073
- for (j = -1, Z = D.length; ++j < Z; )
5074
- if (Q = D.charCodeAt(j), 48 > Q || Q > 57) {
5075
- P = (Q === 46 ? r + D.slice(j + 1) : D.slice(j)) + P, D = D.slice(0, j);
5070
+ O = +O;
5071
+ var Y = O < 0 || 1 / O < 0;
5072
+ if (O = isNaN(O) ? l : N(Math.abs(O), k), C && (O = formatTrim(O)), Y && +O == 0 && p !== "+" && (Y = !1), z = (Y ? p === "(" ? p : i : p === "-" || p === "(" ? "" : p) + z, P = (S === "s" ? prefixes[8 + prefixExponent / 3] : "") + P + (Y && p === "(" ? ")" : ""), A) {
5073
+ for (j = -1, Z = O.length; ++j < Z; )
5074
+ if (Q = O.charCodeAt(j), 48 > Q || Q > 57) {
5075
+ P = (Q === 46 ? r + O.slice(j + 1) : O.slice(j)) + P, O = O.slice(0, j);
5076
5076
  break;
5077
5077
  }
5078
5078
  }
5079
5079
  }
5080
- b && !_ && (D = n(D, 1 / 0));
5081
- var w = z.length + D.length + P.length, L = w < v ? new Array(v - w + 1).join(m) : "";
5082
- switch (b && _ && (D = n(L + D, L.length ? v - P.length : 1 / 0), L = ""), f) {
5080
+ b && !_ && (O = n(O, 1 / 0));
5081
+ var w = z.length + O.length + P.length, L = w < v ? new Array(v - w + 1).join(m) : "";
5082
+ switch (b && _ && (O = n(L + O, L.length ? v - P.length : 1 / 0), L = ""), f) {
5083
5083
  case "<":
5084
- D = z + D + P + L;
5084
+ O = z + O + P + L;
5085
5085
  break;
5086
5086
  case "=":
5087
- D = z + L + D + P;
5087
+ O = z + L + O + P;
5088
5088
  break;
5089
5089
  case "^":
5090
- D = L.slice(0, w = L.length >> 1) + z + D + P + L.slice(w);
5090
+ O = L.slice(0, w = L.length >> 1) + z + O + P + L.slice(w);
5091
5091
  break;
5092
5092
  default:
5093
- D = L + z + D + P;
5093
+ O = L + z + O + P;
5094
5094
  break;
5095
5095
  }
5096
- return s(D);
5096
+ return s(O);
5097
5097
  }
5098
- return R.toString = function() {
5098
+ return D.toString = function() {
5099
5099
  return d + "";
5100
- }, R;
5100
+ }, D;
5101
5101
  }
5102
5102
  function u(d, m) {
5103
5103
  var f = c((d = formatSpecifier(d), d.type = "f", d)), p = Math.max(-8, Math.min(8, Math.floor(exponent(m) / 3))) * 3, g = Math.pow(10, -p), _ = prefixes[8 + p / 3];
@@ -5393,14 +5393,14 @@ function intersect(e, n, t, a, r, s, o, i) {
5393
5393
  return m = (u * (n - s) - d * (e - r)) / m, [e + m * l, n + m * c];
5394
5394
  }
5395
5395
  function cornerTangents(e, n, t, a, r, s, o) {
5396
- var i = e - t, l = n - a, c = (o ? s : -s) / sqrt(i * i + l * l), u = c * l, d = -c * i, m = e + u, f = n + d, p = t + u, g = a + d, _ = (m + p) / 2, v = (f + g) / 2, b = p - m, k = g - f, C = b * b + k * k, S = r - s, V = m * g - p * f, E = (k < 0 ? -1 : 1) * sqrt(max(0, S * S * C - V * V)), N = (V * k - b * E) / C, O = (-V * b - k * E) / C, R = (V * k + b * E) / C, D = (-V * b + k * E) / C, z = N - _, P = O - v, j = R - _, Z = D - v;
5397
- return z * z + P * P > j * j + Z * Z && (N = R, O = D), {
5396
+ var i = e - t, l = n - a, c = (o ? s : -s) / sqrt(i * i + l * l), u = c * l, d = -c * i, m = e + u, f = n + d, p = t + u, g = a + d, _ = (m + p) / 2, v = (f + g) / 2, b = p - m, k = g - f, C = b * b + k * k, S = r - s, V = m * g - p * f, E = (k < 0 ? -1 : 1) * sqrt(max(0, S * S * C - V * V)), N = (V * k - b * E) / C, A = (-V * b - k * E) / C, D = (V * k + b * E) / C, O = (-V * b + k * E) / C, z = N - _, P = A - v, j = D - _, Z = O - v;
5397
+ return z * z + P * P > j * j + Z * Z && (N = D, A = O), {
5398
5398
  cx: N,
5399
- cy: O,
5399
+ cy: A,
5400
5400
  x01: -u,
5401
5401
  y01: -d,
5402
5402
  x11: N * (r / S - 1),
5403
- y11: O * (r / S - 1)
5403
+ y11: A * (r / S - 1)
5404
5404
  };
5405
5405
  }
5406
5406
  function arc() {
@@ -5411,22 +5411,22 @@ function arc() {
5411
5411
  else if (_ > tau$1 - epsilon$2)
5412
5412
  i.moveTo(f * cos(p), f * sin(p)), i.arc(0, 0, f, p, g, !v), m > epsilon$2 && (i.moveTo(m * cos(g), m * sin(g)), i.arc(0, 0, m, g, p, v));
5413
5413
  else {
5414
- var b = p, k = g, C = p, S = g, V = _, E = _, N = o.apply(this, arguments) / 2, O = N > epsilon$2 && (a ? +a.apply(this, arguments) : sqrt(m * m + f * f)), R = min(abs(f - m) / 2, +t.apply(this, arguments)), D = R, z = R, P, j;
5415
- if (O > epsilon$2) {
5416
- var Z = asin(O / m * sin(N)), Q = asin(O / f * sin(N));
5414
+ var b = p, k = g, C = p, S = g, V = _, E = _, N = o.apply(this, arguments) / 2, A = N > epsilon$2 && (a ? +a.apply(this, arguments) : sqrt(m * m + f * f)), D = min(abs(f - m) / 2, +t.apply(this, arguments)), O = D, z = D, P, j;
5415
+ if (A > epsilon$2) {
5416
+ var Z = asin(A / m * sin(N)), Q = asin(A / f * sin(N));
5417
5417
  (V -= Z * 2) > epsilon$2 ? (Z *= v ? 1 : -1, C += Z, S -= Z) : (V = 0, C = S = (p + g) / 2), (E -= Q * 2) > epsilon$2 ? (Q *= v ? 1 : -1, b += Q, k -= Q) : (E = 0, b = k = (p + g) / 2);
5418
5418
  }
5419
5419
  var Y = f * cos(b), w = f * sin(b), L = m * cos(S), M = m * sin(S);
5420
- if (R > epsilon$2) {
5420
+ if (D > epsilon$2) {
5421
5421
  var q = f * cos(k), J = f * sin(k), $ = m * cos(C), B = m * sin(C), T;
5422
5422
  if (_ < pi$1)
5423
5423
  if (T = intersect(Y, w, $, B, q, J, L, M)) {
5424
- var F = Y - T[0], A = w - T[1], H = q - T[0], W = J - T[1], U = 1 / sin(acos((F * H + A * W) / (sqrt(F * F + A * A) * sqrt(H * H + W * W))) / 2), G = sqrt(T[0] * T[0] + T[1] * T[1]);
5425
- D = min(R, (m - G) / (U - 1)), z = min(R, (f - G) / (U + 1));
5424
+ var F = Y - T[0], R = w - T[1], H = q - T[0], W = J - T[1], U = 1 / sin(acos((F * H + R * W) / (sqrt(F * F + R * R) * sqrt(H * H + W * W))) / 2), G = sqrt(T[0] * T[0] + T[1] * T[1]);
5425
+ O = min(D, (m - G) / (U - 1)), z = min(D, (f - G) / (U + 1));
5426
5426
  } else
5427
- D = z = 0;
5427
+ O = z = 0;
5428
5428
  }
5429
- E > epsilon$2 ? z > epsilon$2 ? (P = cornerTangents($, B, Y, w, f, z, v), j = cornerTangents(q, J, L, M, f, z, v), i.moveTo(P.cx + P.x01, P.cy + P.y01), z < R ? i.arc(P.cx, P.cy, z, atan2(P.y01, P.x01), atan2(j.y01, j.x01), !v) : (i.arc(P.cx, P.cy, z, atan2(P.y01, P.x01), atan2(P.y11, P.x11), !v), i.arc(0, 0, f, atan2(P.cy + P.y11, P.cx + P.x11), atan2(j.cy + j.y11, j.cx + j.x11), !v), i.arc(j.cx, j.cy, z, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !v))) : (i.moveTo(Y, w), i.arc(0, 0, f, b, k, !v)) : i.moveTo(Y, w), !(m > epsilon$2) || !(V > epsilon$2) ? i.lineTo(L, M) : D > epsilon$2 ? (P = cornerTangents(L, M, q, J, m, -D, v), j = cornerTangents(Y, w, $, B, m, -D, v), i.lineTo(P.cx + P.x01, P.cy + P.y01), D < R ? i.arc(P.cx, P.cy, D, atan2(P.y01, P.x01), atan2(j.y01, j.x01), !v) : (i.arc(P.cx, P.cy, D, atan2(P.y01, P.x01), atan2(P.y11, P.x11), !v), i.arc(0, 0, m, atan2(P.cy + P.y11, P.cx + P.x11), atan2(j.cy + j.y11, j.cx + j.x11), v), i.arc(j.cx, j.cy, D, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !v))) : i.arc(0, 0, m, S, C, v);
5429
+ E > epsilon$2 ? z > epsilon$2 ? (P = cornerTangents($, B, Y, w, f, z, v), j = cornerTangents(q, J, L, M, f, z, v), i.moveTo(P.cx + P.x01, P.cy + P.y01), z < D ? i.arc(P.cx, P.cy, z, atan2(P.y01, P.x01), atan2(j.y01, j.x01), !v) : (i.arc(P.cx, P.cy, z, atan2(P.y01, P.x01), atan2(P.y11, P.x11), !v), i.arc(0, 0, f, atan2(P.cy + P.y11, P.cx + P.x11), atan2(j.cy + j.y11, j.cx + j.x11), !v), i.arc(j.cx, j.cy, z, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !v))) : (i.moveTo(Y, w), i.arc(0, 0, f, b, k, !v)) : i.moveTo(Y, w), !(m > epsilon$2) || !(V > epsilon$2) ? i.lineTo(L, M) : O > epsilon$2 ? (P = cornerTangents(L, M, q, J, m, -O, v), j = cornerTangents(Y, w, $, B, m, -O, v), i.lineTo(P.cx + P.x01, P.cy + P.y01), O < D ? i.arc(P.cx, P.cy, O, atan2(P.y01, P.x01), atan2(j.y01, j.x01), !v) : (i.arc(P.cx, P.cy, O, atan2(P.y01, P.x01), atan2(P.y11, P.x11), !v), i.arc(0, 0, m, atan2(P.cy + P.y11, P.cx + P.x11), atan2(j.cy + j.y11, j.cx + j.x11), v), i.arc(j.cx, j.cy, O, atan2(j.y11, j.x11), atan2(j.y01, j.x01), !v))) : i.arc(0, 0, m, S, C, v);
5430
5430
  }
5431
5431
  if (i.closePath(), u) return i = null, u + "" || null;
5432
5432
  }
@@ -6493,15 +6493,15 @@ function entering() {
6493
6493
  function axis(e, n) {
6494
6494
  var t = [], a = null, r = null, s = 6, o = 6, i = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === top || e === left ? -1 : 1, u = e === left || e === right ? "x" : "y", d = e === top || e === bottom ? translateX : translateY;
6495
6495
  function m(f) {
6496
- var p = a ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = r ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), _ = Math.max(s, 0) + i, v = n.range(), b = +v[0] + l, k = +v[v.length - 1] + l, C = (n.bandwidth ? center : number)(n.copy(), l), S = f.selection ? f.selection() : f, V = S.selectAll(".domain").data([null]), E = S.selectAll(".tick").data(p, n).order(), N = E.exit(), O = E.enter().append("g").attr("class", "tick"), R = E.select("line"), D = E.select("text");
6497
- V = V.merge(V.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), E = E.merge(O), R = R.merge(O.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), D = D.merge(O.append("text").attr("fill", "currentColor").attr(u, c * _).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), f !== S && (V = V.transition(f), E = E.transition(f), R = R.transition(f), D = D.transition(f), N = N.transition(f).attr("opacity", epsilon).attr("transform", function(z) {
6496
+ var p = a ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = r ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), _ = Math.max(s, 0) + i, v = n.range(), b = +v[0] + l, k = +v[v.length - 1] + l, C = (n.bandwidth ? center : number)(n.copy(), l), S = f.selection ? f.selection() : f, V = S.selectAll(".domain").data([null]), E = S.selectAll(".tick").data(p, n).order(), N = E.exit(), A = E.enter().append("g").attr("class", "tick"), D = E.select("line"), O = E.select("text");
6497
+ V = V.merge(V.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), E = E.merge(A), D = D.merge(A.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), O = O.merge(A.append("text").attr("fill", "currentColor").attr(u, c * _).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), f !== S && (V = V.transition(f), E = E.transition(f), D = D.transition(f), O = O.transition(f), N = N.transition(f).attr("opacity", epsilon).attr("transform", function(z) {
6498
6498
  return isFinite(z = C(z)) ? d(z + l) : this.getAttribute("transform");
6499
- }), O.attr("opacity", epsilon).attr("transform", function(z) {
6499
+ }), A.attr("opacity", epsilon).attr("transform", function(z) {
6500
6500
  var P = this.parentNode.__axis;
6501
6501
  return d((P && isFinite(P = P(z)) ? P : C(z)) + l);
6502
6502
  })), N.remove(), V.attr("d", e === left || e === right ? o ? "M" + c * o + "," + b + "H" + l + "V" + k + "H" + c * o : "M" + l + "," + b + "V" + k : o ? "M" + b + "," + c * o + "V" + l + "H" + k + "V" + c * o : "M" + b + "," + l + "H" + k), E.attr("opacity", 1).attr("transform", function(z) {
6503
6503
  return d(C(z) + l);
6504
- }), R.attr(u + "2", c * s), D.attr(u, c * _).text(g), S.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), S.each(function() {
6504
+ }), D.attr(u + "2", c * s), O.attr(u, c * _).text(g), S.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), S.each(function() {
6505
6505
  this.__axis = C;
6506
6506
  });
6507
6507
  }
@@ -8858,9 +8858,9 @@ function setValidations(e) {
8858
8858
  $dirty: V,
8859
8859
  $errors: E,
8860
8860
  $invalid: N,
8861
- $anyDirty: O,
8862
- $error: R,
8863
- $pending: D,
8861
+ $anyDirty: A,
8862
+ $error: D,
8863
+ $pending: O,
8864
8864
  $touch: z,
8865
8865
  $reset: P,
8866
8866
  $silentErrors: j,
@@ -8882,8 +8882,8 @@ function setValidations(e) {
8882
8882
  });
8883
8883
  async function Y() {
8884
8884
  return z(), g.$rewardEarly && (Z(), await nextTick()), await nextTick(), new Promise((M) => {
8885
- if (!D.value) return M(!N.value);
8886
- const q = watch(D, () => {
8885
+ if (!O.value) return M(!N.value);
8886
+ const q = watch(O, () => {
8887
8887
  M(!N.value), q();
8888
8888
  });
8889
8889
  });
@@ -8899,11 +8899,11 @@ function setValidations(e) {
8899
8899
  return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, k), {}, {
8900
8900
  $model: Q,
8901
8901
  $dirty: V,
8902
- $error: R,
8902
+ $error: D,
8903
8903
  $errors: E,
8904
8904
  $invalid: N,
8905
- $anyDirty: O,
8906
- $pending: D,
8905
+ $anyDirty: A,
8906
+ $pending: O,
8907
8907
  $touch: z,
8908
8908
  $reset: P,
8909
8909
  $path: u || ROOT_PATH,
@@ -13187,7 +13187,7 @@ function requireUtil$1() {
13187
13187
  }), L;
13188
13188
  }
13189
13189
  function c(w, L, M) {
13190
- if (w.customInspect && L && D(L.inspect) && // Filter out the util module, it's inspect function is special
13190
+ if (w.customInspect && L && O(L.inspect) && // Filter out the util module, it's inspect function is special
13191
13191
  L.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
13192
13192
  !(L.constructor && L.constructor.prototype === L)) {
13193
13193
  var q = L.inspect(M, w);
@@ -13197,33 +13197,33 @@ function requireUtil$1() {
13197
13197
  if (J)
13198
13198
  return J;
13199
13199
  var $ = Object.keys(L), B = l($);
13200
- if (w.showHidden && ($ = Object.getOwnPropertyNames(L)), R(L) && ($.indexOf("message") >= 0 || $.indexOf("description") >= 0))
13200
+ if (w.showHidden && ($ = Object.getOwnPropertyNames(L)), D(L) && ($.indexOf("message") >= 0 || $.indexOf("description") >= 0))
13201
13201
  return d(L);
13202
13202
  if ($.length === 0) {
13203
- if (D(L)) {
13203
+ if (O(L)) {
13204
13204
  var T = L.name ? ": " + L.name : "";
13205
13205
  return w.stylize("[Function" + T + "]", "special");
13206
13206
  }
13207
13207
  if (E(L))
13208
13208
  return w.stylize(RegExp.prototype.toString.call(L), "regexp");
13209
- if (O(L))
13209
+ if (A(L))
13210
13210
  return w.stylize(Date.prototype.toString.call(L), "date");
13211
- if (R(L))
13211
+ if (D(L))
13212
13212
  return d(L);
13213
13213
  }
13214
- var F = "", A = !1, H = ["{", "}"];
13215
- if (g(L) && (A = !0, H = ["[", "]"]), D(L)) {
13214
+ var F = "", R = !1, H = ["{", "}"];
13215
+ if (g(L) && (R = !0, H = ["[", "]"]), O(L)) {
13216
13216
  var W = L.name ? ": " + L.name : "";
13217
13217
  F = " [Function" + W + "]";
13218
13218
  }
13219
- if (E(L) && (F = " " + RegExp.prototype.toString.call(L)), O(L) && (F = " " + Date.prototype.toUTCString.call(L)), R(L) && (F = " " + d(L)), $.length === 0 && (!A || L.length == 0))
13219
+ if (E(L) && (F = " " + RegExp.prototype.toString.call(L)), A(L) && (F = " " + Date.prototype.toUTCString.call(L)), D(L) && (F = " " + d(L)), $.length === 0 && (!R || L.length == 0))
13220
13220
  return H[0] + F + H[1];
13221
13221
  if (M < 0)
13222
13222
  return E(L) ? w.stylize(RegExp.prototype.toString.call(L), "regexp") : w.stylize("[Object]", "special");
13223
13223
  w.seen.push(L);
13224
13224
  var U;
13225
- return A ? U = m(w, L, M, B, $) : U = $.map(function(G) {
13226
- return f(w, L, M, B, G, A);
13225
+ return R ? U = m(w, L, M, B, $) : U = $.map(function(G) {
13226
+ return f(w, L, M, B, G, R);
13227
13227
  }), w.seen.pop(), p(U, F, H);
13228
13228
  }
13229
13229
  function u(w, L) {
@@ -13268,13 +13268,13 @@ function requireUtil$1() {
13268
13268
  var B, T, F;
13269
13269
  if (F = Object.getOwnPropertyDescriptor(L, J) || { value: L[J] }, F.get ? F.set ? T = w.stylize("[Getter/Setter]", "special") : T = w.stylize("[Getter]", "special") : F.set && (T = w.stylize("[Setter]", "special")), Y(q, J) || (B = "[" + J + "]"), T || (w.seen.indexOf(F.value) < 0 ? (v(M) ? T = c(w, F.value, null) : T = c(w, F.value, M - 1), T.indexOf(`
13270
13270
  `) > -1 && ($ ? T = T.split(`
13271
- `).map(function(A) {
13272
- return " " + A;
13271
+ `).map(function(R) {
13272
+ return " " + R;
13273
13273
  }).join(`
13274
13274
  `).substr(2) : T = `
13275
13275
  ` + T.split(`
13276
- `).map(function(A) {
13277
- return " " + A;
13276
+ `).map(function(R) {
13277
+ return " " + R;
13278
13278
  }).join(`
13279
13279
  `))) : T = w.stylize("[Circular]", "special")), V(B)) {
13280
13280
  if ($ && J.match(/^\d+$/))
@@ -13332,18 +13332,18 @@ function requireUtil$1() {
13332
13332
  return typeof w == "object" && w !== null;
13333
13333
  }
13334
13334
  e.isObject = N;
13335
- function O(w) {
13335
+ function A(w) {
13336
13336
  return N(w) && P(w) === "[object Date]";
13337
13337
  }
13338
- e.isDate = O;
13339
- function R(w) {
13338
+ e.isDate = A;
13339
+ function D(w) {
13340
13340
  return N(w) && (P(w) === "[object Error]" || w instanceof Error);
13341
13341
  }
13342
- e.isError = R;
13343
- function D(w) {
13342
+ e.isError = D;
13343
+ function O(w) {
13344
13344
  return typeof w == "function";
13345
13345
  }
13346
- e.isFunction = D;
13346
+ e.isFunction = O;
13347
13347
  function z(w) {
13348
13348
  return w === null || typeof w == "boolean" || typeof w == "number" || typeof w == "string" || typeof w == "symbol" || // ES6 symbol
13349
13349
  typeof w > "u";
@@ -14213,7 +14213,7 @@ function requireAsync() {
14213
14213
  });
14214
14214
  }
14215
14215
  S = s(v, S);
14216
- var E = S.isFile || u, N = S.isDirectory || d, O = S.readFile || e.readFile, R = S.realpath || m, D = S.readPackage || p;
14216
+ var E = S.isFile || u, N = S.isDirectory || d, A = S.readFile || e.readFile, D = S.realpath || m, O = S.readPackage || p;
14217
14217
  if (S.readFile && S.readPackage) {
14218
14218
  var z = new TypeError("`readFile` and `readPackage` are mutually exclusive.");
14219
14219
  return process.nextTick(function() {
@@ -14224,25 +14224,25 @@ function requireAsync() {
14224
14224
  S.paths = S.paths || c();
14225
14225
  var w = t.resolve(Q);
14226
14226
  f(
14227
- R,
14227
+ D,
14228
14228
  w,
14229
14229
  S,
14230
- function(A, H) {
14231
- A ? C(A) : M(H);
14230
+ function(R, H) {
14231
+ R ? C(R) : M(H);
14232
14232
  }
14233
14233
  );
14234
14234
  var L;
14235
- function M(A) {
14235
+ function M(R) {
14236
14236
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(v))
14237
- L = t.resolve(A, v), (v === "." || v === ".." || v.slice(-1) === "/") && (L += "/"), /\/$/.test(v) && L === A ? B(L, S.package, q) : J(L, S.package, q);
14237
+ L = t.resolve(R, v), (v === "." || v === ".." || v.slice(-1) === "/") && (L += "/"), /\/$/.test(v) && L === R ? B(L, S.package, q) : J(L, S.package, q);
14238
14238
  else {
14239
14239
  if (Z && o(v))
14240
14240
  return C(null, v);
14241
- F(v, A, function(H, W, U) {
14241
+ F(v, R, function(H, W, U) {
14242
14242
  if (H) C(H);
14243
14243
  else {
14244
14244
  if (W)
14245
- return f(R, W, S, function(ee, X) {
14245
+ return f(D, W, S, function(ee, X) {
14246
14246
  ee ? C(ee) : C(null, X, U);
14247
14247
  });
14248
14248
  var G = new Error("Cannot find module '" + v + "' from '" + Y + "'");
@@ -14251,11 +14251,11 @@ function requireAsync() {
14251
14251
  });
14252
14252
  }
14253
14253
  }
14254
- function q(A, H, W) {
14255
- A ? C(A) : H ? C(null, H, W) : B(L, function(U, G, ee) {
14254
+ function q(R, H, W) {
14255
+ R ? C(R) : H ? C(null, H, W) : B(L, function(U, G, ee) {
14256
14256
  if (U) C(U);
14257
14257
  else if (G)
14258
- f(R, G, S, function(te, ne) {
14258
+ f(D, G, S, function(te, ne) {
14259
14259
  te ? C(te) : C(null, ne, ee);
14260
14260
  });
14261
14261
  else {
@@ -14264,11 +14264,11 @@ function requireAsync() {
14264
14264
  }
14265
14265
  });
14266
14266
  }
14267
- function J(A, H, W) {
14267
+ function J(R, H, W) {
14268
14268
  var U = H, G = W;
14269
14269
  typeof U == "function" && (G = U, U = void 0);
14270
14270
  var ee = [""].concat(j);
14271
- X(ee, A, U);
14271
+ X(ee, R, U);
14272
14272
  function X(te, ne, ae) {
14273
14273
  if (te.length === 0) return G(null, void 0, ae);
14274
14274
  var oe = ne + te[0], se = ae;
@@ -14292,30 +14292,30 @@ function requireAsync() {
14292
14292
  }
14293
14293
  }
14294
14294
  }
14295
- function $(A, H) {
14296
- if (A === "" || A === "/" || /[/\\]node_modules[/\\]*$/.test(A)) return H(null);
14297
- f(R, A, S, function(W, U) {
14298
- if (W) return $(t.dirname(A), H);
14295
+ function $(R, H) {
14296
+ if (R === "" || R === "/" || /[/\\]node_modules[/\\]*$/.test(R)) return H(null);
14297
+ f(D, R, S, function(W, U) {
14298
+ if (W) return $(t.dirname(R), H);
14299
14299
  var G = t.join(U, "package.json");
14300
14300
  E(G, function(ee, X) {
14301
- if (!X) return $(t.dirname(A), H);
14302
- D(O, G, function(te, ne) {
14301
+ if (!X) return $(t.dirname(R), H);
14302
+ O(A, G, function(te, ne) {
14303
14303
  te && H(te);
14304
14304
  var ae = ne;
14305
- ae && S.packageFilter && (ae = S.packageFilter(ae, G)), H(null, ae, A);
14305
+ ae && S.packageFilter && (ae = S.packageFilter(ae, G)), H(null, ae, R);
14306
14306
  });
14307
14307
  });
14308
14308
  });
14309
14309
  }
14310
- function B(A, H, W) {
14310
+ function B(R, H, W) {
14311
14311
  var U = W, G = H;
14312
- typeof G == "function" && (U = G, G = S.package), f(R, A, S, function(ee, X) {
14312
+ typeof G == "function" && (U = G, G = S.package), f(D, R, S, function(ee, X) {
14313
14313
  if (ee) return U(ee);
14314
14314
  var te = t.join(X, "package.json");
14315
14315
  E(te, function(ne, ae) {
14316
14316
  if (ne) return U(ne);
14317
- if (!ae) return J(t.join(A, "index"), G, U);
14318
- D(O, te, function(oe, se) {
14317
+ if (!ae) return J(t.join(R, "index"), G, U);
14318
+ O(A, te, function(oe, se) {
14319
14319
  if (oe) return U(oe);
14320
14320
  var I = se;
14321
14321
  if (I && S.packageFilter && (I = S.packageFilter(I, te)), I && I.main) {
@@ -14323,51 +14323,51 @@ function requireAsync() {
14323
14323
  var ce = new TypeError("package “" + I.name + "” `main` must be a string");
14324
14324
  return ce.code = "INVALID_PACKAGE_MAIN", U(ce);
14325
14325
  }
14326
- (I.main === "." || I.main === "./") && (I.main = "index"), J(t.resolve(A, I.main), I, function(ie, ue, le) {
14326
+ (I.main === "." || I.main === "./") && (I.main = "index"), J(t.resolve(R, I.main), I, function(ie, ue, le) {
14327
14327
  if (ie) return U(ie);
14328
14328
  if (ue) return U(null, ue, le);
14329
- if (!le) return J(t.join(A, "index"), le, U);
14330
- var fe = t.resolve(A, le.main);
14329
+ if (!le) return J(t.join(R, "index"), le, U);
14330
+ var fe = t.resolve(R, le.main);
14331
14331
  B(fe, le, function(he, de, me) {
14332
14332
  if (he) return U(he);
14333
14333
  if (de) return U(null, de, me);
14334
- J(t.join(A, "index"), me, U);
14334
+ J(t.join(R, "index"), me, U);
14335
14335
  });
14336
14336
  });
14337
14337
  return;
14338
14338
  }
14339
- J(t.join(A, "/index"), I, U);
14339
+ J(t.join(R, "/index"), I, U);
14340
14340
  });
14341
14341
  });
14342
14342
  });
14343
14343
  }
14344
- function T(A, H) {
14345
- if (H.length === 0) return A(null, void 0);
14344
+ function T(R, H) {
14345
+ if (H.length === 0) return R(null, void 0);
14346
14346
  var W = H[0];
14347
14347
  N(t.dirname(W), U);
14348
14348
  function U(X, te) {
14349
- if (X) return A(X);
14350
- if (!te) return T(A, H.slice(1));
14349
+ if (X) return R(X);
14350
+ if (!te) return T(R, H.slice(1));
14351
14351
  J(W, S.package, G);
14352
14352
  }
14353
14353
  function G(X, te, ne) {
14354
- if (X) return A(X);
14355
- if (te) return A(null, te, ne);
14354
+ if (X) return R(X);
14355
+ if (te) return R(null, te, ne);
14356
14356
  B(W, S.package, ee);
14357
14357
  }
14358
14358
  function ee(X, te, ne) {
14359
- if (X) return A(X);
14360
- if (te) return A(null, te, ne);
14361
- T(A, H.slice(1));
14359
+ if (X) return R(X);
14360
+ if (te) return R(null, te, ne);
14361
+ T(R, H.slice(1));
14362
14362
  }
14363
14363
  }
14364
- function F(A, H, W) {
14364
+ function F(R, H, W) {
14365
14365
  var U = function() {
14366
- return g(A, H, S);
14366
+ return g(R, H, S);
14367
14367
  };
14368
14368
  T(
14369
14369
  W,
14370
- P ? P(A, H, U, S) : U()
14370
+ P ? P(R, H, U, S) : U()
14371
14371
  );
14372
14372
  }
14373
14373
  }, async;
@@ -14821,7 +14821,7 @@ function requireSync() {
14821
14821
  var k = o(v, b), C = k.isFile || u, S = k.readFileSync || n.readFileSync, V = k.isDirectory || d, E = k.realpathSync || m, N = k.readPackageSync || p;
14822
14822
  if (k.readFileSync && k.readPackageSync)
14823
14823
  throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
14824
- var O = k.packageIterator, R = k.extensions || [".js"], D = k.includeCoreModules !== !1, z = k.basedir || t.dirname(r()), P = k.filename || z;
14824
+ var A = k.packageIterator, D = k.extensions || [".js"], O = k.includeCoreModules !== !1, z = k.basedir || t.dirname(r()), P = k.filename || z;
14825
14825
  k.paths = k.paths || c();
14826
14826
  var j = f(E, t.resolve(z), k);
14827
14827
  if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(v)) {
@@ -14830,7 +14830,7 @@ function requireSync() {
14830
14830
  var Q = L(Z) || q(Z);
14831
14831
  if (Q) return f(E, Q, k);
14832
14832
  } else {
14833
- if (D && e(v))
14833
+ if (O && e(v))
14834
14834
  return v;
14835
14835
  var Y = J(v, j);
14836
14836
  if (Y) return f(E, Y, k);
@@ -14845,8 +14845,8 @@ function requireSync() {
14845
14845
  }
14846
14846
  if (C($))
14847
14847
  return $;
14848
- for (var A = 0; A < R.length; A++) {
14849
- var H = $ + R[A];
14848
+ for (var R = 0; R < D.length; R++) {
14849
+ var H = $ + D[R];
14850
14850
  if (C(H))
14851
14851
  return H;
14852
14852
  }
@@ -14882,8 +14882,8 @@ function requireSync() {
14882
14882
  }
14883
14883
  (T.main === "." || T.main === "./") && (T.main = "index");
14884
14884
  try {
14885
- var A = L(t.resolve($, T.main));
14886
- if (A) return A;
14885
+ var R = L(t.resolve($, T.main));
14886
+ if (R) return R;
14887
14887
  var H = q(t.resolve($, T.main));
14888
14888
  if (H) return H;
14889
14889
  } catch {
@@ -14895,8 +14895,8 @@ function requireSync() {
14895
14895
  function J($, B) {
14896
14896
  for (var T = function() {
14897
14897
  return g($, B, k);
14898
- }, F = O ? O($, B, T, k) : T(), A = 0; A < F.length; A++) {
14899
- var H = F[A];
14898
+ }, F = A ? A($, B, T, k) : T(), R = 0; R < F.length; R++) {
14899
+ var H = F[R];
14900
14900
  if (V(t.dirname(H))) {
14901
14901
  var W = L(H);
14902
14902
  if (W) return W;
@@ -15079,18 +15079,18 @@ function requireTypes() {
15079
15079
  return a(I) === "Float32Array";
15080
15080
  }
15081
15081
  e.isFloat32Array = N;
15082
- function O(I) {
15082
+ function A(I) {
15083
15083
  return a(I) === "Float64Array";
15084
15084
  }
15085
- e.isFloat64Array = O;
15086
- function R(I) {
15085
+ e.isFloat64Array = A;
15086
+ function D(I) {
15087
15087
  return a(I) === "BigInt64Array";
15088
15088
  }
15089
- e.isBigInt64Array = R;
15090
- function D(I) {
15089
+ e.isBigInt64Array = D;
15090
+ function O(I) {
15091
15091
  return a(I) === "BigUint64Array";
15092
15092
  }
15093
- e.isBigUint64Array = D;
15093
+ e.isBigUint64Array = O;
15094
15094
  function z(I) {
15095
15095
  return l(I) === "[object Map]";
15096
15096
  }
@@ -15147,10 +15147,10 @@ function requireTypes() {
15147
15147
  return typeof B > "u" ? !1 : (typeof T.working > "u" && (T.working = T(new B())), T.working ? T(I) : I instanceof B);
15148
15148
  }
15149
15149
  e.isSharedArrayBuffer = F;
15150
- function A(I) {
15150
+ function R(I) {
15151
15151
  return l(I) === "[object AsyncFunction]";
15152
15152
  }
15153
- e.isAsyncFunction = A;
15153
+ e.isAsyncFunction = R;
15154
15154
  function H(I) {
15155
15155
  return l(I) === "[object Map Iterator]";
15156
15156
  }
@@ -15234,8 +15234,8 @@ var hasRequiredUtil;
15234
15234
  function requireUtil() {
15235
15235
  return hasRequiredUtil || (hasRequiredUtil = 1, function(e) {
15236
15236
  var n = {}, t = Object.getOwnPropertyDescriptors || function(B) {
15237
- for (var T = Object.keys(B), F = {}, A = 0; A < T.length; A++)
15238
- F[T[A]] = Object.getOwnPropertyDescriptor(B, T[A]);
15237
+ for (var T = Object.keys(B), F = {}, R = 0; R < T.length; R++)
15238
+ F[T[R]] = Object.getOwnPropertyDescriptor(B, T[R]);
15239
15239
  return F;
15240
15240
  }, a = /%[sdj%]/g;
15241
15241
  e.format = function($) {
@@ -15244,9 +15244,9 @@ function requireUtil() {
15244
15244
  B.push(i(arguments[T]));
15245
15245
  return B.join(" ");
15246
15246
  }
15247
- for (var T = 1, F = arguments, A = F.length, H = String($).replace(a, function(U) {
15247
+ for (var T = 1, F = arguments, R = F.length, H = String($).replace(a, function(U) {
15248
15248
  if (U === "%%") return "%";
15249
- if (T >= A) return U;
15249
+ if (T >= R) return U;
15250
15250
  switch (U) {
15251
15251
  case "%s":
15252
15252
  return String(F[T++]);
@@ -15261,8 +15261,8 @@ function requireUtil() {
15261
15261
  default:
15262
15262
  return U;
15263
15263
  }
15264
- }), W = F[T]; T < A; W = F[++T])
15265
- k(W) || !R(W) ? H += " " + W : H += " " + i(W);
15264
+ }), W = F[T]; T < R; W = F[++T])
15265
+ k(W) || !D(W) ? H += " " + W : H += " " + i(W);
15266
15266
  return H;
15267
15267
  }, e.deprecate = function($, B) {
15268
15268
  if (typeof process < "u" && process.noDeprecation === !0)
@@ -15352,9 +15352,9 @@ function requireUtil() {
15352
15352
  var F = B.inspect(T, $);
15353
15353
  return V(F) || (F = d($, F, T)), F;
15354
15354
  }
15355
- var A = m($, B);
15356
- if (A)
15357
- return A;
15355
+ var R = m($, B);
15356
+ if (R)
15357
+ return R;
15358
15358
  var H = Object.keys(B), W = u(H);
15359
15359
  if ($.showHidden && (H = Object.getOwnPropertyNames(B)), z(B) && (H.indexOf("message") >= 0 || H.indexOf("description") >= 0))
15360
15360
  return f(B);
@@ -15363,9 +15363,9 @@ function requireUtil() {
15363
15363
  var U = B.name ? ": " + B.name : "";
15364
15364
  return $.stylize("[Function" + U + "]", "special");
15365
15365
  }
15366
- if (O(B))
15366
+ if (A(B))
15367
15367
  return $.stylize(RegExp.prototype.toString.call(B), "regexp");
15368
- if (D(B))
15368
+ if (O(B))
15369
15369
  return $.stylize(Date.prototype.toString.call(B), "date");
15370
15370
  if (z(B))
15371
15371
  return f(B);
@@ -15375,10 +15375,10 @@ function requireUtil() {
15375
15375
  var te = B.name ? ": " + B.name : "";
15376
15376
  G = " [Function" + te + "]";
15377
15377
  }
15378
- if (O(B) && (G = " " + RegExp.prototype.toString.call(B)), D(B) && (G = " " + Date.prototype.toUTCString.call(B)), z(B) && (G = " " + f(B)), H.length === 0 && (!ee || B.length == 0))
15378
+ if (A(B) && (G = " " + RegExp.prototype.toString.call(B)), O(B) && (G = " " + Date.prototype.toUTCString.call(B)), z(B) && (G = " " + f(B)), H.length === 0 && (!ee || B.length == 0))
15379
15379
  return X[0] + G + X[1];
15380
15380
  if (T < 0)
15381
- return O(B) ? $.stylize(RegExp.prototype.toString.call(B), "regexp") : $.stylize("[Object]", "special");
15381
+ return A(B) ? $.stylize(RegExp.prototype.toString.call(B), "regexp") : $.stylize("[Object]", "special");
15382
15382
  $.seen.push(B);
15383
15383
  var ne;
15384
15384
  return ee ? ne = p($, B, T, W, H) : ne = H.map(function(ae) {
@@ -15402,7 +15402,7 @@ function requireUtil() {
15402
15402
  function f($) {
15403
15403
  return "[" + Error.prototype.toString.call($) + "]";
15404
15404
  }
15405
- function p($, B, T, F, A) {
15405
+ function p($, B, T, F, R) {
15406
15406
  for (var H = [], W = 0, U = B.length; W < U; ++W)
15407
15407
  L(B, String(W)) ? H.push(g(
15408
15408
  $,
@@ -15412,7 +15412,7 @@ function requireUtil() {
15412
15412
  String(W),
15413
15413
  !0
15414
15414
  )) : H.push("");
15415
- return A.forEach(function(G) {
15415
+ return R.forEach(function(G) {
15416
15416
  G.match(/^\d+$/) || H.push(g(
15417
15417
  $,
15418
15418
  B,
@@ -15423,9 +15423,9 @@ function requireUtil() {
15423
15423
  ));
15424
15424
  }), H;
15425
15425
  }
15426
- function g($, B, T, F, A, H) {
15426
+ function g($, B, T, F, R, H) {
15427
15427
  var W, U, G;
15428
- if (G = Object.getOwnPropertyDescriptor(B, A) || { value: B[A] }, G.get ? G.set ? U = $.stylize("[Getter/Setter]", "special") : U = $.stylize("[Getter]", "special") : G.set && (U = $.stylize("[Setter]", "special")), L(F, A) || (W = "[" + A + "]"), U || ($.seen.indexOf(G.value) < 0 ? (k(T) ? U = d($, G.value, null) : U = d($, G.value, T - 1), U.indexOf(`
15428
+ if (G = Object.getOwnPropertyDescriptor(B, R) || { value: B[R] }, G.get ? G.set ? U = $.stylize("[Getter/Setter]", "special") : U = $.stylize("[Getter]", "special") : G.set && (U = $.stylize("[Setter]", "special")), L(F, R) || (W = "[" + R + "]"), U || ($.seen.indexOf(G.value) < 0 ? (k(T) ? U = d($, G.value, null) : U = d($, G.value, T - 1), U.indexOf(`
15429
15429
  `) > -1 && (H ? U = U.split(`
15430
15430
  `).map(function(ee) {
15431
15431
  return " " + ee;
@@ -15436,16 +15436,16 @@ function requireUtil() {
15436
15436
  return " " + ee;
15437
15437
  }).join(`
15438
15438
  `))) : U = $.stylize("[Circular]", "special")), N(W)) {
15439
- if (H && A.match(/^\d+$/))
15439
+ if (H && R.match(/^\d+$/))
15440
15440
  return U;
15441
- W = JSON.stringify("" + A), W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (W = W.slice(1, -1), W = $.stylize(W, "name")) : (W = W.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), W = $.stylize(W, "string"));
15441
+ W = JSON.stringify("" + R), W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (W = W.slice(1, -1), W = $.stylize(W, "name")) : (W = W.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), W = $.stylize(W, "string"));
15442
15442
  }
15443
15443
  return W + ": " + U;
15444
15444
  }
15445
15445
  function _($, B, T) {
15446
- var F = $.reduce(function(A, H) {
15446
+ var F = $.reduce(function(R, H) {
15447
15447
  return H.indexOf(`
15448
- `) >= 0, A + H.replace(/\u001b\[\d\d?m/g, "").length + 1;
15448
+ `) >= 0, R + H.replace(/\u001b\[\d\d?m/g, "").length + 1;
15449
15449
  }, 0);
15450
15450
  return F > 60 ? T[0] + (B === "" ? "" : B + `
15451
15451
  `) + " " + $.join(`,
@@ -15484,20 +15484,20 @@ function requireUtil() {
15484
15484
  return $ === void 0;
15485
15485
  }
15486
15486
  e.isUndefined = N;
15487
- function O($) {
15488
- return R($) && Z($) === "[object RegExp]";
15487
+ function A($) {
15488
+ return D($) && Z($) === "[object RegExp]";
15489
15489
  }
15490
- e.isRegExp = O, e.types.isRegExp = O;
15491
- function R($) {
15490
+ e.isRegExp = A, e.types.isRegExp = A;
15491
+ function D($) {
15492
15492
  return typeof $ == "object" && $ !== null;
15493
15493
  }
15494
- e.isObject = R;
15495
- function D($) {
15496
- return R($) && Z($) === "[object Date]";
15494
+ e.isObject = D;
15495
+ function O($) {
15496
+ return D($) && Z($) === "[object Date]";
15497
15497
  }
15498
- e.isDate = D, e.types.isDate = D;
15498
+ e.isDate = O, e.types.isDate = O;
15499
15499
  function z($) {
15500
- return R($) && (Z($) === "[object Error]" || $ instanceof Error);
15500
+ return D($) && (Z($) === "[object Error]" || $ instanceof Error);
15501
15501
  }
15502
15502
  e.isError = z, e.types.isNativeError = z;
15503
15503
  function P($) {
@@ -15540,7 +15540,7 @@ function requireUtil() {
15540
15540
  e.log = function() {
15541
15541
  console.log("%s - %s", w(), e.format.apply(e, arguments));
15542
15542
  }, e.inherits = requireInherits_browser(), e._extend = function($, B) {
15543
- if (!B || !R(B)) return $;
15543
+ if (!B || !D(B)) return $;
15544
15544
  for (var T = Object.keys(B), F = T.length; F--; )
15545
15545
  $[T[F]] = B[T[F]];
15546
15546
  return $;
@@ -15564,17 +15564,17 @@ function requireUtil() {
15564
15564
  }), T;
15565
15565
  }
15566
15566
  function T() {
15567
- for (var F, A, H = new Promise(function(G, ee) {
15568
- F = G, A = ee;
15567
+ for (var F, R, H = new Promise(function(G, ee) {
15568
+ F = G, R = ee;
15569
15569
  }), W = [], U = 0; U < arguments.length; U++)
15570
15570
  W.push(arguments[U]);
15571
15571
  W.push(function(G, ee) {
15572
- G ? A(G) : F(ee);
15572
+ G ? R(G) : F(ee);
15573
15573
  });
15574
15574
  try {
15575
15575
  B.apply(this, W);
15576
15576
  } catch (G) {
15577
- A(G);
15577
+ R(G);
15578
15578
  }
15579
15579
  return H;
15580
15580
  }
@@ -15601,11 +15601,11 @@ function requireUtil() {
15601
15601
  function B() {
15602
15602
  for (var T = [], F = 0; F < arguments.length; F++)
15603
15603
  T.push(arguments[F]);
15604
- var A = T.pop();
15605
- if (typeof A != "function")
15604
+ var R = T.pop();
15605
+ if (typeof R != "function")
15606
15606
  throw new TypeError("The last argument must be of type Function");
15607
15607
  var H = this, W = function() {
15608
- return A.apply(H, arguments);
15608
+ return R.apply(H, arguments);
15609
15609
  };
15610
15610
  $.apply(this, T).then(
15611
15611
  function(U) {
@@ -16005,7 +16005,7 @@ function requireLib() {
16005
16005
  type: E,
16006
16006
  value: N
16007
16007
  } of f(C))
16008
- E in S ? V += N.split(d).map((O) => S[E](O)).join(`
16008
+ E in S ? V += N.split(d).map((A) => S[E](A)).join(`
16009
16009
  `) : V += N;
16010
16010
  return V;
16011
16011
  }
@@ -16016,15 +16016,15 @@ function requireLib() {
16016
16016
  column: 0,
16017
16017
  line: -1
16018
16018
  }, C.start), N = Object.assign({}, E, C.end), {
16019
- linesAbove: O = 2,
16020
- linesBelow: R = 3
16021
- } = V || {}, D = E.line, z = E.column, P = N.line, j = N.column;
16022
- let Z = Math.max(D - (O + 1), 0), Q = Math.min(S.length, P + R);
16023
- D === -1 && (Z = 0), P === -1 && (Q = S.length);
16024
- const Y = P - D, w = {};
16019
+ linesAbove: A = 2,
16020
+ linesBelow: D = 3
16021
+ } = V || {}, O = E.line, z = E.column, P = N.line, j = N.column;
16022
+ let Z = Math.max(O - (A + 1), 0), Q = Math.min(S.length, P + D);
16023
+ O === -1 && (Z = 0), P === -1 && (Q = S.length);
16024
+ const Y = P - O, w = {};
16025
16025
  if (Y)
16026
16026
  for (let L = 0; L <= Y; L++) {
16027
- const M = L + D;
16027
+ const M = L + O;
16028
16028
  if (!z)
16029
16029
  w[M] = !0;
16030
16030
  else if (L === 0) {
@@ -16038,7 +16038,7 @@ function requireLib() {
16038
16038
  }
16039
16039
  }
16040
16040
  else
16041
- z === j ? z ? w[D] = [z, 0] : w[D] = !0 : w[D] = [z, j - z];
16041
+ z === j ? z ? w[O] = [z, 0] : w[O] = !0 : w[O] = [z, j - z];
16042
16042
  return {
16043
16043
  start: Z,
16044
16044
  end: Q,
@@ -16046,13 +16046,13 @@ function requireLib() {
16046
16046
  };
16047
16047
  }
16048
16048
  function b(C, S, V = {}) {
16049
- const E = V.forceColor || r() && V.highlightCode, N = c(E), O = C.split(_), {
16050
- start: R,
16051
- end: D,
16049
+ const E = V.forceColor || r() && V.highlightCode, N = c(E), A = C.split(_), {
16050
+ start: D,
16051
+ end: O,
16052
16052
  markerLines: z
16053
- } = v(S, O, V), P = S.start && typeof S.start.column == "number", j = String(D).length;
16054
- let Q = (E ? p(C) : C).split(_, D).slice(R, D).map((Y, w) => {
16055
- const L = R + 1 + w, q = ` ${` ${L}`.slice(-j)} |`, J = z[L], $ = !z[L + 1];
16053
+ } = v(S, A, V), P = S.start && typeof S.start.column == "number", j = String(O).length;
16054
+ let Q = (E ? p(C) : C).split(_, O).slice(D, O).map((Y, w) => {
16055
+ const L = D + 1 + w, q = ` ${` ${L}`.slice(-j)} |`, J = z[L], $ = !z[L + 1];
16056
16056
  if (J) {
16057
16057
  let B = "";
16058
16058
  if (Array.isArray(J)) {
@@ -16071,12 +16071,12 @@ ${Q}`), E ? N.reset(Q) : Q;
16071
16071
  function k(C, S, V, E = {}) {
16072
16072
  if (!g) {
16073
16073
  g = !0;
16074
- const O = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
16074
+ const A = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
16075
16075
  if (process.emitWarning)
16076
- process.emitWarning(O, "DeprecationWarning");
16076
+ process.emitWarning(A, "DeprecationWarning");
16077
16077
  else {
16078
- const R = new Error(O);
16079
- R.name = "DeprecationWarning", console.warn(new Error(O));
16078
+ const D = new Error(A);
16079
+ D.name = "DeprecationWarning", console.warn(new Error(A));
16080
16080
  }
16081
16081
  }
16082
16082
  return V = Math.max(V, 0), b(C, {
@@ -17175,8 +17175,8 @@ var Collection$1 = /* @__PURE__ */ function(e) {
17175
17175
  N === `
17176
17176
  ` && (l = E + 1, f = !0);
17177
17177
  }
17178
- var O = grabCollectionEndComments(V);
17179
- O && Array.prototype.push.apply(this.items, O);
17178
+ var A = grabCollectionEndComments(V);
17179
+ A && Array.prototype.push.apply(this.items, A);
17180
17180
  }
17181
17181
  return d;
17182
17182
  }
@@ -18225,30 +18225,30 @@ var isEmptyPath = function e(n) {
18225
18225
  if (S.length === 0)
18226
18226
  V = u.start + u.end;
18227
18227
  else if (v) {
18228
- var E = u.start, N = u.end, O = S.map(function(Y) {
18228
+ var E = u.start, N = u.end, A = S.map(function(Y) {
18229
18229
  return Y.str;
18230
18230
  });
18231
- if (C || O.reduce(function(Y, w) {
18231
+ if (C || A.reduce(function(Y, w) {
18232
18232
  return Y + w.length + 2;
18233
18233
  }, 2) > t.maxFlowStringSingleLineLength) {
18234
18234
  V = E;
18235
- var R = _createForOfIteratorHelper(O), D;
18235
+ var D = _createForOfIteratorHelper(A), O;
18236
18236
  try {
18237
- for (R.s(); !(D = R.n()).done; ) {
18238
- var z = D.value;
18237
+ for (D.s(); !(O = D.n()).done; ) {
18238
+ var z = O.value;
18239
18239
  V += z ? `
18240
18240
  `.concat(g).concat(p).concat(z) : `
18241
18241
  `;
18242
18242
  }
18243
18243
  } catch (Y) {
18244
- R.e(Y);
18244
+ D.e(Y);
18245
18245
  } finally {
18246
- R.f();
18246
+ D.f();
18247
18247
  }
18248
18248
  V += `
18249
18249
  `.concat(p).concat(N);
18250
18250
  } else
18251
- V = "".concat(E, " ").concat(O.join(" "), " ").concat(N);
18251
+ V = "".concat(E, " ").concat(A.join(" "), " ").concat(N);
18252
18252
  } else {
18253
18253
  var P = S.map(c);
18254
18254
  V = P.shift();
@@ -18441,29 +18441,29 @@ var YAMLSeq = /* @__PURE__ */ function(e) {
18441
18441
  if (m instanceof Node) {
18442
18442
  if (m.spaceBefore && (E = `
18443
18443
  `), m.commentBefore) {
18444
- var O = m.commentBefore.replace(/^/gm, "".concat(r.indent, "#"));
18444
+ var A = m.commentBefore.replace(/^/gm, "".concat(r.indent, "#"));
18445
18445
  E += `
18446
- `.concat(O);
18446
+ `.concat(A);
18447
18447
  }
18448
18448
  N = m.comment;
18449
18449
  } else m && _typeof(m) === "object" && (m = v.schema.createNode(m, !0));
18450
18450
  r.implicitKey = !1, !g && !this.comment && m instanceof Scalar && (r.indentAtStart = V.length + 1), S = !1, !c && l >= 2 && !r.inFlow && !g && m instanceof YAMLSeq && m.type !== Type.FLOW_SEQ && !m.tag && !v.anchors.getName(m) && (r.indent = r.indent.substr(2));
18451
- var R = C(m, r, function() {
18451
+ var D = C(m, r, function() {
18452
18452
  return N = null;
18453
18453
  }, function() {
18454
18454
  return S = !0;
18455
- }), D = " ";
18455
+ }), O = " ";
18456
18456
  if (E || this.comment)
18457
- D = "".concat(E, `
18457
+ O = "".concat(E, `
18458
18458
  `).concat(r.indent);
18459
18459
  else if (!g && m instanceof Collection) {
18460
- var z = R[0] === "[" || R[0] === "{";
18461
- (!z || R.includes(`
18462
- `)) && (D = `
18460
+ var z = D[0] === "[" || D[0] === "{";
18461
+ (!z || D.includes(`
18462
+ `)) && (O = `
18463
18463
  `.concat(r.indent));
18464
- } else R[0] === `
18465
- ` && (D = "");
18466
- return S && !N && o && o(), addComment(V + D + R, r.indent, N);
18464
+ } else D[0] === `
18465
+ ` && (O = "");
18466
+ return S && !N && o && o(), addComment(V + O + D, r.indent, N);
18467
18467
  }
18468
18468
  }]), t;
18469
18469
  }(Node);
@@ -18809,11 +18809,11 @@ function foldFlowLines(e, n, t, a) {
18809
18809
  }
18810
18810
  if (v && u && u(), m.length === 0) return e;
18811
18811
  c && c();
18812
- for (var N = e.slice(0, m[0]), O = 0; O < m.length; ++O) {
18813
- var R = m[O], D = m[O + 1] || e.length;
18814
- R === 0 ? N = `
18815
- `.concat(n).concat(e.slice(0, D)) : (t === FOLD_QUOTED && f[R] && (N += "".concat(e[R], "\\")), N += `
18816
- `.concat(n).concat(e.slice(R + 1, D)));
18812
+ for (var N = e.slice(0, m[0]), A = 0; A < m.length; ++A) {
18813
+ var D = m[A], O = m[A + 1] || e.length;
18814
+ D === 0 ? N = `
18815
+ `.concat(n).concat(e.slice(0, O)) : (t === FOLD_QUOTED && f[D] && (N += "".concat(e[D], "\\")), N += `
18816
+ `.concat(n).concat(e.slice(D + 1, O)));
18817
18817
  }
18818
18818
  return N;
18819
18819
  }
@@ -21516,11 +21516,11 @@ function requireDist() {
21516
21516
  return E.isBabelMacro = !0, E.options = V, E;
21517
21517
  function E(N) {
21518
21518
  const {
21519
- source: O,
21520
- isBabelMacrosCall: R
21519
+ source: A,
21520
+ isBabelMacrosCall: D
21521
21521
  } = N;
21522
- if (!R)
21523
- throw new l(`The macro you imported from "${O}" is being executed outside the context of compilation with babel-plugin-macros. This indicates that you don't have the babel plugin "babel-plugin-macros" configured correctly. Please see the documentation for how to configure babel-plugin-macros properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md`);
21522
+ if (!D)
21523
+ throw new l(`The macro you imported from "${A}" is being executed outside the context of compilation with babel-plugin-macros. This indicates that you don't have the babel plugin "babel-plugin-macros" configured correctly. Please see the documentation for how to configure babel-plugin-macros properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md`);
21524
21524
  return S(N);
21525
21525
  }
21526
21526
  }
@@ -21536,9 +21536,9 @@ function requireDist() {
21536
21536
  let {
21537
21537
  require: E = commonjsRequire,
21538
21538
  resolvePath: N = m,
21539
- isMacrosName: O = i
21540
- } = V, R = (0, a.default)(V, ["require", "resolvePath", "isMacrosName"]);
21541
- function D(z) {
21539
+ isMacrosName: A = i
21540
+ } = V, D = (0, a.default)(V, ["require", "resolvePath", "isMacrosName"]);
21541
+ function O(z) {
21542
21542
  const P = E(z);
21543
21543
  return P && P.__esModule && P.default ? P.default : P;
21544
21544
  }
@@ -21551,7 +21551,7 @@ function requireDist() {
21551
21551
  if (!k(j, {
21552
21552
  node: {
21553
21553
  source: {
21554
- value: (L) => O(L)
21554
+ value: (L) => A(L)
21555
21555
  }
21556
21556
  }
21557
21557
  }))
@@ -21565,9 +21565,9 @@ function requireDist() {
21565
21565
  source: Y,
21566
21566
  state: P,
21567
21567
  babel: S,
21568
- interopRequire: D,
21568
+ interopRequire: O,
21569
21569
  resolvePath: N,
21570
- options: R
21570
+ options: D
21571
21571
  });
21572
21572
  (!w || !w.keepImports) && j.remove();
21573
21573
  },
@@ -21579,7 +21579,7 @@ function requireDist() {
21579
21579
  type: "Identifier",
21580
21580
  name: "require"
21581
21581
  },
21582
- arguments: (Y) => Y.length === 1 && O(Y[0].value)
21582
+ arguments: (Y) => Y.length === 1 && A(Y[0].value)
21583
21583
  }
21584
21584
  }
21585
21585
  });
@@ -21596,9 +21596,9 @@ function requireDist() {
21596
21596
  source: L,
21597
21597
  state: P,
21598
21598
  babel: S,
21599
- interopRequire: D,
21599
+ interopRequire: O,
21600
21600
  resolvePath: N,
21601
- options: R
21601
+ options: D
21602
21602
  });
21603
21603
  (!M || !M.keepImports) && Q.remove();
21604
21604
  });
@@ -21613,9 +21613,9 @@ function requireDist() {
21613
21613
  imports: V,
21614
21614
  source: E,
21615
21615
  state: N,
21616
- babel: O,
21617
- interopRequire: R,
21618
- resolvePath: D,
21616
+ babel: A,
21617
+ interopRequire: D,
21618
+ resolvePath: O,
21619
21619
  options: z
21620
21620
  }) {
21621
21621
  const {
@@ -21632,7 +21632,7 @@ function requireDist() {
21632
21632
  }) => {
21633
21633
  const B = S.scope.getBinding($);
21634
21634
  return q[J] = B.referencePaths, j = j || !!q[J].length, q;
21635
- }, {}), Q = E.indexOf(".") === 0, Y = D(E, r.dirname(b(P))), w = R(Y);
21635
+ }, {}), Q = E.indexOf(".") === 0, Y = O(E, r.dirname(b(P))), w = D(Y);
21636
21636
  if (!w.isBabelMacro)
21637
21637
  throw new Error(`The macro imported from "${E}" must be wrapped in "createMacro" which you can get from "babel-plugin-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md#writing-a-macro`);
21638
21638
  const L = v(w, P, E, z);
@@ -21645,7 +21645,7 @@ function requireDist() {
21645
21645
  references: Z,
21646
21646
  source: E,
21647
21647
  state: N,
21648
- babel: O,
21648
+ babel: A,
21649
21649
  config: L,
21650
21650
  isBabelMacrosCall: !0
21651
21651
  });
@@ -21687,15 +21687,15 @@ function requireDist() {
21687
21687
  }
21688
21688
  function v(S, V, E, N) {
21689
21689
  const {
21690
- configName: O
21690
+ configName: A
21691
21691
  } = S.options;
21692
- if (O) {
21693
- const R = g(O, V), D = _(O, N);
21694
- if (D.options === void 0 && R.options === void 0 && R.error !== void 0)
21695
- throw console.error(`There was an error trying to load the config "${O}" for the macro imported from "${E}. Please see the error thrown for more information.`), R.error;
21696
- if (R.options !== void 0 && D.options !== void 0 && typeof R.options != "object")
21697
- throw new Error(`${R.path} specified a ${O} config of type ${typeof D.options}, but the the macros plugin's options.${O} did contain an object. Both configs must contain objects for their options to be mergeable.`);
21698
- return (0, t.default)({}, D.options, {}, R.options);
21692
+ if (A) {
21693
+ const D = g(A, V), O = _(A, N);
21694
+ if (O.options === void 0 && D.options === void 0 && D.error !== void 0)
21695
+ throw console.error(`There was an error trying to load the config "${A}" for the macro imported from "${E}. Please see the error thrown for more information.`), D.error;
21696
+ if (D.options !== void 0 && O.options !== void 0 && typeof D.options != "object")
21697
+ throw new Error(`${D.path} specified a ${A} config of type ${typeof O.options}, but the the macros plugin's options.${A} did contain an object. Both configs must contain objects for their options to be mergeable.`);
21698
+ return (0, t.default)({}, O.options, {}, D.options);
21699
21699
  }
21700
21700
  }
21701
21701
  function b(S) {
@@ -21703,8 +21703,8 @@ function requireDist() {
21703
21703
  }
21704
21704
  function k(S, V) {
21705
21705
  return S && V && Object.keys(V).every((E) => {
21706
- const N = V[E], O = S[E];
21707
- return typeof N == "function" ? N(O) : C(N) ? N === O : k(O, N);
21706
+ const N = V[E], A = S[E];
21707
+ return typeof N == "function" ? N(A) : C(N) ? N === A : k(A, N);
21708
21708
  });
21709
21709
  }
21710
21710
  function C(S) {
@@ -28700,10 +28700,10 @@ const _hoisted_1$r = {
28700
28700
  size: "sm"
28701
28701
  }),
28702
28702
  withDirectives(createElementVNode("ul", mergeProps(b(), toHandlers(k(), !0), { class: "vs-autocomplete__list" }), [
28703
- (openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (N, O) => (openBlock(), createElementBlock("li", mergeProps({
28703
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (N, A) => (openBlock(), createElementBlock("li", mergeProps({
28704
28704
  key: N.id
28705
- }, { ref_for: !0 }, C({ item: N, index: O }), toHandlers(S({ item: N, index: O }), !0), {
28706
- class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": _ === O }]
28705
+ }, { ref_for: !0 }, C({ item: N, index: A }), toHandlers(S({ item: N, index: A }), !0), {
28706
+ class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": _ === A }]
28707
28707
  }), toDisplayString(N[c.value]), 17))), 128))
28708
28708
  ], 16), [
28709
28709
  [vShow, v]
@@ -29329,20 +29329,20 @@ const _hoisted_1$r = {
29329
29329
  }))), N = async () => {
29330
29330
  const w = await getData(g);
29331
29331
  w && (_.value = w.data);
29332
- }, O = async () => {
29332
+ }, A = async () => {
29333
29333
  const w = await getData(k);
29334
29334
  w && (C.value = w.data);
29335
- }, R = async () => {
29335
+ }, D = async () => {
29336
29336
  const w = await getData(v);
29337
29337
  w && (b.value = w.data);
29338
- }, D = (w, L) => {
29338
+ }, O = (w, L) => {
29339
29339
  L === "key" ? s.value = _.value.find((M) => M.key === w) : L === "id" ? s.value = _.value.find((M) => M.id === w) : s.value = _.value.find((M) => M.name === w.trim());
29340
29340
  }, z = (w) => {
29341
29341
  const L = w.value;
29342
- a.value = L, L === "tour" && (O(), R());
29342
+ a.value = L, L === "tour" && (A(), D());
29343
29343
  }, P = () => u[n.defaultLocale] || "", j = () => {
29344
29344
  t.value = !0, nextTick(() => {
29345
- t.value = !1, n.defaultLocation !== "" && c && D(n.defaultLocation, "id");
29345
+ t.value = !1, n.defaultLocation !== "" && c && O(n.defaultLocation, "id");
29346
29346
  });
29347
29347
  }, Z = computed$1(() => a.value !== "cate" && a.value !== "acti,attr,reta" ? "d-lg-flex" : "");
29348
29348
  onBeforeMount(async () => {
@@ -29350,7 +29350,7 @@ const _hoisted_1$r = {
29350
29350
  const w = document.createElement("script");
29351
29351
  w.async = !1, w.onload = j, w.setAttribute("src", `https://www.visitscotland.com/${P().localeUrl}/data/template/search.js`), document.head.appendChild(w);
29352
29352
  }), onMounted(async () => {
29353
- N(), c.value = !0, a.value = n.defaultProd, a.value === "tour" && (O(), R()), V();
29353
+ N(), c.value = !0, a.value = n.defaultProd, a.value === "tour" && (A(), D()), V();
29354
29354
  });
29355
29355
  const Q = (w) => {
29356
29356
  o.value = w ? "on" : "off";
@@ -29398,7 +29398,7 @@ const _hoisted_1$r = {
29398
29398
  options: _.value,
29399
29399
  placeholder: unref(getLabelText)("location_placeholder", "Enter a location"),
29400
29400
  "track-by": "name",
29401
- onChangeValue: L[1] || (L[1] = (F) => D(F)),
29401
+ onChangeValue: L[1] || (L[1] = (F) => O(F)),
29402
29402
  "default-val": unref(s),
29403
29403
  "data-chromatic": "ignore"
29404
29404
  }, null, 8, ["label", "options", "placeholder", "default-val"])) : createCommentVNode("", !0),
@@ -33066,8 +33066,8 @@ function setup(e) {
33066
33066
  C++;
33067
33067
  const N = t.formatters[E];
33068
33068
  if (typeof N == "function") {
33069
- const O = _[C];
33070
- V = N.call(v, O), _.splice(C, 1), C--;
33069
+ const A = _[C];
33070
+ V = N.call(v, A), _.splice(C, 1), C--;
33071
33071
  }
33072
33072
  return V;
33073
33073
  }), t.formatArgs.call(v, _), (v.log || t.log).apply(v, _);
@@ -33349,10 +33349,10 @@ var functionNamesExports = functionNames.exports;
33349
33349
  Array.isArray(k.acceptableStates) && !k.acceptableStates.includes(C) ? new Promise((V) => {
33350
33350
  const E = () => {
33351
33351
  const N = b.getPlayerState();
33352
- let O;
33353
- typeof k.timeout == "number" && (O = setTimeout(() => {
33352
+ let A;
33353
+ typeof k.timeout == "number" && (A = setTimeout(() => {
33354
33354
  b.removeEventListener("onStateChange", E), V();
33355
- }, k.timeout)), Array.isArray(k.acceptableStates) && k.acceptableStates.includes(N) && (b.removeEventListener("onStateChange", E), clearTimeout(O), V());
33355
+ }, k.timeout)), Array.isArray(k.acceptableStates) && k.acceptableStates.includes(N) && (b.removeEventListener("onStateChange", E), clearTimeout(A), V());
33356
33356
  };
33357
33357
  b.addEventListener("onStateChange", E);
33358
33358
  }).then(() => S) : S;
@@ -33918,24 +33918,24 @@ function cleanData(e) {
33918
33918
  };
33919
33919
  });
33920
33920
  }
33921
- async function eventSearch(e, n, t, a, r, s, o, i) {
33922
- const l = useFederatedSearchStore();
33923
- if (l.eventsApiError = !1, l.cludoError = !1, a === "events" || !a) {
33924
- let c = `${e}?query=${n}`;
33925
- c = t > 1 ? `${c}&page=${t}` : c, c = s !== "" ? `${c}&startDate=${s}` : c, c = o !== "" ? `${c}&endDate=${o}` : c, c = i ? `${c}&sort=${i.key}` : c, c = a === "events" ? `${c}&pageSize=12` : `${c}&pageSize=6`, r.forEach((u) => {
33926
- c += `&category=${u}`;
33921
+ async function eventSearch(e, n, t, a, r, s, o, i, l) {
33922
+ const c = useFederatedSearchStore();
33923
+ if (c.eventsApiError = !1, c.cludoError = !1, a === "events" || !a) {
33924
+ let u = `${e}?query=${n}&lang=${l}`;
33925
+ u = t > 1 ? `${u}&page=${t}` : u, u = s !== "" ? `${u}&startDate=${s}` : u, u = o !== "" ? `${u}&endDate=${o}` : u, u = i ? `${u}&sort=${i}` : u, u = a === "events" ? `${u}&pageSize=12` : `${u}&pageSize=6`, r.forEach((d) => {
33926
+ u += `&category=${d}`;
33927
33927
  });
33928
33928
  try {
33929
- const u = await fetch(c);
33930
- if (!u.ok)
33931
- throw l.isLoading = !1, l.eventsApiError = !0, new Error(`Events response message: ${u.status}`);
33932
- const d = await u.json();
33929
+ const d = await fetch(u);
33930
+ if (!d.ok)
33931
+ throw c.isLoading = !1, c.eventsApiError = !0, new Error(`Events response message: ${d.status}`);
33932
+ const m = await d.json();
33933
33933
  return {
33934
- results: cleanData(d),
33935
- totalResults: d.totalResults
33934
+ results: cleanData(m),
33935
+ totalResults: m.totalResults
33936
33936
  };
33937
33937
  } catch {
33938
- return l.isLoading = !1, l.eventsApiError = !0, {
33938
+ return c.isLoading = !1, c.eventsApiError = !0, {
33939
33939
  results: [],
33940
33940
  totalResults: 0
33941
33941
  };
@@ -33967,16 +33967,16 @@ async function cludoAutocomplete(e, n) {
33967
33967
  }
33968
33968
  }
33969
33969
  const useFederatedSearchStore = defineStore("federatedSearch", () => {
33970
- const e = ref(null), n = ref(void 0), t = ref(!1), a = ref(1), r = ref(void 0), s = ref(!1), o = ref(!1), i = ref(null), l = ref(""), c = ref(null), u = ref(null), d = ref([]), m = ref([]), f = ref(void 0), p = ref(void 0), g = ref(void 0), _ = ref(!1), v = ref(""), b = ref(""), k = ref(void 0), C = ref(void 0);
33971
- async function S() {
33970
+ const e = ref(null), n = ref(void 0), t = ref(!1), a = ref(1), r = ref(void 0), s = ref(!1), o = ref(!1), i = ref(null), l = ref(""), c = ref(null), u = ref(null), d = ref([]), m = ref([]), f = ref(void 0), p = ref(void 0), g = ref(void 0), _ = ref(!1), v = ref(""), b = ref(""), k = ref(void 0), C = ref(void 0), S = ref(void 0);
33971
+ async function V() {
33972
33972
  o.value = !0;
33973
- const N = await cludoSearch(
33973
+ const A = await cludoSearch(
33974
33974
  l.value,
33975
33975
  n.value,
33976
33976
  a.value,
33977
33977
  c.value,
33978
33978
  u.value
33979
- ), O = await eventSearch(
33979
+ ), D = await eventSearch(
33980
33980
  r.value,
33981
33981
  l.value,
33982
33982
  a.value,
@@ -33984,20 +33984,21 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
33984
33984
  m.value,
33985
33985
  v.value,
33986
33986
  b.value,
33987
- k.value
33987
+ k.value,
33988
+ S.value
33988
33989
  );
33989
- i.value = [...N.results, ...O.results], p.value = N.totalResults, g.value = O.totalResults, f.value = N.totalResults + O.totalResults, o.value = !1;
33990
+ i.value = [...A.results, ...D.results], p.value = A.totalResults, g.value = D.totalResults, f.value = A.totalResults + D.totalResults, o.value = !1;
33990
33991
  }
33991
- async function V() {
33992
+ async function E() {
33992
33993
  return cludoAutocomplete(l.value, n.value);
33993
33994
  }
33994
- function E(N) {
33995
- const O = new URL(window.location);
33996
- if (l.value ? O.searchParams.set("search-term", l.value) : O.searchParams.delete("search-term"), u.value ? O.searchParams.set("category", encodeURIComponent(u.value)) : O.searchParams.delete("category"), m.value.length > 0 ? O.searchParams.set("sub-category", encodeURIComponent(m.value.join(","))) : O.searchParams.delete("sub-category"), N ? (a.value = 1, O.searchParams.set("page", a.value.toString())) : a.value && a.value > 1 ? O.searchParams.set("page", a.value.toString()) : O.searchParams.delete("page"), v.value ? O.searchParams.set("start-date", v.value) : O.searchParams.delete("start-date"), b.value ? O.searchParams.set("end-date", b.value) : O.searchParams.delete("end-date"), k.value ? O.searchParams.set("sort-by", k.value.key) : O.searchParams.delete("sort-by"), !_.value)
33997
- window.history.pushState({}, "", O), S();
33995
+ function N(A) {
33996
+ const D = new URL(window.location.href);
33997
+ if (l.value ? D.searchParams.set("search-term", l.value) : D.searchParams.delete("search-term"), u.value ? D.searchParams.set("category", encodeURIComponent(u.value)) : D.searchParams.delete("category"), m.value.length > 0 ? D.searchParams.set("sub-category", encodeURIComponent(m.value.join(","))) : D.searchParams.delete("sub-category"), A ? (a.value = 1, D.searchParams.set("page", a.value.toString())) : a.value && a.value > 1 ? D.searchParams.set("page", a.value.toString()) : D.searchParams.delete("page"), v.value ? D.searchParams.set("start-date", v.value) : D.searchParams.delete("start-date"), b.value ? D.searchParams.set("end-date", b.value) : D.searchParams.delete("end-date"), k.value ? D.searchParams.set("sort-by", k.value) : D.searchParams.delete("sort-by"), !_.value)
33998
+ window.history.pushState({}, "", D), V();
33998
33999
  else {
33999
- const R = `./${C.value}/${O.search}`;
34000
- window.location.href = R;
34000
+ const O = `./${C.value}/${D.search}`;
34001
+ window.location.href = O;
34001
34002
  }
34002
34003
  }
34003
34004
  return {
@@ -34007,8 +34008,8 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34007
34008
  cludoError: t,
34008
34009
  eventsApi: r,
34009
34010
  eventsApiError: s,
34010
- getAutoComplete: V,
34011
- getSearchResults: S,
34011
+ getAutoComplete: E,
34012
+ getSearchResults: V,
34012
34013
  isLoading: o,
34013
34014
  results: i,
34014
34015
  searchTerm: l,
@@ -34019,11 +34020,12 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34019
34020
  totalResults: f,
34020
34021
  totalResultsCludo: p,
34021
34022
  totalResultsEvents: g,
34022
- navigateToResultsPage: E,
34023
+ navigateToResultsPage: N,
34023
34024
  isHomePage: _,
34024
34025
  startDate: v,
34025
34026
  endDate: b,
34026
- sortBy: k
34027
+ sortBy: k,
34028
+ siteLanguage: S
34027
34029
  };
34028
34030
  }), __default__ = {
34029
34031
  name: "VsDivider"
@@ -34342,7 +34344,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34342
34344
  engineId: n.cludoEngineId
34343
34345
  }, t.isHomePage = n.isHomePage;
34344
34346
  const f = window.location.search, p = new URLSearchParams(f);
34345
- p.has("search-term") && (t.searchTerm = p.get("search-term")), p.has("category") && (t.selectedCategoryKey = decodeURIComponent(p.get("category"))), p.has("sub-category") && decodeURIComponent(p.get("sub-category")).split(",").forEach((_) => t.selectedSubCategoryKey.push(_)), (p.has("search-term") || p.has("category")) && t.getSearchResults();
34347
+ p.has("search-term") && (t.searchTerm = p.get("search-term")), p.has("category") && (t.selectedCategoryKey = decodeURIComponent(p.get("category"))), p.has("sub-category") && decodeURIComponent(p.get("sub-category")).split(",").forEach((_) => t.selectedSubCategoryKey.push(_)), p.has("category") && p.get("category") === "events" && p.has("sort-by") && (t.sortBy = p.get("sort-by")), p.has("start-date") && (t.startDate = p.get("start-date")), p.has("end-date") && (t.endDate = p.get("end-date")), (p.has("search-term") || p.has("category")) && t.getSearchResults();
34346
34348
  }), (f, p) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
34347
34349
  createElementVNode("div", _hoisted_2$2, [
34348
34350
  createElementVNode("div", _hoisted_3$1, [
@@ -34425,7 +34427,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34425
34427
  for: "vs-fed-search-sort__to-date",
34426
34428
  class: "vs-fed-search-sort__label",
34427
34429
  "data-test": "vs-fed-search-sort__to-date-label"
34428
- }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
34430
+ }, _sfc_main$1 = {
34429
34431
  __name: "FedSearchSort",
34430
34432
  props: {
34431
34433
  /**
@@ -34467,44 +34469,42 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34467
34469
  "end-date-updated",
34468
34470
  "sort-order-updated"
34469
34471
  ],
34470
- setup(e, { emit: n }) {
34471
- const t = ref(null), a = e, r = n;
34472
- function s(o) {
34473
- t.value = o, r("sort-order-updated", o);
34474
- }
34475
- return (o, i) => (openBlock(), createBlock(VsRow, { class: "vs-fed-search-sort" }, {
34472
+ setup(e) {
34473
+ const n = useFederatedSearchStore(), t = e, a = computed$1(() => t.sortOptions.find((r) => r.key === n.sortBy));
34474
+ return (r, s) => (openBlock(), createBlock(VsRow, { class: "vs-fed-search-sort" }, {
34476
34475
  default: withCtx(() => [
34477
- a.dateFilterVisible ? (openBlock(), createBlock(VsCol, {
34476
+ t.dateFilterVisible ? (openBlock(), createBlock(VsCol, {
34478
34477
  key: 0,
34479
34478
  cols: "6",
34480
34479
  md: "4"
34481
34480
  }, {
34482
34481
  default: withCtx(() => [
34483
- a.fromDateLabel ? (openBlock(), createElementBlock("label", _hoisted_1$1, toDisplayString(a.fromDateLabel), 1)) : createCommentVNode("", !0),
34482
+ t.fromDateLabel ? (openBlock(), createElementBlock("label", _hoisted_1$1, toDisplayString(t.fromDateLabel), 1)) : createCommentVNode("", !0),
34484
34483
  createVNode(VsInput, {
34485
34484
  "field-name": "vs-fed-search-sort__from-date",
34486
- value: (/* @__PURE__ */ new Date()).toJSON().slice(0, 10),
34485
+ value: unref(n).startDate || (/* @__PURE__ */ new Date()).toJSON().slice(0, 10),
34487
34486
  type: "date",
34488
34487
  "auto-complete": !1,
34489
- onInput: i[0] || (i[0] = (l) => o.$emit("from-date-updated", l.target.value)),
34488
+ onInput: s[0] || (s[0] = (o) => r.$emit("from-date-updated", o.target.value)),
34490
34489
  "data-chromatic": "ignore"
34491
34490
  }, null, 8, ["value"])
34492
34491
  ]),
34493
34492
  _: 1
34494
34493
  })) : createCommentVNode("", !0),
34495
- a.dateFilterVisible ? (openBlock(), createBlock(VsCol, {
34494
+ t.dateFilterVisible ? (openBlock(), createBlock(VsCol, {
34496
34495
  key: 1,
34497
34496
  cols: "6",
34498
34497
  md: "4"
34499
34498
  }, {
34500
34499
  default: withCtx(() => [
34501
- a.toDateLabel ? (openBlock(), createElementBlock("label", _hoisted_2$1, toDisplayString(a.toDateLabel), 1)) : createCommentVNode("", !0),
34500
+ t.toDateLabel ? (openBlock(), createElementBlock("label", _hoisted_2$1, toDisplayString(t.toDateLabel), 1)) : createCommentVNode("", !0),
34502
34501
  createVNode(VsInput, {
34503
34502
  "field-name": "vs-fed-search-sort__to-date",
34504
34503
  type: "date",
34505
34504
  "auto-complete": !1,
34506
- onInput: i[1] || (i[1] = (l) => o.$emit("end-date-updated", l.target.value))
34507
- })
34505
+ onInput: s[1] || (s[1] = (o) => r.$emit("end-date-updated", o.target.value)),
34506
+ value: unref(n).endDate || ""
34507
+ }, null, 8, ["value"])
34508
34508
  ]),
34509
34509
  _: 1
34510
34510
  })) : createCommentVNode("", !0),
@@ -34518,17 +34518,19 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34518
34518
  variant: "secondary",
34519
34519
  id: "vs-fed-search-sort__dropdown",
34520
34520
  name: "vs-fed-search-sort__dropdown",
34521
- text: t.value === null ? a.sortLabel : `${a.sortLabel}: ${t.value.label}`
34521
+ text: unref(n).sortBy ? `${t.sortLabel}: ${a.value.label}` : t.sortLabel
34522
34522
  }, {
34523
34523
  default: withCtx(() => [
34524
- (openBlock(!0), createElementBlock(Fragment, null, renderList(e.sortOptions, (l, c) => (openBlock(), createBlock(VsDropdownItem, {
34525
- key: c,
34526
- onClick: (u) => s(l),
34527
- active: t.value === l,
34528
- "data-test": `vs-fed-search-sort__dropdown-item--${l.id}`
34524
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(e.sortOptions, (o, i) => (openBlock(), createBlock(VsDropdownItem, {
34525
+ key: i,
34526
+ onClick: (l) => {
34527
+ r.$emit("sort-order-updated", o.key);
34528
+ },
34529
+ active: unref(n).sortBy === o.key,
34530
+ "data-test": `vs-fed-search-sort__dropdown-item--${o.key}`
34529
34531
  }, {
34530
34532
  default: withCtx(() => [
34531
- createTextVNode(toDisplayString(l.label), 1)
34533
+ createTextVNode(toDisplayString(o.label), 1)
34532
34534
  ]),
34533
34535
  _: 2
34534
34536
  }, 1032, ["onClick", "active", "data-test"]))), 128))
@@ -34542,7 +34544,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34542
34544
  _: 1
34543
34545
  }));
34544
34546
  }
34545
- }), _hoisted_1 = {
34547
+ }, _hoisted_1 = {
34546
34548
  class: "vs-federated-search",
34547
34549
  "data-test": "vs-federated-search"
34548
34550
  }, _hoisted_2 = { class: "vs-federated-search__container" }, _hoisted_3 = {
@@ -34642,6 +34644,16 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34642
34644
  required: !0,
34643
34645
  default: () => {
34644
34646
  }
34647
+ },
34648
+ /**
34649
+ * Site language used for the Events API.
34650
+ */
34651
+ siteLanguage: {
34652
+ type: String,
34653
+ default: "en",
34654
+ validator: (e) => e.match(
34655
+ /(en|es|it|de|nl|fr)/
34656
+ )
34645
34657
  }
34646
34658
  },
34647
34659
  setup(e) {
@@ -34665,7 +34677,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34665
34677
  apiKey: a.cludoApiKey,
34666
34678
  customerId: a.cludoCustomerId,
34667
34679
  engineId: a.cludoEngineId
34668
- }, n.eventsApi = a.eventsApi, n.cludoCategories = a.cludoCategories, s(), typeof window < "u" && typeof document < "u") {
34680
+ }, n.eventsApi = a.eventsApi, n.cludoCategories = a.cludoCategories, n.siteLanguage = a.siteLanguage, s(), typeof window < "u" && typeof document < "u") {
34669
34681
  const f = new URLSearchParams(document.location.search), p = f.get("search-term"), g = parseInt(f.get("page"), 10);
34670
34682
  g && (n.currentPage = g), p && (n.searchTerm = p, n.getSearchResults());
34671
34683
  }
@@ -34755,7 +34767,10 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34755
34767
  ])) : createCommentVNode("", !0),
34756
34768
  unref(n).isLoading ? (openBlock(), createBlock(unref(VsLoading), { key: 1 })) : createCommentVNode("", !0),
34757
34769
  !unref(n).isLoading && unref(n).results && !unref(n).eventsApiError ? (openBlock(), createElementBlock("div", _hoisted_4, [
34758
- createVNode(unref(VsCardGroup), { "cards-per-row": 3 }, {
34770
+ createVNode(unref(VsCardGroup), {
34771
+ "cards-per-row": 3,
34772
+ class: normalizeClass(unref(n).results && r.value <= 1 ? "mb-300" : null)
34773
+ }, {
34759
34774
  default: withCtx(() => [
34760
34775
  (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(n).results, (g) => (openBlock(), createBlock(unref(VsCard), {
34761
34776
  key: g.id
@@ -34861,7 +34876,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
34861
34876
  }, 1024))), 128))
34862
34877
  ]),
34863
34878
  _: 1
34864
- }),
34879
+ }, 8, ["class"]),
34865
34880
  unref(n).results && r.value > 1 ? (openBlock(), createBlock(unref(_sfc_main$E), {
34866
34881
  key: 0,
34867
34882
  class: "vs-federated-search__pagination",