@searchcraft/vue-sdk 0.10.1 → 0.10.2

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.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Za = Object.defineProperty;
2
- var Ka = (e, t, r) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var f = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { defineComponent as Qa, ref as Xa, getCurrentInstance as Ja, inject as en, h as tn } from "vue";
2
+ var Qa = (e, t, r) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var d = (e, t, r) => Qa(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { defineComponent as Ka, ref as Xa, getCurrentInstance as Ja, inject as en, h as tn } from "vue";
5
5
  const rn = "searchcraft-javascript-sdk", Ne = (
6
6
  /* searchcraft-javascript-sdk */
7
7
  { experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
@@ -27,7 +27,7 @@ var sn = Object.defineProperty, an = (e, t) => {
27
27
  }), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
28
28
  }
29
29
  });
30
- }, Jt = /* @__PURE__ */ new WeakMap(), ln = (e) => Jt.delete(e), Ce = (e) => Jt.get(e), un = (e, t) => {
30
+ }, Jt = /* @__PURE__ */ new WeakMap(), ln = (e) => Jt.delete(e), ke = (e) => Jt.get(e), un = (e, t) => {
31
31
  const r = {
32
32
  $flags$: 0,
33
33
  $hostElement$: e,
@@ -37,7 +37,7 @@ var sn = Object.defineProperty, an = (e, t) => {
37
37
  r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
38
38
  const s = Jt.set(e, r);
39
39
  return cn(e, r), s;
40
- }, Qr = (e, t) => t in e, kt = (e, t) => (0, console.error)(e, t), Ct = typeof window < "u" ? window : {}, De = Ct.document || { head: {} }, O = Ct.HTMLElement || class {
40
+ }, Kr = (e, t) => t in e, Ct = (e, t) => (0, console.error)(e, t), St = typeof window < "u" ? window : {}, De = St.document || { head: {} }, D = St.HTMLElement || class {
41
41
  }, re = {
42
42
  $flags$: 0,
43
43
  $resourcesUrl$: "",
@@ -46,31 +46,31 @@ var sn = Object.defineProperty, an = (e, t) => {
46
46
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
47
47
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
48
48
  ce: (e, t) => new CustomEvent(e, t)
49
- }, hn = Ne.shadowDom, dn = (e) => Promise.resolve(e), Zt = !1, Xr = [], xs = [], fn = (e, t) => (r) => {
50
- e.push(r), Zt || (Zt = !0, re.$flags$ & 4 ? er(Kt) : re.raf(Kt));
49
+ }, hn = Ne.shadowDom, fn = (e) => Promise.resolve(e), Zt = !1, Xr = [], xs = [], dn = (e, t) => (r) => {
50
+ e.push(r), Zt || (Zt = !0, re.$flags$ & 4 ? er(Qt) : re.raf(Qt));
51
51
  }, Jr = (e) => {
52
52
  for (let t = 0; t < e.length; t++)
53
53
  try {
54
54
  e[t](performance.now());
55
55
  } catch (r) {
56
- kt(r);
56
+ Ct(r);
57
57
  }
58
58
  e.length = 0;
59
- }, Kt = () => {
60
- Jr(Xr), Jr(xs), (Zt = Xr.length > 0) && re.raf(Kt);
61
- }, er = (e) => dn().then(e), pn = /* @__PURE__ */ fn(xs), tr = (e) => (e = typeof e, e === "object" || e === "function"), mn = {};
59
+ }, Qt = () => {
60
+ Jr(Xr), Jr(xs), (Zt = Xr.length > 0) && re.raf(Qt);
61
+ }, er = (e) => fn().then(e), pn = /* @__PURE__ */ dn(xs), tr = (e) => (e = typeof e, e === "object" || e === "function"), mn = {};
62
62
  an(mn, {
63
- err: () => Es,
63
+ err: () => Rs,
64
64
  map: () => gn,
65
- ok: () => Qt,
65
+ ok: () => Kt,
66
66
  unwrap: () => vn,
67
67
  unwrapErr: () => bn
68
68
  });
69
- var Qt = (e) => ({
69
+ var Kt = (e) => ({
70
70
  isOk: !0,
71
71
  isErr: !1,
72
72
  value: e
73
- }), Es = (e) => ({
73
+ }), Rs = (e) => ({
74
74
  isOk: !1,
75
75
  isErr: !0,
76
76
  value: e
@@ -78,11 +78,11 @@ var Qt = (e) => ({
78
78
  function gn(e, t) {
79
79
  if (e.isOk) {
80
80
  const r = t(e.value);
81
- return r instanceof Promise ? r.then((s) => Qt(s)) : Qt(r);
81
+ return r instanceof Promise ? r.then((s) => Kt(s)) : Kt(r);
82
82
  }
83
83
  if (e.isErr) {
84
84
  const r = e.value;
85
- return Es(r);
85
+ return Rs(r);
86
86
  }
87
87
  throw "should never get here";
88
88
  }
@@ -94,14 +94,14 @@ var vn = (e) => {
94
94
  if (e.isErr)
95
95
  return e.value;
96
96
  throw e.value;
97
- }, Rs = (e) => {
97
+ }, Es = (e) => {
98
98
  const t = e.__childNodes || e.childNodes;
99
99
  e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ps(t, e.tagName).forEach((r) => {
100
100
  var s;
101
101
  r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = yn(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
102
102
  });
103
103
  for (const r of t)
104
- r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Rs(r);
104
+ r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Es(r);
105
105
  };
106
106
  function Ps(e, t, r) {
107
107
  let s = 0, a = [], o;
@@ -114,25 +114,25 @@ var yn = (e, t, r = !0) => {
114
114
  for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
115
115
  s.push(e);
116
116
  return s;
117
- }, es = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Qe = (e, t = "") => () => {
117
+ }, es = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ke = (e, t = "") => () => {
118
118
  }, i = (e, t, ...r) => {
119
119
  let s = null, a = null, o = null, n = !1, c = !1;
120
120
  const u = [], h = (p) => {
121
- for (let m = 0; m < p.length; m++)
122
- s = p[m], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !tr(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? mt(null, s) : s), c = n);
121
+ for (let g = 0; g < p.length; g++)
122
+ s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !tr(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? mt(null, s) : s), c = n);
123
123
  };
124
124
  if (h(r), t) {
125
125
  t.key && (a = t.key), t.name && (o = t.name);
126
126
  {
127
127
  const p = t.className || t.class;
128
- p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((m) => p[m]).join(" "));
128
+ p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((g) => p[g]).join(" "));
129
129
  }
130
130
  }
131
131
  if (typeof e == "function")
132
132
  return e(
133
133
  t === null ? {} : t,
134
134
  u,
135
- Sn
135
+ kn
136
136
  );
137
137
  const l = mt(e, null);
138
138
  return l.$attrs$ = t, u.length > 0 && (l.$children$ = u), l.$key$ = a, l.$name$ = o, l;
@@ -145,7 +145,7 @@ var yn = (e, t, r = !0) => {
145
145
  $children$: null
146
146
  };
147
147
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
148
- }, kn = {}, Cn = (e) => e && e.$tag$ === kn, Sn = {
148
+ }, Cn = {}, Sn = (e) => e && e.$tag$ === Cn, kn = {
149
149
  forEach: (e, t) => e.map(ts).forEach(t),
150
150
  map: (e, t) => e.map(ts).map(t).map(wn)
151
151
  }, ts = (e) => ({
@@ -162,7 +162,7 @@ var yn = (e, t, r = !0) => {
162
162
  }
163
163
  const t = mt(e.vtag, e.vtext);
164
164
  return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
165
- }, Ts = (e, t) => e != null && !tr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, xn = (e) => e, ye = (e, t, r) => {
165
+ }, Ts = (e, t) => e != null && !tr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, xn = (e) => e, Ce = (e, t, r) => {
166
166
  const s = xn(e);
167
167
  return {
168
168
  emit: (a) => $s(s, t, {
@@ -177,7 +177,7 @@ var yn = (e, t, r = !0) => {
177
177
  return e.dispatchEvent(s), s;
178
178
  }, ht = /* @__PURE__ */ new WeakMap(), rs = (e, t, r, s, a, o) => {
179
179
  if (r !== s) {
180
- let n = Qr(e, t), c = t.toLowerCase();
180
+ let n = Kr(e, t), c = t.toLowerCase();
181
181
  if (t === "class") {
182
182
  const u = e.classList, h = ss(r);
183
183
  let l = ss(s);
@@ -190,9 +190,9 @@ var yn = (e, t, r = !0) => {
190
190
  for (const u in s)
191
191
  (!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
192
192
  } else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
193
- if (t[2] === "-" ? t = t.slice(3) : Qr(Ct, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
193
+ if (t[2] === "-" ? t = t.slice(3) : Kr(St, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
194
194
  const u = t.endsWith(_s);
195
- t = t.replace(Rn, ""), r && re.rel(e, t, r, u), s && re.ael(e, t, s, u);
195
+ t = t.replace(En, ""), r && re.rel(e, t, r, u), s && re.ael(e, t, s, u);
196
196
  }
197
197
  } else {
198
198
  const u = tr(s);
@@ -209,7 +209,7 @@ var yn = (e, t, r = !0) => {
209
209
  s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !u && (s = s === !0 ? "" : s, e.setAttribute(t, s));
210
210
  }
211
211
  }
212
- }, En = /\s/, ss = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(En) : []), _s = "Capture", Rn = new RegExp(_s + "$"), As = (e, t, r) => {
212
+ }, Rn = /\s/, ss = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Rn) : []), _s = "Capture", En = new RegExp(_s + "$"), Is = (e, t, r) => {
213
213
  const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || {}, o = t.$attrs$ || {};
214
214
  for (const n of as(Object.keys(a)))
215
215
  n in o || rs(s, n, a[n], void 0, r, t.$flags$);
@@ -246,7 +246,7 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
246
246
  if (ae || (ae = a.$tag$ === "svg"), n = a.$elm$ = De.createElementNS(
247
247
  ae ? nn : on,
248
248
  !gt && Ne.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
249
- ), ae && a.$tag$ === "foreignObject" && (ae = !1), As(null, a, ae), a.$children$)
249
+ ), ae && a.$tag$ === "foreignObject" && (ae = !1), Is(null, a, ae), a.$children$)
250
250
  for (o = 0; o < a.$children$.length; ++o)
251
251
  c = bt(e, a, o), c && n.appendChild(c);
252
252
  a.$tag$ === "svg" ? ae = !1 : n.tagName === "foreignObject" && (ae = !0);
@@ -258,13 +258,13 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
258
258
  e["s-sr"] && Ne.experimentalSlotFixes;
259
259
  for (let s = r.length - 1; s >= 0; s--) {
260
260
  const a = r[s];
261
- a["s-hn"] !== rr && a["s-ol"] && (ke(Je(a).parentNode, a, Je(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, sr = !0), t && Xe(a, t);
261
+ a["s-hn"] !== rr && a["s-ol"] && (Se(Je(a).parentNode, a, Je(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, sr = !0), t && Xe(a, t);
262
262
  }
263
263
  re.$flags$ &= -2;
264
- }, Is = (e, t, r, s, a, o) => {
264
+ }, As = (e, t, r, s, a, o) => {
265
265
  let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
266
266
  for (; a <= o; ++a)
267
- s[a] && (c = bt(null, r, a), c && (s[a].$elm$ = c, ke(n, c, Je(t))));
267
+ s[a] && (c = bt(null, r, a), c && (s[a].$elm$ = c, Se(n, c, Je(t))));
268
268
  }, Ms = (e, t, r) => {
269
269
  for (let s = t; s <= r; ++s) {
270
270
  const a = e[s];
@@ -274,52 +274,52 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
274
274
  }
275
275
  }
276
276
  }, Pn = (e, t, r, s, a = !1) => {
277
- let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, l = t[0], p = t[h], m = s.length - 1, b = s[0], v = s[m], P, D;
278
- for (; o <= h && n <= m; )
277
+ let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, l = t[0], p = t[h], g = s.length - 1, k = s[0], b = s[g], P, _;
278
+ for (; o <= h && n <= g; )
279
279
  if (l == null)
280
280
  l = t[++o];
281
281
  else if (p == null)
282
282
  p = t[--h];
283
+ else if (k == null)
284
+ k = s[++n];
283
285
  else if (b == null)
284
- b = s[++n];
285
- else if (v == null)
286
- v = s[--m];
287
- else if (dt(l, b, a))
288
- Oe(l, b, a), l = t[++o], b = s[++n];
289
- else if (dt(p, v, a))
290
- Oe(p, v, a), p = t[--h], v = s[--m];
291
- else if (dt(l, v, a))
292
- (l.$tag$ === "slot" || v.$tag$ === "slot") && Xe(l.$elm$.parentNode, !1), Oe(l, v, a), ke(e, l.$elm$, p.$elm$.nextSibling), l = t[++o], v = s[--m];
293
- else if (dt(p, b, a))
294
- (l.$tag$ === "slot" || v.$tag$ === "slot") && Xe(p.$elm$.parentNode, !1), Oe(p, b, a), ke(e, p.$elm$, l.$elm$), p = t[--h], b = s[++n];
286
+ b = s[--g];
287
+ else if (ft(l, k, a))
288
+ Oe(l, k, a), l = t[++o], k = s[++n];
289
+ else if (ft(p, b, a))
290
+ Oe(p, b, a), p = t[--h], b = s[--g];
291
+ else if (ft(l, b, a))
292
+ (l.$tag$ === "slot" || b.$tag$ === "slot") && Xe(l.$elm$.parentNode, !1), Oe(l, b, a), Se(e, l.$elm$, p.$elm$.nextSibling), l = t[++o], b = s[--g];
293
+ else if (ft(p, k, a))
294
+ (l.$tag$ === "slot" || b.$tag$ === "slot") && Xe(p.$elm$.parentNode, !1), Oe(p, k, a), Se(e, p.$elm$, l.$elm$), p = t[--h], k = s[++n];
295
295
  else {
296
296
  for (c = -1, u = o; u <= h; ++u)
297
- if (t[u] && t[u].$key$ !== null && t[u].$key$ === b.$key$) {
297
+ if (t[u] && t[u].$key$ !== null && t[u].$key$ === k.$key$) {
298
298
  c = u;
299
299
  break;
300
300
  }
301
- c >= 0 ? (D = t[c], D.$tag$ !== b.$tag$ ? P = bt(t && t[n], r, c) : (Oe(D, b, a), t[c] = void 0, P = D.$elm$), b = s[++n]) : (P = bt(t && t[n], r, n), b = s[++n]), P && ke(
301
+ c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P = bt(t && t[n], r, c) : (Oe(_, k, a), t[c] = void 0, P = _.$elm$), k = s[++n]) : (P = bt(t && t[n], r, n), k = s[++n]), P && Se(
302
302
  Je(l.$elm$).parentNode,
303
303
  P,
304
304
  Je(l.$elm$)
305
305
  );
306
306
  }
307
- o > h ? Is(
307
+ o > h ? As(
308
308
  e,
309
- s[m + 1] == null ? null : s[m + 1].$elm$,
309
+ s[g + 1] == null ? null : s[g + 1].$elm$,
310
310
  r,
311
311
  s,
312
312
  n,
313
- m
314
- ) : n > m && Ms(t, o, h);
315
- }, dt = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, Je = (e) => e && e["s-ol"] || e, Oe = (e, t, r = !1) => {
313
+ g
314
+ ) : n > g && Ms(t, o, h);
315
+ }, ft = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, Je = (e) => e && e["s-ol"] || e, Oe = (e, t, r = !1) => {
316
316
  const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
317
317
  let u;
318
- c === null ? (ae = n === "svg" ? !0 : n === "foreignObject" ? !1 : ae, n === "slot" && !gt || As(e, t, ae), a !== null && o !== null ? Pn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Is(s, null, t, o, 0, o.length - 1)) : (
318
+ c === null ? (ae = n === "svg" ? !0 : n === "foreignObject" ? !1 : ae, n === "slot" && !gt || Is(e, t, ae), a !== null && o !== null ? Pn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), As(s, null, t, o, 0, o.length - 1)) : (
319
319
  // don't do this on initial render as it can cause non-hydrated content to be removed
320
320
  !r && Ne.updatable && a !== null && Ms(a, 0, a.length - 1)
321
321
  ), ae && n === "svg" && (ae = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
322
- }, pe = [], Ls = (e) => {
322
+ }, me = [], Ls = (e) => {
323
323
  let t, r, s;
324
324
  const a = e.__childNodes || e.childNodes;
325
325
  for (const o of a) {
@@ -329,22 +329,22 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
329
329
  for (s = r.length - 1; s >= 0; s--)
330
330
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
331
331
  if (es(t, n)) {
332
- let c = pe.find((u) => u.$nodeToRelocate$ === t);
333
- vt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], pe.push({
332
+ let c = me.find((u) => u.$nodeToRelocate$ === t);
333
+ vt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], me.push({
334
334
  $slotRefNode$: o,
335
335
  $nodeToRelocate$: t
336
- })), t["s-sr"] && pe.map((u) => {
337
- es(u.$nodeToRelocate$, t["s-sn"]) && (c = pe.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
336
+ })), t["s-sr"] && me.map((u) => {
337
+ es(u.$nodeToRelocate$, t["s-sn"]) && (c = me.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
338
338
  });
339
- } else pe.some((c) => c.$nodeToRelocate$ === t) || pe.push({
339
+ } else me.some((c) => c.$nodeToRelocate$ === t) || me.push({
340
340
  $nodeToRelocate$: t
341
341
  });
342
342
  }
343
343
  o.nodeType === 1 && Ls(o);
344
344
  }
345
- }, ke = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Tn = (e, t, r = !1) => {
345
+ }, Se = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Tn = (e, t, r = !1) => {
346
346
  var s, a, o, n;
347
- const c = e.$hostElement$, u = e.$vnode$ || mt(null, null), h = Cn(t) ? t : i(null, null, t);
347
+ const c = e.$hostElement$, u = e.$vnode$ || mt(null, null), h = Sn(t) ? t : i(null, null, t);
348
348
  if (rr = c.tagName, r && h.$attrs$)
349
349
  for (const l of Object.keys(h.$attrs$))
350
350
  c.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (h.$attrs$[l] = c[l]);
@@ -352,40 +352,40 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
352
352
  {
353
353
  if (re.$flags$ |= 1, sr) {
354
354
  Ls(h.$elm$);
355
- for (const l of pe) {
355
+ for (const l of me) {
356
356
  const p = l.$nodeToRelocate$;
357
357
  if (!p["s-ol"]) {
358
- const m = De.createTextNode("");
359
- m["s-nr"] = p, ke(p.parentNode, p["s-ol"] = m, p);
358
+ const g = De.createTextNode("");
359
+ g["s-nr"] = p, Se(p.parentNode, p["s-ol"] = g, p);
360
360
  }
361
361
  }
362
- for (const l of pe) {
363
- const p = l.$nodeToRelocate$, m = l.$slotRefNode$;
364
- if (m) {
365
- const b = m.parentNode;
366
- let v = m.nextSibling;
362
+ for (const l of me) {
363
+ const p = l.$nodeToRelocate$, g = l.$slotRefNode$;
364
+ if (g) {
365
+ const k = g.parentNode;
366
+ let b = g.nextSibling;
367
367
  {
368
- let B = (s = p["s-ol"]) == null ? void 0 : s.previousSibling;
369
- for (; B; ) {
370
- let _ = (a = B["s-nr"]) != null ? a : null;
371
- if (_ && _["s-sn"] === p["s-sn"] && b === (_.__parentNode || _.parentNode)) {
372
- for (_ = _.nextSibling; _ === p || _ != null && _["s-sr"]; )
373
- _ = _ == null ? void 0 : _.nextSibling;
374
- if (!_ || !_["s-nr"]) {
375
- v = _;
368
+ let O = (s = p["s-ol"]) == null ? void 0 : s.previousSibling;
369
+ for (; O; ) {
370
+ let T = (a = O["s-nr"]) != null ? a : null;
371
+ if (T && T["s-sn"] === p["s-sn"] && k === (T.__parentNode || T.parentNode)) {
372
+ for (T = T.nextSibling; T === p || T != null && T["s-sr"]; )
373
+ T = T == null ? void 0 : T.nextSibling;
374
+ if (!T || !T["s-nr"]) {
375
+ b = T;
376
376
  break;
377
377
  }
378
378
  }
379
- B = B.previousSibling;
379
+ O = O.previousSibling;
380
380
  }
381
381
  }
382
- const P = p.__parentNode || p.parentNode, D = p.__nextSibling || p.nextSibling;
383
- (!v && b !== P || D !== v) && p !== v && (!p["s-hn"] && p["s-ol"] && (p["s-hn"] = p["s-ol"].parentNode.nodeName), ke(b, p, v), p.nodeType === 1 && p.tagName !== "SLOT-FB" && (p.hidden = (o = p["s-ih"]) != null ? o : !1)), p && typeof m["s-rf"] == "function" && m["s-rf"](p);
382
+ const P = p.__parentNode || p.parentNode, _ = p.__nextSibling || p.nextSibling;
383
+ (!b && k !== P || _ !== b) && p !== b && (!p["s-hn"] && p["s-ol"] && (p["s-hn"] = p["s-ol"].parentNode.nodeName), Se(k, p, b), p.nodeType === 1 && p.tagName !== "SLOT-FB" && (p.hidden = (o = p["s-ih"]) != null ? o : !1)), p && typeof g["s-rf"] == "function" && g["s-rf"](p);
384
384
  } else
385
385
  p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
386
386
  }
387
387
  }
388
- vt && Rs(h.$elm$), re.$flags$ &= -2, pe.length = 0;
388
+ vt && Es(h.$elm$), re.$flags$ &= -2, me.length = 0;
389
389
  }
390
390
  Xt = void 0;
391
391
  }, Os = (e, t) => {
@@ -405,18 +405,18 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
405
405
  }
406
406
  return Os(e, e.$ancestorComponent$), pn(() => $n(e, t));
407
407
  }, $n = (e, t) => {
408
- const r = e.$hostElement$, s = Qe("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
408
+ const r = e.$hostElement$, s = Ke("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
409
409
  if (!a)
410
410
  throw new Error(
411
411
  `Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
412
412
  );
413
413
  let o;
414
- return s(), _n(o, () => In(e, a, t));
415
- }, _n = (e, t) => An(e) ? e.then(t).catch((r) => {
414
+ return s(), _n(o, () => An(e, a, t));
415
+ }, _n = (e, t) => In(e) ? e.then(t).catch((r) => {
416
416
  console.error(r), t();
417
- }) : t(), An = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", In = async (e, t, r) => {
417
+ }) : t(), In = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", An = async (e, t, r) => {
418
418
  var s;
419
- const a = e.$hostElement$, o = Qe("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Qe("render", e.$cmpMeta$.$tagName$);
419
+ const a = e.$hostElement$, o = Ke("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Ke("render", e.$cmpMeta$.$tagName$);
420
420
  Mn(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
421
421
  {
422
422
  const u = (s = a["s-p"]) != null ? s : [], h = () => Ln(e);
@@ -426,26 +426,26 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
426
426
  try {
427
427
  t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Tn(e, t, s);
428
428
  } catch (a) {
429
- kt(a, e.$hostElement$);
429
+ Ct(a, e.$hostElement$);
430
430
  }
431
431
  return null;
432
432
  }, Ln = (e) => {
433
- const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Qe("postUpdate", t), a = r, o = e.$ancestorComponent$;
433
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
434
434
  e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Fs(r), Fn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || On()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && er(() => ar(e, !1)), e.$flags$ &= -517;
435
435
  }, On = (e) => {
436
- Fs(De.documentElement), er(() => $s(Ct, "appload", { detail: { namespace: rn } }));
436
+ Fs(De.documentElement), er(() => $s(St, "appload", { detail: { namespace: rn } }));
437
437
  }, Fn = (e, t, r, s) => {
438
438
  if (e && e[t])
439
439
  try {
440
440
  return e[t](r);
441
441
  } catch (a) {
442
- kt(a, s);
442
+ Ct(a, s);
443
443
  }
444
444
  }, Fs = (e) => {
445
445
  var t;
446
446
  return e.classList.add((t = Ne.hydratedSelectorName) != null ? t : "hydrated");
447
- }, Dn = (e, t) => Ce(e).$instanceValues$.get(t), ns = (e, t, r, s) => {
448
- const a = Ce(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
447
+ }, Dn = (e, t) => ke(e).$instanceValues$.get(t), ns = (e, t, r, s) => {
448
+ const a = ke(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
449
449
  r = Ts(r, s.$members$[t][0]);
450
450
  const h = Number.isNaN(n) && Number.isNaN(r);
451
451
  if (r !== n && !h) {
@@ -453,11 +453,11 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
453
453
  {
454
454
  if (s.$watchers$ && c & 128) {
455
455
  const p = s.$watchers$[t];
456
- p && p.map((m) => {
456
+ p && p.map((g) => {
457
457
  try {
458
- u[m](r, n, t);
459
- } catch (b) {
460
- kt(b, o);
458
+ u[g](r, n, t);
459
+ } catch (k) {
460
+ Ct(k, o);
461
461
  }
462
462
  });
463
463
  }
@@ -481,10 +481,10 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
481
481
  enumerable: !0
482
482
  }), Object.defineProperty(o, c, {
483
483
  set(p) {
484
- const m = Ce(this);
484
+ const g = ke(this);
485
485
  if (l) {
486
- const b = u & 32 ? this[c] : m.$hostElement$[c];
487
- typeof b > "u" && m.$instanceValues$.get(c) ? p = m.$instanceValues$.get(c) : !m.$instanceValues$.get(c) && b && m.$instanceValues$.set(c, b), l.apply(this, [Ts(p, u)]), p = u & 32 ? this[c] : m.$hostElement$[c], ns(this, c, p, t);
486
+ const k = u & 32 ? this[c] : g.$hostElement$[c];
487
+ typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k), l.apply(this, [Ts(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], ns(this, c, p, t);
488
488
  return;
489
489
  }
490
490
  {
@@ -500,24 +500,24 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
500
500
  o.attributeChangedCallback = function(u, h, l) {
501
501
  re.jmp(() => {
502
502
  var p;
503
- const m = c.get(u);
504
- if (!(this.hasOwnProperty(m) && Ne.lazyLoad)) {
505
- if (o.hasOwnProperty(m) && typeof this[m] == "number" && // cast type to number to avoid TS compiler issues
506
- this[m] == l)
503
+ const g = c.get(u);
504
+ if (!(this.hasOwnProperty(g) && Ne.lazyLoad)) {
505
+ if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
506
+ this[g] == l)
507
507
  return;
508
- if (m == null) {
509
- const v = Ce(this), P = v == null ? void 0 : v.$flags$;
508
+ if (g == null) {
509
+ const b = ke(this), P = b == null ? void 0 : b.$flags$;
510
510
  if (P && !(P & 8) && P & 128 && l !== h) {
511
- const B = this, _ = (p = t.$watchers$) == null ? void 0 : p[u];
512
- _ == null || _.forEach((ue) => {
513
- B[ue] != null && B[ue].call(B, l, h, u);
511
+ const O = this, T = (p = t.$watchers$) == null ? void 0 : p[u];
512
+ T == null || T.forEach((ue) => {
513
+ O[ue] != null && O[ue].call(O, l, h, u);
514
514
  });
515
515
  }
516
516
  return;
517
517
  }
518
518
  }
519
- const b = Object.getOwnPropertyDescriptor(o, m);
520
- l = l === null && typeof this[m] == "boolean" ? !1 : l, l !== this[m] && (!b.get || b.set) && (this[m] = l);
519
+ const k = Object.getOwnPropertyDescriptor(o, g);
520
+ l = l === null && typeof this[g] == "boolean" ? !1 : l, l !== this[g] && (!k.get || k.set) && (this[g] = l);
521
521
  });
522
522
  }, e.observedAttributes = Array.from(
523
523
  /* @__PURE__ */ new Set([
@@ -550,12 +550,12 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
550
550
  }, Un = (e, t) => {
551
551
  }, zn = (e) => {
552
552
  if (!(re.$flags$ & 1)) {
553
- const t = Ce(e), r = t.$cmpMeta$, s = Qe("connectedCallback", r.$tagName$);
553
+ const t = ke(e), r = t.$cmpMeta$, s = Ke("connectedCallback", r.$tagName$);
554
554
  if (t.$flags$ & 1)
555
555
  t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Un());
556
556
  else {
557
557
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
558
- r.$flags$ & 12 && Vn(e);
558
+ r.$flags$ & 12 && jn(e);
559
559
  {
560
560
  let a = e;
561
561
  for (; a = a.parentNode || a.host; )
@@ -573,14 +573,14 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
573
573
  }
574
574
  s();
575
575
  }
576
- }, Vn = (e) => {
576
+ }, jn = (e) => {
577
577
  const t = e["s-cr"] = De.createComment(
578
578
  ""
579
579
  );
580
- t["s-cn"] = !0, ke(e, t, e.firstChild);
581
- }, jn = async (e) => {
582
- re.$flags$ & 1 || Ce(e), ht.has(e) && ht.delete(e), e.shadowRoot && ht.has(e.shadowRoot) && ht.delete(e.shadowRoot);
583
- }, F = (e, t) => {
580
+ t["s-cn"] = !0, Se(e, t, e.firstChild);
581
+ }, Vn = async (e) => {
582
+ re.$flags$ & 1 || ke(e), ht.has(e) && ht.delete(e), e.shadowRoot && ht.has(e.shadowRoot) && ht.delete(e.shadowRoot);
583
+ }, N = (e, t) => {
584
584
  const r = {
585
585
  $flags$: t[0],
586
586
  $tagName$: t[1]
@@ -593,12 +593,12 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
593
593
  un(this, r);
594
594
  },
595
595
  connectedCallback() {
596
- this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0), zn(this), s && s.call(this);
596
+ this.__hasHostListenerAttached || (ke(this), this.__hasHostListenerAttached = !0), zn(this), s && s.call(this);
597
597
  },
598
598
  disconnectedCallback() {
599
- jn(this), a && a.call(this), re.raf(() => {
599
+ Vn(this), a && a.call(this), re.raf(() => {
600
600
  var o;
601
- const n = Ce(this);
601
+ const n = ke(this);
602
602
  ((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && ln(this);
603
603
  });
604
604
  },
@@ -606,13 +606,13 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
606
606
  this.shadowRoot = this;
607
607
  }
608
608
  }), e.is = r.$tagName$, Nn(e, r);
609
- }, Bn = (e, t) => t, Wn = Object.defineProperty, Gn = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, I = (e, t, r) => Gn(e, typeof t != "symbol" ? t + "" : t, r), Pe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Pe || {});
609
+ }, Bn = (e, t) => t, Wn = Object.defineProperty, Gn = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => Gn(e, typeof t != "symbol" ? t + "" : t, r), pe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(pe || {});
610
610
  class qn {
611
611
  constructor(t) {
612
- I(this, "logLevel"), I(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
612
+ A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
613
613
  }
614
614
  defaultFormatter(t, r) {
615
- return `[${Pe[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
615
+ return `[${pe[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
616
616
  }
617
617
  debug(t) {
618
618
  this.logLevel <= 0 && console.log(this.logFormatter(0, t));
@@ -643,7 +643,7 @@ class qn {
643
643
  }
644
644
  }
645
645
  }
646
- function me(e, t, r, s) {
646
+ function ge(e, t, r, s) {
647
647
  return new (r || (r = Promise))(function(a, o) {
648
648
  function n(h) {
649
649
  try {
@@ -668,7 +668,7 @@ function me(e, t, r, s) {
668
668
  u((s = s.apply(e, [])).next());
669
669
  });
670
670
  }
671
- function ge(e, t) {
671
+ function ve(e, t) {
672
672
  var r, s, a, o, n = { label: 0, sent: function() {
673
673
  if (1 & a[0]) throw a[1];
674
674
  return a[1];
@@ -727,17 +727,17 @@ function ge(e, t) {
727
727
  };
728
728
  }
729
729
  }
730
- var ve = { exclude: [] }, Ds = {}, Yn = { timeout: "true" }, ce = function(e, t) {
730
+ var be = { exclude: [] }, Ds = {}, Yn = { timeout: "true" }, ce = function(e, t) {
731
731
  typeof window < "u" && (Ds[e] = t);
732
732
  }, Zn = function() {
733
733
  return Object.fromEntries(Object.entries(Ds).filter(function(e) {
734
734
  var t, r = e[0];
735
- return !(!((t = ve == null ? void 0 : ve.exclude) === null || t === void 0) && t.includes(r));
735
+ return !(!((t = be == null ? void 0 : be.exclude) === null || t === void 0) && t.includes(r));
736
736
  }).map(function(e) {
737
737
  return [e[0], (0, e[1])()];
738
738
  }));
739
739
  };
740
- function ft(e) {
740
+ function dt(e) {
741
741
  return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
742
742
  }
743
743
  var q = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
@@ -788,38 +788,38 @@ function nr(e, t) {
788
788
  h[0] = h[0] ^ l[0] << 0, h[0] = Math.imul(h[0], q[0]), h[0] = ne(h[0], 15), h[0] = Math.imul(h[0], q[1]), n[0] = n[0] ^ h[0];
789
789
  }
790
790
  }(e, s), function(o, n) {
791
- n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = ft(n[0]), n[1] = ft(n[1]), n[2] = ft(n[2]), n[3] = ft(n[3]), n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0;
791
+ n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = dt(n[0]), n[1] = dt(n[1]), n[2] = dt(n[2]), n[3] = dt(n[3]), n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0;
792
792
  }(e, s);
793
793
  var a = new Uint8Array(s.buffer);
794
794
  return Array.from(a).map(function(o) {
795
795
  return o.toString(16).padStart(2, "0");
796
796
  }).join("");
797
797
  }
798
- function Kn(e, t) {
798
+ function Qn(e, t) {
799
799
  return new Promise(function(r) {
800
800
  setTimeout(function() {
801
801
  return r(t);
802
802
  }, e);
803
803
  });
804
804
  }
805
- function Qn(e, t, r) {
805
+ function Kn(e, t, r) {
806
806
  return Promise.all(e.map(function(s) {
807
- return Promise.race([s, Kn(t, r)]);
807
+ return Promise.race([s, Qn(t, r)]);
808
808
  }));
809
809
  }
810
810
  function Xn() {
811
- return me(this, void 0, void 0, function() {
811
+ return ge(this, void 0, void 0, function() {
812
812
  var e, t, r, s, a;
813
- return ge(this, function(o) {
813
+ return ve(this, function(o) {
814
814
  switch (o.label) {
815
815
  case 0:
816
- return o.trys.push([0, 2, , 3]), e = Zn(), t = Object.keys(e), [4, Qn(Object.values(e), (ve == null ? void 0 : ve.timeout) || 1e3, Yn)];
816
+ return o.trys.push([0, 2, , 3]), e = Zn(), t = Object.keys(e), [4, Kn(Object.values(e), (be == null ? void 0 : be.timeout) || 1e3, Yn)];
817
817
  case 1:
818
818
  return r = o.sent(), s = r.filter(function(n) {
819
819
  return n !== void 0;
820
820
  }), a = {}, s.forEach(function(n, c) {
821
821
  a[t[c]] = n;
822
- }), [2, Ns(a, ve.exclude || [])];
822
+ }), [2, Ns(a, be.exclude || [])];
823
823
  case 2:
824
824
  throw o.sent();
825
825
  case 3:
@@ -845,9 +845,9 @@ function Ns(e, t) {
845
845
  return r;
846
846
  }
847
847
  function Jn(e) {
848
- return me(this, void 0, void 0, function() {
848
+ return ge(this, void 0, void 0, function() {
849
849
  var t, r;
850
- return ge(this, function(s) {
850
+ return ve(this, function(s) {
851
851
  switch (s.label) {
852
852
  case 0:
853
853
  return s.trys.push([0, 2, , 3]), [4, Xn()];
@@ -890,8 +890,8 @@ function et() {
890
890
  return { name: "unknown", version: "unknown" };
891
891
  }
892
892
  ce("audio", function() {
893
- return me(this, void 0, void 0, function() {
894
- return ge(this, function(e) {
893
+ return ge(this, void 0, void 0, function() {
894
+ return ve(this, function(e) {
895
895
  return [2, new Promise(function(t, r) {
896
896
  try {
897
897
  var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), a = s.createBufferSource(), o = s.createOscillator();
@@ -995,9 +995,9 @@ et().name != "Firefox" && ce("fonts", function() {
995
995
  try {
996
996
  (function(s) {
997
997
  var a;
998
- me(this, void 0, void 0, function() {
998
+ ge(this, void 0, void 0, function() {
999
999
  var o, n, c;
1000
- return ge(this, function(u) {
1000
+ return ve(this, function(u) {
1001
1001
  switch (u.label) {
1002
1002
  case 0:
1003
1003
  return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
@@ -1016,9 +1016,9 @@ et().name != "Firefox" && ce("fonts", function() {
1016
1016
  });
1017
1017
  })(function(s) {
1018
1018
  var a = s.iframe;
1019
- return me(e, void 0, void 0, function() {
1019
+ return ge(e, void 0, void 0, function() {
1020
1020
  var o, n, c, u;
1021
- return ge(this, function(h) {
1021
+ return ve(this, function(h) {
1022
1022
  return o = a.createElement("canvas"), n = o.getContext("2d"), c = ao.map(function(l) {
1023
1023
  return is(n, l);
1024
1024
  }), u = {}, so.forEach(function(l) {
@@ -1042,14 +1042,14 @@ et().name != "Firefox" && ce("fonts", function() {
1042
1042
  e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
1043
1043
  });
1044
1044
  }), ce("permissions", function() {
1045
- return me(this, void 0, void 0, function() {
1045
+ return ge(this, void 0, void 0, function() {
1046
1046
  var e;
1047
- return ge(this, function(t) {
1048
- return Gt = (ve == null ? void 0 : ve.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (ve == null ? void 0 : ve.retries) || 3 }, function() {
1047
+ return ve(this, function(t) {
1048
+ return Gt = (be == null ? void 0 : be.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (be == null ? void 0 : be.retries) || 3 }, function() {
1049
1049
  return function() {
1050
- return me(this, void 0, void 0, function() {
1050
+ return ge(this, void 0, void 0, function() {
1051
1051
  var r, s, a, o, n;
1052
- return ge(this, function(c) {
1052
+ return ve(this, function(c) {
1053
1053
  switch (c.label) {
1054
1054
  case 0:
1055
1055
  r = {}, s = 0, a = Gt, c.label = 1;
@@ -1096,9 +1096,9 @@ et().name != "Firefox" && ce("fonts", function() {
1096
1096
  });
1097
1097
  var X, uo = et().name !== "SamsungBrowser" ? 1 : 3, S = null;
1098
1098
  ce("webgl", function() {
1099
- return me(this, void 0, void 0, function() {
1099
+ return ge(this, void 0, void 0, function() {
1100
1100
  var e;
1101
- return ge(this, function(t) {
1101
+ return ve(this, function(t) {
1102
1102
  typeof document < "u" && ((X = document.createElement("canvas")).width = 200, X.height = 100, S = X.getContext("webgl"));
1103
1103
  try {
1104
1104
  if (!S) throw new Error("WebGL not supported");
@@ -1128,12 +1128,12 @@ ce("webgl", function() {
1128
1128
  var p = l * h;
1129
1129
  u[4 * l] = 0, u[4 * l + 1] = 0, u[4 * l + 2] = Math.cos(p) * (X.width / 2), u[4 * l + 3] = Math.sin(p) * (X.height / 2);
1130
1130
  }
1131
- var m = S.createBuffer();
1132
- S.bindBuffer(S.ARRAY_BUFFER, m), S.bufferData(S.ARRAY_BUFFER, u, S.STATIC_DRAW);
1133
- var b = S.getAttribLocation(n, "position");
1134
- S.enableVertexAttribArray(b), S.vertexAttribPointer(b, 2, S.FLOAT, !1, 0, 0), S.viewport(0, 0, X.width, X.height), S.clearColor(0, 0, 0, 1), S.clear(S.COLOR_BUFFER_BIT), S.drawArrays(S.LINES, 0, 2 * c);
1135
- var v = new Uint8ClampedArray(X.width * X.height * 4);
1136
- return S.readPixels(0, 0, X.width, X.height, S.RGBA, S.UNSIGNED_BYTE, v), new ImageData(v, X.width, X.height);
1131
+ var g = S.createBuffer();
1132
+ S.bindBuffer(S.ARRAY_BUFFER, g), S.bufferData(S.ARRAY_BUFFER, u, S.STATIC_DRAW);
1133
+ var k = S.getAttribLocation(n, "position");
1134
+ S.enableVertexAttribArray(k), S.vertexAttribPointer(k, 2, S.FLOAT, !1, 0, 0), S.viewport(0, 0, X.width, X.height), S.clearColor(0, 0, 0, 1), S.clear(S.COLOR_BUFFER_BIT), S.drawArrays(S.LINES, 0, 2 * c);
1135
+ var b = new Uint8ClampedArray(X.width * X.height * 4);
1136
+ return S.readPixels(0, 0, X.width, X.height, S.RGBA, S.UNSIGNED_BYTE, b), new ImageData(b, X.width, X.height);
1137
1137
  } catch {
1138
1138
  return new ImageData(1, 1);
1139
1139
  } finally {
@@ -1148,15 +1148,15 @@ ce("webgl", function() {
1148
1148
  });
1149
1149
  });
1150
1150
  });
1151
- var Re = function(e, t, r, s) {
1151
+ var Pe = function(e, t, r, s) {
1152
1152
  for (var a = (r - t) / s, o = 0, n = 0; n < s; n++)
1153
1153
  o += e(t + (n + 0.5) * a);
1154
1154
  return o * a;
1155
1155
  };
1156
1156
  ce("math", function() {
1157
- return me(void 0, void 0, void 0, function() {
1158
- return ge(this, function(e) {
1159
- return [2, { acos: Math.acos(0.5), asin: Re(Math.asin, -1, 1, 97), atan: Re(Math.atan, -1, 1, 97), cos: Re(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: Re(Math.sin, -Math.PI, Math.PI, 97), sinh: Re(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: Re(Math.tan, 0, 2 * Math.PI, 97), tanh: Re(Math.tanh, -9 / 7, 7 / 9, 97) }];
1157
+ return ge(void 0, void 0, void 0, function() {
1158
+ return ve(this, function(e) {
1159
+ return [2, { acos: Math.acos(0.5), asin: Pe(Math.asin, -1, 1, 97), atan: Pe(Math.atan, -1, 1, 97), cos: Pe(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: Pe(Math.sin, -Math.PI, Math.PI, 97), sinh: Pe(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: Pe(Math.tan, 0, 2 * Math.PI, 97), tanh: Pe(Math.tanh, -9 / 7, 7 / 9, 97) }];
1160
1160
  });
1161
1161
  });
1162
1162
  });
@@ -1169,9 +1169,9 @@ let yt = (e = 21) => {
1169
1169
  };
1170
1170
  class or {
1171
1171
  constructor(t) {
1172
- I(this, "config"), this.config = t;
1172
+ A(this, "config"), this.config = t;
1173
1173
  }
1174
- async getAdsForSearchParams(t) {
1174
+ async getAds(t) {
1175
1175
  return [];
1176
1176
  }
1177
1177
  async onQuerySubmitted(t) {
@@ -1189,7 +1189,7 @@ class fo extends or {
1189
1189
  /**
1190
1190
  * Gets ads from the adMarketplace API based on the search term.
1191
1191
  */
1192
- async getAdsForSearchParams(t) {
1192
+ async getAds(t) {
1193
1193
  if (!this.config.admSub)
1194
1194
  return console.error("No admSub specified in config."), [];
1195
1195
  const r = `https://demofeed.is.ampfeed.com/is?${new URLSearchParams({
@@ -1222,14 +1222,14 @@ class fo extends or {
1222
1222
  }
1223
1223
  }
1224
1224
  class po extends or {
1225
- async getAdsForSearchParams(t) {
1225
+ async getAds(t) {
1226
1226
  return [];
1227
1227
  }
1228
1228
  }
1229
1229
  const mo = 1e3;
1230
1230
  class go extends or {
1231
1231
  constructor(t) {
1232
- super(t), I(this, "adCallTimeout"), this.addScriptTagToDocument();
1232
+ super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
1233
1233
  }
1234
1234
  async onQuerySubmitted(t) {
1235
1235
  this.addScriptTagToDocument();
@@ -1255,7 +1255,7 @@ class go extends or {
1255
1255
  }
1256
1256
  }, t);
1257
1257
  }
1258
- async getAdsForSearchParams(t) {
1258
+ async getAds(t) {
1259
1259
  return [];
1260
1260
  }
1261
1261
  addScriptTagToDocument() {
@@ -1272,7 +1272,7 @@ class go extends or {
1272
1272
  const vo = 600;
1273
1273
  class bo {
1274
1274
  constructor(t, r, s) {
1275
- I(this, "measureRequestTimeout"), I(this, "measureRequestsBatched", []), I(this, "config"), I(this, "sdkInfo"), I(this, "userId"), I(this, "sessionId"), I(this, "sendMeasureEvent", async (a, o = {}, n = {}) => {
1275
+ A(this, "measureRequestTimeout"), A(this, "measureRequestsBatched", []), A(this, "config"), A(this, "sdkInfo"), A(this, "userId"), A(this, "sessionId"), A(this, "sendMeasureEvent", async (a, o = {}, n = {}) => {
1276
1276
  const c = {
1277
1277
  event_name: a,
1278
1278
  properties: {
@@ -1351,35 +1351,7 @@ class bo {
1351
1351
  };
1352
1352
  }
1353
1353
  }
1354
- function yo(e) {
1355
- const t = [];
1356
- let r = "should";
1357
- return e.facetPathsForIndexFields && Object.keys(e.facetPathsForIndexFields).forEach((s) => {
1358
- var a;
1359
- const o = (a = e.facetPathsForIndexFields) == null ? void 0 : a[s];
1360
- o && (r = "must", t.push({
1361
- occur: r,
1362
- exact: {
1363
- ctx: o.value
1364
- }
1365
- }));
1366
- }), e.rangeValueForIndexFields && Object.keys(e.rangeValueForIndexFields).forEach((s) => {
1367
- var a;
1368
- const o = (a = e.rangeValueForIndexFields) == null ? void 0 : a[s];
1369
- o && (r = "must", t.push({
1370
- occur: r,
1371
- exact: {
1372
- ctx: o.value
1373
- }
1374
- }));
1375
- }), e.sort === "desc" ? e.order_by = "date_published" : e.order_by = "", t.push({
1376
- occur: r,
1377
- // Valid, as 'occur' is a required property in QueryItem
1378
- [e.mode]: { ctx: e.searchTerm }
1379
- // Ensure dynamic mode is inside queryType
1380
- }), t;
1381
- }
1382
- const ko = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Co = (e) => {
1354
+ const yo = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Co = (e) => {
1383
1355
  let t = "";
1384
1356
  if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
1385
1357
  "‘": "'",
@@ -1392,61 +1364,97 @@ const ko = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Co = (e) => {
1392
1364
  );
1393
1365
  return t;
1394
1366
  }, So = 500;
1395
- class wo {
1367
+ class ko {
1396
1368
  constructor(t, r, s) {
1397
- I(this, "config"), I(this, "userId"), I(this, "parent"), I(this, "searchCompletedEventTimeout"), I(this, "getSearchResponse", async (a) => {
1369
+ A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
1398
1370
  var o, n, c, u, h;
1399
- const l = Co(a.searchTerm);
1400
- (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
1401
- search_term: l
1402
- }), this.parent.emitEvent("query_submitted", {
1403
- name: "query_submitted",
1404
- data: {
1405
- searchTerm: l
1406
- }
1407
- }), (n = this.parent.adClient) == null || n.onQuerySubmitted(a);
1371
+ let l;
1372
+ const p = typeof a == "string" ? a : a.searchTerm;
1373
+ try {
1374
+ return (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
1375
+ search_term: p
1376
+ }), this.parent.emitEvent("query_submitted", {
1377
+ name: "query_submitted",
1378
+ data: {
1379
+ searchTerm: p
1380
+ }
1381
+ }), (n = this.parent.adClient) == null || n.onQuerySubmitted(
1382
+ typeof a == "string" ? { searchTerm: p, mode: "exact" } : a
1383
+ ), typeof a == "string" ? l = await this.handleGetSearchResponseItemsWithString(a) : l = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
1384
+ search_term: p,
1385
+ number_of_documents: l.data.count
1386
+ }), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
1387
+ var g;
1388
+ (g = this.parent.measureClient) == null || g.sendMeasureEvent("search_completed", {
1389
+ search_term: p,
1390
+ number_of_documents: l.data.count
1391
+ });
1392
+ }, So), this.parent.emitEvent("query_fetched", {
1393
+ name: "query_fetched",
1394
+ data: {
1395
+ searchTerm: p
1396
+ }
1397
+ }), (((u = l.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1398
+ name: "no_results_returned"
1399
+ }), (h = this.parent.adClient) == null || h.onQueryFetched(
1400
+ typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
1401
+ l
1402
+ ), l;
1403
+ } catch (g) {
1404
+ throw console.error("Error parsing response:", g), g;
1405
+ }
1406
+ }), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
1407
+ let o;
1408
+ try {
1409
+ o = JSON.parse(a), o = {
1410
+ limit: this.config.searchResultsPerPage,
1411
+ order_by: this.config.indexFieldName,
1412
+ ...o
1413
+ };
1414
+ } catch {
1415
+ throw new Error("Error: Query string is not valid json.");
1416
+ }
1417
+ const n = await fetch(this.baseSearchUrl, {
1418
+ method: "POST",
1419
+ headers: {
1420
+ Authorization: this.config.readKey,
1421
+ "Content-Type": "application/json",
1422
+ "X-Sc-User-Id": this.userId
1423
+ },
1424
+ body: JSON.stringify(o)
1425
+ });
1426
+ if (!n.ok)
1427
+ throw new Error(
1428
+ `Error: ${n.statusText} (Status: ${n.status})`
1429
+ );
1430
+ return await n.json();
1431
+ }), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
1408
1432
  try {
1409
- const p = {
1410
- query: yo(a),
1433
+ const o = {
1434
+ query: this.formatParamsForRequest(a),
1411
1435
  offset: a.offset || 0,
1412
1436
  // Default to 0 (first page) if not provided
1413
- limit: a.limit || this.config.searchResultsPerPage || 20
1437
+ limit: a.limit || this.config.searchResultsPerPage || 20,
1414
1438
  // Default to 20 if not provided
1439
+ order_by: a.order_by || this.config.indexFieldName
1415
1440
  };
1416
- a.order_by && (p.order_by = a.order_by, p.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
1417
- const m = {
1441
+ o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
1442
+ const n = await fetch(this.baseSearchUrl, {
1418
1443
  method: "POST",
1419
1444
  headers: {
1420
1445
  Authorization: this.config.readKey,
1421
1446
  "Content-Type": "application/json",
1422
1447
  "X-Sc-User-Id": this.userId
1423
1448
  },
1424
- body: JSON.stringify(p)
1425
- }, b = await fetch(this.baseSearchUrl, m);
1426
- if (!b.ok)
1449
+ body: JSON.stringify(o)
1450
+ });
1451
+ if (!n.ok)
1427
1452
  throw new Error(
1428
- `Error: ${b.statusText} (Status: ${b.status})`
1453
+ `Error: ${n.statusText} (Status: ${n.status})`
1429
1454
  );
1430
- const v = await b.json();
1431
- return (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
1432
- search_term: l,
1433
- number_of_documents: v.data.count
1434
- }), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
1435
- var P;
1436
- (P = this.parent.measureClient) == null || P.sendMeasureEvent("search_completed", {
1437
- search_term: l,
1438
- number_of_documents: v.data.count
1439
- });
1440
- }, So), this.parent.emitEvent("query_fetched", {
1441
- name: "query_fetched",
1442
- data: {
1443
- searchTerm: l
1444
- }
1445
- }), (((u = v.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1446
- name: "no_results_returned"
1447
- }), (h = this.parent.adClient) == null || h.onQueryFetched(a, v), v;
1448
- } catch (p) {
1449
- throw console.error("Error parsing response:", p), p;
1455
+ return await n.json();
1456
+ } catch (o) {
1457
+ throw console.error("Error parsing response:", o), o;
1450
1458
  }
1451
1459
  }), this.parent = t, this.config = r, this.userId = s;
1452
1460
  }
@@ -1456,14 +1464,48 @@ class wo {
1456
1464
  get baseSearchUrl() {
1457
1465
  return `${this.config.endpointURL}/index/${this.config.index.join(",")}/search`;
1458
1466
  }
1467
+ /**
1468
+ * Builds a query object for the SearchClient request.
1469
+ * @param {properties} properties - The properties for the search.
1470
+ * @returns {SearchClientQuery} - A properly formatted SearchClient query object.
1471
+ */
1472
+ formatParamsForRequest(t) {
1473
+ const r = [];
1474
+ let s = "should";
1475
+ t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((o) => {
1476
+ var n;
1477
+ const c = (n = t.facetPathsForIndexFields) == null ? void 0 : n[o];
1478
+ c && (s = "must", r.push({
1479
+ occur: s,
1480
+ exact: {
1481
+ ctx: Co(c.value)
1482
+ }
1483
+ }));
1484
+ }), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((o) => {
1485
+ var n;
1486
+ const c = (n = t.rangeValueForIndexFields) == null ? void 0 : n[o];
1487
+ c && (s = "must", r.push({
1488
+ occur: s,
1489
+ exact: {
1490
+ ctx: c.value
1491
+ }
1492
+ }));
1493
+ });
1494
+ const a = t.mode === "fuzzy" ? { fuzzy: { ctx: t.searchTerm } } : { exact: { ctx: t.searchTerm } };
1495
+ return r.push({
1496
+ occur: s,
1497
+ // Valid, as 'occur' is a required property in SearchClientQuery
1498
+ ...a
1499
+ }), r;
1500
+ }
1459
1501
  }
1460
- class xo {
1502
+ class wo {
1461
1503
  constructor(t, r) {
1462
- if (I(this, "config"), I(this, "measureClient"), I(this, "searchClient"), I(this, "adClient"), I(this, "userId"), I(this, "requestTimeout"), I(this, "subscriptionEvents", {}), I(this, "getItems", (s, a, o) => {
1504
+ if (A(this, "config"), A(this, "measureClient"), A(this, "searchClient"), A(this, "adClient"), A(this, "userId"), A(this, "requestTimeout"), A(this, "subscriptionEvents", {}), A(this, "getResponseItems", (s, a, o) => {
1463
1505
  const n = async () => {
1464
1506
  (async () => {
1465
1507
  var c, u;
1466
- const h = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponse(s));
1508
+ const h = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
1467
1509
  if (!h)
1468
1510
  throw new Error("Search client was not initialized.");
1469
1511
  const l = (u = h.data.hits || []) == null ? void 0 : u.map((p) => p.doc).filter((p) => !!p).map((p) => ({
@@ -1473,8 +1515,8 @@ class xo {
1473
1515
  }));
1474
1516
  a(h, l);
1475
1517
  })(), (async () => {
1476
- if (this.adClient) {
1477
- const c = await this.adClient.getAdsForSearchParams(s);
1518
+ if (this.adClient && typeof s != "string") {
1519
+ const c = await this.adClient.getAds(s);
1478
1520
  o(c);
1479
1521
  }
1480
1522
  })();
@@ -1490,7 +1532,7 @@ class xo {
1490
1532
  this.config = {
1491
1533
  ...t,
1492
1534
  // Strips off the trailing '/' from an endpointURL if one is accidentally added
1493
- endpointURL: ko(t.endpointURL)
1535
+ endpointURL: yo(t.endpointURL)
1494
1536
  }, this.userId = "", typeof window < "u" && typeof customElements < "u" && r.sdkName === "@searchcraft/javascript-sdk" && globalThis.__scDefineCustomElements__ && globalThis.__scDefineCustomElements__(), typeof window < "u" && (this.initClients(this.config, r), this.initInputForms(), this.startObservingMutations());
1495
1537
  }
1496
1538
  initInputForms() {
@@ -1519,7 +1561,7 @@ class xo {
1519
1561
  initClients(t, r) {
1520
1562
  setTimeout(async () => {
1521
1563
  let s = this.config.userId;
1522
- switch (s || (s = await Jn()), this.measureClient = new bo(t, r, s), this.searchClient = new wo(this, t, s), t.adSource) {
1564
+ switch (s || (s = await Jn()), this.measureClient = new bo(t, r, s), this.searchClient = new ko(this, t, s), t.adSource) {
1523
1565
  case "adMarketplace":
1524
1566
  this.adClient = new fo(t);
1525
1567
  break;
@@ -1530,6 +1572,9 @@ class xo {
1530
1572
  this.adClient = new po(t);
1531
1573
  break;
1532
1574
  }
1575
+ this.emitEvent("initialized", {
1576
+ name: "initialized"
1577
+ });
1533
1578
  }, 300);
1534
1579
  }
1535
1580
  emitEvent(t, r) {
@@ -1589,13 +1634,13 @@ const ls = (e) => {
1589
1634
  const r = /* @__PURE__ */ new Set(), s = (h, l) => {
1590
1635
  const p = typeof h == "function" ? h(t) : h;
1591
1636
  if (!Object.is(p, t)) {
1592
- const m = t;
1593
- t = l ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((b) => b(t, m));
1637
+ const g = t;
1638
+ t = l ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((k) => k(t, g));
1594
1639
  }
1595
1640
  }, a = () => t, c = { setState: s, getState: a, getInitialState: () => u, subscribe: (h) => (r.add(h), () => r.delete(h)) }, u = t = e(s, a, c);
1596
1641
  return c;
1597
- }, Eo = (e) => e ? ls(e) : ls;
1598
- cr.createStore = Eo;
1642
+ }, xo = (e) => e ? ls(e) : ls;
1643
+ cr.createStore = xo;
1599
1644
  var ir = {}, zs = { exports: {} }, w = {};
1600
1645
  /**
1601
1646
  * @license React
@@ -1606,11 +1651,11 @@ var ir = {}, zs = { exports: {} }, w = {};
1606
1651
  * This source code is licensed under the MIT license found in the
1607
1652
  * LICENSE file in the root directory of this source tree.
1608
1653
  */
1609
- var lr = Symbol.for("react.transitional.element"), Ro = Symbol.for("react.portal"), Po = Symbol.for("react.fragment"), To = Symbol.for("react.strict_mode"), $o = Symbol.for("react.profiler"), _o = Symbol.for("react.consumer"), Ao = Symbol.for("react.context"), Io = Symbol.for("react.forward_ref"), Mo = Symbol.for("react.suspense"), Lo = Symbol.for("react.memo"), Vs = Symbol.for("react.lazy"), us = Symbol.iterator;
1610
- function Oo(e) {
1654
+ var lr = Symbol.for("react.transitional.element"), Ro = Symbol.for("react.portal"), Eo = Symbol.for("react.fragment"), Po = Symbol.for("react.strict_mode"), To = Symbol.for("react.profiler"), $o = Symbol.for("react.consumer"), _o = Symbol.for("react.context"), Io = Symbol.for("react.forward_ref"), Ao = Symbol.for("react.suspense"), Mo = Symbol.for("react.memo"), js = Symbol.for("react.lazy"), us = Symbol.iterator;
1655
+ function Lo(e) {
1611
1656
  return e === null || typeof e != "object" ? null : (e = us && e[us] || e["@@iterator"], typeof e == "function" ? e : null);
1612
1657
  }
1613
- var js = {
1658
+ var Vs = {
1614
1659
  isMounted: function() {
1615
1660
  return !1;
1616
1661
  },
@@ -1622,7 +1667,7 @@ var js = {
1622
1667
  }
1623
1668
  }, Bs = Object.assign, Ws = {};
1624
1669
  function He(e, t, r) {
1625
- this.props = e, this.context = t, this.refs = Ws, this.updater = r || js;
1670
+ this.props = e, this.context = t, this.refs = Ws, this.updater = r || Vs;
1626
1671
  }
1627
1672
  He.prototype.isReactComponent = {};
1628
1673
  He.prototype.setState = function(e, t) {
@@ -1639,14 +1684,14 @@ function Gs() {
1639
1684
  }
1640
1685
  Gs.prototype = He.prototype;
1641
1686
  function ur(e, t, r) {
1642
- this.props = e, this.context = t, this.refs = Ws, this.updater = r || js;
1687
+ this.props = e, this.context = t, this.refs = Ws, this.updater = r || Vs;
1643
1688
  }
1644
1689
  var hr = ur.prototype = new Gs();
1645
1690
  hr.constructor = ur;
1646
1691
  Bs(hr, He.prototype);
1647
1692
  hr.isPureReactComponent = !0;
1648
- var hs = Array.isArray, M = { H: null, A: null, T: null, S: null }, qs = Object.prototype.hasOwnProperty;
1649
- function dr(e, t, r, s, a, o) {
1693
+ var hs = Array.isArray, L = { H: null, A: null, T: null, S: null }, qs = Object.prototype.hasOwnProperty;
1694
+ function fr(e, t, r, s, a, o) {
1650
1695
  return r = o.ref, {
1651
1696
  $$typeof: lr,
1652
1697
  type: e,
@@ -1655,8 +1700,8 @@ function dr(e, t, r, s, a, o) {
1655
1700
  props: o
1656
1701
  };
1657
1702
  }
1658
- function Fo(e, t) {
1659
- return dr(
1703
+ function Oo(e, t) {
1704
+ return fr(
1660
1705
  e.type,
1661
1706
  t,
1662
1707
  void 0,
@@ -1665,29 +1710,29 @@ function Fo(e, t) {
1665
1710
  e.props
1666
1711
  );
1667
1712
  }
1668
- function fr(e) {
1713
+ function dr(e) {
1669
1714
  return typeof e == "object" && e !== null && e.$$typeof === lr;
1670
1715
  }
1671
- function Do(e) {
1716
+ function Fo(e) {
1672
1717
  var t = { "=": "=0", ":": "=2" };
1673
1718
  return "$" + e.replace(/[=:]/g, function(r) {
1674
1719
  return t[r];
1675
1720
  });
1676
1721
  }
1677
- var ds = /\/+/g;
1722
+ var fs = /\/+/g;
1678
1723
  function qt(e, t) {
1679
- return typeof e == "object" && e !== null && e.key != null ? Do("" + e.key) : t.toString(36);
1724
+ return typeof e == "object" && e !== null && e.key != null ? Fo("" + e.key) : t.toString(36);
1680
1725
  }
1681
- function fs() {
1726
+ function ds() {
1682
1727
  }
1683
- function No(e) {
1728
+ function Do(e) {
1684
1729
  switch (e.status) {
1685
1730
  case "fulfilled":
1686
1731
  return e.value;
1687
1732
  case "rejected":
1688
1733
  throw e.reason;
1689
1734
  default:
1690
- switch (typeof e.status == "string" ? e.then(fs, fs) : (e.status = "pending", e.then(
1735
+ switch (typeof e.status == "string" ? e.then(ds, ds) : (e.status = "pending", e.then(
1691
1736
  function(t) {
1692
1737
  e.status === "pending" && (e.status = "fulfilled", e.value = t);
1693
1738
  },
@@ -1721,7 +1766,7 @@ function Fe(e, t, r, s, a) {
1721
1766
  case Ro:
1722
1767
  n = !0;
1723
1768
  break;
1724
- case Vs:
1769
+ case js:
1725
1770
  return n = e._init, Fe(
1726
1771
  n(e._payload),
1727
1772
  t,
@@ -1732,12 +1777,12 @@ function Fe(e, t, r, s, a) {
1732
1777
  }
1733
1778
  }
1734
1779
  if (n)
1735
- return a = a(e), n = s === "" ? "." + qt(e, 0) : s, hs(a) ? (r = "", n != null && (r = n.replace(ds, "$&/") + "/"), Fe(a, t, r, "", function(h) {
1780
+ return a = a(e), n = s === "" ? "." + qt(e, 0) : s, hs(a) ? (r = "", n != null && (r = n.replace(fs, "$&/") + "/"), Fe(a, t, r, "", function(h) {
1736
1781
  return h;
1737
- })) : a != null && (fr(a) && (a = Fo(
1782
+ })) : a != null && (dr(a) && (a = Oo(
1738
1783
  a,
1739
1784
  r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
1740
- ds,
1785
+ fs,
1741
1786
  "$&/"
1742
1787
  ) + "/") + n
1743
1788
  )), t.push(a)), 1;
@@ -1752,7 +1797,7 @@ function Fe(e, t, r, s, a) {
1752
1797
  o,
1753
1798
  a
1754
1799
  );
1755
- else if (u = Oo(e), typeof u == "function")
1800
+ else if (u = Lo(e), typeof u == "function")
1756
1801
  for (e = u.call(e), u = 0; !(s = e.next()).done; )
1757
1802
  s = s.value, o = c + qt(s, u++), n += Fe(
1758
1803
  s,
@@ -1764,7 +1809,7 @@ function Fe(e, t, r, s, a) {
1764
1809
  else if (o === "object") {
1765
1810
  if (typeof e.then == "function")
1766
1811
  return Fe(
1767
- No(e),
1812
+ Do(e),
1768
1813
  t,
1769
1814
  r,
1770
1815
  s,
@@ -1783,7 +1828,7 @@ function pt(e, t, r) {
1783
1828
  return t.call(r, o, a++);
1784
1829
  }), s;
1785
1830
  }
1786
- function Ho(e) {
1831
+ function No(e) {
1787
1832
  if (e._status === -1) {
1788
1833
  var t = e._result;
1789
1834
  t = t(), t.then(
@@ -1813,7 +1858,7 @@ var ps = typeof reportError == "function" ? reportError : function(e) {
1813
1858
  }
1814
1859
  console.error(e);
1815
1860
  };
1816
- function Uo() {
1861
+ function Ho() {
1817
1862
  }
1818
1863
  w.Children = {
1819
1864
  map: pt,
@@ -1838,7 +1883,7 @@ w.Children = {
1838
1883
  }) || [];
1839
1884
  },
1840
1885
  only: function(e) {
1841
- if (!fr(e))
1886
+ if (!dr(e))
1842
1887
  throw Error(
1843
1888
  "React.Children.only expected to receive a single React element child."
1844
1889
  );
@@ -1846,12 +1891,12 @@ w.Children = {
1846
1891
  }
1847
1892
  };
1848
1893
  w.Component = He;
1849
- w.Fragment = Po;
1850
- w.Profiler = $o;
1894
+ w.Fragment = Eo;
1895
+ w.Profiler = To;
1851
1896
  w.PureComponent = ur;
1852
- w.StrictMode = To;
1853
- w.Suspense = Mo;
1854
- w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = M;
1897
+ w.StrictMode = Po;
1898
+ w.Suspense = Ao;
1899
+ w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
1855
1900
  w.act = function() {
1856
1901
  throw Error("act(...) is not supported in production builds of React.");
1857
1902
  };
@@ -1876,18 +1921,18 @@ w.cloneElement = function(e, t, r) {
1876
1921
  c[u] = arguments[u + 2];
1877
1922
  s.children = c;
1878
1923
  }
1879
- return dr(e.type, a, void 0, void 0, o, s);
1924
+ return fr(e.type, a, void 0, void 0, o, s);
1880
1925
  };
1881
1926
  w.createContext = function(e) {
1882
1927
  return e = {
1883
- $$typeof: Ao,
1928
+ $$typeof: _o,
1884
1929
  _currentValue: e,
1885
1930
  _currentValue2: e,
1886
1931
  _threadCount: 0,
1887
1932
  Provider: null,
1888
1933
  Consumer: null
1889
1934
  }, e.Provider = e, e.Consumer = {
1890
- $$typeof: _o,
1935
+ $$typeof: $o,
1891
1936
  _context: e
1892
1937
  }, e;
1893
1938
  };
@@ -1906,7 +1951,7 @@ w.createElement = function(e, t, r) {
1906
1951
  if (e && e.defaultProps)
1907
1952
  for (s in n = e.defaultProps, n)
1908
1953
  a[s] === void 0 && (a[s] = n[s]);
1909
- return dr(e, o, void 0, void 0, null, a);
1954
+ return fr(e, o, void 0, void 0, null, a);
1910
1955
  };
1911
1956
  w.createRef = function() {
1912
1957
  return { current: null };
@@ -1914,98 +1959,98 @@ w.createRef = function() {
1914
1959
  w.forwardRef = function(e) {
1915
1960
  return { $$typeof: Io, render: e };
1916
1961
  };
1917
- w.isValidElement = fr;
1962
+ w.isValidElement = dr;
1918
1963
  w.lazy = function(e) {
1919
1964
  return {
1920
- $$typeof: Vs,
1965
+ $$typeof: js,
1921
1966
  _payload: { _status: -1, _result: e },
1922
- _init: Ho
1967
+ _init: No
1923
1968
  };
1924
1969
  };
1925
1970
  w.memo = function(e, t) {
1926
1971
  return {
1927
- $$typeof: Lo,
1972
+ $$typeof: Mo,
1928
1973
  type: e,
1929
1974
  compare: t === void 0 ? null : t
1930
1975
  };
1931
1976
  };
1932
1977
  w.startTransition = function(e) {
1933
- var t = M.T, r = {};
1934
- M.T = r;
1978
+ var t = L.T, r = {};
1979
+ L.T = r;
1935
1980
  try {
1936
- var s = e(), a = M.S;
1937
- a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Uo, ps);
1981
+ var s = e(), a = L.S;
1982
+ a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Ho, ps);
1938
1983
  } catch (o) {
1939
1984
  ps(o);
1940
1985
  } finally {
1941
- M.T = t;
1986
+ L.T = t;
1942
1987
  }
1943
1988
  };
1944
1989
  w.unstable_useCacheRefresh = function() {
1945
- return M.H.useCacheRefresh();
1990
+ return L.H.useCacheRefresh();
1946
1991
  };
1947
1992
  w.use = function(e) {
1948
- return M.H.use(e);
1993
+ return L.H.use(e);
1949
1994
  };
1950
1995
  w.useActionState = function(e, t, r) {
1951
- return M.H.useActionState(e, t, r);
1996
+ return L.H.useActionState(e, t, r);
1952
1997
  };
1953
1998
  w.useCallback = function(e, t) {
1954
- return M.H.useCallback(e, t);
1999
+ return L.H.useCallback(e, t);
1955
2000
  };
1956
2001
  w.useContext = function(e) {
1957
- return M.H.useContext(e);
2002
+ return L.H.useContext(e);
1958
2003
  };
1959
2004
  w.useDebugValue = function() {
1960
2005
  };
1961
2006
  w.useDeferredValue = function(e, t) {
1962
- return M.H.useDeferredValue(e, t);
2007
+ return L.H.useDeferredValue(e, t);
1963
2008
  };
1964
2009
  w.useEffect = function(e, t) {
1965
- return M.H.useEffect(e, t);
2010
+ return L.H.useEffect(e, t);
1966
2011
  };
1967
2012
  w.useId = function() {
1968
- return M.H.useId();
2013
+ return L.H.useId();
1969
2014
  };
1970
2015
  w.useImperativeHandle = function(e, t, r) {
1971
- return M.H.useImperativeHandle(e, t, r);
2016
+ return L.H.useImperativeHandle(e, t, r);
1972
2017
  };
1973
2018
  w.useInsertionEffect = function(e, t) {
1974
- return M.H.useInsertionEffect(e, t);
2019
+ return L.H.useInsertionEffect(e, t);
1975
2020
  };
1976
2021
  w.useLayoutEffect = function(e, t) {
1977
- return M.H.useLayoutEffect(e, t);
2022
+ return L.H.useLayoutEffect(e, t);
1978
2023
  };
1979
2024
  w.useMemo = function(e, t) {
1980
- return M.H.useMemo(e, t);
2025
+ return L.H.useMemo(e, t);
1981
2026
  };
1982
2027
  w.useOptimistic = function(e, t) {
1983
- return M.H.useOptimistic(e, t);
2028
+ return L.H.useOptimistic(e, t);
1984
2029
  };
1985
2030
  w.useReducer = function(e, t, r) {
1986
- return M.H.useReducer(e, t, r);
2031
+ return L.H.useReducer(e, t, r);
1987
2032
  };
1988
2033
  w.useRef = function(e) {
1989
- return M.H.useRef(e);
2034
+ return L.H.useRef(e);
1990
2035
  };
1991
2036
  w.useState = function(e) {
1992
- return M.H.useState(e);
2037
+ return L.H.useState(e);
1993
2038
  };
1994
2039
  w.useSyncExternalStore = function(e, t, r) {
1995
- return M.H.useSyncExternalStore(
2040
+ return L.H.useSyncExternalStore(
1996
2041
  e,
1997
2042
  t,
1998
2043
  r
1999
2044
  );
2000
2045
  };
2001
2046
  w.useTransition = function() {
2002
- return M.H.useTransition();
2047
+ return L.H.useTransition();
2003
2048
  };
2004
2049
  w.version = "19.0.0";
2005
2050
  zs.exports = w;
2006
- var ms = zs.exports, zo = cr;
2007
- const Vo = (e) => e;
2008
- function Ys(e, t = Vo) {
2051
+ var ms = zs.exports, Uo = cr;
2052
+ const zo = (e) => e;
2053
+ function Ys(e, t = zo) {
2009
2054
  const r = ms.useSyncExternalStore(
2010
2055
  e.subscribe,
2011
2056
  () => t(e.getState()),
@@ -2014,7 +2059,7 @@ function Ys(e, t = Vo) {
2014
2059
  return ms.useDebugValue(r), r;
2015
2060
  }
2016
2061
  const gs = (e) => {
2017
- const t = zo.createStore(e), r = (s) => Ys(t, s);
2062
+ const t = Uo.createStore(e), r = (s) => Ys(t, s);
2018
2063
  return Object.assign(r, t), r;
2019
2064
  }, jo = (e) => e ? gs(e) : gs;
2020
2065
  ir.create = jo;
@@ -2044,10 +2089,12 @@ const vs = {
2044
2089
  hotkeyModifier: "meta",
2045
2090
  logger: void 0,
2046
2091
  facetPathsForIndexFields: {},
2092
+ initialQuery: "",
2093
+ initialSearchClientResponseItems: [],
2047
2094
  isPopoverVisible: !1,
2048
2095
  isSearchInProgress: !1,
2049
- searchTerm: "",
2050
2096
  rangeValueForIndexFields: {},
2097
+ searchTerm: "",
2051
2098
  searchMode: "fuzzy",
2052
2099
  searchClientResponseItems: [],
2053
2100
  searchResponseTimeTaken: void 0,
@@ -2055,34 +2102,40 @@ const vs = {
2055
2102
  searchResultsCount: 0,
2056
2103
  searchResultsPerPage: 20,
2057
2104
  searchResultsPage: 1,
2058
- sortType: "asc"
2059
- }, $ = Us.createStore((e, t) => {
2105
+ sortType: "asc",
2106
+ // Callbacks
2107
+ afterInit: () => {
2108
+ }
2109
+ }, I = Us.createStore((e, t) => {
2060
2110
  const r = {
2061
- addFacetPathsForIndexField: (a) => e((o) => ({
2111
+ set: (a) => (e(a), t()),
2112
+ addFacetPathsForIndexField: (a) => r.set((o) => ({
2062
2113
  facetPathsForIndexFields: {
2063
2114
  ...o.facetPathsForIndexFields,
2064
2115
  [a.fieldName]: a
2065
2116
  }
2066
2117
  })),
2067
- addRangeValueForIndexField: (a) => e((o) => ({
2118
+ addRangeValueForIndexField: (a) => r.set((o) => ({
2068
2119
  rangeValueForIndexFields: {
2069
2120
  ...o.rangeValueForIndexFields,
2070
2121
  [a.fieldName]: a
2071
2122
  }
2072
2123
  })),
2073
- getSearchcraftInstance: () => {
2124
+ getSearchcraftCore: () => {
2074
2125
  const { core: a } = t();
2075
2126
  return a;
2076
2127
  },
2077
- initialize: (a, o = !1) => {
2078
- const n = a, c = o ? new qn({ logLevel: Pe.DEBUG }) : void 0;
2079
- e({
2080
- core: n,
2081
- logger: c,
2082
- searchResultsPerPage: n.config.searchResultsPerPage || 20
2128
+ init: (a, o = !1) => {
2129
+ const n = o ? new qn({ logLevel: pe.DEBUG }) : void 0, c = r.set({
2130
+ core: a,
2131
+ logger: n,
2132
+ searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
2133
+ });
2134
+ a == null || a.subscribe("initialized", () => {
2135
+ c.afterInit && c.afterInit(c);
2083
2136
  });
2084
2137
  },
2085
- removeFacetPathsForIndexField: (a) => e((o) => {
2138
+ removeFacetPathsForIndexField: (a) => r.set((o) => {
2086
2139
  const n = o.facetPathsForIndexFields;
2087
2140
  return delete n[a], {
2088
2141
  facetPathsForIndexFields: {
@@ -2090,7 +2143,7 @@ const vs = {
2090
2143
  }
2091
2144
  };
2092
2145
  }),
2093
- removeRangeValueForIndexField: (a) => e((o) => {
2146
+ removeRangeValueForIndexField: (a) => r.set((o) => {
2094
2147
  const n = o.rangeValueForIndexFields;
2095
2148
  return delete n[a], {
2096
2149
  rangeValueForIndexFields: {
@@ -2099,17 +2152,17 @@ const vs = {
2099
2152
  };
2100
2153
  }),
2101
2154
  resetFacetPaths: () => {
2102
- e({
2155
+ r.set({
2103
2156
  facetPathsForIndexFields: {}
2104
2157
  });
2105
2158
  },
2106
2159
  search: async () => {
2107
- var c, u;
2160
+ var o, n;
2108
2161
  const a = t();
2109
- if ((c = a.logger) == null || c.log(Pe.INFO, `Starting search with search term: "${a.searchTerm}"`), !a.core)
2162
+ if ((o = a.logger) == null || o.log(pe.INFO, `Starting search with search term: "${a.searchTerm}"`), !a.core)
2110
2163
  throw new Error("Searchcraft instance is not initialized.");
2111
2164
  if (!a.searchTerm.trim()) {
2112
- (u = a.logger) == null || u.log(Pe.INFO, "No search request was made: search term was empty."), e({
2165
+ (n = a.logger) == null || n.log(pe.INFO, "No search request was made: search term was empty."), r.set({
2113
2166
  searchClientResponseItems: [],
2114
2167
  searchResultsCount: 0,
2115
2168
  searchResultsPage: 1,
@@ -2117,24 +2170,7 @@ const vs = {
2117
2170
  });
2118
2171
  return;
2119
2172
  }
2120
- e({ isSearchInProgress: !0 });
2121
- const o = (h, l) => {
2122
- var m, b;
2123
- const p = h.data.facets;
2124
- e((v) => ({
2125
- isSearchInProgress: !1,
2126
- searchClientResponseItems: l,
2127
- searchResponseTimeTaken: h.data.time_taken || 0,
2128
- searchResultsPage: (
2129
- // reset to first page when response count changes
2130
- h.data.count === v.searchResultsCount ? v.searchResultsPage : 1
2131
- ),
2132
- searchResultsCount: h.data.count || 0
2133
- })), p && e({ searchResponseFacetPrime: p }), (m = a.logger) == null || m.log(Pe.DEBUG, `Search results: ${JSON.stringify(l)}`), (b = a.logger) == null || b.log(Pe.DEBUG, `Facets from response: ${JSON.stringify(p)}`);
2134
- }, n = (h) => {
2135
- e({ adClientResponseItems: h });
2136
- };
2137
- a.core.getItems({
2173
+ r.set({ isSearchInProgress: !0 }), a.core.getResponseItems({
2138
2174
  searchTerm: a.searchTerm,
2139
2175
  mode: a.searchMode,
2140
2176
  sort: a.sortType,
@@ -2142,18 +2178,53 @@ const vs = {
2142
2178
  rangeValueForIndexFields: a.rangeValueForIndexFields,
2143
2179
  offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
2144
2180
  limit: a.searchResultsPerPage
2145
- }, o, n);
2181
+ }, r.setSearchClientResponseItemsFromResponse, r.setAdClientResponseItems);
2146
2182
  },
2147
- setPopoverVisibility: (a) => {
2148
- e({
2149
- isPopoverVisible: a
2150
- });
2183
+ setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
2184
+ setSearchClientResponseItemsFromResponse: (a, o) => {
2185
+ var l, p;
2186
+ const { facets: n, count: c = 0, time_taken: u = 0 } = a.data, h = r.set((g) => ({
2187
+ isSearchInProgress: !1,
2188
+ searchClientResponseItems: o,
2189
+ searchResponseTimeTaken: u,
2190
+ searchResultsPage: (
2191
+ // Reset to first page when response count changes
2192
+ c === g.searchResultsCount ? g.searchResultsPage : 1
2193
+ ),
2194
+ searchResultsCount: c,
2195
+ ...n && { searchResponseFacetPrime: n }
2196
+ }));
2197
+ (l = h.logger) == null || l.log(pe.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(pe.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
2198
+ },
2199
+ setInitialSearchClientResponseItemsFromResponse: (a, o) => {
2200
+ var h;
2201
+ const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
2202
+ r.set((l) => ({
2203
+ isSearchInProgress: !1,
2204
+ initialSearchClientResponseItems: o,
2205
+ searchResponseTimeTaken: u,
2206
+ searchResultsPage: (
2207
+ // Reset to first page when response count changes
2208
+ c === l.searchResultsCount ? l.searchResultsPage : 1
2209
+ ),
2210
+ searchResultsCount: c
2211
+ })), (h = n.logger) == null || h.log(pe.DEBUG, `Search results: ${JSON.stringify(o)}`);
2151
2212
  },
2152
- setSearchMode: (a) => e({ searchMode: a }),
2153
- setSortType: (a) => e({ sortType: a }),
2213
+ setInitialQuery: async (a) => {
2214
+ var n;
2215
+ const o = r.set({ initialQuery: a });
2216
+ if ((n = o.logger) == null || n.log(pe.INFO, `Starting search with query: "${o.initialQuery}"`), !o.core)
2217
+ throw new Error("Searchcraft instance is not initialized.");
2218
+ await o.core.getResponseItems(a, r.setInitialSearchClientResponseItemsFromResponse, r.setAdClientResponseItems);
2219
+ },
2220
+ setPopoverVisibility: (a) => r.set({
2221
+ isPopoverVisible: a
2222
+ }),
2223
+ setSearchMode: (a) => r.set({ searchMode: a }),
2224
+ setSortType: (a) => r.set({ sortType: a }),
2154
2225
  setSearchTerm: (a) => {
2155
2226
  const { core: o } = t();
2156
- a.length === 0 && (o == null || o.handleInputCleared()), e({
2227
+ a.length === 0 && (o == null || o.handleInputCleared()), r.set({
2157
2228
  searchTerm: a,
2158
2229
  facetPathsForIndexFields: {},
2159
2230
  ...a.trim().length === 0 && {
@@ -2162,16 +2233,17 @@ const vs = {
2162
2233
  }
2163
2234
  });
2164
2235
  },
2165
- setSearchClientResponseItems: (a) => e({ searchClientResponseItems: a }),
2236
+ setSearchClientResponseItems: (a) => r.set({ searchClientResponseItems: a }),
2237
+ setSearchResultsCount: (a) => r.set({ searchResultsCount: a }),
2166
2238
  setSearchResultsPage: async (a) => {
2167
- e({ searchResultsPage: a }), await r.search();
2239
+ r.set({ searchResultsPage: a }), await r.search();
2168
2240
  },
2169
2241
  setSearchResultsPerPage: async (a) => {
2170
- e({ searchResultsPerPage: a }), await r.search();
2242
+ r.set({ searchResultsPerPage: a }), await r.search();
2171
2243
  },
2172
2244
  setHotKeyAndHotKeyModifier: (a, o) => {
2173
2245
  const { hotkey: n, hotkeyModifier: c } = vs;
2174
- e({
2246
+ r.set({
2175
2247
  hotkey: a || n,
2176
2248
  hotkeyModifier: o || c
2177
2249
  });
@@ -2182,12 +2254,12 @@ const vs = {
2182
2254
  ...r
2183
2255
  };
2184
2256
  });
2185
- var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Zs = { exports: {} };
2257
+ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Zs = { exports: {} };
2186
2258
  /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
2187
2259
  (function(e, t) {
2188
2260
  (function(r, s) {
2189
2261
  e.exports = s();
2190
- })(Bo, function() {
2262
+ })(Vo, function() {
2191
2263
  const {
2192
2264
  entries: r,
2193
2265
  setPrototypeOf: s,
@@ -2203,88 +2275,88 @@ var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2203
2275
  apply: l,
2204
2276
  construct: p
2205
2277
  } = typeof Reflect < "u" && Reflect;
2206
- c || (c = function(k) {
2207
- return k;
2208
- }), u || (u = function(k) {
2209
- return k;
2210
- }), l || (l = function(k, T, R) {
2211
- return k.apply(T, R);
2212
- }), p || (p = function(k, T) {
2213
- return new k(...T);
2278
+ c || (c = function(y) {
2279
+ return y;
2280
+ }), u || (u = function(y) {
2281
+ return y;
2282
+ }), l || (l = function(y, $, E) {
2283
+ return y.apply($, E);
2284
+ }), p || (p = function(y, $) {
2285
+ return new y(...$);
2214
2286
  });
2215
- const m = Y(Array.prototype.forEach), b = Y(Array.prototype.lastIndexOf), v = Y(Array.prototype.pop), P = Y(Array.prototype.push), D = Y(Array.prototype.splice), B = Y(String.prototype.toLowerCase), _ = Y(String.prototype.toString), ue = Y(String.prototype.match), se = Y(String.prototype.replace), Se = Y(String.prototype.indexOf), N = Y(String.prototype.trim), ee = Y(Object.prototype.hasOwnProperty), H = Y(RegExp.prototype.test), we = ha(TypeError);
2216
- function Y(E) {
2217
- return function(k) {
2218
- for (var T = arguments.length, R = new Array(T > 1 ? T - 1 : 0), W = 1; W < T; W++)
2219
- R[W - 1] = arguments[W];
2220
- return l(E, k, R);
2287
+ const g = Y(Array.prototype.forEach), k = Y(Array.prototype.lastIndexOf), b = Y(Array.prototype.pop), P = Y(Array.prototype.push), _ = Y(Array.prototype.splice), O = Y(String.prototype.toLowerCase), T = Y(String.prototype.toString), ue = Y(String.prototype.match), se = Y(String.prototype.replace), we = Y(String.prototype.indexOf), H = Y(String.prototype.trim), ee = Y(Object.prototype.hasOwnProperty), U = Y(RegExp.prototype.test), xe = ha(TypeError);
2288
+ function Y(R) {
2289
+ return function(y) {
2290
+ for (var $ = arguments.length, E = new Array($ > 1 ? $ - 1 : 0), W = 1; W < $; W++)
2291
+ E[W - 1] = arguments[W];
2292
+ return l(R, y, E);
2221
2293
  };
2222
2294
  }
2223
- function ha(E) {
2295
+ function ha(R) {
2224
2296
  return function() {
2225
- for (var k = arguments.length, T = new Array(k), R = 0; R < k; R++)
2226
- T[R] = arguments[R];
2227
- return p(E, T);
2297
+ for (var y = arguments.length, $ = new Array(y), E = 0; E < y; E++)
2298
+ $[E] = arguments[E];
2299
+ return p(R, $);
2228
2300
  };
2229
2301
  }
2230
- function x(E, k) {
2231
- let T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : B;
2232
- s && s(E, null);
2233
- let R = k.length;
2234
- for (; R--; ) {
2235
- let W = k[R];
2302
+ function x(R, y) {
2303
+ let $ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : O;
2304
+ s && s(R, null);
2305
+ let E = y.length;
2306
+ for (; E--; ) {
2307
+ let W = y[E];
2236
2308
  if (typeof W == "string") {
2237
- const he = T(W);
2238
- he !== W && (a(k) || (k[R] = he), W = he);
2309
+ const he = $(W);
2310
+ he !== W && (a(y) || (y[E] = he), W = he);
2239
2311
  }
2240
- E[W] = !0;
2312
+ R[W] = !0;
2241
2313
  }
2242
- return E;
2314
+ return R;
2243
2315
  }
2244
- function da(E) {
2245
- for (let k = 0; k < E.length; k++)
2246
- ee(E, k) || (E[k] = null);
2247
- return E;
2316
+ function fa(R) {
2317
+ for (let y = 0; y < R.length; y++)
2318
+ ee(R, y) || (R[y] = null);
2319
+ return R;
2248
2320
  }
2249
- function xe(E) {
2250
- const k = h(null);
2251
- for (const [T, R] of r(E))
2252
- ee(E, T) && (Array.isArray(R) ? k[T] = da(R) : R && typeof R == "object" && R.constructor === Object ? k[T] = xe(R) : k[T] = R);
2253
- return k;
2321
+ function Re(R) {
2322
+ const y = h(null);
2323
+ for (const [$, E] of r(R))
2324
+ ee(R, $) && (Array.isArray(E) ? y[$] = fa(E) : E && typeof E == "object" && E.constructor === Object ? y[$] = Re(E) : y[$] = E);
2325
+ return y;
2254
2326
  }
2255
- function Ue(E, k) {
2256
- for (; E !== null; ) {
2257
- const R = n(E, k);
2258
- if (R) {
2259
- if (R.get)
2260
- return Y(R.get);
2261
- if (typeof R.value == "function")
2262
- return Y(R.value);
2327
+ function Ue(R, y) {
2328
+ for (; R !== null; ) {
2329
+ const E = n(R, y);
2330
+ if (E) {
2331
+ if (E.get)
2332
+ return Y(E.get);
2333
+ if (typeof E.value == "function")
2334
+ return Y(E.value);
2263
2335
  }
2264
- E = o(E);
2336
+ R = o(R);
2265
2337
  }
2266
- function T() {
2338
+ function $() {
2267
2339
  return null;
2268
2340
  }
2269
- return T;
2341
+ return $;
2270
2342
  }
2271
- const gr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Rt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), fa = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Tt = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), pa = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = c(["#text"]), br = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), yr = c(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), tt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ma = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ga = u(/<%[\w\W]*|[\w\W]*%>/gm), va = u(/\$\{[\w\W]*/gm), ba = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), ya = u(/^aria-[\-\w]+$/), kr = u(
2343
+ const gr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Et = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), da = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Tt = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), pa = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = c(["#text"]), br = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), yr = c(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), tt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ma = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ga = u(/<%[\w\W]*|[\w\W]*%>/gm), va = u(/\$\{[\w\W]*/gm), ba = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), ya = u(/^aria-[\-\w]+$/), Cr = u(
2272
2344
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2273
2345
  // eslint-disable-line no-useless-escape
2274
- ), ka = u(/^(?:\w+script|data):/i), Ca = u(
2346
+ ), Ca = u(/^(?:\w+script|data):/i), Sa = u(
2275
2347
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
2276
2348
  // eslint-disable-line no-control-regex
2277
- ), Cr = u(/^html$/i), Sa = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
2278
- var Sr = /* @__PURE__ */ Object.freeze({
2349
+ ), Sr = u(/^html$/i), ka = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
2350
+ var kr = /* @__PURE__ */ Object.freeze({
2279
2351
  __proto__: null,
2280
2352
  ARIA_ATTR: ya,
2281
- ATTR_WHITESPACE: Ca,
2282
- CUSTOM_ELEMENT: Sa,
2353
+ ATTR_WHITESPACE: Sa,
2354
+ CUSTOM_ELEMENT: ka,
2283
2355
  DATA_ATTR: ba,
2284
- DOCTYPE_NAME: Cr,
2356
+ DOCTYPE_NAME: Sr,
2285
2357
  ERB_EXPR: ga,
2286
- IS_ALLOWED_URI: kr,
2287
- IS_SCRIPT_OR_DATA: ka,
2358
+ IS_ALLOWED_URI: Cr,
2359
+ IS_SCRIPT_OR_DATA: Ca,
2288
2360
  MUSTACHE_EXPR: ma,
2289
2361
  TMPLIT_EXPR: va
2290
2362
  });
@@ -2297,15 +2369,15 @@ var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2297
2369
  document: 9
2298
2370
  }, wa = function() {
2299
2371
  return typeof window > "u" ? null : window;
2300
- }, xa = function(k, T) {
2301
- if (typeof k != "object" || typeof k.createPolicy != "function")
2372
+ }, xa = function(y, $) {
2373
+ if (typeof y != "object" || typeof y.createPolicy != "function")
2302
2374
  return null;
2303
- let R = null;
2375
+ let E = null;
2304
2376
  const W = "data-tt-policy-suffix";
2305
- T && T.hasAttribute(W) && (R = T.getAttribute(W));
2306
- const he = "dompurify" + (R ? "#" + R : "");
2377
+ $ && $.hasAttribute(W) && (E = $.getAttribute(W));
2378
+ const he = "dompurify" + (E ? "#" + E : "");
2307
2379
  try {
2308
- return k.createPolicy(he, {
2380
+ return y.createPolicy(he, {
2309
2381
  createHTML(Te) {
2310
2382
  return Te;
2311
2383
  },
@@ -2330,56 +2402,56 @@ var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2330
2402
  };
2331
2403
  };
2332
2404
  function xr() {
2333
- let E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : wa();
2334
- const k = (C) => xr(C);
2335
- if (k.version = "3.2.4", k.removed = [], !E || !E.document || E.document.nodeType !== ze.document || !E.Element)
2336
- return k.isSupported = !1, k;
2405
+ let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : wa();
2406
+ const y = (C) => xr(C);
2407
+ if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !== ze.document || !R.Element)
2408
+ return y.isSupported = !1, y;
2337
2409
  let {
2338
- document: T
2339
- } = E;
2340
- const R = T, W = R.currentScript, {
2410
+ document: $
2411
+ } = R;
2412
+ const E = $, W = E.currentScript, {
2341
2413
  DocumentFragment: he,
2342
2414
  HTMLTemplateElement: Te,
2343
2415
  Node: _t,
2344
- Element: Er,
2345
- NodeFilter: Ve,
2346
- NamedNodeMap: Ra = E.NamedNodeMap || E.MozNamedAttrMap,
2416
+ Element: Rr,
2417
+ NodeFilter: je,
2418
+ NamedNodeMap: Ea = R.NamedNodeMap || R.MozNamedAttrMap,
2347
2419
  HTMLFormElement: Pa,
2348
2420
  DOMParser: Ta,
2349
2421
  trustedTypes: rt
2350
- } = E, je = Er.prototype, $a = Ue(je, "cloneNode"), _a = Ue(je, "remove"), Aa = Ue(je, "nextSibling"), Ia = Ue(je, "childNodes"), st = Ue(je, "parentNode");
2422
+ } = R, Ve = Rr.prototype, $a = Ue(Ve, "cloneNode"), _a = Ue(Ve, "remove"), Ia = Ue(Ve, "nextSibling"), Aa = Ue(Ve, "childNodes"), st = Ue(Ve, "parentNode");
2351
2423
  if (typeof Te == "function") {
2352
- const C = T.createElement("template");
2353
- C.content && C.content.ownerDocument && (T = C.content.ownerDocument);
2424
+ const C = $.createElement("template");
2425
+ C.content && C.content.ownerDocument && ($ = C.content.ownerDocument);
2354
2426
  }
2355
2427
  let Z, Be = "";
2356
2428
  const {
2357
- implementation: At,
2429
+ implementation: It,
2358
2430
  createNodeIterator: Ma,
2359
2431
  createDocumentFragment: La,
2360
2432
  getElementsByTagName: Oa
2361
- } = T, {
2433
+ } = $, {
2362
2434
  importNode: Fa
2363
- } = R;
2364
- let K = wr();
2365
- k.isSupported = typeof r == "function" && typeof st == "function" && At && At.createHTMLDocument !== void 0;
2435
+ } = E;
2436
+ let Q = wr();
2437
+ y.isSupported = typeof r == "function" && typeof st == "function" && It && It.createHTMLDocument !== void 0;
2366
2438
  const {
2367
- MUSTACHE_EXPR: It,
2439
+ MUSTACHE_EXPR: At,
2368
2440
  ERB_EXPR: Mt,
2369
2441
  TMPLIT_EXPR: Lt,
2370
2442
  DATA_ATTR: Da,
2371
2443
  ARIA_ATTR: Na,
2372
2444
  IS_SCRIPT_OR_DATA: Ha,
2373
- ATTR_WHITESPACE: Rr,
2445
+ ATTR_WHITESPACE: Er,
2374
2446
  CUSTOM_ELEMENT: Ua
2375
- } = Sr;
2447
+ } = kr;
2376
2448
  let {
2377
2449
  IS_ALLOWED_URI: Pr
2378
- } = Sr, U = null;
2379
- const Tr = x({}, [...gr, ...Rt, ...Pt, ...Tt, ...vr]);
2450
+ } = kr, z = null;
2451
+ const Tr = x({}, [...gr, ...Et, ...Pt, ...Tt, ...vr]);
2380
2452
  let V = null;
2381
2453
  const $r = x({}, [...br, ...$t, ...yr, ...tt]);
2382
- let L = Object.seal(h(null, {
2454
+ let F = Object.seal(h(null, {
2383
2455
  tagNameCheck: {
2384
2456
  writable: !0,
2385
2457
  configurable: !1,
@@ -2398,168 +2470,168 @@ var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2398
2470
  enumerable: !0,
2399
2471
  value: !1
2400
2472
  }
2401
- })), We = null, Ot = null, _r = !0, Ft = !0, Ar = !1, Ir = !0, $e = !1, Dt = !0, Ee = !1, Nt = !1, Ht = !1, _e = !1, at = !1, nt = !1, Mr = !0, Lr = !1;
2473
+ })), We = null, Ot = null, _r = !0, Ft = !0, Ir = !1, Ar = !0, $e = !1, Dt = !0, Ee = !1, Nt = !1, Ht = !1, _e = !1, at = !1, nt = !1, Mr = !0, Lr = !1;
2402
2474
  const za = "user-content-";
2403
- let Ut = !0, Ge = !1, Ae = {}, Ie = null;
2475
+ let Ut = !0, Ge = !1, Ie = {}, Ae = null;
2404
2476
  const Or = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2405
2477
  let Fr = null;
2406
2478
  const Dr = x({}, ["audio", "video", "img", "source", "image", "track"]);
2407
2479
  let zt = null;
2408
- const Nr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ot = "http://www.w3.org/1998/Math/MathML", ct = "http://www.w3.org/2000/svg", de = "http://www.w3.org/1999/xhtml";
2409
- let Me = de, Vt = !1, jt = null;
2410
- const Va = x({}, [ot, ct, de], _);
2480
+ const Nr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ot = "http://www.w3.org/1998/Math/MathML", ct = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml";
2481
+ let Me = fe, jt = !1, Vt = null;
2482
+ const ja = x({}, [ot, ct, fe], T);
2411
2483
  let it = x({}, ["mi", "mo", "mn", "ms", "mtext"]), lt = x({}, ["annotation-xml"]);
2412
- const ja = x({}, ["title", "style", "font", "a", "script"]);
2484
+ const Va = x({}, ["title", "style", "font", "a", "script"]);
2413
2485
  let qe = null;
2414
2486
  const Ba = ["application/xhtml+xml", "text/html"], Wa = "text/html";
2415
- let z = null, Le = null;
2416
- const Ga = T.createElement("form"), Hr = function(d) {
2417
- return d instanceof RegExp || d instanceof Function;
2487
+ let j = null, Le = null;
2488
+ const Ga = $.createElement("form"), Hr = function(f) {
2489
+ return f instanceof RegExp || f instanceof Function;
2418
2490
  }, Bt = function() {
2419
- let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2420
- if (!(Le && Le === d)) {
2421
- if ((!d || typeof d != "object") && (d = {}), d = xe(d), qe = // eslint-disable-next-line unicorn/prefer-includes
2422
- Ba.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? Wa : d.PARSER_MEDIA_TYPE, z = qe === "application/xhtml+xml" ? _ : B, U = ee(d, "ALLOWED_TAGS") ? x({}, d.ALLOWED_TAGS, z) : Tr, V = ee(d, "ALLOWED_ATTR") ? x({}, d.ALLOWED_ATTR, z) : $r, jt = ee(d, "ALLOWED_NAMESPACES") ? x({}, d.ALLOWED_NAMESPACES, _) : Va, zt = ee(d, "ADD_URI_SAFE_ATTR") ? x(xe(Nr), d.ADD_URI_SAFE_ATTR, z) : Nr, Fr = ee(d, "ADD_DATA_URI_TAGS") ? x(xe(Dr), d.ADD_DATA_URI_TAGS, z) : Dr, Ie = ee(d, "FORBID_CONTENTS") ? x({}, d.FORBID_CONTENTS, z) : Or, We = ee(d, "FORBID_TAGS") ? x({}, d.FORBID_TAGS, z) : {}, Ot = ee(d, "FORBID_ATTR") ? x({}, d.FORBID_ATTR, z) : {}, Ae = ee(d, "USE_PROFILES") ? d.USE_PROFILES : !1, _r = d.ALLOW_ARIA_ATTR !== !1, Ft = d.ALLOW_DATA_ATTR !== !1, Ar = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Ir = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $e = d.SAFE_FOR_TEMPLATES || !1, Dt = d.SAFE_FOR_XML !== !1, Ee = d.WHOLE_DOCUMENT || !1, _e = d.RETURN_DOM || !1, at = d.RETURN_DOM_FRAGMENT || !1, nt = d.RETURN_TRUSTED_TYPE || !1, Ht = d.FORCE_BODY || !1, Mr = d.SANITIZE_DOM !== !1, Lr = d.SANITIZE_NAMED_PROPS || !1, Ut = d.KEEP_CONTENT !== !1, Ge = d.IN_PLACE || !1, Pr = d.ALLOWED_URI_REGEXP || kr, Me = d.NAMESPACE || de, it = d.MATHML_TEXT_INTEGRATION_POINTS || it, lt = d.HTML_INTEGRATION_POINTS || lt, L = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Hr(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (L.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Hr(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (L.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $e && (Ft = !1), at && (_e = !0), Ae && (U = x({}, vr), V = [], Ae.html === !0 && (x(U, gr), x(V, br)), Ae.svg === !0 && (x(U, Rt), x(V, $t), x(V, tt)), Ae.svgFilters === !0 && (x(U, Pt), x(V, $t), x(V, tt)), Ae.mathMl === !0 && (x(U, Tt), x(V, yr), x(V, tt))), d.ADD_TAGS && (U === Tr && (U = xe(U)), x(U, d.ADD_TAGS, z)), d.ADD_ATTR && (V === $r && (V = xe(V)), x(V, d.ADD_ATTR, z)), d.ADD_URI_SAFE_ATTR && x(zt, d.ADD_URI_SAFE_ATTR, z), d.FORBID_CONTENTS && (Ie === Or && (Ie = xe(Ie)), x(Ie, d.FORBID_CONTENTS, z)), Ut && (U["#text"] = !0), Ee && x(U, ["html", "head", "body"]), U.table && (x(U, ["tbody"]), delete We.tbody), d.TRUSTED_TYPES_POLICY) {
2423
- if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
2424
- throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2425
- if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
2426
- throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2427
- Z = d.TRUSTED_TYPES_POLICY, Be = Z.createHTML("");
2491
+ let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2492
+ if (!(Le && Le === f)) {
2493
+ if ((!f || typeof f != "object") && (f = {}), f = Re(f), qe = // eslint-disable-next-line unicorn/prefer-includes
2494
+ Ba.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Wa : f.PARSER_MEDIA_TYPE, j = qe === "application/xhtml+xml" ? T : O, z = ee(f, "ALLOWED_TAGS") ? x({}, f.ALLOWED_TAGS, j) : Tr, V = ee(f, "ALLOWED_ATTR") ? x({}, f.ALLOWED_ATTR, j) : $r, Vt = ee(f, "ALLOWED_NAMESPACES") ? x({}, f.ALLOWED_NAMESPACES, T) : ja, zt = ee(f, "ADD_URI_SAFE_ATTR") ? x(Re(Nr), f.ADD_URI_SAFE_ATTR, j) : Nr, Fr = ee(f, "ADD_DATA_URI_TAGS") ? x(Re(Dr), f.ADD_DATA_URI_TAGS, j) : Dr, Ae = ee(f, "FORBID_CONTENTS") ? x({}, f.FORBID_CONTENTS, j) : Or, We = ee(f, "FORBID_TAGS") ? x({}, f.FORBID_TAGS, j) : {}, Ot = ee(f, "FORBID_ATTR") ? x({}, f.FORBID_ATTR, j) : {}, Ie = ee(f, "USE_PROFILES") ? f.USE_PROFILES : !1, _r = f.ALLOW_ARIA_ATTR !== !1, Ft = f.ALLOW_DATA_ATTR !== !1, Ir = f.ALLOW_UNKNOWN_PROTOCOLS || !1, Ar = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $e = f.SAFE_FOR_TEMPLATES || !1, Dt = f.SAFE_FOR_XML !== !1, Ee = f.WHOLE_DOCUMENT || !1, _e = f.RETURN_DOM || !1, at = f.RETURN_DOM_FRAGMENT || !1, nt = f.RETURN_TRUSTED_TYPE || !1, Ht = f.FORCE_BODY || !1, Mr = f.SANITIZE_DOM !== !1, Lr = f.SANITIZE_NAMED_PROPS || !1, Ut = f.KEEP_CONTENT !== !1, Ge = f.IN_PLACE || !1, Pr = f.ALLOWED_URI_REGEXP || Cr, Me = f.NAMESPACE || fe, it = f.MATHML_TEXT_INTEGRATION_POINTS || it, lt = f.HTML_INTEGRATION_POINTS || lt, F = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Hr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Hr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $e && (Ft = !1), at && (_e = !0), Ie && (z = x({}, vr), V = [], Ie.html === !0 && (x(z, gr), x(V, br)), Ie.svg === !0 && (x(z, Et), x(V, $t), x(V, tt)), Ie.svgFilters === !0 && (x(z, Pt), x(V, $t), x(V, tt)), Ie.mathMl === !0 && (x(z, Tt), x(V, yr), x(V, tt))), f.ADD_TAGS && (z === Tr && (z = Re(z)), x(z, f.ADD_TAGS, j)), f.ADD_ATTR && (V === $r && (V = Re(V)), x(V, f.ADD_ATTR, j)), f.ADD_URI_SAFE_ATTR && x(zt, f.ADD_URI_SAFE_ATTR, j), f.FORBID_CONTENTS && (Ae === Or && (Ae = Re(Ae)), x(Ae, f.FORBID_CONTENTS, j)), Ut && (z["#text"] = !0), Ee && x(z, ["html", "head", "body"]), z.table && (x(z, ["tbody"]), delete We.tbody), f.TRUSTED_TYPES_POLICY) {
2495
+ if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
2496
+ throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2497
+ if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
2498
+ throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2499
+ Z = f.TRUSTED_TYPES_POLICY, Be = Z.createHTML("");
2428
2500
  } else
2429
2501
  Z === void 0 && (Z = xa(rt, W)), Z !== null && typeof Be == "string" && (Be = Z.createHTML(""));
2430
- c && c(d), Le = d;
2502
+ c && c(f), Le = f;
2431
2503
  }
2432
- }, Ur = x({}, [...Rt, ...Pt, ...fa]), zr = x({}, [...Tt, ...pa]), qa = function(d) {
2433
- let g = st(d);
2434
- (!g || !g.tagName) && (g = {
2504
+ }, Ur = x({}, [...Et, ...Pt, ...da]), zr = x({}, [...Tt, ...pa]), qa = function(f) {
2505
+ let m = st(f);
2506
+ (!m || !m.tagName) && (m = {
2435
2507
  namespaceURI: Me,
2436
2508
  tagName: "template"
2437
2509
  });
2438
- const y = B(d.tagName), A = B(g.tagName);
2439
- return jt[d.namespaceURI] ? d.namespaceURI === ct ? g.namespaceURI === de ? y === "svg" : g.namespaceURI === ot ? y === "svg" && (A === "annotation-xml" || it[A]) : !!Ur[y] : d.namespaceURI === ot ? g.namespaceURI === de ? y === "math" : g.namespaceURI === ct ? y === "math" && lt[A] : !!zr[y] : d.namespaceURI === de ? g.namespaceURI === ct && !lt[A] || g.namespaceURI === ot && !it[A] ? !1 : !zr[y] && (ja[y] || !Ur[y]) : !!(qe === "application/xhtml+xml" && jt[d.namespaceURI]) : !1;
2440
- }, ie = function(d) {
2441
- P(k.removed, {
2442
- element: d
2510
+ const v = O(f.tagName), M = O(m.tagName);
2511
+ return Vt[f.namespaceURI] ? f.namespaceURI === ct ? m.namespaceURI === fe ? v === "svg" : m.namespaceURI === ot ? v === "svg" && (M === "annotation-xml" || it[M]) : !!Ur[v] : f.namespaceURI === ot ? m.namespaceURI === fe ? v === "math" : m.namespaceURI === ct ? v === "math" && lt[M] : !!zr[v] : f.namespaceURI === fe ? m.namespaceURI === ct && !lt[M] || m.namespaceURI === ot && !it[M] ? !1 : !zr[v] && (Va[v] || !Ur[v]) : !!(qe === "application/xhtml+xml" && Vt[f.namespaceURI]) : !1;
2512
+ }, ie = function(f) {
2513
+ P(y.removed, {
2514
+ element: f
2443
2515
  });
2444
2516
  try {
2445
- st(d).removeChild(d);
2517
+ st(f).removeChild(f);
2446
2518
  } catch {
2447
- _a(d);
2519
+ _a(f);
2448
2520
  }
2449
- }, ut = function(d, g) {
2521
+ }, ut = function(f, m) {
2450
2522
  try {
2451
- P(k.removed, {
2452
- attribute: g.getAttributeNode(d),
2453
- from: g
2523
+ P(y.removed, {
2524
+ attribute: m.getAttributeNode(f),
2525
+ from: m
2454
2526
  });
2455
2527
  } catch {
2456
- P(k.removed, {
2528
+ P(y.removed, {
2457
2529
  attribute: null,
2458
- from: g
2530
+ from: m
2459
2531
  });
2460
2532
  }
2461
- if (g.removeAttribute(d), d === "is")
2533
+ if (m.removeAttribute(f), f === "is")
2462
2534
  if (_e || at)
2463
2535
  try {
2464
- ie(g);
2536
+ ie(m);
2465
2537
  } catch {
2466
2538
  }
2467
2539
  else
2468
2540
  try {
2469
- g.setAttribute(d, "");
2541
+ m.setAttribute(f, "");
2470
2542
  } catch {
2471
2543
  }
2472
- }, Vr = function(d) {
2473
- let g = null, y = null;
2544
+ }, jr = function(f) {
2545
+ let m = null, v = null;
2474
2546
  if (Ht)
2475
- d = "<remove></remove>" + d;
2547
+ f = "<remove></remove>" + f;
2476
2548
  else {
2477
- const j = ue(d, /^[\r\n\t ]+/);
2478
- y = j && j[0];
2549
+ const B = ue(f, /^[\r\n\t ]+/);
2550
+ v = B && B[0];
2479
2551
  }
2480
- qe === "application/xhtml+xml" && Me === de && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
2481
- const A = Z ? Z.createHTML(d) : d;
2482
- if (Me === de)
2552
+ qe === "application/xhtml+xml" && Me === fe && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
2553
+ const M = Z ? Z.createHTML(f) : f;
2554
+ if (Me === fe)
2483
2555
  try {
2484
- g = new Ta().parseFromString(A, qe);
2556
+ m = new Ta().parseFromString(M, qe);
2485
2557
  } catch {
2486
2558
  }
2487
- if (!g || !g.documentElement) {
2488
- g = At.createDocument(Me, "template", null);
2559
+ if (!m || !m.documentElement) {
2560
+ m = It.createDocument(Me, "template", null);
2489
2561
  try {
2490
- g.documentElement.innerHTML = Vt ? Be : A;
2562
+ m.documentElement.innerHTML = jt ? Be : M;
2491
2563
  } catch {
2492
2564
  }
2493
2565
  }
2494
- const G = g.body || g.documentElement;
2495
- return d && y && G.insertBefore(T.createTextNode(y), G.childNodes[0] || null), Me === de ? Oa.call(g, Ee ? "html" : "body")[0] : Ee ? g.documentElement : G;
2496
- }, jr = function(d) {
2566
+ const G = m.body || m.documentElement;
2567
+ return f && v && G.insertBefore($.createTextNode(v), G.childNodes[0] || null), Me === fe ? Oa.call(m, Ee ? "html" : "body")[0] : Ee ? m.documentElement : G;
2568
+ }, Vr = function(f) {
2497
2569
  return Ma.call(
2498
- d.ownerDocument || d,
2499
- d,
2570
+ f.ownerDocument || f,
2571
+ f,
2500
2572
  // eslint-disable-next-line no-bitwise
2501
- Ve.SHOW_ELEMENT | Ve.SHOW_COMMENT | Ve.SHOW_TEXT | Ve.SHOW_PROCESSING_INSTRUCTION | Ve.SHOW_CDATA_SECTION,
2573
+ je.SHOW_ELEMENT | je.SHOW_COMMENT | je.SHOW_TEXT | je.SHOW_PROCESSING_INSTRUCTION | je.SHOW_CDATA_SECTION,
2502
2574
  null
2503
2575
  );
2504
- }, Wt = function(d) {
2505
- return d instanceof Pa && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof Ra) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
2506
- }, Br = function(d) {
2507
- return typeof _t == "function" && d instanceof _t;
2576
+ }, Wt = function(f) {
2577
+ return f instanceof Pa && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof Ea) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
2578
+ }, Br = function(f) {
2579
+ return typeof _t == "function" && f instanceof _t;
2508
2580
  };
2509
- function fe(C, d, g) {
2510
- m(C, (y) => {
2511
- y.call(k, d, g, Le);
2581
+ function de(C, f, m) {
2582
+ g(C, (v) => {
2583
+ v.call(y, f, m, Le);
2512
2584
  });
2513
2585
  }
2514
- const Wr = function(d) {
2515
- let g = null;
2516
- if (fe(K.beforeSanitizeElements, d, null), Wt(d))
2517
- return ie(d), !0;
2518
- const y = z(d.nodeName);
2519
- if (fe(K.uponSanitizeElement, d, {
2520
- tagName: y,
2521
- allowedTags: U
2522
- }), d.hasChildNodes() && !Br(d.firstElementChild) && H(/<[/\w]/g, d.innerHTML) && H(/<[/\w]/g, d.textContent) || d.nodeType === ze.progressingInstruction || Dt && d.nodeType === ze.comment && H(/<[/\w]/g, d.data))
2523
- return ie(d), !0;
2524
- if (!U[y] || We[y]) {
2525
- if (!We[y] && qr(y) && (L.tagNameCheck instanceof RegExp && H(L.tagNameCheck, y) || L.tagNameCheck instanceof Function && L.tagNameCheck(y)))
2586
+ const Wr = function(f) {
2587
+ let m = null;
2588
+ if (de(Q.beforeSanitizeElements, f, null), Wt(f))
2589
+ return ie(f), !0;
2590
+ const v = j(f.nodeName);
2591
+ if (de(Q.uponSanitizeElement, f, {
2592
+ tagName: v,
2593
+ allowedTags: z
2594
+ }), f.hasChildNodes() && !Br(f.firstElementChild) && U(/<[/\w]/g, f.innerHTML) && U(/<[/\w]/g, f.textContent) || f.nodeType === ze.progressingInstruction || Dt && f.nodeType === ze.comment && U(/<[/\w]/g, f.data))
2595
+ return ie(f), !0;
2596
+ if (!z[v] || We[v]) {
2597
+ if (!We[v] && qr(v) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, v) || F.tagNameCheck instanceof Function && F.tagNameCheck(v)))
2526
2598
  return !1;
2527
- if (Ut && !Ie[y]) {
2528
- const A = st(d) || d.parentNode, G = Ia(d) || d.childNodes;
2529
- if (G && A) {
2530
- const j = G.length;
2531
- for (let te = j - 1; te >= 0; --te) {
2599
+ if (Ut && !Ae[v]) {
2600
+ const M = st(f) || f.parentNode, G = Aa(f) || f.childNodes;
2601
+ if (G && M) {
2602
+ const B = G.length;
2603
+ for (let te = B - 1; te >= 0; --te) {
2532
2604
  const le = $a(G[te], !0);
2533
- le.__removalCount = (d.__removalCount || 0) + 1, A.insertBefore(le, Aa(d));
2605
+ le.__removalCount = (f.__removalCount || 0) + 1, M.insertBefore(le, Ia(f));
2534
2606
  }
2535
2607
  }
2536
2608
  }
2537
- return ie(d), !0;
2609
+ return ie(f), !0;
2538
2610
  }
2539
- return d instanceof Er && !qa(d) || (y === "noscript" || y === "noembed" || y === "noframes") && H(/<\/no(script|embed|frames)/i, d.innerHTML) ? (ie(d), !0) : ($e && d.nodeType === ze.text && (g = d.textContent, m([It, Mt, Lt], (A) => {
2540
- g = se(g, A, " ");
2541
- }), d.textContent !== g && (P(k.removed, {
2542
- element: d.cloneNode()
2543
- }), d.textContent = g)), fe(K.afterSanitizeElements, d, null), !1);
2544
- }, Gr = function(d, g, y) {
2545
- if (Mr && (g === "id" || g === "name") && (y in T || y in Ga))
2611
+ return f instanceof Rr && !qa(f) || (v === "noscript" || v === "noembed" || v === "noframes") && U(/<\/no(script|embed|frames)/i, f.innerHTML) ? (ie(f), !0) : ($e && f.nodeType === ze.text && (m = f.textContent, g([At, Mt, Lt], (M) => {
2612
+ m = se(m, M, " ");
2613
+ }), f.textContent !== m && (P(y.removed, {
2614
+ element: f.cloneNode()
2615
+ }), f.textContent = m)), de(Q.afterSanitizeElements, f, null), !1);
2616
+ }, Gr = function(f, m, v) {
2617
+ if (Mr && (m === "id" || m === "name") && (v in $ || v in Ga))
2546
2618
  return !1;
2547
- if (!(Ft && !Ot[g] && H(Da, g))) {
2548
- if (!(_r && H(Na, g))) {
2549
- if (!V[g] || Ot[g]) {
2619
+ if (!(Ft && !Ot[m] && U(Da, m))) {
2620
+ if (!(_r && U(Na, m))) {
2621
+ if (!V[m] || Ot[m]) {
2550
2622
  if (
2551
2623
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2552
2624
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2553
2625
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2554
- !(qr(d) && (L.tagNameCheck instanceof RegExp && H(L.tagNameCheck, d) || L.tagNameCheck instanceof Function && L.tagNameCheck(d)) && (L.attributeNameCheck instanceof RegExp && H(L.attributeNameCheck, g) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(g)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2626
+ !(qr(f) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, f) || F.tagNameCheck instanceof Function && F.tagNameCheck(f)) && (F.attributeNameCheck instanceof RegExp && U(F.attributeNameCheck, m) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2555
2627
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2556
- g === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && H(L.tagNameCheck, y) || L.tagNameCheck instanceof Function && L.tagNameCheck(y)))
2628
+ m === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, v) || F.tagNameCheck instanceof Function && F.tagNameCheck(v)))
2557
2629
  ) return !1;
2558
- } else if (!zt[g]) {
2559
- if (!H(Pr, se(y, Rr, ""))) {
2560
- if (!((g === "src" || g === "xlink:href" || g === "href") && d !== "script" && Se(y, "data:") === 0 && Fr[d])) {
2561
- if (!(Ar && !H(Ha, se(y, Rr, "")))) {
2562
- if (y)
2630
+ } else if (!zt[m]) {
2631
+ if (!U(Pr, se(v, Er, ""))) {
2632
+ if (!((m === "src" || m === "xlink:href" || m === "href") && f !== "script" && we(v, "data:") === 0 && Fr[f])) {
2633
+ if (!(Ir && !U(Ha, se(v, Er, "")))) {
2634
+ if (v)
2563
2635
  return !1;
2564
2636
  }
2565
2637
  }
@@ -2568,174 +2640,174 @@ var Bo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2568
2640
  }
2569
2641
  }
2570
2642
  return !0;
2571
- }, qr = function(d) {
2572
- return d !== "annotation-xml" && ue(d, Ua);
2573
- }, Yr = function(d) {
2574
- fe(K.beforeSanitizeAttributes, d, null);
2643
+ }, qr = function(f) {
2644
+ return f !== "annotation-xml" && ue(f, Ua);
2645
+ }, Yr = function(f) {
2646
+ de(Q.beforeSanitizeAttributes, f, null);
2575
2647
  const {
2576
- attributes: g
2577
- } = d;
2578
- if (!g || Wt(d))
2648
+ attributes: m
2649
+ } = f;
2650
+ if (!m || Wt(f))
2579
2651
  return;
2580
- const y = {
2652
+ const v = {
2581
2653
  attrName: "",
2582
2654
  attrValue: "",
2583
2655
  keepAttr: !0,
2584
2656
  allowedAttributes: V,
2585
2657
  forceKeepAttr: void 0
2586
2658
  };
2587
- let A = g.length;
2588
- for (; A--; ) {
2589
- const G = g[A], {
2590
- name: j,
2659
+ let M = m.length;
2660
+ for (; M--; ) {
2661
+ const G = m[M], {
2662
+ name: B,
2591
2663
  namespaceURI: te,
2592
2664
  value: le
2593
- } = G, Ye = z(j);
2594
- let Q = j === "value" ? le : N(le);
2595
- if (y.attrName = Ye, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, fe(K.uponSanitizeAttribute, d, y), Q = y.attrValue, Lr && (Ye === "id" || Ye === "name") && (ut(j, d), Q = za + Q), Dt && H(/((--!?|])>)|<\/(style|title)/i, Q)) {
2596
- ut(j, d);
2665
+ } = G, Ye = j(B);
2666
+ let K = B === "value" ? le : H(le);
2667
+ if (v.attrName = Ye, v.attrValue = K, v.keepAttr = !0, v.forceKeepAttr = void 0, de(Q.uponSanitizeAttribute, f, v), K = v.attrValue, Lr && (Ye === "id" || Ye === "name") && (ut(B, f), K = za + K), Dt && U(/((--!?|])>)|<\/(style|title)/i, K)) {
2668
+ ut(B, f);
2597
2669
  continue;
2598
2670
  }
2599
- if (y.forceKeepAttr || (ut(j, d), !y.keepAttr))
2671
+ if (v.forceKeepAttr || (ut(B, f), !v.keepAttr))
2600
2672
  continue;
2601
- if (!Ir && H(/\/>/i, Q)) {
2602
- ut(j, d);
2673
+ if (!Ar && U(/\/>/i, K)) {
2674
+ ut(B, f);
2603
2675
  continue;
2604
2676
  }
2605
- $e && m([It, Mt, Lt], (Kr) => {
2606
- Q = se(Q, Kr, " ");
2677
+ $e && g([At, Mt, Lt], (Qr) => {
2678
+ K = se(K, Qr, " ");
2607
2679
  });
2608
- const Zr = z(d.nodeName);
2609
- if (Gr(Zr, Ye, Q)) {
2680
+ const Zr = j(f.nodeName);
2681
+ if (Gr(Zr, Ye, K)) {
2610
2682
  if (Z && typeof rt == "object" && typeof rt.getAttributeType == "function" && !te)
2611
2683
  switch (rt.getAttributeType(Zr, Ye)) {
2612
2684
  case "TrustedHTML": {
2613
- Q = Z.createHTML(Q);
2685
+ K = Z.createHTML(K);
2614
2686
  break;
2615
2687
  }
2616
2688
  case "TrustedScriptURL": {
2617
- Q = Z.createScriptURL(Q);
2689
+ K = Z.createScriptURL(K);
2618
2690
  break;
2619
2691
  }
2620
2692
  }
2621
2693
  try {
2622
- te ? d.setAttributeNS(te, j, Q) : d.setAttribute(j, Q), Wt(d) ? ie(d) : v(k.removed);
2694
+ te ? f.setAttributeNS(te, B, K) : f.setAttribute(B, K), Wt(f) ? ie(f) : b(y.removed);
2623
2695
  } catch {
2624
2696
  }
2625
2697
  }
2626
2698
  }
2627
- fe(K.afterSanitizeAttributes, d, null);
2628
- }, Ya = function C(d) {
2629
- let g = null;
2630
- const y = jr(d);
2631
- for (fe(K.beforeSanitizeShadowDOM, d, null); g = y.nextNode(); )
2632
- fe(K.uponSanitizeShadowNode, g, null), Wr(g), Yr(g), g.content instanceof he && C(g.content);
2633
- fe(K.afterSanitizeShadowDOM, d, null);
2699
+ de(Q.afterSanitizeAttributes, f, null);
2700
+ }, Ya = function C(f) {
2701
+ let m = null;
2702
+ const v = Vr(f);
2703
+ for (de(Q.beforeSanitizeShadowDOM, f, null); m = v.nextNode(); )
2704
+ de(Q.uponSanitizeShadowNode, m, null), Wr(m), Yr(m), m.content instanceof he && C(m.content);
2705
+ de(Q.afterSanitizeShadowDOM, f, null);
2634
2706
  };
2635
- return k.sanitize = function(C) {
2636
- let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = null, y = null, A = null, G = null;
2637
- if (Vt = !C, Vt && (C = "<!-->"), typeof C != "string" && !Br(C))
2707
+ return y.sanitize = function(C) {
2708
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, v = null, M = null, G = null;
2709
+ if (jt = !C, jt && (C = "<!-->"), typeof C != "string" && !Br(C))
2638
2710
  if (typeof C.toString == "function") {
2639
2711
  if (C = C.toString(), typeof C != "string")
2640
- throw we("dirty is not a string, aborting");
2712
+ throw xe("dirty is not a string, aborting");
2641
2713
  } else
2642
- throw we("toString is not a function");
2643
- if (!k.isSupported)
2714
+ throw xe("toString is not a function");
2715
+ if (!y.isSupported)
2644
2716
  return C;
2645
- if (Nt || Bt(d), k.removed = [], typeof C == "string" && (Ge = !1), Ge) {
2717
+ if (Nt || Bt(f), y.removed = [], typeof C == "string" && (Ge = !1), Ge) {
2646
2718
  if (C.nodeName) {
2647
- const le = z(C.nodeName);
2648
- if (!U[le] || We[le])
2649
- throw we("root node is forbidden and cannot be sanitized in-place");
2719
+ const le = j(C.nodeName);
2720
+ if (!z[le] || We[le])
2721
+ throw xe("root node is forbidden and cannot be sanitized in-place");
2650
2722
  }
2651
2723
  } else if (C instanceof _t)
2652
- g = Vr("<!---->"), y = g.ownerDocument.importNode(C, !0), y.nodeType === ze.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? g = y : g.appendChild(y);
2724
+ m = jr("<!---->"), v = m.ownerDocument.importNode(C, !0), v.nodeType === ze.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? m = v : m.appendChild(v);
2653
2725
  else {
2654
2726
  if (!_e && !$e && !Ee && // eslint-disable-next-line unicorn/prefer-includes
2655
2727
  C.indexOf("<") === -1)
2656
2728
  return Z && nt ? Z.createHTML(C) : C;
2657
- if (g = Vr(C), !g)
2729
+ if (m = jr(C), !m)
2658
2730
  return _e ? null : nt ? Be : "";
2659
2731
  }
2660
- g && Ht && ie(g.firstChild);
2661
- const j = jr(Ge ? C : g);
2662
- for (; A = j.nextNode(); )
2663
- Wr(A), Yr(A), A.content instanceof he && Ya(A.content);
2732
+ m && Ht && ie(m.firstChild);
2733
+ const B = Vr(Ge ? C : m);
2734
+ for (; M = B.nextNode(); )
2735
+ Wr(M), Yr(M), M.content instanceof he && Ya(M.content);
2664
2736
  if (Ge)
2665
2737
  return C;
2666
2738
  if (_e) {
2667
2739
  if (at)
2668
- for (G = La.call(g.ownerDocument); g.firstChild; )
2669
- G.appendChild(g.firstChild);
2740
+ for (G = La.call(m.ownerDocument); m.firstChild; )
2741
+ G.appendChild(m.firstChild);
2670
2742
  else
2671
- G = g;
2672
- return (V.shadowroot || V.shadowrootmode) && (G = Fa.call(R, G, !0)), G;
2743
+ G = m;
2744
+ return (V.shadowroot || V.shadowrootmode) && (G = Fa.call(E, G, !0)), G;
2673
2745
  }
2674
- let te = Ee ? g.outerHTML : g.innerHTML;
2675
- return Ee && U["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && H(Cr, g.ownerDocument.doctype.name) && (te = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
2676
- ` + te), $e && m([It, Mt, Lt], (le) => {
2746
+ let te = Ee ? m.outerHTML : m.innerHTML;
2747
+ return Ee && z["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && U(Sr, m.ownerDocument.doctype.name) && (te = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
2748
+ ` + te), $e && g([At, Mt, Lt], (le) => {
2677
2749
  te = se(te, le, " ");
2678
2750
  }), Z && nt ? Z.createHTML(te) : te;
2679
- }, k.setConfig = function() {
2751
+ }, y.setConfig = function() {
2680
2752
  let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2681
2753
  Bt(C), Nt = !0;
2682
- }, k.clearConfig = function() {
2754
+ }, y.clearConfig = function() {
2683
2755
  Le = null, Nt = !1;
2684
- }, k.isValidAttribute = function(C, d, g) {
2756
+ }, y.isValidAttribute = function(C, f, m) {
2685
2757
  Le || Bt({});
2686
- const y = z(C), A = z(d);
2687
- return Gr(y, A, g);
2688
- }, k.addHook = function(C, d) {
2689
- typeof d == "function" && P(K[C], d);
2690
- }, k.removeHook = function(C, d) {
2691
- if (d !== void 0) {
2692
- const g = b(K[C], d);
2693
- return g === -1 ? void 0 : D(K[C], g, 1)[0];
2758
+ const v = j(C), M = j(f);
2759
+ return Gr(v, M, m);
2760
+ }, y.addHook = function(C, f) {
2761
+ typeof f == "function" && P(Q[C], f);
2762
+ }, y.removeHook = function(C, f) {
2763
+ if (f !== void 0) {
2764
+ const m = k(Q[C], f);
2765
+ return m === -1 ? void 0 : _(Q[C], m, 1)[0];
2694
2766
  }
2695
- return v(K[C]);
2696
- }, k.removeHooks = function(C) {
2697
- K[C] = [];
2698
- }, k.removeAllHooks = function() {
2699
- K = wr();
2700
- }, k;
2767
+ return b(Q[C]);
2768
+ }, y.removeHooks = function(C) {
2769
+ Q[C] = [];
2770
+ }, y.removeAllHooks = function() {
2771
+ Q = wr();
2772
+ }, y;
2701
2773
  }
2702
- var Ea = xr();
2703
- return Ea;
2774
+ var Ra = xr();
2775
+ return Ra;
2704
2776
  });
2705
2777
  })(Zs);
2706
- const Wo = Zs.exports, St = (e, ...t) => {
2778
+ const Bo = Zs.exports, kt = (e, ...t) => {
2707
2779
  let r = e[0];
2708
2780
  for (let s = 0; s < t.length; s++)
2709
- r += Wo.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
2781
+ r += Bo.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
2710
2782
  return r || "";
2711
- }, Go = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2783
+ }, Wo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2712
2784
  let J = (e = 21) => {
2713
2785
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
2714
2786
  for (; e--; )
2715
- t += Go[r[e] & 63];
2787
+ t += Wo[r[e] & 63];
2716
2788
  return t;
2717
2789
  };
2718
- const qo = /* @__PURE__ */ F(class extends O {
2790
+ const Go = /* @__PURE__ */ N(class extends D {
2719
2791
  constructor() {
2720
2792
  super();
2721
- f(this, "adSource", "Custom");
2722
- f(this, "adClientResponseItem");
2723
- f(this, "adContainerId", J());
2724
- f(this, "searchTerm");
2725
- f(this, "isSearchInProgress", !1);
2726
- f(this, "core");
2727
- f(this, "intersectionObserver");
2728
- f(this, "storeUnsubscribe");
2729
- f(this, "adContainerRenderedTimeout");
2730
- f(this, "isComponentConnected", !0);
2793
+ d(this, "adSource", "Custom");
2794
+ d(this, "adClientResponseItem");
2795
+ d(this, "adContainerId", J());
2796
+ d(this, "searchTerm");
2797
+ d(this, "isSearchInProgress", !1);
2798
+ d(this, "core");
2799
+ d(this, "intersectionObserver");
2800
+ d(this, "storeUnsubscribe");
2801
+ d(this, "adContainerRenderedTimeout");
2802
+ d(this, "isComponentConnected", !0);
2731
2803
  this.__registerHost();
2732
2804
  }
2733
2805
  get hostElement() {
2734
2806
  return this;
2735
2807
  }
2736
2808
  connectedCallback() {
2737
- const r = $.getState();
2738
- this.core = r.core, this.searchTerm = r.searchTerm, this.isSearchInProgress = r.isSearchInProgress, this.storeUnsubscribe = $.subscribe((s) => {
2809
+ const r = I.getState();
2810
+ this.core = r.core, this.searchTerm = r.searchTerm, this.isSearchInProgress = r.isSearchInProgress, this.storeUnsubscribe = I.subscribe((s) => {
2739
2811
  this.searchTerm = s.searchTerm, this.isSearchInProgress = s.isSearchInProgress;
2740
2812
  });
2741
2813
  }
@@ -2766,7 +2838,7 @@ const qo = /* @__PURE__ */ F(class extends O {
2766
2838
  return r && (a = r({
2767
2839
  searchTerm: this.searchTerm || "",
2768
2840
  adContainerId: this.adContainerId
2769
- }, { html: St })), i("div", { class: "searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2841
+ }, { html: kt })), i("div", { class: "searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2770
2842
  }
2771
2843
  renderNativoAd() {
2772
2844
  var s;
@@ -2808,13 +2880,13 @@ function wt() {
2808
2880
  ["searchcraft-ad"].forEach((t) => {
2809
2881
  switch (t) {
2810
2882
  case "searchcraft-ad":
2811
- customElements.get(t) || customElements.define(t, qo);
2883
+ customElements.get(t) || customElements.define(t, Go);
2812
2884
  break;
2813
2885
  }
2814
2886
  });
2815
2887
  }
2816
- const Yo = wt;
2817
- var Ks = { exports: {} };
2888
+ const qo = wt;
2889
+ var Qs = { exports: {} };
2818
2890
  /*!
2819
2891
  Copyright (c) 2018 Jed Watson.
2820
2892
  Licensed under the MIT License (MIT), see
@@ -2849,46 +2921,46 @@ var Ks = { exports: {} };
2849
2921
  }
2850
2922
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
2851
2923
  })();
2852
- })(Ks);
2853
- const oe = Ks.exports, Zo = /* @__PURE__ */ F(class extends O {
2924
+ })(Qs);
2925
+ const oe = Qs.exports, Yo = /* @__PURE__ */ N(class extends D {
2854
2926
  constructor() {
2855
2927
  super();
2856
2928
  /**
2857
2929
  * Controls the visual representation of the button.
2858
2930
  */
2859
- f(this, "hierarchy", "primary");
2931
+ d(this, "hierarchy", "primary");
2860
2932
  /**
2861
2933
  * Whether the button is disabled.
2862
2934
  */
2863
- f(this, "disabled", !1);
2935
+ d(this, "disabled", !1);
2864
2936
  /**
2865
2937
  * The icon element.
2866
2938
  */
2867
- f(this, "icon");
2939
+ d(this, "icon");
2868
2940
  /**
2869
2941
  * Should the button only display an icon.
2870
2942
  */
2871
- f(this, "iconOnly", !1);
2943
+ d(this, "iconOnly", !1);
2872
2944
  /**
2873
2945
  * The position of the icon.
2874
2946
  */
2875
- f(this, "iconPosition", "left");
2947
+ d(this, "iconPosition", "left");
2876
2948
  /**
2877
2949
  * The label for the button.
2878
2950
  */
2879
- f(this, "label", "Search");
2951
+ d(this, "label", "Search");
2880
2952
  /**
2881
2953
  * The type of the button.
2882
2954
  */
2883
- f(this, "type", "button");
2955
+ d(this, "type", "button");
2884
2956
  /**
2885
2957
  * The event fired when the button is clicked.
2886
2958
  */
2887
- f(this, "buttonClick");
2888
- f(this, "handleButtonClick", () => {
2959
+ d(this, "buttonClick");
2960
+ d(this, "handleButtonClick", () => {
2889
2961
  this.buttonClick.emit();
2890
2962
  });
2891
- this.__registerHost(), this.buttonClick = ye(this, "buttonClick");
2963
+ this.__registerHost(), this.buttonClick = Ce(this, "buttonClick");
2892
2964
  }
2893
2965
  render() {
2894
2966
  return i("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: oe("searchcraft-button", {
@@ -2912,12 +2984,12 @@ function xt() {
2912
2984
  ["searchcraft-button"].forEach((t) => {
2913
2985
  switch (t) {
2914
2986
  case "searchcraft-button":
2915
- customElements.get(t) || customElements.define(t, Zo);
2987
+ customElements.get(t) || customElements.define(t, Yo);
2916
2988
  break;
2917
2989
  }
2918
2990
  });
2919
2991
  }
2920
- const Ko = xt, Qo = /* @__PURE__ */ F(class extends O {
2992
+ const Zo = xt, Qo = /* @__PURE__ */ N(class extends D {
2921
2993
  constructor() {
2922
2994
  super(), this.__registerHost();
2923
2995
  }
@@ -2925,7 +2997,7 @@ const Ko = xt, Qo = /* @__PURE__ */ F(class extends O {
2925
2997
  return i("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, i("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
2926
2998
  }
2927
2999
  }, [4, "searchcraft-error-message"]);
2928
- function Et() {
3000
+ function Rt() {
2929
3001
  if (typeof customElements > "u")
2930
3002
  return;
2931
3003
  ["searchcraft-error-message"].forEach((t) => {
@@ -2936,14 +3008,14 @@ function Et() {
2936
3008
  }
2937
3009
  });
2938
3010
  }
2939
- const Xo = Et;
2940
- function Qs(e, t) {
3011
+ const Ko = Rt;
3012
+ function Ks(e, t) {
2941
3013
  const r = { ...e };
2942
3014
  for (const s in t)
2943
- t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Qs(e[s], t[s]) : r[s] = t[s]);
3015
+ t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Ks(e[s], t[s]) : r[s] = t[s]);
2944
3016
  return r;
2945
3017
  }
2946
- function Jo(e) {
3018
+ function Xo(e) {
2947
3019
  return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
2948
3020
  }
2949
3021
  function bs(e) {
@@ -2958,7 +3030,7 @@ function bs(e) {
2958
3030
  };
2959
3031
  return r(e), t;
2960
3032
  }
2961
- function ec(e) {
3033
+ function Jo(e) {
2962
3034
  const t = {
2963
3035
  count: 0,
2964
3036
  path: "/",
@@ -2988,11 +3060,11 @@ function Xs(e) {
2988
3060
  };
2989
3061
  return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Xs(r))), t;
2990
3062
  }
2991
- function tc(e, t) {
3063
+ function ec(e, t) {
2992
3064
  const r = Object.keys(e), s = Object.keys(t), a = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
2993
3065
  return Object.fromEntries(r.filter((n) => !a.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
2994
3066
  }
2995
- function rc(e, t, r) {
3067
+ function tc(e, t, r) {
2996
3068
  const s = t[e], a = r[e], o = {
2997
3069
  count: 0,
2998
3070
  path: "/",
@@ -3001,41 +3073,41 @@ function rc(e, t, r) {
3001
3073
  count: 0,
3002
3074
  path: "/",
3003
3075
  children: a
3004
- }, c = bs(o), u = bs(n), h = tc(c, u), l = Qs(h, u), p = ec(l), m = Xs(p);
3076
+ }, c = bs(o), u = bs(n), h = ec(c, u), l = Ks(h, u), p = Jo(l), g = Xs(p);
3005
3077
  return {
3006
- [e]: m.children
3078
+ [e]: g.children
3007
3079
  };
3008
3080
  }
3009
- const sc = /* @__PURE__ */ F(class extends O {
3081
+ const rc = /* @__PURE__ */ N(class extends D {
3010
3082
  constructor() {
3011
3083
  super();
3012
3084
  /**
3013
3085
  * The name of the field where facets are applied.
3014
3086
  */
3015
- f(this, "fieldName", "");
3087
+ d(this, "fieldName", "");
3016
3088
  /**
3017
3089
  * When the facets are updated.
3018
3090
  */
3019
- f(this, "facetSelectionUpdated");
3020
- f(this, "baseFacetRoot");
3021
- f(this, "facetRoot");
3022
- f(this, "selectedPaths", {});
3023
- f(this, "lastTimeTaken");
3024
- f(this, "hasNewSearchTerm", !1);
3025
- f(this, "lastSearchTerm");
3026
- f(this, "lastSearchMode");
3027
- f(this, "lastSortType");
3028
- f(this, "unsubscribe");
3029
- f(this, "searchStore", $.getState());
3030
- f(this, "formatLabel", (r) => {
3091
+ d(this, "facetSelectionUpdated");
3092
+ d(this, "baseFacetRoot");
3093
+ d(this, "facetRoot");
3094
+ d(this, "selectedPaths", {});
3095
+ d(this, "lastTimeTaken");
3096
+ d(this, "hasNewSearchTerm", !1);
3097
+ d(this, "lastSearchTerm");
3098
+ d(this, "lastSearchMode");
3099
+ d(this, "lastSortType");
3100
+ d(this, "unsubscribe");
3101
+ d(this, "searchStore", I.getState());
3102
+ d(this, "formatLabel", (r) => {
3031
3103
  const s = r.path.replace(/^\//, ""), a = r.count;
3032
3104
  return `${s.replace(/-/g, " ").replace(/\b\w/g, (o) => o.toUpperCase())} (${a})`;
3033
3105
  });
3034
- f(this, "formatSubLabel", (r, s) => {
3106
+ d(this, "formatSubLabel", (r, s) => {
3035
3107
  const o = r.path.substring(s.path.length).replace(/^\//, ""), n = r.count;
3036
3108
  return `${o.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${n})`;
3037
3109
  });
3038
- this.__registerHost(), this.facetSelectionUpdated = ye(this, "facetSelectionUpdated");
3110
+ this.__registerHost(), this.facetSelectionUpdated = Ce(this, "facetSelectionUpdated");
3039
3111
  }
3040
3112
  handleStateUpdate(r) {
3041
3113
  const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
@@ -3043,13 +3115,13 @@ const sc = /* @__PURE__ */ F(class extends O {
3043
3115
  if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode || r.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
3044
3116
  this.facetRoot = void 0;
3045
3117
  const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
3046
- this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = rc(this.fieldName, this.baseFacetRoot, o));
3118
+ this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = tc(this.fieldName, this.baseFacetRoot, o));
3047
3119
  }
3048
3120
  this.lastSearchTerm = r.searchTerm, this.lastSearchMode = r.searchMode, this.lastSortType = r.sortType, this.lastTimeTaken = a;
3049
3121
  }
3050
3122
  }
3051
3123
  connectedCallback() {
3052
- this.handleStateUpdate(this.searchStore), this.unsubscribe = $.subscribe((r) => {
3124
+ this.handleStateUpdate(this.searchStore), this.unsubscribe = I.subscribe((r) => {
3053
3125
  this.handleStateUpdate(r);
3054
3126
  });
3055
3127
  }
@@ -3068,7 +3140,7 @@ const sc = /* @__PURE__ */ F(class extends O {
3068
3140
  const c = Object.keys(this.selectedPaths).filter((u) => !u.includes(r));
3069
3141
  this.selectedPaths = c.reduce((u, h) => (u[h] = !0, u), {});
3070
3142
  }
3071
- const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = Jo(a);
3143
+ const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = Xo(a);
3072
3144
  (n = this.facetSelectionUpdated) == null || n.emit({ paths: o });
3073
3145
  }
3074
3146
  render() {
@@ -3091,12 +3163,7 @@ const sc = /* @__PURE__ */ F(class extends O {
3091
3163
  baseFacetRoot: [32],
3092
3164
  facetRoot: [32],
3093
3165
  selectedPaths: [32],
3094
- lastTimeTaken: [32],
3095
- hasNewSearchTerm: [32],
3096
- lastSearchTerm: [32],
3097
- lastSearchMode: [32],
3098
- lastSortType: [32],
3099
- unsubscribe: [32]
3166
+ lastTimeTaken: [32]
3100
3167
  }]);
3101
3168
  function Js() {
3102
3169
  if (typeof customElements > "u")
@@ -3104,12 +3171,12 @@ function Js() {
3104
3171
  ["searchcraft-facet-list"].forEach((t) => {
3105
3172
  switch (t) {
3106
3173
  case "searchcraft-facet-list":
3107
- customElements.get(t) || customElements.define(t, sc);
3174
+ customElements.get(t) || customElements.define(t, rc);
3108
3175
  break;
3109
3176
  }
3110
3177
  });
3111
3178
  }
3112
- const ac = Js;
3179
+ const sc = Js;
3113
3180
  function Ze(e, t) {
3114
3181
  if (e && t)
3115
3182
  return t.fieldNames.map((r) => {
@@ -3117,7 +3184,7 @@ function Ze(e, t) {
3117
3184
  if (s)
3118
3185
  switch (r.dataType) {
3119
3186
  case "date": {
3120
- s = nc(s);
3187
+ s = ac(s, r.dateFormatLocale, r.dateFormatOptions);
3121
3188
  break;
3122
3189
  }
3123
3190
  case "number": {
@@ -3145,50 +3212,58 @@ function ea(e) {
3145
3212
  function ta(e) {
3146
3213
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
3147
3214
  }
3148
- function nc(e) {
3149
- const t = /* @__PURE__ */ new Date(), r = new Date(e), s = Math.floor((t.getTime() - r.getTime()) / 1e3), a = Math.floor(s / 60), o = Math.floor(a / 60), n = Math.floor(o / 24), c = Math.floor(n / 365);
3150
- return a < 60 ? `${a}m ago` : o < 24 ? `${o}h ago` : n < 365 ? `${n}d ago` : `${c}y ago`;
3215
+ function ac(e, t = "en-US", r = {
3216
+ day: "numeric",
3217
+ month: "long",
3218
+ year: "numeric"
3219
+ }) {
3220
+ const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
3221
+ if (o < n) {
3222
+ const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60), l = Math.trunc(h / 24), p = new Intl.RelativeTimeFormat(t, r);
3223
+ return l >= 1 ? p.format(-l, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
3224
+ }
3225
+ return new Intl.DateTimeFormat(t, r).format(s);
3151
3226
  }
3152
- const oc = /* @__PURE__ */ F(class extends O {
3227
+ const nc = /* @__PURE__ */ N(class extends D {
3153
3228
  constructor() {
3154
3229
  super();
3155
3230
  /**
3156
3231
  * The maximum value allowed.
3157
3232
  */
3158
- f(this, "max", 100);
3233
+ d(this, "max", 100);
3159
3234
  /**
3160
3235
  * The minimum value allowed.
3161
3236
  */
3162
- f(this, "min", 0);
3237
+ d(this, "min", 0);
3163
3238
  /**
3164
3239
  * The granularity that the value must adhere to.
3165
3240
  */
3166
- f(this, "granularity", ea("month"));
3241
+ d(this, "granularity", ea("month"));
3167
3242
  /** The type of data allowed. */
3168
- f(this, "dataType", "number");
3169
- f(this, "endValue", this.max);
3170
- f(this, "startValue", this.min);
3171
- f(this, "lastFocusedHandle", "max");
3243
+ d(this, "dataType", "number");
3244
+ d(this, "endValue", this.max);
3245
+ d(this, "startValue", this.min);
3246
+ d(this, "lastFocusedHandle", "max");
3172
3247
  /**
3173
3248
  * When the range has changed.
3174
3249
  * */
3175
- f(this, "rangeChanged");
3176
- f(this, "emitUpdate", async () => {
3250
+ d(this, "rangeChanged");
3251
+ d(this, "emitUpdate", async () => {
3177
3252
  var r;
3178
3253
  (r = this.rangeChanged) == null || r.emit({
3179
3254
  startValue: this.startValue,
3180
3255
  endValue: this.endValue
3181
3256
  });
3182
3257
  });
3183
- f(this, "handleStartValueChange", (r) => {
3258
+ d(this, "handleStartValueChange", (r) => {
3184
3259
  const s = r.target, a = Number.parseInt(s.value, 10);
3185
3260
  this.lastFocusedHandle = "min", a <= this.endValue ? (this.startValue = a, this.emitUpdate()) : (this.startValue = this.endValue, s.value = `${this.endValue}`);
3186
3261
  });
3187
- f(this, "handleEndValueChange", (r) => {
3262
+ d(this, "handleEndValueChange", (r) => {
3188
3263
  const s = r.target, a = Number.parseInt(s.value, 10);
3189
3264
  this.lastFocusedHandle = "max", a >= this.startValue ? (this.endValue = a, this.emitUpdate()) : (this.endValue = this.startValue, s.value = `${this.startValue}`);
3190
3265
  });
3191
- this.__registerHost(), this.rangeChanged = ye(this, "rangeChanged");
3266
+ this.__registerHost(), this.rangeChanged = Ce(this, "rangeChanged");
3192
3267
  }
3193
3268
  componentDidLoad() {
3194
3269
  this.startValue = this.min, this.endValue = this.max;
@@ -3215,37 +3290,37 @@ function ra() {
3215
3290
  ["searchcraft-slider"].forEach((t) => {
3216
3291
  switch (t) {
3217
3292
  case "searchcraft-slider":
3218
- customElements.get(t) || customElements.define(t, oc);
3293
+ customElements.get(t) || customElements.define(t, nc);
3219
3294
  break;
3220
3295
  }
3221
3296
  });
3222
3297
  }
3223
- const cc = /* @__PURE__ */ F(class extends O {
3298
+ const oc = /* @__PURE__ */ N(class extends D {
3224
3299
  constructor() {
3225
3300
  super();
3226
3301
  /**
3227
3302
  * The label.
3228
3303
  */
3229
- f(this, "label", "Toggle");
3304
+ d(this, "label", "Toggle");
3230
3305
  /**
3231
3306
  * The secondary label displayed below the main label.
3232
3307
  */
3233
- f(this, "subLabel");
3308
+ d(this, "subLabel");
3234
3309
  /**
3235
3310
  * When the toggle element is changed.
3236
3311
  */
3237
- f(this, "toggleUpdated");
3238
- f(this, "isActive", !1);
3239
- f(this, "unsubscribe");
3240
- f(this, "lastSearchTerm");
3241
- f(this, "handleToggle", async () => {
3312
+ d(this, "toggleUpdated");
3313
+ d(this, "isActive", !1);
3314
+ d(this, "unsubscribe");
3315
+ d(this, "lastSearchTerm");
3316
+ d(this, "handleToggle", async () => {
3242
3317
  var r;
3243
3318
  this.isActive = !this.isActive, (r = this.toggleUpdated) == null || r.emit(this.isActive);
3244
3319
  });
3245
- this.__registerHost(), this.toggleUpdated = ye(this, "toggleUpdated");
3320
+ this.__registerHost(), this.toggleUpdated = Ce(this, "toggleUpdated");
3246
3321
  }
3247
3322
  connectedCallback() {
3248
- this.unsubscribe = $.subscribe((r) => {
3323
+ this.unsubscribe = I.subscribe((r) => {
3249
3324
  r.searchTerm !== this.lastSearchTerm && r.searchTerm.trim().length === 0 && (this.isActive = !1), this.lastSearchTerm = r.searchTerm;
3250
3325
  });
3251
3326
  }
@@ -3271,25 +3346,25 @@ function sa() {
3271
3346
  ["searchcraft-toggle-button"].forEach((t) => {
3272
3347
  switch (t) {
3273
3348
  case "searchcraft-toggle-button":
3274
- customElements.get(t) || customElements.define(t, cc);
3349
+ customElements.get(t) || customElements.define(t, oc);
3275
3350
  break;
3276
3351
  }
3277
3352
  });
3278
3353
  }
3279
- const ic = /* @__PURE__ */ F(class extends O {
3354
+ const cc = /* @__PURE__ */ N(class extends D {
3280
3355
  constructor() {
3281
3356
  super();
3282
3357
  /**
3283
3358
  * The items to filter.
3284
3359
  */
3285
- f(this, "items", []);
3286
- f(this, "unsubscribe");
3287
- f(this, "lastSearchTerm");
3288
- f(this, "searchStore", $.getState());
3360
+ d(this, "items", []);
3361
+ d(this, "unsubscribe");
3362
+ d(this, "lastSearchTerm");
3363
+ d(this, "searchStore", I.getState());
3289
3364
  this.__registerHost();
3290
3365
  }
3291
3366
  componentDidLoad() {
3292
- this.unsubscribe = $.subscribe((r) => {
3367
+ this.unsubscribe = I.subscribe((r) => {
3293
3368
  this.lastSearchTerm = r.searchTerm || "";
3294
3369
  });
3295
3370
  }
@@ -3366,13 +3441,13 @@ const ic = /* @__PURE__ */ F(class extends O {
3366
3441
  unsubscribe: [32],
3367
3442
  lastSearchTerm: [32]
3368
3443
  }]);
3369
- function lc() {
3444
+ function ic() {
3370
3445
  if (typeof customElements > "u")
3371
3446
  return;
3372
3447
  ["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
3373
3448
  switch (t) {
3374
3449
  case "searchcraft-filter-panel":
3375
- customElements.get(t) || customElements.define(t, ic);
3450
+ customElements.get(t) || customElements.define(t, cc);
3376
3451
  break;
3377
3452
  case "searchcraft-facet-list":
3378
3453
  customElements.get(t) || Js();
@@ -3386,14 +3461,14 @@ function lc() {
3386
3461
  }
3387
3462
  });
3388
3463
  }
3389
- const uc = lc, hc = /* @__PURE__ */ F(class extends O {
3464
+ const lc = ic, uc = /* @__PURE__ */ N(class extends D {
3390
3465
  constructor() {
3391
3466
  super();
3392
3467
  /**
3393
3468
  * The classname applied to the label element.
3394
3469
  */
3395
- f(this, "inputLabelClassName", "");
3396
- f(this, "label", "");
3470
+ d(this, "inputLabelClassName", "");
3471
+ d(this, "label", "");
3397
3472
  this.__registerHost();
3398
3473
  }
3399
3474
  render() {
@@ -3409,83 +3484,97 @@ function pr() {
3409
3484
  ["searchcraft-input-label"].forEach((t) => {
3410
3485
  switch (t) {
3411
3486
  case "searchcraft-input-label":
3412
- customElements.get(t) || customElements.define(t, hc);
3487
+ customElements.get(t) || customElements.define(t, uc);
3413
3488
  break;
3414
3489
  }
3415
3490
  });
3416
3491
  }
3417
- const dc = /* @__PURE__ */ F(class extends O {
3492
+ const hc = /* @__PURE__ */ N(class extends D {
3418
3493
  constructor() {
3419
3494
  super();
3420
3495
  /**
3421
3496
  * Whether or not to automatically submit the search term when the input changes.
3422
3497
  */
3423
- f(this, "autoSearch", !0);
3498
+ d(this, "autoSearch", !0);
3424
3499
  /**
3425
3500
  * Where to place the search button.
3426
3501
  */
3427
- f(this, "buttonPlacement", "none");
3502
+ d(this, "buttonPlacement", "none");
3428
3503
  /**
3429
3504
  * The label for the submit button.
3430
3505
  */
3431
- f(this, "buttonLabel");
3506
+ d(this, "buttonLabel");
3432
3507
  /**
3433
3508
  * The label rendered above the input.
3434
3509
  */
3435
- f(this, "inputLabel");
3510
+ d(this, "inputLabel");
3436
3511
  /**
3437
3512
  * The input element's placeholder value.
3438
3513
  */
3439
- f(this, "placeholderValue", "Enter Search");
3514
+ d(this, "placeholderValue", "Enter Search");
3440
3515
  /**
3441
3516
  * When the input becomes focused.
3442
3517
  */
3443
- f(this, "inputFocus");
3518
+ d(this, "inputFocus");
3444
3519
  /**
3445
3520
  * When the input becomes unfocused.
3446
3521
  */
3447
- f(this, "inputBlur");
3522
+ d(this, "inputBlur");
3448
3523
  /**
3449
3524
  * Event emitted when input initializes.
3450
3525
  */
3451
- f(this, "inputInit");
3452
- f(this, "inputValue", "");
3453
- f(this, "searchTerm", "");
3454
- f(this, "error", !1);
3455
- f(this, "core");
3456
- f(this, "searchStore", $.getState());
3457
- f(this, "handleOnInput", (r) => {
3526
+ d(this, "inputInit");
3527
+ d(this, "inputValue", "");
3528
+ d(this, "searchTerm", "");
3529
+ d(this, "error", !1);
3530
+ d(this, "core");
3531
+ d(this, "searchcraftStore", I.getState());
3532
+ d(this, "unsubscribe", () => {
3533
+ });
3534
+ d(this, "handleInput", (r) => {
3458
3535
  const s = r.target;
3459
3536
  this.inputValue = s.value, this.autoSearch && this.performSearch(s.value);
3460
3537
  });
3461
- f(this, "performSearch", async (r) => {
3462
- if (r !== $.getState().searchTerm) {
3463
- this.searchTerm = r.trim(), this.error = !1, this.searchStore.setSearchTerm(this.searchTerm);
3538
+ d(this, "performSearch", async (r) => {
3539
+ if (r !== this.searchTerm) {
3540
+ this.searchcraftStore.setSearchTerm(r.trim()), this.error = !1;
3464
3541
  try {
3465
- await this.searchStore.search();
3542
+ await this.searchcraftStore.search();
3466
3543
  } catch (s) {
3467
- console.log(s), this.error = !0;
3544
+ console.error(`Search for ${r} failed:`, s), this.error = !0;
3468
3545
  }
3469
3546
  }
3470
3547
  });
3471
- f(this, "handleClearInput", () => {
3472
- this.inputValue = "", this.searchTerm = "", this.searchStore.setSearchTerm(""), this.searchStore.setSearchClientResponseItems([]), this.error = !1;
3548
+ d(this, "handleReset", () => {
3549
+ this.searchcraftStore.setSearchResultsCount(0), this.searchcraftStore.setSearchTerm(""), this.searchcraftStore.setSearchClientResponseItems([]), this.error = !1;
3473
3550
  });
3474
- f(this, "handleFormSubmit", async (r) => {
3475
- r.preventDefault(), await this.performSearch(this.searchTerm);
3551
+ d(this, "handleClearInput", () => {
3552
+ this.handleReset();
3476
3553
  });
3477
- this.__registerHost(), this.inputFocus = ye(this, "inputFocus"), this.inputBlur = ye(this, "inputBlur"), this.inputInit = ye(this, "inputInit");
3554
+ d(this, "handleFormSubmit", async (r) => {
3555
+ r.preventDefault(), await this.performSearch(this.inputValue);
3556
+ });
3557
+ this.__registerHost(), this.inputFocus = Ce(this, "inputFocus"), this.inputBlur = Ce(this, "inputBlur"), this.inputInit = Ce(this, "inputInit");
3478
3558
  }
3479
3559
  init() {
3480
3560
  var r;
3481
- this.core && (this.searchStore.initialize(this.core), (r = this.inputInit) == null || r.emit());
3561
+ this.core && (this.searchcraftStore.init(this.core), (r = this.inputInit) == null || r.emit());
3482
3562
  }
3483
- connectedCallback() {
3563
+ onCoreChange() {
3484
3564
  this.init();
3485
3565
  }
3486
- onCoreChange() {
3566
+ connectedCallback() {
3487
3567
  this.init();
3488
3568
  }
3569
+ componentDidLoad() {
3570
+ this.unsubscribe = I.subscribe((r) => {
3571
+ this.searchTerm = r.searchTerm, this.inputValue = r.searchTerm;
3572
+ });
3573
+ }
3574
+ disconnectedCallback() {
3575
+ var r;
3576
+ this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
3577
+ }
3489
3578
  render() {
3490
3579
  const r = this.inputValue.length > 0, s = oe("searchcraft-input-form-grid", {
3491
3580
  "searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
@@ -3494,15 +3583,15 @@ const dc = /* @__PURE__ */ F(class extends O {
3494
3583
  }), o = {
3495
3584
  gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
3496
3585
  };
3497
- return i("form", { key: "488789f41d06780cf1cb3ab55013995fd16985bc", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, i("div", { key: "abde33425daaa82f068d7bb31fca8f94d55b79e5", class: s, style: o }, i("div", { key: "d2ee4a97e3384550160e3d77c73167e725b78910", class: "searchcraft-input-form-button" }, i("searchcraft-button", { key: "6ca8bffa156a032dbddce0728f682f7e713b00b3", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && i("div", { key: "760f54d2ca7401fdd3151f0baa65163ba447aad4", class: "searchcraft-input-form-label" }, i("searchcraft-input-label", { key: "9b1e1fcc8559ba7417edc23cd495c27c44e9d394", label: this.inputLabel })), this.error && i("div", { key: "e2ba421228fe3daa1b60b3bda963be7b8fe5e2dd", class: "searchcraft-input-form-error-message" }, i("searchcraft-error-message", { key: "07655cb3197b9bd20fe6feb610a58b5679a82c33" }, "Something went wrong.")), i("div", { key: "93c20245f8f1bcb1656e88d7c26644ab41dd5000", class: "searchcraft-input-form-input-wrapper" }, i("input", { key: "2a3748be8434ac01ebae9907e0a762e868d5d10f", autoComplete: "off", class: "searchcraft-input-form-input", onFocus: () => {
3586
+ return i("form", { key: "6af89b2ab634e0f3e0ef575f98f33d091602f95a", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, i("div", { key: "93fea8e2b80468afeb6014122d5b749d74bfaf35", class: s, style: o }, i("div", { key: "1e5a416843b99aec68c4672a9c78f607347dc9d1", class: "searchcraft-input-form-button" }, i("searchcraft-button", { key: "c38c1df0ce20f914ed76fbc0acad5a22b40e6fff", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && i("div", { key: "2169a4466b0fdc8075c0dc74da442aef28a84d65", class: "searchcraft-input-form-label" }, i("searchcraft-input-label", { key: "a263b5aa2a4d50d297f06c1fe9e6afb64763f097", label: this.inputLabel })), this.error && i("div", { key: "49be2ac0f2d01916e5ea533e6406ee9d4d932178", class: "searchcraft-input-form-error-message" }, i("searchcraft-error-message", { key: "310c9aebcf580d4abe92d288c6b70a5adf083f8e" }, "Something went wrong.")), i("div", { key: "f4702e368815e049586e97cf59541b2dc5460fc0", class: "searchcraft-input-form-input-wrapper" }, i("input", { key: "a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce", autoComplete: "off", class: "searchcraft-input-form-input", onFocus: () => {
3498
3587
  var n;
3499
3588
  return (n = this.inputFocus) == null ? void 0 : n.emit();
3500
3589
  }, onBlur: () => {
3501
3590
  var n;
3502
3591
  return (n = this.inputBlur) == null ? void 0 : n.emit();
3503
3592
  }, onInput: (n) => {
3504
- this.handleOnInput(n);
3505
- }, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), i("div", { key: "c9eb1230b10d3bb91ffe0e43481ac3d1a1362b29", class: "searchcraft-input-form-input-icon" }, i("svg", { key: "68b3d2c336cc99faacb28e0a98cd93f88f9df13b", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, i("title", { key: "da56c06e543f45c59ef0f5922bd7d61fef448630" }, "Search icon"), i("path", { key: "ae0bcf6b95f861155cf0023d72a33f6d437b67dd", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && i("button", { key: "5663606a70f3c4afd44406e6e550dc44573c5421", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, i("svg", { key: "15f316ed61153f1054e3c5ac6dffca48b702ac81", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, i("title", { key: "3e93ab9c95db6a7c012a9b25875aa78f33984ce6" }, "Clear icon"), i("path", { key: "b31b09b4a928e113720a13e9826e1d462c4e65bd", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
3593
+ this.handleInput(n);
3594
+ }, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), i("div", { key: "616b4dde1ba016cf6a2fba8594a99a3a3f584ef5", class: "searchcraft-input-form-input-icon" }, i("svg", { key: "daaef561677a06a76813375e429be7e053b8b122", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, i("title", { key: "e6d82ca64dd9bfc663813c239d11e5652aa0b9a1" }, "Search icon"), i("path", { key: "1df856c98c2063c1d0c80027255935f73b513939", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && i("button", { key: "8dd6dfefe0ba909657bd436b559ce35b5004f9ae", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, i("svg", { key: "bcdba04d5c0949cacc8e1962d2b3cd40ad995de6", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, i("title", { key: "e01e7fb9b23daf9434520c4c68c0d7539b37d1f8" }, "Clear icon"), i("path", { key: "ce526d332b6e352cd9cf6008ee2f7497c6769782", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
3506
3595
  }
3507
3596
  static get watchers() {
3508
3597
  return {
@@ -3528,13 +3617,13 @@ function aa() {
3528
3617
  ["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
3529
3618
  switch (t) {
3530
3619
  case "searchcraft-input-form":
3531
- customElements.get(t) || customElements.define(t, dc);
3620
+ customElements.get(t) || customElements.define(t, hc);
3532
3621
  break;
3533
3622
  case "searchcraft-button":
3534
3623
  customElements.get(t) || xt();
3535
3624
  break;
3536
3625
  case "searchcraft-error-message":
3537
- customElements.get(t) || Et();
3626
+ customElements.get(t) || Rt();
3538
3627
  break;
3539
3628
  case "searchcraft-input-label":
3540
3629
  customElements.get(t) || pr();
@@ -3542,27 +3631,27 @@ function aa() {
3542
3631
  }
3543
3632
  });
3544
3633
  }
3545
- const fc = aa, pc = pr, mc = /* @__PURE__ */ F(class extends O {
3634
+ const fc = aa, dc = pr, pc = /* @__PURE__ */ N(class extends D {
3546
3635
  constructor() {
3547
3636
  super();
3548
3637
  // store vars
3549
- f(this, "searchTerm");
3550
- f(this, "searchResultsPerPage");
3551
- f(this, "searchResultsPage");
3552
- f(this, "searchResultsCount");
3638
+ d(this, "searchTerm");
3639
+ d(this, "searchResultsPerPage");
3640
+ d(this, "searchResultsPage");
3641
+ d(this, "searchResultsCount");
3553
3642
  // local vars
3554
- f(this, "searchResultsPagesCount", 1);
3555
- f(this, "searchResultsRangeMin", 1);
3556
- f(this, "searchResultsRangeMax", 1);
3643
+ d(this, "searchResultsPagesCount", 1);
3644
+ d(this, "searchResultsRangeMin", 1);
3645
+ d(this, "searchResultsRangeMax", 1);
3557
3646
  // store functions
3558
- f(this, "setSearchResultsPage", () => {
3647
+ d(this, "setSearchResultsPage", () => {
3559
3648
  });
3560
- f(this, "unsubscribe", () => {
3649
+ d(this, "unsubscribe", () => {
3561
3650
  });
3562
3651
  this.__registerHost();
3563
3652
  }
3564
3653
  componentDidLoad() {
3565
- this.unsubscribe = $.subscribe((r) => {
3654
+ this.unsubscribe = I.subscribe((r) => {
3566
3655
  this.searchTerm = r.searchTerm, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsPage = r.searchResultsPage, this.searchResultsCount = r.searchResultsCount, this.searchResultsPagesCount = Math.ceil(this.searchResultsCount / this.searchResultsPerPage), this.searchResultsRangeMin = (this.searchResultsPage - 1) * this.searchResultsPerPage + 1, this.searchResultsRangeMax = (this.searchResultsPerPage - 1) * this.searchResultsPerPage + this.searchResultsPerPage, this.setSearchResultsPage = r.setSearchResultsPage;
3567
3656
  });
3568
3657
  }
@@ -3606,13 +3695,13 @@ const fc = aa, pc = pr, mc = /* @__PURE__ */ F(class extends O {
3606
3695
  searchResultsRangeMax: [32],
3607
3696
  setSearchResultsPage: [32]
3608
3697
  }]);
3609
- function gc() {
3698
+ function mc() {
3610
3699
  if (typeof customElements > "u")
3611
3700
  return;
3612
3701
  ["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
3613
3702
  switch (t) {
3614
3703
  case "searchcraft-pagination":
3615
- customElements.get(t) || customElements.define(t, mc);
3704
+ customElements.get(t) || customElements.define(t, pc);
3616
3705
  break;
3617
3706
  case "searchcraft-button":
3618
3707
  customElements.get(t) || xt();
@@ -3620,36 +3709,36 @@ function gc() {
3620
3709
  }
3621
3710
  });
3622
3711
  }
3623
- const vc = gc, bc = /* @__PURE__ */ F(class extends O {
3712
+ const gc = mc, vc = /* @__PURE__ */ N(class extends D {
3624
3713
  constructor() {
3625
3714
  super();
3626
3715
  /**
3627
3716
  * A callback function responsible for rendering the button contents.
3628
3717
  */
3629
- f(this, "template");
3718
+ d(this, "template");
3630
3719
  /**
3631
3720
  * The type of popover button to render.
3632
3721
  */
3633
- f(this, "type");
3634
- f(this, "hotkey");
3635
- f(this, "hotkeyModifier");
3636
- f(this, "hotkeyModifierSymbol");
3637
- f(this, "isPopoverVisible");
3638
- f(this, "userAgent");
3639
- f(this, "unsubscribe", () => {
3722
+ d(this, "type");
3723
+ d(this, "hotkey");
3724
+ d(this, "hotkeyModifier");
3725
+ d(this, "hotkeyModifierSymbol");
3726
+ d(this, "isPopoverVisible");
3727
+ d(this, "userAgent");
3728
+ d(this, "unsubscribe", () => {
3640
3729
  });
3641
- f(this, "renderOptionSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Option key"), i("path", { d: "M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z", fill: "currentColor" }), i("path", { d: "M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z", fill: "currentColor" })));
3642
- f(this, "renderCtrlSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Ctrl key"), i("path", { d: "M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z", fill: "currentColor" })));
3643
- f(this, "renderWindowsMetaSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Windows meta key"), i("path", { d: "M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z", fill: "currentColor" })));
3644
- f(this, "renderMacMetaSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Mac meta key"), i("path", { d: "M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z", fill: "currentColor" })));
3730
+ d(this, "renderOptionSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Option key"), i("path", { d: "M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z", fill: "currentColor" }), i("path", { d: "M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z", fill: "currentColor" })));
3731
+ d(this, "renderCtrlSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Ctrl key"), i("path", { d: "M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z", fill: "currentColor" })));
3732
+ d(this, "renderWindowsMetaSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Windows meta key"), i("path", { d: "M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z", fill: "currentColor" })));
3733
+ d(this, "renderMacMetaSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Mac meta key"), i("path", { d: "M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z", fill: "currentColor" })));
3645
3734
  this.__registerHost();
3646
3735
  }
3647
3736
  handleOnClick() {
3648
- $.getState().setPopoverVisibility(!0);
3737
+ I.getState().setPopoverVisibility(!0);
3649
3738
  }
3650
3739
  componentDidLoad() {
3651
- const r = $.getState();
3652
- this.hotkey = r.hotkey.toUpperCase(), this.hotkeyModifier = r.hotkeyModifier, this.isPopoverVisible = r.isPopoverVisible, this.userAgent = this.setUserAgent(), this.hotkeyModifierSymbol = this.setHotkeyModifierSymbol(), this.unsubscribe = $.subscribe((s) => {
3740
+ const r = I.getState();
3741
+ this.hotkey = r.hotkey.toUpperCase(), this.hotkeyModifier = r.hotkeyModifier, this.isPopoverVisible = r.isPopoverVisible, this.userAgent = this.setUserAgent(), this.hotkeyModifierSymbol = this.setHotkeyModifierSymbol(), this.unsubscribe = I.subscribe((s) => {
3653
3742
  this.hotkey = s.hotkey.toUpperCase(), this.hotkeyModifier = s.hotkeyModifier, this.hotkeyModifierSymbol = this.setHotkeyModifierSymbol();
3654
3743
  });
3655
3744
  }
@@ -3691,7 +3780,7 @@ const vc = gc, bc = /* @__PURE__ */ F(class extends O {
3691
3780
  }
3692
3781
  }
3693
3782
  render() {
3694
- return i("button", { key: "d24721368deab8e6e9ade770170712f5b8504364", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? this.template(this.isPopoverVisible, { html: St }) : this.type ? this.renderSlot() : "Open Popover");
3783
+ return i("button", { key: "74e36b0593ba2cbb03f5ecff1434bc7056bf0db0", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, innerHTML: typeof this.template < "u" ? this.template({ isPopoverVisible: this.isPopoverVisible }, { html: kt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
3695
3784
  }
3696
3785
  }, [4, "searchcraft-popover-button", {
3697
3786
  template: [16],
@@ -3702,27 +3791,27 @@ const vc = gc, bc = /* @__PURE__ */ F(class extends O {
3702
3791
  isPopoverVisible: [32],
3703
3792
  userAgent: [32]
3704
3793
  }]);
3705
- function yc() {
3794
+ function bc() {
3706
3795
  if (typeof customElements > "u")
3707
3796
  return;
3708
3797
  ["searchcraft-popover-button"].forEach((t) => {
3709
3798
  switch (t) {
3710
3799
  case "searchcraft-popover-button":
3711
- customElements.get(t) || customElements.define(t, bc);
3800
+ customElements.get(t) || customElements.define(t, vc);
3712
3801
  break;
3713
3802
  }
3714
3803
  });
3715
3804
  }
3716
- const kc = yc, Cc = /* @__PURE__ */ F(class extends O {
3805
+ const yc = bc, Cc = /* @__PURE__ */ N(class extends D {
3717
3806
  constructor() {
3718
3807
  super();
3719
- f(this, "searchResultsCount");
3720
- f(this, "unsubscribe", () => {
3808
+ d(this, "searchResultsCount");
3809
+ d(this, "unsubscribe", () => {
3721
3810
  });
3722
3811
  this.__registerHost();
3723
3812
  }
3724
3813
  componentDidLoad() {
3725
- this.searchResultsCount = $.getState().searchResultsCount, this.unsubscribe = $.subscribe((r) => {
3814
+ this.searchResultsCount = I.getState().searchResultsCount, this.unsubscribe = I.subscribe((r) => {
3726
3815
  this.searchResultsCount = r.searchResultsCount;
3727
3816
  });
3728
3817
  }
@@ -3747,21 +3836,21 @@ function na() {
3747
3836
  }
3748
3837
  });
3749
3838
  }
3750
- const Sc = na, wc = /* @__PURE__ */ F(class extends O {
3839
+ const Sc = na, kc = /* @__PURE__ */ N(class extends D {
3751
3840
  constructor() {
3752
3841
  super();
3753
- f(this, "item");
3754
- f(this, "popoverResultMappings");
3842
+ d(this, "item");
3843
+ d(this, "popoverResultMappings");
3755
3844
  /** The document position relative to the search results (For Measure) */
3756
- f(this, "documentPosition", 0);
3757
- f(this, "title");
3758
- f(this, "subtitle");
3759
- f(this, "href");
3760
- f(this, "imageSource");
3761
- f(this, "imageAlt");
3762
- f(this, "handleLinkClick", () => {
3845
+ d(this, "documentPosition", 0);
3846
+ d(this, "title");
3847
+ d(this, "subtitle");
3848
+ d(this, "href");
3849
+ d(this, "imageSource");
3850
+ d(this, "imageAlt");
3851
+ d(this, "handleLinkClick", () => {
3763
3852
  var a;
3764
- const r = $.getState(), s = r.getSearchcraftInstance();
3853
+ const r = I.getState(), s = r.getSearchcraftCore();
3765
3854
  if (s) {
3766
3855
  const o = this.documentPosition, n = r.searchTerm, c = r.searchClientResponseItems.length || 0;
3767
3856
  (a = s.measureClient) == null || a.sendMeasureEvent("document_clicked", {
@@ -3783,7 +3872,7 @@ const Sc = na, wc = /* @__PURE__ */ F(class extends O {
3783
3872
  disconnectedCallback() {
3784
3873
  }
3785
3874
  render() {
3786
- return i("div", { key: "2ad974b85e385f99724f9ac85d646cc82208e24a", class: "searchcraft-popover-list-item" }, i("a", { key: "68da0953d5efa18fd003c22df5321be8096bace6", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && i("div", { key: "49c99c8b9b5c8ca74b7e656e9ff87169ed42d305", class: "searchcraft-popover-list-item-image-wrapper" }, i("img", { key: "04022544e1d64e2d48b86a9d27e14e83e7ff43df", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), i("div", { key: "eca661cccf12e41dea5b0a70637864763a579336", class: "searchcraft-popover-list-item-content" }, this.title && i("p", { key: "c5cc621f946b521fb7c4b1fc7a8eb1d00b5c6d3f", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && i("p", { key: "595cb3dea62af52dd1df0e7515dd186688d695db", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
3875
+ return i("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, i("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && i("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, i("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), i("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && i("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && i("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
3787
3876
  }
3788
3877
  }, [0, "searchcraft-popover-list-item", {
3789
3878
  item: [16],
@@ -3801,28 +3890,28 @@ function mr() {
3801
3890
  ["searchcraft-popover-list-item"].forEach((t) => {
3802
3891
  switch (t) {
3803
3892
  case "searchcraft-popover-list-item":
3804
- customElements.get(t) || customElements.define(t, wc);
3893
+ customElements.get(t) || customElements.define(t, kc);
3805
3894
  break;
3806
3895
  }
3807
3896
  });
3808
3897
  }
3809
3898
  var ws;
3810
- const xc = /* @__PURE__ */ F(class extends O {
3899
+ const wc = /* @__PURE__ */ N(class extends D {
3811
3900
  constructor() {
3812
3901
  super();
3813
3902
  /**
3814
3903
  * The mappings that define how the data in the documents are mapped to the
3815
3904
  * list-view-item elements.
3816
3905
  */
3817
- f(this, "popoverResultMappings");
3906
+ d(this, "popoverResultMappings");
3818
3907
  /**
3819
3908
  * The items to render in the list view.
3820
3909
  */
3821
- f(this, "searchClientResponseItems");
3822
- f(this, "adClientResponseItems");
3823
- f(this, "searchResultsPage");
3824
- f(this, "searchResultsPerPage");
3825
- f(this, "config", (ws = $.getState().core) == null ? void 0 : ws.config);
3910
+ d(this, "searchClientResponseItems");
3911
+ d(this, "adClientResponseItems");
3912
+ d(this, "searchResultsPage");
3913
+ d(this, "searchResultsPerPage");
3914
+ d(this, "config", (ws = I.getState().core) == null ? void 0 : ws.config);
3826
3915
  this.__registerHost();
3827
3916
  }
3828
3917
  renderWithADMAds() {
@@ -3832,31 +3921,31 @@ const xc = /* @__PURE__ */ F(class extends O {
3832
3921
  renderWithCustomAds() {
3833
3922
  var u, h, l, p;
3834
3923
  const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
3835
- for (let m = 0; m < o; m++)
3836
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${m}-ad` }));
3837
- c.forEach((m, b) => {
3838
- if (s && b % s === 0 && b + s < c.length && b >= s)
3839
- for (let v = 0; v < a; v++)
3840
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${m.id}-ad-${v}` }));
3841
- r.push(i("searchcraft-popover-list-item", { item: m, key: m.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + b }));
3924
+ for (let g = 0; g < o; g++)
3925
+ r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
3926
+ c.forEach((g, k) => {
3927
+ if (s && k % s === 0 && k + s < c.length && k >= s)
3928
+ for (let b = 0; b < a; b++)
3929
+ r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g.id}-ad-${b}` }));
3930
+ r.push(i("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + k }));
3842
3931
  });
3843
- for (let m = 0; m < n; m++)
3844
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${m}-ad` }));
3932
+ for (let g = 0; g < n; g++)
3933
+ r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
3845
3934
  return i("div", { class: "searchcraft-popover-list-view" }, r);
3846
3935
  }
3847
3936
  renderWithNativoAds() {
3848
- var h, l, p, m, b;
3849
- const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
3850
- for (let v = 0; v < n; v++)
3851
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${v}-ad` }));
3852
- u.forEach((v, P) => {
3937
+ var h, l, p, g, k;
3938
+ const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
3939
+ for (let b = 0; b < n; b++)
3940
+ r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
3941
+ u.forEach((b, P) => {
3853
3942
  if (a && (P + s) % a === 0 && P + a < u.length && P >= a)
3854
- for (let D = 0; D < o; D++)
3855
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${v.id}-ad-${D}` }));
3856
- r.push(i("searchcraft-popover-list-item", { item: v, key: v.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
3943
+ for (let _ = 0; _ < o; _++)
3944
+ r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b.id}-ad-${_}` }));
3945
+ r.push(i("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
3857
3946
  });
3858
- for (let v = 0; v < c; v++)
3859
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${v}-ad` }));
3947
+ for (let b = 0; b < c; b++)
3948
+ r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
3860
3949
  return i("div", { class: "searchcraft-popover-list-view" }, r);
3861
3950
  }
3862
3951
  renderWithNoAds() {
@@ -3889,7 +3978,7 @@ function oa() {
3889
3978
  ["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
3890
3979
  switch (t) {
3891
3980
  case "searchcraft-popover-list-view":
3892
- customElements.get(t) || customElements.define(t, xc);
3981
+ customElements.get(t) || customElements.define(t, wc);
3893
3982
  break;
3894
3983
  case "searchcraft-ad":
3895
3984
  customElements.get(t) || wt();
@@ -3900,7 +3989,7 @@ function oa() {
3900
3989
  }
3901
3990
  });
3902
3991
  }
3903
- const Ec = /* @__PURE__ */ F(class extends O {
3992
+ const xc = /* @__PURE__ */ N(class extends D {
3904
3993
  constructor() {
3905
3994
  super();
3906
3995
  /**
@@ -3909,38 +3998,38 @@ const Ec = /* @__PURE__ */ F(class extends O {
3909
3998
  * - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component.
3910
3999
  * - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
3911
4000
  */
3912
- f(this, "type", "inline");
4001
+ d(this, "type", "inline");
3913
4002
  /**
3914
4003
  * Formats the content rendered for each result.
3915
4004
  */
3916
- f(this, "popoverResultMappings");
4005
+ d(this, "popoverResultMappings");
3917
4006
  /**
3918
4007
  * The hotkey that activates the popover.
3919
4008
  */
3920
- f(this, "hotkey", "k");
4009
+ d(this, "hotkey", "k");
3921
4010
  /**
3922
4011
  * The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
3923
4012
  */
3924
- f(this, "hotkeyModifier", "meta");
3925
- f(this, "isPopoverVisibleInState", !1);
3926
- f(this, "unsubscribe");
3927
- f(this, "searchClientResponseItems", []);
3928
- f(this, "adClientResponseItems", []);
3929
- f(this, "searchTerm");
3930
- f(this, "isFocused", !1);
3931
- f(this, "breakpointSm", 576);
3932
- f(this, "breakpointMd", 768);
3933
- f(this, "breakpointLg", 992);
3934
- f(this, "searchResultsPage");
3935
- f(this, "searchResultsPerPage");
3936
- f(this, "modalElement");
3937
- f(this, "handleDocumentClick", (r) => {
4013
+ d(this, "hotkeyModifier", "meta");
4014
+ d(this, "isPopoverVisibleInState", !1);
4015
+ d(this, "unsubscribe");
4016
+ d(this, "searchClientResponseItems", []);
4017
+ d(this, "adClientResponseItems", []);
4018
+ d(this, "searchTerm");
4019
+ d(this, "isFocused", !1);
4020
+ d(this, "breakpointSm", 576);
4021
+ d(this, "breakpointMd", 768);
4022
+ d(this, "breakpointLg", 992);
4023
+ d(this, "searchResultsPage");
4024
+ d(this, "searchResultsPerPage");
4025
+ d(this, "modalElement");
4026
+ d(this, "handleDocumentClick", (r) => {
3938
4027
  this.hostElement.contains(r.target) || (this.isFocused = !1);
3939
4028
  });
3940
4029
  /**
3941
4030
  * Actions to perform when various keys are pressed within the popover form.
3942
4031
  */
3943
- f(this, "handleDocumentKeyDown", (r) => {
4032
+ d(this, "handleDocumentKeyDown", (r) => {
3944
4033
  if (r.key === this.hotkey && this.handleHotkeyPressed(r), !!this.hostElement.contains(document.activeElement))
3945
4034
  switch (r.key) {
3946
4035
  case "ArrowDown":
@@ -3948,13 +4037,13 @@ const Ec = /* @__PURE__ */ F(class extends O {
3948
4037
  r.preventDefault(), this.focusOnNextListItem(r.key);
3949
4038
  break;
3950
4039
  case "Escape":
3951
- $.getState().setPopoverVisibility(!1);
4040
+ I.getState().setPopoverVisibility(!1);
3952
4041
  break;
3953
4042
  default:
3954
4043
  return;
3955
4044
  }
3956
4045
  });
3957
- f(this, "handleInputInit", () => {
4046
+ d(this, "handleInputInit", () => {
3958
4047
  const r = this.hostElement.querySelector(".searchcraft-input-form-input");
3959
4048
  r == null || r.focus();
3960
4049
  });
@@ -3965,9 +4054,9 @@ const Ec = /* @__PURE__ */ F(class extends O {
3965
4054
  }
3966
4055
  componentDidLoad() {
3967
4056
  const r = getComputedStyle(document.documentElement);
3968
- this.breakpointSm = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState = $.getState().isPopoverVisible, document.addEventListener("click", this.handleDocumentClick), document.addEventListener("keydown", this.handleDocumentKeyDown), this.unsubscribe = $.subscribe((s) => {
4057
+ this.breakpointSm = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState = I.getState().isPopoverVisible, document.addEventListener("click", this.handleDocumentClick), document.addEventListener("keydown", this.handleDocumentKeyDown), this.unsubscribe = I.subscribe((s) => {
3969
4058
  this.isPopoverVisibleInState !== s.isPopoverVisible && this.handlePopoverVisibilityChange(s.isPopoverVisible), this.searchClientResponseItems = [...s.searchClientResponseItems], this.adClientResponseItems = [...s.adClientResponseItems], this.searchTerm = s.searchTerm, this.searchResultsPage = s.searchResultsPage, this.searchResultsPerPage = s.searchResultsPerPage;
3970
- }), $.getState().setHotKeyAndHotKeyModifier(this.hotkey, this.hotkeyModifier);
4059
+ }), I.getState().setHotKeyAndHotKeyModifier(this.hotkey, this.hotkeyModifier);
3971
4060
  }
3972
4061
  disconnectedCallback() {
3973
4062
  var r;
@@ -3984,10 +4073,10 @@ const Ec = /* @__PURE__ */ F(class extends O {
3984
4073
  * focusing on the input will open a modal version of the popover form.
3985
4074
  */
3986
4075
  handleInputFocus() {
3987
- this.isFocused = !0, this.type === "inline" && window.visualViewport && window.visualViewport.width < this.breakpointSm && ($.getState().setPopoverVisibility(!0), this.modalElement || (this.modalElement = document.createElement("searchcraft-popover-form"), this.modalElement.popoverResultMappings = this.popoverResultMappings, this.modalElement.setAttribute("type", "fullscreen"), document.body.appendChild(this.modalElement)));
4076
+ this.isFocused = !0, this.type === "inline" && window.visualViewport && window.visualViewport.width < this.breakpointSm && (I.getState().setPopoverVisibility(!0), this.modalElement || (this.modalElement = document.createElement("searchcraft-popover-form"), this.modalElement.popoverResultMappings = this.popoverResultMappings, this.modalElement.setAttribute("type", "fullscreen"), document.body.appendChild(this.modalElement)));
3988
4077
  }
3989
4078
  handleModalBackdropClick(r) {
3990
- $.getState().setPopoverVisibility(!1);
4079
+ I.getState().setPopoverVisibility(!1);
3991
4080
  }
3992
4081
  /**
3993
4082
  * When a hotkey is pressed, tests if the modifiers also match.
@@ -3999,10 +4088,10 @@ const Ec = /* @__PURE__ */ F(class extends O {
3999
4088
  const s = this.hostElement.querySelector(".searchcraft-input-form-input");
4000
4089
  s == null || s.focus();
4001
4090
  } else
4002
- $.getState().setPopoverVisibility(!this.isPopoverVisibleInState);
4091
+ I.getState().setPopoverVisibility(!this.isPopoverVisibleInState);
4003
4092
  }
4004
4093
  handleCancelButtonClick() {
4005
- $.getState().setPopoverVisibility(!1);
4094
+ I.getState().setPopoverVisibility(!1);
4006
4095
  }
4007
4096
  /**
4008
4097
  * Moves focus to the next/previous list item in the list view. If you are at the top
@@ -4039,13 +4128,13 @@ const Ec = /* @__PURE__ */ F(class extends O {
4039
4128
  if (this.isPopoverVisibleInState)
4040
4129
  return i("div", { class: oe("searchcraft-popover-form searchcraft-popover-form-modal", {
4041
4130
  "searchcraft-popover-form-active": this.hasResultsToShow
4042
- }) }, i("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), i("div", { class: "searchcraft-popover-form-modal-wrapper" }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-input-cancel-button searchcraft-popover-form-modal-input-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }), i("searchcraft-popover-footer", null)));
4131
+ }) }, i("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), i("div", { class: "searchcraft-popover-form-modal-wrapper" }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), i("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), i("searchcraft-popover-footer", null)));
4043
4132
  }
4044
4133
  renderFullscreenPopover() {
4045
4134
  if (this.isPopoverVisibleInState)
4046
4135
  return i("div", { class: oe("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
4047
4136
  "searchcraft-popover-form-active": this.hasResultsToShow
4048
- }) }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-input-cancel-button searchcraft-popover-form-fullscreen-input-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }), i("searchcraft-popover-footer", null));
4137
+ }) }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), i("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), i("searchcraft-popover-footer", null));
4049
4138
  }
4050
4139
  render() {
4051
4140
  switch (this.type) {
@@ -4081,7 +4170,7 @@ function ca() {
4081
4170
  ["searchcraft-popover-form", "searchcraft-ad", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-form", "searchcraft-input-label", "searchcraft-popover-footer", "searchcraft-popover-form", "searchcraft-popover-list-item", "searchcraft-popover-list-view"].forEach((t) => {
4082
4171
  switch (t) {
4083
4172
  case "searchcraft-popover-form":
4084
- customElements.get(t) || customElements.define(t, Ec);
4173
+ customElements.get(t) || customElements.define(t, xc);
4085
4174
  break;
4086
4175
  case "searchcraft-ad":
4087
4176
  customElements.get(t) || wt();
@@ -4090,7 +4179,7 @@ function ca() {
4090
4179
  customElements.get(t) || xt();
4091
4180
  break;
4092
4181
  case "searchcraft-error-message":
4093
- customElements.get(t) || Et();
4182
+ customElements.get(t) || Rt();
4094
4183
  break;
4095
4184
  case "searchcraft-input-form":
4096
4185
  customElements.get(t) || aa();
@@ -4113,28 +4202,28 @@ function ca() {
4113
4202
  }
4114
4203
  });
4115
4204
  }
4116
- const Rc = ca, Pc = mr, Tc = oa, $c = /* @__PURE__ */ F(class extends O {
4205
+ const Rc = ca, Ec = mr, Pc = oa, Tc = /* @__PURE__ */ N(class extends D {
4117
4206
  constructor() {
4118
4207
  super();
4119
4208
  /**
4120
4209
  * A callback function responsible for rendering the results info.
4121
4210
  */
4122
- f(this, "template");
4211
+ d(this, "template");
4123
4212
  // store vars
4124
- f(this, "searchTerm");
4125
- f(this, "searchResultsPage");
4126
- f(this, "searchResultsPerPage");
4127
- f(this, "searchResultsCount");
4213
+ d(this, "searchTerm");
4214
+ d(this, "searchResultsPage");
4215
+ d(this, "searchResultsPerPage");
4216
+ d(this, "searchResultsCount");
4128
4217
  // local vars
4129
- f(this, "count", 0);
4130
- f(this, "range", [0, 0]);
4131
- f(this, "responseTime", "0");
4132
- f(this, "unsubscribe", () => {
4218
+ d(this, "count", 0);
4219
+ d(this, "range", [0, 0]);
4220
+ d(this, "responseTime", "0");
4221
+ d(this, "unsubscribe", () => {
4133
4222
  });
4134
4223
  this.__registerHost();
4135
4224
  }
4136
4225
  connectedCallback() {
4137
- this.unsubscribe = $.subscribe((r) => {
4226
+ this.unsubscribe = I.subscribe((r) => {
4138
4227
  this.searchTerm = r.searchTerm, this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsCount = r.searchResultsCount, this.count = this.searchResultsCount, this.range[0] = this.searchResultsPage <= 1 ? 1 : this.searchResultsPerPage * (this.searchResultsPage - 1), this.range[1] = this.searchResultsPerPage * this.searchResultsPage, this.range[1] = this.range[1] > this.searchResultsCount ? this.searchResultsCount : this.range[1], this.responseTime = ((r.searchResponseTimeTaken || 0) * 1e3).toFixed(2);
4139
4228
  });
4140
4229
  }
@@ -4146,7 +4235,7 @@ const Rc = ca, Pc = mr, Tc = oa, $c = /* @__PURE__ */ F(class extends O {
4146
4235
  range: [Number(this.range[0]), Number(this.range[1])],
4147
4236
  count: this.count,
4148
4237
  responseTime: this.responseTime
4149
- }, { html: St }) : `${ta(this.count)} results found in ${this.responseTime}ms`);
4238
+ }, { html: kt }) : `${ta(this.count)} results found in ${this.responseTime}ms`);
4150
4239
  }
4151
4240
  }, [0, "searchcraft-results-info", {
4152
4241
  template: [16],
@@ -4158,37 +4247,37 @@ const Rc = ca, Pc = mr, Tc = oa, $c = /* @__PURE__ */ F(class extends O {
4158
4247
  range: [32],
4159
4248
  responseTime: [32]
4160
4249
  }]);
4161
- function _c() {
4250
+ function $c() {
4162
4251
  if (typeof customElements > "u")
4163
4252
  return;
4164
4253
  ["searchcraft-results-info"].forEach((t) => {
4165
4254
  switch (t) {
4166
4255
  case "searchcraft-results-info":
4167
- customElements.get(t) || customElements.define(t, $c);
4256
+ customElements.get(t) || customElements.define(t, Tc);
4168
4257
  break;
4169
4258
  }
4170
4259
  });
4171
4260
  }
4172
- const Ac = _c, Ic = /* @__PURE__ */ F(class extends O {
4261
+ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
4173
4262
  constructor() {
4174
4263
  super();
4175
- f(this, "item");
4264
+ d(this, "item");
4176
4265
  /**
4177
4266
  * The index.
4178
4267
  */
4179
- f(this, "index");
4268
+ d(this, "index");
4180
4269
  /**
4181
4270
  * The position in the document. Used with the "document_clicked" measure event.
4182
4271
  */
4183
- f(this, "documentPosition", 0);
4272
+ d(this, "documentPosition", 0);
4184
4273
  /**
4185
4274
  * A callback function responsible for rendering a result.
4186
4275
  */
4187
- f(this, "template");
4188
- f(this, "templateHtml");
4189
- f(this, "handleResultContainerClick", (r) => {
4276
+ d(this, "template");
4277
+ d(this, "templateHtml");
4278
+ d(this, "handleResultContainerClick", (r) => {
4190
4279
  var l;
4191
- const s = $.getState(), a = s.getSearchcraftInstance();
4280
+ const s = I.getState(), a = s.getSearchcraftCore();
4192
4281
  if (!r.target)
4193
4282
  return;
4194
4283
  const n = r.target.closest("a");
@@ -4201,7 +4290,7 @@ const Ac = _c, Ic = /* @__PURE__ */ F(class extends O {
4201
4290
  search_term: u
4202
4291
  });
4203
4292
  });
4204
- f(this, "handleKeyDown", () => {
4293
+ d(this, "handleKeyDown", () => {
4205
4294
  });
4206
4295
  this.__registerHost();
4207
4296
  }
@@ -4213,10 +4302,10 @@ const Ac = _c, Ic = /* @__PURE__ */ F(class extends O {
4213
4302
  if (this.item)
4214
4303
  try {
4215
4304
  this.templateHtml = (r = this.template) == null ? void 0 : r.call(this, this.item.document, this.index, {
4216
- html: St
4305
+ html: kt
4217
4306
  });
4218
4307
  } catch (s) {
4219
- console.error(`Invalid search result template: ${s}`);
4308
+ console.error("Invalid search result template:", s);
4220
4309
  }
4221
4310
  }
4222
4311
  render() {
@@ -4241,29 +4330,35 @@ function ia() {
4241
4330
  }
4242
4331
  });
4243
4332
  }
4244
- const Mc = ia, Lc = /* @__PURE__ */ F(class extends O {
4333
+ const Ac = ia, Mc = /* @__PURE__ */ N(class extends D {
4245
4334
  constructor() {
4246
4335
  super();
4336
+ /**
4337
+ * A query that will appears when the component initializes or the search term is ''..
4338
+ */
4339
+ d(this, "initialQuery");
4247
4340
  /**
4248
4341
  * A callback function responsible for rendering a result. Passed to `searchcraft-search-result`.
4249
4342
  */
4250
- f(this, "template");
4251
- f(this, "searchTerm", "");
4252
- f(this, "searchClientResponseItems");
4253
- f(this, "adClientResponseItems", []);
4254
- f(this, "searchResultsPerPage");
4255
- f(this, "searchResultsPage");
4256
- f(this, "isSearchInProgress", !0);
4257
- f(this, "config");
4258
- f(this, "unsubscribe", () => {
4343
+ d(this, "template");
4344
+ d(this, "adClientResponseItems", []);
4345
+ d(this, "config");
4346
+ d(this, "initialSearchClientResponseItems");
4347
+ d(this, "isSearchInProgress", !0);
4348
+ d(this, "searchClientResponseItems");
4349
+ d(this, "searchResultsPage");
4350
+ d(this, "searchResultsPerPage");
4351
+ d(this, "searchTerm", "");
4352
+ d(this, "unsubscribe", () => {
4259
4353
  });
4260
4354
  this.__registerHost();
4261
4355
  }
4262
4356
  componentDidLoad() {
4263
4357
  var s;
4264
- this.unsubscribe = $.subscribe((a) => this.handleStateChange(a));
4265
- const r = $.getState();
4266
- this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (s = r.core) == null ? void 0 : s.config;
4358
+ const r = I.getState();
4359
+ this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (s = r.core) == null ? void 0 : s.config, r.afterInit = (a) => {
4360
+ this.initialQuery && a.setInitialQuery(this.initialQuery);
4361
+ }, this.unsubscribe = I.subscribe((a) => this.handleStateChange(a));
4267
4362
  }
4268
4363
  disconnectedCallback() {
4269
4364
  var r;
@@ -4271,7 +4366,9 @@ const Mc = ia, Lc = /* @__PURE__ */ F(class extends O {
4271
4366
  }
4272
4367
  handleStateChange(r) {
4273
4368
  var s;
4274
- this.searchClientResponseItems = [...r.searchClientResponseItems], this.adClientResponseItems = [...r.adClientResponseItems], this.searchTerm = r.searchTerm, this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.config = (s = r.core) == null ? void 0 : s.config, this.isSearchInProgress = r.isSearchInProgress;
4369
+ this.adClientResponseItems = [...r.adClientResponseItems], this.config = (s = r.core) == null ? void 0 : s.config, this.initialSearchClientResponseItems = [
4370
+ ...r.initialSearchClientResponseItems
4371
+ ], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
4275
4372
  }
4276
4373
  renderEmptyState() {
4277
4374
  return i("div", { class: "searchcraft-search-results-empty-state" }, i("slot", { name: "empty-search" }));
@@ -4280,50 +4377,53 @@ const Mc = ia, Lc = /* @__PURE__ */ F(class extends O {
4280
4377
  return i("div", { class: "searchcraft-search-results" }, i("div", { class: "searchcraft-search-results-error-message" }, i("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
4281
4378
  }
4282
4379
  renderWithADMAds() {
4283
- var r, s;
4284
- return i("div", { class: "searchcraft-search-results" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => i("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: a, adContainerId: J(), key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => i("searchcraft-search-result", { key: a.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + o, index: o, item: a, template: this.template })));
4380
+ var s, a, o;
4381
+ const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4382
+ return i("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => i("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: J(), key: n.id })), r.map((n, c) => i("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
4285
4383
  }
4286
4384
  renderWithCustomAds() {
4287
- var u, h, l, p;
4288
- const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
4289
- for (let m = 0; m < o; m++)
4290
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${m}-ad` }));
4291
- c.forEach((m, b) => {
4292
- if (s && b % s === 0 && b + s < c.length && b >= s)
4293
- for (let v = 0; v < a; v++)
4294
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${m.id}-ad-${v}` }));
4295
- r.push(i("searchcraft-search-result", { key: m.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + b, index: b, item: m, template: this.template }));
4385
+ var u, h, l, p, g, k;
4386
+ const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (g = this.searchClientResponseItems) != null && g.length ? this.searchClientResponseItems : (k = this.initialSearchClientResponseItems) != null && k.length ? this.initialSearchClientResponseItems : [];
4387
+ for (let b = 0; b < o; b++)
4388
+ r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
4389
+ c.forEach((b, P) => {
4390
+ if (s && P % s === 0 && P + s < c.length && P >= s)
4391
+ for (let _ = 0; _ < a; _++)
4392
+ r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b.id}-ad-${_}` }));
4393
+ r.push(i("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: b, template: this.template }));
4296
4394
  });
4297
- for (let m = 0; m < n; m++)
4298
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${m}-ad` }));
4395
+ for (let b = 0; b < n; b++)
4396
+ r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
4299
4397
  return i("div", { class: "searchcraft-search-results" }, r);
4300
4398
  }
4301
4399
  renderWithNativoAds() {
4302
- var h, l, p, m, b;
4303
- const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
4304
- for (let v = 0; v < n; v++)
4305
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${v}-ad` }));
4306
- u.forEach((v, P) => {
4307
- if (a && (P + s) % a === 0 && P + a < u.length && P >= a)
4308
- for (let D = 0; D < o; D++)
4309
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${v.id}-ad-${D}` }));
4310
- r.push(i("searchcraft-search-result", { key: v.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: v, template: this.template }));
4400
+ var h, l, p, g, k, b, P;
4401
+ const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (P = this.initialSearchClientResponseItems) != null && P.length ? this.initialSearchClientResponseItems : [];
4402
+ for (let _ = 0; _ < n; _++)
4403
+ r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
4404
+ u.forEach((_, O) => {
4405
+ if (a && (O + s) % a === 0 && O + a < u.length && O >= a)
4406
+ for (let T = 0; T < o; T++)
4407
+ r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_.id}-ad-${T}` }));
4408
+ r.push(i("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + O, index: O, item: _, template: this.template }));
4311
4409
  });
4312
- for (let v = 0; v < c; v++)
4313
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${v}-ad` }));
4410
+ for (let _ = 0; _ < c; _++)
4411
+ r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
4314
4412
  return i("div", { class: "searchcraft-search-results" }, r);
4315
4413
  }
4316
4414
  renderWithNoAds() {
4317
- var r;
4318
- return i("div", { class: "searchcraft-search-results" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((s, a) => i("searchcraft-search-result", { key: s.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + a, index: a, item: s, template: this.template })));
4415
+ var s, a;
4416
+ const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4417
+ return i("div", { class: "searchcraft-search-results" }, r.map((o, n) => i("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
4319
4418
  }
4320
4419
  render() {
4321
- var r;
4322
- if (this.searchTerm.trim() === "")
4420
+ var a;
4421
+ const r = this.searchClientResponseItems || [], s = this.initialSearchClientResponseItems || [];
4422
+ if (this.searchTerm === "" && s.length === 0 && !this.isSearchInProgress)
4323
4423
  return this.renderEmptyState();
4324
- if (this.searchTerm.length > 0 && (this.searchClientResponseItems || []).length === 0 && !this.isSearchInProgress)
4424
+ if (this.searchTerm.length > 0 && r.length === 0 && !this.isSearchInProgress)
4325
4425
  return this.renderNoResultsFoundState();
4326
- switch (((r = this.config) == null ? void 0 : r.adSource) || "None") {
4426
+ switch (((a = this.config) == null ? void 0 : a.adSource) || "None") {
4327
4427
  case "adMarketplace":
4328
4428
  return this.renderWithADMAds();
4329
4429
  case "Custom":
@@ -4335,28 +4435,30 @@ const Mc = ia, Lc = /* @__PURE__ */ F(class extends O {
4335
4435
  }
4336
4436
  }
4337
4437
  }, [4, "searchcraft-search-results", {
4438
+ initialQuery: [1, "initial-query"],
4338
4439
  template: [16],
4339
- searchTerm: [32],
4340
- searchClientResponseItems: [32],
4341
4440
  adClientResponseItems: [32],
4342
- searchResultsPerPage: [32],
4343
- searchResultsPage: [32],
4441
+ config: [32],
4442
+ initialSearchClientResponseItems: [32],
4344
4443
  isSearchInProgress: [32],
4345
- config: [32]
4444
+ searchClientResponseItems: [32],
4445
+ searchResultsPage: [32],
4446
+ searchResultsPerPage: [32],
4447
+ searchTerm: [32]
4346
4448
  }]);
4347
- function Oc() {
4449
+ function Lc() {
4348
4450
  if (typeof customElements > "u")
4349
4451
  return;
4350
4452
  ["searchcraft-search-results", "searchcraft-ad", "searchcraft-error-message", "searchcraft-search-result"].forEach((t) => {
4351
4453
  switch (t) {
4352
4454
  case "searchcraft-search-results":
4353
- customElements.get(t) || customElements.define(t, Lc);
4455
+ customElements.get(t) || customElements.define(t, Mc);
4354
4456
  break;
4355
4457
  case "searchcraft-ad":
4356
4458
  customElements.get(t) || wt();
4357
4459
  break;
4358
4460
  case "searchcraft-error-message":
4359
- customElements.get(t) || Et();
4461
+ customElements.get(t) || Rt();
4360
4462
  break;
4361
4463
  case "searchcraft-search-result":
4362
4464
  customElements.get(t) || ia();
@@ -4364,50 +4466,50 @@ function Oc() {
4364
4466
  }
4365
4467
  });
4366
4468
  }
4367
- const Fc = Oc, Dc = /* @__PURE__ */ F(class extends O {
4469
+ const Oc = Lc, Fc = /* @__PURE__ */ N(class extends D {
4368
4470
  constructor() {
4369
4471
  super();
4370
4472
  /**
4371
4473
  * The caption displayed below the select input.
4372
4474
  */
4373
- f(this, "caption");
4475
+ d(this, "caption");
4374
4476
  /**
4375
4477
  * Whether the select input is disabled.
4376
4478
  */
4377
- f(this, "disabled", !1);
4479
+ d(this, "disabled", !1);
4378
4480
  /**
4379
4481
  * The ID for the select input.
4380
4482
  */
4381
- f(this, "inputId");
4483
+ d(this, "inputId");
4382
4484
  /**
4383
4485
  * The label of the select input.
4384
4486
  */
4385
- f(this, "label");
4487
+ d(this, "label");
4386
4488
  /**
4387
4489
  * The ID for the label of the select input.
4388
4490
  */
4389
- f(this, "labelId");
4491
+ d(this, "labelId");
4390
4492
  /**
4391
4493
  * The name of the select input.
4392
4494
  */
4393
- f(this, "name");
4495
+ d(this, "name");
4394
4496
  /**
4395
4497
  * The options for the select input.
4396
4498
  */
4397
- f(this, "options", []);
4499
+ d(this, "options", []);
4398
4500
  /**
4399
4501
  * The event fired when the select is changed.
4400
4502
  */
4401
- f(this, "selectChange");
4402
- f(this, "searchResultsPerPage");
4403
- f(this, "setSearchResultsPage", () => {
4503
+ d(this, "selectChange");
4504
+ d(this, "searchResultsPerPage");
4505
+ d(this, "setSearchResultsPage", () => {
4404
4506
  });
4405
- f(this, "setSearchResultsPerPage", () => {
4507
+ d(this, "setSearchResultsPerPage", () => {
4406
4508
  });
4407
- f(this, "handleSelectChange", (r) => {
4509
+ d(this, "handleSelectChange", (r) => {
4408
4510
  this.selectChange.emit(r.target.value);
4409
4511
  });
4410
- this.__registerHost(), this.selectChange = ye(this, "selectChange");
4512
+ this.__registerHost(), this.selectChange = Ce(this, "selectChange");
4411
4513
  }
4412
4514
  handleGoToPage(r) {
4413
4515
  this.setSearchResultsPage(r);
@@ -4433,40 +4535,40 @@ function la() {
4433
4535
  ["searchcraft-select"].forEach((t) => {
4434
4536
  switch (t) {
4435
4537
  case "searchcraft-select":
4436
- customElements.get(t) || customElements.define(t, Dc);
4538
+ customElements.get(t) || customElements.define(t, Fc);
4437
4539
  break;
4438
4540
  }
4439
4541
  });
4440
4542
  }
4441
- const Nc = /* @__PURE__ */ F(class extends O {
4543
+ const Dc = /* @__PURE__ */ N(class extends D {
4442
4544
  constructor() {
4443
4545
  super();
4444
4546
  /**
4445
4547
  * The amount the options will increase (e.g. 20 = [20, 40, 60, 80, 100]).
4446
4548
  * The base value is defined by the `searchResultsPerPage` option in the configuration.
4447
4549
  */
4448
- f(this, "increment", 20);
4550
+ d(this, "increment", 20);
4449
4551
  // store vars
4450
- f(this, "searchTerm");
4451
- f(this, "searchResultsPage");
4452
- f(this, "searchResultsPerPage");
4453
- f(this, "searchResultsCount");
4454
- f(this, "searchResultsPagesCount");
4552
+ d(this, "searchTerm");
4553
+ d(this, "searchResultsPage");
4554
+ d(this, "searchResultsPerPage");
4555
+ d(this, "searchResultsCount");
4556
+ d(this, "searchResultsPagesCount");
4455
4557
  // local vars
4456
- f(this, "initialSearchResultsPerPage");
4558
+ d(this, "initialSearchResultsPerPage");
4457
4559
  // store functions
4458
- f(this, "setSearchResultsPerPage", () => {
4560
+ d(this, "setSearchResultsPerPage", () => {
4459
4561
  });
4460
- f(this, "setSearchResultsPage", () => {
4562
+ d(this, "setSearchResultsPage", () => {
4461
4563
  });
4462
- f(this, "unsubscribe", () => {
4564
+ d(this, "unsubscribe", () => {
4463
4565
  });
4464
4566
  this.__registerHost();
4465
4567
  }
4466
4568
  componentDidLoad() {
4467
- this.unsubscribe = $.subscribe((r) => {
4569
+ this.unsubscribe = I.subscribe((r) => {
4468
4570
  this.searchTerm = r.searchTerm, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsPage = r.searchResultsPage, this.searchResultsCount = r.searchResultsCount, this.searchResultsPagesCount = Math.ceil(this.searchResultsCount / this.searchResultsPerPage), this.setSearchResultsPage = r.setSearchResultsPage, this.setSearchResultsPerPage = r.setSearchResultsPerPage;
4469
- }), this.initialSearchResultsPerPage = $.getState().searchResultsPerPage;
4571
+ }), this.initialSearchResultsPerPage = I.getState().searchResultsPerPage;
4470
4572
  }
4471
4573
  disconnectedCallback() {
4472
4574
  var r;
@@ -4495,13 +4597,13 @@ const Nc = /* @__PURE__ */ F(class extends O {
4495
4597
  setSearchResultsPerPage: [32],
4496
4598
  setSearchResultsPage: [32]
4497
4599
  }]);
4498
- function Hc() {
4600
+ function Nc() {
4499
4601
  if (typeof customElements > "u")
4500
4602
  return;
4501
4603
  ["searchcraft-search-results-per-page", "searchcraft-select"].forEach((t) => {
4502
4604
  switch (t) {
4503
4605
  case "searchcraft-search-results-per-page":
4504
- customElements.get(t) || customElements.define(t, Nc);
4606
+ customElements.get(t) || customElements.define(t, Dc);
4505
4607
  break;
4506
4608
  case "searchcraft-select":
4507
4609
  customElements.get(t) || la();
@@ -4509,8 +4611,8 @@ function Hc() {
4509
4611
  }
4510
4612
  });
4511
4613
  }
4512
- const Uc = Hc, zc = la, Vc = ra, jc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-brand);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset}.searchcraft-popover-form-input-cancel-button{background:none;border:none;cursor:pointer}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal searchcraft-popover-list-view{flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);border-radius:var(--sc-border-radius-2xl);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-input-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px 12px}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-input-cancel-button{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 32px;box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
4513
- `, Bc = /* @__PURE__ */ F(class extends O {
4614
+ const Hc = Nc, Uc = la, zc = ra, jc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
4615
+ `, Vc = /* @__PURE__ */ N(class extends D {
4514
4616
  constructor() {
4515
4617
  super(), this.__registerHost();
4516
4618
  }
@@ -4518,64 +4620,64 @@ const Uc = Hc, zc = la, Vc = ra, jc = `[class*=searchcraft-],[class*=searchcraft
4518
4620
  return i("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, jc);
4519
4621
  }
4520
4622
  }, [0, "searchcraft-theme"]);
4521
- function Wc() {
4623
+ function Bc() {
4522
4624
  if (typeof customElements > "u")
4523
4625
  return;
4524
4626
  ["searchcraft-theme"].forEach((t) => {
4525
4627
  switch (t) {
4526
4628
  case "searchcraft-theme":
4527
- customElements.get(t) || customElements.define(t, Bc);
4629
+ customElements.get(t) || customElements.define(t, Vc);
4528
4630
  break;
4529
4631
  }
4530
4632
  });
4531
4633
  }
4532
- const Gc = Wc, qc = sa, ua = () => {
4533
- Yo(), Ko(), Xo(), ac(), uc(), fc(), pc(), vc(), kc(), Sc(), Rc(), Pc(), Tc(), Ac(), Mc(), Uc(), Fc(), zc(), Vc(), Gc(), qc();
4634
+ const Wc = Bc, Gc = sa, ua = () => {
4635
+ qo(), Zo(), Ko(), sc(), lc(), fc(), dc(), gc(), yc(), Sc(), Rc(), Ec(), Pc(), _c(), Ac(), Hc(), Oc(), Uc(), zc(), Wc(), Gc();
4534
4636
  };
4535
4637
  globalThis.__scDefineCustomElements__ = ua;
4536
- const Yc = "@searchcraft/vue-sdk", Zc = "0.10.1", ys = {
4537
- name: Yc,
4538
- version: Zc
4539
- }, Yt = "routerLink", ks = "navManager", Kc = "router", Qc = "aria", Ke = Symbol(), Cs = { default: Ke }, Ss = (e) => (e == null ? void 0 : e.split(" ")) || [], Xc = (e, t, r = []) => {
4638
+ const qc = "@searchcraft/vue-sdk", Yc = "0.10.2", ys = {
4639
+ name: qc,
4640
+ version: Yc
4641
+ }, Yt = "routerLink", Cs = "navManager", Zc = "router", Qc = "aria", Qe = Symbol(), Ss = { default: Qe }, ks = (e) => (e == null ? void 0 : e.split(" ")) || [], Kc = (e, t, r = []) => {
4540
4642
  var s;
4541
4643
  return [...Array.from(((s = e.value) == null ? void 0 : s.classList) || []), ...r].filter((a, o, n) => !t.has(a) && n.indexOf(a) === o);
4542
- }, be = (e, t, r = [], s = [], a, o) => {
4644
+ }, ye = (e, t, r = [], s = [], a, o) => {
4543
4645
  t !== void 0 && t();
4544
- const n = Qa((c, { attrs: u, slots: h, emit: l }) => {
4545
- var B;
4546
- const p = Xa(), m = new Set(Ss(u.class)), b = Ja(), P = ((B = b == null ? void 0 : b.appContext) == null ? void 0 : B.provides[ks]) ? en(ks) : void 0, D = (_) => {
4646
+ const n = Ka((c, { attrs: u, slots: h, emit: l }) => {
4647
+ var O;
4648
+ const p = Xa(), g = new Set(ks(u.class)), k = Ja(), P = ((O = k == null ? void 0 : k.appContext) == null ? void 0 : O.provides[Cs]) ? en(Cs) : void 0, _ = (T) => {
4547
4649
  const { routerLink: ue } = c;
4548
- if (ue !== Ke)
4650
+ if (ue !== Qe)
4549
4651
  if (P !== void 0) {
4550
- _.preventDefault();
4551
- let se = { event: _ };
4552
- for (const Se in c) {
4553
- const N = c[Se];
4554
- c.hasOwnProperty(Se) && Se.startsWith(Kc) && N !== Ke && (se[Se] = N);
4652
+ T.preventDefault();
4653
+ let se = { event: T };
4654
+ for (const we in c) {
4655
+ const H = c[we];
4656
+ c.hasOwnProperty(we) && we.startsWith(Zc) && H !== Qe && (se[we] = H);
4555
4657
  }
4556
4658
  P.navigate(se);
4557
4659
  } else
4558
4660
  console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
4559
4661
  };
4560
4662
  return () => {
4561
- c[a], Ss(u.class).forEach((N) => {
4562
- m.add(N);
4663
+ c[a], ks(u.class).forEach((H) => {
4664
+ g.add(H);
4563
4665
  });
4564
- const _ = c.onClick, ue = (N) => {
4565
- _ !== void 0 && _(N), N.defaultPrevented || D(N);
4666
+ const T = c.onClick, ue = (H) => {
4667
+ T !== void 0 && T(H), H.defaultPrevented || _(H);
4566
4668
  };
4567
4669
  let se = {
4568
4670
  ref: p,
4569
- class: Xc(p, m),
4671
+ class: Kc(p, g),
4570
4672
  onClick: ue
4571
4673
  };
4572
- for (const N in c) {
4573
- const ee = c[N];
4574
- (c.hasOwnProperty(N) && ee !== Ke || N.startsWith(Qc)) && (se[N] = ee);
4575
- const H = "on" + N.slice(0, 1).toUpperCase() + N.slice(1), we = u[H];
4576
- p.value && u.hasOwnProperty(H) && "addEventListener" in p.value && p.value.addEventListener(N, we);
4674
+ for (const H in c) {
4675
+ const ee = c[H];
4676
+ (c.hasOwnProperty(H) && ee !== Qe || H.startsWith(Qc)) && (se[H] = ee);
4677
+ const U = "on" + H.slice(0, 1).toUpperCase() + H.slice(1), xe = u[U];
4678
+ p.value && u.hasOwnProperty(U) && "addEventListener" in p.value && p.value.addEventListener(H, xe);
4577
4679
  }
4578
- return Yt in c && c[Yt] !== Ke && (se = {
4680
+ return Yt in c && c[Yt] !== Qe && (se = {
4579
4681
  ...se,
4580
4682
  href: c[Yt]
4581
4683
  }), tn(e, se, h.default && h.default());
@@ -4583,13 +4685,13 @@ const Yc = "@searchcraft/vue-sdk", Zc = "0.10.1", ys = {
4583
4685
  });
4584
4686
  if (typeof n != "function") {
4585
4687
  let c = [], u = {};
4586
- u.ROUTER_LINK_VALUE = Cs, r.forEach((h) => u[h] = Cs), c = s, n.name = e, n.emits = c, n.props = u;
4688
+ u.ROUTER_LINK_VALUE = Ss, r.forEach((h) => u[h] = Ss), c = s, n.name = e, n.emits = c, n.props = u;
4587
4689
  }
4588
4690
  return n;
4589
- }, Jc = /* @__PURE__ */ be("searchcraft-filter-panel", () => {
4691
+ }, Xc = /* @__PURE__ */ ye("searchcraft-filter-panel", () => {
4590
4692
  }, [
4591
4693
  "items"
4592
- ]), ei = /* @__PURE__ */ be("searchcraft-input-form", () => {
4694
+ ]), Jc = /* @__PURE__ */ ye("searchcraft-input-form", () => {
4593
4695
  }, [
4594
4696
  "autoSearch",
4595
4697
  "buttonPlacement",
@@ -4604,29 +4706,30 @@ const Yc = "@searchcraft/vue-sdk", Zc = "0.10.1", ys = {
4604
4706
  "inputFocus",
4605
4707
  "inputBlur",
4606
4708
  "inputInit"
4607
- ]), ti = /* @__PURE__ */ be("searchcraft-pagination", () => {
4608
- }), ri = /* @__PURE__ */ be("searchcraft-popover-button", () => {
4709
+ ]), ei = /* @__PURE__ */ ye("searchcraft-pagination", () => {
4710
+ }), ti = /* @__PURE__ */ ye("searchcraft-popover-button", () => {
4609
4711
  }, [
4610
4712
  "template",
4611
4713
  "type"
4612
- ]), si = /* @__PURE__ */ be("searchcraft-popover-form", () => {
4714
+ ]), ri = /* @__PURE__ */ ye("searchcraft-popover-form", () => {
4613
4715
  }, [
4614
4716
  "type",
4615
4717
  "popoverResultMappings",
4616
4718
  "hotkey",
4617
4719
  "hotkeyModifier"
4618
- ]), ai = /* @__PURE__ */ be("searchcraft-results-info", () => {
4720
+ ]), si = /* @__PURE__ */ ye("searchcraft-results-info", () => {
4619
4721
  }, [
4620
4722
  "template"
4621
- ]), ni = /* @__PURE__ */ be("searchcraft-search-results", () => {
4723
+ ]), ai = /* @__PURE__ */ ye("searchcraft-search-results", () => {
4622
4724
  }, [
4725
+ "initialQuery",
4623
4726
  "template"
4624
- ]), oi = /* @__PURE__ */ be("searchcraft-search-results-per-page", () => {
4727
+ ]), ni = /* @__PURE__ */ ye("searchcraft-search-results-per-page", () => {
4625
4728
  }, [
4626
4729
  "increment"
4627
- ]), ci = /* @__PURE__ */ be("searchcraft-theme", () => {
4628
- }), Ai = ni, Ii = Jc, Mi = ei, Li = ri, Oi = si, Fi = ai, Di = ci, Ni = ti, Hi = oi;
4629
- class Ui extends xo {
4730
+ ]), oi = /* @__PURE__ */ ye("searchcraft-theme", () => {
4731
+ }), _i = ai, Ii = Xc, Ai = Jc, Mi = ti, Li = ri, Oi = si, Fi = oi, Di = ei, Ni = ni;
4732
+ class Hi extends wo {
4630
4733
  constructor(t) {
4631
4734
  super(t, {
4632
4735
  sdkName: ys.name,
@@ -4636,15 +4739,15 @@ class Ui extends xo {
4636
4739
  }
4637
4740
  ua();
4638
4741
  export {
4639
- Ui as Searchcraft,
4742
+ Hi as Searchcraft,
4640
4743
  Ii as SearchcraftFilterPanel,
4641
- Mi as SearchcraftInputForm,
4642
- Ni as SearchcraftPagination,
4643
- Li as SearchcraftPopoverButton,
4644
- Oi as SearchcraftPopoverForm,
4645
- Fi as SearchcraftResultsInfo,
4646
- Ai as SearchcraftSearchResults,
4647
- Hi as SearchcraftSearchResultsPerPage,
4648
- Di as SearchcraftTheme
4744
+ Ai as SearchcraftInputForm,
4745
+ Di as SearchcraftPagination,
4746
+ Mi as SearchcraftPopoverButton,
4747
+ Li as SearchcraftPopoverForm,
4748
+ Oi as SearchcraftResultsInfo,
4749
+ _i as SearchcraftSearchResults,
4750
+ Ni as SearchcraftSearchResultsPerPage,
4751
+ Fi as SearchcraftTheme
4649
4752
  };
4650
4753
  //# sourceMappingURL=index.es.js.map