@searchcraft/react-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.
@@ -1,8 +1,8 @@
1
1
  var fn = Object.defineProperty;
2
2
  var dn = (e, t, r) => t in e ? fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var d = (e, t, r) => dn(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as me } from "react/jsx-runtime";
5
- import ge from "react";
4
+ import { jsx as ge } from "react/jsx-runtime";
5
+ import ve from "react";
6
6
  const pn = "searchcraft-javascript-sdk", Oe = (
7
7
  /* searchcraft-javascript-sdk */
8
8
  { experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
@@ -28,7 +28,7 @@ var mn = Object.defineProperty, gn = (e, t) => {
28
28
  }), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
29
29
  }
30
30
  });
31
- }, Qt = /* @__PURE__ */ new WeakMap(), Cn = (e) => Qt.delete(e), Ce = (e) => Qt.get(e), Sn = (e, t) => {
31
+ }, Kt = /* @__PURE__ */ new WeakMap(), Cn = (e) => Kt.delete(e), Se = (e) => Kt.get(e), Sn = (e, t) => {
32
32
  const r = {
33
33
  $flags$: 0,
34
34
  $hostElement$: e,
@@ -36,10 +36,10 @@ var mn = Object.defineProperty, gn = (e, t) => {
36
36
  $instanceValues$: /* @__PURE__ */ new Map()
37
37
  };
38
38
  r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
39
- const s = Qt.set(e, r);
39
+ const s = Kt.set(e, r);
40
40
  return yn(e, r), s;
41
- }, Zr = (e, t) => t in e, yt = (e, t) => (0, console.error)(e, t), Ct = typeof window < "u" ? window : {}, Le = Ct.document || { head: {} }, O = Ct.HTMLElement || class {
42
- }, J = {
41
+ }, Zr = (e, t) => t in e, yt = (e, t) => (0, console.error)(e, t), Ct = typeof window < "u" ? window : {}, Le = Ct.document || { head: {} }, F = Ct.HTMLElement || class {
42
+ }, ee = {
43
43
  $flags$: 0,
44
44
  $resourcesUrl$: "",
45
45
  jmp: (e) => e(),
@@ -47,9 +47,9 @@ var mn = Object.defineProperty, gn = (e, t) => {
47
47
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
48
48
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
49
49
  ce: (e, t) => new CustomEvent(e, t)
50
- }, kn = Oe.shadowDom, wn = (e) => Promise.resolve(e), qt = !1, Kr = [], Ss = [], xn = (e, t) => (r) => {
51
- e.push(r), qt || (qt = !0, J.$flags$ & 4 ? Xt(Yt) : J.raf(Yt));
52
- }, Qr = (e) => {
50
+ }, kn = Oe.shadowDom, wn = (e) => Promise.resolve(e), qt = !1, Qr = [], Ss = [], xn = (e, t) => (r) => {
51
+ e.push(r), qt || (qt = !0, ee.$flags$ & 4 ? Xt(Yt) : ee.raf(Yt));
52
+ }, Kr = (e) => {
53
53
  for (let t = 0; t < e.length; t++)
54
54
  try {
55
55
  e[t](performance.now());
@@ -58,9 +58,9 @@ var mn = Object.defineProperty, gn = (e, t) => {
58
58
  }
59
59
  e.length = 0;
60
60
  }, Yt = () => {
61
- Qr(Kr), Qr(Ss), (qt = Kr.length > 0) && J.raf(Yt);
62
- }, Xt = (e) => wn().then(e), En = /* @__PURE__ */ xn(Ss), Jt = (e) => (e = typeof e, e === "object" || e === "function"), Rn = {};
63
- gn(Rn, {
61
+ Kr(Qr), Kr(Ss), (qt = Qr.length > 0) && ee.raf(Yt);
62
+ }, Xt = (e) => wn().then(e), Rn = /* @__PURE__ */ xn(Ss), Jt = (e) => (e = typeof e, e === "object" || e === "function"), En = {};
63
+ gn(En, {
64
64
  err: () => ks,
65
65
  map: () => Tn,
66
66
  ok: () => Zt,
@@ -115,18 +115,18 @@ var _n = (e, t, r = !0) => {
115
115
  for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
116
116
  s.push(e);
117
117
  return s;
118
- }, Xr = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ke = (e, t = "") => () => {
119
- }, i = (e, t, ...r) => {
118
+ }, Xr = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Qe = (e, t = "") => () => {
119
+ }, l = (e, t, ...r) => {
120
120
  let s = null, a = null, o = null, n = !1, c = !1;
121
121
  const h = [], u = (p) => {
122
- for (let m = 0; m < p.length; m++)
123
- s = p[m], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !Jt(s)) && (s = String(s)), n && c ? h[h.length - 1].$text$ += s : h.push(n ? pt(null, s) : s), c = n);
122
+ for (let g = 0; g < p.length; g++)
123
+ s = p[g], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !Jt(s)) && (s = String(s)), n && c ? h[h.length - 1].$text$ += s : h.push(n ? pt(null, s) : s), c = n);
124
124
  };
125
125
  if (u(r), t) {
126
126
  t.key && (a = t.key), t.name && (o = t.name);
127
127
  {
128
128
  const p = t.className || t.class;
129
- p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((m) => p[m]).join(" "));
129
+ p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((g) => p[g]).join(" "));
130
130
  }
131
131
  }
132
132
  if (typeof e == "function")
@@ -135,8 +135,8 @@ var _n = (e, t, r = !0) => {
135
135
  h,
136
136
  Mn
137
137
  );
138
- const l = pt(e, null);
139
- return l.$attrs$ = t, h.length > 0 && (l.$children$ = h), l.$key$ = a, l.$name$ = o, l;
138
+ const i = pt(e, null);
139
+ return i.$attrs$ = t, h.length > 0 && (i.$children$ = h), i.$key$ = a, i.$name$ = o, i;
140
140
  }, pt = (e, t) => {
141
141
  const r = {
142
142
  $flags$: 0,
@@ -146,7 +146,7 @@ var _n = (e, t, r = !0) => {
146
146
  $children$: null
147
147
  };
148
148
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
149
- }, An = {}, In = (e) => e && e.$tag$ === An, Mn = {
149
+ }, In = {}, An = (e) => e && e.$tag$ === In, Mn = {
150
150
  forEach: (e, t) => e.map(Jr).forEach(t),
151
151
  map: (e, t) => e.map(Jr).map(t).map(Ln)
152
152
  }, Jr = (e) => ({
@@ -159,32 +159,32 @@ var _n = (e, t, r = !0) => {
159
159
  }), Ln = (e) => {
160
160
  if (typeof e.vtag == "function") {
161
161
  const r = { ...e.vattrs };
162
- return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), i(e.vtag, r, ...e.vchildren || []);
162
+ return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), l(e.vtag, r, ...e.vchildren || []);
163
163
  }
164
164
  const t = pt(e.vtag, e.vtext);
165
165
  return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
166
- }, Es = (e, t) => e != null && !Jt(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, On = (e) => e, be = (e, t, r) => {
166
+ }, Rs = (e, t) => e != null && !Jt(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, On = (e) => e, ye = (e, t, r) => {
167
167
  const s = On(e);
168
168
  return {
169
- emit: (a) => Rs(s, t, {
169
+ emit: (a) => Es(s, t, {
170
170
  bubbles: !0,
171
171
  composed: !0,
172
172
  cancelable: !0,
173
173
  detail: a
174
174
  })
175
175
  };
176
- }, Rs = (e, t, r) => {
177
- const s = J.ce(t, r);
176
+ }, Es = (e, t, r) => {
177
+ const s = ee.ce(t, r);
178
178
  return e.dispatchEvent(s), s;
179
179
  }, ut = /* @__PURE__ */ new WeakMap(), es = (e, t, r, s, a, o) => {
180
180
  if (r !== s) {
181
181
  let n = Zr(e, t), c = t.toLowerCase();
182
182
  if (t === "class") {
183
183
  const h = e.classList, u = ts(r);
184
- let l = ts(s);
185
- e["s-si"] ? (l.push(e["s-si"]), u.forEach((p) => {
186
- p.startsWith(e["s-si"]) && l.push(p);
187
- }), l = [...new Set(l)], h.add(...l), delete e["s-si"]) : (h.remove(...u.filter((p) => p && !l.includes(p))), h.add(...l.filter((p) => p && !u.includes(p))));
184
+ let i = ts(s);
185
+ e["s-si"] ? (i.push(e["s-si"]), u.forEach((p) => {
186
+ p.startsWith(e["s-si"]) && i.push(p);
187
+ }), i = [...new Set(i)], h.add(...i), delete e["s-si"]) : (h.remove(...u.filter((p) => p && !i.includes(p))), h.add(...i.filter((p) => p && !u.includes(p))));
188
188
  } else if (t === "style") {
189
189
  for (const h in r)
190
190
  (!s || s[h] == null) && (h.includes("-") ? e.style.removeProperty(h) : e.style[h] = "");
@@ -193,7 +193,7 @@ var _n = (e, t, r = !0) => {
193
193
  } else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
194
194
  if (t[2] === "-" ? t = t.slice(3) : Zr(Ct, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
195
195
  const h = t.endsWith(Ts);
196
- t = t.replace(Dn, ""), r && J.rel(e, t, r, h), s && J.ael(e, t, s, h);
196
+ t = t.replace(Dn, ""), r && ee.rel(e, t, r, h), s && ee.ael(e, t, s, h);
197
197
  }
198
198
  } else {
199
199
  const h = Jt(s);
@@ -226,7 +226,7 @@ function rs(e) {
226
226
  e
227
227
  );
228
228
  }
229
- var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
229
+ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
230
230
  var s;
231
231
  const a = t.$children$[r];
232
232
  let o = 0, n, c, h;
@@ -252,75 +252,75 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
252
252
  c = vt(e, a, o), c && n.appendChild(c);
253
253
  a.$tag$ === "svg" ? te = !1 : n.tagName === "foreignObject" && (te = !0);
254
254
  }
255
- return n["s-hn"] = er, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Kt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, h = e && e.$children$ && e.$children$[r], h && h.$tag$ === a.$tag$ && e.$elm$ && Qe(e.$elm$, !1)), n;
256
- }, Qe = (e, t) => {
257
- J.$flags$ |= 1;
255
+ return n["s-hn"] = er, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Qt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, h = e && e.$children$ && e.$children$[r], h && h.$tag$ === a.$tag$ && e.$elm$ && Ke(e.$elm$, !1)), n;
256
+ }, Ke = (e, t) => {
257
+ ee.$flags$ |= 1;
258
258
  const r = Array.from(e.__childNodes || e.childNodes);
259
259
  e["s-sr"] && Oe.experimentalSlotFixes;
260
260
  for (let s = r.length - 1; s >= 0; s--) {
261
261
  const a = r[s];
262
- a["s-hn"] !== er && a["s-ol"] && (ye(Xe(a).parentNode, a, Xe(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, tr = !0), t && Qe(a, t);
262
+ a["s-hn"] !== er && a["s-ol"] && (Ce(Xe(a).parentNode, a, Xe(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, tr = !0), t && Ke(a, t);
263
263
  }
264
- J.$flags$ &= -2;
264
+ ee.$flags$ &= -2;
265
265
  }, $s = (e, t, r, s, a, o) => {
266
266
  let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
267
267
  for (; a <= o; ++a)
268
- s[a] && (c = vt(null, r, a), c && (s[a].$elm$ = c, ye(n, c, Xe(t))));
268
+ s[a] && (c = vt(null, r, a), c && (s[a].$elm$ = c, Ce(n, c, Xe(t))));
269
269
  }, _s = (e, t, r) => {
270
270
  for (let s = t; s <= r; ++s) {
271
271
  const a = e[s];
272
272
  if (a) {
273
273
  const o = a.$elm$;
274
- o && (gt = !0, o["s-ol"] ? o["s-ol"].remove() : Qe(o, !0), o.remove());
274
+ o && (gt = !0, o["s-ol"] ? o["s-ol"].remove() : Ke(o, !0), o.remove());
275
275
  }
276
276
  }
277
277
  }, Nn = (e, t, r, s, a = !1) => {
278
- let o = 0, n = 0, c = 0, h = 0, u = t.length - 1, l = t[0], p = t[u], m = s.length - 1, b = s[0], v = s[m], T, H;
279
- for (; o <= u && n <= m; )
280
- if (l == null)
281
- l = t[++o];
278
+ let o = 0, n = 0, c = 0, h = 0, u = t.length - 1, i = t[0], p = t[u], g = s.length - 1, b = s[0], v = s[g], T, _;
279
+ for (; o <= u && n <= g; )
280
+ if (i == null)
281
+ i = t[++o];
282
282
  else if (p == null)
283
283
  p = t[--u];
284
284
  else if (b == null)
285
285
  b = s[++n];
286
286
  else if (v == null)
287
- v = s[--m];
288
- else if (ht(l, b, a))
289
- Ie(l, b, a), l = t[++o], b = s[++n];
287
+ v = s[--g];
288
+ else if (ht(i, b, a))
289
+ Ae(i, b, a), i = t[++o], b = s[++n];
290
290
  else if (ht(p, v, a))
291
- Ie(p, v, a), p = t[--u], v = s[--m];
292
- else if (ht(l, v, a))
293
- (l.$tag$ === "slot" || v.$tag$ === "slot") && Qe(l.$elm$.parentNode, !1), Ie(l, v, a), ye(e, l.$elm$, p.$elm$.nextSibling), l = t[++o], v = s[--m];
291
+ Ae(p, v, a), p = t[--u], v = s[--g];
292
+ else if (ht(i, v, a))
293
+ (i.$tag$ === "slot" || v.$tag$ === "slot") && Ke(i.$elm$.parentNode, !1), Ae(i, v, a), Ce(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], v = s[--g];
294
294
  else if (ht(p, b, a))
295
- (l.$tag$ === "slot" || v.$tag$ === "slot") && Qe(p.$elm$.parentNode, !1), Ie(p, b, a), ye(e, p.$elm$, l.$elm$), p = t[--u], b = s[++n];
295
+ (i.$tag$ === "slot" || v.$tag$ === "slot") && Ke(p.$elm$.parentNode, !1), Ae(p, b, a), Ce(e, p.$elm$, i.$elm$), p = t[--u], b = s[++n];
296
296
  else {
297
297
  for (c = -1, h = o; h <= u; ++h)
298
298
  if (t[h] && t[h].$key$ !== null && t[h].$key$ === b.$key$) {
299
299
  c = h;
300
300
  break;
301
301
  }
302
- c >= 0 ? (H = t[c], H.$tag$ !== b.$tag$ ? T = vt(t && t[n], r, c) : (Ie(H, b, a), t[c] = void 0, T = H.$elm$), b = s[++n]) : (T = vt(t && t[n], r, n), b = s[++n]), T && ye(
303
- Xe(l.$elm$).parentNode,
302
+ c >= 0 ? (_ = t[c], _.$tag$ !== b.$tag$ ? T = vt(t && t[n], r, c) : (Ae(_, b, a), t[c] = void 0, T = _.$elm$), b = s[++n]) : (T = vt(t && t[n], r, n), b = s[++n]), T && Ce(
303
+ Xe(i.$elm$).parentNode,
304
304
  T,
305
- Xe(l.$elm$)
305
+ Xe(i.$elm$)
306
306
  );
307
307
  }
308
308
  o > u ? $s(
309
309
  e,
310
- s[m + 1] == null ? null : s[m + 1].$elm$,
310
+ s[g + 1] == null ? null : s[g + 1].$elm$,
311
311
  r,
312
312
  s,
313
313
  n,
314
- m
315
- ) : n > m && _s(t, o, u);
316
- }, ht = (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, Xe = (e) => e && e["s-ol"] || e, Ie = (e, t, r = !1) => {
314
+ g
315
+ ) : n > g && _s(t, o, u);
316
+ }, ht = (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, Xe = (e) => e && e["s-ol"] || e, Ae = (e, t, r = !1) => {
317
317
  const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
318
318
  let h;
319
319
  c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !mt || Ps(e, t, te), a !== null && o !== null ? Nn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), $s(s, null, t, o, 0, o.length - 1)) : (
320
320
  // don't do this on initial render as it can cause non-hydrated content to be removed
321
321
  !r && Oe.updatable && a !== null && _s(a, 0, a.length - 1)
322
322
  ), te && n === "svg" && (te = !1)) : (h = s["s-cr"]) ? h.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
323
- }, he = [], As = (e) => {
323
+ }, fe = [], Is = (e) => {
324
324
  let t, r, s;
325
325
  const a = e.__childNodes || e.childNodes;
326
326
  for (const o of a) {
@@ -330,66 +330,66 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
330
330
  for (s = r.length - 1; s >= 0; s--)
331
331
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
332
332
  if (Xr(t, n)) {
333
- let c = he.find((h) => h.$nodeToRelocate$ === t);
334
- gt = !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"], he.push({
333
+ let c = fe.find((h) => h.$nodeToRelocate$ === t);
334
+ gt = !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"], fe.push({
335
335
  $slotRefNode$: o,
336
336
  $nodeToRelocate$: t
337
- })), t["s-sr"] && he.map((h) => {
338
- Xr(h.$nodeToRelocate$, t["s-sn"]) && (c = he.find((u) => u.$nodeToRelocate$ === t), c && !h.$slotRefNode$ && (h.$slotRefNode$ = c.$slotRefNode$));
337
+ })), t["s-sr"] && fe.map((h) => {
338
+ Xr(h.$nodeToRelocate$, t["s-sn"]) && (c = fe.find((u) => u.$nodeToRelocate$ === t), c && !h.$slotRefNode$ && (h.$slotRefNode$ = c.$slotRefNode$));
339
339
  });
340
- } else he.some((c) => c.$nodeToRelocate$ === t) || he.push({
340
+ } else fe.some((c) => c.$nodeToRelocate$ === t) || fe.push({
341
341
  $nodeToRelocate$: t
342
342
  });
343
343
  }
344
- o.nodeType === 1 && As(o);
344
+ o.nodeType === 1 && Is(o);
345
345
  }
346
- }, ye = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Hn = (e, t, r = !1) => {
346
+ }, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Hn = (e, t, r = !1) => {
347
347
  var s, a, o, n;
348
- const c = e.$hostElement$, h = e.$vnode$ || pt(null, null), u = In(t) ? t : i(null, null, t);
348
+ const c = e.$hostElement$, h = e.$vnode$ || pt(null, null), u = An(t) ? t : l(null, null, t);
349
349
  if (er = c.tagName, r && u.$attrs$)
350
- for (const l of Object.keys(u.$attrs$))
351
- c.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (u.$attrs$[l] = c[l]);
352
- u.$tag$ = null, u.$flags$ |= 4, e.$vnode$ = u, u.$elm$ = h.$elm$ = c, mt = kn, Kt = c["s-cr"], gt = !1, Ie(h, u, r);
350
+ for (const i of Object.keys(u.$attrs$))
351
+ c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (u.$attrs$[i] = c[i]);
352
+ u.$tag$ = null, u.$flags$ |= 4, e.$vnode$ = u, u.$elm$ = h.$elm$ = c, mt = kn, Qt = c["s-cr"], gt = !1, Ae(h, u, r);
353
353
  {
354
- if (J.$flags$ |= 1, tr) {
355
- As(u.$elm$);
356
- for (const l of he) {
357
- const p = l.$nodeToRelocate$;
354
+ if (ee.$flags$ |= 1, tr) {
355
+ Is(u.$elm$);
356
+ for (const i of fe) {
357
+ const p = i.$nodeToRelocate$;
358
358
  if (!p["s-ol"]) {
359
- const m = Le.createTextNode("");
360
- m["s-nr"] = p, ye(p.parentNode, p["s-ol"] = m, p);
359
+ const g = Le.createTextNode("");
360
+ g["s-nr"] = p, Ce(p.parentNode, p["s-ol"] = g, p);
361
361
  }
362
362
  }
363
- for (const l of he) {
364
- const p = l.$nodeToRelocate$, m = l.$slotRefNode$;
365
- if (m) {
366
- const b = m.parentNode;
367
- let v = m.nextSibling;
363
+ for (const i of fe) {
364
+ const p = i.$nodeToRelocate$, g = i.$slotRefNode$;
365
+ if (g) {
366
+ const b = g.parentNode;
367
+ let v = g.nextSibling;
368
368
  {
369
- let ee = (s = p["s-ol"]) == null ? void 0 : s.previousSibling;
370
- for (; ee; ) {
371
- let M = (a = ee["s-nr"]) != null ? a : null;
372
- if (M && M["s-sn"] === p["s-sn"] && b === (M.__parentNode || M.parentNode)) {
373
- for (M = M.nextSibling; M === p || M != null && M["s-sr"]; )
374
- M = M == null ? void 0 : M.nextSibling;
375
- if (!M || !M["s-nr"]) {
376
- v = M;
369
+ let N = (s = p["s-ol"]) == null ? void 0 : s.previousSibling;
370
+ for (; N; ) {
371
+ let I = (a = N["s-nr"]) != null ? a : null;
372
+ if (I && I["s-sn"] === p["s-sn"] && b === (I.__parentNode || I.parentNode)) {
373
+ for (I = I.nextSibling; I === p || I != null && I["s-sr"]; )
374
+ I = I == null ? void 0 : I.nextSibling;
375
+ if (!I || !I["s-nr"]) {
376
+ v = I;
377
377
  break;
378
378
  }
379
379
  }
380
- ee = ee.previousSibling;
380
+ N = N.previousSibling;
381
381
  }
382
382
  }
383
- const T = p.__parentNode || p.parentNode, H = p.__nextSibling || p.nextSibling;
384
- (!v && b !== T || H !== v) && p !== v && (!p["s-hn"] && p["s-ol"] && (p["s-hn"] = p["s-ol"].parentNode.nodeName), ye(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);
383
+ const T = p.__parentNode || p.parentNode, _ = p.__nextSibling || p.nextSibling;
384
+ (!v && b !== T || _ !== v) && p !== v && (!p["s-hn"] && p["s-ol"] && (p["s-hn"] = p["s-ol"].parentNode.nodeName), Ce(b, p, v), 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);
385
385
  } else
386
386
  p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
387
387
  }
388
388
  }
389
- gt && ws(u.$elm$), J.$flags$ &= -2, he.length = 0;
389
+ gt && ws(u.$elm$), ee.$flags$ &= -2, fe.length = 0;
390
390
  }
391
- Kt = void 0;
392
- }, Is = (e, t) => {
391
+ Qt = void 0;
392
+ }, As = (e, t) => {
393
393
  if (t && !e.$onRenderResolve$ && t["s-p"]) {
394
394
  const r = t["s-p"].push(
395
395
  new Promise(
@@ -404,9 +404,9 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
404
404
  e.$flags$ |= 512;
405
405
  return;
406
406
  }
407
- return Is(e, e.$ancestorComponent$), En(() => Un(e, t));
407
+ return As(e, e.$ancestorComponent$), Rn(() => Un(e, t));
408
408
  }, Un = (e, t) => {
409
- const r = e.$hostElement$, s = Ke("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
409
+ const r = e.$hostElement$, s = Qe("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
410
410
  if (!a)
411
411
  throw new Error(
412
412
  `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`
@@ -417,7 +417,7 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
417
417
  console.error(r), t();
418
418
  }) : t(), jn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Vn = async (e, t, r) => {
419
419
  var s;
420
- const a = e.$hostElement$, o = Ke("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Ke("render", e.$cmpMeta$.$tagName$);
420
+ const a = e.$hostElement$, o = Qe("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Qe("render", e.$cmpMeta$.$tagName$);
421
421
  Bn(e, t, a, r), n && (n.map((h) => h()), a["s-rc"] = void 0), c(), o();
422
422
  {
423
423
  const h = (s = a["s-p"]) != null ? s : [], u = () => Wn(e);
@@ -431,10 +431,10 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
431
431
  }
432
432
  return null;
433
433
  }, Wn = (e) => {
434
- const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
434
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Qe("postUpdate", t), a = r, o = e.$ancestorComponent$;
435
435
  e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ms(r), qn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Gn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Xt(() => rr(e, !1)), e.$flags$ &= -517;
436
436
  }, Gn = (e) => {
437
- Ms(Le.documentElement), Xt(() => Rs(Ct, "appload", { detail: { namespace: pn } }));
437
+ Ms(Le.documentElement), Xt(() => Es(Ct, "appload", { detail: { namespace: pn } }));
438
438
  }, qn = (e, t, r, s) => {
439
439
  if (e && e[t])
440
440
  try {
@@ -445,18 +445,18 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
445
445
  }, Ms = (e) => {
446
446
  var t;
447
447
  return e.classList.add((t = Oe.hydratedSelectorName) != null ? t : "hydrated");
448
- }, Yn = (e, t) => Ce(e).$instanceValues$.get(t), ss = (e, t, r, s) => {
449
- const a = Ce(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, h = o;
450
- r = Es(r, s.$members$[t][0]);
448
+ }, Yn = (e, t) => Se(e).$instanceValues$.get(t), ss = (e, t, r, s) => {
449
+ const a = Se(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, h = o;
450
+ r = Rs(r, s.$members$[t][0]);
451
451
  const u = Number.isNaN(n) && Number.isNaN(r);
452
452
  if (r !== n && !u) {
453
453
  a.$instanceValues$.set(t, r);
454
454
  {
455
455
  if (s.$watchers$ && c & 128) {
456
456
  const p = s.$watchers$[t];
457
- p && p.map((m) => {
457
+ p && p.map((g) => {
458
458
  try {
459
- h[m](r, n, t);
459
+ h[g](r, n, t);
460
460
  } catch (b) {
461
461
  yt(b, o);
462
462
  }
@@ -473,8 +473,8 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
473
473
  const n = Object.entries((s = t.$members$) != null ? s : {});
474
474
  n.map(([c, [h]]) => {
475
475
  if (h & 31 || h & 32) {
476
- const { get: u, set: l } = Object.getOwnPropertyDescriptor(o, c) || {};
477
- u && (t.$members$[c][0] |= 2048), l && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
476
+ const { get: u, set: i } = Object.getOwnPropertyDescriptor(o, c) || {};
477
+ u && (t.$members$[c][0] |= 2048), i && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
478
478
  get() {
479
479
  return u ? u.apply(this) : Yn(this, c);
480
480
  },
@@ -482,10 +482,10 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
482
482
  enumerable: !0
483
483
  }), Object.defineProperty(o, c, {
484
484
  set(p) {
485
- const m = Ce(this);
486
- if (l) {
487
- const b = h & 32 ? this[c] : m.$hostElement$[c];
488
- 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, [Es(p, h)]), p = h & 32 ? this[c] : m.$hostElement$[c], ss(this, c, p, t);
485
+ const g = Se(this);
486
+ if (i) {
487
+ const b = h & 32 ? this[c] : g.$hostElement$[c];
488
+ typeof b > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && b && g.$instanceValues$.set(c, b), i.apply(this, [Rs(p, h)]), p = h & 32 ? this[c] : g.$hostElement$[c], ss(this, c, p, t);
489
489
  return;
490
490
  }
491
491
  {
@@ -498,27 +498,27 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
498
498
  });
499
499
  {
500
500
  const c = /* @__PURE__ */ new Map();
501
- o.attributeChangedCallback = function(h, u, l) {
502
- J.jmp(() => {
501
+ o.attributeChangedCallback = function(h, u, i) {
502
+ ee.jmp(() => {
503
503
  var p;
504
- const m = c.get(h);
505
- if (!(this.hasOwnProperty(m) && Oe.lazyLoad)) {
506
- if (o.hasOwnProperty(m) && typeof this[m] == "number" && // cast type to number to avoid TS compiler issues
507
- this[m] == l)
504
+ const g = c.get(h);
505
+ if (!(this.hasOwnProperty(g) && Oe.lazyLoad)) {
506
+ if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
507
+ this[g] == i)
508
508
  return;
509
- if (m == null) {
510
- const v = Ce(this), T = v == null ? void 0 : v.$flags$;
511
- if (T && !(T & 8) && T & 128 && l !== u) {
512
- const ee = this, M = (p = t.$watchers$) == null ? void 0 : p[h];
513
- M == null || M.forEach((De) => {
514
- ee[De] != null && ee[De].call(ee, l, u, h);
509
+ if (g == null) {
510
+ const v = Se(this), T = v == null ? void 0 : v.$flags$;
511
+ if (T && !(T & 8) && T & 128 && i !== u) {
512
+ const N = this, I = (p = t.$watchers$) == null ? void 0 : p[h];
513
+ I == null || I.forEach((De) => {
514
+ N[De] != null && N[De].call(N, i, u, h);
515
515
  });
516
516
  }
517
517
  return;
518
518
  }
519
519
  }
520
- const b = Object.getOwnPropertyDescriptor(o, m);
521
- l = l === null && typeof this[m] == "boolean" ? !1 : l, l !== this[m] && (!b.get || b.set) && (this[m] = l);
520
+ const b = Object.getOwnPropertyDescriptor(o, g);
521
+ i = i === null && typeof this[g] == "boolean" ? !1 : i, i !== this[g] && (!b.get || b.set) && (this[g] = i);
522
522
  });
523
523
  }, e.observedAttributes = Array.from(
524
524
  /* @__PURE__ */ new Set([
@@ -527,15 +527,15 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
527
527
  ([h, u]) => u[0] & 15
528
528
  /* HasAttribute */
529
529
  ).map(([h, u]) => {
530
- const l = u[1] || h;
531
- return c.set(l, h), l;
530
+ const i = u[1] || h;
531
+ return c.set(i, h), i;
532
532
  })
533
533
  ])
534
534
  );
535
535
  }
536
536
  }
537
537
  return e;
538
- }, Kn = async (e, t, r, s) => {
538
+ }, Qn = async (e, t, r, s) => {
539
539
  if (!(t.$flags$ & 32)) {
540
540
  t.$flags$ |= 32;
541
541
  {
@@ -548,12 +548,12 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
548
548
  }
549
549
  const a = t.$ancestorComponent$, o = () => rr(t, !0);
550
550
  a && a["s-rc"] ? a["s-rc"].push(o) : o();
551
- }, Qn = (e, t) => {
551
+ }, Kn = (e, t) => {
552
552
  }, Xn = (e) => {
553
- if (!(J.$flags$ & 1)) {
554
- const t = Ce(e), r = t.$cmpMeta$, s = Ke("connectedCallback", r.$tagName$);
553
+ if (!(ee.$flags$ & 1)) {
554
+ const t = Se(e), r = t.$cmpMeta$, s = Qe("connectedCallback", r.$tagName$);
555
555
  if (t.$flags$ & 1)
556
- t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Qn());
556
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Kn());
557
557
  else {
558
558
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
559
559
  r.$flags$ & 12 && Jn(e);
@@ -561,7 +561,7 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
561
561
  let a = e;
562
562
  for (; a = a.parentNode || a.host; )
563
563
  if (a["s-p"]) {
564
- Is(t, t.$ancestorComponent$ = a);
564
+ As(t, t.$ancestorComponent$ = a);
565
565
  break;
566
566
  }
567
567
  }
@@ -570,7 +570,7 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
570
570
  const n = e[a];
571
571
  delete e[a], e[a] = n;
572
572
  }
573
- }), Kn(e, t);
573
+ }), Qn(e, t);
574
574
  }
575
575
  s();
576
576
  }
@@ -578,10 +578,10 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
578
578
  const t = e["s-cr"] = Le.createComment(
579
579
  ""
580
580
  );
581
- t["s-cn"] = !0, ye(e, t, e.firstChild);
581
+ t["s-cn"] = !0, Ce(e, t, e.firstChild);
582
582
  }, eo = async (e) => {
583
- J.$flags$ & 1 || Ce(e), ut.has(e) && ut.delete(e), e.shadowRoot && ut.has(e.shadowRoot) && ut.delete(e.shadowRoot);
584
- }, F = (e, t) => {
583
+ ee.$flags$ & 1 || Se(e), ut.has(e) && ut.delete(e), e.shadowRoot && ut.has(e.shadowRoot) && ut.delete(e.shadowRoot);
584
+ }, D = (e, t) => {
585
585
  const r = {
586
586
  $flags$: t[0],
587
587
  $tagName$: t[1]
@@ -594,12 +594,12 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
594
594
  Sn(this, r);
595
595
  },
596
596
  connectedCallback() {
597
- this.__hasHostListenerAttached || (Ce(this), this.__hasHostListenerAttached = !0), Xn(this), s && s.call(this);
597
+ this.__hasHostListenerAttached || (Se(this), this.__hasHostListenerAttached = !0), Xn(this), s && s.call(this);
598
598
  },
599
599
  disconnectedCallback() {
600
- eo(this), a && a.call(this), J.raf(() => {
600
+ eo(this), a && a.call(this), ee.raf(() => {
601
601
  var o;
602
- const n = Ce(this);
602
+ const n = Se(this);
603
603
  ((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 && Cn(this);
604
604
  });
605
605
  },
@@ -607,13 +607,13 @@ var Kt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
607
607
  this.shadowRoot = this;
608
608
  }
609
609
  }), e.is = r.$tagName$, Zn(e, r);
610
- }, to = (e, t) => t, ro = Object.defineProperty, so = (e, t, r) => t in e ? ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => so(e, typeof t != "symbol" ? t + "" : t, r), xe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(xe || {});
610
+ }, to = (e, t) => t, ro = Object.defineProperty, so = (e, t, r) => t in e ? ro(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => so(e, typeof t != "symbol" ? t + "" : t, r), he = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(he || {});
611
611
  class ao {
612
612
  constructor(t) {
613
613
  A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
614
614
  }
615
615
  defaultFormatter(t, r) {
616
- return `[${xe[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
616
+ return `[${he[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
617
617
  }
618
618
  debug(t) {
619
619
  this.logLevel <= 0 && console.log(this.logFormatter(0, t));
@@ -644,32 +644,32 @@ class ao {
644
644
  }
645
645
  }
646
646
  }
647
- function fe(e, t, r, s) {
647
+ function de(e, t, r, s) {
648
648
  return new (r || (r = Promise))(function(a, o) {
649
649
  function n(u) {
650
650
  try {
651
651
  h(s.next(u));
652
- } catch (l) {
653
- o(l);
652
+ } catch (i) {
653
+ o(i);
654
654
  }
655
655
  }
656
656
  function c(u) {
657
657
  try {
658
658
  h(s.throw(u));
659
- } catch (l) {
660
- o(l);
659
+ } catch (i) {
660
+ o(i);
661
661
  }
662
662
  }
663
663
  function h(u) {
664
- var l;
665
- u.done ? a(u.value) : (l = u.value, l instanceof r ? l : new r(function(p) {
666
- p(l);
664
+ var i;
665
+ u.done ? a(u.value) : (i = u.value, i instanceof r ? i : new r(function(p) {
666
+ p(i);
667
667
  })).then(n, c);
668
668
  }
669
669
  h((s = s.apply(e, [])).next());
670
670
  });
671
671
  }
672
- function de(e, t) {
672
+ function pe(e, t) {
673
673
  var r, s, a, o, n = { label: 0, sent: function() {
674
674
  if (1 & a[0]) throw a[1];
675
675
  return a[1];
@@ -679,61 +679,61 @@ function de(e, t) {
679
679
  }), o;
680
680
  function c(h) {
681
681
  return function(u) {
682
- return function(l) {
682
+ return function(i) {
683
683
  if (r) throw new TypeError("Generator is already executing.");
684
- for (; o && (o = 0, l[0] && (n = 0)), n; ) try {
685
- if (r = 1, s && (a = 2 & l[0] ? s.return : l[0] ? s.throw || ((a = s.return) && a.call(s), 0) : s.next) && !(a = a.call(s, l[1])).done) return a;
686
- switch (s = 0, a && (l = [2 & l[0], a.value]), l[0]) {
684
+ for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
685
+ if (r = 1, s && (a = 2 & i[0] ? s.return : i[0] ? s.throw || ((a = s.return) && a.call(s), 0) : s.next) && !(a = a.call(s, i[1])).done) return a;
686
+ switch (s = 0, a && (i = [2 & i[0], a.value]), i[0]) {
687
687
  case 0:
688
688
  case 1:
689
- a = l;
689
+ a = i;
690
690
  break;
691
691
  case 4:
692
- return n.label++, { value: l[1], done: !1 };
692
+ return n.label++, { value: i[1], done: !1 };
693
693
  case 5:
694
- n.label++, s = l[1], l = [0];
694
+ n.label++, s = i[1], i = [0];
695
695
  continue;
696
696
  case 7:
697
- l = n.ops.pop(), n.trys.pop();
697
+ i = n.ops.pop(), n.trys.pop();
698
698
  continue;
699
699
  default:
700
- if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || l[0] !== 6 && l[0] !== 2)) {
700
+ if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || i[0] !== 6 && i[0] !== 2)) {
701
701
  n = 0;
702
702
  continue;
703
703
  }
704
- if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
705
- n.label = l[1];
704
+ if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {
705
+ n.label = i[1];
706
706
  break;
707
707
  }
708
- if (l[0] === 6 && n.label < a[1]) {
709
- n.label = a[1], a = l;
708
+ if (i[0] === 6 && n.label < a[1]) {
709
+ n.label = a[1], a = i;
710
710
  break;
711
711
  }
712
712
  if (a && n.label < a[2]) {
713
- n.label = a[2], n.ops.push(l);
713
+ n.label = a[2], n.ops.push(i);
714
714
  break;
715
715
  }
716
716
  a[2] && n.ops.pop(), n.trys.pop();
717
717
  continue;
718
718
  }
719
- l = t.call(e, n);
719
+ i = t.call(e, n);
720
720
  } catch (p) {
721
- l = [6, p], s = 0;
721
+ i = [6, p], s = 0;
722
722
  } finally {
723
723
  r = a = 0;
724
724
  }
725
- if (5 & l[0]) throw l[1];
726
- return { value: l[0] ? l[1] : void 0, done: !0 };
725
+ if (5 & i[0]) throw i[1];
726
+ return { value: i[0] ? i[1] : void 0, done: !0 };
727
727
  }([h, u]);
728
728
  };
729
729
  }
730
730
  }
731
- var pe = { exclude: [] }, Ls = {}, no = { timeout: "true" }, ne = function(e, t) {
731
+ var me = { exclude: [] }, Ls = {}, no = { timeout: "true" }, ne = function(e, t) {
732
732
  typeof window < "u" && (Ls[e] = t);
733
733
  }, oo = function() {
734
734
  return Object.fromEntries(Object.entries(Ls).filter(function(e) {
735
735
  var t, r = e[0];
736
- return !(!((t = pe == null ? void 0 : pe.exclude) === null || t === void 0) && t.includes(r));
736
+ return !(!((t = me == null ? void 0 : me.exclude) === null || t === void 0) && t.includes(r));
737
737
  }).map(function(e) {
738
738
  return [e[0], (0, e[1])()];
739
739
  }));
@@ -741,7 +741,7 @@ var pe = { exclude: [] }, Ls = {}, no = { timeout: "true" }, ne = function(e, t)
741
741
  function ft(e) {
742
742
  return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
743
743
  }
744
- var B = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
744
+ var W = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
745
745
  function re(e, t) {
746
746
  return e << t | e >>> 32 - t;
747
747
  }
@@ -751,42 +751,42 @@ function sr(e, t) {
751
751
  var s = new Uint32Array([t, t, t, t]);
752
752
  (function(o, n) {
753
753
  for (var c = o.byteLength / 16 | 0, h = new Uint32Array(o, 0, 4 * c), u = 0; u < c; u++) {
754
- var l = h.subarray(4 * u, 4 * (u + 1));
755
- l[0] = Math.imul(l[0], B[0]), l[0] = re(l[0], 15), l[0] = Math.imul(l[0], B[1]), n[0] = n[0] ^ l[0], n[0] = re(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], B[1]), l[1] = re(l[1], 16), l[1] = Math.imul(l[1], B[2]), n[1] = n[1] ^ l[1], n[1] = re(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], B[2]), l[2] = re(l[2], 17), l[2] = Math.imul(l[2], B[3]), n[2] = n[2] ^ l[2], n[2] = re(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], B[3]), l[3] = re(l[3], 18), l[3] = Math.imul(l[3], B[0]), n[3] = n[3] ^ l[3], n[3] = re(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
754
+ var i = h.subarray(4 * u, 4 * (u + 1));
755
+ i[0] = Math.imul(i[0], W[0]), i[0] = re(i[0], 15), i[0] = Math.imul(i[0], W[1]), n[0] = n[0] ^ i[0], n[0] = re(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, i[1] = Math.imul(i[1], W[1]), i[1] = re(i[1], 16), i[1] = Math.imul(i[1], W[2]), n[1] = n[1] ^ i[1], n[1] = re(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, i[2] = Math.imul(i[2], W[2]), i[2] = re(i[2], 17), i[2] = Math.imul(i[2], W[3]), n[2] = n[2] ^ i[2], n[2] = re(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, i[3] = Math.imul(i[3], W[3]), i[3] = re(i[3], 18), i[3] = Math.imul(i[3], W[0]), n[3] = n[3] ^ i[3], n[3] = re(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
756
756
  }
757
757
  })(e, s), function(o, n) {
758
- var c = o.byteLength / 16 | 0, h = o.byteLength % 16, u = new Uint32Array(4), l = new Uint8Array(o, 16 * c, h);
758
+ var c = o.byteLength / 16 | 0, h = o.byteLength % 16, u = new Uint32Array(4), i = new Uint8Array(o, 16 * c, h);
759
759
  switch (h) {
760
760
  case 15:
761
- u[3] = u[3] ^ l[14] << 16;
761
+ u[3] = u[3] ^ i[14] << 16;
762
762
  case 14:
763
- u[3] = u[3] ^ l[13] << 8;
763
+ u[3] = u[3] ^ i[13] << 8;
764
764
  case 13:
765
- u[3] = u[3] ^ l[12] << 0, u[3] = Math.imul(u[3], B[3]), u[3] = re(u[3], 18), u[3] = Math.imul(u[3], B[0]), n[3] = n[3] ^ u[3];
765
+ u[3] = u[3] ^ i[12] << 0, u[3] = Math.imul(u[3], W[3]), u[3] = re(u[3], 18), u[3] = Math.imul(u[3], W[0]), n[3] = n[3] ^ u[3];
766
766
  case 12:
767
- u[2] = u[2] ^ l[11] << 24;
767
+ u[2] = u[2] ^ i[11] << 24;
768
768
  case 11:
769
- u[2] = u[2] ^ l[10] << 16;
769
+ u[2] = u[2] ^ i[10] << 16;
770
770
  case 10:
771
- u[2] = u[2] ^ l[9] << 8;
771
+ u[2] = u[2] ^ i[9] << 8;
772
772
  case 9:
773
- u[2] = u[2] ^ l[8] << 0, u[2] = Math.imul(u[2], B[2]), u[2] = re(u[2], 17), u[2] = Math.imul(u[2], B[3]), n[2] = n[2] ^ u[2];
773
+ u[2] = u[2] ^ i[8] << 0, u[2] = Math.imul(u[2], W[2]), u[2] = re(u[2], 17), u[2] = Math.imul(u[2], W[3]), n[2] = n[2] ^ u[2];
774
774
  case 8:
775
- u[1] = u[1] ^ l[7] << 24;
775
+ u[1] = u[1] ^ i[7] << 24;
776
776
  case 7:
777
- u[1] = u[1] ^ l[6] << 16;
777
+ u[1] = u[1] ^ i[6] << 16;
778
778
  case 6:
779
- u[1] = u[1] ^ l[5] << 8;
779
+ u[1] = u[1] ^ i[5] << 8;
780
780
  case 5:
781
- u[1] = u[1] ^ l[4] << 0, u[1] = Math.imul(u[1], B[1]), u[1] = re(u[1], 16), u[1] = Math.imul(u[1], B[2]), n[1] = n[1] ^ u[1];
781
+ u[1] = u[1] ^ i[4] << 0, u[1] = Math.imul(u[1], W[1]), u[1] = re(u[1], 16), u[1] = Math.imul(u[1], W[2]), n[1] = n[1] ^ u[1];
782
782
  case 4:
783
- u[0] = u[0] ^ l[3] << 24;
783
+ u[0] = u[0] ^ i[3] << 24;
784
784
  case 3:
785
- u[0] = u[0] ^ l[2] << 16;
785
+ u[0] = u[0] ^ i[2] << 16;
786
786
  case 2:
787
- u[0] = u[0] ^ l[1] << 8;
787
+ u[0] = u[0] ^ i[1] << 8;
788
788
  case 1:
789
- u[0] = u[0] ^ l[0] << 0, u[0] = Math.imul(u[0], B[0]), u[0] = re(u[0], 15), u[0] = Math.imul(u[0], B[1]), n[0] = n[0] ^ u[0];
789
+ u[0] = u[0] ^ i[0] << 0, u[0] = Math.imul(u[0], W[0]), u[0] = re(u[0], 15), u[0] = Math.imul(u[0], W[1]), n[0] = n[0] ^ u[0];
790
790
  }
791
791
  }(e, s), function(o, n) {
792
792
  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;
@@ -809,18 +809,18 @@ function io(e, t, r) {
809
809
  }));
810
810
  }
811
811
  function lo() {
812
- return fe(this, void 0, void 0, function() {
812
+ return de(this, void 0, void 0, function() {
813
813
  var e, t, r, s, a;
814
- return de(this, function(o) {
814
+ return pe(this, function(o) {
815
815
  switch (o.label) {
816
816
  case 0:
817
- return o.trys.push([0, 2, , 3]), e = oo(), t = Object.keys(e), [4, io(Object.values(e), (pe == null ? void 0 : pe.timeout) || 1e3, no)];
817
+ return o.trys.push([0, 2, , 3]), e = oo(), t = Object.keys(e), [4, io(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, no)];
818
818
  case 1:
819
819
  return r = o.sent(), s = r.filter(function(n) {
820
820
  return n !== void 0;
821
821
  }), a = {}, s.forEach(function(n, c) {
822
822
  a[t[c]] = n;
823
- }), [2, Os(a, pe.exclude || [])];
823
+ }), [2, Os(a, me.exclude || [])];
824
824
  case 2:
825
825
  throw o.sent();
826
826
  case 3:
@@ -846,9 +846,9 @@ function Os(e, t) {
846
846
  return r;
847
847
  }
848
848
  function uo(e) {
849
- return fe(this, void 0, void 0, function() {
849
+ return de(this, void 0, void 0, function() {
850
850
  var t, r;
851
- return de(this, function(s) {
851
+ return pe(this, function(s) {
852
852
  switch (s.label) {
853
853
  case 0:
854
854
  return s.trys.push([0, 2, , 3]), [4, lo()];
@@ -891,8 +891,8 @@ function Je() {
891
891
  return { name: "unknown", version: "unknown" };
892
892
  }
893
893
  ne("audio", function() {
894
- return fe(this, void 0, void 0, function() {
895
- return de(this, function(e) {
894
+ return de(this, void 0, void 0, function() {
895
+ return pe(this, function(e) {
896
896
  return [2, new Promise(function(t, r) {
897
897
  try {
898
898
  var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), a = s.createBufferSource(), o = s.createOscillator();
@@ -959,8 +959,8 @@ function yo(e, t) {
959
959
  if (o.length === 0) return null;
960
960
  var n = {};
961
961
  o.forEach(function(u) {
962
- var l = String(u);
963
- n[l] = (n[l] || 0) + 1;
962
+ var i = String(u);
963
+ n[i] = (n[i] || 0) + 1;
964
964
  });
965
965
  var c = o[0], h = 1;
966
966
  return Object.keys(n).forEach(function(u) {
@@ -996,13 +996,13 @@ Je().name != "Firefox" && ne("fonts", function() {
996
996
  try {
997
997
  (function(s) {
998
998
  var a;
999
- fe(this, void 0, void 0, function() {
999
+ de(this, void 0, void 0, function() {
1000
1000
  var o, n, c;
1001
- return de(this, function(h) {
1001
+ return pe(this, function(h) {
1002
1002
  switch (h.label) {
1003
1003
  case 0:
1004
1004
  return document.body ? [3, 2] : [4, (u = 50, new Promise(function(p) {
1005
- return setTimeout(p, u, l);
1005
+ return setTimeout(p, u, i);
1006
1006
  }))];
1007
1007
  case 1:
1008
1008
  return h.sent(), [3, 0];
@@ -1012,19 +1012,19 @@ Je().name != "Firefox" && ne("fonts", function() {
1012
1012
  document.body.removeChild(o);
1013
1013
  }, 0), [2];
1014
1014
  }
1015
- var u, l;
1015
+ var u, i;
1016
1016
  });
1017
1017
  });
1018
1018
  })(function(s) {
1019
1019
  var a = s.iframe;
1020
- return fe(e, void 0, void 0, function() {
1020
+ return de(e, void 0, void 0, function() {
1021
1021
  var o, n, c, h;
1022
- return de(this, function(u) {
1023
- return o = a.createElement("canvas"), n = o.getContext("2d"), c = go.map(function(l) {
1024
- return os(n, l);
1025
- }), h = {}, mo.forEach(function(l) {
1026
- var p = os(n, l);
1027
- c.includes(p) || (h[l] = p);
1022
+ return pe(this, function(u) {
1023
+ return o = a.createElement("canvas"), n = o.getContext("2d"), c = go.map(function(i) {
1024
+ return os(n, i);
1025
+ }), h = {}, mo.forEach(function(i) {
1026
+ var p = os(n, i);
1027
+ c.includes(p) || (h[i] = p);
1028
1028
  }), t(h), [2];
1029
1029
  });
1030
1030
  });
@@ -1043,14 +1043,14 @@ Je().name != "Firefox" && ne("fonts", function() {
1043
1043
  e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
1044
1044
  });
1045
1045
  }), ne("permissions", function() {
1046
- return fe(this, void 0, void 0, function() {
1046
+ return de(this, void 0, void 0, function() {
1047
1047
  var e;
1048
- return de(this, function(t) {
1049
- return Wt = (pe == null ? void 0 : pe.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: (pe == null ? void 0 : pe.retries) || 3 }, function() {
1048
+ return pe(this, function(t) {
1049
+ return Wt = (me == null ? void 0 : me.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: (me == null ? void 0 : me.retries) || 3 }, function() {
1050
1050
  return function() {
1051
- return fe(this, void 0, void 0, function() {
1051
+ return de(this, void 0, void 0, function() {
1052
1052
  var r, s, a, o, n;
1053
- return de(this, function(c) {
1053
+ return pe(this, function(c) {
1054
1054
  switch (c.label) {
1055
1055
  case 0:
1056
1056
  r = {}, s = 0, a = Wt, c.label = 1;
@@ -1097,9 +1097,9 @@ Je().name != "Firefox" && ne("fonts", function() {
1097
1097
  });
1098
1098
  var K, ko = Je().name !== "SamsungBrowser" ? 1 : 3, k = null;
1099
1099
  ne("webgl", function() {
1100
- return fe(this, void 0, void 0, function() {
1100
+ return de(this, void 0, void 0, function() {
1101
1101
  var e;
1102
- return de(this, function(t) {
1102
+ return pe(this, function(t) {
1103
1103
  typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100, k = K.getContext("webgl"));
1104
1104
  try {
1105
1105
  if (!k) throw new Error("WebGL not supported");
@@ -1125,12 +1125,12 @@ ne("webgl", function() {
1125
1125
  if (!n) throw new Error("Failed to create shader program");
1126
1126
  if (k.attachShader(n, a), k.attachShader(n, o), k.linkProgram(n), !k.getProgramParameter(n, k.LINK_STATUS)) throw new Error("Shader program linking failed: " + k.getProgramInfoLog(n));
1127
1127
  k.useProgram(n);
1128
- for (var c = 137, h = new Float32Array(4 * c), u = 2 * Math.PI / c, l = 0; l < c; l++) {
1129
- var p = l * u;
1130
- h[4 * l] = 0, h[4 * l + 1] = 0, h[4 * l + 2] = Math.cos(p) * (K.width / 2), h[4 * l + 3] = Math.sin(p) * (K.height / 2);
1128
+ for (var c = 137, h = new Float32Array(4 * c), u = 2 * Math.PI / c, i = 0; i < c; i++) {
1129
+ var p = i * u;
1130
+ h[4 * i] = 0, h[4 * i + 1] = 0, h[4 * i + 2] = Math.cos(p) * (K.width / 2), h[4 * i + 3] = Math.sin(p) * (K.height / 2);
1131
1131
  }
1132
- var m = k.createBuffer();
1133
- k.bindBuffer(k.ARRAY_BUFFER, m), k.bufferData(k.ARRAY_BUFFER, h, k.STATIC_DRAW);
1132
+ var g = k.createBuffer();
1133
+ k.bindBuffer(k.ARRAY_BUFFER, g), k.bufferData(k.ARRAY_BUFFER, h, k.STATIC_DRAW);
1134
1134
  var b = k.getAttribLocation(n, "position");
1135
1135
  k.enableVertexAttribArray(b), k.vertexAttribPointer(b, 2, k.FLOAT, !1, 0, 0), k.viewport(0, 0, K.width, K.height), k.clearColor(0, 0, 0, 1), k.clear(k.COLOR_BUFFER_BIT), k.drawArrays(k.LINES, 0, 2 * c);
1136
1136
  var v = new Uint8ClampedArray(K.width * K.height * 4);
@@ -1149,15 +1149,15 @@ ne("webgl", function() {
1149
1149
  });
1150
1150
  });
1151
1151
  });
1152
- var we = function(e, t, r, s) {
1152
+ var xe = function(e, t, r, s) {
1153
1153
  for (var a = (r - t) / s, o = 0, n = 0; n < s; n++)
1154
1154
  o += e(t + (n + 0.5) * a);
1155
1155
  return o * a;
1156
1156
  };
1157
1157
  ne("math", function() {
1158
- return fe(void 0, void 0, void 0, function() {
1159
- return de(this, function(e) {
1160
- return [2, { acos: Math.acos(0.5), asin: we(Math.asin, -1, 1, 97), atan: we(Math.atan, -1, 1, 97), cos: we(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: we(Math.sin, -Math.PI, Math.PI, 97), sinh: we(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: we(Math.tan, 0, 2 * Math.PI, 97), tanh: we(Math.tanh, -9 / 7, 7 / 9, 97) }];
1158
+ return de(void 0, void 0, void 0, function() {
1159
+ return pe(this, function(e) {
1160
+ return [2, { acos: Math.acos(0.5), asin: xe(Math.asin, -1, 1, 97), atan: xe(Math.atan, -1, 1, 97), cos: xe(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: xe(Math.sin, -Math.PI, Math.PI, 97), sinh: xe(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: xe(Math.tan, 0, 2 * Math.PI, 97), tanh: xe(Math.tanh, -9 / 7, 7 / 9, 97) }];
1161
1161
  });
1162
1162
  });
1163
1163
  });
@@ -1172,7 +1172,7 @@ class ar {
1172
1172
  constructor(t) {
1173
1173
  A(this, "config"), this.config = t;
1174
1174
  }
1175
- async getAdsForSearchParams(t) {
1175
+ async getAds(t) {
1176
1176
  return [];
1177
1177
  }
1178
1178
  async onQuerySubmitted(t) {
@@ -1190,7 +1190,7 @@ class xo extends ar {
1190
1190
  /**
1191
1191
  * Gets ads from the adMarketplace API based on the search term.
1192
1192
  */
1193
- async getAdsForSearchParams(t) {
1193
+ async getAds(t) {
1194
1194
  if (!this.config.admSub)
1195
1195
  return console.error("No admSub specified in config."), [];
1196
1196
  const r = `https://demofeed.is.ampfeed.com/is?${new URLSearchParams({
@@ -1222,12 +1222,12 @@ class xo extends ar {
1222
1222
  (r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
1223
1223
  }
1224
1224
  }
1225
- class Eo extends ar {
1226
- async getAdsForSearchParams(t) {
1225
+ class Ro extends ar {
1226
+ async getAds(t) {
1227
1227
  return [];
1228
1228
  }
1229
1229
  }
1230
- const Ro = 1e3;
1230
+ const Eo = 1e3;
1231
1231
  class To extends ar {
1232
1232
  constructor(t) {
1233
1233
  super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
@@ -1241,7 +1241,7 @@ class To extends ar {
1241
1241
  this.removeScriptTagFromDocument();
1242
1242
  return;
1243
1243
  }
1244
- this.performAdCall(Ro);
1244
+ this.performAdCall(Eo);
1245
1245
  }
1246
1246
  async onInputCleared() {
1247
1247
  this.removeScriptTagFromDocument();
@@ -1256,7 +1256,7 @@ class To extends ar {
1256
1256
  }
1257
1257
  }, t);
1258
1258
  }
1259
- async getAdsForSearchParams(t) {
1259
+ async getAds(t) {
1260
1260
  return [];
1261
1261
  }
1262
1262
  addScriptTagToDocument() {
@@ -1289,7 +1289,7 @@ class $o {
1289
1289
  if (a === "document_clicked") {
1290
1290
  const h = JSON.stringify(c), u = `${this.baseMeasureUrl}/event`;
1291
1291
  try {
1292
- const l = await fetch(u, {
1292
+ const i = await fetch(u, {
1293
1293
  method: "POST",
1294
1294
  headers: {
1295
1295
  "Content-Type": "application/json",
@@ -1299,18 +1299,18 @@ class $o {
1299
1299
  body: h,
1300
1300
  keepalive: !0
1301
1301
  });
1302
- if (!l.ok)
1302
+ if (!i.ok)
1303
1303
  throw new Error(
1304
- `Failed to send request: ${l.status} ${l.statusText}`
1304
+ `Failed to send request: ${i.status} ${i.statusText}`
1305
1305
  );
1306
- } catch (l) {
1307
- throw console.error("Error sending MeasureRequest:", l), l;
1306
+ } catch (i) {
1307
+ throw console.error("Error sending MeasureRequest:", i), i;
1308
1308
  }
1309
1309
  } else
1310
1310
  this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
1311
1311
  const h = JSON.stringify({ items: this.measureRequestsBatched }), u = `${this.baseMeasureUrl}/batch`;
1312
1312
  try {
1313
- const l = await fetch(u, {
1313
+ const i = await fetch(u, {
1314
1314
  method: "POST",
1315
1315
  headers: {
1316
1316
  "Content-Type": "application/json",
@@ -1320,13 +1320,13 @@ class $o {
1320
1320
  body: h,
1321
1321
  keepalive: !0
1322
1322
  });
1323
- if (this.measureRequestsBatched = [], !l.ok)
1323
+ if (this.measureRequestsBatched = [], !i.ok)
1324
1324
  throw new Error(
1325
- `Failed to send request: ${l.status} ${l.statusText}`
1325
+ `Failed to send request: ${i.status} ${i.statusText}`
1326
1326
  );
1327
1327
  return;
1328
- } catch (l) {
1329
- throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", l), l;
1328
+ } catch (i) {
1329
+ throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", i), i;
1330
1330
  }
1331
1331
  }, Po);
1332
1332
  }), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = bt(), this.sendMeasureEvent("sdk_initialized");
@@ -1352,35 +1352,7 @@ class $o {
1352
1352
  };
1353
1353
  }
1354
1354
  }
1355
- function _o(e) {
1356
- const t = [];
1357
- let r = "should";
1358
- return e.facetPathsForIndexFields && Object.keys(e.facetPathsForIndexFields).forEach((s) => {
1359
- var a;
1360
- const o = (a = e.facetPathsForIndexFields) == null ? void 0 : a[s];
1361
- o && (r = "must", t.push({
1362
- occur: r,
1363
- exact: {
1364
- ctx: o.value
1365
- }
1366
- }));
1367
- }), e.rangeValueForIndexFields && Object.keys(e.rangeValueForIndexFields).forEach((s) => {
1368
- var a;
1369
- const o = (a = e.rangeValueForIndexFields) == null ? void 0 : a[s];
1370
- o && (r = "must", t.push({
1371
- occur: r,
1372
- exact: {
1373
- ctx: o.value
1374
- }
1375
- }));
1376
- }), e.sort === "desc" ? e.order_by = "date_published" : e.order_by = "", t.push({
1377
- occur: r,
1378
- // Valid, as 'occur' is a required property in QueryItem
1379
- [e.mode]: { ctx: e.searchTerm }
1380
- // Ensure dynamic mode is inside queryType
1381
- }), t;
1382
- }
1383
- const Ao = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Io = (e) => {
1355
+ const _o = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Io = (e) => {
1384
1356
  let t = "";
1385
1357
  if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
1386
1358
  "‘": "'",
@@ -1392,62 +1364,98 @@ const Ao = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Io = (e) => {
1392
1364
  "The search term contains an uneven number of quote characters."
1393
1365
  );
1394
1366
  return t;
1395
- }, Mo = 500;
1396
- class Lo {
1367
+ }, Ao = 500;
1368
+ class Mo {
1397
1369
  constructor(t, r, s) {
1398
- A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponse", async (a) => {
1370
+ A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
1399
1371
  var o, n, c, h, u;
1400
- const l = Io(a.searchTerm);
1401
- (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
1402
- search_term: l
1403
- }), this.parent.emitEvent("query_submitted", {
1404
- name: "query_submitted",
1405
- data: {
1406
- searchTerm: l
1407
- }
1408
- }), (n = this.parent.adClient) == null || n.onQuerySubmitted(a);
1372
+ let i;
1373
+ const p = typeof a == "string" ? a : a.searchTerm;
1409
1374
  try {
1410
- const p = {
1411
- query: _o(a),
1375
+ return (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
1376
+ search_term: p
1377
+ }), this.parent.emitEvent("query_submitted", {
1378
+ name: "query_submitted",
1379
+ data: {
1380
+ searchTerm: p
1381
+ }
1382
+ }), (n = this.parent.adClient) == null || n.onQuerySubmitted(
1383
+ typeof a == "string" ? { searchTerm: p, mode: "exact" } : a
1384
+ ), typeof a == "string" ? i = await this.handleGetSearchResponseItemsWithString(a) : i = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
1385
+ search_term: p,
1386
+ number_of_documents: i.data.count
1387
+ }), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
1388
+ var g;
1389
+ (g = this.parent.measureClient) == null || g.sendMeasureEvent("search_completed", {
1390
+ search_term: p,
1391
+ number_of_documents: i.data.count
1392
+ });
1393
+ }, Ao), this.parent.emitEvent("query_fetched", {
1394
+ name: "query_fetched",
1395
+ data: {
1396
+ searchTerm: p
1397
+ }
1398
+ }), (((h = i.data.hits) == null ? void 0 : h.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1399
+ name: "no_results_returned"
1400
+ }), (u = this.parent.adClient) == null || u.onQueryFetched(
1401
+ typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
1402
+ i
1403
+ ), i;
1404
+ } catch (g) {
1405
+ throw console.error("Error parsing response:", g), g;
1406
+ }
1407
+ }), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
1408
+ let o;
1409
+ try {
1410
+ o = JSON.parse(a), o = {
1411
+ limit: this.config.searchResultsPerPage,
1412
+ order_by: this.config.indexFieldName,
1413
+ ...o
1414
+ };
1415
+ } catch {
1416
+ throw new Error("Error: Query string is not valid json.");
1417
+ }
1418
+ const n = await fetch(this.baseSearchUrl, {
1419
+ method: "POST",
1420
+ headers: {
1421
+ Authorization: this.config.readKey,
1422
+ "Content-Type": "application/json",
1423
+ "X-Sc-User-Id": this.userId
1424
+ },
1425
+ body: JSON.stringify(o)
1426
+ });
1427
+ if (!n.ok)
1428
+ throw new Error(
1429
+ `Error: ${n.statusText} (Status: ${n.status})`
1430
+ );
1431
+ return await n.json();
1432
+ }), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
1433
+ try {
1434
+ const o = {
1435
+ query: this.formatParamsForRequest(a),
1412
1436
  offset: a.offset || 0,
1413
1437
  // Default to 0 (first page) if not provided
1414
- limit: a.limit || this.config.searchResultsPerPage || 20
1438
+ limit: a.limit || this.config.searchResultsPerPage || 20,
1415
1439
  // Default to 20 if not provided
1440
+ order_by: a.order_by || this.config.indexFieldName
1416
1441
  };
1417
- a.order_by && (p.order_by = a.order_by, p.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
1418
- const m = {
1442
+ o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
1443
+ const n = await fetch(this.baseSearchUrl, {
1419
1444
  method: "POST",
1420
1445
  headers: {
1421
1446
  Authorization: this.config.readKey,
1422
1447
  "Content-Type": "application/json",
1423
1448
  "X-Sc-User-Id": this.userId
1424
1449
  },
1425
- body: JSON.stringify(p)
1426
- }, b = await fetch(this.baseSearchUrl, m);
1427
- if (!b.ok)
1450
+ body: JSON.stringify(o)
1451
+ });
1452
+ if (!n.ok)
1428
1453
  throw new Error(
1429
- `Error: ${b.statusText} (Status: ${b.status})`
1454
+ `Error: ${n.statusText} (Status: ${n.status})`
1430
1455
  );
1431
- const v = await b.json();
1432
- return (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
1433
- search_term: l,
1434
- number_of_documents: v.data.count
1435
- }), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
1436
- var T;
1437
- (T = this.parent.measureClient) == null || T.sendMeasureEvent("search_completed", {
1438
- search_term: l,
1439
- number_of_documents: v.data.count
1440
- });
1441
- }, Mo), this.parent.emitEvent("query_fetched", {
1442
- name: "query_fetched",
1443
- data: {
1444
- searchTerm: l
1445
- }
1446
- }), (((h = v.data.hits) == null ? void 0 : h.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1447
- name: "no_results_returned"
1448
- }), (u = this.parent.adClient) == null || u.onQueryFetched(a, v), v;
1449
- } catch (p) {
1450
- throw console.error("Error parsing response:", p), p;
1456
+ return await n.json();
1457
+ } catch (o) {
1458
+ throw console.error("Error parsing response:", o), o;
1451
1459
  }
1452
1460
  }), this.parent = t, this.config = r, this.userId = s;
1453
1461
  }
@@ -1457,25 +1465,59 @@ class Lo {
1457
1465
  get baseSearchUrl() {
1458
1466
  return `${this.config.endpointURL}/index/${this.config.index.join(",")}/search`;
1459
1467
  }
1468
+ /**
1469
+ * Builds a query object for the SearchClient request.
1470
+ * @param {properties} properties - The properties for the search.
1471
+ * @returns {SearchClientQuery} - A properly formatted SearchClient query object.
1472
+ */
1473
+ formatParamsForRequest(t) {
1474
+ const r = [];
1475
+ let s = "should";
1476
+ t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((o) => {
1477
+ var n;
1478
+ const c = (n = t.facetPathsForIndexFields) == null ? void 0 : n[o];
1479
+ c && (s = "must", r.push({
1480
+ occur: s,
1481
+ exact: {
1482
+ ctx: Io(c.value)
1483
+ }
1484
+ }));
1485
+ }), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((o) => {
1486
+ var n;
1487
+ const c = (n = t.rangeValueForIndexFields) == null ? void 0 : n[o];
1488
+ c && (s = "must", r.push({
1489
+ occur: s,
1490
+ exact: {
1491
+ ctx: c.value
1492
+ }
1493
+ }));
1494
+ });
1495
+ const a = t.mode === "fuzzy" ? { fuzzy: { ctx: t.searchTerm } } : { exact: { ctx: t.searchTerm } };
1496
+ return r.push({
1497
+ occur: s,
1498
+ // Valid, as 'occur' is a required property in SearchClientQuery
1499
+ ...a
1500
+ }), r;
1501
+ }
1460
1502
  }
1461
- class Oo {
1503
+ class Lo {
1462
1504
  constructor(t, r) {
1463
- if (A(this, "config"), A(this, "measureClient"), A(this, "searchClient"), A(this, "adClient"), A(this, "userId"), A(this, "requestTimeout"), A(this, "subscriptionEvents", {}), A(this, "getItems", (s, a, o) => {
1505
+ 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) => {
1464
1506
  const n = async () => {
1465
1507
  (async () => {
1466
1508
  var c, h;
1467
- const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponse(s));
1509
+ const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
1468
1510
  if (!u)
1469
1511
  throw new Error("Search client was not initialized.");
1470
- const l = (h = u.data.hits || []) == null ? void 0 : h.map((p) => p.doc).filter((p) => !!p).map((p) => ({
1512
+ const i = (h = u.data.hits || []) == null ? void 0 : h.map((p) => p.doc).filter((p) => !!p).map((p) => ({
1471
1513
  type: "SearchDocument",
1472
1514
  id: bt(),
1473
1515
  document: p
1474
1516
  }));
1475
- a(u, l);
1517
+ a(u, i);
1476
1518
  })(), (async () => {
1477
- if (this.adClient) {
1478
- const c = await this.adClient.getAdsForSearchParams(s);
1519
+ if (this.adClient && typeof s != "string") {
1520
+ const c = await this.adClient.getAds(s);
1479
1521
  o(c);
1480
1522
  }
1481
1523
  })();
@@ -1491,7 +1533,7 @@ class Oo {
1491
1533
  this.config = {
1492
1534
  ...t,
1493
1535
  // Strips off the trailing '/' from an endpointURL if one is accidentally added
1494
- endpointURL: Ao(t.endpointURL)
1536
+ endpointURL: _o(t.endpointURL)
1495
1537
  }, 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());
1496
1538
  }
1497
1539
  initInputForms() {
@@ -1520,7 +1562,7 @@ class Oo {
1520
1562
  initClients(t, r) {
1521
1563
  setTimeout(async () => {
1522
1564
  let s = this.config.userId;
1523
- switch (s || (s = await uo()), this.measureClient = new $o(t, r, s), this.searchClient = new Lo(this, t, s), t.adSource) {
1565
+ switch (s || (s = await uo()), this.measureClient = new $o(t, r, s), this.searchClient = new Mo(this, t, s), t.adSource) {
1524
1566
  case "adMarketplace":
1525
1567
  this.adClient = new xo(t);
1526
1568
  break;
@@ -1528,9 +1570,12 @@ class Oo {
1528
1570
  this.adClient = new To(t);
1529
1571
  break;
1530
1572
  case "Custom":
1531
- this.adClient = new Eo(t);
1573
+ this.adClient = new Ro(t);
1532
1574
  break;
1533
1575
  }
1576
+ this.emitEvent("initialized", {
1577
+ name: "initialized"
1578
+ });
1534
1579
  }, 300);
1535
1580
  }
1536
1581
  emitEvent(t, r) {
@@ -1587,16 +1632,16 @@ class Oo {
1587
1632
  var Ds = {}, nr = {};
1588
1633
  const cs = (e) => {
1589
1634
  let t;
1590
- const r = /* @__PURE__ */ new Set(), s = (u, l) => {
1635
+ const r = /* @__PURE__ */ new Set(), s = (u, i) => {
1591
1636
  const p = typeof u == "function" ? u(t) : u;
1592
1637
  if (!Object.is(p, t)) {
1593
- const m = t;
1594
- t = l ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((b) => b(t, m));
1638
+ const g = t;
1639
+ t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((b) => b(t, g));
1595
1640
  }
1596
1641
  }, a = () => t, c = { setState: s, getState: a, getInitialState: () => h, subscribe: (u) => (r.add(u), () => r.delete(u)) }, h = t = e(s, a, c);
1597
1642
  return c;
1598
- }, Fo = (e) => e ? cs(e) : cs;
1599
- nr.createStore = Fo;
1643
+ }, Oo = (e) => e ? cs(e) : cs;
1644
+ nr.createStore = Oo;
1600
1645
  var or = {}, Ns = { exports: {} }, w = {};
1601
1646
  /**
1602
1647
  * @license React
@@ -1607,8 +1652,8 @@ var or = {}, Ns = { exports: {} }, w = {};
1607
1652
  * This source code is licensed under the MIT license found in the
1608
1653
  * LICENSE file in the root directory of this source tree.
1609
1654
  */
1610
- var cr = Symbol.for("react.transitional.element"), Do = Symbol.for("react.portal"), No = Symbol.for("react.fragment"), Ho = Symbol.for("react.strict_mode"), Uo = Symbol.for("react.profiler"), zo = Symbol.for("react.consumer"), jo = Symbol.for("react.context"), Vo = Symbol.for("react.forward_ref"), Bo = Symbol.for("react.suspense"), Wo = Symbol.for("react.memo"), Hs = Symbol.for("react.lazy"), is = Symbol.iterator;
1611
- function Go(e) {
1655
+ var cr = Symbol.for("react.transitional.element"), Fo = Symbol.for("react.portal"), Do = Symbol.for("react.fragment"), No = Symbol.for("react.strict_mode"), Ho = Symbol.for("react.profiler"), Uo = Symbol.for("react.consumer"), zo = Symbol.for("react.context"), jo = Symbol.for("react.forward_ref"), Vo = Symbol.for("react.suspense"), Bo = Symbol.for("react.memo"), Hs = Symbol.for("react.lazy"), is = Symbol.iterator;
1656
+ function Wo(e) {
1612
1657
  return e === null || typeof e != "object" ? null : (e = is && e[is] || e["@@iterator"], typeof e == "function" ? e : null);
1613
1658
  }
1614
1659
  var Us = {
@@ -1646,7 +1691,7 @@ var lr = ir.prototype = new Vs();
1646
1691
  lr.constructor = ir;
1647
1692
  zs(lr, Fe.prototype);
1648
1693
  lr.isPureReactComponent = !0;
1649
- var ls = Array.isArray, I = { H: null, A: null, T: null, S: null }, Bs = Object.prototype.hasOwnProperty;
1694
+ var ls = Array.isArray, L = { H: null, A: null, T: null, S: null }, Bs = Object.prototype.hasOwnProperty;
1650
1695
  function ur(e, t, r, s, a, o) {
1651
1696
  return r = o.ref, {
1652
1697
  $$typeof: cr,
@@ -1656,7 +1701,7 @@ function ur(e, t, r, s, a, o) {
1656
1701
  props: o
1657
1702
  };
1658
1703
  }
1659
- function qo(e, t) {
1704
+ function Go(e, t) {
1660
1705
  return ur(
1661
1706
  e.type,
1662
1707
  t,
@@ -1669,7 +1714,7 @@ function qo(e, t) {
1669
1714
  function hr(e) {
1670
1715
  return typeof e == "object" && e !== null && e.$$typeof === cr;
1671
1716
  }
1672
- function Yo(e) {
1717
+ function qo(e) {
1673
1718
  var t = { "=": "=0", ":": "=2" };
1674
1719
  return "$" + e.replace(/[=:]/g, function(r) {
1675
1720
  return t[r];
@@ -1677,11 +1722,11 @@ function Yo(e) {
1677
1722
  }
1678
1723
  var us = /\/+/g;
1679
1724
  function Gt(e, t) {
1680
- return typeof e == "object" && e !== null && e.key != null ? Yo("" + e.key) : t.toString(36);
1725
+ return typeof e == "object" && e !== null && e.key != null ? qo("" + e.key) : t.toString(36);
1681
1726
  }
1682
1727
  function hs() {
1683
1728
  }
1684
- function Zo(e) {
1729
+ function Yo(e) {
1685
1730
  switch (e.status) {
1686
1731
  case "fulfilled":
1687
1732
  return e.value;
@@ -1719,7 +1764,7 @@ function Me(e, t, r, s, a) {
1719
1764
  case "object":
1720
1765
  switch (e.$$typeof) {
1721
1766
  case cr:
1722
- case Do:
1767
+ case Fo:
1723
1768
  n = !0;
1724
1769
  break;
1725
1770
  case Hs:
@@ -1735,7 +1780,7 @@ function Me(e, t, r, s, a) {
1735
1780
  if (n)
1736
1781
  return a = a(e), n = s === "" ? "." + Gt(e, 0) : s, ls(a) ? (r = "", n != null && (r = n.replace(us, "$&/") + "/"), Me(a, t, r, "", function(u) {
1737
1782
  return u;
1738
- })) : a != null && (hr(a) && (a = qo(
1783
+ })) : a != null && (hr(a) && (a = Go(
1739
1784
  a,
1740
1785
  r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
1741
1786
  us,
@@ -1753,7 +1798,7 @@ function Me(e, t, r, s, a) {
1753
1798
  o,
1754
1799
  a
1755
1800
  );
1756
- else if (h = Go(e), typeof h == "function")
1801
+ else if (h = Wo(e), typeof h == "function")
1757
1802
  for (e = h.call(e), h = 0; !(s = e.next()).done; )
1758
1803
  s = s.value, o = c + Gt(s, h++), n += Me(
1759
1804
  s,
@@ -1765,7 +1810,7 @@ function Me(e, t, r, s, a) {
1765
1810
  else if (o === "object") {
1766
1811
  if (typeof e.then == "function")
1767
1812
  return Me(
1768
- Zo(e),
1813
+ Yo(e),
1769
1814
  t,
1770
1815
  r,
1771
1816
  s,
@@ -1784,7 +1829,7 @@ function dt(e, t, r) {
1784
1829
  return t.call(r, o, a++);
1785
1830
  }), s;
1786
1831
  }
1787
- function Ko(e) {
1832
+ function Zo(e) {
1788
1833
  if (e._status === -1) {
1789
1834
  var t = e._result;
1790
1835
  t = t(), t.then(
@@ -1847,12 +1892,12 @@ w.Children = {
1847
1892
  }
1848
1893
  };
1849
1894
  w.Component = Fe;
1850
- w.Fragment = No;
1851
- w.Profiler = Uo;
1895
+ w.Fragment = Do;
1896
+ w.Profiler = Ho;
1852
1897
  w.PureComponent = ir;
1853
- w.StrictMode = Ho;
1854
- w.Suspense = Bo;
1855
- w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = I;
1898
+ w.StrictMode = No;
1899
+ w.Suspense = Vo;
1900
+ w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
1856
1901
  w.act = function() {
1857
1902
  throw Error("act(...) is not supported in production builds of React.");
1858
1903
  };
@@ -1881,14 +1926,14 @@ w.cloneElement = function(e, t, r) {
1881
1926
  };
1882
1927
  w.createContext = function(e) {
1883
1928
  return e = {
1884
- $$typeof: jo,
1929
+ $$typeof: zo,
1885
1930
  _currentValue: e,
1886
1931
  _currentValue2: e,
1887
1932
  _threadCount: 0,
1888
1933
  Provider: null,
1889
1934
  Consumer: null
1890
1935
  }, e.Provider = e, e.Consumer = {
1891
- $$typeof: zo,
1936
+ $$typeof: Uo,
1892
1937
  _context: e
1893
1938
  }, e;
1894
1939
  };
@@ -1913,100 +1958,100 @@ w.createRef = function() {
1913
1958
  return { current: null };
1914
1959
  };
1915
1960
  w.forwardRef = function(e) {
1916
- return { $$typeof: Vo, render: e };
1961
+ return { $$typeof: jo, render: e };
1917
1962
  };
1918
1963
  w.isValidElement = hr;
1919
1964
  w.lazy = function(e) {
1920
1965
  return {
1921
1966
  $$typeof: Hs,
1922
1967
  _payload: { _status: -1, _result: e },
1923
- _init: Ko
1968
+ _init: Zo
1924
1969
  };
1925
1970
  };
1926
1971
  w.memo = function(e, t) {
1927
1972
  return {
1928
- $$typeof: Wo,
1973
+ $$typeof: Bo,
1929
1974
  type: e,
1930
1975
  compare: t === void 0 ? null : t
1931
1976
  };
1932
1977
  };
1933
1978
  w.startTransition = function(e) {
1934
- var t = I.T, r = {};
1935
- I.T = r;
1979
+ var t = L.T, r = {};
1980
+ L.T = r;
1936
1981
  try {
1937
- var s = e(), a = I.S;
1982
+ var s = e(), a = L.S;
1938
1983
  a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Qo, fs);
1939
1984
  } catch (o) {
1940
1985
  fs(o);
1941
1986
  } finally {
1942
- I.T = t;
1987
+ L.T = t;
1943
1988
  }
1944
1989
  };
1945
1990
  w.unstable_useCacheRefresh = function() {
1946
- return I.H.useCacheRefresh();
1991
+ return L.H.useCacheRefresh();
1947
1992
  };
1948
1993
  w.use = function(e) {
1949
- return I.H.use(e);
1994
+ return L.H.use(e);
1950
1995
  };
1951
1996
  w.useActionState = function(e, t, r) {
1952
- return I.H.useActionState(e, t, r);
1997
+ return L.H.useActionState(e, t, r);
1953
1998
  };
1954
1999
  w.useCallback = function(e, t) {
1955
- return I.H.useCallback(e, t);
2000
+ return L.H.useCallback(e, t);
1956
2001
  };
1957
2002
  w.useContext = function(e) {
1958
- return I.H.useContext(e);
2003
+ return L.H.useContext(e);
1959
2004
  };
1960
2005
  w.useDebugValue = function() {
1961
2006
  };
1962
2007
  w.useDeferredValue = function(e, t) {
1963
- return I.H.useDeferredValue(e, t);
2008
+ return L.H.useDeferredValue(e, t);
1964
2009
  };
1965
2010
  w.useEffect = function(e, t) {
1966
- return I.H.useEffect(e, t);
2011
+ return L.H.useEffect(e, t);
1967
2012
  };
1968
2013
  w.useId = function() {
1969
- return I.H.useId();
2014
+ return L.H.useId();
1970
2015
  };
1971
2016
  w.useImperativeHandle = function(e, t, r) {
1972
- return I.H.useImperativeHandle(e, t, r);
2017
+ return L.H.useImperativeHandle(e, t, r);
1973
2018
  };
1974
2019
  w.useInsertionEffect = function(e, t) {
1975
- return I.H.useInsertionEffect(e, t);
2020
+ return L.H.useInsertionEffect(e, t);
1976
2021
  };
1977
2022
  w.useLayoutEffect = function(e, t) {
1978
- return I.H.useLayoutEffect(e, t);
2023
+ return L.H.useLayoutEffect(e, t);
1979
2024
  };
1980
2025
  w.useMemo = function(e, t) {
1981
- return I.H.useMemo(e, t);
2026
+ return L.H.useMemo(e, t);
1982
2027
  };
1983
2028
  w.useOptimistic = function(e, t) {
1984
- return I.H.useOptimistic(e, t);
2029
+ return L.H.useOptimistic(e, t);
1985
2030
  };
1986
2031
  w.useReducer = function(e, t, r) {
1987
- return I.H.useReducer(e, t, r);
2032
+ return L.H.useReducer(e, t, r);
1988
2033
  };
1989
2034
  w.useRef = function(e) {
1990
- return I.H.useRef(e);
2035
+ return L.H.useRef(e);
1991
2036
  };
1992
2037
  w.useState = function(e) {
1993
- return I.H.useState(e);
2038
+ return L.H.useState(e);
1994
2039
  };
1995
2040
  w.useSyncExternalStore = function(e, t, r) {
1996
- return I.H.useSyncExternalStore(
2041
+ return L.H.useSyncExternalStore(
1997
2042
  e,
1998
2043
  t,
1999
2044
  r
2000
2045
  );
2001
2046
  };
2002
2047
  w.useTransition = function() {
2003
- return I.H.useTransition();
2048
+ return L.H.useTransition();
2004
2049
  };
2005
2050
  w.version = "19.0.0";
2006
2051
  Ns.exports = w;
2007
- var ds = Ns.exports, Xo = nr;
2008
- const Jo = (e) => e;
2009
- function Ws(e, t = Jo) {
2052
+ var ds = Ns.exports, Ko = nr;
2053
+ const Xo = (e) => e;
2054
+ function Ws(e, t = Xo) {
2010
2055
  const r = ds.useSyncExternalStore(
2011
2056
  e.subscribe,
2012
2057
  () => t(e.getState()),
@@ -2015,10 +2060,10 @@ function Ws(e, t = Jo) {
2015
2060
  return ds.useDebugValue(r), r;
2016
2061
  }
2017
2062
  const ps = (e) => {
2018
- const t = Xo.createStore(e), r = (s) => Ws(t, s);
2063
+ const t = Ko.createStore(e), r = (s) => Ws(t, s);
2019
2064
  return Object.assign(r, t), r;
2020
- }, ec = (e) => e ? ps(e) : ps;
2021
- or.create = ec;
2065
+ }, Jo = (e) => e ? ps(e) : ps;
2066
+ or.create = Jo;
2022
2067
  or.useStore = Ws;
2023
2068
  (function(e) {
2024
2069
  var t = nr, r = or;
@@ -2045,10 +2090,12 @@ const ms = {
2045
2090
  hotkeyModifier: "meta",
2046
2091
  logger: void 0,
2047
2092
  facetPathsForIndexFields: {},
2093
+ initialQuery: "",
2094
+ initialSearchClientResponseItems: [],
2048
2095
  isPopoverVisible: !1,
2049
2096
  isSearchInProgress: !1,
2050
- searchTerm: "",
2051
2097
  rangeValueForIndexFields: {},
2098
+ searchTerm: "",
2052
2099
  searchMode: "fuzzy",
2053
2100
  searchClientResponseItems: [],
2054
2101
  searchResponseTimeTaken: void 0,
@@ -2056,34 +2103,40 @@ const ms = {
2056
2103
  searchResultsCount: 0,
2057
2104
  searchResultsPerPage: 20,
2058
2105
  searchResultsPage: 1,
2059
- sortType: "asc"
2106
+ sortType: "asc",
2107
+ // Callbacks
2108
+ afterInit: () => {
2109
+ }
2060
2110
  }, $ = Ds.createStore((e, t) => {
2061
2111
  const r = {
2062
- addFacetPathsForIndexField: (a) => e((o) => ({
2112
+ set: (a) => (e(a), t()),
2113
+ addFacetPathsForIndexField: (a) => r.set((o) => ({
2063
2114
  facetPathsForIndexFields: {
2064
2115
  ...o.facetPathsForIndexFields,
2065
2116
  [a.fieldName]: a
2066
2117
  }
2067
2118
  })),
2068
- addRangeValueForIndexField: (a) => e((o) => ({
2119
+ addRangeValueForIndexField: (a) => r.set((o) => ({
2069
2120
  rangeValueForIndexFields: {
2070
2121
  ...o.rangeValueForIndexFields,
2071
2122
  [a.fieldName]: a
2072
2123
  }
2073
2124
  })),
2074
- getSearchcraftInstance: () => {
2125
+ getSearchcraftCore: () => {
2075
2126
  const { core: a } = t();
2076
2127
  return a;
2077
2128
  },
2078
- initialize: (a, o = !1) => {
2079
- const n = a, c = o ? new ao({ logLevel: xe.DEBUG }) : void 0;
2080
- e({
2081
- core: n,
2082
- logger: c,
2083
- searchResultsPerPage: n.config.searchResultsPerPage || 20
2129
+ init: (a, o = !1) => {
2130
+ const n = o ? new ao({ logLevel: he.DEBUG }) : void 0, c = r.set({
2131
+ core: a,
2132
+ logger: n,
2133
+ searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
2134
+ });
2135
+ a == null || a.subscribe("initialized", () => {
2136
+ c.afterInit && c.afterInit(c);
2084
2137
  });
2085
2138
  },
2086
- removeFacetPathsForIndexField: (a) => e((o) => {
2139
+ removeFacetPathsForIndexField: (a) => r.set((o) => {
2087
2140
  const n = o.facetPathsForIndexFields;
2088
2141
  return delete n[a], {
2089
2142
  facetPathsForIndexFields: {
@@ -2091,7 +2144,7 @@ const ms = {
2091
2144
  }
2092
2145
  };
2093
2146
  }),
2094
- removeRangeValueForIndexField: (a) => e((o) => {
2147
+ removeRangeValueForIndexField: (a) => r.set((o) => {
2095
2148
  const n = o.rangeValueForIndexFields;
2096
2149
  return delete n[a], {
2097
2150
  rangeValueForIndexFields: {
@@ -2100,17 +2153,17 @@ const ms = {
2100
2153
  };
2101
2154
  }),
2102
2155
  resetFacetPaths: () => {
2103
- e({
2156
+ r.set({
2104
2157
  facetPathsForIndexFields: {}
2105
2158
  });
2106
2159
  },
2107
2160
  search: async () => {
2108
- var c, h;
2161
+ var o, n;
2109
2162
  const a = t();
2110
- if ((c = a.logger) == null || c.log(xe.INFO, `Starting search with search term: "${a.searchTerm}"`), !a.core)
2163
+ if ((o = a.logger) == null || o.log(he.INFO, `Starting search with search term: "${a.searchTerm}"`), !a.core)
2111
2164
  throw new Error("Searchcraft instance is not initialized.");
2112
2165
  if (!a.searchTerm.trim()) {
2113
- (h = a.logger) == null || h.log(xe.INFO, "No search request was made: search term was empty."), e({
2166
+ (n = a.logger) == null || n.log(he.INFO, "No search request was made: search term was empty."), r.set({
2114
2167
  searchClientResponseItems: [],
2115
2168
  searchResultsCount: 0,
2116
2169
  searchResultsPage: 1,
@@ -2118,24 +2171,7 @@ const ms = {
2118
2171
  });
2119
2172
  return;
2120
2173
  }
2121
- e({ isSearchInProgress: !0 });
2122
- const o = (u, l) => {
2123
- var m, b;
2124
- const p = u.data.facets;
2125
- e((v) => ({
2126
- isSearchInProgress: !1,
2127
- searchClientResponseItems: l,
2128
- searchResponseTimeTaken: u.data.time_taken || 0,
2129
- searchResultsPage: (
2130
- // reset to first page when response count changes
2131
- u.data.count === v.searchResultsCount ? v.searchResultsPage : 1
2132
- ),
2133
- searchResultsCount: u.data.count || 0
2134
- })), p && e({ searchResponseFacetPrime: p }), (m = a.logger) == null || m.log(xe.DEBUG, `Search results: ${JSON.stringify(l)}`), (b = a.logger) == null || b.log(xe.DEBUG, `Facets from response: ${JSON.stringify(p)}`);
2135
- }, n = (u) => {
2136
- e({ adClientResponseItems: u });
2137
- };
2138
- a.core.getItems({
2174
+ r.set({ isSearchInProgress: !0 }), a.core.getResponseItems({
2139
2175
  searchTerm: a.searchTerm,
2140
2176
  mode: a.searchMode,
2141
2177
  sort: a.sortType,
@@ -2143,18 +2179,53 @@ const ms = {
2143
2179
  rangeValueForIndexFields: a.rangeValueForIndexFields,
2144
2180
  offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
2145
2181
  limit: a.searchResultsPerPage
2146
- }, o, n);
2182
+ }, r.setSearchClientResponseItemsFromResponse, r.setAdClientResponseItems);
2147
2183
  },
2148
- setPopoverVisibility: (a) => {
2149
- e({
2150
- isPopoverVisible: a
2151
- });
2184
+ setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
2185
+ setSearchClientResponseItemsFromResponse: (a, o) => {
2186
+ var i, p;
2187
+ const { facets: n, count: c = 0, time_taken: h = 0 } = a.data, u = r.set((g) => ({
2188
+ isSearchInProgress: !1,
2189
+ searchClientResponseItems: o,
2190
+ searchResponseTimeTaken: h,
2191
+ searchResultsPage: (
2192
+ // Reset to first page when response count changes
2193
+ c === g.searchResultsCount ? g.searchResultsPage : 1
2194
+ ),
2195
+ searchResultsCount: c,
2196
+ ...n && { searchResponseFacetPrime: n }
2197
+ }));
2198
+ (i = u.logger) == null || i.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = u.logger) == null || p.log(he.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
2199
+ },
2200
+ setInitialSearchClientResponseItemsFromResponse: (a, o) => {
2201
+ var u;
2202
+ const n = t(), { count: c = 0, time_taken: h = 0 } = a.data;
2203
+ r.set((i) => ({
2204
+ isSearchInProgress: !1,
2205
+ initialSearchClientResponseItems: o,
2206
+ searchResponseTimeTaken: h,
2207
+ searchResultsPage: (
2208
+ // Reset to first page when response count changes
2209
+ c === i.searchResultsCount ? i.searchResultsPage : 1
2210
+ ),
2211
+ searchResultsCount: c
2212
+ })), (u = n.logger) == null || u.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`);
2152
2213
  },
2153
- setSearchMode: (a) => e({ searchMode: a }),
2154
- setSortType: (a) => e({ sortType: a }),
2214
+ setInitialQuery: async (a) => {
2215
+ var n;
2216
+ const o = r.set({ initialQuery: a });
2217
+ if ((n = o.logger) == null || n.log(he.INFO, `Starting search with query: "${o.initialQuery}"`), !o.core)
2218
+ throw new Error("Searchcraft instance is not initialized.");
2219
+ await o.core.getResponseItems(a, r.setInitialSearchClientResponseItemsFromResponse, r.setAdClientResponseItems);
2220
+ },
2221
+ setPopoverVisibility: (a) => r.set({
2222
+ isPopoverVisible: a
2223
+ }),
2224
+ setSearchMode: (a) => r.set({ searchMode: a }),
2225
+ setSortType: (a) => r.set({ sortType: a }),
2155
2226
  setSearchTerm: (a) => {
2156
2227
  const { core: o } = t();
2157
- a.length === 0 && (o == null || o.handleInputCleared()), e({
2228
+ a.length === 0 && (o == null || o.handleInputCleared()), r.set({
2158
2229
  searchTerm: a,
2159
2230
  facetPathsForIndexFields: {},
2160
2231
  ...a.trim().length === 0 && {
@@ -2163,16 +2234,17 @@ const ms = {
2163
2234
  }
2164
2235
  });
2165
2236
  },
2166
- setSearchClientResponseItems: (a) => e({ searchClientResponseItems: a }),
2237
+ setSearchClientResponseItems: (a) => r.set({ searchClientResponseItems: a }),
2238
+ setSearchResultsCount: (a) => r.set({ searchResultsCount: a }),
2167
2239
  setSearchResultsPage: async (a) => {
2168
- e({ searchResultsPage: a }), await r.search();
2240
+ r.set({ searchResultsPage: a }), await r.search();
2169
2241
  },
2170
2242
  setSearchResultsPerPage: async (a) => {
2171
- e({ searchResultsPerPage: a }), await r.search();
2243
+ r.set({ searchResultsPerPage: a }), await r.search();
2172
2244
  },
2173
2245
  setHotKeyAndHotKeyModifier: (a, o) => {
2174
2246
  const { hotkey: n, hotkeyModifier: c } = ms;
2175
- e({
2247
+ r.set({
2176
2248
  hotkey: a || n,
2177
2249
  hotkeyModifier: o || c
2178
2250
  });
@@ -2183,12 +2255,12 @@ const ms = {
2183
2255
  ...r
2184
2256
  };
2185
2257
  });
2186
- var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Gs = { exports: {} };
2258
+ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Gs = { exports: {} };
2187
2259
  /*! @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 */
2188
2260
  (function(e, t) {
2189
2261
  (function(r, s) {
2190
2262
  e.exports = s();
2191
- })(tc, function() {
2263
+ })(ec, function() {
2192
2264
  const {
2193
2265
  entries: r,
2194
2266
  setPrototypeOf: s,
@@ -2201,75 +2273,75 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2201
2273
  seal: h,
2202
2274
  create: u
2203
2275
  } = Object, {
2204
- apply: l,
2276
+ apply: i,
2205
2277
  construct: p
2206
2278
  } = typeof Reflect < "u" && Reflect;
2207
2279
  c || (c = function(C) {
2208
2280
  return C;
2209
2281
  }), h || (h = function(C) {
2210
2282
  return C;
2211
- }), l || (l = function(C, P, R) {
2212
- return C.apply(P, R);
2283
+ }), i || (i = function(C, P, E) {
2284
+ return C.apply(P, E);
2213
2285
  }), p || (p = function(C, P) {
2214
2286
  return new C(...P);
2215
2287
  });
2216
- const m = G(Array.prototype.forEach), b = G(Array.prototype.lastIndexOf), v = G(Array.prototype.pop), T = G(Array.prototype.push), H = G(Array.prototype.splice), ee = G(String.prototype.toLowerCase), M = G(String.prototype.toString), De = G(String.prototype.match), Ne = G(String.prototype.replace), Ea = G(String.prototype.indexOf), Ra = G(String.prototype.trim), ae = G(Object.prototype.hasOwnProperty), W = G(RegExp.prototype.test), He = Ta(TypeError);
2217
- function G(E) {
2288
+ const g = q(Array.prototype.forEach), b = q(Array.prototype.lastIndexOf), v = q(Array.prototype.pop), T = q(Array.prototype.push), _ = q(Array.prototype.splice), N = q(String.prototype.toLowerCase), I = q(String.prototype.toString), De = q(String.prototype.match), Ne = q(String.prototype.replace), Ra = q(String.prototype.indexOf), Ea = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), He = Ta(TypeError);
2289
+ function q(R) {
2218
2290
  return function(C) {
2219
- for (var P = arguments.length, R = new Array(P > 1 ? P - 1 : 0), j = 1; j < P; j++)
2220
- R[j - 1] = arguments[j];
2221
- return l(E, C, R);
2291
+ for (var P = arguments.length, E = new Array(P > 1 ? P - 1 : 0), V = 1; V < P; V++)
2292
+ E[V - 1] = arguments[V];
2293
+ return i(R, C, E);
2222
2294
  };
2223
2295
  }
2224
- function Ta(E) {
2296
+ function Ta(R) {
2225
2297
  return function() {
2226
- for (var C = arguments.length, P = new Array(C), R = 0; R < C; R++)
2227
- P[R] = arguments[R];
2228
- return p(E, P);
2298
+ for (var C = arguments.length, P = new Array(C), E = 0; E < C; E++)
2299
+ P[E] = arguments[E];
2300
+ return p(R, P);
2229
2301
  };
2230
2302
  }
2231
- function x(E, C) {
2232
- let P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ee;
2233
- s && s(E, null);
2234
- let R = C.length;
2235
- for (; R--; ) {
2236
- let j = C[R];
2237
- if (typeof j == "string") {
2238
- const ie = P(j);
2239
- ie !== j && (a(C) || (C[R] = ie), j = ie);
2303
+ function x(R, C) {
2304
+ let P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : N;
2305
+ s && s(R, null);
2306
+ let E = C.length;
2307
+ for (; E--; ) {
2308
+ let V = C[E];
2309
+ if (typeof V == "string") {
2310
+ const ie = P(V);
2311
+ ie !== V && (a(C) || (C[E] = ie), V = ie);
2240
2312
  }
2241
- E[j] = !0;
2313
+ R[V] = !0;
2242
2314
  }
2243
- return E;
2315
+ return R;
2244
2316
  }
2245
- function Pa(E) {
2246
- for (let C = 0; C < E.length; C++)
2247
- ae(E, C) || (E[C] = null);
2248
- return E;
2317
+ function Pa(R) {
2318
+ for (let C = 0; C < R.length; C++)
2319
+ ae(R, C) || (R[C] = null);
2320
+ return R;
2249
2321
  }
2250
- function Se(E) {
2322
+ function ke(R) {
2251
2323
  const C = u(null);
2252
- for (const [P, R] of r(E))
2253
- ae(E, P) && (Array.isArray(R) ? C[P] = Pa(R) : R && typeof R == "object" && R.constructor === Object ? C[P] = Se(R) : C[P] = R);
2324
+ for (const [P, E] of r(R))
2325
+ ae(R, P) && (Array.isArray(E) ? C[P] = Pa(E) : E && typeof E == "object" && E.constructor === Object ? C[P] = ke(E) : C[P] = E);
2254
2326
  return C;
2255
2327
  }
2256
- function Ue(E, C) {
2257
- for (; E !== null; ) {
2258
- const R = n(E, C);
2259
- if (R) {
2260
- if (R.get)
2261
- return G(R.get);
2262
- if (typeof R.value == "function")
2263
- return G(R.value);
2328
+ function Ue(R, C) {
2329
+ for (; R !== null; ) {
2330
+ const E = n(R, C);
2331
+ if (E) {
2332
+ if (E.get)
2333
+ return q(E.get);
2334
+ if (typeof E.value == "function")
2335
+ return q(E.value);
2264
2336
  }
2265
- E = o(E);
2337
+ R = o(R);
2266
2338
  }
2267
2339
  function P() {
2268
2340
  return null;
2269
2341
  }
2270
2342
  return P;
2271
2343
  }
2272
- const pr = 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"]), Rt = 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"]), $a = 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"]), _a = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mr = c(["#text"]), gr = 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"]), Pt = 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"]), vr = 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"]), et = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Aa = h(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ia = h(/<%[\w\W]*|[\w\W]*%>/gm), Ma = h(/\$\{[\w\W]*/gm), La = h(/^data-[\-\w.\u00B7-\uFFFF]+$/), Oa = h(/^aria-[\-\w]+$/), br = h(
2344
+ const pr = 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"]), Et = 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"]), $a = 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"]), _a = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mr = c(["#text"]), gr = 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"]), Pt = 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"]), vr = 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"]), et = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ia = h(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Aa = h(/<%[\w\W]*|[\w\W]*%>/gm), Ma = h(/\$\{[\w\W]*/gm), La = h(/^data-[\-\w.\u00B7-\uFFFF]+$/), Oa = h(/^aria-[\-\w]+$/), br = h(
2273
2345
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2274
2346
  // eslint-disable-line no-useless-escape
2275
2347
  ), Fa = h(/^(?:\w+script|data):/i), Da = h(
@@ -2283,10 +2355,10 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2283
2355
  CUSTOM_ELEMENT: Na,
2284
2356
  DATA_ATTR: La,
2285
2357
  DOCTYPE_NAME: yr,
2286
- ERB_EXPR: Ia,
2358
+ ERB_EXPR: Aa,
2287
2359
  IS_ALLOWED_URI: br,
2288
2360
  IS_SCRIPT_OR_DATA: Fa,
2289
- MUSTACHE_EXPR: Aa,
2361
+ MUSTACHE_EXPR: Ia,
2290
2362
  TMPLIT_EXPR: Ma
2291
2363
  });
2292
2364
  const ze = {
@@ -2301,17 +2373,17 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2301
2373
  }, Ua = function(C, P) {
2302
2374
  if (typeof C != "object" || typeof C.createPolicy != "function")
2303
2375
  return null;
2304
- let R = null;
2305
- const j = "data-tt-policy-suffix";
2306
- P && P.hasAttribute(j) && (R = P.getAttribute(j));
2307
- const ie = "dompurify" + (R ? "#" + R : "");
2376
+ let E = null;
2377
+ const V = "data-tt-policy-suffix";
2378
+ P && P.hasAttribute(V) && (E = P.getAttribute(V));
2379
+ const ie = "dompurify" + (E ? "#" + E : "");
2308
2380
  try {
2309
2381
  return C.createPolicy(ie, {
2310
- createHTML(Ee) {
2311
- return Ee;
2382
+ createHTML(Re) {
2383
+ return Re;
2312
2384
  },
2313
- createScriptURL(Ee) {
2314
- return Ee;
2385
+ createScriptURL(Re) {
2386
+ return Re;
2315
2387
  }
2316
2388
  });
2317
2389
  } catch {
@@ -2331,42 +2403,42 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2331
2403
  };
2332
2404
  };
2333
2405
  function kr() {
2334
- let E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ha();
2406
+ let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ha();
2335
2407
  const C = (S) => kr(S);
2336
- if (C.version = "3.2.4", C.removed = [], !E || !E.document || E.document.nodeType !== ze.document || !E.Element)
2408
+ if (C.version = "3.2.4", C.removed = [], !R || !R.document || R.document.nodeType !== ze.document || !R.Element)
2337
2409
  return C.isSupported = !1, C;
2338
2410
  let {
2339
2411
  document: P
2340
- } = E;
2341
- const R = P, j = R.currentScript, {
2412
+ } = R;
2413
+ const E = P, V = E.currentScript, {
2342
2414
  DocumentFragment: ie,
2343
- HTMLTemplateElement: Ee,
2415
+ HTMLTemplateElement: Re,
2344
2416
  Node: $t,
2345
2417
  Element: wr,
2346
2418
  NodeFilter: je,
2347
- NamedNodeMap: ja = E.NamedNodeMap || E.MozNamedAttrMap,
2419
+ NamedNodeMap: ja = R.NamedNodeMap || R.MozNamedAttrMap,
2348
2420
  HTMLFormElement: Va,
2349
2421
  DOMParser: Ba,
2350
2422
  trustedTypes: tt
2351
- } = E, Ve = wr.prototype, Wa = Ue(Ve, "cloneNode"), Ga = Ue(Ve, "remove"), qa = Ue(Ve, "nextSibling"), Ya = Ue(Ve, "childNodes"), rt = Ue(Ve, "parentNode");
2352
- if (typeof Ee == "function") {
2423
+ } = R, Ve = wr.prototype, Wa = Ue(Ve, "cloneNode"), Ga = Ue(Ve, "remove"), qa = Ue(Ve, "nextSibling"), Ya = Ue(Ve, "childNodes"), rt = Ue(Ve, "parentNode");
2424
+ if (typeof Re == "function") {
2353
2425
  const S = P.createElement("template");
2354
2426
  S.content && S.content.ownerDocument && (P = S.content.ownerDocument);
2355
2427
  }
2356
- let q, Be = "";
2428
+ let Y, Be = "";
2357
2429
  const {
2358
2430
  implementation: _t,
2359
2431
  createNodeIterator: Za,
2360
- createDocumentFragment: Ka,
2361
- getElementsByTagName: Qa
2432
+ createDocumentFragment: Qa,
2433
+ getElementsByTagName: Ka
2362
2434
  } = P, {
2363
2435
  importNode: Xa
2364
- } = R;
2365
- let Y = Sr();
2436
+ } = E;
2437
+ let Z = Sr();
2366
2438
  C.isSupported = typeof r == "function" && typeof rt == "function" && _t && _t.createHTMLDocument !== void 0;
2367
2439
  const {
2368
- MUSTACHE_EXPR: At,
2369
- ERB_EXPR: It,
2440
+ MUSTACHE_EXPR: It,
2441
+ ERB_EXPR: At,
2370
2442
  TMPLIT_EXPR: Mt,
2371
2443
  DATA_ATTR: Ja,
2372
2444
  ARIA_ATTR: en,
@@ -2375,12 +2447,12 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2375
2447
  CUSTOM_ELEMENT: rn
2376
2448
  } = Cr;
2377
2449
  let {
2378
- IS_ALLOWED_URI: Er
2379
- } = Cr, D = null;
2380
- const Rr = x({}, [...pr, ...Et, ...Rt, ...Tt, ...mr]);
2381
- let U = null;
2450
+ IS_ALLOWED_URI: Rr
2451
+ } = Cr, H = null;
2452
+ const Er = x({}, [...pr, ...Rt, ...Et, ...Tt, ...mr]);
2453
+ let z = null;
2382
2454
  const Tr = x({}, [...gr, ...Pt, ...vr, ...et]);
2383
- let L = Object.seal(u(null, {
2455
+ let O = Object.seal(u(null, {
2384
2456
  tagNameCheck: {
2385
2457
  writable: !0,
2386
2458
  configurable: !1,
@@ -2399,7 +2471,7 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2399
2471
  enumerable: !0,
2400
2472
  value: !1
2401
2473
  }
2402
- })), We = null, Lt = null, Pr = !0, Ot = !0, $r = !1, _r = !0, Re = !1, Ft = !0, ke = !1, Dt = !1, Nt = !1, Te = !1, st = !1, at = !1, Ar = !0, Ir = !1;
2474
+ })), We = null, Lt = null, Pr = !0, Ot = !0, $r = !1, _r = !0, Ee = !1, Ft = !0, we = !1, Dt = !1, Nt = !1, Te = !1, st = !1, at = !1, Ir = !0, Ar = !1;
2403
2475
  const sn = "user-content-";
2404
2476
  let Ht = !0, Ge = !1, Pe = {}, $e = null;
2405
2477
  const Mr = 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"]);
@@ -2408,36 +2480,36 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2408
2480
  let Ut = null;
2409
2481
  const Fr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), nt = "http://www.w3.org/1998/Math/MathML", ot = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
2410
2482
  let _e = le, zt = !1, jt = null;
2411
- const an = x({}, [nt, ot, le], M);
2483
+ const an = x({}, [nt, ot, le], I);
2412
2484
  let ct = x({}, ["mi", "mo", "mn", "ms", "mtext"]), it = x({}, ["annotation-xml"]);
2413
2485
  const nn = x({}, ["title", "style", "font", "a", "script"]);
2414
2486
  let qe = null;
2415
2487
  const on = ["application/xhtml+xml", "text/html"], cn = "text/html";
2416
- let N = null, Ae = null;
2488
+ let U = null, Ie = null;
2417
2489
  const ln = P.createElement("form"), Dr = function(f) {
2418
2490
  return f instanceof RegExp || f instanceof Function;
2419
2491
  }, Vt = function() {
2420
2492
  let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2421
- if (!(Ae && Ae === f)) {
2422
- if ((!f || typeof f != "object") && (f = {}), f = Se(f), qe = // eslint-disable-next-line unicorn/prefer-includes
2423
- on.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? cn : f.PARSER_MEDIA_TYPE, N = qe === "application/xhtml+xml" ? M : ee, D = ae(f, "ALLOWED_TAGS") ? x({}, f.ALLOWED_TAGS, N) : Rr, U = ae(f, "ALLOWED_ATTR") ? x({}, f.ALLOWED_ATTR, N) : Tr, jt = ae(f, "ALLOWED_NAMESPACES") ? x({}, f.ALLOWED_NAMESPACES, M) : an, Ut = ae(f, "ADD_URI_SAFE_ATTR") ? x(Se(Fr), f.ADD_URI_SAFE_ATTR, N) : Fr, Lr = ae(f, "ADD_DATA_URI_TAGS") ? x(Se(Or), f.ADD_DATA_URI_TAGS, N) : Or, $e = ae(f, "FORBID_CONTENTS") ? x({}, f.FORBID_CONTENTS, N) : Mr, We = ae(f, "FORBID_TAGS") ? x({}, f.FORBID_TAGS, N) : {}, Lt = ae(f, "FORBID_ATTR") ? x({}, f.FORBID_ATTR, N) : {}, Pe = ae(f, "USE_PROFILES") ? f.USE_PROFILES : !1, Pr = f.ALLOW_ARIA_ATTR !== !1, Ot = f.ALLOW_DATA_ATTR !== !1, $r = f.ALLOW_UNKNOWN_PROTOCOLS || !1, _r = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Re = f.SAFE_FOR_TEMPLATES || !1, Ft = f.SAFE_FOR_XML !== !1, ke = f.WHOLE_DOCUMENT || !1, Te = f.RETURN_DOM || !1, st = f.RETURN_DOM_FRAGMENT || !1, at = f.RETURN_TRUSTED_TYPE || !1, Nt = f.FORCE_BODY || !1, Ar = f.SANITIZE_DOM !== !1, Ir = f.SANITIZE_NAMED_PROPS || !1, Ht = f.KEEP_CONTENT !== !1, Ge = f.IN_PLACE || !1, Er = f.ALLOWED_URI_REGEXP || br, _e = f.NAMESPACE || le, ct = f.MATHML_TEXT_INTEGRATION_POINTS || ct, it = f.HTML_INTEGRATION_POINTS || it, L = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Dr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (L.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Dr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (L.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Re && (Ot = !1), st && (Te = !0), Pe && (D = x({}, mr), U = [], Pe.html === !0 && (x(D, pr), x(U, gr)), Pe.svg === !0 && (x(D, Et), x(U, Pt), x(U, et)), Pe.svgFilters === !0 && (x(D, Rt), x(U, Pt), x(U, et)), Pe.mathMl === !0 && (x(D, Tt), x(U, vr), x(U, et))), f.ADD_TAGS && (D === Rr && (D = Se(D)), x(D, f.ADD_TAGS, N)), f.ADD_ATTR && (U === Tr && (U = Se(U)), x(U, f.ADD_ATTR, N)), f.ADD_URI_SAFE_ATTR && x(Ut, f.ADD_URI_SAFE_ATTR, N), f.FORBID_CONTENTS && ($e === Mr && ($e = Se($e)), x($e, f.FORBID_CONTENTS, N)), Ht && (D["#text"] = !0), ke && x(D, ["html", "head", "body"]), D.table && (x(D, ["tbody"]), delete We.tbody), f.TRUSTED_TYPES_POLICY) {
2493
+ if (!(Ie && Ie === f)) {
2494
+ if ((!f || typeof f != "object") && (f = {}), f = ke(f), qe = // eslint-disable-next-line unicorn/prefer-includes
2495
+ on.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? cn : f.PARSER_MEDIA_TYPE, U = qe === "application/xhtml+xml" ? I : N, H = ae(f, "ALLOWED_TAGS") ? x({}, f.ALLOWED_TAGS, U) : Er, z = ae(f, "ALLOWED_ATTR") ? x({}, f.ALLOWED_ATTR, U) : Tr, jt = ae(f, "ALLOWED_NAMESPACES") ? x({}, f.ALLOWED_NAMESPACES, I) : an, Ut = ae(f, "ADD_URI_SAFE_ATTR") ? x(ke(Fr), f.ADD_URI_SAFE_ATTR, U) : Fr, Lr = ae(f, "ADD_DATA_URI_TAGS") ? x(ke(Or), f.ADD_DATA_URI_TAGS, U) : Or, $e = ae(f, "FORBID_CONTENTS") ? x({}, f.FORBID_CONTENTS, U) : Mr, We = ae(f, "FORBID_TAGS") ? x({}, f.FORBID_TAGS, U) : {}, Lt = ae(f, "FORBID_ATTR") ? x({}, f.FORBID_ATTR, U) : {}, Pe = ae(f, "USE_PROFILES") ? f.USE_PROFILES : !1, Pr = f.ALLOW_ARIA_ATTR !== !1, Ot = f.ALLOW_DATA_ATTR !== !1, $r = f.ALLOW_UNKNOWN_PROTOCOLS || !1, _r = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = f.SAFE_FOR_TEMPLATES || !1, Ft = f.SAFE_FOR_XML !== !1, we = f.WHOLE_DOCUMENT || !1, Te = f.RETURN_DOM || !1, st = f.RETURN_DOM_FRAGMENT || !1, at = f.RETURN_TRUSTED_TYPE || !1, Nt = f.FORCE_BODY || !1, Ir = f.SANITIZE_DOM !== !1, Ar = f.SANITIZE_NAMED_PROPS || !1, Ht = f.KEEP_CONTENT !== !1, Ge = f.IN_PLACE || !1, Rr = f.ALLOWED_URI_REGEXP || br, _e = f.NAMESPACE || le, ct = f.MATHML_TEXT_INTEGRATION_POINTS || ct, it = f.HTML_INTEGRATION_POINTS || it, O = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Dr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Dr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ee && (Ot = !1), st && (Te = !0), Pe && (H = x({}, mr), z = [], Pe.html === !0 && (x(H, pr), x(z, gr)), Pe.svg === !0 && (x(H, Rt), x(z, Pt), x(z, et)), Pe.svgFilters === !0 && (x(H, Et), x(z, Pt), x(z, et)), Pe.mathMl === !0 && (x(H, Tt), x(z, vr), x(z, et))), f.ADD_TAGS && (H === Er && (H = ke(H)), x(H, f.ADD_TAGS, U)), f.ADD_ATTR && (z === Tr && (z = ke(z)), x(z, f.ADD_ATTR, U)), f.ADD_URI_SAFE_ATTR && x(Ut, f.ADD_URI_SAFE_ATTR, U), f.FORBID_CONTENTS && ($e === Mr && ($e = ke($e)), x($e, f.FORBID_CONTENTS, U)), Ht && (H["#text"] = !0), we && x(H, ["html", "head", "body"]), H.table && (x(H, ["tbody"]), delete We.tbody), f.TRUSTED_TYPES_POLICY) {
2424
2496
  if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
2425
2497
  throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2426
2498
  if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
2427
2499
  throw He('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2428
- q = f.TRUSTED_TYPES_POLICY, Be = q.createHTML("");
2500
+ Y = f.TRUSTED_TYPES_POLICY, Be = Y.createHTML("");
2429
2501
  } else
2430
- q === void 0 && (q = Ua(tt, j)), q !== null && typeof Be == "string" && (Be = q.createHTML(""));
2431
- c && c(f), Ae = f;
2502
+ Y === void 0 && (Y = Ua(tt, V)), Y !== null && typeof Be == "string" && (Be = Y.createHTML(""));
2503
+ c && c(f), Ie = f;
2432
2504
  }
2433
- }, Nr = x({}, [...Et, ...Rt, ...$a]), Hr = x({}, [...Tt, ..._a]), un = function(f) {
2434
- let g = rt(f);
2435
- (!g || !g.tagName) && (g = {
2505
+ }, Nr = x({}, [...Rt, ...Et, ...$a]), Hr = x({}, [...Tt, ..._a]), un = function(f) {
2506
+ let m = rt(f);
2507
+ (!m || !m.tagName) && (m = {
2436
2508
  namespaceURI: _e,
2437
2509
  tagName: "template"
2438
2510
  });
2439
- const y = ee(f.tagName), _ = ee(g.tagName);
2440
- return jt[f.namespaceURI] ? f.namespaceURI === ot ? g.namespaceURI === le ? y === "svg" : g.namespaceURI === nt ? y === "svg" && (_ === "annotation-xml" || ct[_]) : !!Nr[y] : f.namespaceURI === nt ? g.namespaceURI === le ? y === "math" : g.namespaceURI === ot ? y === "math" && it[_] : !!Hr[y] : f.namespaceURI === le ? g.namespaceURI === ot && !it[_] || g.namespaceURI === nt && !ct[_] ? !1 : !Hr[y] && (nn[y] || !Nr[y]) : !!(qe === "application/xhtml+xml" && jt[f.namespaceURI]) : !1;
2511
+ const y = N(f.tagName), M = N(m.tagName);
2512
+ return jt[f.namespaceURI] ? f.namespaceURI === ot ? m.namespaceURI === le ? y === "svg" : m.namespaceURI === nt ? y === "svg" && (M === "annotation-xml" || ct[M]) : !!Nr[y] : f.namespaceURI === nt ? m.namespaceURI === le ? y === "math" : m.namespaceURI === ot ? y === "math" && it[M] : !!Hr[y] : f.namespaceURI === le ? m.namespaceURI === ot && !it[M] || m.namespaceURI === nt && !ct[M] ? !1 : !Hr[y] && (nn[y] || !Nr[y]) : !!(qe === "application/xhtml+xml" && jt[f.namespaceURI]) : !1;
2441
2513
  }, oe = function(f) {
2442
2514
  T(C.removed, {
2443
2515
  element: f
@@ -2447,53 +2519,53 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2447
2519
  } catch {
2448
2520
  Ga(f);
2449
2521
  }
2450
- }, lt = function(f, g) {
2522
+ }, lt = function(f, m) {
2451
2523
  try {
2452
2524
  T(C.removed, {
2453
- attribute: g.getAttributeNode(f),
2454
- from: g
2525
+ attribute: m.getAttributeNode(f),
2526
+ from: m
2455
2527
  });
2456
2528
  } catch {
2457
2529
  T(C.removed, {
2458
2530
  attribute: null,
2459
- from: g
2531
+ from: m
2460
2532
  });
2461
2533
  }
2462
- if (g.removeAttribute(f), f === "is")
2534
+ if (m.removeAttribute(f), f === "is")
2463
2535
  if (Te || st)
2464
2536
  try {
2465
- oe(g);
2537
+ oe(m);
2466
2538
  } catch {
2467
2539
  }
2468
2540
  else
2469
2541
  try {
2470
- g.setAttribute(f, "");
2542
+ m.setAttribute(f, "");
2471
2543
  } catch {
2472
2544
  }
2473
2545
  }, Ur = function(f) {
2474
- let g = null, y = null;
2546
+ let m = null, y = null;
2475
2547
  if (Nt)
2476
2548
  f = "<remove></remove>" + f;
2477
2549
  else {
2478
- const z = De(f, /^[\r\n\t ]+/);
2479
- y = z && z[0];
2550
+ const j = De(f, /^[\r\n\t ]+/);
2551
+ y = j && j[0];
2480
2552
  }
2481
2553
  qe === "application/xhtml+xml" && _e === le && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
2482
- const _ = q ? q.createHTML(f) : f;
2554
+ const M = Y ? Y.createHTML(f) : f;
2483
2555
  if (_e === le)
2484
2556
  try {
2485
- g = new Ba().parseFromString(_, qe);
2557
+ m = new Ba().parseFromString(M, qe);
2486
2558
  } catch {
2487
2559
  }
2488
- if (!g || !g.documentElement) {
2489
- g = _t.createDocument(_e, "template", null);
2560
+ if (!m || !m.documentElement) {
2561
+ m = _t.createDocument(_e, "template", null);
2490
2562
  try {
2491
- g.documentElement.innerHTML = zt ? Be : _;
2563
+ m.documentElement.innerHTML = zt ? Be : M;
2492
2564
  } catch {
2493
2565
  }
2494
2566
  }
2495
- const V = g.body || g.documentElement;
2496
- return f && y && V.insertBefore(P.createTextNode(y), V.childNodes[0] || null), _e === le ? Qa.call(g, ke ? "html" : "body")[0] : ke ? g.documentElement : V;
2567
+ const B = m.body || m.documentElement;
2568
+ return f && y && B.insertBefore(P.createTextNode(y), B.childNodes[0] || null), _e === le ? Ka.call(m, we ? "html" : "body")[0] : we ? m.documentElement : B;
2497
2569
  }, zr = function(f) {
2498
2570
  return Za.call(
2499
2571
  f.ownerDocument || f,
@@ -2507,59 +2579,59 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2507
2579
  }, jr = function(f) {
2508
2580
  return typeof $t == "function" && f instanceof $t;
2509
2581
  };
2510
- function ue(S, f, g) {
2511
- m(S, (y) => {
2512
- y.call(C, f, g, Ae);
2582
+ function ue(S, f, m) {
2583
+ g(S, (y) => {
2584
+ y.call(C, f, m, Ie);
2513
2585
  });
2514
2586
  }
2515
2587
  const Vr = function(f) {
2516
- let g = null;
2517
- if (ue(Y.beforeSanitizeElements, f, null), Bt(f))
2588
+ let m = null;
2589
+ if (ue(Z.beforeSanitizeElements, f, null), Bt(f))
2518
2590
  return oe(f), !0;
2519
- const y = N(f.nodeName);
2520
- if (ue(Y.uponSanitizeElement, f, {
2591
+ const y = U(f.nodeName);
2592
+ if (ue(Z.uponSanitizeElement, f, {
2521
2593
  tagName: y,
2522
- allowedTags: D
2523
- }), f.hasChildNodes() && !jr(f.firstElementChild) && W(/<[/\w]/g, f.innerHTML) && W(/<[/\w]/g, f.textContent) || f.nodeType === ze.progressingInstruction || Ft && f.nodeType === ze.comment && W(/<[/\w]/g, f.data))
2594
+ allowedTags: H
2595
+ }), f.hasChildNodes() && !jr(f.firstElementChild) && G(/<[/\w]/g, f.innerHTML) && G(/<[/\w]/g, f.textContent) || f.nodeType === ze.progressingInstruction || Ft && f.nodeType === ze.comment && G(/<[/\w]/g, f.data))
2524
2596
  return oe(f), !0;
2525
- if (!D[y] || We[y]) {
2526
- if (!We[y] && Wr(y) && (L.tagNameCheck instanceof RegExp && W(L.tagNameCheck, y) || L.tagNameCheck instanceof Function && L.tagNameCheck(y)))
2597
+ if (!H[y] || We[y]) {
2598
+ if (!We[y] && Wr(y) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
2527
2599
  return !1;
2528
2600
  if (Ht && !$e[y]) {
2529
- const _ = rt(f) || f.parentNode, V = Ya(f) || f.childNodes;
2530
- if (V && _) {
2531
- const z = V.length;
2532
- for (let X = z - 1; X >= 0; --X) {
2533
- const ce = Wa(V[X], !0);
2534
- ce.__removalCount = (f.__removalCount || 0) + 1, _.insertBefore(ce, qa(f));
2601
+ const M = rt(f) || f.parentNode, B = Ya(f) || f.childNodes;
2602
+ if (B && M) {
2603
+ const j = B.length;
2604
+ for (let J = j - 1; J >= 0; --J) {
2605
+ const ce = Wa(B[J], !0);
2606
+ ce.__removalCount = (f.__removalCount || 0) + 1, M.insertBefore(ce, qa(f));
2535
2607
  }
2536
2608
  }
2537
2609
  }
2538
2610
  return oe(f), !0;
2539
2611
  }
2540
- return f instanceof wr && !un(f) || (y === "noscript" || y === "noembed" || y === "noframes") && W(/<\/no(script|embed|frames)/i, f.innerHTML) ? (oe(f), !0) : (Re && f.nodeType === ze.text && (g = f.textContent, m([At, It, Mt], (_) => {
2541
- g = Ne(g, _, " ");
2542
- }), f.textContent !== g && (T(C.removed, {
2612
+ return f instanceof wr && !un(f) || (y === "noscript" || y === "noembed" || y === "noframes") && G(/<\/no(script|embed|frames)/i, f.innerHTML) ? (oe(f), !0) : (Ee && f.nodeType === ze.text && (m = f.textContent, g([It, At, Mt], (M) => {
2613
+ m = Ne(m, M, " ");
2614
+ }), f.textContent !== m && (T(C.removed, {
2543
2615
  element: f.cloneNode()
2544
- }), f.textContent = g)), ue(Y.afterSanitizeElements, f, null), !1);
2545
- }, Br = function(f, g, y) {
2546
- if (Ar && (g === "id" || g === "name") && (y in P || y in ln))
2616
+ }), f.textContent = m)), ue(Z.afterSanitizeElements, f, null), !1);
2617
+ }, Br = function(f, m, y) {
2618
+ if (Ir && (m === "id" || m === "name") && (y in P || y in ln))
2547
2619
  return !1;
2548
- if (!(Ot && !Lt[g] && W(Ja, g))) {
2549
- if (!(Pr && W(en, g))) {
2550
- if (!U[g] || Lt[g]) {
2620
+ if (!(Ot && !Lt[m] && G(Ja, m))) {
2621
+ if (!(Pr && G(en, m))) {
2622
+ if (!z[m] || Lt[m]) {
2551
2623
  if (
2552
2624
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2553
2625
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2554
2626
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2555
- !(Wr(f) && (L.tagNameCheck instanceof RegExp && W(L.tagNameCheck, f) || L.tagNameCheck instanceof Function && L.tagNameCheck(f)) && (L.attributeNameCheck instanceof RegExp && W(L.attributeNameCheck, g) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(g)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2627
+ !(Wr(f) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, f) || O.tagNameCheck instanceof Function && O.tagNameCheck(f)) && (O.attributeNameCheck instanceof RegExp && G(O.attributeNameCheck, m) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2556
2628
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2557
- g === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && W(L.tagNameCheck, y) || L.tagNameCheck instanceof Function && L.tagNameCheck(y)))
2629
+ m === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
2558
2630
  ) return !1;
2559
- } else if (!Ut[g]) {
2560
- if (!W(Er, Ne(y, xr, ""))) {
2561
- if (!((g === "src" || g === "xlink:href" || g === "href") && f !== "script" && Ea(y, "data:") === 0 && Lr[f])) {
2562
- if (!($r && !W(tn, Ne(y, xr, "")))) {
2631
+ } else if (!Ut[m]) {
2632
+ if (!G(Rr, Ne(y, xr, ""))) {
2633
+ if (!((m === "src" || m === "xlink:href" || m === "href") && f !== "script" && Ra(y, "data:") === 0 && Lr[f])) {
2634
+ if (!($r && !G(tn, Ne(y, xr, "")))) {
2563
2635
  if (y)
2564
2636
  return !1;
2565
2637
  }
@@ -2572,69 +2644,69 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2572
2644
  }, Wr = function(f) {
2573
2645
  return f !== "annotation-xml" && De(f, rn);
2574
2646
  }, Gr = function(f) {
2575
- ue(Y.beforeSanitizeAttributes, f, null);
2647
+ ue(Z.beforeSanitizeAttributes, f, null);
2576
2648
  const {
2577
- attributes: g
2649
+ attributes: m
2578
2650
  } = f;
2579
- if (!g || Bt(f))
2651
+ if (!m || Bt(f))
2580
2652
  return;
2581
2653
  const y = {
2582
2654
  attrName: "",
2583
2655
  attrValue: "",
2584
2656
  keepAttr: !0,
2585
- allowedAttributes: U,
2657
+ allowedAttributes: z,
2586
2658
  forceKeepAttr: void 0
2587
2659
  };
2588
- let _ = g.length;
2589
- for (; _--; ) {
2590
- const V = g[_], {
2591
- name: z,
2592
- namespaceURI: X,
2660
+ let M = m.length;
2661
+ for (; M--; ) {
2662
+ const B = m[M], {
2663
+ name: j,
2664
+ namespaceURI: J,
2593
2665
  value: ce
2594
- } = V, Ye = N(z);
2595
- let Z = z === "value" ? ce : Ra(ce);
2596
- if (y.attrName = Ye, y.attrValue = Z, y.keepAttr = !0, y.forceKeepAttr = void 0, ue(Y.uponSanitizeAttribute, f, y), Z = y.attrValue, Ir && (Ye === "id" || Ye === "name") && (lt(z, f), Z = sn + Z), Ft && W(/((--!?|])>)|<\/(style|title)/i, Z)) {
2597
- lt(z, f);
2666
+ } = B, Ye = U(j);
2667
+ let Q = j === "value" ? ce : Ea(ce);
2668
+ if (y.attrName = Ye, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, f, y), Q = y.attrValue, Ar && (Ye === "id" || Ye === "name") && (lt(j, f), Q = sn + Q), Ft && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
2669
+ lt(j, f);
2598
2670
  continue;
2599
2671
  }
2600
- if (y.forceKeepAttr || (lt(z, f), !y.keepAttr))
2672
+ if (y.forceKeepAttr || (lt(j, f), !y.keepAttr))
2601
2673
  continue;
2602
- if (!_r && W(/\/>/i, Z)) {
2603
- lt(z, f);
2674
+ if (!_r && G(/\/>/i, Q)) {
2675
+ lt(j, f);
2604
2676
  continue;
2605
2677
  }
2606
- Re && m([At, It, Mt], (Yr) => {
2607
- Z = Ne(Z, Yr, " ");
2678
+ Ee && g([It, At, Mt], (Yr) => {
2679
+ Q = Ne(Q, Yr, " ");
2608
2680
  });
2609
- const qr = N(f.nodeName);
2610
- if (Br(qr, Ye, Z)) {
2611
- if (q && typeof tt == "object" && typeof tt.getAttributeType == "function" && !X)
2681
+ const qr = U(f.nodeName);
2682
+ if (Br(qr, Ye, Q)) {
2683
+ if (Y && typeof tt == "object" && typeof tt.getAttributeType == "function" && !J)
2612
2684
  switch (tt.getAttributeType(qr, Ye)) {
2613
2685
  case "TrustedHTML": {
2614
- Z = q.createHTML(Z);
2686
+ Q = Y.createHTML(Q);
2615
2687
  break;
2616
2688
  }
2617
2689
  case "TrustedScriptURL": {
2618
- Z = q.createScriptURL(Z);
2690
+ Q = Y.createScriptURL(Q);
2619
2691
  break;
2620
2692
  }
2621
2693
  }
2622
2694
  try {
2623
- X ? f.setAttributeNS(X, z, Z) : f.setAttribute(z, Z), Bt(f) ? oe(f) : v(C.removed);
2695
+ J ? f.setAttributeNS(J, j, Q) : f.setAttribute(j, Q), Bt(f) ? oe(f) : v(C.removed);
2624
2696
  } catch {
2625
2697
  }
2626
2698
  }
2627
2699
  }
2628
- ue(Y.afterSanitizeAttributes, f, null);
2700
+ ue(Z.afterSanitizeAttributes, f, null);
2629
2701
  }, hn = function S(f) {
2630
- let g = null;
2702
+ let m = null;
2631
2703
  const y = zr(f);
2632
- for (ue(Y.beforeSanitizeShadowDOM, f, null); g = y.nextNode(); )
2633
- ue(Y.uponSanitizeShadowNode, g, null), Vr(g), Gr(g), g.content instanceof ie && S(g.content);
2634
- ue(Y.afterSanitizeShadowDOM, f, null);
2704
+ for (ue(Z.beforeSanitizeShadowDOM, f, null); m = y.nextNode(); )
2705
+ ue(Z.uponSanitizeShadowNode, m, null), Vr(m), Gr(m), m.content instanceof ie && S(m.content);
2706
+ ue(Z.afterSanitizeShadowDOM, f, null);
2635
2707
  };
2636
2708
  return C.sanitize = function(S) {
2637
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = null, y = null, _ = null, V = null;
2709
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, y = null, M = null, B = null;
2638
2710
  if (zt = !S, zt && (S = "<!-->"), typeof S != "string" && !jr(S))
2639
2711
  if (typeof S.toString == "function") {
2640
2712
  if (S = S.toString(), typeof S != "string")
@@ -2645,83 +2717,83 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2645
2717
  return S;
2646
2718
  if (Dt || Vt(f), C.removed = [], typeof S == "string" && (Ge = !1), Ge) {
2647
2719
  if (S.nodeName) {
2648
- const ce = N(S.nodeName);
2649
- if (!D[ce] || We[ce])
2720
+ const ce = U(S.nodeName);
2721
+ if (!H[ce] || We[ce])
2650
2722
  throw He("root node is forbidden and cannot be sanitized in-place");
2651
2723
  }
2652
2724
  } else if (S instanceof $t)
2653
- g = Ur("<!---->"), y = g.ownerDocument.importNode(S, !0), y.nodeType === ze.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? g = y : g.appendChild(y);
2725
+ m = Ur("<!---->"), y = m.ownerDocument.importNode(S, !0), y.nodeType === ze.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? m = y : m.appendChild(y);
2654
2726
  else {
2655
- if (!Te && !Re && !ke && // eslint-disable-next-line unicorn/prefer-includes
2727
+ if (!Te && !Ee && !we && // eslint-disable-next-line unicorn/prefer-includes
2656
2728
  S.indexOf("<") === -1)
2657
- return q && at ? q.createHTML(S) : S;
2658
- if (g = Ur(S), !g)
2729
+ return Y && at ? Y.createHTML(S) : S;
2730
+ if (m = Ur(S), !m)
2659
2731
  return Te ? null : at ? Be : "";
2660
2732
  }
2661
- g && Nt && oe(g.firstChild);
2662
- const z = zr(Ge ? S : g);
2663
- for (; _ = z.nextNode(); )
2664
- Vr(_), Gr(_), _.content instanceof ie && hn(_.content);
2733
+ m && Nt && oe(m.firstChild);
2734
+ const j = zr(Ge ? S : m);
2735
+ for (; M = j.nextNode(); )
2736
+ Vr(M), Gr(M), M.content instanceof ie && hn(M.content);
2665
2737
  if (Ge)
2666
2738
  return S;
2667
2739
  if (Te) {
2668
2740
  if (st)
2669
- for (V = Ka.call(g.ownerDocument); g.firstChild; )
2670
- V.appendChild(g.firstChild);
2741
+ for (B = Qa.call(m.ownerDocument); m.firstChild; )
2742
+ B.appendChild(m.firstChild);
2671
2743
  else
2672
- V = g;
2673
- return (U.shadowroot || U.shadowrootmode) && (V = Xa.call(R, V, !0)), V;
2744
+ B = m;
2745
+ return (z.shadowroot || z.shadowrootmode) && (B = Xa.call(E, B, !0)), B;
2674
2746
  }
2675
- let X = ke ? g.outerHTML : g.innerHTML;
2676
- return ke && D["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && W(yr, g.ownerDocument.doctype.name) && (X = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
2677
- ` + X), Re && m([At, It, Mt], (ce) => {
2678
- X = Ne(X, ce, " ");
2679
- }), q && at ? q.createHTML(X) : X;
2747
+ let J = we ? m.outerHTML : m.innerHTML;
2748
+ return we && H["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(yr, m.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
2749
+ ` + J), Ee && g([It, At, Mt], (ce) => {
2750
+ J = Ne(J, ce, " ");
2751
+ }), Y && at ? Y.createHTML(J) : J;
2680
2752
  }, C.setConfig = function() {
2681
2753
  let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2682
2754
  Vt(S), Dt = !0;
2683
2755
  }, C.clearConfig = function() {
2684
- Ae = null, Dt = !1;
2685
- }, C.isValidAttribute = function(S, f, g) {
2686
- Ae || Vt({});
2687
- const y = N(S), _ = N(f);
2688
- return Br(y, _, g);
2756
+ Ie = null, Dt = !1;
2757
+ }, C.isValidAttribute = function(S, f, m) {
2758
+ Ie || Vt({});
2759
+ const y = U(S), M = U(f);
2760
+ return Br(y, M, m);
2689
2761
  }, C.addHook = function(S, f) {
2690
- typeof f == "function" && T(Y[S], f);
2762
+ typeof f == "function" && T(Z[S], f);
2691
2763
  }, C.removeHook = function(S, f) {
2692
2764
  if (f !== void 0) {
2693
- const g = b(Y[S], f);
2694
- return g === -1 ? void 0 : H(Y[S], g, 1)[0];
2765
+ const m = b(Z[S], f);
2766
+ return m === -1 ? void 0 : _(Z[S], m, 1)[0];
2695
2767
  }
2696
- return v(Y[S]);
2768
+ return v(Z[S]);
2697
2769
  }, C.removeHooks = function(S) {
2698
- Y[S] = [];
2770
+ Z[S] = [];
2699
2771
  }, C.removeAllHooks = function() {
2700
- Y = Sr();
2772
+ Z = Sr();
2701
2773
  }, C;
2702
2774
  }
2703
2775
  var za = kr();
2704
2776
  return za;
2705
2777
  });
2706
2778
  })(Gs);
2707
- const rc = Gs.exports, St = (e, ...t) => {
2779
+ const tc = Gs.exports, St = (e, ...t) => {
2708
2780
  let r = e[0];
2709
2781
  for (let s = 0; s < t.length; s++)
2710
- r += rc.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
2782
+ r += tc.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
2711
2783
  return r || "";
2712
- }, sc = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2713
- let Q = (e = 21) => {
2784
+ }, rc = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2785
+ let X = (e = 21) => {
2714
2786
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
2715
2787
  for (; e--; )
2716
- t += sc[r[e] & 63];
2788
+ t += rc[r[e] & 63];
2717
2789
  return t;
2718
2790
  };
2719
- const ac = /* @__PURE__ */ F(class extends O {
2791
+ const sc = /* @__PURE__ */ D(class extends F {
2720
2792
  constructor() {
2721
2793
  super();
2722
2794
  d(this, "adSource", "Custom");
2723
2795
  d(this, "adClientResponseItem");
2724
- d(this, "adContainerId", Q());
2796
+ d(this, "adContainerId", X());
2725
2797
  d(this, "searchTerm");
2726
2798
  d(this, "isSearchInProgress", !1);
2727
2799
  d(this, "core");
@@ -2758,7 +2830,7 @@ const ac = /* @__PURE__ */ F(class extends O {
2758
2830
  renderADMAd() {
2759
2831
  const r = this.adClientResponseItem;
2760
2832
  if (r.admAd)
2761
- return i("div", { class: "searchcraft-adm-ad" }, i("a", { class: "searchcraft-adm-ad-link", href: r.admAd.click_url }, r.admAd.image_url && i("div", { class: "searchcraft-adm-ad-image-wrapper" }, i("img", { alt: r.admAd.term || "image", src: r.admAd.image_url, class: "searchcraft-adm-ad-image" })), i("div", { class: "searchcraft-adm-ad-content" }, i("p", { class: "searchcraft-adm-ad-content-title" }, r.admAd.term), r.admAd.price && i("p", { class: "searchcraft-adm-ad-content-subtitle" }, r.admAd.price))));
2833
+ return l("div", { class: "searchcraft-adm-ad" }, l("a", { class: "searchcraft-adm-ad-link", href: r.admAd.click_url }, r.admAd.image_url && l("div", { class: "searchcraft-adm-ad-image-wrapper" }, l("img", { alt: r.admAd.term || "image", src: r.admAd.image_url, class: "searchcraft-adm-ad-image" })), l("div", { class: "searchcraft-adm-ad-content" }, l("p", { class: "searchcraft-adm-ad-content-title" }, r.admAd.term), r.admAd.price && l("p", { class: "searchcraft-adm-ad-content-subtitle" }, r.admAd.price))));
2762
2834
  }
2763
2835
  renderCustomAd() {
2764
2836
  var o, n;
@@ -2767,12 +2839,12 @@ const ac = /* @__PURE__ */ F(class extends O {
2767
2839
  return r && (a = r({
2768
2840
  searchTerm: this.searchTerm || "",
2769
2841
  adContainerId: this.adContainerId
2770
- }, { html: St })), i("div", { class: "searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2842
+ }, { html: St })), l("div", { class: "searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2771
2843
  }
2772
2844
  renderNativoAd() {
2773
2845
  var s;
2774
2846
  const r = ((s = this.core) == null ? void 0 : s.config.nativoAdClassName) || "ntv-item";
2775
- return i("div", { class: r });
2847
+ return l("div", { class: r });
2776
2848
  }
2777
2849
  render() {
2778
2850
  var r, s;
@@ -2809,12 +2881,12 @@ function kt() {
2809
2881
  ["searchcraft-ad"].forEach((t) => {
2810
2882
  switch (t) {
2811
2883
  case "searchcraft-ad":
2812
- customElements.get(t) || customElements.define(t, ac);
2884
+ customElements.get(t) || customElements.define(t, sc);
2813
2885
  break;
2814
2886
  }
2815
2887
  });
2816
2888
  }
2817
- const nc = kt;
2889
+ const ac = kt;
2818
2890
  var qs = { exports: {} };
2819
2891
  /*!
2820
2892
  Copyright (c) 2018 Jed Watson.
@@ -2851,7 +2923,7 @@ var qs = { exports: {} };
2851
2923
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
2852
2924
  })();
2853
2925
  })(qs);
2854
- const se = qs.exports, oc = /* @__PURE__ */ F(class extends O {
2926
+ const se = qs.exports, nc = /* @__PURE__ */ D(class extends F {
2855
2927
  constructor() {
2856
2928
  super();
2857
2929
  /**
@@ -2889,14 +2961,14 @@ const se = qs.exports, oc = /* @__PURE__ */ F(class extends O {
2889
2961
  d(this, "handleButtonClick", () => {
2890
2962
  this.buttonClick.emit();
2891
2963
  });
2892
- this.__registerHost(), this.buttonClick = be(this, "buttonClick");
2964
+ this.__registerHost(), this.buttonClick = ye(this, "buttonClick");
2893
2965
  }
2894
2966
  render() {
2895
- return i("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: se("searchcraft-button", {
2967
+ return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: se("searchcraft-button", {
2896
2968
  "searchcraft-button-primary": this.hierarchy === "primary",
2897
2969
  "searchcraft-button-tertiary": this.hierarchy === "tertiary",
2898
2970
  "searchcraft-button-disabled": this.disabled
2899
- }), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : i(to, null, this.iconPosition === "left" && this.icon, i("span", null, this.label), this.iconPosition === "right" && this.icon));
2971
+ }), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(to, null, this.iconPosition === "left" && this.icon, l("span", null, this.label), this.iconPosition === "right" && this.icon));
2900
2972
  }
2901
2973
  }, [0, "searchcraft-button", {
2902
2974
  hierarchy: [1],
@@ -2913,17 +2985,17 @@ function wt() {
2913
2985
  ["searchcraft-button"].forEach((t) => {
2914
2986
  switch (t) {
2915
2987
  case "searchcraft-button":
2916
- customElements.get(t) || customElements.define(t, oc);
2988
+ customElements.get(t) || customElements.define(t, nc);
2917
2989
  break;
2918
2990
  }
2919
2991
  });
2920
2992
  }
2921
- const cc = wt, ic = /* @__PURE__ */ F(class extends O {
2993
+ const oc = wt, cc = /* @__PURE__ */ D(class extends F {
2922
2994
  constructor() {
2923
2995
  super(), this.__registerHost();
2924
2996
  }
2925
2997
  render() {
2926
- return i("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, i("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
2998
+ return l("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, l("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
2927
2999
  }
2928
3000
  }, [4, "searchcraft-error-message"]);
2929
3001
  function xt() {
@@ -2932,19 +3004,19 @@ function xt() {
2932
3004
  ["searchcraft-error-message"].forEach((t) => {
2933
3005
  switch (t) {
2934
3006
  case "searchcraft-error-message":
2935
- customElements.get(t) || customElements.define(t, ic);
3007
+ customElements.get(t) || customElements.define(t, cc);
2936
3008
  break;
2937
3009
  }
2938
3010
  });
2939
3011
  }
2940
- const lc = xt;
3012
+ const ic = xt;
2941
3013
  function Ys(e, t) {
2942
3014
  const r = { ...e };
2943
3015
  for (const s in t)
2944
3016
  t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Ys(e[s], t[s]) : r[s] = t[s]);
2945
3017
  return r;
2946
3018
  }
2947
- function uc(e) {
3019
+ function lc(e) {
2948
3020
  return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
2949
3021
  }
2950
3022
  function gs(e) {
@@ -2959,7 +3031,7 @@ function gs(e) {
2959
3031
  };
2960
3032
  return r(e), t;
2961
3033
  }
2962
- function hc(e) {
3034
+ function uc(e) {
2963
3035
  const t = {
2964
3036
  count: 0,
2965
3037
  path: "/",
@@ -2989,11 +3061,11 @@ function Zs(e) {
2989
3061
  };
2990
3062
  return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Zs(r))), t;
2991
3063
  }
2992
- function fc(e, t) {
3064
+ function hc(e, t) {
2993
3065
  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("/"))));
2994
3066
  return Object.fromEntries(r.filter((n) => !a.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
2995
3067
  }
2996
- function dc(e, t, r) {
3068
+ function fc(e, t, r) {
2997
3069
  const s = t[e], a = r[e], o = {
2998
3070
  count: 0,
2999
3071
  path: "/",
@@ -3002,12 +3074,12 @@ function dc(e, t, r) {
3002
3074
  count: 0,
3003
3075
  path: "/",
3004
3076
  children: a
3005
- }, c = gs(o), h = gs(n), u = fc(c, h), l = Ys(u, h), p = hc(l), m = Zs(p);
3077
+ }, c = gs(o), h = gs(n), u = hc(c, h), i = Ys(u, h), p = uc(i), g = Zs(p);
3006
3078
  return {
3007
- [e]: m.children
3079
+ [e]: g.children
3008
3080
  };
3009
3081
  }
3010
- const pc = /* @__PURE__ */ F(class extends O {
3082
+ const dc = /* @__PURE__ */ D(class extends F {
3011
3083
  constructor() {
3012
3084
  super();
3013
3085
  /**
@@ -3036,7 +3108,7 @@ const pc = /* @__PURE__ */ F(class extends O {
3036
3108
  const o = r.path.substring(s.path.length).replace(/^\//, ""), n = r.count;
3037
3109
  return `${o.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${n})`;
3038
3110
  });
3039
- this.__registerHost(), this.facetSelectionUpdated = be(this, "facetSelectionUpdated");
3111
+ this.__registerHost(), this.facetSelectionUpdated = ye(this, "facetSelectionUpdated");
3040
3112
  }
3041
3113
  handleStateUpdate(r) {
3042
3114
  const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
@@ -3044,7 +3116,7 @@ const pc = /* @__PURE__ */ F(class extends O {
3044
3116
  if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode || r.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
3045
3117
  this.facetRoot = void 0;
3046
3118
  const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
3047
- this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = dc(this.fieldName, this.baseFacetRoot, o));
3119
+ this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = fc(this.fieldName, this.baseFacetRoot, o));
3048
3120
  }
3049
3121
  this.lastSearchTerm = r.searchTerm, this.lastSearchMode = r.searchMode, this.lastSortType = r.sortType, this.lastTimeTaken = a;
3050
3122
  }
@@ -3069,7 +3141,7 @@ const pc = /* @__PURE__ */ F(class extends O {
3069
3141
  const c = Object.keys(this.selectedPaths).filter((h) => !h.includes(r));
3070
3142
  this.selectedPaths = c.reduce((h, u) => (h[u] = !0, h), {});
3071
3143
  }
3072
- const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = uc(a);
3144
+ const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = lc(a);
3073
3145
  (n = this.facetSelectionUpdated) == null || n.emit({ paths: o });
3074
3146
  }
3075
3147
  render() {
@@ -3077,14 +3149,14 @@ const pc = /* @__PURE__ */ F(class extends O {
3077
3149
  if (!this.fieldName)
3078
3150
  return;
3079
3151
  const r = (s = this.facetRoot) == null ? void 0 : s[this.fieldName];
3080
- return i("div", { class: "searchcraft-facet-list" }, !r && i("p", { class: "searchcraft-facet-list-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((a) => {
3152
+ return l("div", { class: "searchcraft-facet-list" }, !r && l("p", { class: "searchcraft-facet-list-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((a) => {
3081
3153
  var n;
3082
3154
  const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
3083
- return i("div", { key: a.path, class: "searchcraft-facet-list-item" }, i("label", { class: "searchcraft-facet-list-checkbox-label" }, i("div", { class: "searchcraft-facet-list-checkbox-input-wrapper" }, i("input", { class: "searchcraft-facet-list-checkbox-input", checked: this.selectedPaths[a.path], onChange: (c) => this.handleCheckboxChange(a.path), type: "checkbox" }), o ? i("div", { class: "searchcraft-facet-list-checkbox-input-dash-icon" }, i("svg", { width: "14", height: "3", viewBox: "0 0 14 3", fill: "none" }, i("title", null, "Checkbox dash"), i("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : i("div", { class: "searchcraft-facet-list-checkbox-input-check-icon" }, i("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, i("title", null, "Checkbox check"), i("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatLabel(a)), a.children && a.children.length > 0 && i("div", { class: "searchcraft-facet-child-list" }, a.children.map((c) => i("label", { key: c.path, class: "searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label", style: {
3155
+ return l("div", { key: a.path, class: "searchcraft-facet-list-item" }, l("label", { class: "searchcraft-facet-list-checkbox-label" }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input", checked: this.selectedPaths[a.path], onChange: (c) => this.handleCheckboxChange(a.path), type: "checkbox" }), o ? l("div", { class: "searchcraft-facet-list-checkbox-input-dash-icon" }, l("svg", { width: "14", height: "3", viewBox: "0 0 14 3", fill: "none" }, l("title", null, "Checkbox dash"), l("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : l("div", { class: "searchcraft-facet-list-checkbox-input-check-icon" }, l("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, l("title", null, "Checkbox check"), l("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatLabel(a)), a.children && a.children.length > 0 && l("div", { class: "searchcraft-facet-child-list" }, a.children.map((c) => l("label", { key: c.path, class: "searchcraft-facet-list-checkbox-label searchcraft-facet-child-list-checkbox-label", style: {
3084
3156
  display: this.selectedPaths[a.path] ? "flex" : "none"
3085
- } }, i("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, i("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (h) => {
3157
+ } }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (h) => {
3086
3158
  this.handleCheckboxChange(c.path);
3087
- }, type: "checkbox" }), i("div", { class: "searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon" }, i("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, i("title", null, "Checkbox check"), i("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatSubLabel(c, a)))));
3159
+ }, type: "checkbox" }), l("div", { class: "searchcraft-facet-list-checkbox-input-check-icon searchcraft-facet-child-list-checkbox-input-check-icon" }, l("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, l("title", null, "Checkbox check"), l("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.formatSubLabel(c, a)))));
3088
3160
  }));
3089
3161
  }
3090
3162
  }, [0, "searchcraft-facet-list", {
@@ -3092,25 +3164,20 @@ const pc = /* @__PURE__ */ F(class extends O {
3092
3164
  baseFacetRoot: [32],
3093
3165
  facetRoot: [32],
3094
3166
  selectedPaths: [32],
3095
- lastTimeTaken: [32],
3096
- hasNewSearchTerm: [32],
3097
- lastSearchTerm: [32],
3098
- lastSearchMode: [32],
3099
- lastSortType: [32],
3100
- unsubscribe: [32]
3167
+ lastTimeTaken: [32]
3101
3168
  }]);
3102
- function Ks() {
3169
+ function Qs() {
3103
3170
  if (typeof customElements > "u")
3104
3171
  return;
3105
3172
  ["searchcraft-facet-list"].forEach((t) => {
3106
3173
  switch (t) {
3107
3174
  case "searchcraft-facet-list":
3108
- customElements.get(t) || customElements.define(t, pc);
3175
+ customElements.get(t) || customElements.define(t, dc);
3109
3176
  break;
3110
3177
  }
3111
3178
  });
3112
3179
  }
3113
- const mc = Ks;
3180
+ const pc = Qs;
3114
3181
  function Ze(e, t) {
3115
3182
  if (e && t)
3116
3183
  return t.fieldNames.map((r) => {
@@ -3118,7 +3185,7 @@ function Ze(e, t) {
3118
3185
  if (s)
3119
3186
  switch (r.dataType) {
3120
3187
  case "date": {
3121
- s = gc(s);
3188
+ s = mc(s, r.dateFormatLocale, r.dateFormatOptions);
3122
3189
  break;
3123
3190
  }
3124
3191
  case "number": {
@@ -3129,7 +3196,7 @@ function Ze(e, t) {
3129
3196
  return s;
3130
3197
  }).filter((r) => !!r).join(t.delimiter || " ");
3131
3198
  }
3132
- function Qs(e) {
3199
+ function Ks(e) {
3133
3200
  switch (e) {
3134
3201
  case "hour":
3135
3202
  return 36e5;
@@ -3146,11 +3213,19 @@ function Qs(e) {
3146
3213
  function Xs(e) {
3147
3214
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
3148
3215
  }
3149
- function gc(e) {
3150
- 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);
3151
- return a < 60 ? `${a}m ago` : o < 24 ? `${o}h ago` : n < 365 ? `${n}d ago` : `${c}y ago`;
3216
+ function mc(e, t = "en-US", r = {
3217
+ day: "numeric",
3218
+ month: "long",
3219
+ year: "numeric"
3220
+ }) {
3221
+ const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
3222
+ if (o < n) {
3223
+ const c = Math.trunc(o / 1e3), h = Math.trunc(c / 60), u = Math.trunc(h / 60), i = Math.trunc(u / 24), p = new Intl.RelativeTimeFormat(t, r);
3224
+ return i >= 1 ? p.format(-i, "day") : u >= 1 ? p.format(-u, "hour") : h >= 1 ? p.format(-h, "minute") : p.format(0, "second");
3225
+ }
3226
+ return new Intl.DateTimeFormat(t, r).format(s);
3152
3227
  }
3153
- const vc = /* @__PURE__ */ F(class extends O {
3228
+ const gc = /* @__PURE__ */ D(class extends F {
3154
3229
  constructor() {
3155
3230
  super();
3156
3231
  /**
@@ -3164,7 +3239,7 @@ const vc = /* @__PURE__ */ F(class extends O {
3164
3239
  /**
3165
3240
  * The granularity that the value must adhere to.
3166
3241
  */
3167
- d(this, "granularity", Qs("month"));
3242
+ d(this, "granularity", Ks("month"));
3168
3243
  /** The type of data allowed. */
3169
3244
  d(this, "dataType", "number");
3170
3245
  d(this, "endValue", this.max);
@@ -3189,17 +3264,17 @@ const vc = /* @__PURE__ */ F(class extends O {
3189
3264
  const s = r.target, a = Number.parseInt(s.value, 10);
3190
3265
  this.lastFocusedHandle = "max", a >= this.startValue ? (this.endValue = a, this.emitUpdate()) : (this.endValue = this.startValue, s.value = `${this.startValue}`);
3191
3266
  });
3192
- this.__registerHost(), this.rangeChanged = be(this, "rangeChanged");
3267
+ this.__registerHost(), this.rangeChanged = ye(this, "rangeChanged");
3193
3268
  }
3194
3269
  componentDidLoad() {
3195
3270
  this.startValue = this.min, this.endValue = this.max;
3196
3271
  }
3197
3272
  render() {
3198
3273
  const r = this.min, s = this.max, a = (this.startValue - r) / (s - r) * 100, o = (this.endValue - r) / (s - r) * 100, n = this.dataType === "number" ? this.startValue : new Date(this.startValue).getFullYear(), c = this.dataType === "number" ? this.endValue : new Date(this.endValue).getFullYear();
3199
- return i("div", { key: "9225b18ce2f40246837d183fcefdd0be7cc22383", class: "searchcraft-slider" }, i("div", { key: "8078c1eda2ceb781282f59216915896fdbe2a8d3", class: "searchcraft-slider-range" }, i("div", { key: "6a6bafa9f7abf41ab24f020cd291a4a08c618afb", class: "searchcraft-slider-active-range", style: {
3274
+ return l("div", { key: "9225b18ce2f40246837d183fcefdd0be7cc22383", class: "searchcraft-slider" }, l("div", { key: "8078c1eda2ceb781282f59216915896fdbe2a8d3", class: "searchcraft-slider-range" }, l("div", { key: "6a6bafa9f7abf41ab24f020cd291a4a08c618afb", class: "searchcraft-slider-active-range", style: {
3200
3275
  left: `${a}%`,
3201
3276
  width: `${o - a}%`
3202
- } }), i("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: se("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), i("input", { key: "0637ea5fe123abe1d77c540b347c78fc8ad3d281", class: se("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), i("div", { key: "b62f8d8485915dddefb7ca29f62b4a96d70470c5", class: "searchcraft-slider-label" }, i("span", { key: "fd5d32172ce53d93b858ca54c17b12b80fcdde1d", class: "searchcraft-slider-start-label" }, n), i("span", { key: "8f4d230b78fb8d896a469f17ade3a3fd3162b427", class: "searchcraft-slider-end-label" }, c)));
3277
+ } }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: se("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), l("input", { key: "0637ea5fe123abe1d77c540b347c78fc8ad3d281", class: se("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), l("div", { key: "b62f8d8485915dddefb7ca29f62b4a96d70470c5", class: "searchcraft-slider-label" }, l("span", { key: "fd5d32172ce53d93b858ca54c17b12b80fcdde1d", class: "searchcraft-slider-start-label" }, n), l("span", { key: "8f4d230b78fb8d896a469f17ade3a3fd3162b427", class: "searchcraft-slider-end-label" }, c)));
3203
3278
  }
3204
3279
  }, [0, "searchcraft-slider", {
3205
3280
  max: [2],
@@ -3216,12 +3291,12 @@ function Js() {
3216
3291
  ["searchcraft-slider"].forEach((t) => {
3217
3292
  switch (t) {
3218
3293
  case "searchcraft-slider":
3219
- customElements.get(t) || customElements.define(t, vc);
3294
+ customElements.get(t) || customElements.define(t, gc);
3220
3295
  break;
3221
3296
  }
3222
3297
  });
3223
3298
  }
3224
- const bc = /* @__PURE__ */ F(class extends O {
3299
+ const vc = /* @__PURE__ */ D(class extends F {
3225
3300
  constructor() {
3226
3301
  super();
3227
3302
  /**
@@ -3243,7 +3318,7 @@ const bc = /* @__PURE__ */ F(class extends O {
3243
3318
  var r;
3244
3319
  this.isActive = !this.isActive, (r = this.toggleUpdated) == null || r.emit(this.isActive);
3245
3320
  });
3246
- this.__registerHost(), this.toggleUpdated = be(this, "toggleUpdated");
3321
+ this.__registerHost(), this.toggleUpdated = ye(this, "toggleUpdated");
3247
3322
  }
3248
3323
  connectedCallback() {
3249
3324
  this.unsubscribe = $.subscribe((r) => {
@@ -3255,9 +3330,9 @@ const bc = /* @__PURE__ */ F(class extends O {
3255
3330
  (r = this.unsubscribe) == null || r.call(this);
3256
3331
  }
3257
3332
  render() {
3258
- return i("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: se("searchcraft-toggle-button", {
3333
+ return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: se("searchcraft-toggle-button", {
3259
3334
  "searchcraft-toggle-button-active": this.isActive
3260
- }) }, i("div", { key: "aaa92d7c1aebe241a163a1fba7cd1f8d3804286d" }, i("p", { key: "068b82b17a99bf55ad17818d0dd4c7e95858317b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && i("p", { key: "39e43e3fad6a2ab09d20f37c6d6865cede3701d9", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), i("button", { key: "5ae352870d4a01c430389e75b967b2eb9d3fa5f7", class: "searchcraft-toggle-button-background", onClick: this.handleToggle, type: "button" }, i("div", { key: "0574ade4e1681ce8e122039c40e761cb68555621", class: "searchcraft-toggle-button-handle" })));
3335
+ }) }, l("div", { key: "aaa92d7c1aebe241a163a1fba7cd1f8d3804286d" }, l("p", { key: "068b82b17a99bf55ad17818d0dd4c7e95858317b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && l("p", { key: "39e43e3fad6a2ab09d20f37c6d6865cede3701d9", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), l("button", { key: "5ae352870d4a01c430389e75b967b2eb9d3fa5f7", class: "searchcraft-toggle-button-background", onClick: this.handleToggle, type: "button" }, l("div", { key: "0574ade4e1681ce8e122039c40e761cb68555621", class: "searchcraft-toggle-button-handle" })));
3261
3336
  }
3262
3337
  }, [0, "searchcraft-toggle-button", {
3263
3338
  label: [1],
@@ -3272,12 +3347,12 @@ function ea() {
3272
3347
  ["searchcraft-toggle-button"].forEach((t) => {
3273
3348
  switch (t) {
3274
3349
  case "searchcraft-toggle-button":
3275
- customElements.get(t) || customElements.define(t, bc);
3350
+ customElements.get(t) || customElements.define(t, vc);
3276
3351
  break;
3277
3352
  }
3278
3353
  });
3279
3354
  }
3280
- const ta = /* @__PURE__ */ F(class extends O {
3355
+ const ta = /* @__PURE__ */ D(class extends F {
3281
3356
  constructor() {
3282
3357
  super();
3283
3358
  /**
@@ -3327,35 +3402,35 @@ const ta = /* @__PURE__ */ F(class extends O {
3327
3402
  * Iterate through `items` and render them based on `type`
3328
3403
  */
3329
3404
  render() {
3330
- return i("div", { key: "22344fe9d0554894bff8c2c6afe12661bf7f20d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
3405
+ return l("div", { key: "22344fe9d0554894bff8c2c6afe12661bf7f20d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
3331
3406
  switch (r.type) {
3332
3407
  case "dateRange": {
3333
- const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = Qs(s.options.granularity);
3334
- return i("div", { class: "searchcraft-filter-panel-section" }, i("p", { class: "searchcraft-filter-panel-label" }, r.label), i("searchcraft-slider", { min: a, max: o, granularity: n, dataType: "date", onRangeChanged: (c) => {
3408
+ const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = Ks(s.options.granularity);
3409
+ return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-slider", { min: a, max: o, granularity: n, dataType: "date", onRangeChanged: (c) => {
3335
3410
  this.handleDateRangeChanged(s.fieldName, c.detail.startValue, c.detail.endValue);
3336
3411
  } }));
3337
3412
  }
3338
3413
  case "numericRange": {
3339
3414
  const s = r;
3340
- return i("div", { class: "searchcraft-filter-panel-section" }, i("p", { class: "searchcraft-filter-panel-label" }, r.label), i("searchcraft-slider", { min: s.options.min, max: s.options.max, granularity: s.options.granularity, onRangeChanged: (a) => {
3415
+ return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-slider", { min: s.options.min, max: s.options.max, granularity: s.options.granularity, onRangeChanged: (a) => {
3341
3416
  this.handleNumericRangeChanged(s.fieldName, a.detail.startValue, a.detail.endValue);
3342
3417
  } }));
3343
3418
  }
3344
3419
  case "facets": {
3345
3420
  const s = r;
3346
- return i("div", { class: "searchcraft-filter-panel-section" }, i("p", { class: "searchcraft-filter-panel-label" }, r.label), i("searchcraft-facet-list", { fieldName: s.fieldName, onFacetSelectionUpdated: (a) => {
3421
+ return l("div", { class: "searchcraft-filter-panel-section" }, l("p", { class: "searchcraft-filter-panel-label" }, r.label), l("searchcraft-facet-list", { fieldName: s.fieldName, onFacetSelectionUpdated: (a) => {
3347
3422
  this.handleFacetSelectionUpdated(s.fieldName, a.detail.paths);
3348
3423
  } }));
3349
3424
  }
3350
3425
  case "exactMatchToggle": {
3351
3426
  const s = r;
3352
- return i("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3427
+ return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3353
3428
  this.handleExactMatchToggleUpdated(a.detail);
3354
3429
  } });
3355
3430
  }
3356
3431
  case "mostRecentToggle": {
3357
3432
  const s = r;
3358
- return i("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3433
+ return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3359
3434
  this.handleMostRecentToggleUpdated(a.detail);
3360
3435
  } });
3361
3436
  }
@@ -3367,7 +3442,7 @@ const ta = /* @__PURE__ */ F(class extends O {
3367
3442
  unsubscribe: [32],
3368
3443
  lastSearchTerm: [32]
3369
3444
  }]);
3370
- function yc() {
3445
+ function bc() {
3371
3446
  if (typeof customElements > "u")
3372
3447
  return;
3373
3448
  ["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
@@ -3376,7 +3451,7 @@ function yc() {
3376
3451
  customElements.get(t) || customElements.define(t, ta);
3377
3452
  break;
3378
3453
  case "searchcraft-facet-list":
3379
- customElements.get(t) || Ks();
3454
+ customElements.get(t) || Qs();
3380
3455
  break;
3381
3456
  case "searchcraft-slider":
3382
3457
  customElements.get(t) || Js();
@@ -3387,7 +3462,7 @@ function yc() {
3387
3462
  }
3388
3463
  });
3389
3464
  }
3390
- const Cc = ta, ra = yc, Sc = /* @__PURE__ */ F(class extends O {
3465
+ const yc = ta, ra = bc, Cc = /* @__PURE__ */ D(class extends F {
3391
3466
  constructor() {
3392
3467
  super();
3393
3468
  /**
@@ -3398,7 +3473,7 @@ const Cc = ta, ra = yc, Sc = /* @__PURE__ */ F(class extends O {
3398
3473
  this.__registerHost();
3399
3474
  }
3400
3475
  render() {
3401
- return i("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: se("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
3476
+ return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: se("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
3402
3477
  }
3403
3478
  }, [0, "searchcraft-input-label", {
3404
3479
  inputLabelClassName: [1, "input-label-class-name"],
@@ -3410,12 +3485,12 @@ function fr() {
3410
3485
  ["searchcraft-input-label"].forEach((t) => {
3411
3486
  switch (t) {
3412
3487
  case "searchcraft-input-label":
3413
- customElements.get(t) || customElements.define(t, Sc);
3488
+ customElements.get(t) || customElements.define(t, Cc);
3414
3489
  break;
3415
3490
  }
3416
3491
  });
3417
3492
  }
3418
- const sa = /* @__PURE__ */ F(class extends O {
3493
+ const sa = /* @__PURE__ */ D(class extends F {
3419
3494
  constructor() {
3420
3495
  super();
3421
3496
  /**
@@ -3454,39 +3529,53 @@ const sa = /* @__PURE__ */ F(class extends O {
3454
3529
  d(this, "searchTerm", "");
3455
3530
  d(this, "error", !1);
3456
3531
  d(this, "core");
3457
- d(this, "searchStore", $.getState());
3458
- d(this, "handleOnInput", (r) => {
3532
+ d(this, "searchcraftStore", $.getState());
3533
+ d(this, "unsubscribe", () => {
3534
+ });
3535
+ d(this, "handleInput", (r) => {
3459
3536
  const s = r.target;
3460
3537
  this.inputValue = s.value, this.autoSearch && this.performSearch(s.value);
3461
3538
  });
3462
3539
  d(this, "performSearch", async (r) => {
3463
- if (r !== $.getState().searchTerm) {
3464
- this.searchTerm = r.trim(), this.error = !1, this.searchStore.setSearchTerm(this.searchTerm);
3540
+ if (r !== this.searchTerm) {
3541
+ this.searchcraftStore.setSearchTerm(r.trim()), this.error = !1;
3465
3542
  try {
3466
- await this.searchStore.search();
3543
+ await this.searchcraftStore.search();
3467
3544
  } catch (s) {
3468
- console.log(s), this.error = !0;
3545
+ console.error(`Search for ${r} failed:`, s), this.error = !0;
3469
3546
  }
3470
3547
  }
3471
3548
  });
3549
+ d(this, "handleReset", () => {
3550
+ this.searchcraftStore.setSearchResultsCount(0), this.searchcraftStore.setSearchTerm(""), this.searchcraftStore.setSearchClientResponseItems([]), this.error = !1;
3551
+ });
3472
3552
  d(this, "handleClearInput", () => {
3473
- this.inputValue = "", this.searchTerm = "", this.searchStore.setSearchTerm(""), this.searchStore.setSearchClientResponseItems([]), this.error = !1;
3553
+ this.handleReset();
3474
3554
  });
3475
3555
  d(this, "handleFormSubmit", async (r) => {
3476
- r.preventDefault(), await this.performSearch(this.searchTerm);
3556
+ r.preventDefault(), await this.performSearch(this.inputValue);
3477
3557
  });
3478
- this.__registerHost(), this.inputFocus = be(this, "inputFocus"), this.inputBlur = be(this, "inputBlur"), this.inputInit = be(this, "inputInit");
3558
+ this.__registerHost(), this.inputFocus = ye(this, "inputFocus"), this.inputBlur = ye(this, "inputBlur"), this.inputInit = ye(this, "inputInit");
3479
3559
  }
3480
3560
  init() {
3481
3561
  var r;
3482
- this.core && (this.searchStore.initialize(this.core), (r = this.inputInit) == null || r.emit());
3562
+ this.core && (this.searchcraftStore.init(this.core), (r = this.inputInit) == null || r.emit());
3483
3563
  }
3484
- connectedCallback() {
3564
+ onCoreChange() {
3485
3565
  this.init();
3486
3566
  }
3487
- onCoreChange() {
3567
+ connectedCallback() {
3488
3568
  this.init();
3489
3569
  }
3570
+ componentDidLoad() {
3571
+ this.unsubscribe = $.subscribe((r) => {
3572
+ this.searchTerm = r.searchTerm, this.inputValue = r.searchTerm;
3573
+ });
3574
+ }
3575
+ disconnectedCallback() {
3576
+ var r;
3577
+ this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
3578
+ }
3490
3579
  render() {
3491
3580
  const r = this.inputValue.length > 0, s = se("searchcraft-input-form-grid", {
3492
3581
  "searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
@@ -3495,15 +3584,15 @@ const sa = /* @__PURE__ */ F(class extends O {
3495
3584
  }), o = {
3496
3585
  gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
3497
3586
  };
3498
- 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: () => {
3587
+ return l("form", { key: "6af89b2ab634e0f3e0ef575f98f33d091602f95a", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, l("div", { key: "93fea8e2b80468afeb6014122d5b749d74bfaf35", class: s, style: o }, l("div", { key: "1e5a416843b99aec68c4672a9c78f607347dc9d1", class: "searchcraft-input-form-button" }, l("searchcraft-button", { key: "c38c1df0ce20f914ed76fbc0acad5a22b40e6fff", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && l("div", { key: "2169a4466b0fdc8075c0dc74da442aef28a84d65", class: "searchcraft-input-form-label" }, l("searchcraft-input-label", { key: "a263b5aa2a4d50d297f06c1fe9e6afb64763f097", label: this.inputLabel })), this.error && l("div", { key: "49be2ac0f2d01916e5ea533e6406ee9d4d932178", class: "searchcraft-input-form-error-message" }, l("searchcraft-error-message", { key: "310c9aebcf580d4abe92d288c6b70a5adf083f8e" }, "Something went wrong.")), l("div", { key: "f4702e368815e049586e97cf59541b2dc5460fc0", class: "searchcraft-input-form-input-wrapper" }, l("input", { key: "a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce", autoComplete: "off", class: "searchcraft-input-form-input", onFocus: () => {
3499
3588
  var n;
3500
3589
  return (n = this.inputFocus) == null ? void 0 : n.emit();
3501
3590
  }, onBlur: () => {
3502
3591
  var n;
3503
3592
  return (n = this.inputBlur) == null ? void 0 : n.emit();
3504
3593
  }, onInput: (n) => {
3505
- this.handleOnInput(n);
3506
- }, 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" }))))));
3594
+ this.handleInput(n);
3595
+ }, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), l("div", { key: "616b4dde1ba016cf6a2fba8594a99a3a3f584ef5", class: "searchcraft-input-form-input-icon" }, l("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" }, l("title", { key: "e6d82ca64dd9bfc663813c239d11e5652aa0b9a1" }, "Search icon"), l("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 && l("button", { key: "8dd6dfefe0ba909657bd436b559ce35b5004f9ae", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, l("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" }, l("title", { key: "e01e7fb9b23daf9434520c4c68c0d7539b37d1f8" }, "Clear icon"), l("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" }))))));
3507
3596
  }
3508
3597
  static get watchers() {
3509
3598
  return {
@@ -3543,7 +3632,7 @@ function aa() {
3543
3632
  }
3544
3633
  });
3545
3634
  }
3546
- const kc = sa, na = aa, wc = fr, oa = /* @__PURE__ */ F(class extends O {
3635
+ const Sc = sa, na = aa, kc = fr, oa = /* @__PURE__ */ D(class extends F {
3547
3636
  constructor() {
3548
3637
  super();
3549
3638
  // store vars
@@ -3575,27 +3664,27 @@ const kc = sa, na = aa, wc = fr, oa = /* @__PURE__ */ F(class extends O {
3575
3664
  this.setSearchResultsPage(r);
3576
3665
  }
3577
3666
  renderOddPaginationItem(r) {
3578
- return i("li", null, i("button", { class: se("searchcraft-pagination-item", {
3667
+ return l("li", null, l("button", { class: se("searchcraft-pagination-item", {
3579
3668
  "searchcraft-pagination-item-active": this.searchResultsPage === r
3580
3669
  }), onClick: () => this.handleGoToPage(r), type: "button" }, r));
3581
3670
  }
3582
3671
  renderEvenPaginationItem(r) {
3583
3672
  if (!(this.searchResultsPagesCount <= r))
3584
- return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? i("li", null, i("button", { class: se("searchcraft-pagination-item", {
3673
+ return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class: se("searchcraft-pagination-item", {
3585
3674
  "searchcraft-pagination-item-active": this.searchResultsPage === r
3586
- }), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : i("li", null, i("span", { class: "searchcraft-pagination-item" }, "..."));
3675
+ }), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : l("li", null, l("span", { class: "searchcraft-pagination-item" }, "..."));
3587
3676
  }
3588
3677
  renderMiddlePaginationItem() {
3589
3678
  if (!(this.searchResultsPagesCount <= 3))
3590
- return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? i("li", null, i("button", { class: se("searchcraft-pagination-item", {
3679
+ return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class: se("searchcraft-pagination-item", {
3591
3680
  "searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
3592
- }), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : i("li", null, i("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
3681
+ }), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : l("li", null, l("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
3593
3682
  }
3594
3683
  render() {
3595
3684
  if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
3596
- return i("div", { class: "searchcraft-pagination" }, i("div", { class: "searchcraft-pagination-control" }, i("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: i("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("title", null, "Previous page icon"), i("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), i("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), i("div", { class: "searchcraft-pagination-control" }, i("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
3685
+ return l("div", { class: "searchcraft-pagination" }, l("div", { class: "searchcraft-pagination-control" }, l("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: l("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", null, "Previous page icon"), l("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), l("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), l("div", { class: "searchcraft-pagination-control" }, l("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
3597
3686
  this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
3598
- }, label: "Next", iconPosition: "right", icon: i("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("title", null, "Next page icon"), i("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
3687
+ }, label: "Next", iconPosition: "right", icon: l("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", null, "Next page icon"), l("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
3599
3688
  }
3600
3689
  }, [0, "searchcraft-pagination", {
3601
3690
  searchTerm: [32],
@@ -3607,7 +3696,7 @@ const kc = sa, na = aa, wc = fr, oa = /* @__PURE__ */ F(class extends O {
3607
3696
  searchResultsRangeMax: [32],
3608
3697
  setSearchResultsPage: [32]
3609
3698
  }]);
3610
- function xc() {
3699
+ function wc() {
3611
3700
  if (typeof customElements > "u")
3612
3701
  return;
3613
3702
  ["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
@@ -3621,7 +3710,7 @@ function xc() {
3621
3710
  }
3622
3711
  });
3623
3712
  }
3624
- const Ec = oa, ca = xc, ia = /* @__PURE__ */ F(class extends O {
3713
+ const xc = oa, ca = wc, ia = /* @__PURE__ */ D(class extends F {
3625
3714
  constructor() {
3626
3715
  super();
3627
3716
  /**
@@ -3639,10 +3728,10 @@ const Ec = oa, ca = xc, ia = /* @__PURE__ */ F(class extends O {
3639
3728
  d(this, "userAgent");
3640
3729
  d(this, "unsubscribe", () => {
3641
3730
  });
3642
- 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" })));
3643
- 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" })));
3644
- 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" })));
3645
- 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" })));
3731
+ d(this, "renderOptionSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Option key"), l("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" }), l("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" })));
3732
+ d(this, "renderCtrlSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Ctrl key"), l("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" })));
3733
+ d(this, "renderWindowsMetaSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Windows meta key"), l("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" })));
3734
+ d(this, "renderMacMetaSymbol", () => l("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, l("title", null, "Mac meta key"), l("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" })));
3646
3735
  this.__registerHost();
3647
3736
  }
3648
3737
  handleOnClick() {
@@ -3681,18 +3770,18 @@ const Ec = oa, ca = xc, ia = /* @__PURE__ */ F(class extends O {
3681
3770
  }
3682
3771
  }
3683
3772
  renderSkeuomorphicSlot() {
3684
- return i("div", { class: "searchcraft-popover-button-wrapper" }, i("div", { class: "searchcraft-popover-button-input" }, i("svg", { class: "searchcraft-popover-button-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", version: "1.1" }, i("title", null, "Search icon"), i("path", { 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" })), i("span", null, "Search")), i("div", { class: "searchcraft-popover-button-keycaps" }, i("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier" }, i("span", null, this.hotkeyModifierSymbol)), i("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key" }, i("span", null, this.hotkey))));
3773
+ return l("div", { class: "searchcraft-popover-button-wrapper" }, l("div", { class: "searchcraft-popover-button-input" }, l("svg", { class: "searchcraft-popover-button-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", version: "1.1" }, l("title", null, "Search icon"), l("path", { 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" })), l("span", null, "Search")), l("div", { class: "searchcraft-popover-button-keycaps" }, l("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier" }, l("span", null, this.hotkeyModifierSymbol)), l("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key" }, l("span", null, this.hotkey))));
3685
3774
  }
3686
3775
  renderSlot() {
3687
3776
  switch (this.type) {
3688
3777
  case "skeuomorphic":
3689
3778
  return this.renderSkeuomorphicSlot();
3690
3779
  default:
3691
- return i("div", null, i("slot", null));
3780
+ return l("div", null, l("slot", null));
3692
3781
  }
3693
3782
  }
3694
3783
  render() {
3695
- 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");
3784
+ return l("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: St }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
3696
3785
  }
3697
3786
  }, [4, "searchcraft-popover-button", {
3698
3787
  template: [16],
@@ -3714,7 +3803,7 @@ function Rc() {
3714
3803
  }
3715
3804
  });
3716
3805
  }
3717
- const Tc = ia, la = Rc, Pc = /* @__PURE__ */ F(class extends O {
3806
+ const Ec = ia, la = Rc, Tc = /* @__PURE__ */ D(class extends F {
3718
3807
  constructor() {
3719
3808
  super();
3720
3809
  d(this, "searchResultsCount");
@@ -3732,7 +3821,7 @@ const Tc = ia, la = Rc, Pc = /* @__PURE__ */ F(class extends O {
3732
3821
  (r = this.unsubscribe) == null || r.call(this);
3733
3822
  }
3734
3823
  render() {
3735
- return i("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, i("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${Xs(this.searchResultsCount)} Results Found` : " "), i("a", { key: "5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca", class: "searchcraft-popover-footer-link", href: "https://searchcraft.io/", target: "_blank", rel: "noreferrer" }, i("svg", { key: "0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585", class: "searchcraft-popover-footer-link-image", width: "169", height: "16", viewBox: "0 0 169 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("title", { key: "67813a626922d709a4409028cb0f3f1ce3e2cfe8" }, "Powered by Searchcraft"), i("path", { key: "bf9e46a5f9783edd7167c1c5c1256d0200053969", d: "M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z", fill: "currentColor" }))));
3824
+ return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${Xs(this.searchResultsCount)} Results Found` : " "), l("a", { key: "5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca", class: "searchcraft-popover-footer-link", href: "https://searchcraft.io/", target: "_blank", rel: "noreferrer" }, l("svg", { key: "0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585", class: "searchcraft-popover-footer-link-image", width: "169", height: "16", viewBox: "0 0 169 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", { key: "67813a626922d709a4409028cb0f3f1ce3e2cfe8" }, "Powered by Searchcraft"), l("path", { key: "bf9e46a5f9783edd7167c1c5c1256d0200053969", d: "M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z", fill: "currentColor" }))));
3736
3825
  }
3737
3826
  }, [0, "searchcraft-popover-footer", {
3738
3827
  searchResultsCount: [32]
@@ -3743,12 +3832,12 @@ function ua() {
3743
3832
  ["searchcraft-popover-footer"].forEach((t) => {
3744
3833
  switch (t) {
3745
3834
  case "searchcraft-popover-footer":
3746
- customElements.get(t) || customElements.define(t, Pc);
3835
+ customElements.get(t) || customElements.define(t, Tc);
3747
3836
  break;
3748
3837
  }
3749
3838
  });
3750
3839
  }
3751
- const $c = ua, _c = /* @__PURE__ */ F(class extends O {
3840
+ const Pc = ua, $c = /* @__PURE__ */ D(class extends F {
3752
3841
  constructor() {
3753
3842
  super();
3754
3843
  d(this, "item");
@@ -3762,7 +3851,7 @@ const $c = ua, _c = /* @__PURE__ */ F(class extends O {
3762
3851
  d(this, "imageAlt");
3763
3852
  d(this, "handleLinkClick", () => {
3764
3853
  var a;
3765
- const r = $.getState(), s = r.getSearchcraftInstance();
3854
+ const r = $.getState(), s = r.getSearchcraftCore();
3766
3855
  if (s) {
3767
3856
  const o = this.documentPosition, n = r.searchTerm, c = r.searchClientResponseItems.length || 0;
3768
3857
  (a = s.measureClient) == null || a.sendMeasureEvent("document_clicked", {
@@ -3784,7 +3873,7 @@ const $c = ua, _c = /* @__PURE__ */ F(class extends O {
3784
3873
  disconnectedCallback() {
3785
3874
  }
3786
3875
  render() {
3787
- 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))));
3876
+ return l("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, l("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && l("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, l("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), l("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && l("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && l("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
3788
3877
  }
3789
3878
  }, [0, "searchcraft-popover-list-item", {
3790
3879
  item: [16],
@@ -3802,13 +3891,13 @@ function dr() {
3802
3891
  ["searchcraft-popover-list-item"].forEach((t) => {
3803
3892
  switch (t) {
3804
3893
  case "searchcraft-popover-list-item":
3805
- customElements.get(t) || customElements.define(t, _c);
3894
+ customElements.get(t) || customElements.define(t, $c);
3806
3895
  break;
3807
3896
  }
3808
3897
  });
3809
3898
  }
3810
3899
  var Cs;
3811
- const Ac = /* @__PURE__ */ F(class extends O {
3900
+ const _c = /* @__PURE__ */ D(class extends F {
3812
3901
  constructor() {
3813
3902
  super();
3814
3903
  /**
@@ -3828,41 +3917,41 @@ const Ac = /* @__PURE__ */ F(class extends O {
3828
3917
  }
3829
3918
  renderWithADMAds() {
3830
3919
  var r, s;
3831
- return i("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => i("searchcraft-ad", { adClientResponseItem: a, adContainerId: Q(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => i("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
3920
+ return l("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => l("searchcraft-ad", { adClientResponseItem: a, adContainerId: X(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => l("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
3832
3921
  }
3833
3922
  renderWithCustomAds() {
3834
- var h, u, l, p;
3835
- const r = [], s = ((h = this.config) == null ? void 0 : h.customAdInterstitialInterval) || 0, a = ((u = this.config) == null ? void 0 : u.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 || [];
3836
- for (let m = 0; m < o; m++)
3837
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: Q(), key: `${m}-ad` }));
3838
- c.forEach((m, b) => {
3923
+ var h, u, i, p;
3924
+ const r = [], s = ((h = this.config) == null ? void 0 : h.customAdInterstitialInterval) || 0, a = ((u = this.config) == null ? void 0 : u.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
3925
+ for (let g = 0; g < o; g++)
3926
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
3927
+ c.forEach((g, b) => {
3839
3928
  if (s && b % s === 0 && b + s < c.length && b >= s)
3840
3929
  for (let v = 0; v < a; v++)
3841
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: Q(), key: `${m.id}-ad-${v}` }));
3842
- r.push(i("searchcraft-popover-list-item", { item: m, key: m.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + b }));
3930
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g.id}-ad-${v}` }));
3931
+ r.push(l("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + b }));
3843
3932
  });
3844
- for (let m = 0; m < n; m++)
3845
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: Q(), key: `${m}-ad` }));
3846
- return i("div", { class: "searchcraft-popover-list-view" }, r);
3933
+ for (let g = 0; g < n; g++)
3934
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
3935
+ return l("div", { class: "searchcraft-popover-list-view" }, r);
3847
3936
  }
3848
3937
  renderWithNativoAds() {
3849
- var u, l, p, m, b;
3850
- const r = [], s = ((u = this.config) == null ? void 0 : u.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, h = this.searchClientResponseItems || [];
3938
+ var u, i, p, g, b;
3939
+ const r = [], s = ((u = this.config) == null ? void 0 : u.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, h = this.searchClientResponseItems || [];
3851
3940
  for (let v = 0; v < n; v++)
3852
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: Q(), key: `${v}-ad` }));
3941
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${v}-ad` }));
3853
3942
  h.forEach((v, T) => {
3854
3943
  if (a && (T + s) % a === 0 && T + a < h.length && T >= a)
3855
- for (let H = 0; H < o; H++)
3856
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: Q(), key: `${v.id}-ad-${H}` }));
3857
- r.push(i("searchcraft-popover-list-item", { item: v, key: v.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + T }));
3944
+ for (let _ = 0; _ < o; _++)
3945
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${v.id}-ad-${_}` }));
3946
+ r.push(l("searchcraft-popover-list-item", { item: v, key: v.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + T }));
3858
3947
  });
3859
3948
  for (let v = 0; v < c; v++)
3860
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: Q(), key: `${v}-ad` }));
3861
- return i("div", { class: "searchcraft-popover-list-view" }, r);
3949
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${v}-ad` }));
3950
+ return l("div", { class: "searchcraft-popover-list-view" }, r);
3862
3951
  }
3863
3952
  renderWithNoAds() {
3864
3953
  var r;
3865
- return i("div", { class: "searchcraft-popover-list-view" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((s, a) => i("searchcraft-popover-list-item", { item: s, key: s.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + a })));
3954
+ return l("div", { class: "searchcraft-popover-list-view" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((s, a) => l("searchcraft-popover-list-item", { item: s, key: s.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + a })));
3866
3955
  }
3867
3956
  render() {
3868
3957
  var r;
@@ -3890,7 +3979,7 @@ function ha() {
3890
3979
  ["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
3891
3980
  switch (t) {
3892
3981
  case "searchcraft-popover-list-view":
3893
- customElements.get(t) || customElements.define(t, Ac);
3982
+ customElements.get(t) || customElements.define(t, _c);
3894
3983
  break;
3895
3984
  case "searchcraft-ad":
3896
3985
  customElements.get(t) || kt();
@@ -3901,7 +3990,7 @@ function ha() {
3901
3990
  }
3902
3991
  });
3903
3992
  }
3904
- const fa = /* @__PURE__ */ F(class extends O {
3993
+ const fa = /* @__PURE__ */ D(class extends F {
3905
3994
  constructor() {
3906
3995
  super();
3907
3996
  /**
@@ -4032,21 +4121,21 @@ const fa = /* @__PURE__ */ F(class extends O {
4032
4121
  }
4033
4122
  renderInlinePopover() {
4034
4123
  const r = this.hasResultsToShow && this.isFocused;
4035
- return i("div", { class: se("searchcraft-popover-form searchcraft-popover-form-inline", {
4124
+ return l("div", { class: se("searchcraft-popover-form searchcraft-popover-form-inline", {
4036
4125
  "searchcraft-popover-form-active": r
4037
- }) }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-inline-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) })), r && i("div", { class: "searchcraft-popover-form-inline-wrapper" }, 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)));
4126
+ }) }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-inline-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) })), r && l("div", { class: "searchcraft-popover-form-inline-wrapper" }, l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }), l("searchcraft-popover-footer", null)));
4038
4127
  }
4039
4128
  renderModalPopover() {
4040
4129
  if (this.isPopoverVisibleInState)
4041
- return i("div", { class: se("searchcraft-popover-form searchcraft-popover-form-modal", {
4130
+ return l("div", { class: se("searchcraft-popover-form searchcraft-popover-form-modal", {
4042
4131
  "searchcraft-popover-form-active": this.hasResultsToShow
4043
- }) }, 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)));
4132
+ }) }, l("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), l("div", { class: "searchcraft-popover-form-modal-wrapper" }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), l("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), l("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), l("searchcraft-popover-footer", null)));
4044
4133
  }
4045
4134
  renderFullscreenPopover() {
4046
4135
  if (this.isPopoverVisibleInState)
4047
- return i("div", { class: se("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
4136
+ return l("div", { class: se("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
4048
4137
  "searchcraft-popover-form-active": this.hasResultsToShow
4049
- }) }, 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));
4138
+ }) }, l("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, l("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), l("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), l("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && l("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), l("searchcraft-popover-footer", null));
4050
4139
  }
4051
4140
  render() {
4052
4141
  switch (this.type) {
@@ -4114,7 +4203,7 @@ function da() {
4114
4203
  }
4115
4204
  });
4116
4205
  }
4117
- const Ic = fa, pa = da, Mc = dr, Lc = ha, ma = /* @__PURE__ */ F(class extends O {
4206
+ const Ic = fa, pa = da, Ac = dr, Mc = ha, ma = /* @__PURE__ */ D(class extends F {
4118
4207
  constructor() {
4119
4208
  super();
4120
4209
  /**
@@ -4143,7 +4232,7 @@ const Ic = fa, pa = da, Mc = dr, Lc = ha, ma = /* @__PURE__ */ F(class extends O
4143
4232
  this.unsubscribe && this.unsubscribe();
4144
4233
  }
4145
4234
  render() {
4146
- return !this.searchTerm || this.searchResultsCount === 0 ? null : i("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
4235
+ return !this.searchTerm || this.searchResultsCount === 0 ? null : l("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
4147
4236
  range: [Number(this.range[0]), Number(this.range[1])],
4148
4237
  count: this.count,
4149
4238
  responseTime: this.responseTime
@@ -4159,7 +4248,7 @@ const Ic = fa, pa = da, Mc = dr, Lc = ha, ma = /* @__PURE__ */ F(class extends O
4159
4248
  range: [32],
4160
4249
  responseTime: [32]
4161
4250
  }]);
4162
- function Oc() {
4251
+ function Lc() {
4163
4252
  if (typeof customElements > "u")
4164
4253
  return;
4165
4254
  ["searchcraft-results-info"].forEach((t) => {
@@ -4170,7 +4259,7 @@ function Oc() {
4170
4259
  }
4171
4260
  });
4172
4261
  }
4173
- const Fc = ma, ga = Oc, Dc = /* @__PURE__ */ F(class extends O {
4262
+ const Oc = ma, ga = Lc, Fc = /* @__PURE__ */ D(class extends F {
4174
4263
  constructor() {
4175
4264
  super();
4176
4265
  d(this, "item");
@@ -4188,12 +4277,12 @@ const Fc = ma, ga = Oc, Dc = /* @__PURE__ */ F(class extends O {
4188
4277
  d(this, "template");
4189
4278
  d(this, "templateHtml");
4190
4279
  d(this, "handleResultContainerClick", (r) => {
4191
- var l;
4192
- const s = $.getState(), a = s.getSearchcraftInstance();
4280
+ var i;
4281
+ const s = $.getState(), a = s.getSearchcraftCore();
4193
4282
  if (!r.target)
4194
4283
  return;
4195
4284
  const n = r.target.closest("a");
4196
- if (!n || !((l = this.hostElement) != null && l.contains(n)) || !a || !a.measureClient)
4285
+ if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
4197
4286
  return;
4198
4287
  const c = this.documentPosition, h = s.searchTerm, u = s.searchClientResponseItems.length || 0;
4199
4288
  a.measureClient.sendMeasureEvent("document_clicked", {
@@ -4217,12 +4306,12 @@ const Fc = ma, ga = Oc, Dc = /* @__PURE__ */ F(class extends O {
4217
4306
  html: St
4218
4307
  });
4219
4308
  } catch (s) {
4220
- console.error(`Invalid search result template: ${s}`);
4309
+ console.error("Invalid search result template:", s);
4221
4310
  }
4222
4311
  }
4223
4312
  render() {
4224
4313
  if (this.item)
4225
- return typeof this.template > "u" ? i("div", { class: "searchcraft-search-result searchcraft-search-result-no-template", onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown }, Object.entries(this.item.document).map(([r, s]) => i("p", { key: r }, i("strong", null, r), ": ", s))) : i("div", { class: "searchcraft-search-result", innerHTML: this.templateHtml, onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown });
4314
+ return typeof this.template > "u" ? l("div", { class: "searchcraft-search-result searchcraft-search-result-no-template", onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown }, Object.entries(this.item.document).map(([r, s]) => l("p", { key: r }, l("strong", null, r), ": ", s))) : l("div", { class: "searchcraft-search-result", innerHTML: this.templateHtml, onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown });
4226
4315
  }
4227
4316
  }, [0, "searchcraft-search-result", {
4228
4317
  item: [16],
@@ -4237,34 +4326,40 @@ function va() {
4237
4326
  ["searchcraft-search-result"].forEach((t) => {
4238
4327
  switch (t) {
4239
4328
  case "searchcraft-search-result":
4240
- customElements.get(t) || customElements.define(t, Dc);
4329
+ customElements.get(t) || customElements.define(t, Fc);
4241
4330
  break;
4242
4331
  }
4243
4332
  });
4244
4333
  }
4245
- const Nc = va, ba = /* @__PURE__ */ F(class extends O {
4334
+ const Dc = va, ba = /* @__PURE__ */ D(class extends F {
4246
4335
  constructor() {
4247
4336
  super();
4337
+ /**
4338
+ * A query that will appears when the component initializes or the search term is ''..
4339
+ */
4340
+ d(this, "initialQuery");
4248
4341
  /**
4249
4342
  * A callback function responsible for rendering a result. Passed to `searchcraft-search-result`.
4250
4343
  */
4251
4344
  d(this, "template");
4252
- d(this, "searchTerm", "");
4253
- d(this, "searchClientResponseItems");
4254
4345
  d(this, "adClientResponseItems", []);
4255
- d(this, "searchResultsPerPage");
4256
- d(this, "searchResultsPage");
4257
- d(this, "isSearchInProgress", !0);
4258
4346
  d(this, "config");
4347
+ d(this, "initialSearchClientResponseItems");
4348
+ d(this, "isSearchInProgress", !0);
4349
+ d(this, "searchClientResponseItems");
4350
+ d(this, "searchResultsPage");
4351
+ d(this, "searchResultsPerPage");
4352
+ d(this, "searchTerm", "");
4259
4353
  d(this, "unsubscribe", () => {
4260
4354
  });
4261
4355
  this.__registerHost();
4262
4356
  }
4263
4357
  componentDidLoad() {
4264
4358
  var s;
4265
- this.unsubscribe = $.subscribe((a) => this.handleStateChange(a));
4266
4359
  const r = $.getState();
4267
- this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (s = r.core) == null ? void 0 : s.config;
4360
+ this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (s = r.core) == null ? void 0 : s.config, r.afterInit = (a) => {
4361
+ this.initialQuery && a.setInitialQuery(this.initialQuery);
4362
+ }, this.unsubscribe = $.subscribe((a) => this.handleStateChange(a));
4268
4363
  }
4269
4364
  disconnectedCallback() {
4270
4365
  var r;
@@ -4272,59 +4367,64 @@ const Nc = va, ba = /* @__PURE__ */ F(class extends O {
4272
4367
  }
4273
4368
  handleStateChange(r) {
4274
4369
  var s;
4275
- 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;
4370
+ this.adClientResponseItems = [...r.adClientResponseItems], this.config = (s = r.core) == null ? void 0 : s.config, this.initialSearchClientResponseItems = [
4371
+ ...r.initialSearchClientResponseItems
4372
+ ], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
4276
4373
  }
4277
4374
  renderEmptyState() {
4278
- return i("div", { class: "searchcraft-search-results-empty-state" }, i("slot", { name: "empty-search" }));
4375
+ return l("div", { class: "searchcraft-search-results-empty-state" }, l("slot", { name: "empty-search" }));
4279
4376
  }
4280
4377
  renderNoResultsFoundState() {
4281
- 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.')));
4378
+ return l("div", { class: "searchcraft-search-results" }, l("div", { class: "searchcraft-search-results-error-message" }, l("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
4282
4379
  }
4283
4380
  renderWithADMAds() {
4284
- var r, s;
4285
- return i("div", { class: "searchcraft-search-results" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => i("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: a, adContainerId: Q(), 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 })));
4381
+ var s, a, o;
4382
+ const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4383
+ return l("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => l("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: X(), key: n.id })), r.map((n, c) => l("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
4286
4384
  }
4287
4385
  renderWithCustomAds() {
4288
- var h, u, l, p;
4289
- const r = [], s = ((h = this.config) == null ? void 0 : h.customAdInterstitialInterval) || 0, a = ((u = this.config) == null ? void 0 : u.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 || [];
4290
- for (let m = 0; m < o; m++)
4291
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: Q(), key: `${m}-ad` }));
4292
- c.forEach((m, b) => {
4293
- if (s && b % s === 0 && b + s < c.length && b >= s)
4294
- for (let v = 0; v < a; v++)
4295
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: Q(), key: `${m.id}-ad-${v}` }));
4296
- r.push(i("searchcraft-search-result", { key: m.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + b, index: b, item: m, template: this.template }));
4386
+ var h, u, i, p, g, b;
4387
+ const r = [], s = ((h = this.config) == null ? void 0 : h.customAdInterstitialInterval) || 0, a = ((u = this.config) == null ? void 0 : u.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (g = this.searchClientResponseItems) != null && g.length ? this.searchClientResponseItems : (b = this.initialSearchClientResponseItems) != null && b.length ? this.initialSearchClientResponseItems : [];
4388
+ for (let v = 0; v < o; v++)
4389
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${v}-ad` }));
4390
+ c.forEach((v, T) => {
4391
+ if (s && T % s === 0 && T + s < c.length && T >= s)
4392
+ for (let _ = 0; _ < a; _++)
4393
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${v.id}-ad-${_}` }));
4394
+ r.push(l("searchcraft-search-result", { key: v.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + T, index: T, item: v, template: this.template }));
4297
4395
  });
4298
- for (let m = 0; m < n; m++)
4299
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: Q(), key: `${m}-ad` }));
4300
- return i("div", { class: "searchcraft-search-results" }, r);
4396
+ for (let v = 0; v < n; v++)
4397
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${v}-ad` }));
4398
+ return l("div", { class: "searchcraft-search-results" }, r);
4301
4399
  }
4302
4400
  renderWithNativoAds() {
4303
- var u, l, p, m, b;
4304
- const r = [], s = ((u = this.config) == null ? void 0 : u.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, h = this.searchClientResponseItems || [];
4305
- for (let v = 0; v < n; v++)
4306
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: Q(), key: `${v}-ad` }));
4307
- h.forEach((v, T) => {
4308
- if (a && (T + s) % a === 0 && T + a < h.length && T >= a)
4309
- for (let H = 0; H < o; H++)
4310
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: Q(), key: `${v.id}-ad-${H}` }));
4311
- r.push(i("searchcraft-search-result", { key: v.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + T, index: T, item: v, template: this.template }));
4401
+ var u, i, p, g, b, v, T;
4402
+ const r = [], s = ((u = this.config) == null ? void 0 : u.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, h = (v = this.searchClientResponseItems) != null && v.length ? this.searchClientResponseItems : (T = this.initialSearchClientResponseItems) != null && T.length ? this.initialSearchClientResponseItems : [];
4403
+ for (let _ = 0; _ < n; _++)
4404
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
4405
+ h.forEach((_, N) => {
4406
+ if (a && (N + s) % a === 0 && N + a < h.length && N >= a)
4407
+ for (let I = 0; I < o; I++)
4408
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${I}` }));
4409
+ r.push(l("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + N, index: N, item: _, template: this.template }));
4312
4410
  });
4313
- for (let v = 0; v < c; v++)
4314
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: Q(), key: `${v}-ad` }));
4315
- return i("div", { class: "searchcraft-search-results" }, r);
4411
+ for (let _ = 0; _ < c; _++)
4412
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
4413
+ return l("div", { class: "searchcraft-search-results" }, r);
4316
4414
  }
4317
4415
  renderWithNoAds() {
4318
- var r;
4319
- 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 })));
4416
+ var s, a;
4417
+ const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4418
+ return l("div", { class: "searchcraft-search-results" }, r.map((o, n) => l("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
4320
4419
  }
4321
4420
  render() {
4322
- var r;
4323
- if (this.searchTerm.trim() === "")
4421
+ var a;
4422
+ const r = this.searchClientResponseItems || [], s = this.initialSearchClientResponseItems || [];
4423
+ if (this.searchTerm === "" && s.length === 0 && !this.isSearchInProgress)
4324
4424
  return this.renderEmptyState();
4325
- if (this.searchTerm.length > 0 && (this.searchClientResponseItems || []).length === 0 && !this.isSearchInProgress)
4425
+ if (this.searchTerm.length > 0 && r.length === 0 && !this.isSearchInProgress)
4326
4426
  return this.renderNoResultsFoundState();
4327
- switch (((r = this.config) == null ? void 0 : r.adSource) || "None") {
4427
+ switch (((a = this.config) == null ? void 0 : a.adSource) || "None") {
4328
4428
  case "adMarketplace":
4329
4429
  return this.renderWithADMAds();
4330
4430
  case "Custom":
@@ -4336,16 +4436,18 @@ const Nc = va, ba = /* @__PURE__ */ F(class extends O {
4336
4436
  }
4337
4437
  }
4338
4438
  }, [4, "searchcraft-search-results", {
4439
+ initialQuery: [1, "initial-query"],
4339
4440
  template: [16],
4340
- searchTerm: [32],
4341
- searchClientResponseItems: [32],
4342
4441
  adClientResponseItems: [32],
4343
- searchResultsPerPage: [32],
4344
- searchResultsPage: [32],
4442
+ config: [32],
4443
+ initialSearchClientResponseItems: [32],
4345
4444
  isSearchInProgress: [32],
4346
- config: [32]
4445
+ searchClientResponseItems: [32],
4446
+ searchResultsPage: [32],
4447
+ searchResultsPerPage: [32],
4448
+ searchTerm: [32]
4347
4449
  }]);
4348
- function Hc() {
4450
+ function Nc() {
4349
4451
  if (typeof customElements > "u")
4350
4452
  return;
4351
4453
  ["searchcraft-search-results", "searchcraft-ad", "searchcraft-error-message", "searchcraft-search-result"].forEach((t) => {
@@ -4365,7 +4467,7 @@ function Hc() {
4365
4467
  }
4366
4468
  });
4367
4469
  }
4368
- const Uc = ba, ya = Hc, zc = /* @__PURE__ */ F(class extends O {
4470
+ const Hc = ba, ya = Nc, Uc = /* @__PURE__ */ D(class extends F {
4369
4471
  constructor() {
4370
4472
  super();
4371
4473
  /**
@@ -4408,13 +4510,13 @@ const Uc = ba, ya = Hc, zc = /* @__PURE__ */ F(class extends O {
4408
4510
  d(this, "handleSelectChange", (r) => {
4409
4511
  this.selectChange.emit(r.target.value);
4410
4512
  });
4411
- this.__registerHost(), this.selectChange = be(this, "selectChange");
4513
+ this.__registerHost(), this.selectChange = ye(this, "selectChange");
4412
4514
  }
4413
4515
  handleGoToPage(r) {
4414
4516
  this.setSearchResultsPage(r);
4415
4517
  }
4416
4518
  render() {
4417
- return i("div", { key: "15ecbf48c824a161cd83bdab99dace8e44f1ab39", class: "searchcraft-select" }, this.label && i("label", { key: "aba433ae9c27c9405099cffcef923c3ad22d7fda", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), i("div", { key: "8df8a2ff05924c9c55cdd6e3827cd927cddab82a", class: "searchcraft-select-input-wrapper" }, i("select", { key: "1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: s, selected: a }) => i("option", { key: s, value: s, selected: a }, r))), i("svg", { key: "0ec6892b529f2e70027aadea47208582a65a97b7", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("title", { key: "bced6b62378491d1d1c629b602d7d033d912c761" }, "Select dropdown icon"), i("path", { key: "659f8ebf9129e2e7941da949d29688c41c1472bb", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && i("p", { key: "51217d926f68f79b6c3514f5fd769b56549fdce9", class: "searchcraft-select-caption" }, this.caption));
4519
+ return l("div", { key: "15ecbf48c824a161cd83bdab99dace8e44f1ab39", class: "searchcraft-select" }, this.label && l("label", { key: "aba433ae9c27c9405099cffcef923c3ad22d7fda", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), l("div", { key: "8df8a2ff05924c9c55cdd6e3827cd927cddab82a", class: "searchcraft-select-input-wrapper" }, l("select", { key: "1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: s, selected: a }) => l("option", { key: s, value: s, selected: a }, r))), l("svg", { key: "0ec6892b529f2e70027aadea47208582a65a97b7", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, l("title", { key: "bced6b62378491d1d1c629b602d7d033d912c761" }, "Select dropdown icon"), l("path", { key: "659f8ebf9129e2e7941da949d29688c41c1472bb", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && l("p", { key: "51217d926f68f79b6c3514f5fd769b56549fdce9", class: "searchcraft-select-caption" }, this.caption));
4418
4520
  }
4419
4521
  }, [0, "searchcraft-select", {
4420
4522
  caption: [1],
@@ -4434,12 +4536,12 @@ function Ca() {
4434
4536
  ["searchcraft-select"].forEach((t) => {
4435
4537
  switch (t) {
4436
4538
  case "searchcraft-select":
4437
- customElements.get(t) || customElements.define(t, zc);
4539
+ customElements.get(t) || customElements.define(t, Uc);
4438
4540
  break;
4439
4541
  }
4440
4542
  });
4441
4543
  }
4442
- const Sa = /* @__PURE__ */ F(class extends O {
4544
+ const Sa = /* @__PURE__ */ D(class extends F {
4443
4545
  constructor() {
4444
4546
  super();
4445
4547
  /**
@@ -4475,7 +4577,7 @@ const Sa = /* @__PURE__ */ F(class extends O {
4475
4577
  }
4476
4578
  render() {
4477
4579
  if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
4478
- return i("div", { class: "searchcraft-search-results-per-page" }, i("div", { class: "searchcraft-search-results-per-page-select" }, i("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), i("div", { class: "searchcraft-search-results-per-page-select-input" }, i("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, s) => {
4580
+ return l("div", { class: "searchcraft-search-results-per-page" }, l("div", { class: "searchcraft-search-results-per-page-select" }, l("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), l("div", { class: "searchcraft-search-results-per-page-select-input" }, l("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, s) => {
4479
4581
  const a = this.initialSearchResultsPerPage + Number(this.increment) * s;
4480
4582
  return {
4481
4583
  label: `${a}`,
@@ -4496,7 +4598,7 @@ const Sa = /* @__PURE__ */ F(class extends O {
4496
4598
  setSearchResultsPerPage: [32],
4497
4599
  setSearchResultsPage: [32]
4498
4600
  }]);
4499
- function jc() {
4601
+ function zc() {
4500
4602
  if (typeof customElements > "u")
4501
4603
  return;
4502
4604
  ["searchcraft-search-results-per-page", "searchcraft-select"].forEach((t) => {
@@ -4510,16 +4612,16 @@ function jc() {
4510
4612
  }
4511
4613
  });
4512
4614
  }
4513
- const Vc = Sa, ka = jc, Bc = Ca, Wc = Js, Gc = `[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 */
4514
- `, wa = /* @__PURE__ */ F(class extends O {
4615
+ const jc = Sa, ka = zc, Vc = Ca, Bc = Js, Wc = `[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 */
4616
+ `, wa = /* @__PURE__ */ D(class extends F {
4515
4617
  constructor() {
4516
4618
  super(), this.__registerHost();
4517
4619
  }
4518
4620
  render() {
4519
- return i("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, Gc);
4621
+ return l("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, Wc);
4520
4622
  }
4521
4623
  }, [0, "searchcraft-theme"]);
4522
- function qc() {
4624
+ function Gc() {
4523
4625
  if (typeof customElements > "u")
4524
4626
  return;
4525
4627
  ["searchcraft-theme"].forEach((t) => {
@@ -4530,117 +4632,117 @@ function qc() {
4530
4632
  }
4531
4633
  });
4532
4634
  }
4533
- const Yc = wa, xa = qc, Zc = ea, Kc = () => {
4534
- nc(), cc(), lc(), mc(), ra(), na(), wc(), ca(), la(), $c(), pa(), Mc(), Lc(), ga(), Nc(), ka(), ya(), Bc(), Wc(), xa(), Zc();
4635
+ const qc = wa, xa = Gc, Yc = ea, Zc = () => {
4636
+ ac(), oc(), ic(), pc(), ra(), na(), kc(), ca(), la(), Pc(), pa(), Ac(), Mc(), ga(), Dc(), ka(), ya(), Vc(), Bc(), xa(), Yc();
4535
4637
  };
4536
- globalThis.__scDefineCustomElements__ = Kc;
4537
- const Qc = "@searchcraft/react-sdk", Xc = "0.10.1", vs = {
4638
+ globalThis.__scDefineCustomElements__ = Zc;
4639
+ const Qc = "@searchcraft/react-sdk", Kc = "0.10.2", vs = {
4538
4640
  name: Qc,
4539
- version: Xc
4641
+ version: Kc
4540
4642
  };
4541
4643
  /**
4542
4644
  * @license
4543
4645
  * Copyright 2018 Google LLC
4544
4646
  * SPDX-License-Identifier: BSD-3-Clause
4545
4647
  */
4546
- const Jc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), bs = /* @__PURE__ */ new WeakMap(), ys = (e, t, r, s, a) => {
4648
+ const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), bs = /* @__PURE__ */ new WeakMap(), ys = (e, t, r, s, a) => {
4547
4649
  const o = a == null ? void 0 : a[t];
4548
4650
  o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, c, h) => {
4549
4651
  let u = bs.get(n);
4550
4652
  u === void 0 && bs.set(n, u = /* @__PURE__ */ new Map());
4551
- let l = u.get(c);
4552
- h !== void 0 ? l === void 0 ? (u.set(c, l = { handleEvent: h }), n.addEventListener(c, l)) : l.handleEvent = h : l !== void 0 && (u.delete(c), n.removeEventListener(c, l));
4653
+ let i = u.get(c);
4654
+ h !== void 0 ? i === void 0 ? (u.set(c, i = { handleEvent: h }), n.addEventListener(c, i)) : i.handleEvent = h : i !== void 0 && (u.delete(c), n.removeEventListener(c, i));
4553
4655
  })(e, o, r);
4554
- }, ei = ({ react: e, tagName: t, elementClass: r, events: s, displayName: a }) => {
4656
+ }, Jc = ({ react: e, tagName: t, elementClass: r, events: s, displayName: a }) => {
4555
4657
  const o = new Set(Object.keys(s ?? {})), n = e.forwardRef((c, h) => {
4556
- const u = e.useRef(/* @__PURE__ */ new Map()), l = e.useRef(null), p = {}, m = {};
4557
- for (const [b, v] of Object.entries(c)) Jc.has(b) ? p[b === "className" ? "class" : b] = v : o.has(b) || b in r.prototype ? m[b] = v : p[b] = v;
4658
+ const u = e.useRef(/* @__PURE__ */ new Map()), i = e.useRef(null), p = {}, g = {};
4659
+ for (const [b, v] of Object.entries(c)) Xc.has(b) ? p[b === "className" ? "class" : b] = v : o.has(b) || b in r.prototype ? g[b] = v : p[b] = v;
4558
4660
  return e.useLayoutEffect(() => {
4559
- if (l.current === null) return;
4661
+ if (i.current === null) return;
4560
4662
  const b = /* @__PURE__ */ new Map();
4561
- for (const v in m) ys(l.current, v, c[v], u.current.get(v), s), u.current.delete(v), b.set(v, c[v]);
4562
- for (const [v, T] of u.current) ys(l.current, v, void 0, T, s);
4663
+ for (const v in g) ys(i.current, v, c[v], u.current.get(v), s), u.current.delete(v), b.set(v, c[v]);
4664
+ for (const [v, T] of u.current) ys(i.current, v, void 0, T, s);
4563
4665
  u.current = b;
4564
4666
  }), e.useLayoutEffect(() => {
4565
4667
  var b;
4566
- (b = l.current) == null || b.removeAttribute("defer-hydration");
4668
+ (b = i.current) == null || b.removeAttribute("defer-hydration");
4567
4669
  }, []), p.suppressHydrationWarning = !0, e.createElement(t, { ...p, ref: e.useCallback((b) => {
4568
- l.current = b, typeof h == "function" ? h(b) : h !== null && (h.current = b);
4670
+ i.current = b, typeof h == "function" ? h(b) : h !== null && (h.current = b);
4569
4671
  }, [h]) });
4570
4672
  });
4571
4673
  return n.displayName = a ?? r.name, n;
4572
- }, ve = ({
4674
+ }, be = ({
4573
4675
  defineCustomElement: e,
4574
4676
  ...t
4575
- }) => (typeof e < "u" && e(), ei(t)), ti = /* @__PURE__ */ ve({
4677
+ }) => (typeof e < "u" && e(), Jc(t)), ei = /* @__PURE__ */ be({
4576
4678
  tagName: "searchcraft-filter-panel",
4577
- elementClass: Cc,
4679
+ elementClass: yc,
4578
4680
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4579
- react: ge,
4681
+ react: ve,
4580
4682
  events: {},
4581
4683
  defineCustomElement: ra
4582
- }), ri = /* @__PURE__ */ ve({
4684
+ }), ti = /* @__PURE__ */ be({
4583
4685
  tagName: "searchcraft-input-form",
4584
- elementClass: kc,
4686
+ elementClass: Sc,
4585
4687
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4586
- react: ge,
4688
+ react: ve,
4587
4689
  events: {
4588
4690
  onInputFocus: "inputFocus",
4589
4691
  onInputBlur: "inputBlur",
4590
4692
  onInputInit: "inputInit"
4591
4693
  },
4592
4694
  defineCustomElement: na
4593
- }), si = /* @__PURE__ */ ve({
4695
+ }), ri = /* @__PURE__ */ be({
4594
4696
  tagName: "searchcraft-pagination",
4595
- elementClass: Ec,
4697
+ elementClass: xc,
4596
4698
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4597
- react: ge,
4699
+ react: ve,
4598
4700
  events: {},
4599
4701
  defineCustomElement: ca
4600
- }), ai = /* @__PURE__ */ ve({
4702
+ }), si = /* @__PURE__ */ be({
4601
4703
  tagName: "searchcraft-popover-button",
4602
- elementClass: Tc,
4704
+ elementClass: Ec,
4603
4705
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4604
- react: ge,
4706
+ react: ve,
4605
4707
  events: {},
4606
4708
  defineCustomElement: la
4607
- }), ni = /* @__PURE__ */ ve({
4709
+ }), ai = /* @__PURE__ */ be({
4608
4710
  tagName: "searchcraft-popover-form",
4609
4711
  elementClass: Ic,
4610
4712
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4611
- react: ge,
4713
+ react: ve,
4612
4714
  events: {},
4613
4715
  defineCustomElement: pa
4614
- }), oi = /* @__PURE__ */ ve({
4716
+ }), ni = /* @__PURE__ */ be({
4615
4717
  tagName: "searchcraft-results-info",
4616
- elementClass: Fc,
4718
+ elementClass: Oc,
4617
4719
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4618
- react: ge,
4720
+ react: ve,
4619
4721
  events: {},
4620
4722
  defineCustomElement: ga
4621
- }), ci = /* @__PURE__ */ ve({
4723
+ }), oi = /* @__PURE__ */ be({
4622
4724
  tagName: "searchcraft-search-results",
4623
- elementClass: Uc,
4725
+ elementClass: Hc,
4624
4726
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4625
- react: ge,
4727
+ react: ve,
4626
4728
  events: {},
4627
4729
  defineCustomElement: ya
4628
- }), ii = /* @__PURE__ */ ve({
4730
+ }), ci = /* @__PURE__ */ be({
4629
4731
  tagName: "searchcraft-search-results-per-page",
4630
- elementClass: Vc,
4732
+ elementClass: jc,
4631
4733
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4632
- react: ge,
4734
+ react: ve,
4633
4735
  events: {},
4634
4736
  defineCustomElement: ka
4635
- }), li = /* @__PURE__ */ ve({
4737
+ }), ii = /* @__PURE__ */ be({
4636
4738
  tagName: "searchcraft-theme",
4637
- elementClass: Yc,
4739
+ elementClass: qc,
4638
4740
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4639
- react: ge,
4741
+ react: ve,
4640
4742
  events: {},
4641
4743
  defineCustomElement: xa
4642
- }), Li = (e) => /* @__PURE__ */ me(ti, { ...e }), Oi = (e) => /* @__PURE__ */ me(ri, { ...e }), Fi = (e) => /* @__PURE__ */ me(ai, { ...e }), Di = (e) => /* @__PURE__ */ me(ni, { ...e }), Ni = (e) => /* @__PURE__ */ me(oi, { ...e }), Hi = (e) => /* @__PURE__ */ me(li, { ...e }), Ui = (e) => /* @__PURE__ */ me(si, { ...e }), zi = (e) => /* @__PURE__ */ me(ii, { ...e }), ji = (e) => /* @__PURE__ */ me(ci, { ...e });
4643
- class Vi extends Oo {
4744
+ }), Mi = (e) => /* @__PURE__ */ ge(ei, { ...e }), Li = (e) => /* @__PURE__ */ ge(ti, { ...e }), Oi = (e) => /* @__PURE__ */ ge(si, { ...e }), Fi = (e) => /* @__PURE__ */ ge(ai, { ...e }), Di = (e) => /* @__PURE__ */ ge(ni, { ...e }), Ni = (e) => /* @__PURE__ */ ge(ii, { ...e }), Hi = (e) => /* @__PURE__ */ ge(ri, { ...e }), Ui = (e) => /* @__PURE__ */ ge(ci, { ...e }), zi = (e) => /* @__PURE__ */ ge(oi, { ...e });
4745
+ class ji extends Lo {
4644
4746
  constructor(t) {
4645
4747
  super(t, {
4646
4748
  sdkName: vs.name,
@@ -4649,16 +4751,16 @@ class Vi extends Oo {
4649
4751
  }
4650
4752
  }
4651
4753
  export {
4652
- Vi as Searchcraft,
4653
- Li as SearchcraftFilterPanel,
4654
- Oi as SearchcraftInputForm,
4655
- Ui as SearchcraftPagination,
4656
- Fi as SearchcraftPopoverButton,
4657
- Di as SearchcraftPopoverForm,
4658
- Ni as SearchcraftResultsInfo,
4659
- ji as SearchcraftSearchResults,
4660
- zi as SearchcraftSearchResultsPerPage,
4661
- Hi as SearchcraftTheme,
4662
- Kc as defineCustomElements
4754
+ ji as Searchcraft,
4755
+ Mi as SearchcraftFilterPanel,
4756
+ Li as SearchcraftInputForm,
4757
+ Hi as SearchcraftPagination,
4758
+ Oi as SearchcraftPopoverButton,
4759
+ Fi as SearchcraftPopoverForm,
4760
+ Di as SearchcraftResultsInfo,
4761
+ zi as SearchcraftSearchResults,
4762
+ Ui as SearchcraftSearchResultsPerPage,
4763
+ Ni as SearchcraftTheme,
4764
+ Zc as defineCustomElements
4663
4765
  };
4664
4766
  //# sourceMappingURL=index.js.map