@searchcraft/vue-sdk 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,15 +1,15 @@
1
- var Za = Object.defineProperty;
2
- var Qa = (e, t, r) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var d = (e, t, r) => Qa(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { defineComponent as Ka, ref as Xa, getCurrentInstance as Ja, inject as en, h as tn } from "vue";
5
- const rn = "searchcraft-javascript-sdk", Ne = (
1
+ var Qa = Object.defineProperty;
2
+ var Ka = (e, t, r) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var f = (e, t, r) => Ka(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { defineComponent as Xa, ref as Ja, getCurrentInstance as en, inject as tn, h as rn } from "vue";
5
+ const sn = "searchcraft-javascript-sdk", Ne = (
6
6
  /* searchcraft-javascript-sdk */
7
7
  { experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
8
8
  );
9
- var sn = Object.defineProperty, an = (e, t) => {
9
+ var an = Object.defineProperty, nn = (e, t) => {
10
10
  for (var r in t)
11
- sn(e, r, { get: t[r], enumerable: !0 });
12
- }, nn = "http://www.w3.org/2000/svg", on = "http://www.w3.org/1999/xhtml", cn = (e, t) => {
11
+ an(e, r, { get: t[r], enumerable: !0 });
12
+ }, on = "http://www.w3.org/2000/svg", cn = "http://www.w3.org/1999/xhtml", ln = (e, t) => {
13
13
  var r;
14
14
  const s = t.$cmpMeta$;
15
15
  Object.entries((r = s.$members$) != null ? r : {}).map(([o, [n]]) => {
@@ -27,7 +27,7 @@ var sn = Object.defineProperty, an = (e, t) => {
27
27
  }), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
28
28
  }
29
29
  });
30
- }, Jt = /* @__PURE__ */ new WeakMap(), ln = (e) => Jt.delete(e), ke = (e) => Jt.get(e), un = (e, t) => {
30
+ }, er = /* @__PURE__ */ new WeakMap(), un = (e) => er.delete(e), ke = (e) => er.get(e), hn = (e, t) => {
31
31
  const r = {
32
32
  $flags$: 0,
33
33
  $hostElement$: e,
@@ -35,9 +35,9 @@ var sn = Object.defineProperty, an = (e, t) => {
35
35
  $instanceValues$: /* @__PURE__ */ new Map()
36
36
  };
37
37
  r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
38
- const s = Jt.set(e, r);
39
- return cn(e, r), s;
40
- }, Kr = (e, t) => t in e, Ct = (e, t) => (0, console.error)(e, t), St = typeof window < "u" ? window : {}, De = St.document || { head: {} }, D = St.HTMLElement || class {
38
+ const s = er.set(e, r);
39
+ return ln(e, r), s;
40
+ }, Xr = (e, t) => t in e, St = (e, t) => (0, console.error)(e, t), kt = typeof window < "u" ? window : {}, De = kt.document || { head: {} }, D = kt.HTMLElement || class {
41
41
  }, re = {
42
42
  $flags$: 0,
43
43
  $resourcesUrl$: "",
@@ -46,80 +46,80 @@ var sn = Object.defineProperty, an = (e, t) => {
46
46
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
47
47
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
48
48
  ce: (e, t) => new CustomEvent(e, t)
49
- }, hn = Ne.shadowDom, fn = (e) => Promise.resolve(e), Zt = !1, Xr = [], xs = [], dn = (e, t) => (r) => {
50
- e.push(r), Zt || (Zt = !0, re.$flags$ & 4 ? er(Qt) : re.raf(Qt));
51
- }, Jr = (e) => {
49
+ }, dn = Ne.shadowDom, fn = (e) => Promise.resolve(e), Qt = !1, Jr = [], Rs = [], pn = (e, t) => (r) => {
50
+ e.push(r), Qt || (Qt = !0, re.$flags$ & 4 ? tr(Kt) : re.raf(Kt));
51
+ }, es = (e) => {
52
52
  for (let t = 0; t < e.length; t++)
53
53
  try {
54
54
  e[t](performance.now());
55
55
  } catch (r) {
56
- Ct(r);
56
+ St(r);
57
57
  }
58
58
  e.length = 0;
59
- }, Qt = () => {
60
- Jr(Xr), Jr(xs), (Zt = Xr.length > 0) && re.raf(Qt);
61
- }, er = (e) => fn().then(e), pn = /* @__PURE__ */ dn(xs), tr = (e) => (e = typeof e, e === "object" || e === "function"), mn = {};
62
- an(mn, {
63
- err: () => Rs,
64
- map: () => gn,
65
- ok: () => Kt,
66
- unwrap: () => vn,
67
- unwrapErr: () => bn
59
+ }, Kt = () => {
60
+ es(Jr), es(Rs), (Qt = Jr.length > 0) && re.raf(Kt);
61
+ }, tr = (e) => fn().then(e), mn = /* @__PURE__ */ pn(Rs), rr = (e) => (e = typeof e, e === "object" || e === "function"), gn = {};
62
+ nn(gn, {
63
+ err: () => Es,
64
+ map: () => vn,
65
+ ok: () => Xt,
66
+ unwrap: () => bn,
67
+ unwrapErr: () => yn
68
68
  });
69
- var Kt = (e) => ({
69
+ var Xt = (e) => ({
70
70
  isOk: !0,
71
71
  isErr: !1,
72
72
  value: e
73
- }), Rs = (e) => ({
73
+ }), Es = (e) => ({
74
74
  isOk: !1,
75
75
  isErr: !0,
76
76
  value: e
77
77
  });
78
- function gn(e, t) {
78
+ function vn(e, t) {
79
79
  if (e.isOk) {
80
80
  const r = t(e.value);
81
- return r instanceof Promise ? r.then((s) => Kt(s)) : Kt(r);
81
+ return r instanceof Promise ? r.then((s) => Xt(s)) : Xt(r);
82
82
  }
83
83
  if (e.isErr) {
84
84
  const r = e.value;
85
- return Rs(r);
85
+ return Es(r);
86
86
  }
87
87
  throw "should never get here";
88
88
  }
89
- var vn = (e) => {
89
+ var bn = (e) => {
90
90
  if (e.isOk)
91
91
  return e.value;
92
92
  throw e.value;
93
- }, bn = (e) => {
93
+ }, yn = (e) => {
94
94
  if (e.isErr)
95
95
  return e.value;
96
96
  throw e.value;
97
- }, Es = (e) => {
97
+ }, Ps = (e) => {
98
98
  const t = e.__childNodes || e.childNodes;
99
- e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ps(t, e.tagName).forEach((r) => {
99
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ts(t, e.tagName).forEach((r) => {
100
100
  var s;
101
- r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = yn(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
101
+ r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = Cn(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
102
102
  });
103
103
  for (const r of t)
104
- r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Es(r);
104
+ r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Ps(r);
105
105
  };
106
- function Ps(e, t, r) {
106
+ function Ts(e, t, r) {
107
107
  let s = 0, a = [], o;
108
108
  for (; s < e.length; s++)
109
- o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...Ps(o.childNodes, t, r)];
109
+ o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...Ts(o.childNodes, t, r)];
110
110
  return a;
111
111
  }
112
- var yn = (e, t, r = !0) => {
112
+ var Cn = (e, t, r = !0) => {
113
113
  const s = [];
114
114
  for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
115
115
  s.push(e);
116
116
  return s;
117
- }, es = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ke = (e, t = "") => () => {
118
- }, i = (e, t, ...r) => {
117
+ }, ts = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Xe = (e, t = "") => () => {
118
+ }, l = (e, t, ...r) => {
119
119
  let s = null, a = null, o = null, n = !1, c = !1;
120
120
  const u = [], h = (p) => {
121
121
  for (let g = 0; g < p.length; g++)
122
- s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !tr(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? mt(null, s) : s), c = n);
122
+ s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !rr(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? vt(null, s) : s), c = n);
123
123
  };
124
124
  if (h(r), t) {
125
125
  t.key && (a = t.key), t.name && (o = t.name);
@@ -132,11 +132,11 @@ var yn = (e, t, r = !0) => {
132
132
  return e(
133
133
  t === null ? {} : t,
134
134
  u,
135
- kn
135
+ wn
136
136
  );
137
- const l = mt(e, null);
138
- return l.$attrs$ = t, u.length > 0 && (l.$children$ = u), l.$key$ = a, l.$name$ = o, l;
139
- }, mt = (e, t) => {
137
+ const i = vt(e, null);
138
+ return i.$attrs$ = t, u.length > 0 && (i.$children$ = u), i.$key$ = a, i.$name$ = o, i;
139
+ }, vt = (e, t) => {
140
140
  const r = {
141
141
  $flags$: 0,
142
142
  $tag$: e,
@@ -145,57 +145,57 @@ var yn = (e, t, r = !0) => {
145
145
  $children$: null
146
146
  };
147
147
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
148
- }, Cn = {}, Sn = (e) => e && e.$tag$ === Cn, kn = {
149
- forEach: (e, t) => e.map(ts).forEach(t),
150
- map: (e, t) => e.map(ts).map(t).map(wn)
151
- }, ts = (e) => ({
148
+ }, Sn = {}, kn = (e) => e && e.$tag$ === Sn, wn = {
149
+ forEach: (e, t) => e.map(rs).forEach(t),
150
+ map: (e, t) => e.map(rs).map(t).map(xn)
151
+ }, rs = (e) => ({
152
152
  vattrs: e.$attrs$,
153
153
  vchildren: e.$children$,
154
154
  vkey: e.$key$,
155
155
  vname: e.$name$,
156
156
  vtag: e.$tag$,
157
157
  vtext: e.$text$
158
- }), wn = (e) => {
158
+ }), xn = (e) => {
159
159
  if (typeof e.vtag == "function") {
160
160
  const r = { ...e.vattrs };
161
- return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), i(e.vtag, r, ...e.vchildren || []);
161
+ return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), l(e.vtag, r, ...e.vchildren || []);
162
162
  }
163
- const t = mt(e.vtag, e.vtext);
163
+ const t = vt(e.vtag, e.vtext);
164
164
  return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
165
- }, Ts = (e, t) => e != null && !tr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, xn = (e) => e, Ce = (e, t, r) => {
166
- const s = xn(e);
165
+ }, $s = (e, t) => e != null && !rr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Rn = (e) => e, Ce = (e, t, r) => {
166
+ const s = Rn(e);
167
167
  return {
168
- emit: (a) => $s(s, t, {
168
+ emit: (a) => _s(s, t, {
169
169
  bubbles: !0,
170
170
  composed: !0,
171
171
  cancelable: !0,
172
172
  detail: a
173
173
  })
174
174
  };
175
- }, $s = (e, t, r) => {
175
+ }, _s = (e, t, r) => {
176
176
  const s = re.ce(t, r);
177
177
  return e.dispatchEvent(s), s;
178
- }, ht = /* @__PURE__ */ new WeakMap(), rs = (e, t, r, s, a, o) => {
178
+ }, ft = /* @__PURE__ */ new WeakMap(), ss = (e, t, r, s, a, o) => {
179
179
  if (r !== s) {
180
- let n = Kr(e, t), c = t.toLowerCase();
180
+ let n = Xr(e, t), c = t.toLowerCase();
181
181
  if (t === "class") {
182
- const u = e.classList, h = ss(r);
183
- let l = ss(s);
184
- e["s-si"] ? (l.push(e["s-si"]), h.forEach((p) => {
185
- p.startsWith(e["s-si"]) && l.push(p);
186
- }), l = [...new Set(l)], u.add(...l), delete e["s-si"]) : (u.remove(...h.filter((p) => p && !l.includes(p))), u.add(...l.filter((p) => p && !h.includes(p))));
182
+ const u = e.classList, h = as(r);
183
+ let i = as(s);
184
+ e["s-si"] ? (i.push(e["s-si"]), h.forEach((p) => {
185
+ p.startsWith(e["s-si"]) && i.push(p);
186
+ }), i = [...new Set(i)], u.add(...i), delete e["s-si"]) : (u.remove(...h.filter((p) => p && !i.includes(p))), u.add(...i.filter((p) => p && !h.includes(p))));
187
187
  } else if (t === "style") {
188
188
  for (const u in r)
189
189
  (!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
190
190
  for (const u in s)
191
191
  (!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
192
192
  } else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
193
- if (t[2] === "-" ? t = t.slice(3) : Kr(St, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
194
- const u = t.endsWith(_s);
195
- t = t.replace(En, ""), r && re.rel(e, t, r, u), s && re.ael(e, t, s, u);
193
+ if (t[2] === "-" ? t = t.slice(3) : Xr(kt, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
194
+ const u = t.endsWith(Is);
195
+ t = t.replace(Pn, ""), r && re.rel(e, t, r, u), s && re.ael(e, t, s, u);
196
196
  }
197
197
  } else {
198
- const u = tr(s);
198
+ const u = rr(s);
199
199
  if ((n || u && s !== null) && !a)
200
200
  try {
201
201
  if (e.tagName.includes("-"))
@@ -209,14 +209,14 @@ var yn = (e, t, r = !0) => {
209
209
  s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !u && (s = s === !0 ? "" : s, e.setAttribute(t, s));
210
210
  }
211
211
  }
212
- }, Rn = /\s/, ss = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Rn) : []), _s = "Capture", En = new RegExp(_s + "$"), Is = (e, t, r) => {
212
+ }, En = /\s/, as = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(En) : []), Is = "Capture", Pn = new RegExp(Is + "$"), As = (e, t, r) => {
213
213
  const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || {}, o = t.$attrs$ || {};
214
- for (const n of as(Object.keys(a)))
215
- n in o || rs(s, n, a[n], void 0, r, t.$flags$);
216
- for (const n of as(Object.keys(o)))
217
- rs(s, n, a[n], o[n], r, t.$flags$);
214
+ for (const n of ns(Object.keys(a)))
215
+ n in o || ss(s, n, a[n], void 0, r, t.$flags$);
216
+ for (const n of ns(Object.keys(o)))
217
+ ss(s, n, a[n], o[n], r, t.$flags$);
218
218
  };
219
- function as(e) {
219
+ function ns(e) {
220
220
  return e.includes("ref") ? (
221
221
  // we need to sort these to ensure that `'ref'` is the last attr
222
222
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -225,11 +225,11 @@ function as(e) {
225
225
  e
226
226
  );
227
227
  }
228
- var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
228
+ var Jt, sr, bt = !1, yt = !1, ar = !1, ae = !1, Ct = (e, t, r) => {
229
229
  var s;
230
230
  const a = t.$children$[r];
231
231
  let o = 0, n, c, u;
232
- if (gt || (sr = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
232
+ if (bt || (ar = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
233
233
  // slot element has fallback content
234
234
  // still create an element that "mocks" the slot element
235
235
  2
@@ -244,82 +244,82 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
244
244
  n = a.$elm$ = De.createTextNode("");
245
245
  else {
246
246
  if (ae || (ae = a.$tag$ === "svg"), n = a.$elm$ = De.createElementNS(
247
- ae ? nn : on,
248
- !gt && Ne.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
249
- ), ae && a.$tag$ === "foreignObject" && (ae = !1), Is(null, a, ae), a.$children$)
247
+ ae ? on : cn,
248
+ !bt && Ne.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
249
+ ), ae && a.$tag$ === "foreignObject" && (ae = !1), As(null, a, ae), a.$children$)
250
250
  for (o = 0; o < a.$children$.length; ++o)
251
- c = bt(e, a, o), c && n.appendChild(c);
251
+ c = Ct(e, a, o), c && n.appendChild(c);
252
252
  a.$tag$ === "svg" ? ae = !1 : n.tagName === "foreignObject" && (ae = !0);
253
253
  }
254
- return n["s-hn"] = rr, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Xt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === a.$tag$ && e.$elm$ && Xe(e.$elm$, !1)), n;
255
- }, Xe = (e, t) => {
254
+ return n["s-hn"] = sr, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Jt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === a.$tag$ && e.$elm$ && Je(e.$elm$, !1)), n;
255
+ }, Je = (e, t) => {
256
256
  re.$flags$ |= 1;
257
257
  const r = Array.from(e.__childNodes || e.childNodes);
258
258
  e["s-sr"] && Ne.experimentalSlotFixes;
259
259
  for (let s = r.length - 1; s >= 0; s--) {
260
260
  const a = r[s];
261
- a["s-hn"] !== rr && a["s-ol"] && (Se(Je(a).parentNode, a, Je(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, sr = !0), t && Xe(a, t);
261
+ a["s-hn"] !== sr && a["s-ol"] && (Se(et(a).parentNode, a, et(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, ar = !0), t && Je(a, t);
262
262
  }
263
263
  re.$flags$ &= -2;
264
- }, As = (e, t, r, s, a, o) => {
264
+ }, Ms = (e, t, r, s, a, o) => {
265
265
  let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
266
266
  for (; a <= o; ++a)
267
- s[a] && (c = bt(null, r, a), c && (s[a].$elm$ = c, Se(n, c, Je(t))));
268
- }, Ms = (e, t, r) => {
267
+ s[a] && (c = Ct(null, r, a), c && (s[a].$elm$ = c, Se(n, c, et(t))));
268
+ }, Ls = (e, t, r) => {
269
269
  for (let s = t; s <= r; ++s) {
270
270
  const a = e[s];
271
271
  if (a) {
272
272
  const o = a.$elm$;
273
- o && (vt = !0, o["s-ol"] ? o["s-ol"].remove() : Xe(o, !0), o.remove());
273
+ o && (yt = !0, o["s-ol"] ? o["s-ol"].remove() : Je(o, !0), o.remove());
274
274
  }
275
275
  }
276
- }, Pn = (e, t, r, s, a = !1) => {
277
- let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, l = t[0], p = t[h], g = s.length - 1, k = s[0], b = s[g], P, _;
276
+ }, Tn = (e, t, r, s, a = !1) => {
277
+ let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, i = t[0], p = t[h], g = s.length - 1, k = s[0], b = s[g], P, _;
278
278
  for (; o <= h && n <= g; )
279
- if (l == null)
280
- l = t[++o];
279
+ if (i == null)
280
+ i = t[++o];
281
281
  else if (p == null)
282
282
  p = t[--h];
283
283
  else if (k == null)
284
284
  k = s[++n];
285
285
  else if (b == null)
286
286
  b = s[--g];
287
- else if (ft(l, k, a))
288
- Oe(l, k, a), l = t[++o], k = s[++n];
289
- else if (ft(p, b, a))
287
+ else if (pt(i, k, a))
288
+ Oe(i, k, a), i = t[++o], k = s[++n];
289
+ else if (pt(p, b, a))
290
290
  Oe(p, b, a), p = t[--h], b = s[--g];
291
- else if (ft(l, b, a))
292
- (l.$tag$ === "slot" || b.$tag$ === "slot") && Xe(l.$elm$.parentNode, !1), Oe(l, b, a), Se(e, l.$elm$, p.$elm$.nextSibling), l = t[++o], b = s[--g];
293
- else if (ft(p, k, a))
294
- (l.$tag$ === "slot" || b.$tag$ === "slot") && Xe(p.$elm$.parentNode, !1), Oe(p, k, a), Se(e, p.$elm$, l.$elm$), p = t[--h], k = s[++n];
291
+ else if (pt(i, b, a))
292
+ (i.$tag$ === "slot" || b.$tag$ === "slot") && Je(i.$elm$.parentNode, !1), Oe(i, b, a), Se(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], b = s[--g];
293
+ else if (pt(p, k, a))
294
+ (i.$tag$ === "slot" || b.$tag$ === "slot") && Je(p.$elm$.parentNode, !1), Oe(p, k, a), Se(e, p.$elm$, i.$elm$), p = t[--h], k = s[++n];
295
295
  else {
296
296
  for (c = -1, u = o; u <= h; ++u)
297
297
  if (t[u] && t[u].$key$ !== null && t[u].$key$ === k.$key$) {
298
298
  c = u;
299
299
  break;
300
300
  }
301
- c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P = bt(t && t[n], r, c) : (Oe(_, k, a), t[c] = void 0, P = _.$elm$), k = s[++n]) : (P = bt(t && t[n], r, n), k = s[++n]), P && Se(
302
- Je(l.$elm$).parentNode,
301
+ c >= 0 ? (_ = t[c], _.$tag$ !== k.$tag$ ? P = Ct(t && t[n], r, c) : (Oe(_, k, a), t[c] = void 0, P = _.$elm$), k = s[++n]) : (P = Ct(t && t[n], r, n), k = s[++n]), P && Se(
302
+ et(i.$elm$).parentNode,
303
303
  P,
304
- Je(l.$elm$)
304
+ et(i.$elm$)
305
305
  );
306
306
  }
307
- o > h ? As(
307
+ o > h ? Ms(
308
308
  e,
309
309
  s[g + 1] == null ? null : s[g + 1].$elm$,
310
310
  r,
311
311
  s,
312
312
  n,
313
313
  g
314
- ) : n > g && Ms(t, o, h);
315
- }, ft = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, Je = (e) => e && e["s-ol"] || e, Oe = (e, t, r = !1) => {
314
+ ) : n > g && Ls(t, o, h);
315
+ }, pt = (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, et = (e) => e && e["s-ol"] || e, Oe = (e, t, r = !1) => {
316
316
  const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
317
317
  let u;
318
- c === null ? (ae = n === "svg" ? !0 : n === "foreignObject" ? !1 : ae, n === "slot" && !gt || Is(e, t, ae), a !== null && o !== null ? Pn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), As(s, null, t, o, 0, o.length - 1)) : (
318
+ c === null ? (ae = n === "svg" ? !0 : n === "foreignObject" ? !1 : ae, n === "slot" && !bt || As(e, t, ae), a !== null && o !== null ? Tn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Ms(s, null, t, o, 0, o.length - 1)) : (
319
319
  // don't do this on initial render as it can cause non-hydrated content to be removed
320
- !r && Ne.updatable && a !== null && Ms(a, 0, a.length - 1)
320
+ !r && Ne.updatable && a !== null && Ls(a, 0, a.length - 1)
321
321
  ), ae && n === "svg" && (ae = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
322
- }, me = [], Ls = (e) => {
322
+ }, me = [], Os = (e) => {
323
323
  let t, r, s;
324
324
  const a = e.__childNodes || e.childNodes;
325
325
  for (const o of a) {
@@ -328,39 +328,39 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
328
328
  const n = o["s-sn"];
329
329
  for (s = r.length - 1; s >= 0; s--)
330
330
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
331
- if (es(t, n)) {
331
+ if (ts(t, n)) {
332
332
  let c = me.find((u) => u.$nodeToRelocate$ === t);
333
- vt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], me.push({
333
+ yt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], me.push({
334
334
  $slotRefNode$: o,
335
335
  $nodeToRelocate$: t
336
336
  })), t["s-sr"] && me.map((u) => {
337
- es(u.$nodeToRelocate$, t["s-sn"]) && (c = me.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
337
+ ts(u.$nodeToRelocate$, t["s-sn"]) && (c = me.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
338
338
  });
339
339
  } else me.some((c) => c.$nodeToRelocate$ === t) || me.push({
340
340
  $nodeToRelocate$: t
341
341
  });
342
342
  }
343
- o.nodeType === 1 && Ls(o);
343
+ o.nodeType === 1 && Os(o);
344
344
  }
345
- }, Se = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Tn = (e, t, r = !1) => {
345
+ }, Se = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), $n = (e, t, r = !1) => {
346
346
  var s, a, o, n;
347
- const c = e.$hostElement$, u = e.$vnode$ || mt(null, null), h = Sn(t) ? t : i(null, null, t);
348
- if (rr = c.tagName, r && h.$attrs$)
349
- for (const l of Object.keys(h.$attrs$))
350
- c.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (h.$attrs$[l] = c[l]);
351
- h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c, gt = hn, Xt = c["s-cr"], vt = !1, Oe(u, h, r);
347
+ const c = e.$hostElement$, u = e.$vnode$ || vt(null, null), h = kn(t) ? t : l(null, null, t);
348
+ if (sr = c.tagName, r && h.$attrs$)
349
+ for (const i of Object.keys(h.$attrs$))
350
+ c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (h.$attrs$[i] = c[i]);
351
+ h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c, bt = dn, Jt = c["s-cr"], yt = !1, Oe(u, h, r);
352
352
  {
353
- if (re.$flags$ |= 1, sr) {
354
- Ls(h.$elm$);
355
- for (const l of me) {
356
- const p = l.$nodeToRelocate$;
353
+ if (re.$flags$ |= 1, ar) {
354
+ Os(h.$elm$);
355
+ for (const i of me) {
356
+ const p = i.$nodeToRelocate$;
357
357
  if (!p["s-ol"]) {
358
358
  const g = De.createTextNode("");
359
359
  g["s-nr"] = p, Se(p.parentNode, p["s-ol"] = g, p);
360
360
  }
361
361
  }
362
- for (const l of me) {
363
- const p = l.$nodeToRelocate$, g = l.$slotRefNode$;
362
+ for (const i of me) {
363
+ const p = i.$nodeToRelocate$, g = i.$slotRefNode$;
364
364
  if (g) {
365
365
  const k = g.parentNode;
366
366
  let b = g.nextSibling;
@@ -385,10 +385,10 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
385
385
  p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
386
386
  }
387
387
  }
388
- vt && Es(h.$elm$), re.$flags$ &= -2, me.length = 0;
388
+ yt && Ps(h.$elm$), re.$flags$ &= -2, me.length = 0;
389
389
  }
390
- Xt = void 0;
391
- }, Os = (e, t) => {
390
+ Jt = void 0;
391
+ }, Fs = (e, t) => {
392
392
  if (t && !e.$onRenderResolve$ && t["s-p"]) {
393
393
  const r = t["s-p"].push(
394
394
  new Promise(
@@ -398,55 +398,55 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
398
398
  )
399
399
  );
400
400
  }
401
- }, ar = (e, t) => {
401
+ }, nr = (e, t) => {
402
402
  if (e.$flags$ |= 16, e.$flags$ & 4) {
403
403
  e.$flags$ |= 512;
404
404
  return;
405
405
  }
406
- return Os(e, e.$ancestorComponent$), pn(() => $n(e, t));
407
- }, $n = (e, t) => {
408
- const r = e.$hostElement$, s = Ke("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
406
+ return Fs(e, e.$ancestorComponent$), mn(() => _n(e, t));
407
+ }, _n = (e, t) => {
408
+ const r = e.$hostElement$, s = Xe("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
409
409
  if (!a)
410
410
  throw new Error(
411
411
  `Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
412
412
  );
413
413
  let o;
414
- return s(), _n(o, () => An(e, a, t));
415
- }, _n = (e, t) => In(e) ? e.then(t).catch((r) => {
414
+ return s(), In(o, () => Mn(e, a, t));
415
+ }, In = (e, t) => An(e) ? e.then(t).catch((r) => {
416
416
  console.error(r), t();
417
- }) : t(), In = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", An = async (e, t, r) => {
417
+ }) : t(), An = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Mn = async (e, t, r) => {
418
418
  var s;
419
- const a = e.$hostElement$, o = Ke("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Ke("render", e.$cmpMeta$.$tagName$);
420
- Mn(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
419
+ const a = e.$hostElement$, o = Xe("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Xe("render", e.$cmpMeta$.$tagName$);
420
+ Ln(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
421
421
  {
422
- const u = (s = a["s-p"]) != null ? s : [], h = () => Ln(e);
422
+ const u = (s = a["s-p"]) != null ? s : [], h = () => On(e);
423
423
  u.length === 0 ? h() : (Promise.all(u).then(h), e.$flags$ |= 4, u.length = 0);
424
424
  }
425
- }, Mn = (e, t, r, s) => {
425
+ }, Ln = (e, t, r, s) => {
426
426
  try {
427
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Tn(e, t, s);
427
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, $n(e, t, s);
428
428
  } catch (a) {
429
- Ct(a, e.$hostElement$);
429
+ St(a, e.$hostElement$);
430
430
  }
431
431
  return null;
432
- }, Ln = (e) => {
433
- const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
434
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Fs(r), Fn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || On()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && er(() => ar(e, !1)), e.$flags$ &= -517;
435
432
  }, On = (e) => {
436
- Fs(De.documentElement), er(() => $s(St, "appload", { detail: { namespace: rn } }));
437
- }, Fn = (e, t, r, s) => {
433
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Xe("postUpdate", t), a = r, o = e.$ancestorComponent$;
434
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ds(r), Dn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Fn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && tr(() => nr(e, !1)), e.$flags$ &= -517;
435
+ }, Fn = (e) => {
436
+ Ds(De.documentElement), tr(() => _s(kt, "appload", { detail: { namespace: sn } }));
437
+ }, Dn = (e, t, r, s) => {
438
438
  if (e && e[t])
439
439
  try {
440
440
  return e[t](r);
441
441
  } catch (a) {
442
- Ct(a, s);
442
+ St(a, s);
443
443
  }
444
- }, Fs = (e) => {
444
+ }, Ds = (e) => {
445
445
  var t;
446
446
  return e.classList.add((t = Ne.hydratedSelectorName) != null ? t : "hydrated");
447
- }, Dn = (e, t) => ke(e).$instanceValues$.get(t), ns = (e, t, r, s) => {
447
+ }, Hn = (e, t) => ke(e).$instanceValues$.get(t), os = (e, t, r, s) => {
448
448
  const a = ke(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
449
- r = Ts(r, s.$members$[t][0]);
449
+ r = $s(r, s.$members$[t][0]);
450
450
  const h = Number.isNaN(n) && Number.isNaN(r);
451
451
  if (r !== n && !h) {
452
452
  a.$instanceValues$.set(t, r);
@@ -457,11 +457,11 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
457
457
  try {
458
458
  u[g](r, n, t);
459
459
  } catch (k) {
460
- Ct(k, o);
460
+ St(k, o);
461
461
  }
462
462
  });
463
463
  }
464
- (c & 18) === 2 && ar(a, !1);
464
+ (c & 18) === 2 && nr(a, !1);
465
465
  }
466
466
  }
467
467
  }, Nn = (e, t, r) => {
@@ -472,23 +472,23 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
472
472
  const n = Object.entries((s = t.$members$) != null ? s : {});
473
473
  n.map(([c, [u]]) => {
474
474
  if (u & 31 || u & 32) {
475
- const { get: h, set: l } = Object.getOwnPropertyDescriptor(o, c) || {};
476
- h && (t.$members$[c][0] |= 2048), l && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
475
+ const { get: h, set: i } = Object.getOwnPropertyDescriptor(o, c) || {};
476
+ h && (t.$members$[c][0] |= 2048), i && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
477
477
  get() {
478
- return h ? h.apply(this) : Dn(this, c);
478
+ return h ? h.apply(this) : Hn(this, c);
479
479
  },
480
480
  configurable: !0,
481
481
  enumerable: !0
482
482
  }), Object.defineProperty(o, c, {
483
483
  set(p) {
484
484
  const g = ke(this);
485
- if (l) {
485
+ if (i) {
486
486
  const k = u & 32 ? this[c] : g.$hostElement$[c];
487
- typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k), l.apply(this, [Ts(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], ns(this, c, p, t);
487
+ typeof k > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && k && g.$instanceValues$.set(c, k), i.apply(this, [$s(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], os(this, c, p, t);
488
488
  return;
489
489
  }
490
490
  {
491
- ns(this, c, p, t);
491
+ os(this, c, p, t);
492
492
  return;
493
493
  }
494
494
  }
@@ -497,27 +497,27 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
497
497
  });
498
498
  {
499
499
  const c = /* @__PURE__ */ new Map();
500
- o.attributeChangedCallback = function(u, h, l) {
500
+ o.attributeChangedCallback = function(u, h, i) {
501
501
  re.jmp(() => {
502
502
  var p;
503
503
  const g = c.get(u);
504
504
  if (!(this.hasOwnProperty(g) && Ne.lazyLoad)) {
505
505
  if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
506
- this[g] == l)
506
+ this[g] == i)
507
507
  return;
508
508
  if (g == null) {
509
509
  const b = ke(this), P = b == null ? void 0 : b.$flags$;
510
- if (P && !(P & 8) && P & 128 && l !== h) {
510
+ if (P && !(P & 8) && P & 128 && i !== h) {
511
511
  const O = this, T = (p = t.$watchers$) == null ? void 0 : p[u];
512
512
  T == null || T.forEach((ue) => {
513
- O[ue] != null && O[ue].call(O, l, h, u);
513
+ O[ue] != null && O[ue].call(O, i, h, u);
514
514
  });
515
515
  }
516
516
  return;
517
517
  }
518
518
  }
519
519
  const k = Object.getOwnPropertyDescriptor(o, g);
520
- l = l === null && typeof this[g] == "boolean" ? !1 : l, l !== this[g] && (!k.get || k.set) && (this[g] = l);
520
+ i = i === null && typeof this[g] == "boolean" ? !1 : i, i !== this[g] && (!k.get || k.set) && (this[g] = i);
521
521
  });
522
522
  }, e.observedAttributes = Array.from(
523
523
  /* @__PURE__ */ new Set([
@@ -526,15 +526,15 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
526
526
  ([u, h]) => h[0] & 15
527
527
  /* HasAttribute */
528
528
  ).map(([u, h]) => {
529
- const l = h[1] || u;
530
- return c.set(l, u), l;
529
+ const i = h[1] || u;
530
+ return c.set(i, u), i;
531
531
  })
532
532
  ])
533
533
  );
534
534
  }
535
535
  }
536
536
  return e;
537
- }, Hn = async (e, t, r, s) => {
537
+ }, Un = async (e, t, r, s) => {
538
538
  if (!(t.$flags$ & 32)) {
539
539
  t.$flags$ |= 32;
540
540
  {
@@ -545,22 +545,22 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
545
545
  );
546
546
  }
547
547
  }
548
- const a = t.$ancestorComponent$, o = () => ar(t, !0);
548
+ const a = t.$ancestorComponent$, o = () => nr(t, !0);
549
549
  a && a["s-rc"] ? a["s-rc"].push(o) : o();
550
- }, Un = (e, t) => {
551
- }, zn = (e) => {
550
+ }, zn = (e, t) => {
551
+ }, jn = (e) => {
552
552
  if (!(re.$flags$ & 1)) {
553
- const t = ke(e), r = t.$cmpMeta$, s = Ke("connectedCallback", r.$tagName$);
553
+ const t = ke(e), r = t.$cmpMeta$, s = Xe("connectedCallback", r.$tagName$);
554
554
  if (t.$flags$ & 1)
555
- t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Un());
555
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => zn());
556
556
  else {
557
557
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
558
- r.$flags$ & 12 && jn(e);
558
+ r.$flags$ & 12 && Vn(e);
559
559
  {
560
560
  let a = e;
561
561
  for (; a = a.parentNode || a.host; )
562
562
  if (a["s-p"]) {
563
- Os(t, t.$ancestorComponent$ = a);
563
+ Fs(t, t.$ancestorComponent$ = a);
564
564
  break;
565
565
  }
566
566
  }
@@ -569,18 +569,18 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
569
569
  const n = e[a];
570
570
  delete e[a], e[a] = n;
571
571
  }
572
- }), Hn(e, t);
572
+ }), Un(e, t);
573
573
  }
574
574
  s();
575
575
  }
576
- }, jn = (e) => {
576
+ }, Vn = (e) => {
577
577
  const t = e["s-cr"] = De.createComment(
578
578
  ""
579
579
  );
580
580
  t["s-cn"] = !0, Se(e, t, e.firstChild);
581
- }, Vn = async (e) => {
582
- re.$flags$ & 1 || ke(e), ht.has(e) && ht.delete(e), e.shadowRoot && ht.has(e.shadowRoot) && ht.delete(e.shadowRoot);
583
- }, N = (e, t) => {
581
+ }, Bn = async (e) => {
582
+ re.$flags$ & 1 || ke(e), ft.has(e) && ft.delete(e), e.shadowRoot && ft.has(e.shadowRoot) && ft.delete(e.shadowRoot);
583
+ }, H = (e, t) => {
584
584
  const r = {
585
585
  $flags$: t[0],
586
586
  $tagName$: t[1]
@@ -590,24 +590,24 @@ var Xt, rr, gt = !1, vt = !1, sr = !1, ae = !1, bt = (e, t, r) => {
590
590
  return Object.assign(e.prototype, {
591
591
  __hasHostListenerAttached: !1,
592
592
  __registerHost() {
593
- un(this, r);
593
+ hn(this, r);
594
594
  },
595
595
  connectedCallback() {
596
- this.__hasHostListenerAttached || (ke(this), this.__hasHostListenerAttached = !0), zn(this), s && s.call(this);
596
+ this.__hasHostListenerAttached || (ke(this), this.__hasHostListenerAttached = !0), jn(this), s && s.call(this);
597
597
  },
598
598
  disconnectedCallback() {
599
- Vn(this), a && a.call(this), re.raf(() => {
599
+ Bn(this), a && a.call(this), re.raf(() => {
600
600
  var o;
601
601
  const n = ke(this);
602
- ((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && ln(this);
602
+ ((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && un(this);
603
603
  });
604
604
  },
605
605
  __attachShadow() {
606
606
  this.shadowRoot = this;
607
607
  }
608
608
  }), e.is = r.$tagName$, Nn(e, r);
609
- }, Bn = (e, t) => t, Wn = Object.defineProperty, Gn = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => Gn(e, typeof t != "symbol" ? t + "" : t, r), pe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(pe || {});
610
- class qn {
609
+ }, Wn = (e, t) => t, Gn = Object.defineProperty, qn = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => qn(e, typeof t != "symbol" ? t + "" : t, r), pe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(pe || {});
610
+ class Yn {
611
611
  constructor(t) {
612
612
  A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
613
613
  }
@@ -648,21 +648,21 @@ function ge(e, t, r, s) {
648
648
  function n(h) {
649
649
  try {
650
650
  u(s.next(h));
651
- } catch (l) {
652
- o(l);
651
+ } catch (i) {
652
+ o(i);
653
653
  }
654
654
  }
655
655
  function c(h) {
656
656
  try {
657
657
  u(s.throw(h));
658
- } catch (l) {
659
- o(l);
658
+ } catch (i) {
659
+ o(i);
660
660
  }
661
661
  }
662
662
  function u(h) {
663
- var l;
664
- h.done ? a(h.value) : (l = h.value, l instanceof r ? l : new r(function(p) {
665
- p(l);
663
+ var i;
664
+ h.done ? a(h.value) : (i = h.value, i instanceof r ? i : new r(function(p) {
665
+ p(i);
666
666
  })).then(n, c);
667
667
  }
668
668
  u((s = s.apply(e, [])).next());
@@ -678,142 +678,142 @@ function ve(e, t) {
678
678
  }), o;
679
679
  function c(u) {
680
680
  return function(h) {
681
- return function(l) {
681
+ return function(i) {
682
682
  if (r) throw new TypeError("Generator is already executing.");
683
- for (; o && (o = 0, l[0] && (n = 0)), n; ) try {
684
- 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;
685
- switch (s = 0, a && (l = [2 & l[0], a.value]), l[0]) {
683
+ for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
684
+ 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;
685
+ switch (s = 0, a && (i = [2 & i[0], a.value]), i[0]) {
686
686
  case 0:
687
687
  case 1:
688
- a = l;
688
+ a = i;
689
689
  break;
690
690
  case 4:
691
- return n.label++, { value: l[1], done: !1 };
691
+ return n.label++, { value: i[1], done: !1 };
692
692
  case 5:
693
- n.label++, s = l[1], l = [0];
693
+ n.label++, s = i[1], i = [0];
694
694
  continue;
695
695
  case 7:
696
- l = n.ops.pop(), n.trys.pop();
696
+ i = n.ops.pop(), n.trys.pop();
697
697
  continue;
698
698
  default:
699
- if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || l[0] !== 6 && l[0] !== 2)) {
699
+ if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || i[0] !== 6 && i[0] !== 2)) {
700
700
  n = 0;
701
701
  continue;
702
702
  }
703
- if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
704
- n.label = l[1];
703
+ if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {
704
+ n.label = i[1];
705
705
  break;
706
706
  }
707
- if (l[0] === 6 && n.label < a[1]) {
708
- n.label = a[1], a = l;
707
+ if (i[0] === 6 && n.label < a[1]) {
708
+ n.label = a[1], a = i;
709
709
  break;
710
710
  }
711
711
  if (a && n.label < a[2]) {
712
- n.label = a[2], n.ops.push(l);
712
+ n.label = a[2], n.ops.push(i);
713
713
  break;
714
714
  }
715
715
  a[2] && n.ops.pop(), n.trys.pop();
716
716
  continue;
717
717
  }
718
- l = t.call(e, n);
718
+ i = t.call(e, n);
719
719
  } catch (p) {
720
- l = [6, p], s = 0;
720
+ i = [6, p], s = 0;
721
721
  } finally {
722
722
  r = a = 0;
723
723
  }
724
- if (5 & l[0]) throw l[1];
725
- return { value: l[0] ? l[1] : void 0, done: !0 };
724
+ if (5 & i[0]) throw i[1];
725
+ return { value: i[0] ? i[1] : void 0, done: !0 };
726
726
  }([u, h]);
727
727
  };
728
728
  }
729
729
  }
730
- var be = { exclude: [] }, Ds = {}, Yn = { timeout: "true" }, ce = function(e, t) {
731
- typeof window < "u" && (Ds[e] = t);
732
- }, Zn = function() {
733
- return Object.fromEntries(Object.entries(Ds).filter(function(e) {
730
+ var be = { exclude: [] }, Hs = {}, Zn = { timeout: "true" }, ce = function(e, t) {
731
+ typeof window < "u" && (Hs[e] = t);
732
+ }, Qn = function() {
733
+ return Object.fromEntries(Object.entries(Hs).filter(function(e) {
734
734
  var t, r = e[0];
735
735
  return !(!((t = be == null ? void 0 : be.exclude) === null || t === void 0) && t.includes(r));
736
736
  }).map(function(e) {
737
737
  return [e[0], (0, e[1])()];
738
738
  }));
739
739
  };
740
- function dt(e) {
740
+ function mt(e) {
741
741
  return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
742
742
  }
743
743
  var q = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
744
- function ne(e, t) {
744
+ function oe(e, t) {
745
745
  return e << t | e >>> 32 - t;
746
746
  }
747
- function nr(e, t) {
747
+ function or(e, t) {
748
748
  var r;
749
749
  if (t === void 0 && (t = 0), t = t ? 0 | t : 0, typeof e == "string" && (r = e, e = new TextEncoder().encode(r).buffer), !(e instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
750
750
  var s = new Uint32Array([t, t, t, t]);
751
751
  (function(o, n) {
752
752
  for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
753
- var l = u.subarray(4 * h, 4 * (h + 1));
754
- l[0] = Math.imul(l[0], q[0]), l[0] = ne(l[0], 15), l[0] = Math.imul(l[0], q[1]), n[0] = n[0] ^ l[0], n[0] = ne(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], q[1]), l[1] = ne(l[1], 16), l[1] = Math.imul(l[1], q[2]), n[1] = n[1] ^ l[1], n[1] = ne(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], q[2]), l[2] = ne(l[2], 17), l[2] = Math.imul(l[2], q[3]), n[2] = n[2] ^ l[2], n[2] = ne(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], q[3]), l[3] = ne(l[3], 18), l[3] = Math.imul(l[3], q[0]), n[3] = n[3] ^ l[3], n[3] = ne(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
753
+ var i = u.subarray(4 * h, 4 * (h + 1));
754
+ i[0] = Math.imul(i[0], q[0]), i[0] = oe(i[0], 15), i[0] = Math.imul(i[0], q[1]), n[0] = n[0] ^ i[0], n[0] = oe(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, i[1] = Math.imul(i[1], q[1]), i[1] = oe(i[1], 16), i[1] = Math.imul(i[1], q[2]), n[1] = n[1] ^ i[1], n[1] = oe(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, i[2] = Math.imul(i[2], q[2]), i[2] = oe(i[2], 17), i[2] = Math.imul(i[2], q[3]), n[2] = n[2] ^ i[2], n[2] = oe(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, i[3] = Math.imul(i[3], q[3]), i[3] = oe(i[3], 18), i[3] = Math.imul(i[3], q[0]), n[3] = n[3] ^ i[3], n[3] = oe(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
755
755
  }
756
756
  })(e, s), function(o, n) {
757
- var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4), l = new Uint8Array(o, 16 * c, u);
757
+ var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4), i = new Uint8Array(o, 16 * c, u);
758
758
  switch (u) {
759
759
  case 15:
760
- h[3] = h[3] ^ l[14] << 16;
760
+ h[3] = h[3] ^ i[14] << 16;
761
761
  case 14:
762
- h[3] = h[3] ^ l[13] << 8;
762
+ h[3] = h[3] ^ i[13] << 8;
763
763
  case 13:
764
- h[3] = h[3] ^ l[12] << 0, h[3] = Math.imul(h[3], q[3]), h[3] = ne(h[3], 18), h[3] = Math.imul(h[3], q[0]), n[3] = n[3] ^ h[3];
764
+ h[3] = h[3] ^ i[12] << 0, h[3] = Math.imul(h[3], q[3]), h[3] = oe(h[3], 18), h[3] = Math.imul(h[3], q[0]), n[3] = n[3] ^ h[3];
765
765
  case 12:
766
- h[2] = h[2] ^ l[11] << 24;
766
+ h[2] = h[2] ^ i[11] << 24;
767
767
  case 11:
768
- h[2] = h[2] ^ l[10] << 16;
768
+ h[2] = h[2] ^ i[10] << 16;
769
769
  case 10:
770
- h[2] = h[2] ^ l[9] << 8;
770
+ h[2] = h[2] ^ i[9] << 8;
771
771
  case 9:
772
- h[2] = h[2] ^ l[8] << 0, h[2] = Math.imul(h[2], q[2]), h[2] = ne(h[2], 17), h[2] = Math.imul(h[2], q[3]), n[2] = n[2] ^ h[2];
772
+ h[2] = h[2] ^ i[8] << 0, h[2] = Math.imul(h[2], q[2]), h[2] = oe(h[2], 17), h[2] = Math.imul(h[2], q[3]), n[2] = n[2] ^ h[2];
773
773
  case 8:
774
- h[1] = h[1] ^ l[7] << 24;
774
+ h[1] = h[1] ^ i[7] << 24;
775
775
  case 7:
776
- h[1] = h[1] ^ l[6] << 16;
776
+ h[1] = h[1] ^ i[6] << 16;
777
777
  case 6:
778
- h[1] = h[1] ^ l[5] << 8;
778
+ h[1] = h[1] ^ i[5] << 8;
779
779
  case 5:
780
- h[1] = h[1] ^ l[4] << 0, h[1] = Math.imul(h[1], q[1]), h[1] = ne(h[1], 16), h[1] = Math.imul(h[1], q[2]), n[1] = n[1] ^ h[1];
780
+ h[1] = h[1] ^ i[4] << 0, h[1] = Math.imul(h[1], q[1]), h[1] = oe(h[1], 16), h[1] = Math.imul(h[1], q[2]), n[1] = n[1] ^ h[1];
781
781
  case 4:
782
- h[0] = h[0] ^ l[3] << 24;
782
+ h[0] = h[0] ^ i[3] << 24;
783
783
  case 3:
784
- h[0] = h[0] ^ l[2] << 16;
784
+ h[0] = h[0] ^ i[2] << 16;
785
785
  case 2:
786
- h[0] = h[0] ^ l[1] << 8;
786
+ h[0] = h[0] ^ i[1] << 8;
787
787
  case 1:
788
- h[0] = h[0] ^ l[0] << 0, h[0] = Math.imul(h[0], q[0]), h[0] = ne(h[0], 15), h[0] = Math.imul(h[0], q[1]), n[0] = n[0] ^ h[0];
788
+ h[0] = h[0] ^ i[0] << 0, h[0] = Math.imul(h[0], q[0]), h[0] = oe(h[0], 15), h[0] = Math.imul(h[0], q[1]), n[0] = n[0] ^ h[0];
789
789
  }
790
790
  }(e, s), function(o, n) {
791
- n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = dt(n[0]), n[1] = dt(n[1]), n[2] = dt(n[2]), n[3] = dt(n[3]), n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0;
791
+ n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = mt(n[0]), n[1] = mt(n[1]), n[2] = mt(n[2]), n[3] = mt(n[3]), n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0;
792
792
  }(e, s);
793
793
  var a = new Uint8Array(s.buffer);
794
794
  return Array.from(a).map(function(o) {
795
795
  return o.toString(16).padStart(2, "0");
796
796
  }).join("");
797
797
  }
798
- function Qn(e, t) {
798
+ function Kn(e, t) {
799
799
  return new Promise(function(r) {
800
800
  setTimeout(function() {
801
801
  return r(t);
802
802
  }, e);
803
803
  });
804
804
  }
805
- function Kn(e, t, r) {
805
+ function Xn(e, t, r) {
806
806
  return Promise.all(e.map(function(s) {
807
- return Promise.race([s, Qn(t, r)]);
807
+ return Promise.race([s, Kn(t, r)]);
808
808
  }));
809
809
  }
810
- function Xn() {
810
+ function Jn() {
811
811
  return ge(this, void 0, void 0, function() {
812
812
  var e, t, r, s, a;
813
813
  return ve(this, function(o) {
814
814
  switch (o.label) {
815
815
  case 0:
816
- return o.trys.push([0, 2, , 3]), e = Zn(), t = Object.keys(e), [4, Kn(Object.values(e), (be == null ? void 0 : be.timeout) || 1e3, Yn)];
816
+ return o.trys.push([0, 2, , 3]), e = Qn(), t = Object.keys(e), [4, Xn(Object.values(e), (be == null ? void 0 : be.timeout) || 1e3, Zn)];
817
817
  case 1:
818
818
  return r = o.sent(), s = r.filter(function(n) {
819
819
  return n !== void 0;
@@ -844,15 +844,15 @@ function Ns(e, t) {
844
844
  for (var a in e) s(a);
845
845
  return r;
846
846
  }
847
- function Jn(e) {
847
+ function eo(e) {
848
848
  return ge(this, void 0, void 0, function() {
849
849
  var t, r;
850
850
  return ve(this, function(s) {
851
851
  switch (s.label) {
852
852
  case 0:
853
- return s.trys.push([0, 2, , 3]), [4, Xn()];
853
+ return s.trys.push([0, 2, , 3]), [4, Jn()];
854
854
  case 1:
855
- return t = s.sent(), r = nr(JSON.stringify(t)), [2, r.toString()];
855
+ return t = s.sent(), r = or(JSON.stringify(t)), [2, r.toString()];
856
856
  case 2:
857
857
  throw s.sent();
858
858
  case 3:
@@ -861,19 +861,19 @@ function Jn(e) {
861
861
  });
862
862
  });
863
863
  }
864
- function eo(e) {
864
+ function to(e) {
865
865
  for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
866
866
  return t;
867
867
  }
868
- function Hs(e, t, r) {
868
+ function Us(e, t, r) {
869
869
  for (var s = [], a = 0; a < e[0].data.length; a++) {
870
870
  for (var o = [], n = 0; n < e.length; n++) o.push(e[n].data[a]);
871
- s.push(to(o));
871
+ s.push(ro(o));
872
872
  }
873
873
  var c = new Uint8ClampedArray(s);
874
874
  return new ImageData(c, t, r);
875
875
  }
876
- function to(e) {
876
+ function ro(e) {
877
877
  if (e.length === 0) return 0;
878
878
  for (var t = {}, r = 0, s = e; r < s.length; r++)
879
879
  t[o = s[r]] = (t[o] || 0) + 1;
@@ -881,7 +881,7 @@ function to(e) {
881
881
  for (var o in t) t[o] > t[a] && (a = parseInt(o, 10));
882
882
  return a;
883
883
  }
884
- function et() {
884
+ function tt() {
885
885
  if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
886
886
  for (var e = navigator.userAgent, t = { Edg: "Edge", OPR: "Opera" }, r = 0, s = [/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/, /(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/]; r < s.length; r++) {
887
887
  var a = s[r], o = e.match(a);
@@ -898,7 +898,7 @@ ce("audio", function() {
898
898
  o.frequency.value = 1e3;
899
899
  var n, c = s.createDynamicsCompressor();
900
900
  c.threshold.value = -50, c.knee.value = 40, c.ratio.value = 12, c.attack.value = 0, c.release.value = 0.2, o.connect(c), c.connect(s.destination), o.start(), s.oncomplete = function(u) {
901
- n = u.renderedBuffer.getChannelData(0), t({ sampleHash: eo(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
901
+ n = u.renderedBuffer.getChannelData(0), t({ sampleHash: to(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
902
902
  }, s.startRendering();
903
903
  } catch (u) {
904
904
  console.error("Error creating audio fingerprint:", u), r(u);
@@ -907,14 +907,14 @@ ce("audio", function() {
907
907
  });
908
908
  });
909
909
  });
910
- var ro = et().name !== "SamsungBrowser" ? 1 : 3, os = 280, cs = 20;
911
- et().name != "Firefox" && ce("canvas", function() {
910
+ var so = tt().name !== "SamsungBrowser" ? 1 : 3, cs = 280, is = 20;
911
+ tt().name != "Firefox" && ce("canvas", function() {
912
912
  return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
913
- var t = Array.from({ length: ro }, function() {
913
+ var t = Array.from({ length: so }, function() {
914
914
  return function() {
915
915
  var r = document.createElement("canvas"), s = r.getContext("2d");
916
916
  if (!s) return new ImageData(1, 1);
917
- r.width = os, r.height = cs;
917
+ r.width = cs, r.height = is;
918
918
  var a = s.createLinearGradient(0, 0, r.width, r.height);
919
919
  a.addColorStop(0, "red"), a.addColorStop(0.16666666666666666, "orange"), a.addColorStop(0.3333333333333333, "yellow"), a.addColorStop(0.5, "green"), a.addColorStop(0.6666666666666666, "blue"), a.addColorStop(0.8333333333333334, "indigo"), a.addColorStop(1, "violet"), s.fillStyle = a, s.fillRect(0, 0, r.width, r.height);
920
920
  var o = "Random Text WMwmil10Oo";
@@ -923,15 +923,15 @@ et().name != "Firefox" && ce("canvas", function() {
923
923
  return n;
924
924
  }();
925
925
  });
926
- e({ commonImageDataHash: nr(Hs(t, os, cs).data.toString()).toString() });
926
+ e({ commonImageDataHash: or(Us(t, cs, is).data.toString()).toString() });
927
927
  });
928
928
  });
929
- var Gt, so = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], ao = ["monospace", "sans-serif", "serif"];
930
- function is(e, t) {
929
+ var Gt, ao = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], no = ["monospace", "sans-serif", "serif"];
930
+ function ls(e, t) {
931
931
  if (!e) throw new Error("Canvas context not supported");
932
932
  return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
933
933
  }
934
- function no() {
934
+ function oo() {
935
935
  var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
936
936
  if (r && "getParameter" in r) try {
937
937
  var s = (r.getParameter(r.VENDOR) || "").toString(), a = (r.getParameter(r.RENDERER) || "").toString(), o = { vendor: s, renderer: a, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
@@ -947,19 +947,19 @@ function no() {
947
947
  }
948
948
  return "undefined";
949
949
  }
950
- function oo() {
950
+ function co() {
951
951
  var e = new Float32Array(1), t = new Uint8Array(e.buffer);
952
952
  return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
953
953
  }
954
- function co(e, t) {
954
+ function io(e, t) {
955
955
  var r = {};
956
956
  return t.forEach(function(s) {
957
957
  var a = function(o) {
958
958
  if (o.length === 0) return null;
959
959
  var n = {};
960
960
  o.forEach(function(h) {
961
- var l = String(h);
962
- n[l] = (n[l] || 0) + 1;
961
+ var i = String(h);
962
+ n[i] = (n[i] || 0) + 1;
963
963
  });
964
964
  var c = o[0], u = 1;
965
965
  return Object.keys(n).forEach(function(h) {
@@ -973,7 +973,7 @@ function co(e, t) {
973
973
  a && (r[s] = a);
974
974
  }), r;
975
975
  }
976
- function io() {
976
+ function lo() {
977
977
  var e = [], t = { "prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"], "any-hover": ["hover", "none"], "any-pointer": ["none", "coarse", "fine"], pointer: ["none", "coarse", "fine"], hover: ["hover", "none"], update: ["fast", "slow"], "inverted-colors": ["inverted", "none"], "prefers-reduced-motion": ["reduce", "no-preference"], "prefers-reduced-transparency": ["reduce", "no-preference"], scripting: ["none", "initial-only", "enabled"], "forced-colors": ["active", "none"] };
978
978
  return Object.keys(t).forEach(function(r) {
979
979
  t[r].forEach(function(s) {
@@ -981,7 +981,7 @@ function io() {
981
981
  });
982
982
  }), e;
983
983
  }
984
- function lo() {
984
+ function uo() {
985
985
  if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
986
986
  for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
987
987
  } catch {
@@ -989,7 +989,7 @@ function lo() {
989
989
  }
990
990
  return 0;
991
991
  }
992
- et().name != "Firefox" && ce("fonts", function() {
992
+ tt().name != "Firefox" && ce("fonts", function() {
993
993
  var e = this;
994
994
  return new Promise(function(t, r) {
995
995
  try {
@@ -1001,7 +1001,7 @@ et().name != "Firefox" && ce("fonts", function() {
1001
1001
  switch (u.label) {
1002
1002
  case 0:
1003
1003
  return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
1004
- return setTimeout(p, h, l);
1004
+ return setTimeout(p, h, i);
1005
1005
  }))];
1006
1006
  case 1:
1007
1007
  return u.sent(), [3, 0];
@@ -1011,7 +1011,7 @@ et().name != "Firefox" && ce("fonts", function() {
1011
1011
  document.body.removeChild(o);
1012
1012
  }, 0), [2];
1013
1013
  }
1014
- var h, l;
1014
+ var h, i;
1015
1015
  });
1016
1016
  });
1017
1017
  })(function(s) {
@@ -1019,11 +1019,11 @@ et().name != "Firefox" && ce("fonts", function() {
1019
1019
  return ge(e, void 0, void 0, function() {
1020
1020
  var o, n, c, u;
1021
1021
  return ve(this, function(h) {
1022
- return o = a.createElement("canvas"), n = o.getContext("2d"), c = ao.map(function(l) {
1023
- return is(n, l);
1024
- }), u = {}, so.forEach(function(l) {
1025
- var p = is(n, l);
1026
- c.includes(p) || (u[l] = p);
1022
+ return o = a.createElement("canvas"), n = o.getContext("2d"), c = no.map(function(i) {
1023
+ return ls(n, i);
1024
+ }), u = {}, ao.forEach(function(i) {
1025
+ var p = ls(n, i);
1026
+ c.includes(p) || (u[i] = p);
1027
1027
  }), t(u), [2];
1028
1028
  });
1029
1029
  });
@@ -1035,7 +1035,7 @@ et().name != "Firefox" && ce("fonts", function() {
1035
1035
  }), ce("hardware", function() {
1036
1036
  return new Promise(function(e, t) {
1037
1037
  var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
1038
- e({ videocard: no(), architecture: oo(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1038
+ e({ videocard: oo(), architecture: co(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1039
1039
  });
1040
1040
  }), ce("locales", function() {
1041
1041
  return new Promise(function(e) {
@@ -1071,7 +1071,7 @@ et().name != "Firefox" && ce("fonts", function() {
1071
1071
  });
1072
1072
  }();
1073
1073
  }), [2, Promise.all(e).then(function(r) {
1074
- return co(r, Gt);
1074
+ return io(r, Gt);
1075
1075
  })];
1076
1076
  });
1077
1077
  });
@@ -1086,15 +1086,15 @@ et().name != "Firefox" && ce("fonts", function() {
1086
1086
  });
1087
1087
  }), ce("screen", function() {
1088
1088
  return new Promise(function(e) {
1089
- e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: io() });
1089
+ e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: lo() });
1090
1090
  });
1091
1091
  }), ce("system", function() {
1092
1092
  return new Promise(function(e) {
1093
- var t = et();
1094
- e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion: lo() });
1093
+ var t = tt();
1094
+ e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion: uo() });
1095
1095
  });
1096
1096
  });
1097
- var X, uo = et().name !== "SamsungBrowser" ? 1 : 3, S = null;
1097
+ var X, ho = tt().name !== "SamsungBrowser" ? 1 : 3, S = null;
1098
1098
  ce("webgl", function() {
1099
1099
  return ge(this, void 0, void 0, function() {
1100
1100
  var e;
@@ -1102,7 +1102,7 @@ ce("webgl", function() {
1102
1102
  typeof document < "u" && ((X = document.createElement("canvas")).width = 200, X.height = 100, S = X.getContext("webgl"));
1103
1103
  try {
1104
1104
  if (!S) throw new Error("WebGL not supported");
1105
- return e = Array.from({ length: uo }, function() {
1105
+ return e = Array.from({ length: ho }, function() {
1106
1106
  return function() {
1107
1107
  try {
1108
1108
  if (!S) throw new Error("WebGL not supported");
@@ -1124,9 +1124,9 @@ ce("webgl", function() {
1124
1124
  if (!n) throw new Error("Failed to create shader program");
1125
1125
  if (S.attachShader(n, a), S.attachShader(n, o), S.linkProgram(n), !S.getProgramParameter(n, S.LINK_STATUS)) throw new Error("Shader program linking failed: " + S.getProgramInfoLog(n));
1126
1126
  S.useProgram(n);
1127
- for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c, l = 0; l < c; l++) {
1128
- var p = l * h;
1129
- u[4 * l] = 0, u[4 * l + 1] = 0, u[4 * l + 2] = Math.cos(p) * (X.width / 2), u[4 * l + 3] = Math.sin(p) * (X.height / 2);
1127
+ for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c, i = 0; i < c; i++) {
1128
+ var p = i * h;
1129
+ u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (X.width / 2), u[4 * i + 3] = Math.sin(p) * (X.height / 2);
1130
1130
  }
1131
1131
  var g = S.createBuffer();
1132
1132
  S.bindBuffer(S.ARRAY_BUFFER, g), S.bufferData(S.ARRAY_BUFFER, u, S.STATIC_DRAW);
@@ -1140,7 +1140,7 @@ ce("webgl", function() {
1140
1140
  S && (S.bindBuffer(S.ARRAY_BUFFER, null), S.useProgram(null), S.viewport(0, 0, S.drawingBufferWidth, S.drawingBufferHeight), S.clearColor(0, 0, 0, 0));
1141
1141
  }
1142
1142
  }();
1143
- }), [2, { commonImageHash: nr(Hs(e, X.width, X.height).data.toString()).toString() }];
1143
+ }), [2, { commonImageHash: or(Us(e, X.width, X.height).data.toString()).toString() }];
1144
1144
  } catch {
1145
1145
  return [2, { webgl: "unsupported" }];
1146
1146
  }
@@ -1160,14 +1160,14 @@ ce("math", function() {
1160
1160
  });
1161
1161
  });
1162
1162
  });
1163
- const ho = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1164
- let yt = (e = 21) => {
1163
+ const fo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1164
+ let He = (e = 21) => {
1165
1165
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
1166
1166
  for (; e--; )
1167
- t += ho[r[e] & 63];
1167
+ t += fo[r[e] & 63];
1168
1168
  return t;
1169
1169
  };
1170
- class or {
1170
+ class cr {
1171
1171
  constructor(t) {
1172
1172
  A(this, "config"), this.config = t;
1173
1173
  }
@@ -1185,7 +1185,7 @@ class or {
1185
1185
  async onAdContainerViewed(t) {
1186
1186
  }
1187
1187
  }
1188
- class fo extends or {
1188
+ class po extends cr {
1189
1189
  /**
1190
1190
  * Gets ads from the adMarketplace API based on the search term.
1191
1191
  */
@@ -1202,13 +1202,13 @@ class fo extends or {
1202
1202
  "results-pa": `${this.config.admProductAdQuantity || 0}`
1203
1203
  }).toString()}`, s = await (await fetch(r, { method: "GET" })).json(), a = s.product_ads.map(
1204
1204
  (n) => ({
1205
- id: yt(),
1205
+ id: He(),
1206
1206
  adSource: "adMarketplace",
1207
1207
  admAdType: "adm-product-ad",
1208
1208
  admAd: n
1209
1209
  })
1210
1210
  ), o = s.text_ads.map((n) => ({
1211
- id: yt(),
1211
+ id: He(),
1212
1212
  adSource: "adMarketplace",
1213
1213
  admAdType: "adm-text-ad",
1214
1214
  admAd: n
@@ -1221,13 +1221,13 @@ class fo extends or {
1221
1221
  (r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
1222
1222
  }
1223
1223
  }
1224
- class po extends or {
1224
+ class mo extends cr {
1225
1225
  async getAds(t) {
1226
1226
  return [];
1227
1227
  }
1228
1228
  }
1229
- const mo = 1e3;
1230
- class go extends or {
1229
+ const go = 1e3;
1230
+ class vo extends cr {
1231
1231
  constructor(t) {
1232
1232
  super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
1233
1233
  }
@@ -1240,7 +1240,7 @@ class go extends or {
1240
1240
  this.removeScriptTagFromDocument();
1241
1241
  return;
1242
1242
  }
1243
- this.performAdCall(mo);
1243
+ this.performAdCall(go);
1244
1244
  }
1245
1245
  async onInputCleared() {
1246
1246
  this.removeScriptTagFromDocument();
@@ -1269,8 +1269,8 @@ class go extends or {
1269
1269
  t && document.head.removeChild(t);
1270
1270
  }
1271
1271
  }
1272
- const vo = 600;
1273
- class bo {
1272
+ const bo = 600;
1273
+ class yo {
1274
1274
  constructor(t, r, s) {
1275
1275
  A(this, "measureRequestTimeout"), A(this, "measureRequestsBatched", []), A(this, "config"), A(this, "sdkInfo"), A(this, "userId"), A(this, "sessionId"), A(this, "sendMeasureEvent", async (a, o = {}, n = {}) => {
1276
1276
  const c = {
@@ -1288,47 +1288,49 @@ class bo {
1288
1288
  if (a === "document_clicked") {
1289
1289
  const u = JSON.stringify(c), h = `${this.baseMeasureUrl}/event`;
1290
1290
  try {
1291
- const l = await fetch(h, {
1291
+ const i = await fetch(h, {
1292
1292
  method: "POST",
1293
1293
  headers: {
1294
1294
  "Content-Type": "application/json",
1295
1295
  Authorization: this.config.readKey,
1296
- "X-Sc-User-Id": this.userId
1296
+ "X-Sc-User-Id": this.userId,
1297
+ "X-Sc-Session-Id": this.sessionId
1297
1298
  },
1298
1299
  body: u,
1299
1300
  keepalive: !0
1300
1301
  });
1301
- if (!l.ok)
1302
+ if (!i.ok)
1302
1303
  throw new Error(
1303
- `Failed to send request: ${l.status} ${l.statusText}`
1304
+ `Failed to send request: ${i.status} ${i.statusText}`
1304
1305
  );
1305
- } catch (l) {
1306
- throw console.error("Error sending MeasureRequest:", l), l;
1306
+ } catch (i) {
1307
+ throw console.error("Error sending MeasureRequest:", i), i;
1307
1308
  }
1308
1309
  } else
1309
1310
  this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
1310
1311
  const u = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
1311
1312
  try {
1312
- const l = await fetch(h, {
1313
+ const i = await fetch(h, {
1313
1314
  method: "POST",
1314
1315
  headers: {
1315
1316
  "Content-Type": "application/json",
1316
1317
  Authorization: this.config.readKey,
1317
- "X-Sc-User-Id": this.userId
1318
+ "X-Sc-User-Id": this.userId,
1319
+ "X-Sc-Session-Id": this.sessionId
1318
1320
  },
1319
1321
  body: u,
1320
1322
  keepalive: !0
1321
1323
  });
1322
- if (this.measureRequestsBatched = [], !l.ok)
1324
+ if (this.measureRequestsBatched = [], !i.ok)
1323
1325
  throw new Error(
1324
- `Failed to send request: ${l.status} ${l.statusText}`
1326
+ `Failed to send request: ${i.status} ${i.statusText}`
1325
1327
  );
1326
1328
  return;
1327
- } catch (l) {
1328
- throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", l), l;
1329
+ } catch (i) {
1330
+ throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", i), i;
1329
1331
  }
1330
- }, vo);
1331
- }), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = yt(), this.sendMeasureEvent("sdk_initialized");
1332
+ }, bo);
1333
+ }), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = He(), this.sendMeasureEvent("sdk_initialized");
1332
1334
  }
1333
1335
  /**
1334
1336
  * Getter for the base url used by the /measure endpoints.
@@ -1351,7 +1353,7 @@ class bo {
1351
1353
  };
1352
1354
  }
1353
1355
  }
1354
- const yo = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Co = (e) => {
1356
+ const Co = (e) => e.endsWith("/") ? e.slice(0, -1) : e, qt = (e) => {
1355
1357
  let t = "";
1356
1358
  if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
1357
1359
  "‘": "'",
@@ -1368,7 +1370,7 @@ class ko {
1368
1370
  constructor(t, r, s) {
1369
1371
  A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
1370
1372
  var o, n, c, u, h;
1371
- let l;
1373
+ let i;
1372
1374
  const p = typeof a == "string" ? a : a.searchTerm;
1373
1375
  try {
1374
1376
  return (o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
@@ -1380,81 +1382,85 @@ class ko {
1380
1382
  }
1381
1383
  }), (n = this.parent.adClient) == null || n.onQuerySubmitted(
1382
1384
  typeof a == "string" ? { searchTerm: p, mode: "exact" } : a
1383
- ), typeof a == "string" ? l = await this.handleGetSearchResponseItemsWithString(a) : l = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
1385
+ ), typeof a == "string" ? i = await this.handleGetSearchResponseItemsWithString(a) : i = await this.handleGetSearchResponseItemsWithObject(a), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_response_received", {
1384
1386
  search_term: p,
1385
- number_of_documents: l.data.count
1387
+ number_of_documents: i.data.count
1386
1388
  }), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
1387
1389
  var g;
1388
1390
  (g = this.parent.measureClient) == null || g.sendMeasureEvent("search_completed", {
1389
1391
  search_term: p,
1390
- number_of_documents: l.data.count
1392
+ number_of_documents: i.data.count
1391
1393
  });
1392
1394
  }, So), this.parent.emitEvent("query_fetched", {
1393
1395
  name: "query_fetched",
1394
1396
  data: {
1395
1397
  searchTerm: p
1396
1398
  }
1397
- }), (((u = l.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1399
+ }), (((u = i.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1398
1400
  name: "no_results_returned"
1399
1401
  }), (h = this.parent.adClient) == null || h.onQueryFetched(
1400
1402
  typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
1401
- l
1402
- ), l;
1403
+ i
1404
+ ), i;
1403
1405
  } catch (g) {
1404
1406
  throw console.error("Error parsing response:", g), g;
1405
1407
  }
1406
1408
  }), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
1407
- let o;
1409
+ var o;
1410
+ let n;
1408
1411
  try {
1409
- o = JSON.parse(a), o = {
1412
+ n = JSON.parse(a), n = {
1410
1413
  limit: this.config.searchResultsPerPage,
1411
- order_by: this.config.indexFieldName,
1412
- ...o
1414
+ ...n
1413
1415
  };
1414
1416
  } catch {
1415
1417
  throw new Error("Error: Query string is not valid json.");
1416
1418
  }
1417
- const n = await fetch(this.baseSearchUrl, {
1419
+ const c = await fetch(this.baseSearchUrl, {
1418
1420
  method: "POST",
1419
1421
  headers: {
1420
1422
  Authorization: this.config.readKey,
1421
1423
  "Content-Type": "application/json",
1422
- "X-Sc-User-Id": this.userId
1424
+ "X-Sc-User-Id": this.userId,
1425
+ "X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || He()
1423
1426
  },
1424
- body: JSON.stringify(o)
1427
+ body: JSON.stringify(n)
1425
1428
  });
1426
- if (!n.ok)
1429
+ if (!c.ok)
1427
1430
  throw new Error(
1428
- `Error: ${n.statusText} (Status: ${n.status})`
1431
+ `Error: ${c.statusText} (Status: ${c.status})`
1429
1432
  );
1430
- return await n.json();
1433
+ return await c.json();
1431
1434
  }), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
1435
+ var o;
1432
1436
  try {
1433
- const o = {
1434
- query: this.formatParamsForRequest(a),
1435
- offset: a.offset || 0,
1436
- // Default to 0 (first page) if not provided
1437
- limit: a.limit || this.config.searchResultsPerPage || 20,
1438
- // Default to 20 if not provided
1439
- order_by: a.order_by || this.config.indexFieldName
1440
- };
1441
- o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
1442
1437
  const n = await fetch(this.baseSearchUrl, {
1443
1438
  method: "POST",
1444
1439
  headers: {
1445
1440
  Authorization: this.config.readKey,
1446
1441
  "Content-Type": "application/json",
1447
- "X-Sc-User-Id": this.userId
1442
+ "X-Sc-User-Id": this.userId,
1443
+ "X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || He()
1448
1444
  },
1449
- body: JSON.stringify(o)
1445
+ body: JSON.stringify({
1446
+ query: this.formatParamsForRequest(a),
1447
+ offset: a.offset || 0,
1448
+ limit: a.limit || this.config.searchResultsPerPage || 20,
1449
+ ...a.order_by && {
1450
+ order_by: a.order_by
1451
+ },
1452
+ ...a.sort && {
1453
+ sort: a.sort
1454
+ }
1455
+ })
1450
1456
  });
1451
1457
  if (!n.ok)
1452
1458
  throw new Error(
1453
1459
  `Error: ${n.statusText} (Status: ${n.status})`
1454
1460
  );
1455
1461
  return await n.json();
1456
- } catch (o) {
1457
- throw console.error("Error parsing response:", o), o;
1462
+ } catch (n) {
1463
+ throw console.error("Error parsing response:", n), n;
1458
1464
  }
1459
1465
  }), this.parent = t, this.config = r, this.userId = s;
1460
1466
  }
@@ -1471,29 +1477,32 @@ class ko {
1471
1477
  */
1472
1478
  formatParamsForRequest(t) {
1473
1479
  const r = [];
1474
- let s = "should";
1475
1480
  t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((o) => {
1476
1481
  var n;
1477
1482
  const c = (n = t.facetPathsForIndexFields) == null ? void 0 : n[o];
1478
- c && (s = "must", r.push({
1479
- occur: s,
1483
+ c && r.push({
1484
+ occur: "must",
1480
1485
  exact: {
1481
- ctx: Co(c.value)
1486
+ ctx: qt(c.value)
1482
1487
  }
1483
- }));
1488
+ });
1484
1489
  }), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((o) => {
1485
1490
  var n;
1486
1491
  const c = (n = t.rangeValueForIndexFields) == null ? void 0 : n[o];
1487
- c && (s = "must", r.push({
1488
- occur: s,
1492
+ c && r.push({
1493
+ occur: "must",
1489
1494
  exact: {
1490
- ctx: c.value
1495
+ ctx: qt(c.value)
1491
1496
  }
1492
- }));
1497
+ });
1493
1498
  });
1494
- const a = t.mode === "fuzzy" ? { fuzzy: { ctx: t.searchTerm } } : { exact: { ctx: t.searchTerm } };
1499
+ const s = qt(t.searchTerm), a = t.mode === "fuzzy" ? { fuzzy: { ctx: s } } : {
1500
+ exact: {
1501
+ ctx: `${s.startsWith('"') ? s : `"${s}"`}`
1502
+ }
1503
+ };
1495
1504
  return r.push({
1496
- occur: s,
1505
+ occur: t.mode === "exact" ? "must" : "should",
1497
1506
  // Valid, as 'occur' is a required property in SearchClientQuery
1498
1507
  ...a
1499
1508
  }), r;
@@ -1504,16 +1513,17 @@ class wo {
1504
1513
  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) => {
1505
1514
  const n = async () => {
1506
1515
  (async () => {
1507
- var c, u;
1508
- const h = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
1509
- if (!h)
1516
+ var c;
1517
+ const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
1518
+ if (!u)
1510
1519
  throw new Error("Search client was not initialized.");
1511
- const l = (u = h.data.hits || []) == null ? void 0 : u.map((p) => p.doc).filter((p) => !!p).map((p) => ({
1512
- type: "SearchDocument",
1513
- id: yt(),
1514
- document: p
1520
+ const h = (u.data.hits || []).filter((i) => !!i.doc).map((i) => ({
1521
+ id: He(),
1522
+ document: i.doc || { id: -1 },
1523
+ source_index: i.source_index,
1524
+ type: "SearchDocument"
1515
1525
  }));
1516
- a(h, l);
1526
+ a(u, h);
1517
1527
  })(), (async () => {
1518
1528
  if (this.adClient && typeof s != "string") {
1519
1529
  const c = await this.adClient.getAds(s);
@@ -1532,7 +1542,7 @@ class wo {
1532
1542
  this.config = {
1533
1543
  ...t,
1534
1544
  // Strips off the trailing '/' from an endpointURL if one is accidentally added
1535
- endpointURL: yo(t.endpointURL)
1545
+ endpointURL: Co(t.endpointURL)
1536
1546
  }, 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());
1537
1547
  }
1538
1548
  initInputForms() {
@@ -1561,15 +1571,15 @@ class wo {
1561
1571
  initClients(t, r) {
1562
1572
  setTimeout(async () => {
1563
1573
  let s = this.config.userId;
1564
- switch (s || (s = await Jn()), this.measureClient = new bo(t, r, s), this.searchClient = new ko(this, t, s), t.adSource) {
1574
+ switch (s || (s = await eo()), this.measureClient = new yo(t, r, s), this.searchClient = new ko(this, t, s), t.adSource) {
1565
1575
  case "adMarketplace":
1566
- this.adClient = new fo(t);
1576
+ this.adClient = new po(t);
1567
1577
  break;
1568
1578
  case "Nativo":
1569
- this.adClient = new go(t);
1579
+ this.adClient = new vo(t);
1570
1580
  break;
1571
1581
  case "Custom":
1572
- this.adClient = new po(t);
1582
+ this.adClient = new mo(t);
1573
1583
  break;
1574
1584
  }
1575
1585
  this.emitEvent("initialized", {
@@ -1628,20 +1638,20 @@ class wo {
1628
1638
  }), (t = this.adClient) == null || t.onInputCleared();
1629
1639
  }
1630
1640
  }
1631
- var Us = {}, cr = {};
1632
- const ls = (e) => {
1641
+ var zs = {}, ir = {};
1642
+ const us = (e) => {
1633
1643
  let t;
1634
- const r = /* @__PURE__ */ new Set(), s = (h, l) => {
1644
+ const r = /* @__PURE__ */ new Set(), s = (h, i) => {
1635
1645
  const p = typeof h == "function" ? h(t) : h;
1636
1646
  if (!Object.is(p, t)) {
1637
1647
  const g = t;
1638
- t = l ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((k) => k(t, g));
1648
+ t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((k) => k(t, g));
1639
1649
  }
1640
1650
  }, a = () => t, c = { setState: s, getState: a, getInitialState: () => u, subscribe: (h) => (r.add(h), () => r.delete(h)) }, u = t = e(s, a, c);
1641
1651
  return c;
1642
- }, xo = (e) => e ? ls(e) : ls;
1643
- cr.createStore = xo;
1644
- var ir = {}, zs = { exports: {} }, w = {};
1652
+ }, xo = (e) => e ? us(e) : us;
1653
+ ir.createStore = xo;
1654
+ var lr = {}, js = { exports: {} }, w = {};
1645
1655
  /**
1646
1656
  * @license React
1647
1657
  * react.production.js
@@ -1651,11 +1661,11 @@ var ir = {}, zs = { exports: {} }, w = {};
1651
1661
  * This source code is licensed under the MIT license found in the
1652
1662
  * LICENSE file in the root directory of this source tree.
1653
1663
  */
1654
- var lr = Symbol.for("react.transitional.element"), Ro = Symbol.for("react.portal"), Eo = Symbol.for("react.fragment"), Po = Symbol.for("react.strict_mode"), To = Symbol.for("react.profiler"), $o = Symbol.for("react.consumer"), _o = Symbol.for("react.context"), Io = Symbol.for("react.forward_ref"), Ao = Symbol.for("react.suspense"), Mo = Symbol.for("react.memo"), js = Symbol.for("react.lazy"), us = Symbol.iterator;
1664
+ var ur = Symbol.for("react.transitional.element"), Ro = Symbol.for("react.portal"), Eo = Symbol.for("react.fragment"), Po = Symbol.for("react.strict_mode"), To = Symbol.for("react.profiler"), $o = Symbol.for("react.consumer"), _o = Symbol.for("react.context"), Io = Symbol.for("react.forward_ref"), Ao = Symbol.for("react.suspense"), Mo = Symbol.for("react.memo"), Vs = Symbol.for("react.lazy"), hs = Symbol.iterator;
1655
1665
  function Lo(e) {
1656
- return e === null || typeof e != "object" ? null : (e = us && e[us] || e["@@iterator"], typeof e == "function" ? e : null);
1666
+ return e === null || typeof e != "object" ? null : (e = hs && e[hs] || e["@@iterator"], typeof e == "function" ? e : null);
1657
1667
  }
1658
- var Vs = {
1668
+ var Bs = {
1659
1669
  isMounted: function() {
1660
1670
  return !1;
1661
1671
  },
@@ -1665,35 +1675,35 @@ var Vs = {
1665
1675
  },
1666
1676
  enqueueSetState: function() {
1667
1677
  }
1668
- }, Bs = Object.assign, Ws = {};
1669
- function He(e, t, r) {
1670
- this.props = e, this.context = t, this.refs = Ws, this.updater = r || Vs;
1678
+ }, Ws = Object.assign, Gs = {};
1679
+ function Ue(e, t, r) {
1680
+ this.props = e, this.context = t, this.refs = Gs, this.updater = r || Bs;
1671
1681
  }
1672
- He.prototype.isReactComponent = {};
1673
- He.prototype.setState = function(e, t) {
1682
+ Ue.prototype.isReactComponent = {};
1683
+ Ue.prototype.setState = function(e, t) {
1674
1684
  if (typeof e != "object" && typeof e != "function" && e != null)
1675
1685
  throw Error(
1676
1686
  "takes an object of state variables to update or a function which returns an object of state variables."
1677
1687
  );
1678
1688
  this.updater.enqueueSetState(this, e, t, "setState");
1679
1689
  };
1680
- He.prototype.forceUpdate = function(e) {
1690
+ Ue.prototype.forceUpdate = function(e) {
1681
1691
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1682
1692
  };
1683
- function Gs() {
1693
+ function qs() {
1684
1694
  }
1685
- Gs.prototype = He.prototype;
1686
- function ur(e, t, r) {
1687
- this.props = e, this.context = t, this.refs = Ws, this.updater = r || Vs;
1695
+ qs.prototype = Ue.prototype;
1696
+ function hr(e, t, r) {
1697
+ this.props = e, this.context = t, this.refs = Gs, this.updater = r || Bs;
1688
1698
  }
1689
- var hr = ur.prototype = new Gs();
1690
- hr.constructor = ur;
1691
- Bs(hr, He.prototype);
1692
- hr.isPureReactComponent = !0;
1693
- var hs = Array.isArray, L = { H: null, A: null, T: null, S: null }, qs = Object.prototype.hasOwnProperty;
1699
+ var dr = hr.prototype = new qs();
1700
+ dr.constructor = hr;
1701
+ Ws(dr, Ue.prototype);
1702
+ dr.isPureReactComponent = !0;
1703
+ var ds = Array.isArray, L = { H: null, A: null, T: null, S: null }, Ys = Object.prototype.hasOwnProperty;
1694
1704
  function fr(e, t, r, s, a, o) {
1695
1705
  return r = o.ref, {
1696
- $$typeof: lr,
1706
+ $$typeof: ur,
1697
1707
  type: e,
1698
1708
  key: t,
1699
1709
  ref: r !== void 0 ? r : null,
@@ -1710,8 +1720,8 @@ function Oo(e, t) {
1710
1720
  e.props
1711
1721
  );
1712
1722
  }
1713
- function dr(e) {
1714
- return typeof e == "object" && e !== null && e.$$typeof === lr;
1723
+ function pr(e) {
1724
+ return typeof e == "object" && e !== null && e.$$typeof === ur;
1715
1725
  }
1716
1726
  function Fo(e) {
1717
1727
  var t = { "=": "=0", ":": "=2" };
@@ -1720,10 +1730,10 @@ function Fo(e) {
1720
1730
  });
1721
1731
  }
1722
1732
  var fs = /\/+/g;
1723
- function qt(e, t) {
1733
+ function Yt(e, t) {
1724
1734
  return typeof e == "object" && e !== null && e.key != null ? Fo("" + e.key) : t.toString(36);
1725
1735
  }
1726
- function ds() {
1736
+ function ps() {
1727
1737
  }
1728
1738
  function Do(e) {
1729
1739
  switch (e.status) {
@@ -1732,7 +1742,7 @@ function Do(e) {
1732
1742
  case "rejected":
1733
1743
  throw e.reason;
1734
1744
  default:
1735
- switch (typeof e.status == "string" ? e.then(ds, ds) : (e.status = "pending", e.then(
1745
+ switch (typeof e.status == "string" ? e.then(ps, ps) : (e.status = "pending", e.then(
1736
1746
  function(t) {
1737
1747
  e.status === "pending" && (e.status = "fulfilled", e.value = t);
1738
1748
  },
@@ -1762,11 +1772,11 @@ function Fe(e, t, r, s, a) {
1762
1772
  break;
1763
1773
  case "object":
1764
1774
  switch (e.$$typeof) {
1765
- case lr:
1775
+ case ur:
1766
1776
  case Ro:
1767
1777
  n = !0;
1768
1778
  break;
1769
- case js:
1779
+ case Vs:
1770
1780
  return n = e._init, Fe(
1771
1781
  n(e._payload),
1772
1782
  t,
@@ -1777,9 +1787,9 @@ function Fe(e, t, r, s, a) {
1777
1787
  }
1778
1788
  }
1779
1789
  if (n)
1780
- return a = a(e), n = s === "" ? "." + qt(e, 0) : s, hs(a) ? (r = "", n != null && (r = n.replace(fs, "$&/") + "/"), Fe(a, t, r, "", function(h) {
1790
+ return a = a(e), n = s === "" ? "." + Yt(e, 0) : s, ds(a) ? (r = "", n != null && (r = n.replace(fs, "$&/") + "/"), Fe(a, t, r, "", function(h) {
1781
1791
  return h;
1782
- })) : a != null && (dr(a) && (a = Oo(
1792
+ })) : a != null && (pr(a) && (a = Oo(
1783
1793
  a,
1784
1794
  r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
1785
1795
  fs,
@@ -1788,9 +1798,9 @@ function Fe(e, t, r, s, a) {
1788
1798
  )), t.push(a)), 1;
1789
1799
  n = 0;
1790
1800
  var c = s === "" ? "." : s + ":";
1791
- if (hs(e))
1801
+ if (ds(e))
1792
1802
  for (var u = 0; u < e.length; u++)
1793
- s = e[u], o = c + qt(s, u), n += Fe(
1803
+ s = e[u], o = c + Yt(s, u), n += Fe(
1794
1804
  s,
1795
1805
  t,
1796
1806
  r,
@@ -1799,7 +1809,7 @@ function Fe(e, t, r, s, a) {
1799
1809
  );
1800
1810
  else if (u = Lo(e), typeof u == "function")
1801
1811
  for (e = u.call(e), u = 0; !(s = e.next()).done; )
1802
- s = s.value, o = c + qt(s, u++), n += Fe(
1812
+ s = s.value, o = c + Yt(s, u++), n += Fe(
1803
1813
  s,
1804
1814
  t,
1805
1815
  r,
@@ -1821,14 +1831,14 @@ function Fe(e, t, r, s, a) {
1821
1831
  }
1822
1832
  return n;
1823
1833
  }
1824
- function pt(e, t, r) {
1834
+ function gt(e, t, r) {
1825
1835
  if (e == null) return e;
1826
1836
  var s = [], a = 0;
1827
1837
  return Fe(e, s, "", "", function(o) {
1828
1838
  return t.call(r, o, a++);
1829
1839
  }), s;
1830
1840
  }
1831
- function No(e) {
1841
+ function Ho(e) {
1832
1842
  if (e._status === -1) {
1833
1843
  var t = e._result;
1834
1844
  t = t(), t.then(
@@ -1843,7 +1853,7 @@ function No(e) {
1843
1853
  if (e._status === 1) return e._result.default;
1844
1854
  throw e._result;
1845
1855
  }
1846
- var ps = typeof reportError == "function" ? reportError : function(e) {
1856
+ var ms = typeof reportError == "function" ? reportError : function(e) {
1847
1857
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1848
1858
  var t = new window.ErrorEvent("error", {
1849
1859
  bubbles: !0,
@@ -1858,12 +1868,12 @@ var ps = typeof reportError == "function" ? reportError : function(e) {
1858
1868
  }
1859
1869
  console.error(e);
1860
1870
  };
1861
- function Ho() {
1871
+ function No() {
1862
1872
  }
1863
1873
  w.Children = {
1864
- map: pt,
1874
+ map: gt,
1865
1875
  forEach: function(e, t, r) {
1866
- pt(
1876
+ gt(
1867
1877
  e,
1868
1878
  function() {
1869
1879
  t.apply(this, arguments);
@@ -1873,27 +1883,27 @@ w.Children = {
1873
1883
  },
1874
1884
  count: function(e) {
1875
1885
  var t = 0;
1876
- return pt(e, function() {
1886
+ return gt(e, function() {
1877
1887
  t++;
1878
1888
  }), t;
1879
1889
  },
1880
1890
  toArray: function(e) {
1881
- return pt(e, function(t) {
1891
+ return gt(e, function(t) {
1882
1892
  return t;
1883
1893
  }) || [];
1884
1894
  },
1885
1895
  only: function(e) {
1886
- if (!dr(e))
1896
+ if (!pr(e))
1887
1897
  throw Error(
1888
1898
  "React.Children.only expected to receive a single React element child."
1889
1899
  );
1890
1900
  return e;
1891
1901
  }
1892
1902
  };
1893
- w.Component = He;
1903
+ w.Component = Ue;
1894
1904
  w.Fragment = Eo;
1895
1905
  w.Profiler = To;
1896
- w.PureComponent = ur;
1906
+ w.PureComponent = hr;
1897
1907
  w.StrictMode = Po;
1898
1908
  w.Suspense = Ao;
1899
1909
  w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
@@ -1910,10 +1920,10 @@ w.cloneElement = function(e, t, r) {
1910
1920
  throw Error(
1911
1921
  "The argument must be a React element, but you passed " + e + "."
1912
1922
  );
1913
- var s = Bs({}, e.props), a = e.key, o = void 0;
1923
+ var s = Ws({}, e.props), a = e.key, o = void 0;
1914
1924
  if (t != null)
1915
1925
  for (n in t.ref !== void 0 && (o = void 0), t.key !== void 0 && (a = "" + t.key), t)
1916
- !qs.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
1926
+ !Ys.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
1917
1927
  var n = arguments.length - 2;
1918
1928
  if (n === 1) s.children = r;
1919
1929
  else if (1 < n) {
@@ -1940,7 +1950,7 @@ w.createElement = function(e, t, r) {
1940
1950
  var s, a = {}, o = null;
1941
1951
  if (t != null)
1942
1952
  for (s in t.key !== void 0 && (o = "" + t.key), t)
1943
- qs.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
1953
+ Ys.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
1944
1954
  var n = arguments.length - 2;
1945
1955
  if (n === 1) a.children = r;
1946
1956
  else if (1 < n) {
@@ -1959,12 +1969,12 @@ w.createRef = function() {
1959
1969
  w.forwardRef = function(e) {
1960
1970
  return { $$typeof: Io, render: e };
1961
1971
  };
1962
- w.isValidElement = dr;
1972
+ w.isValidElement = pr;
1963
1973
  w.lazy = function(e) {
1964
1974
  return {
1965
- $$typeof: js,
1975
+ $$typeof: Vs,
1966
1976
  _payload: { _status: -1, _result: e },
1967
- _init: No
1977
+ _init: Ho
1968
1978
  };
1969
1979
  };
1970
1980
  w.memo = function(e, t) {
@@ -1979,9 +1989,9 @@ w.startTransition = function(e) {
1979
1989
  L.T = r;
1980
1990
  try {
1981
1991
  var s = e(), a = L.S;
1982
- a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Ho, ps);
1992
+ a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(No, ms);
1983
1993
  } catch (o) {
1984
- ps(o);
1994
+ ms(o);
1985
1995
  } finally {
1986
1996
  L.T = t;
1987
1997
  }
@@ -2047,25 +2057,25 @@ w.useTransition = function() {
2047
2057
  return L.H.useTransition();
2048
2058
  };
2049
2059
  w.version = "19.0.0";
2050
- zs.exports = w;
2051
- var ms = zs.exports, Uo = cr;
2060
+ js.exports = w;
2061
+ var gs = js.exports, Uo = ir;
2052
2062
  const zo = (e) => e;
2053
- function Ys(e, t = zo) {
2054
- const r = ms.useSyncExternalStore(
2063
+ function Zs(e, t = zo) {
2064
+ const r = gs.useSyncExternalStore(
2055
2065
  e.subscribe,
2056
2066
  () => t(e.getState()),
2057
2067
  () => t(e.getInitialState())
2058
2068
  );
2059
- return ms.useDebugValue(r), r;
2069
+ return gs.useDebugValue(r), r;
2060
2070
  }
2061
- const gs = (e) => {
2062
- const t = Uo.createStore(e), r = (s) => Ys(t, s);
2071
+ const vs = (e) => {
2072
+ const t = Uo.createStore(e), r = (s) => Zs(t, s);
2063
2073
  return Object.assign(r, t), r;
2064
- }, jo = (e) => e ? gs(e) : gs;
2065
- ir.create = jo;
2066
- ir.useStore = Ys;
2074
+ }, jo = (e) => e ? vs(e) : vs;
2075
+ lr.create = jo;
2076
+ lr.useStore = Zs;
2067
2077
  (function(e) {
2068
- var t = cr, r = ir;
2078
+ var t = ir, r = lr;
2069
2079
  Object.keys(t).forEach(function(s) {
2070
2080
  s !== "default" && !Object.prototype.hasOwnProperty.call(e, s) && Object.defineProperty(e, s, {
2071
2081
  enumerable: !0,
@@ -2081,8 +2091,8 @@ ir.useStore = Ys;
2081
2091
  }
2082
2092
  });
2083
2093
  });
2084
- })(Us);
2085
- const vs = {
2094
+ })(zs);
2095
+ const bs = {
2086
2096
  adClientResponseItems: [],
2087
2097
  core: void 0,
2088
2098
  hotkey: "k",
@@ -2102,11 +2112,12 @@ const vs = {
2102
2112
  searchResultsCount: 0,
2103
2113
  searchResultsPerPage: 20,
2104
2114
  searchResultsPage: 1,
2105
- sortType: "asc",
2115
+ sortType: void 0,
2116
+ orderByField: void 0,
2106
2117
  // Callbacks
2107
2118
  afterInit: () => {
2108
2119
  }
2109
- }, I = Us.createStore((e, t) => {
2120
+ }, I = zs.createStore((e, t) => {
2110
2121
  const r = {
2111
2122
  set: (a) => (e(a), t()),
2112
2123
  addFacetPathsForIndexField: (a) => r.set((o) => ({
@@ -2126,7 +2137,7 @@ const vs = {
2126
2137
  return a;
2127
2138
  },
2128
2139
  init: (a, o = !1) => {
2129
- const n = o ? new qn({ logLevel: pe.DEBUG }) : void 0, c = r.set({
2140
+ const n = o ? new Yn({ logLevel: pe.DEBUG }) : void 0, c = r.set({
2130
2141
  core: a,
2131
2142
  logger: n,
2132
2143
  searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
@@ -2174,6 +2185,7 @@ const vs = {
2174
2185
  searchTerm: a.searchTerm,
2175
2186
  mode: a.searchMode,
2176
2187
  sort: a.sortType,
2188
+ order_by: a.orderByField,
2177
2189
  facetPathsForIndexFields: a.facetPathsForIndexFields,
2178
2190
  rangeValueForIndexFields: a.rangeValueForIndexFields,
2179
2191
  offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
@@ -2182,7 +2194,7 @@ const vs = {
2182
2194
  },
2183
2195
  setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
2184
2196
  setSearchClientResponseItemsFromResponse: (a, o) => {
2185
- var l, p;
2197
+ var i, p;
2186
2198
  const { facets: n, count: c = 0, time_taken: u = 0 } = a.data, h = r.set((g) => ({
2187
2199
  isSearchInProgress: !1,
2188
2200
  searchClientResponseItems: o,
@@ -2194,18 +2206,18 @@ const vs = {
2194
2206
  searchResultsCount: c,
2195
2207
  ...n && { searchResponseFacetPrime: n }
2196
2208
  }));
2197
- (l = h.logger) == null || l.log(pe.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(pe.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
2209
+ (i = h.logger) == null || i.log(pe.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(pe.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
2198
2210
  },
2199
2211
  setInitialSearchClientResponseItemsFromResponse: (a, o) => {
2200
2212
  var h;
2201
2213
  const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
2202
- r.set((l) => ({
2214
+ r.set((i) => ({
2203
2215
  isSearchInProgress: !1,
2204
2216
  initialSearchClientResponseItems: o,
2205
2217
  searchResponseTimeTaken: u,
2206
2218
  searchResultsPage: (
2207
2219
  // Reset to first page when response count changes
2208
- c === l.searchResultsCount ? l.searchResultsPage : 1
2220
+ c === i.searchResultsCount ? i.searchResultsPage : 1
2209
2221
  ),
2210
2222
  searchResultsCount: c
2211
2223
  })), (h = n.logger) == null || h.log(pe.DEBUG, `Search results: ${JSON.stringify(o)}`);
@@ -2221,7 +2233,7 @@ const vs = {
2221
2233
  isPopoverVisible: a
2222
2234
  }),
2223
2235
  setSearchMode: (a) => r.set({ searchMode: a }),
2224
- setSortType: (a) => r.set({ sortType: a }),
2236
+ setSortOrder: ({ orderByField: a, sortType: o }) => r.set({ sortType: o, orderByField: a }),
2225
2237
  setSearchTerm: (a) => {
2226
2238
  const { core: o } = t();
2227
2239
  a.length === 0 && (o == null || o.handleInputCleared()), r.set({
@@ -2229,7 +2241,8 @@ const vs = {
2229
2241
  facetPathsForIndexFields: {},
2230
2242
  ...a.trim().length === 0 && {
2231
2243
  searchMode: "fuzzy",
2232
- sortType: "asc"
2244
+ sortType: null,
2245
+ orderByField: null
2233
2246
  }
2234
2247
  });
2235
2248
  },
@@ -2242,7 +2255,7 @@ const vs = {
2242
2255
  r.set({ searchResultsPerPage: a }), await r.search();
2243
2256
  },
2244
2257
  setHotKeyAndHotKeyModifier: (a, o) => {
2245
- const { hotkey: n, hotkeyModifier: c } = vs;
2258
+ const { hotkey: n, hotkeyModifier: c } = bs;
2246
2259
  r.set({
2247
2260
  hotkey: a || n,
2248
2261
  hotkeyModifier: o || c
@@ -2250,11 +2263,48 @@ const vs = {
2250
2263
  }
2251
2264
  };
2252
2265
  return {
2253
- ...vs,
2266
+ ...bs,
2254
2267
  ...r
2255
2268
  };
2256
2269
  });
2257
- var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Zs = { exports: {} };
2270
+ var Qs = { exports: {} };
2271
+ /*!
2272
+ Copyright (c) 2018 Jed Watson.
2273
+ Licensed under the MIT License (MIT), see
2274
+ http://jedwatson.github.io/classnames
2275
+ */
2276
+ (function(e) {
2277
+ (function() {
2278
+ var t = {}.hasOwnProperty;
2279
+ function r() {
2280
+ for (var o = "", n = 0; n < arguments.length; n++) {
2281
+ var c = arguments[n];
2282
+ c && (o = a(o, s(c)));
2283
+ }
2284
+ return o;
2285
+ }
2286
+ function s(o) {
2287
+ if (typeof o == "string" || typeof o == "number")
2288
+ return o;
2289
+ if (typeof o != "object")
2290
+ return "";
2291
+ if (Array.isArray(o))
2292
+ return r.apply(null, o);
2293
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
2294
+ return o.toString();
2295
+ var n = "";
2296
+ for (var c in o)
2297
+ t.call(o, c) && o[c] && (n = a(n, c));
2298
+ return n;
2299
+ }
2300
+ function a(o, n) {
2301
+ return n ? o ? o + " " + n : o + n : o;
2302
+ }
2303
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
2304
+ })();
2305
+ })(Qs);
2306
+ const ne = Qs.exports;
2307
+ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ks = { exports: {} };
2258
2308
  /*! @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 */
2259
2309
  (function(e, t) {
2260
2310
  (function(r, s) {
@@ -2272,27 +2322,27 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2272
2322
  seal: u,
2273
2323
  create: h
2274
2324
  } = Object, {
2275
- apply: l,
2325
+ apply: i,
2276
2326
  construct: p
2277
2327
  } = typeof Reflect < "u" && Reflect;
2278
2328
  c || (c = function(y) {
2279
2329
  return y;
2280
2330
  }), u || (u = function(y) {
2281
2331
  return y;
2282
- }), l || (l = function(y, $, E) {
2332
+ }), i || (i = function(y, $, E) {
2283
2333
  return y.apply($, E);
2284
2334
  }), p || (p = function(y, $) {
2285
2335
  return new y(...$);
2286
2336
  });
2287
- const g = Y(Array.prototype.forEach), k = Y(Array.prototype.lastIndexOf), b = Y(Array.prototype.pop), P = Y(Array.prototype.push), _ = Y(Array.prototype.splice), O = Y(String.prototype.toLowerCase), T = Y(String.prototype.toString), ue = Y(String.prototype.match), se = Y(String.prototype.replace), we = Y(String.prototype.indexOf), H = Y(String.prototype.trim), ee = Y(Object.prototype.hasOwnProperty), U = Y(RegExp.prototype.test), xe = ha(TypeError);
2337
+ const g = Y(Array.prototype.forEach), k = Y(Array.prototype.lastIndexOf), b = Y(Array.prototype.pop), P = Y(Array.prototype.push), _ = Y(Array.prototype.splice), O = Y(String.prototype.toLowerCase), T = Y(String.prototype.toString), ue = Y(String.prototype.match), se = Y(String.prototype.replace), we = Y(String.prototype.indexOf), N = Y(String.prototype.trim), ee = Y(Object.prototype.hasOwnProperty), U = Y(RegExp.prototype.test), xe = da(TypeError);
2288
2338
  function Y(R) {
2289
2339
  return function(y) {
2290
2340
  for (var $ = arguments.length, E = new Array($ > 1 ? $ - 1 : 0), W = 1; W < $; W++)
2291
2341
  E[W - 1] = arguments[W];
2292
- return l(R, y, E);
2342
+ return i(R, y, E);
2293
2343
  };
2294
2344
  }
2295
- function ha(R) {
2345
+ function da(R) {
2296
2346
  return function() {
2297
2347
  for (var y = arguments.length, $ = new Array(y), E = 0; E < y; E++)
2298
2348
  $[E] = arguments[E];
@@ -2324,7 +2374,7 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2324
2374
  ee(R, $) && (Array.isArray(E) ? y[$] = fa(E) : E && typeof E == "object" && E.constructor === Object ? y[$] = Re(E) : y[$] = E);
2325
2375
  return y;
2326
2376
  }
2327
- function Ue(R, y) {
2377
+ function ze(R, y) {
2328
2378
  for (; R !== null; ) {
2329
2379
  const E = n(R, y);
2330
2380
  if (E) {
@@ -2340,36 +2390,36 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2340
2390
  }
2341
2391
  return $;
2342
2392
  }
2343
- const gr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Et = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), da = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Tt = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), pa = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), vr = c(["#text"]), br = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), yr = c(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), tt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ma = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ga = u(/<%[\w\W]*|[\w\W]*%>/gm), va = u(/\$\{[\w\W]*/gm), ba = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), ya = u(/^aria-[\-\w]+$/), Cr = u(
2393
+ const vr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Et = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Pt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), pa = 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"]), ma = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), br = c(["#text"]), yr = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Cr = 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"]), st = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ga = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), va = u(/<%[\w\W]*|[\w\W]*%>/gm), ba = u(/\$\{[\w\W]*/gm), ya = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ca = u(/^aria-[\-\w]+$/), Sr = u(
2344
2394
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2345
2395
  // eslint-disable-line no-useless-escape
2346
- ), Ca = u(/^(?:\w+script|data):/i), Sa = u(
2396
+ ), Sa = u(/^(?:\w+script|data):/i), ka = u(
2347
2397
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
2348
2398
  // eslint-disable-line no-control-regex
2349
- ), Sr = u(/^html$/i), ka = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
2350
- var kr = /* @__PURE__ */ Object.freeze({
2399
+ ), kr = u(/^html$/i), wa = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
2400
+ var wr = /* @__PURE__ */ Object.freeze({
2351
2401
  __proto__: null,
2352
- ARIA_ATTR: ya,
2353
- ATTR_WHITESPACE: Sa,
2354
- CUSTOM_ELEMENT: ka,
2355
- DATA_ATTR: ba,
2356
- DOCTYPE_NAME: Sr,
2357
- ERB_EXPR: ga,
2358
- IS_ALLOWED_URI: Cr,
2359
- IS_SCRIPT_OR_DATA: Ca,
2360
- MUSTACHE_EXPR: ma,
2361
- TMPLIT_EXPR: va
2402
+ ARIA_ATTR: Ca,
2403
+ ATTR_WHITESPACE: ka,
2404
+ CUSTOM_ELEMENT: wa,
2405
+ DATA_ATTR: ya,
2406
+ DOCTYPE_NAME: kr,
2407
+ ERB_EXPR: va,
2408
+ IS_ALLOWED_URI: Sr,
2409
+ IS_SCRIPT_OR_DATA: Sa,
2410
+ MUSTACHE_EXPR: ga,
2411
+ TMPLIT_EXPR: ba
2362
2412
  });
2363
- const ze = {
2413
+ const je = {
2364
2414
  element: 1,
2365
2415
  text: 3,
2366
2416
  // Deprecated
2367
2417
  progressingInstruction: 7,
2368
2418
  comment: 8,
2369
2419
  document: 9
2370
- }, wa = function() {
2420
+ }, xa = function() {
2371
2421
  return typeof window > "u" ? null : window;
2372
- }, xa = function(y, $) {
2422
+ }, Ra = function(y, $) {
2373
2423
  if (typeof y != "object" || typeof y.createPolicy != "function")
2374
2424
  return null;
2375
2425
  let E = null;
@@ -2388,7 +2438,7 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2388
2438
  } catch {
2389
2439
  return console.warn("TrustedTypes policy " + he + " could not be created."), null;
2390
2440
  }
2391
- }, wr = function() {
2441
+ }, xr = function() {
2392
2442
  return {
2393
2443
  afterSanitizeAttributes: [],
2394
2444
  afterSanitizeElements: [],
@@ -2401,10 +2451,10 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2401
2451
  uponSanitizeShadowNode: []
2402
2452
  };
2403
2453
  };
2404
- function xr() {
2405
- let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : wa();
2406
- const y = (C) => xr(C);
2407
- if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !== ze.document || !R.Element)
2454
+ function Rr() {
2455
+ let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xa();
2456
+ const y = (C) => Rr(C);
2457
+ if (y.version = "3.2.4", y.removed = [], !R || !R.document || R.document.nodeType !== je.document || !R.Element)
2408
2458
  return y.isSupported = !1, y;
2409
2459
  let {
2410
2460
  document: $
@@ -2413,44 +2463,44 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2413
2463
  DocumentFragment: he,
2414
2464
  HTMLTemplateElement: Te,
2415
2465
  Node: _t,
2416
- Element: Rr,
2417
- NodeFilter: je,
2418
- NamedNodeMap: Ea = R.NamedNodeMap || R.MozNamedAttrMap,
2419
- HTMLFormElement: Pa,
2420
- DOMParser: Ta,
2421
- trustedTypes: rt
2422
- } = R, Ve = Rr.prototype, $a = Ue(Ve, "cloneNode"), _a = Ue(Ve, "remove"), Ia = Ue(Ve, "nextSibling"), Aa = Ue(Ve, "childNodes"), st = Ue(Ve, "parentNode");
2466
+ Element: Er,
2467
+ NodeFilter: Ve,
2468
+ NamedNodeMap: Pa = R.NamedNodeMap || R.MozNamedAttrMap,
2469
+ HTMLFormElement: Ta,
2470
+ DOMParser: $a,
2471
+ trustedTypes: at
2472
+ } = R, Be = Er.prototype, _a = ze(Be, "cloneNode"), Ia = ze(Be, "remove"), Aa = ze(Be, "nextSibling"), Ma = ze(Be, "childNodes"), nt = ze(Be, "parentNode");
2423
2473
  if (typeof Te == "function") {
2424
2474
  const C = $.createElement("template");
2425
2475
  C.content && C.content.ownerDocument && ($ = C.content.ownerDocument);
2426
2476
  }
2427
- let Z, Be = "";
2477
+ let Z, We = "";
2428
2478
  const {
2429
2479
  implementation: It,
2430
- createNodeIterator: Ma,
2431
- createDocumentFragment: La,
2432
- getElementsByTagName: Oa
2480
+ createNodeIterator: La,
2481
+ createDocumentFragment: Oa,
2482
+ getElementsByTagName: Fa
2433
2483
  } = $, {
2434
- importNode: Fa
2484
+ importNode: Da
2435
2485
  } = E;
2436
- let Q = wr();
2437
- y.isSupported = typeof r == "function" && typeof st == "function" && It && It.createHTMLDocument !== void 0;
2486
+ let Q = xr();
2487
+ y.isSupported = typeof r == "function" && typeof nt == "function" && It && It.createHTMLDocument !== void 0;
2438
2488
  const {
2439
2489
  MUSTACHE_EXPR: At,
2440
2490
  ERB_EXPR: Mt,
2441
2491
  TMPLIT_EXPR: Lt,
2442
- DATA_ATTR: Da,
2492
+ DATA_ATTR: Ha,
2443
2493
  ARIA_ATTR: Na,
2444
- IS_SCRIPT_OR_DATA: Ha,
2445
- ATTR_WHITESPACE: Er,
2446
- CUSTOM_ELEMENT: Ua
2447
- } = kr;
2494
+ IS_SCRIPT_OR_DATA: Ua,
2495
+ ATTR_WHITESPACE: Pr,
2496
+ CUSTOM_ELEMENT: za
2497
+ } = wr;
2448
2498
  let {
2449
- IS_ALLOWED_URI: Pr
2450
- } = kr, z = null;
2451
- const Tr = x({}, [...gr, ...Et, ...Pt, ...Tt, ...vr]);
2499
+ IS_ALLOWED_URI: Tr
2500
+ } = wr, z = null;
2501
+ const $r = x({}, [...vr, ...Et, ...Pt, ...Tt, ...br]);
2452
2502
  let V = null;
2453
- const $r = x({}, [...br, ...$t, ...yr, ...tt]);
2503
+ const _r = x({}, [...yr, ...$t, ...Cr, ...st]);
2454
2504
  let F = Object.seal(h(null, {
2455
2505
  tagNameCheck: {
2456
2506
  writable: !0,
@@ -2470,58 +2520,58 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2470
2520
  enumerable: !0,
2471
2521
  value: !1
2472
2522
  }
2473
- })), We = null, Ot = null, _r = !0, Ft = !0, Ir = !1, Ar = !0, $e = !1, Dt = !0, Ee = !1, Nt = !1, Ht = !1, _e = !1, at = !1, nt = !1, Mr = !0, Lr = !1;
2474
- const za = "user-content-";
2475
- let Ut = !0, Ge = !1, Ie = {}, Ae = null;
2476
- const Or = x({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2477
- let Fr = null;
2478
- const Dr = x({}, ["audio", "video", "img", "source", "image", "track"]);
2523
+ })), Ge = null, Ot = null, Ir = !0, Ft = !0, Ar = !1, Mr = !0, $e = !1, Dt = !0, Ee = !1, Ht = !1, Nt = !1, _e = !1, ot = !1, ct = !1, Lr = !0, Or = !1;
2524
+ const ja = "user-content-";
2525
+ let Ut = !0, qe = !1, Ie = {}, Ae = null;
2526
+ const Fr = 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"]);
2527
+ let Dr = null;
2528
+ const Hr = x({}, ["audio", "video", "img", "source", "image", "track"]);
2479
2529
  let zt = null;
2480
- const Nr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ot = "http://www.w3.org/1998/Math/MathML", ct = "http://www.w3.org/2000/svg", fe = "http://www.w3.org/1999/xhtml";
2481
- let Me = fe, jt = !1, Vt = null;
2482
- const ja = x({}, [ot, ct, fe], T);
2483
- let it = x({}, ["mi", "mo", "mn", "ms", "mtext"]), lt = x({}, ["annotation-xml"]);
2484
- const Va = x({}, ["title", "style", "font", "a", "script"]);
2485
- let qe = null;
2486
- const Ba = ["application/xhtml+xml", "text/html"], Wa = "text/html";
2530
+ const Nr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), it = "http://www.w3.org/1998/Math/MathML", lt = "http://www.w3.org/2000/svg", de = "http://www.w3.org/1999/xhtml";
2531
+ let Me = de, jt = !1, Vt = null;
2532
+ const Va = x({}, [it, lt, de], T);
2533
+ let ut = x({}, ["mi", "mo", "mn", "ms", "mtext"]), ht = x({}, ["annotation-xml"]);
2534
+ const Ba = x({}, ["title", "style", "font", "a", "script"]);
2535
+ let Ye = null;
2536
+ const Wa = ["application/xhtml+xml", "text/html"], Ga = "text/html";
2487
2537
  let j = null, Le = null;
2488
- const Ga = $.createElement("form"), Hr = function(f) {
2489
- return f instanceof RegExp || f instanceof Function;
2538
+ const qa = $.createElement("form"), Ur = function(d) {
2539
+ return d instanceof RegExp || d instanceof Function;
2490
2540
  }, Bt = function() {
2491
- let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2492
- if (!(Le && Le === f)) {
2493
- if ((!f || typeof f != "object") && (f = {}), f = Re(f), qe = // eslint-disable-next-line unicorn/prefer-includes
2494
- Ba.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Wa : f.PARSER_MEDIA_TYPE, j = qe === "application/xhtml+xml" ? T : O, z = ee(f, "ALLOWED_TAGS") ? x({}, f.ALLOWED_TAGS, j) : Tr, V = ee(f, "ALLOWED_ATTR") ? x({}, f.ALLOWED_ATTR, j) : $r, Vt = ee(f, "ALLOWED_NAMESPACES") ? x({}, f.ALLOWED_NAMESPACES, T) : ja, zt = ee(f, "ADD_URI_SAFE_ATTR") ? x(Re(Nr), f.ADD_URI_SAFE_ATTR, j) : Nr, Fr = ee(f, "ADD_DATA_URI_TAGS") ? x(Re(Dr), f.ADD_DATA_URI_TAGS, j) : Dr, Ae = ee(f, "FORBID_CONTENTS") ? x({}, f.FORBID_CONTENTS, j) : Or, We = ee(f, "FORBID_TAGS") ? x({}, f.FORBID_TAGS, j) : {}, Ot = ee(f, "FORBID_ATTR") ? x({}, f.FORBID_ATTR, j) : {}, Ie = ee(f, "USE_PROFILES") ? f.USE_PROFILES : !1, _r = f.ALLOW_ARIA_ATTR !== !1, Ft = f.ALLOW_DATA_ATTR !== !1, Ir = f.ALLOW_UNKNOWN_PROTOCOLS || !1, Ar = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $e = f.SAFE_FOR_TEMPLATES || !1, Dt = f.SAFE_FOR_XML !== !1, Ee = f.WHOLE_DOCUMENT || !1, _e = f.RETURN_DOM || !1, at = f.RETURN_DOM_FRAGMENT || !1, nt = f.RETURN_TRUSTED_TYPE || !1, Ht = f.FORCE_BODY || !1, Mr = f.SANITIZE_DOM !== !1, Lr = f.SANITIZE_NAMED_PROPS || !1, Ut = f.KEEP_CONTENT !== !1, Ge = f.IN_PLACE || !1, Pr = f.ALLOWED_URI_REGEXP || Cr, Me = f.NAMESPACE || fe, it = f.MATHML_TEXT_INTEGRATION_POINTS || it, lt = f.HTML_INTEGRATION_POINTS || lt, F = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Hr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Hr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $e && (Ft = !1), at && (_e = !0), Ie && (z = x({}, vr), V = [], Ie.html === !0 && (x(z, gr), x(V, br)), Ie.svg === !0 && (x(z, Et), x(V, $t), x(V, tt)), Ie.svgFilters === !0 && (x(z, Pt), x(V, $t), x(V, tt)), Ie.mathMl === !0 && (x(z, Tt), x(V, yr), x(V, tt))), f.ADD_TAGS && (z === Tr && (z = Re(z)), x(z, f.ADD_TAGS, j)), f.ADD_ATTR && (V === $r && (V = Re(V)), x(V, f.ADD_ATTR, j)), f.ADD_URI_SAFE_ATTR && x(zt, f.ADD_URI_SAFE_ATTR, j), f.FORBID_CONTENTS && (Ae === Or && (Ae = Re(Ae)), x(Ae, f.FORBID_CONTENTS, j)), Ut && (z["#text"] = !0), Ee && x(z, ["html", "head", "body"]), z.table && (x(z, ["tbody"]), delete We.tbody), f.TRUSTED_TYPES_POLICY) {
2495
- if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
2541
+ let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2542
+ if (!(Le && Le === d)) {
2543
+ if ((!d || typeof d != "object") && (d = {}), d = Re(d), Ye = // eslint-disable-next-line unicorn/prefer-includes
2544
+ Wa.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? Ga : d.PARSER_MEDIA_TYPE, j = Ye === "application/xhtml+xml" ? T : O, z = ee(d, "ALLOWED_TAGS") ? x({}, d.ALLOWED_TAGS, j) : $r, V = ee(d, "ALLOWED_ATTR") ? x({}, d.ALLOWED_ATTR, j) : _r, Vt = ee(d, "ALLOWED_NAMESPACES") ? x({}, d.ALLOWED_NAMESPACES, T) : Va, zt = ee(d, "ADD_URI_SAFE_ATTR") ? x(Re(Nr), d.ADD_URI_SAFE_ATTR, j) : Nr, Dr = ee(d, "ADD_DATA_URI_TAGS") ? x(Re(Hr), d.ADD_DATA_URI_TAGS, j) : Hr, Ae = ee(d, "FORBID_CONTENTS") ? x({}, d.FORBID_CONTENTS, j) : Fr, Ge = ee(d, "FORBID_TAGS") ? x({}, d.FORBID_TAGS, j) : {}, Ot = ee(d, "FORBID_ATTR") ? x({}, d.FORBID_ATTR, j) : {}, Ie = ee(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Ir = d.ALLOW_ARIA_ATTR !== !1, Ft = d.ALLOW_DATA_ATTR !== !1, Ar = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Mr = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, $e = d.SAFE_FOR_TEMPLATES || !1, Dt = d.SAFE_FOR_XML !== !1, Ee = d.WHOLE_DOCUMENT || !1, _e = d.RETURN_DOM || !1, ot = d.RETURN_DOM_FRAGMENT || !1, ct = d.RETURN_TRUSTED_TYPE || !1, Nt = d.FORCE_BODY || !1, Lr = d.SANITIZE_DOM !== !1, Or = d.SANITIZE_NAMED_PROPS || !1, Ut = d.KEEP_CONTENT !== !1, qe = d.IN_PLACE || !1, Tr = d.ALLOWED_URI_REGEXP || Sr, Me = d.NAMESPACE || de, ut = d.MATHML_TEXT_INTEGRATION_POINTS || ut, ht = d.HTML_INTEGRATION_POINTS || ht, F = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Ur(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Ur(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), $e && (Ft = !1), ot && (_e = !0), Ie && (z = x({}, br), V = [], Ie.html === !0 && (x(z, vr), x(V, yr)), Ie.svg === !0 && (x(z, Et), x(V, $t), x(V, st)), Ie.svgFilters === !0 && (x(z, Pt), x(V, $t), x(V, st)), Ie.mathMl === !0 && (x(z, Tt), x(V, Cr), x(V, st))), d.ADD_TAGS && (z === $r && (z = Re(z)), x(z, d.ADD_TAGS, j)), d.ADD_ATTR && (V === _r && (V = Re(V)), x(V, d.ADD_ATTR, j)), d.ADD_URI_SAFE_ATTR && x(zt, d.ADD_URI_SAFE_ATTR, j), d.FORBID_CONTENTS && (Ae === Fr && (Ae = Re(Ae)), x(Ae, d.FORBID_CONTENTS, j)), Ut && (z["#text"] = !0), Ee && x(z, ["html", "head", "body"]), z.table && (x(z, ["tbody"]), delete Ge.tbody), d.TRUSTED_TYPES_POLICY) {
2545
+ if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
2496
2546
  throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2497
- if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
2547
+ if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
2498
2548
  throw xe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2499
- Z = f.TRUSTED_TYPES_POLICY, Be = Z.createHTML("");
2549
+ Z = d.TRUSTED_TYPES_POLICY, We = Z.createHTML("");
2500
2550
  } else
2501
- Z === void 0 && (Z = xa(rt, W)), Z !== null && typeof Be == "string" && (Be = Z.createHTML(""));
2502
- c && c(f), Le = f;
2551
+ Z === void 0 && (Z = Ra(at, W)), Z !== null && typeof We == "string" && (We = Z.createHTML(""));
2552
+ c && c(d), Le = d;
2503
2553
  }
2504
- }, Ur = x({}, [...Et, ...Pt, ...da]), zr = x({}, [...Tt, ...pa]), qa = function(f) {
2505
- let m = st(f);
2554
+ }, zr = x({}, [...Et, ...Pt, ...pa]), jr = x({}, [...Tt, ...ma]), Ya = function(d) {
2555
+ let m = nt(d);
2506
2556
  (!m || !m.tagName) && (m = {
2507
2557
  namespaceURI: Me,
2508
2558
  tagName: "template"
2509
2559
  });
2510
- const v = O(f.tagName), M = O(m.tagName);
2511
- return Vt[f.namespaceURI] ? f.namespaceURI === ct ? m.namespaceURI === fe ? v === "svg" : m.namespaceURI === ot ? v === "svg" && (M === "annotation-xml" || it[M]) : !!Ur[v] : f.namespaceURI === ot ? m.namespaceURI === fe ? v === "math" : m.namespaceURI === ct ? v === "math" && lt[M] : !!zr[v] : f.namespaceURI === fe ? m.namespaceURI === ct && !lt[M] || m.namespaceURI === ot && !it[M] ? !1 : !zr[v] && (Va[v] || !Ur[v]) : !!(qe === "application/xhtml+xml" && Vt[f.namespaceURI]) : !1;
2512
- }, ie = function(f) {
2560
+ const v = O(d.tagName), M = O(m.tagName);
2561
+ return Vt[d.namespaceURI] ? d.namespaceURI === lt ? m.namespaceURI === de ? v === "svg" : m.namespaceURI === it ? v === "svg" && (M === "annotation-xml" || ut[M]) : !!zr[v] : d.namespaceURI === it ? m.namespaceURI === de ? v === "math" : m.namespaceURI === lt ? v === "math" && ht[M] : !!jr[v] : d.namespaceURI === de ? m.namespaceURI === lt && !ht[M] || m.namespaceURI === it && !ut[M] ? !1 : !jr[v] && (Ba[v] || !zr[v]) : !!(Ye === "application/xhtml+xml" && Vt[d.namespaceURI]) : !1;
2562
+ }, ie = function(d) {
2513
2563
  P(y.removed, {
2514
- element: f
2564
+ element: d
2515
2565
  });
2516
2566
  try {
2517
- st(f).removeChild(f);
2567
+ nt(d).removeChild(d);
2518
2568
  } catch {
2519
- _a(f);
2569
+ Ia(d);
2520
2570
  }
2521
- }, ut = function(f, m) {
2571
+ }, dt = function(d, m) {
2522
2572
  try {
2523
2573
  P(y.removed, {
2524
- attribute: m.getAttributeNode(f),
2574
+ attribute: m.getAttributeNode(d),
2525
2575
  from: m
2526
2576
  });
2527
2577
  } catch {
@@ -2530,107 +2580,107 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2530
2580
  from: m
2531
2581
  });
2532
2582
  }
2533
- if (m.removeAttribute(f), f === "is")
2534
- if (_e || at)
2583
+ if (m.removeAttribute(d), d === "is")
2584
+ if (_e || ot)
2535
2585
  try {
2536
2586
  ie(m);
2537
2587
  } catch {
2538
2588
  }
2539
2589
  else
2540
2590
  try {
2541
- m.setAttribute(f, "");
2591
+ m.setAttribute(d, "");
2542
2592
  } catch {
2543
2593
  }
2544
- }, jr = function(f) {
2594
+ }, Vr = function(d) {
2545
2595
  let m = null, v = null;
2546
- if (Ht)
2547
- f = "<remove></remove>" + f;
2596
+ if (Nt)
2597
+ d = "<remove></remove>" + d;
2548
2598
  else {
2549
- const B = ue(f, /^[\r\n\t ]+/);
2599
+ const B = ue(d, /^[\r\n\t ]+/);
2550
2600
  v = B && B[0];
2551
2601
  }
2552
- qe === "application/xhtml+xml" && Me === fe && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
2553
- const M = Z ? Z.createHTML(f) : f;
2554
- if (Me === fe)
2602
+ Ye === "application/xhtml+xml" && Me === de && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
2603
+ const M = Z ? Z.createHTML(d) : d;
2604
+ if (Me === de)
2555
2605
  try {
2556
- m = new Ta().parseFromString(M, qe);
2606
+ m = new $a().parseFromString(M, Ye);
2557
2607
  } catch {
2558
2608
  }
2559
2609
  if (!m || !m.documentElement) {
2560
2610
  m = It.createDocument(Me, "template", null);
2561
2611
  try {
2562
- m.documentElement.innerHTML = jt ? Be : M;
2612
+ m.documentElement.innerHTML = jt ? We : M;
2563
2613
  } catch {
2564
2614
  }
2565
2615
  }
2566
2616
  const G = m.body || m.documentElement;
2567
- return f && v && G.insertBefore($.createTextNode(v), G.childNodes[0] || null), Me === fe ? Oa.call(m, Ee ? "html" : "body")[0] : Ee ? m.documentElement : G;
2568
- }, Vr = function(f) {
2569
- return Ma.call(
2570
- f.ownerDocument || f,
2571
- f,
2617
+ return d && v && G.insertBefore($.createTextNode(v), G.childNodes[0] || null), Me === de ? Fa.call(m, Ee ? "html" : "body")[0] : Ee ? m.documentElement : G;
2618
+ }, Br = function(d) {
2619
+ return La.call(
2620
+ d.ownerDocument || d,
2621
+ d,
2572
2622
  // eslint-disable-next-line no-bitwise
2573
- je.SHOW_ELEMENT | je.SHOW_COMMENT | je.SHOW_TEXT | je.SHOW_PROCESSING_INSTRUCTION | je.SHOW_CDATA_SECTION,
2623
+ Ve.SHOW_ELEMENT | Ve.SHOW_COMMENT | Ve.SHOW_TEXT | Ve.SHOW_PROCESSING_INSTRUCTION | Ve.SHOW_CDATA_SECTION,
2574
2624
  null
2575
2625
  );
2576
- }, Wt = function(f) {
2577
- return f instanceof Pa && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof Ea) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
2578
- }, Br = function(f) {
2579
- return typeof _t == "function" && f instanceof _t;
2626
+ }, Wt = function(d) {
2627
+ return d instanceof Ta && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof Pa) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
2628
+ }, Wr = function(d) {
2629
+ return typeof _t == "function" && d instanceof _t;
2580
2630
  };
2581
- function de(C, f, m) {
2631
+ function fe(C, d, m) {
2582
2632
  g(C, (v) => {
2583
- v.call(y, f, m, Le);
2633
+ v.call(y, d, m, Le);
2584
2634
  });
2585
2635
  }
2586
- const Wr = function(f) {
2636
+ const Gr = function(d) {
2587
2637
  let m = null;
2588
- if (de(Q.beforeSanitizeElements, f, null), Wt(f))
2589
- return ie(f), !0;
2590
- const v = j(f.nodeName);
2591
- if (de(Q.uponSanitizeElement, f, {
2638
+ if (fe(Q.beforeSanitizeElements, d, null), Wt(d))
2639
+ return ie(d), !0;
2640
+ const v = j(d.nodeName);
2641
+ if (fe(Q.uponSanitizeElement, d, {
2592
2642
  tagName: v,
2593
2643
  allowedTags: z
2594
- }), f.hasChildNodes() && !Br(f.firstElementChild) && U(/<[/\w]/g, f.innerHTML) && U(/<[/\w]/g, f.textContent) || f.nodeType === ze.progressingInstruction || Dt && f.nodeType === ze.comment && U(/<[/\w]/g, f.data))
2595
- return ie(f), !0;
2596
- if (!z[v] || We[v]) {
2597
- if (!We[v] && qr(v) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, v) || F.tagNameCheck instanceof Function && F.tagNameCheck(v)))
2644
+ }), d.hasChildNodes() && !Wr(d.firstElementChild) && U(/<[/\w]/g, d.innerHTML) && U(/<[/\w]/g, d.textContent) || d.nodeType === je.progressingInstruction || Dt && d.nodeType === je.comment && U(/<[/\w]/g, d.data))
2645
+ return ie(d), !0;
2646
+ if (!z[v] || Ge[v]) {
2647
+ if (!Ge[v] && Yr(v) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, v) || F.tagNameCheck instanceof Function && F.tagNameCheck(v)))
2598
2648
  return !1;
2599
2649
  if (Ut && !Ae[v]) {
2600
- const M = st(f) || f.parentNode, G = Aa(f) || f.childNodes;
2650
+ const M = nt(d) || d.parentNode, G = Ma(d) || d.childNodes;
2601
2651
  if (G && M) {
2602
2652
  const B = G.length;
2603
2653
  for (let te = B - 1; te >= 0; --te) {
2604
- const le = $a(G[te], !0);
2605
- le.__removalCount = (f.__removalCount || 0) + 1, M.insertBefore(le, Ia(f));
2654
+ const le = _a(G[te], !0);
2655
+ le.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(le, Aa(d));
2606
2656
  }
2607
2657
  }
2608
2658
  }
2609
- return ie(f), !0;
2659
+ return ie(d), !0;
2610
2660
  }
2611
- return f instanceof Rr && !qa(f) || (v === "noscript" || v === "noembed" || v === "noframes") && U(/<\/no(script|embed|frames)/i, f.innerHTML) ? (ie(f), !0) : ($e && f.nodeType === ze.text && (m = f.textContent, g([At, Mt, Lt], (M) => {
2661
+ return d instanceof Er && !Ya(d) || (v === "noscript" || v === "noembed" || v === "noframes") && U(/<\/no(script|embed|frames)/i, d.innerHTML) ? (ie(d), !0) : ($e && d.nodeType === je.text && (m = d.textContent, g([At, Mt, Lt], (M) => {
2612
2662
  m = se(m, M, " ");
2613
- }), f.textContent !== m && (P(y.removed, {
2614
- element: f.cloneNode()
2615
- }), f.textContent = m)), de(Q.afterSanitizeElements, f, null), !1);
2616
- }, Gr = function(f, m, v) {
2617
- if (Mr && (m === "id" || m === "name") && (v in $ || v in Ga))
2663
+ }), d.textContent !== m && (P(y.removed, {
2664
+ element: d.cloneNode()
2665
+ }), d.textContent = m)), fe(Q.afterSanitizeElements, d, null), !1);
2666
+ }, qr = function(d, m, v) {
2667
+ if (Lr && (m === "id" || m === "name") && (v in $ || v in qa))
2618
2668
  return !1;
2619
- if (!(Ft && !Ot[m] && U(Da, m))) {
2620
- if (!(_r && U(Na, m))) {
2669
+ if (!(Ft && !Ot[m] && U(Ha, m))) {
2670
+ if (!(Ir && U(Na, m))) {
2621
2671
  if (!V[m] || Ot[m]) {
2622
2672
  if (
2623
2673
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2624
2674
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2625
2675
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2626
- !(qr(f) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, f) || F.tagNameCheck instanceof Function && F.tagNameCheck(f)) && (F.attributeNameCheck instanceof RegExp && U(F.attributeNameCheck, m) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2676
+ !(Yr(d) && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, d) || F.tagNameCheck instanceof Function && F.tagNameCheck(d)) && (F.attributeNameCheck instanceof RegExp && U(F.attributeNameCheck, m) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2627
2677
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2628
2678
  m === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && U(F.tagNameCheck, v) || F.tagNameCheck instanceof Function && F.tagNameCheck(v)))
2629
2679
  ) return !1;
2630
2680
  } else if (!zt[m]) {
2631
- if (!U(Pr, se(v, Er, ""))) {
2632
- if (!((m === "src" || m === "xlink:href" || m === "href") && f !== "script" && we(v, "data:") === 0 && Fr[f])) {
2633
- if (!(Ir && !U(Ha, se(v, Er, "")))) {
2681
+ if (!U(Tr, se(v, Pr, ""))) {
2682
+ if (!((m === "src" || m === "xlink:href" || m === "href") && d !== "script" && we(v, "data:") === 0 && Dr[d])) {
2683
+ if (!(Ar && !U(Ua, se(v, Pr, "")))) {
2634
2684
  if (v)
2635
2685
  return !1;
2636
2686
  }
@@ -2640,14 +2690,14 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2640
2690
  }
2641
2691
  }
2642
2692
  return !0;
2643
- }, qr = function(f) {
2644
- return f !== "annotation-xml" && ue(f, Ua);
2645
- }, Yr = function(f) {
2646
- de(Q.beforeSanitizeAttributes, f, null);
2693
+ }, Yr = function(d) {
2694
+ return d !== "annotation-xml" && ue(d, za);
2695
+ }, Zr = function(d) {
2696
+ fe(Q.beforeSanitizeAttributes, d, null);
2647
2697
  const {
2648
2698
  attributes: m
2649
- } = f;
2650
- if (!m || Wt(f))
2699
+ } = d;
2700
+ if (!m || Wt(d))
2651
2701
  return;
2652
2702
  const v = {
2653
2703
  attrName: "",
@@ -2662,25 +2712,25 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2662
2712
  name: B,
2663
2713
  namespaceURI: te,
2664
2714
  value: le
2665
- } = G, Ye = j(B);
2666
- let K = B === "value" ? le : H(le);
2667
- if (v.attrName = Ye, v.attrValue = K, v.keepAttr = !0, v.forceKeepAttr = void 0, de(Q.uponSanitizeAttribute, f, v), K = v.attrValue, Lr && (Ye === "id" || Ye === "name") && (ut(B, f), K = za + K), Dt && U(/((--!?|])>)|<\/(style|title)/i, K)) {
2668
- ut(B, f);
2715
+ } = G, Ze = j(B);
2716
+ let K = B === "value" ? le : N(le);
2717
+ if (v.attrName = Ze, v.attrValue = K, v.keepAttr = !0, v.forceKeepAttr = void 0, fe(Q.uponSanitizeAttribute, d, v), K = v.attrValue, Or && (Ze === "id" || Ze === "name") && (dt(B, d), K = ja + K), Dt && U(/((--!?|])>)|<\/(style|title)/i, K)) {
2718
+ dt(B, d);
2669
2719
  continue;
2670
2720
  }
2671
- if (v.forceKeepAttr || (ut(B, f), !v.keepAttr))
2721
+ if (v.forceKeepAttr || (dt(B, d), !v.keepAttr))
2672
2722
  continue;
2673
- if (!Ar && U(/\/>/i, K)) {
2674
- ut(B, f);
2723
+ if (!Mr && U(/\/>/i, K)) {
2724
+ dt(B, d);
2675
2725
  continue;
2676
2726
  }
2677
- $e && g([At, Mt, Lt], (Qr) => {
2678
- K = se(K, Qr, " ");
2727
+ $e && g([At, Mt, Lt], (Kr) => {
2728
+ K = se(K, Kr, " ");
2679
2729
  });
2680
- const Zr = j(f.nodeName);
2681
- if (Gr(Zr, Ye, K)) {
2682
- if (Z && typeof rt == "object" && typeof rt.getAttributeType == "function" && !te)
2683
- switch (rt.getAttributeType(Zr, Ye)) {
2730
+ const Qr = j(d.nodeName);
2731
+ if (qr(Qr, Ze, K)) {
2732
+ if (Z && typeof at == "object" && typeof at.getAttributeType == "function" && !te)
2733
+ switch (at.getAttributeType(Qr, Ze)) {
2684
2734
  case "TrustedHTML": {
2685
2735
  K = Z.createHTML(K);
2686
2736
  break;
@@ -2691,22 +2741,22 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2691
2741
  }
2692
2742
  }
2693
2743
  try {
2694
- te ? f.setAttributeNS(te, B, K) : f.setAttribute(B, K), Wt(f) ? ie(f) : b(y.removed);
2744
+ te ? d.setAttributeNS(te, B, K) : d.setAttribute(B, K), Wt(d) ? ie(d) : b(y.removed);
2695
2745
  } catch {
2696
2746
  }
2697
2747
  }
2698
2748
  }
2699
- de(Q.afterSanitizeAttributes, f, null);
2700
- }, Ya = function C(f) {
2749
+ fe(Q.afterSanitizeAttributes, d, null);
2750
+ }, Za = function C(d) {
2701
2751
  let m = null;
2702
- const v = Vr(f);
2703
- for (de(Q.beforeSanitizeShadowDOM, f, null); m = v.nextNode(); )
2704
- de(Q.uponSanitizeShadowNode, m, null), Wr(m), Yr(m), m.content instanceof he && C(m.content);
2705
- de(Q.afterSanitizeShadowDOM, f, null);
2752
+ const v = Br(d);
2753
+ for (fe(Q.beforeSanitizeShadowDOM, d, null); m = v.nextNode(); )
2754
+ fe(Q.uponSanitizeShadowNode, m, null), Gr(m), Zr(m), m.content instanceof he && C(m.content);
2755
+ fe(Q.afterSanitizeShadowDOM, d, null);
2706
2756
  };
2707
2757
  return y.sanitize = function(C) {
2708
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, v = null, M = null, G = null;
2709
- if (jt = !C, jt && (C = "<!-->"), typeof C != "string" && !Br(C))
2758
+ let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, v = null, M = null, G = null;
2759
+ if (jt = !C, jt && (C = "<!-->"), typeof C != "string" && !Wr(C))
2710
2760
  if (typeof C.toString == "function") {
2711
2761
  if (C = C.toString(), typeof C != "string")
2712
2762
  throw xe("dirty is not a string, aborting");
@@ -2714,68 +2764,68 @@ var Vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2714
2764
  throw xe("toString is not a function");
2715
2765
  if (!y.isSupported)
2716
2766
  return C;
2717
- if (Nt || Bt(f), y.removed = [], typeof C == "string" && (Ge = !1), Ge) {
2767
+ if (Ht || Bt(d), y.removed = [], typeof C == "string" && (qe = !1), qe) {
2718
2768
  if (C.nodeName) {
2719
2769
  const le = j(C.nodeName);
2720
- if (!z[le] || We[le])
2770
+ if (!z[le] || Ge[le])
2721
2771
  throw xe("root node is forbidden and cannot be sanitized in-place");
2722
2772
  }
2723
2773
  } else if (C instanceof _t)
2724
- m = jr("<!---->"), v = m.ownerDocument.importNode(C, !0), v.nodeType === ze.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? m = v : m.appendChild(v);
2774
+ m = Vr("<!---->"), v = m.ownerDocument.importNode(C, !0), v.nodeType === je.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? m = v : m.appendChild(v);
2725
2775
  else {
2726
2776
  if (!_e && !$e && !Ee && // eslint-disable-next-line unicorn/prefer-includes
2727
2777
  C.indexOf("<") === -1)
2728
- return Z && nt ? Z.createHTML(C) : C;
2729
- if (m = jr(C), !m)
2730
- return _e ? null : nt ? Be : "";
2778
+ return Z && ct ? Z.createHTML(C) : C;
2779
+ if (m = Vr(C), !m)
2780
+ return _e ? null : ct ? We : "";
2731
2781
  }
2732
- m && Ht && ie(m.firstChild);
2733
- const B = Vr(Ge ? C : m);
2782
+ m && Nt && ie(m.firstChild);
2783
+ const B = Br(qe ? C : m);
2734
2784
  for (; M = B.nextNode(); )
2735
- Wr(M), Yr(M), M.content instanceof he && Ya(M.content);
2736
- if (Ge)
2785
+ Gr(M), Zr(M), M.content instanceof he && Za(M.content);
2786
+ if (qe)
2737
2787
  return C;
2738
2788
  if (_e) {
2739
- if (at)
2740
- for (G = La.call(m.ownerDocument); m.firstChild; )
2789
+ if (ot)
2790
+ for (G = Oa.call(m.ownerDocument); m.firstChild; )
2741
2791
  G.appendChild(m.firstChild);
2742
2792
  else
2743
2793
  G = m;
2744
- return (V.shadowroot || V.shadowrootmode) && (G = Fa.call(E, G, !0)), G;
2794
+ return (V.shadowroot || V.shadowrootmode) && (G = Da.call(E, G, !0)), G;
2745
2795
  }
2746
2796
  let te = Ee ? m.outerHTML : m.innerHTML;
2747
- return Ee && z["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && U(Sr, m.ownerDocument.doctype.name) && (te = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
2797
+ return Ee && z["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && U(kr, m.ownerDocument.doctype.name) && (te = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
2748
2798
  ` + te), $e && g([At, Mt, Lt], (le) => {
2749
2799
  te = se(te, le, " ");
2750
- }), Z && nt ? Z.createHTML(te) : te;
2800
+ }), Z && ct ? Z.createHTML(te) : te;
2751
2801
  }, y.setConfig = function() {
2752
2802
  let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2753
- Bt(C), Nt = !0;
2803
+ Bt(C), Ht = !0;
2754
2804
  }, y.clearConfig = function() {
2755
- Le = null, Nt = !1;
2756
- }, y.isValidAttribute = function(C, f, m) {
2805
+ Le = null, Ht = !1;
2806
+ }, y.isValidAttribute = function(C, d, m) {
2757
2807
  Le || Bt({});
2758
- const v = j(C), M = j(f);
2759
- return Gr(v, M, m);
2760
- }, y.addHook = function(C, f) {
2761
- typeof f == "function" && P(Q[C], f);
2762
- }, y.removeHook = function(C, f) {
2763
- if (f !== void 0) {
2764
- const m = k(Q[C], f);
2808
+ const v = j(C), M = j(d);
2809
+ return qr(v, M, m);
2810
+ }, y.addHook = function(C, d) {
2811
+ typeof d == "function" && P(Q[C], d);
2812
+ }, y.removeHook = function(C, d) {
2813
+ if (d !== void 0) {
2814
+ const m = k(Q[C], d);
2765
2815
  return m === -1 ? void 0 : _(Q[C], m, 1)[0];
2766
2816
  }
2767
2817
  return b(Q[C]);
2768
2818
  }, y.removeHooks = function(C) {
2769
2819
  Q[C] = [];
2770
2820
  }, y.removeAllHooks = function() {
2771
- Q = wr();
2821
+ Q = xr();
2772
2822
  }, y;
2773
2823
  }
2774
- var Ra = xr();
2775
- return Ra;
2824
+ var Ea = Rr();
2825
+ return Ea;
2776
2826
  });
2777
- })(Zs);
2778
- const Bo = Zs.exports, kt = (e, ...t) => {
2827
+ })(Ks);
2828
+ const Bo = Ks.exports, rt = (e, ...t) => {
2779
2829
  let r = e[0];
2780
2830
  for (let s = 0; s < t.length; s++)
2781
2831
  r += Bo.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
@@ -2787,19 +2837,19 @@ let J = (e = 21) => {
2787
2837
  t += Wo[r[e] & 63];
2788
2838
  return t;
2789
2839
  };
2790
- const Go = /* @__PURE__ */ N(class extends D {
2840
+ const Go = /* @__PURE__ */ H(class extends D {
2791
2841
  constructor() {
2792
2842
  super();
2793
- d(this, "adSource", "Custom");
2794
- d(this, "adClientResponseItem");
2795
- d(this, "adContainerId", J());
2796
- d(this, "searchTerm");
2797
- d(this, "isSearchInProgress", !1);
2798
- d(this, "core");
2799
- d(this, "intersectionObserver");
2800
- d(this, "storeUnsubscribe");
2801
- d(this, "adContainerRenderedTimeout");
2802
- d(this, "isComponentConnected", !0);
2843
+ f(this, "adSource", "Custom");
2844
+ f(this, "adClientResponseItem");
2845
+ f(this, "adContainerId", J());
2846
+ f(this, "searchTerm");
2847
+ f(this, "isSearchInProgress", !1);
2848
+ f(this, "core");
2849
+ f(this, "intersectionObserver");
2850
+ f(this, "storeUnsubscribe");
2851
+ f(this, "adContainerRenderedTimeout");
2852
+ f(this, "isComponentConnected", !0);
2803
2853
  this.__registerHost();
2804
2854
  }
2805
2855
  get hostElement() {
@@ -2827,9 +2877,12 @@ const Go = /* @__PURE__ */ N(class extends D {
2827
2877
  (r = this.storeUnsubscribe) == null || r.call(this), (s = this.intersectionObserver) == null || s.disconnect(), this.isComponentConnected = !1, clearTimeout(this.adContainerRenderedTimeout);
2828
2878
  }
2829
2879
  renderADMAd() {
2880
+ var a, o, n, c;
2830
2881
  const r = this.adClientResponseItem;
2831
- if (r.admAd)
2832
- 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))));
2882
+ if (!r.admAd)
2883
+ return;
2884
+ let s = "<p>Ad Marketplace Ad Placeholder</p>";
2885
+ return (o = (a = this.core) == null ? void 0 : a.config) != null && o.admAdTemplate && (s = (c = (n = this.core) == null ? void 0 : n.config) == null ? void 0 : c.admAdTemplate(r.admAd, { html: rt })), l("div", { class: "searchcraft-ad searchcraft-adm-ad", "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: s });
2833
2886
  }
2834
2887
  renderCustomAd() {
2835
2888
  var o, n;
@@ -2838,12 +2891,12 @@ const Go = /* @__PURE__ */ N(class extends D {
2838
2891
  return r && (a = r({
2839
2892
  searchTerm: this.searchTerm || "",
2840
2893
  adContainerId: this.adContainerId
2841
- }, { html: kt })), i("div", { class: "searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2894
+ }, { html: rt })), l("div", { class: "searchcraft-ad searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2842
2895
  }
2843
2896
  renderNativoAd() {
2844
2897
  var s;
2845
2898
  const r = ((s = this.core) == null ? void 0 : s.config.nativoAdClassName) || "ntv-item";
2846
- return i("div", { class: r });
2899
+ return l("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: ne("searchcraft-ad", r), "data-searchcraft-ad-container-id": this.adContainerId });
2847
2900
  }
2848
2901
  render() {
2849
2902
  var r, s;
@@ -2885,89 +2938,52 @@ function wt() {
2885
2938
  }
2886
2939
  });
2887
2940
  }
2888
- const qo = wt;
2889
- var Qs = { exports: {} };
2890
- /*!
2891
- Copyright (c) 2018 Jed Watson.
2892
- Licensed under the MIT License (MIT), see
2893
- http://jedwatson.github.io/classnames
2894
- */
2895
- (function(e) {
2896
- (function() {
2897
- var t = {}.hasOwnProperty;
2898
- function r() {
2899
- for (var o = "", n = 0; n < arguments.length; n++) {
2900
- var c = arguments[n];
2901
- c && (o = a(o, s(c)));
2902
- }
2903
- return o;
2904
- }
2905
- function s(o) {
2906
- if (typeof o == "string" || typeof o == "number")
2907
- return o;
2908
- if (typeof o != "object")
2909
- return "";
2910
- if (Array.isArray(o))
2911
- return r.apply(null, o);
2912
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
2913
- return o.toString();
2914
- var n = "";
2915
- for (var c in o)
2916
- t.call(o, c) && o[c] && (n = a(n, c));
2917
- return n;
2918
- }
2919
- function a(o, n) {
2920
- return n ? o ? o + " " + n : o + n : o;
2921
- }
2922
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
2923
- })();
2924
- })(Qs);
2925
- const oe = Qs.exports, Yo = /* @__PURE__ */ N(class extends D {
2941
+ const qo = wt, Yo = /* @__PURE__ */ H(class extends D {
2926
2942
  constructor() {
2927
2943
  super();
2928
2944
  /**
2929
2945
  * Controls the visual representation of the button.
2930
2946
  */
2931
- d(this, "hierarchy", "primary");
2947
+ f(this, "hierarchy", "primary");
2932
2948
  /**
2933
2949
  * Whether the button is disabled.
2934
2950
  */
2935
- d(this, "disabled", !1);
2951
+ f(this, "disabled", !1);
2936
2952
  /**
2937
2953
  * The icon element.
2938
2954
  */
2939
- d(this, "icon");
2955
+ f(this, "icon");
2940
2956
  /**
2941
2957
  * Should the button only display an icon.
2942
2958
  */
2943
- d(this, "iconOnly", !1);
2959
+ f(this, "iconOnly", !1);
2944
2960
  /**
2945
2961
  * The position of the icon.
2946
2962
  */
2947
- d(this, "iconPosition", "left");
2963
+ f(this, "iconPosition", "left");
2948
2964
  /**
2949
2965
  * The label for the button.
2950
2966
  */
2951
- d(this, "label", "Search");
2967
+ f(this, "label", "Search");
2952
2968
  /**
2953
2969
  * The type of the button.
2954
2970
  */
2955
- d(this, "type", "button");
2971
+ f(this, "type", "button");
2956
2972
  /**
2957
2973
  * The event fired when the button is clicked.
2958
2974
  */
2959
- d(this, "buttonClick");
2960
- d(this, "handleButtonClick", () => {
2975
+ f(this, "buttonClick");
2976
+ f(this, "handleButtonClick", () => {
2961
2977
  this.buttonClick.emit();
2962
2978
  });
2963
2979
  this.__registerHost(), this.buttonClick = Ce(this, "buttonClick");
2964
2980
  }
2965
2981
  render() {
2966
- return i("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: oe("searchcraft-button", {
2982
+ return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: ne("searchcraft-button", {
2967
2983
  "searchcraft-button-primary": this.hierarchy === "primary",
2968
2984
  "searchcraft-button-tertiary": this.hierarchy === "tertiary",
2969
2985
  "searchcraft-button-disabled": this.disabled
2970
- }), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : i(Bn, null, this.iconPosition === "left" && this.icon, i("span", null, this.label), this.iconPosition === "right" && this.icon));
2986
+ }), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(Wn, null, this.iconPosition === "left" && this.icon, l("span", null, this.label), this.iconPosition === "right" && this.icon));
2971
2987
  }
2972
2988
  }, [0, "searchcraft-button", {
2973
2989
  hierarchy: [1],
@@ -2989,12 +3005,12 @@ function xt() {
2989
3005
  }
2990
3006
  });
2991
3007
  }
2992
- const Zo = xt, Qo = /* @__PURE__ */ N(class extends D {
3008
+ const Zo = xt, Qo = /* @__PURE__ */ H(class extends D {
2993
3009
  constructor() {
2994
3010
  super(), this.__registerHost();
2995
3011
  }
2996
3012
  render() {
2997
- return i("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, i("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
3013
+ return l("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, l("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
2998
3014
  }
2999
3015
  }, [4, "searchcraft-error-message"]);
3000
3016
  function Rt() {
@@ -3009,16 +3025,16 @@ function Rt() {
3009
3025
  });
3010
3026
  }
3011
3027
  const Ko = Rt;
3012
- function Ks(e, t) {
3028
+ function Xs(e, t) {
3013
3029
  const r = { ...e };
3014
3030
  for (const s in t)
3015
- t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Ks(e[s], t[s]) : r[s] = t[s]);
3031
+ t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Xs(e[s], t[s]) : r[s] = t[s]);
3016
3032
  return r;
3017
3033
  }
3018
3034
  function Xo(e) {
3019
3035
  return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
3020
3036
  }
3021
- function bs(e) {
3037
+ function ys(e) {
3022
3038
  const t = {}, r = (s) => {
3023
3039
  var a;
3024
3040
  t[s.path] = {
@@ -3052,13 +3068,13 @@ function Jo(e) {
3052
3068
  });
3053
3069
  }), t;
3054
3070
  }
3055
- function Xs(e) {
3071
+ function Js(e) {
3056
3072
  const t = {
3057
3073
  count: e.count,
3058
3074
  path: e.path,
3059
3075
  children: []
3060
3076
  };
3061
- return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Xs(r))), t;
3077
+ return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Js(r))), t;
3062
3078
  }
3063
3079
  function ec(e, t) {
3064
3080
  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("/"))));
@@ -3073,37 +3089,37 @@ function tc(e, t, r) {
3073
3089
  count: 0,
3074
3090
  path: "/",
3075
3091
  children: a
3076
- }, c = bs(o), u = bs(n), h = ec(c, u), l = Ks(h, u), p = Jo(l), g = Xs(p);
3092
+ }, c = ys(o), u = ys(n), h = ec(c, u), i = Xs(h, u), p = Jo(i), g = Js(p);
3077
3093
  return {
3078
3094
  [e]: g.children
3079
3095
  };
3080
3096
  }
3081
- const rc = /* @__PURE__ */ N(class extends D {
3097
+ const rc = /* @__PURE__ */ H(class extends D {
3082
3098
  constructor() {
3083
3099
  super();
3084
3100
  /**
3085
3101
  * The name of the field where facets are applied.
3086
3102
  */
3087
- d(this, "fieldName", "");
3103
+ f(this, "fieldName", "");
3088
3104
  /**
3089
3105
  * When the facets are updated.
3090
3106
  */
3091
- d(this, "facetSelectionUpdated");
3092
- d(this, "baseFacetRoot");
3093
- d(this, "facetRoot");
3094
- d(this, "selectedPaths", {});
3095
- d(this, "lastTimeTaken");
3096
- d(this, "hasNewSearchTerm", !1);
3097
- d(this, "lastSearchTerm");
3098
- d(this, "lastSearchMode");
3099
- d(this, "lastSortType");
3100
- d(this, "unsubscribe");
3101
- d(this, "searchStore", I.getState());
3102
- d(this, "formatLabel", (r) => {
3107
+ f(this, "facetSelectionUpdated");
3108
+ f(this, "baseFacetRoot");
3109
+ f(this, "facetRoot");
3110
+ f(this, "selectedPaths", {});
3111
+ f(this, "lastTimeTaken");
3112
+ f(this, "hasNewSearchTerm", !1);
3113
+ f(this, "lastSearchTerm");
3114
+ f(this, "lastSearchMode");
3115
+ f(this, "lastSortType");
3116
+ f(this, "unsubscribe");
3117
+ f(this, "searchStore", I.getState());
3118
+ f(this, "formatLabel", (r) => {
3103
3119
  const s = r.path.replace(/^\//, ""), a = r.count;
3104
3120
  return `${s.replace(/-/g, " ").replace(/\b\w/g, (o) => o.toUpperCase())} (${a})`;
3105
3121
  });
3106
- d(this, "formatSubLabel", (r, s) => {
3122
+ f(this, "formatSubLabel", (r, s) => {
3107
3123
  const o = r.path.substring(s.path.length).replace(/^\//, ""), n = r.count;
3108
3124
  return `${o.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${n})`;
3109
3125
  });
@@ -3112,7 +3128,7 @@ const rc = /* @__PURE__ */ N(class extends D {
3112
3128
  handleStateUpdate(r) {
3113
3129
  const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
3114
3130
  if (this.fieldName) {
3115
- if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode || r.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
3131
+ if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
3116
3132
  this.facetRoot = void 0;
3117
3133
  const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
3118
3134
  this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = tc(this.fieldName, this.baseFacetRoot, o));
@@ -3148,14 +3164,14 @@ const rc = /* @__PURE__ */ N(class extends D {
3148
3164
  if (!this.fieldName)
3149
3165
  return;
3150
3166
  const r = (s = this.facetRoot) == null ? void 0 : s[this.fieldName];
3151
- 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) => {
3167
+ 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) => {
3152
3168
  var n;
3153
3169
  const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
3154
- 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: {
3170
+ 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: {
3155
3171
  display: this.selectedPaths[a.path] ? "flex" : "none"
3156
- } }, 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: (u) => {
3172
+ } }, 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: (u) => {
3157
3173
  this.handleCheckboxChange(c.path);
3158
- }, 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)))));
3174
+ }, 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)))));
3159
3175
  }));
3160
3176
  }
3161
3177
  }, [0, "searchcraft-facet-list", {
@@ -3165,7 +3181,7 @@ const rc = /* @__PURE__ */ N(class extends D {
3165
3181
  selectedPaths: [32],
3166
3182
  lastTimeTaken: [32]
3167
3183
  }]);
3168
- function Js() {
3184
+ function ea() {
3169
3185
  if (typeof customElements > "u")
3170
3186
  return;
3171
3187
  ["searchcraft-facet-list"].forEach((t) => {
@@ -3176,8 +3192,8 @@ function Js() {
3176
3192
  }
3177
3193
  });
3178
3194
  }
3179
- const sc = Js;
3180
- function Ze(e, t) {
3195
+ const sc = ea;
3196
+ function Qe(e, t) {
3181
3197
  if (e && t)
3182
3198
  return t.fieldNames.map((r) => {
3183
3199
  let s = e[r.fieldName];
@@ -3195,7 +3211,7 @@ function Ze(e, t) {
3195
3211
  return s;
3196
3212
  }).filter((r) => !!r).join(t.delimiter || " ");
3197
3213
  }
3198
- function ea(e) {
3214
+ function ta(e) {
3199
3215
  switch (e) {
3200
3216
  case "hour":
3201
3217
  return 36e5;
@@ -3209,7 +3225,7 @@ function ea(e) {
3209
3225
  return 36e5;
3210
3226
  }
3211
3227
  }
3212
- function ta(e) {
3228
+ function ra(e) {
3213
3229
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
3214
3230
  }
3215
3231
  function ac(e, t = "en-US", r = {
@@ -3219,47 +3235,47 @@ function ac(e, t = "en-US", r = {
3219
3235
  }) {
3220
3236
  const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
3221
3237
  if (o < n) {
3222
- const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60), l = Math.trunc(h / 24), p = new Intl.RelativeTimeFormat(t, r);
3223
- return l >= 1 ? p.format(-l, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
3238
+ const c = Math.trunc(o / 1e3), u = Math.trunc(c / 60), h = Math.trunc(u / 60), i = Math.trunc(h / 24), p = new Intl.RelativeTimeFormat(t, r);
3239
+ return i >= 1 ? p.format(-i, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
3224
3240
  }
3225
3241
  return new Intl.DateTimeFormat(t, r).format(s);
3226
3242
  }
3227
- const nc = /* @__PURE__ */ N(class extends D {
3243
+ const nc = /* @__PURE__ */ H(class extends D {
3228
3244
  constructor() {
3229
3245
  super();
3230
3246
  /**
3231
3247
  * The maximum value allowed.
3232
3248
  */
3233
- d(this, "max", 100);
3249
+ f(this, "max", 100);
3234
3250
  /**
3235
3251
  * The minimum value allowed.
3236
3252
  */
3237
- d(this, "min", 0);
3253
+ f(this, "min", 0);
3238
3254
  /**
3239
3255
  * The granularity that the value must adhere to.
3240
3256
  */
3241
- d(this, "granularity", ea("month"));
3257
+ f(this, "granularity", ta("month"));
3242
3258
  /** The type of data allowed. */
3243
- d(this, "dataType", "number");
3244
- d(this, "endValue", this.max);
3245
- d(this, "startValue", this.min);
3246
- d(this, "lastFocusedHandle", "max");
3259
+ f(this, "dataType", "number");
3260
+ f(this, "endValue", this.max);
3261
+ f(this, "startValue", this.min);
3262
+ f(this, "lastFocusedHandle", "max");
3247
3263
  /**
3248
3264
  * When the range has changed.
3249
3265
  * */
3250
- d(this, "rangeChanged");
3251
- d(this, "emitUpdate", async () => {
3266
+ f(this, "rangeChanged");
3267
+ f(this, "emitUpdate", async () => {
3252
3268
  var r;
3253
3269
  (r = this.rangeChanged) == null || r.emit({
3254
3270
  startValue: this.startValue,
3255
3271
  endValue: this.endValue
3256
3272
  });
3257
3273
  });
3258
- d(this, "handleStartValueChange", (r) => {
3274
+ f(this, "handleStartValueChange", (r) => {
3259
3275
  const s = r.target, a = Number.parseInt(s.value, 10);
3260
3276
  this.lastFocusedHandle = "min", a <= this.endValue ? (this.startValue = a, this.emitUpdate()) : (this.startValue = this.endValue, s.value = `${this.endValue}`);
3261
3277
  });
3262
- d(this, "handleEndValueChange", (r) => {
3278
+ f(this, "handleEndValueChange", (r) => {
3263
3279
  const s = r.target, a = Number.parseInt(s.value, 10);
3264
3280
  this.lastFocusedHandle = "max", a >= this.startValue ? (this.endValue = a, this.emitUpdate()) : (this.endValue = this.startValue, s.value = `${this.startValue}`);
3265
3281
  });
@@ -3270,10 +3286,10 @@ const nc = /* @__PURE__ */ N(class extends D {
3270
3286
  }
3271
3287
  render() {
3272
3288
  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();
3273
- 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: {
3289
+ 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: {
3274
3290
  left: `${a}%`,
3275
3291
  width: `${o - a}%`
3276
- } }), i("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: oe("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: oe("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)));
3292
+ } }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: ne("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: ne("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)));
3277
3293
  }
3278
3294
  }, [0, "searchcraft-slider", {
3279
3295
  max: [2],
@@ -3284,7 +3300,7 @@ const nc = /* @__PURE__ */ N(class extends D {
3284
3300
  startValue: [32],
3285
3301
  lastFocusedHandle: [32]
3286
3302
  }]);
3287
- function ra() {
3303
+ function sa() {
3288
3304
  if (typeof customElements > "u")
3289
3305
  return;
3290
3306
  ["searchcraft-slider"].forEach((t) => {
@@ -3295,25 +3311,25 @@ function ra() {
3295
3311
  }
3296
3312
  });
3297
3313
  }
3298
- const oc = /* @__PURE__ */ N(class extends D {
3314
+ const oc = /* @__PURE__ */ H(class extends D {
3299
3315
  constructor() {
3300
3316
  super();
3301
3317
  /**
3302
3318
  * The label.
3303
3319
  */
3304
- d(this, "label", "Toggle");
3320
+ f(this, "label", "Toggle");
3305
3321
  /**
3306
3322
  * The secondary label displayed below the main label.
3307
3323
  */
3308
- d(this, "subLabel");
3324
+ f(this, "subLabel");
3309
3325
  /**
3310
3326
  * When the toggle element is changed.
3311
3327
  */
3312
- d(this, "toggleUpdated");
3313
- d(this, "isActive", !1);
3314
- d(this, "unsubscribe");
3315
- d(this, "lastSearchTerm");
3316
- d(this, "handleToggle", async () => {
3328
+ f(this, "toggleUpdated");
3329
+ f(this, "isActive", !1);
3330
+ f(this, "unsubscribe");
3331
+ f(this, "lastSearchTerm");
3332
+ f(this, "handleToggle", async () => {
3317
3333
  var r;
3318
3334
  this.isActive = !this.isActive, (r = this.toggleUpdated) == null || r.emit(this.isActive);
3319
3335
  });
@@ -3329,9 +3345,9 @@ const oc = /* @__PURE__ */ N(class extends D {
3329
3345
  (r = this.unsubscribe) == null || r.call(this);
3330
3346
  }
3331
3347
  render() {
3332
- return i("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: oe("searchcraft-toggle-button", {
3348
+ return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: ne("searchcraft-toggle-button", {
3333
3349
  "searchcraft-toggle-button-active": this.isActive
3334
- }) }, 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" })));
3350
+ }) }, 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" })));
3335
3351
  }
3336
3352
  }, [0, "searchcraft-toggle-button", {
3337
3353
  label: [1],
@@ -3340,7 +3356,7 @@ const oc = /* @__PURE__ */ N(class extends D {
3340
3356
  unsubscribe: [32],
3341
3357
  lastSearchTerm: [32]
3342
3358
  }]);
3343
- function sa() {
3359
+ function aa() {
3344
3360
  if (typeof customElements > "u")
3345
3361
  return;
3346
3362
  ["searchcraft-toggle-button"].forEach((t) => {
@@ -3351,16 +3367,16 @@ function sa() {
3351
3367
  }
3352
3368
  });
3353
3369
  }
3354
- const cc = /* @__PURE__ */ N(class extends D {
3370
+ const cc = /* @__PURE__ */ H(class extends D {
3355
3371
  constructor() {
3356
3372
  super();
3357
3373
  /**
3358
3374
  * The items to filter.
3359
3375
  */
3360
- d(this, "items", []);
3361
- d(this, "unsubscribe");
3362
- d(this, "lastSearchTerm");
3363
- d(this, "searchStore", I.getState());
3376
+ f(this, "items", []);
3377
+ f(this, "unsubscribe");
3378
+ f(this, "lastSearchTerm");
3379
+ f(this, "searchStore", I.getState());
3364
3380
  this.__registerHost();
3365
3381
  }
3366
3382
  componentDidLoad() {
@@ -3394,43 +3410,49 @@ const cc = /* @__PURE__ */ N(class extends D {
3394
3410
  handleExactMatchToggleUpdated(r) {
3395
3411
  this.searchStore.setSearchMode(r ? "exact" : "fuzzy"), this.searchStore.search();
3396
3412
  }
3397
- handleMostRecentToggleUpdated(r) {
3398
- this.searchStore.setSortType(r ? "desc" : "asc"), this.searchStore.search();
3413
+ handleMostRecentToggleUpdated(r, s) {
3414
+ s ? this.searchStore.setSortOrder({
3415
+ orderByField: r,
3416
+ sortType: "desc"
3417
+ }) : this.searchStore.setSortOrder({
3418
+ orderByField: null,
3419
+ sortType: null
3420
+ }), this.searchStore.search();
3399
3421
  }
3400
3422
  /**
3401
3423
  * Iterate through `items` and render them based on `type`
3402
3424
  */
3403
3425
  render() {
3404
- return i("div", { key: "22344fe9d0554894bff8c2c6afe12661bf7f20d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
3426
+ return l("div", { key: "7f15e8f1a2e1be763118f9cd4ded34cf7e2902d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
3405
3427
  switch (r.type) {
3406
3428
  case "dateRange": {
3407
- const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = ea(s.options.granularity);
3408
- 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) => {
3429
+ const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = ta(s.options.granularity);
3430
+ 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) => {
3409
3431
  this.handleDateRangeChanged(s.fieldName, c.detail.startValue, c.detail.endValue);
3410
3432
  } }));
3411
3433
  }
3412
3434
  case "numericRange": {
3413
3435
  const s = r;
3414
- 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) => {
3436
+ 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) => {
3415
3437
  this.handleNumericRangeChanged(s.fieldName, a.detail.startValue, a.detail.endValue);
3416
3438
  } }));
3417
3439
  }
3418
3440
  case "facets": {
3419
3441
  const s = r;
3420
- 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) => {
3442
+ 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) => {
3421
3443
  this.handleFacetSelectionUpdated(s.fieldName, a.detail.paths);
3422
3444
  } }));
3423
3445
  }
3424
3446
  case "exactMatchToggle": {
3425
3447
  const s = r;
3426
- return i("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3448
+ return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3427
3449
  this.handleExactMatchToggleUpdated(a.detail);
3428
3450
  } });
3429
3451
  }
3430
3452
  case "mostRecentToggle": {
3431
3453
  const s = r;
3432
- return i("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3433
- this.handleMostRecentToggleUpdated(a.detail);
3454
+ return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3455
+ this.handleMostRecentToggleUpdated(s.fieldName, a.detail);
3434
3456
  } });
3435
3457
  }
3436
3458
  }
@@ -3450,35 +3472,35 @@ function ic() {
3450
3472
  customElements.get(t) || customElements.define(t, cc);
3451
3473
  break;
3452
3474
  case "searchcraft-facet-list":
3453
- customElements.get(t) || Js();
3475
+ customElements.get(t) || ea();
3454
3476
  break;
3455
3477
  case "searchcraft-slider":
3456
- customElements.get(t) || ra();
3478
+ customElements.get(t) || sa();
3457
3479
  break;
3458
3480
  case "searchcraft-toggle-button":
3459
- customElements.get(t) || sa();
3481
+ customElements.get(t) || aa();
3460
3482
  break;
3461
3483
  }
3462
3484
  });
3463
3485
  }
3464
- const lc = ic, uc = /* @__PURE__ */ N(class extends D {
3486
+ const lc = ic, uc = /* @__PURE__ */ H(class extends D {
3465
3487
  constructor() {
3466
3488
  super();
3467
3489
  /**
3468
3490
  * The classname applied to the label element.
3469
3491
  */
3470
- d(this, "inputLabelClassName", "");
3471
- d(this, "label", "");
3492
+ f(this, "inputLabelClassName", "");
3493
+ f(this, "label", "");
3472
3494
  this.__registerHost();
3473
3495
  }
3474
3496
  render() {
3475
- return i("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: oe("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
3497
+ return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: ne("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
3476
3498
  }
3477
3499
  }, [0, "searchcraft-input-label", {
3478
3500
  inputLabelClassName: [1, "input-label-class-name"],
3479
3501
  label: [1]
3480
3502
  }]);
3481
- function pr() {
3503
+ function mr() {
3482
3504
  if (typeof customElements > "u")
3483
3505
  return;
3484
3506
  ["searchcraft-input-label"].forEach((t) => {
@@ -3489,53 +3511,53 @@ function pr() {
3489
3511
  }
3490
3512
  });
3491
3513
  }
3492
- const hc = /* @__PURE__ */ N(class extends D {
3514
+ const hc = /* @__PURE__ */ H(class extends D {
3493
3515
  constructor() {
3494
3516
  super();
3495
3517
  /**
3496
3518
  * Whether or not to automatically submit the search term when the input changes.
3497
3519
  */
3498
- d(this, "autoSearch", !0);
3520
+ f(this, "autoSearch", !0);
3499
3521
  /**
3500
3522
  * Where to place the search button.
3501
3523
  */
3502
- d(this, "buttonPlacement", "none");
3524
+ f(this, "buttonPlacement", "none");
3503
3525
  /**
3504
3526
  * The label for the submit button.
3505
3527
  */
3506
- d(this, "buttonLabel");
3528
+ f(this, "buttonLabel");
3507
3529
  /**
3508
3530
  * The label rendered above the input.
3509
3531
  */
3510
- d(this, "inputLabel");
3532
+ f(this, "inputLabel");
3511
3533
  /**
3512
3534
  * The input element's placeholder value.
3513
3535
  */
3514
- d(this, "placeholderValue", "Enter Search");
3536
+ f(this, "placeholderValue", "Enter Search");
3515
3537
  /**
3516
3538
  * When the input becomes focused.
3517
3539
  */
3518
- d(this, "inputFocus");
3540
+ f(this, "inputFocus");
3519
3541
  /**
3520
3542
  * When the input becomes unfocused.
3521
3543
  */
3522
- d(this, "inputBlur");
3544
+ f(this, "inputBlur");
3523
3545
  /**
3524
3546
  * Event emitted when input initializes.
3525
3547
  */
3526
- d(this, "inputInit");
3527
- d(this, "inputValue", "");
3528
- d(this, "searchTerm", "");
3529
- d(this, "error", !1);
3530
- d(this, "core");
3531
- d(this, "searchcraftStore", I.getState());
3532
- d(this, "unsubscribe", () => {
3548
+ f(this, "inputInit");
3549
+ f(this, "inputValue", "");
3550
+ f(this, "searchTerm", "");
3551
+ f(this, "error", !1);
3552
+ f(this, "core");
3553
+ f(this, "searchcraftStore", I.getState());
3554
+ f(this, "unsubscribe", () => {
3533
3555
  });
3534
- d(this, "handleInput", (r) => {
3556
+ f(this, "handleInput", (r) => {
3535
3557
  const s = r.target;
3536
3558
  this.inputValue = s.value, this.autoSearch && this.performSearch(s.value);
3537
3559
  });
3538
- d(this, "performSearch", async (r) => {
3560
+ f(this, "performSearch", async (r) => {
3539
3561
  if (r !== this.searchTerm) {
3540
3562
  this.searchcraftStore.setSearchTerm(r.trim()), this.error = !1;
3541
3563
  try {
@@ -3545,13 +3567,13 @@ const hc = /* @__PURE__ */ N(class extends D {
3545
3567
  }
3546
3568
  }
3547
3569
  });
3548
- d(this, "handleReset", () => {
3570
+ f(this, "handleReset", () => {
3549
3571
  this.searchcraftStore.setSearchResultsCount(0), this.searchcraftStore.setSearchTerm(""), this.searchcraftStore.setSearchClientResponseItems([]), this.error = !1;
3550
3572
  });
3551
- d(this, "handleClearInput", () => {
3573
+ f(this, "handleClearInput", () => {
3552
3574
  this.handleReset();
3553
3575
  });
3554
- d(this, "handleFormSubmit", async (r) => {
3576
+ f(this, "handleFormSubmit", async (r) => {
3555
3577
  r.preventDefault(), await this.performSearch(this.inputValue);
3556
3578
  });
3557
3579
  this.__registerHost(), this.inputFocus = Ce(this, "inputFocus"), this.inputBlur = Ce(this, "inputBlur"), this.inputInit = Ce(this, "inputInit");
@@ -3576,14 +3598,14 @@ const hc = /* @__PURE__ */ N(class extends D {
3576
3598
  this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
3577
3599
  }
3578
3600
  render() {
3579
- const r = this.inputValue.length > 0, s = oe("searchcraft-input-form-grid", {
3601
+ const r = this.inputValue.length > 0, s = ne("searchcraft-input-form-grid", {
3580
3602
  "searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
3581
3603
  "searchcraft-input-form-grid-button-right": this.buttonPlacement === "right",
3582
3604
  "searchcraft-input-form-grid-button-none": this.buttonPlacement === "none"
3583
3605
  }), o = {
3584
3606
  gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
3585
3607
  };
3586
- return i("form", { key: "6af89b2ab634e0f3e0ef575f98f33d091602f95a", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, i("div", { key: "93fea8e2b80468afeb6014122d5b749d74bfaf35", class: s, style: o }, i("div", { key: "1e5a416843b99aec68c4672a9c78f607347dc9d1", class: "searchcraft-input-form-button" }, i("searchcraft-button", { key: "c38c1df0ce20f914ed76fbc0acad5a22b40e6fff", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && i("div", { key: "2169a4466b0fdc8075c0dc74da442aef28a84d65", class: "searchcraft-input-form-label" }, i("searchcraft-input-label", { key: "a263b5aa2a4d50d297f06c1fe9e6afb64763f097", label: this.inputLabel })), this.error && i("div", { key: "49be2ac0f2d01916e5ea533e6406ee9d4d932178", class: "searchcraft-input-form-error-message" }, i("searchcraft-error-message", { key: "310c9aebcf580d4abe92d288c6b70a5adf083f8e" }, "Something went wrong.")), i("div", { key: "f4702e368815e049586e97cf59541b2dc5460fc0", class: "searchcraft-input-form-input-wrapper" }, i("input", { key: "a8cddd5e937eee1d30fb98eaaa3dbffe96c192ce", autoComplete: "off", class: "searchcraft-input-form-input", onFocus: () => {
3608
+ 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: () => {
3587
3609
  var n;
3588
3610
  return (n = this.inputFocus) == null ? void 0 : n.emit();
3589
3611
  }, onBlur: () => {
@@ -3591,7 +3613,7 @@ const hc = /* @__PURE__ */ N(class extends D {
3591
3613
  return (n = this.inputBlur) == null ? void 0 : n.emit();
3592
3614
  }, onInput: (n) => {
3593
3615
  this.handleInput(n);
3594
- }, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), i("div", { key: "616b4dde1ba016cf6a2fba8594a99a3a3f584ef5", class: "searchcraft-input-form-input-icon" }, i("svg", { key: "daaef561677a06a76813375e429be7e053b8b122", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, i("title", { key: "e6d82ca64dd9bfc663813c239d11e5652aa0b9a1" }, "Search icon"), i("path", { key: "1df856c98c2063c1d0c80027255935f73b513939", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && i("button", { key: "8dd6dfefe0ba909657bd436b559ce35b5004f9ae", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, i("svg", { key: "bcdba04d5c0949cacc8e1962d2b3cd40ad995de6", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, i("title", { key: "e01e7fb9b23daf9434520c4c68c0d7539b37d1f8" }, "Clear icon"), i("path", { key: "ce526d332b6e352cd9cf6008ee2f7497c6769782", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
3616
+ }, 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" }))))));
3595
3617
  }
3596
3618
  static get watchers() {
3597
3619
  return {
@@ -3611,7 +3633,7 @@ const hc = /* @__PURE__ */ N(class extends D {
3611
3633
  }, void 0, {
3612
3634
  core: ["onCoreChange"]
3613
3635
  }]);
3614
- function aa() {
3636
+ function na() {
3615
3637
  if (typeof customElements > "u")
3616
3638
  return;
3617
3639
  ["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
@@ -3626,27 +3648,27 @@ function aa() {
3626
3648
  customElements.get(t) || Rt();
3627
3649
  break;
3628
3650
  case "searchcraft-input-label":
3629
- customElements.get(t) || pr();
3651
+ customElements.get(t) || mr();
3630
3652
  break;
3631
3653
  }
3632
3654
  });
3633
3655
  }
3634
- const fc = aa, dc = pr, pc = /* @__PURE__ */ N(class extends D {
3656
+ const dc = na, fc = mr, pc = /* @__PURE__ */ H(class extends D {
3635
3657
  constructor() {
3636
3658
  super();
3637
3659
  // store vars
3638
- d(this, "searchTerm");
3639
- d(this, "searchResultsPerPage");
3640
- d(this, "searchResultsPage");
3641
- d(this, "searchResultsCount");
3660
+ f(this, "searchTerm");
3661
+ f(this, "searchResultsPerPage");
3662
+ f(this, "searchResultsPage");
3663
+ f(this, "searchResultsCount");
3642
3664
  // local vars
3643
- d(this, "searchResultsPagesCount", 1);
3644
- d(this, "searchResultsRangeMin", 1);
3645
- d(this, "searchResultsRangeMax", 1);
3665
+ f(this, "searchResultsPagesCount", 1);
3666
+ f(this, "searchResultsRangeMin", 1);
3667
+ f(this, "searchResultsRangeMax", 1);
3646
3668
  // store functions
3647
- d(this, "setSearchResultsPage", () => {
3669
+ f(this, "setSearchResultsPage", () => {
3648
3670
  });
3649
- d(this, "unsubscribe", () => {
3671
+ f(this, "unsubscribe", () => {
3650
3672
  });
3651
3673
  this.__registerHost();
3652
3674
  }
@@ -3663,27 +3685,27 @@ const fc = aa, dc = pr, pc = /* @__PURE__ */ N(class extends D {
3663
3685
  this.setSearchResultsPage(r);
3664
3686
  }
3665
3687
  renderOddPaginationItem(r) {
3666
- return i("li", null, i("button", { class: oe("searchcraft-pagination-item", {
3688
+ return l("li", null, l("button", { class: ne("searchcraft-pagination-item", {
3667
3689
  "searchcraft-pagination-item-active": this.searchResultsPage === r
3668
3690
  }), onClick: () => this.handleGoToPage(r), type: "button" }, r));
3669
3691
  }
3670
3692
  renderEvenPaginationItem(r) {
3671
3693
  if (!(this.searchResultsPagesCount <= r))
3672
- return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? i("li", null, i("button", { class: oe("searchcraft-pagination-item", {
3694
+ return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class: ne("searchcraft-pagination-item", {
3673
3695
  "searchcraft-pagination-item-active": this.searchResultsPage === r
3674
- }), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : i("li", null, i("span", { class: "searchcraft-pagination-item" }, "..."));
3696
+ }), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : l("li", null, l("span", { class: "searchcraft-pagination-item" }, "..."));
3675
3697
  }
3676
3698
  renderMiddlePaginationItem() {
3677
3699
  if (!(this.searchResultsPagesCount <= 3))
3678
- return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? i("li", null, i("button", { class: oe("searchcraft-pagination-item", {
3700
+ return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class: ne("searchcraft-pagination-item", {
3679
3701
  "searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
3680
- }), 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));
3702
+ }), 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));
3681
3703
  }
3682
3704
  render() {
3683
3705
  if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
3684
- 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: () => {
3706
+ 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: () => {
3685
3707
  this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
3686
- }, 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 })));
3708
+ }, 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 })));
3687
3709
  }
3688
3710
  }, [0, "searchcraft-pagination", {
3689
3711
  searchTerm: [32],
@@ -3709,28 +3731,28 @@ function mc() {
3709
3731
  }
3710
3732
  });
3711
3733
  }
3712
- const gc = mc, vc = /* @__PURE__ */ N(class extends D {
3734
+ const gc = mc, vc = /* @__PURE__ */ H(class extends D {
3713
3735
  constructor() {
3714
3736
  super();
3715
3737
  /**
3716
3738
  * A callback function responsible for rendering the button contents.
3717
3739
  */
3718
- d(this, "template");
3740
+ f(this, "template");
3719
3741
  /**
3720
3742
  * The type of popover button to render.
3721
3743
  */
3722
- d(this, "type");
3723
- d(this, "hotkey");
3724
- d(this, "hotkeyModifier");
3725
- d(this, "hotkeyModifierSymbol");
3726
- d(this, "isPopoverVisible");
3727
- d(this, "userAgent");
3728
- d(this, "unsubscribe", () => {
3744
+ f(this, "type");
3745
+ f(this, "hotkey");
3746
+ f(this, "hotkeyModifier");
3747
+ f(this, "hotkeyModifierSymbol");
3748
+ f(this, "isPopoverVisible");
3749
+ f(this, "userAgent");
3750
+ f(this, "unsubscribe", () => {
3729
3751
  });
3730
- d(this, "renderOptionSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Option key"), i("path", { d: "M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z", fill: "currentColor" }), i("path", { d: "M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z", fill: "currentColor" })));
3731
- d(this, "renderCtrlSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Ctrl key"), i("path", { d: "M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z", fill: "currentColor" })));
3732
- d(this, "renderWindowsMetaSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Windows meta key"), i("path", { d: "M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z", fill: "currentColor" })));
3733
- d(this, "renderMacMetaSymbol", () => i("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, i("title", null, "Mac meta key"), i("path", { d: "M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z", fill: "currentColor" })));
3752
+ f(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" })));
3753
+ f(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" })));
3754
+ f(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" })));
3755
+ f(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" })));
3734
3756
  this.__registerHost();
3735
3757
  }
3736
3758
  handleOnClick() {
@@ -3769,18 +3791,18 @@ const gc = mc, vc = /* @__PURE__ */ N(class extends D {
3769
3791
  }
3770
3792
  }
3771
3793
  renderSkeuomorphicSlot() {
3772
- 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))));
3794
+ 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))));
3773
3795
  }
3774
3796
  renderSlot() {
3775
3797
  switch (this.type) {
3776
3798
  case "skeuomorphic":
3777
3799
  return this.renderSkeuomorphicSlot();
3778
3800
  default:
3779
- return i("div", null, i("slot", null));
3801
+ return l("div", null, l("slot", null));
3780
3802
  }
3781
3803
  }
3782
3804
  render() {
3783
- return i("button", { key: "74e36b0593ba2cbb03f5ecff1434bc7056bf0db0", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, innerHTML: typeof this.template < "u" ? this.template({ isPopoverVisible: this.isPopoverVisible }, { html: kt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
3805
+ 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: rt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
3784
3806
  }
3785
3807
  }, [4, "searchcraft-popover-button", {
3786
3808
  template: [16],
@@ -3802,11 +3824,11 @@ function bc() {
3802
3824
  }
3803
3825
  });
3804
3826
  }
3805
- const yc = bc, Cc = /* @__PURE__ */ N(class extends D {
3827
+ const yc = bc, Cc = /* @__PURE__ */ H(class extends D {
3806
3828
  constructor() {
3807
3829
  super();
3808
- d(this, "searchResultsCount");
3809
- d(this, "unsubscribe", () => {
3830
+ f(this, "searchResultsCount");
3831
+ f(this, "unsubscribe", () => {
3810
3832
  });
3811
3833
  this.__registerHost();
3812
3834
  }
@@ -3820,12 +3842,12 @@ const yc = bc, Cc = /* @__PURE__ */ N(class extends D {
3820
3842
  (r = this.unsubscribe) == null || r.call(this);
3821
3843
  }
3822
3844
  render() {
3823
- return i("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, i("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${ta(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" }))));
3845
+ return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${ra(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" }))));
3824
3846
  }
3825
3847
  }, [0, "searchcraft-popover-footer", {
3826
3848
  searchResultsCount: [32]
3827
3849
  }]);
3828
- function na() {
3850
+ function oa() {
3829
3851
  if (typeof customElements > "u")
3830
3852
  return;
3831
3853
  ["searchcraft-popover-footer"].forEach((t) => {
@@ -3836,19 +3858,19 @@ function na() {
3836
3858
  }
3837
3859
  });
3838
3860
  }
3839
- const Sc = na, kc = /* @__PURE__ */ N(class extends D {
3861
+ const Sc = oa, kc = /* @__PURE__ */ H(class extends D {
3840
3862
  constructor() {
3841
3863
  super();
3842
- d(this, "item");
3843
- d(this, "popoverResultMappings");
3864
+ f(this, "item");
3865
+ f(this, "popoverResultMappings");
3844
3866
  /** The document position relative to the search results (For Measure) */
3845
- d(this, "documentPosition", 0);
3846
- d(this, "title");
3847
- d(this, "subtitle");
3848
- d(this, "href");
3849
- d(this, "imageSource");
3850
- d(this, "imageAlt");
3851
- d(this, "handleLinkClick", () => {
3867
+ f(this, "documentPosition", 0);
3868
+ f(this, "title");
3869
+ f(this, "subtitle");
3870
+ f(this, "href");
3871
+ f(this, "imageSource");
3872
+ f(this, "imageAlt");
3873
+ f(this, "handleLinkClick", () => {
3852
3874
  var a;
3853
3875
  const r = I.getState(), s = r.getSearchcraftCore();
3854
3876
  if (s) {
@@ -3864,7 +3886,7 @@ const Sc = na, kc = /* @__PURE__ */ N(class extends D {
3864
3886
  }
3865
3887
  mapValuesFromDocument(r) {
3866
3888
  var s, a, o, n, c;
3867
- this.title = Ze(r, (s = this.popoverResultMappings) == null ? void 0 : s.title), this.subtitle = Ze(r, (a = this.popoverResultMappings) == null ? void 0 : a.subtitle), this.href = Ze(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSource = Ze(r, (n = this.popoverResultMappings) == null ? void 0 : n.imageSource), this.imageAlt = Ze(r, (c = this.popoverResultMappings) == null ? void 0 : c.imageAlt);
3889
+ this.title = Qe(r, (s = this.popoverResultMappings) == null ? void 0 : s.title), this.subtitle = Qe(r, (a = this.popoverResultMappings) == null ? void 0 : a.subtitle), this.href = Qe(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSource = Qe(r, (n = this.popoverResultMappings) == null ? void 0 : n.imageSource), this.imageAlt = Qe(r, (c = this.popoverResultMappings) == null ? void 0 : c.imageAlt);
3868
3890
  }
3869
3891
  connectedCallback() {
3870
3892
  this.item && this.mapValuesFromDocument(this.item.document);
@@ -3872,7 +3894,7 @@ const Sc = na, kc = /* @__PURE__ */ N(class extends D {
3872
3894
  disconnectedCallback() {
3873
3895
  }
3874
3896
  render() {
3875
- return i("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, i("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && i("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, i("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), i("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && i("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && i("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
3897
+ 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))));
3876
3898
  }
3877
3899
  }, [0, "searchcraft-popover-list-item", {
3878
3900
  item: [16],
@@ -3884,7 +3906,7 @@ const Sc = na, kc = /* @__PURE__ */ N(class extends D {
3884
3906
  imageSource: [32],
3885
3907
  imageAlt: [32]
3886
3908
  }]);
3887
- function mr() {
3909
+ function gr() {
3888
3910
  if (typeof customElements > "u")
3889
3911
  return;
3890
3912
  ["searchcraft-popover-list-item"].forEach((t) => {
@@ -3895,62 +3917,62 @@ function mr() {
3895
3917
  }
3896
3918
  });
3897
3919
  }
3898
- var ws;
3899
- const wc = /* @__PURE__ */ N(class extends D {
3920
+ var xs;
3921
+ const wc = /* @__PURE__ */ H(class extends D {
3900
3922
  constructor() {
3901
3923
  super();
3902
3924
  /**
3903
3925
  * The mappings that define how the data in the documents are mapped to the
3904
3926
  * list-view-item elements.
3905
3927
  */
3906
- d(this, "popoverResultMappings");
3928
+ f(this, "popoverResultMappings");
3907
3929
  /**
3908
3930
  * The items to render in the list view.
3909
3931
  */
3910
- d(this, "searchClientResponseItems");
3911
- d(this, "adClientResponseItems");
3912
- d(this, "searchResultsPage");
3913
- d(this, "searchResultsPerPage");
3914
- d(this, "config", (ws = I.getState().core) == null ? void 0 : ws.config);
3932
+ f(this, "searchClientResponseItems");
3933
+ f(this, "adClientResponseItems");
3934
+ f(this, "searchResultsPage");
3935
+ f(this, "searchResultsPerPage");
3936
+ f(this, "config", (xs = I.getState().core) == null ? void 0 : xs.config);
3915
3937
  this.__registerHost();
3916
3938
  }
3917
3939
  renderWithADMAds() {
3918
3940
  var r, s;
3919
- return i("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => i("searchcraft-ad", { adClientResponseItem: a, adContainerId: J(), 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 })));
3941
+ return l("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => l("searchcraft-ad", { adClientResponseItem: a, adContainerId: J(), 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 })));
3920
3942
  }
3921
3943
  renderWithCustomAds() {
3922
- var u, h, l, p;
3923
- const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
3944
+ var u, h, i, p;
3945
+ const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.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 || [];
3924
3946
  for (let g = 0; g < o; g++)
3925
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
3947
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
3926
3948
  c.forEach((g, k) => {
3927
3949
  if (s && k % s === 0 && k + s < c.length && k >= s)
3928
3950
  for (let b = 0; b < a; b++)
3929
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g.id}-ad-${b}` }));
3930
- r.push(i("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + k }));
3951
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g.id}-ad-${b}` }));
3952
+ r.push(l("searchcraft-popover-list-item", { item: g, key: g.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + k }));
3931
3953
  });
3932
3954
  for (let g = 0; g < n; g++)
3933
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
3934
- return i("div", { class: "searchcraft-popover-list-view" }, r);
3955
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${g}-ad` }));
3956
+ return l("div", { class: "searchcraft-popover-list-view" }, r);
3935
3957
  }
3936
3958
  renderWithNativoAds() {
3937
- var h, l, p, g, k;
3938
- const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
3959
+ var h, i, p, g, k;
3960
+ const r = [], s = ((h = this.config) == null ? void 0 : h.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 = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
3939
3961
  for (let b = 0; b < n; b++)
3940
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
3962
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
3941
3963
  u.forEach((b, P) => {
3942
3964
  if (a && (P + s) % a === 0 && P + a < u.length && P >= a)
3943
3965
  for (let _ = 0; _ < o; _++)
3944
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b.id}-ad-${_}` }));
3945
- r.push(i("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
3966
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b.id}-ad-${_}` }));
3967
+ r.push(l("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + P }));
3946
3968
  });
3947
3969
  for (let b = 0; b < c; b++)
3948
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
3949
- return i("div", { class: "searchcraft-popover-list-view" }, r);
3970
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${b}-ad` }));
3971
+ return l("div", { class: "searchcraft-popover-list-view" }, r);
3950
3972
  }
3951
3973
  renderWithNoAds() {
3952
3974
  var r;
3953
- 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 })));
3975
+ 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 })));
3954
3976
  }
3955
3977
  render() {
3956
3978
  var r;
@@ -3972,7 +3994,7 @@ const wc = /* @__PURE__ */ N(class extends D {
3972
3994
  searchResultsPage: [2, "search-results-page"],
3973
3995
  searchResultsPerPage: [2, "search-results-per-page"]
3974
3996
  }]);
3975
- function oa() {
3997
+ function ca() {
3976
3998
  if (typeof customElements > "u")
3977
3999
  return;
3978
4000
  ["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
@@ -3984,12 +4006,12 @@ function oa() {
3984
4006
  customElements.get(t) || wt();
3985
4007
  break;
3986
4008
  case "searchcraft-popover-list-item":
3987
- customElements.get(t) || mr();
4009
+ customElements.get(t) || gr();
3988
4010
  break;
3989
4011
  }
3990
4012
  });
3991
4013
  }
3992
- const xc = /* @__PURE__ */ N(class extends D {
4014
+ const xc = /* @__PURE__ */ H(class extends D {
3993
4015
  constructor() {
3994
4016
  super();
3995
4017
  /**
@@ -3998,38 +4020,38 @@ const xc = /* @__PURE__ */ N(class extends D {
3998
4020
  * - `fullscreen` - Renders in fullscreen view. Used together with the `searchcraft-popover-button` component.
3999
4021
  * - `modal` - Renders in a modal view. Used together with the `searchcraft-popover-button` component.
4000
4022
  */
4001
- d(this, "type", "inline");
4023
+ f(this, "type", "inline");
4002
4024
  /**
4003
4025
  * Formats the content rendered for each result.
4004
4026
  */
4005
- d(this, "popoverResultMappings");
4027
+ f(this, "popoverResultMappings");
4006
4028
  /**
4007
4029
  * The hotkey that activates the popover.
4008
4030
  */
4009
- d(this, "hotkey", "k");
4031
+ f(this, "hotkey", "k");
4010
4032
  /**
4011
4033
  * The hotkey modifier that activates the popover. Used together with the `hotkey` prop.
4012
4034
  */
4013
- d(this, "hotkeyModifier", "meta");
4014
- d(this, "isPopoverVisibleInState", !1);
4015
- d(this, "unsubscribe");
4016
- d(this, "searchClientResponseItems", []);
4017
- d(this, "adClientResponseItems", []);
4018
- d(this, "searchTerm");
4019
- d(this, "isFocused", !1);
4020
- d(this, "breakpointSm", 576);
4021
- d(this, "breakpointMd", 768);
4022
- d(this, "breakpointLg", 992);
4023
- d(this, "searchResultsPage");
4024
- d(this, "searchResultsPerPage");
4025
- d(this, "modalElement");
4026
- d(this, "handleDocumentClick", (r) => {
4035
+ f(this, "hotkeyModifier", "meta");
4036
+ f(this, "isPopoverVisibleInState", !1);
4037
+ f(this, "unsubscribe");
4038
+ f(this, "searchClientResponseItems", []);
4039
+ f(this, "adClientResponseItems", []);
4040
+ f(this, "searchTerm");
4041
+ f(this, "isFocused", !1);
4042
+ f(this, "breakpointSm", 576);
4043
+ f(this, "breakpointMd", 768);
4044
+ f(this, "breakpointLg", 992);
4045
+ f(this, "searchResultsPage");
4046
+ f(this, "searchResultsPerPage");
4047
+ f(this, "modalElement");
4048
+ f(this, "handleDocumentClick", (r) => {
4027
4049
  this.hostElement.contains(r.target) || (this.isFocused = !1);
4028
4050
  });
4029
4051
  /**
4030
4052
  * Actions to perform when various keys are pressed within the popover form.
4031
4053
  */
4032
- d(this, "handleDocumentKeyDown", (r) => {
4054
+ f(this, "handleDocumentKeyDown", (r) => {
4033
4055
  if (r.key === this.hotkey && this.handleHotkeyPressed(r), !!this.hostElement.contains(document.activeElement))
4034
4056
  switch (r.key) {
4035
4057
  case "ArrowDown":
@@ -4043,7 +4065,7 @@ const xc = /* @__PURE__ */ N(class extends D {
4043
4065
  return;
4044
4066
  }
4045
4067
  });
4046
- d(this, "handleInputInit", () => {
4068
+ f(this, "handleInputInit", () => {
4047
4069
  const r = this.hostElement.querySelector(".searchcraft-input-form-input");
4048
4070
  r == null || r.focus();
4049
4071
  });
@@ -4120,21 +4142,21 @@ const xc = /* @__PURE__ */ N(class extends D {
4120
4142
  }
4121
4143
  renderInlinePopover() {
4122
4144
  const r = this.hasResultsToShow && this.isFocused;
4123
- return i("div", { class: oe("searchcraft-popover-form searchcraft-popover-form-inline", {
4145
+ return l("div", { class: ne("searchcraft-popover-form searchcraft-popover-form-inline", {
4124
4146
  "searchcraft-popover-form-active": r
4125
- }) }, 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)));
4147
+ }) }, 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)));
4126
4148
  }
4127
4149
  renderModalPopover() {
4128
4150
  if (this.isPopoverVisibleInState)
4129
- return i("div", { class: oe("searchcraft-popover-form searchcraft-popover-form-modal", {
4151
+ return l("div", { class: ne("searchcraft-popover-form searchcraft-popover-form-modal", {
4130
4152
  "searchcraft-popover-form-active": this.hasResultsToShow
4131
- }) }, i("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), i("div", { class: "searchcraft-popover-form-modal-wrapper" }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), i("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), i("searchcraft-popover-footer", null)));
4153
+ }) }, 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)));
4132
4154
  }
4133
4155
  renderFullscreenPopover() {
4134
4156
  if (this.isPopoverVisibleInState)
4135
- return i("div", { class: oe("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
4157
+ return l("div", { class: ne("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
4136
4158
  "searchcraft-popover-form-active": this.hasResultsToShow
4137
- }) }, i("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, i("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), i("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), i("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && i("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), i("searchcraft-popover-footer", null));
4159
+ }) }, 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));
4138
4160
  }
4139
4161
  render() {
4140
4162
  switch (this.type) {
@@ -4164,7 +4186,7 @@ const xc = /* @__PURE__ */ N(class extends D {
4164
4186
  searchResultsPerPage: [32],
4165
4187
  modalElement: [32]
4166
4188
  }]);
4167
- function ca() {
4189
+ function ia() {
4168
4190
  if (typeof customElements > "u")
4169
4191
  return;
4170
4192
  ["searchcraft-popover-form", "searchcraft-ad", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-form", "searchcraft-input-label", "searchcraft-popover-footer", "searchcraft-popover-form", "searchcraft-popover-list-item", "searchcraft-popover-list-view"].forEach((t) => {
@@ -4182,43 +4204,43 @@ function ca() {
4182
4204
  customElements.get(t) || Rt();
4183
4205
  break;
4184
4206
  case "searchcraft-input-form":
4185
- customElements.get(t) || aa();
4207
+ customElements.get(t) || na();
4186
4208
  break;
4187
4209
  case "searchcraft-input-label":
4188
- customElements.get(t) || pr();
4210
+ customElements.get(t) || mr();
4189
4211
  break;
4190
4212
  case "searchcraft-popover-footer":
4191
- customElements.get(t) || na();
4213
+ customElements.get(t) || oa();
4192
4214
  break;
4193
4215
  case "searchcraft-popover-form":
4194
- customElements.get(t) || ca();
4216
+ customElements.get(t) || ia();
4195
4217
  break;
4196
4218
  case "searchcraft-popover-list-item":
4197
- customElements.get(t) || mr();
4219
+ customElements.get(t) || gr();
4198
4220
  break;
4199
4221
  case "searchcraft-popover-list-view":
4200
- customElements.get(t) || oa();
4222
+ customElements.get(t) || ca();
4201
4223
  break;
4202
4224
  }
4203
4225
  });
4204
4226
  }
4205
- const Rc = ca, Ec = mr, Pc = oa, Tc = /* @__PURE__ */ N(class extends D {
4227
+ const Rc = ia, Ec = gr, Pc = ca, Tc = /* @__PURE__ */ H(class extends D {
4206
4228
  constructor() {
4207
4229
  super();
4208
4230
  /**
4209
4231
  * A callback function responsible for rendering the results info.
4210
4232
  */
4211
- d(this, "template");
4233
+ f(this, "template");
4212
4234
  // store vars
4213
- d(this, "searchTerm");
4214
- d(this, "searchResultsPage");
4215
- d(this, "searchResultsPerPage");
4216
- d(this, "searchResultsCount");
4235
+ f(this, "searchTerm");
4236
+ f(this, "searchResultsPage");
4237
+ f(this, "searchResultsPerPage");
4238
+ f(this, "searchResultsCount");
4217
4239
  // local vars
4218
- d(this, "count", 0);
4219
- d(this, "range", [0, 0]);
4220
- d(this, "responseTime", "0");
4221
- d(this, "unsubscribe", () => {
4240
+ f(this, "count", 0);
4241
+ f(this, "range", [0, 0]);
4242
+ f(this, "responseTime", "0");
4243
+ f(this, "unsubscribe", () => {
4222
4244
  });
4223
4245
  this.__registerHost();
4224
4246
  }
@@ -4231,11 +4253,11 @@ const Rc = ca, Ec = mr, Pc = oa, Tc = /* @__PURE__ */ N(class extends D {
4231
4253
  this.unsubscribe && this.unsubscribe();
4232
4254
  }
4233
4255
  render() {
4234
- return !this.searchTerm || this.searchResultsCount === 0 ? null : i("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
4256
+ return !this.searchTerm || this.searchResultsCount === 0 ? null : l("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
4235
4257
  range: [Number(this.range[0]), Number(this.range[1])],
4236
4258
  count: this.count,
4237
4259
  responseTime: this.responseTime
4238
- }, { html: kt }) : `${ta(this.count)} results found in ${this.responseTime}ms`);
4260
+ }, { html: rt }) : `${ra(this.count)} results found in ${this.responseTime}ms`);
4239
4261
  }
4240
4262
  }, [0, "searchcraft-results-info", {
4241
4263
  template: [16],
@@ -4258,30 +4280,30 @@ function $c() {
4258
4280
  }
4259
4281
  });
4260
4282
  }
4261
- const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
4283
+ const _c = $c, Ic = /* @__PURE__ */ H(class extends D {
4262
4284
  constructor() {
4263
4285
  super();
4264
- d(this, "item");
4286
+ f(this, "item");
4265
4287
  /**
4266
4288
  * The index.
4267
4289
  */
4268
- d(this, "index");
4290
+ f(this, "index");
4269
4291
  /**
4270
4292
  * The position in the document. Used with the "document_clicked" measure event.
4271
4293
  */
4272
- d(this, "documentPosition", 0);
4294
+ f(this, "documentPosition", 0);
4273
4295
  /**
4274
4296
  * A callback function responsible for rendering a result.
4275
4297
  */
4276
- d(this, "template");
4277
- d(this, "templateHtml");
4278
- d(this, "handleResultContainerClick", (r) => {
4279
- var l;
4298
+ f(this, "template");
4299
+ f(this, "templateHtml");
4300
+ f(this, "handleResultContainerClick", (r) => {
4301
+ var i;
4280
4302
  const s = I.getState(), a = s.getSearchcraftCore();
4281
4303
  if (!r.target)
4282
4304
  return;
4283
4305
  const n = r.target.closest("a");
4284
- if (!n || !((l = this.hostElement) != null && l.contains(n)) || !a || !a.measureClient)
4306
+ if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
4285
4307
  return;
4286
4308
  const c = this.documentPosition, u = s.searchTerm, h = s.searchClientResponseItems.length || 0;
4287
4309
  a.measureClient.sendMeasureEvent("document_clicked", {
@@ -4290,7 +4312,7 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
4290
4312
  search_term: u
4291
4313
  });
4292
4314
  });
4293
- d(this, "handleKeyDown", () => {
4315
+ f(this, "handleKeyDown", () => {
4294
4316
  });
4295
4317
  this.__registerHost();
4296
4318
  }
@@ -4302,7 +4324,8 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
4302
4324
  if (this.item)
4303
4325
  try {
4304
4326
  this.templateHtml = (r = this.template) == null ? void 0 : r.call(this, this.item.document, this.index, {
4305
- html: kt
4327
+ html: rt,
4328
+ source_index: this.item.source_index
4306
4329
  });
4307
4330
  } catch (s) {
4308
4331
  console.error("Invalid search result template:", s);
@@ -4310,7 +4333,7 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
4310
4333
  }
4311
4334
  render() {
4312
4335
  if (this.item)
4313
- 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 });
4336
+ 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 });
4314
4337
  }
4315
4338
  }, [0, "searchcraft-search-result", {
4316
4339
  item: [16],
@@ -4319,7 +4342,7 @@ const _c = $c, Ic = /* @__PURE__ */ N(class extends D {
4319
4342
  template: [16],
4320
4343
  templateHtml: [32]
4321
4344
  }]);
4322
- function ia() {
4345
+ function la() {
4323
4346
  if (typeof customElements > "u")
4324
4347
  return;
4325
4348
  ["searchcraft-search-result"].forEach((t) => {
@@ -4330,26 +4353,26 @@ function ia() {
4330
4353
  }
4331
4354
  });
4332
4355
  }
4333
- const Ac = ia, Mc = /* @__PURE__ */ N(class extends D {
4356
+ const Ac = la, Mc = /* @__PURE__ */ H(class extends D {
4334
4357
  constructor() {
4335
4358
  super();
4336
4359
  /**
4337
4360
  * A query that will appears when the component initializes or the search term is ''..
4338
4361
  */
4339
- d(this, "initialQuery");
4362
+ f(this, "initialQuery");
4340
4363
  /**
4341
4364
  * A callback function responsible for rendering a result. Passed to `searchcraft-search-result`.
4342
4365
  */
4343
- d(this, "template");
4344
- d(this, "adClientResponseItems", []);
4345
- d(this, "config");
4346
- d(this, "initialSearchClientResponseItems");
4347
- d(this, "isSearchInProgress", !0);
4348
- d(this, "searchClientResponseItems");
4349
- d(this, "searchResultsPage");
4350
- d(this, "searchResultsPerPage");
4351
- d(this, "searchTerm", "");
4352
- d(this, "unsubscribe", () => {
4366
+ f(this, "template");
4367
+ f(this, "adClientResponseItems", []);
4368
+ f(this, "config");
4369
+ f(this, "initialSearchClientResponseItems");
4370
+ f(this, "isSearchInProgress", !0);
4371
+ f(this, "searchClientResponseItems");
4372
+ f(this, "searchResultsPage");
4373
+ f(this, "searchResultsPerPage");
4374
+ f(this, "searchTerm", "");
4375
+ f(this, "unsubscribe", () => {
4353
4376
  });
4354
4377
  this.__registerHost();
4355
4378
  }
@@ -4371,50 +4394,50 @@ const Ac = ia, Mc = /* @__PURE__ */ N(class extends D {
4371
4394
  ], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
4372
4395
  }
4373
4396
  renderEmptyState() {
4374
- return i("div", { class: "searchcraft-search-results-empty-state" }, i("slot", { name: "empty-search" }));
4397
+ return l("div", { class: "searchcraft-search-results-empty-state" }, l("slot", { name: "empty-search" }));
4375
4398
  }
4376
4399
  renderNoResultsFoundState() {
4377
- return i("div", { class: "searchcraft-search-results" }, i("div", { class: "searchcraft-search-results-error-message" }, i("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
4400
+ 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.')));
4378
4401
  }
4379
4402
  renderWithADMAds() {
4380
4403
  var s, a, o;
4381
4404
  const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4382
- return i("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => i("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: J(), key: n.id })), r.map((n, c) => i("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
4405
+ return l("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => l("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: J(), 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 })));
4383
4406
  }
4384
4407
  renderWithCustomAds() {
4385
- var u, h, l, p, g, k;
4386
- const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (g = this.searchClientResponseItems) != null && g.length ? this.searchClientResponseItems : (k = this.initialSearchClientResponseItems) != null && k.length ? this.initialSearchClientResponseItems : [];
4408
+ var u, h, i, p, g, k;
4409
+ const r = [], s = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.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 : (k = this.initialSearchClientResponseItems) != null && k.length ? this.initialSearchClientResponseItems : [];
4387
4410
  for (let b = 0; b < o; b++)
4388
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
4411
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
4389
4412
  c.forEach((b, P) => {
4390
4413
  if (s && P % s === 0 && P + s < c.length && P >= s)
4391
4414
  for (let _ = 0; _ < a; _++)
4392
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b.id}-ad-${_}` }));
4393
- r.push(i("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: b, template: this.template }));
4415
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b.id}-ad-${_}` }));
4416
+ r.push(l("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + P, index: P, item: b, template: this.template }));
4394
4417
  });
4395
4418
  for (let b = 0; b < n; b++)
4396
- r.push(i("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
4397
- return i("div", { class: "searchcraft-search-results" }, r);
4419
+ r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: J(), key: `${b}-ad` }));
4420
+ return l("div", { class: "searchcraft-search-results" }, r);
4398
4421
  }
4399
4422
  renderWithNativoAds() {
4400
- var h, l, p, g, k, b, P;
4401
- const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((g = this.config) == null ? void 0 : g.nativoAdStartQuantity) || 0, c = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (P = this.initialSearchClientResponseItems) != null && P.length ? this.initialSearchClientResponseItems : [];
4423
+ var h, i, p, g, k, b, P;
4424
+ const r = [], s = ((h = this.config) == null ? void 0 : h.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 = ((k = this.config) == null ? void 0 : k.nativoAdEndQuantity) || 0, u = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (P = this.initialSearchClientResponseItems) != null && P.length ? this.initialSearchClientResponseItems : [];
4402
4425
  for (let _ = 0; _ < n; _++)
4403
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
4426
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
4404
4427
  u.forEach((_, O) => {
4405
4428
  if (a && (O + s) % a === 0 && O + a < u.length && O >= a)
4406
4429
  for (let T = 0; T < o; T++)
4407
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_.id}-ad-${T}` }));
4408
- r.push(i("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + O, index: O, item: _, template: this.template }));
4430
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_.id}-ad-${T}` }));
4431
+ r.push(l("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + O, index: O, item: _, template: this.template }));
4409
4432
  });
4410
4433
  for (let _ = 0; _ < c; _++)
4411
- r.push(i("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
4412
- return i("div", { class: "searchcraft-search-results" }, r);
4434
+ r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: J(), key: `${_}-ad` }));
4435
+ return l("div", { class: "searchcraft-search-results" }, r);
4413
4436
  }
4414
4437
  renderWithNoAds() {
4415
4438
  var s, a;
4416
4439
  const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4417
- return i("div", { class: "searchcraft-search-results" }, r.map((o, n) => i("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
4440
+ 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 })));
4418
4441
  }
4419
4442
  render() {
4420
4443
  var a;
@@ -4461,52 +4484,52 @@ function Lc() {
4461
4484
  customElements.get(t) || Rt();
4462
4485
  break;
4463
4486
  case "searchcraft-search-result":
4464
- customElements.get(t) || ia();
4487
+ customElements.get(t) || la();
4465
4488
  break;
4466
4489
  }
4467
4490
  });
4468
4491
  }
4469
- const Oc = Lc, Fc = /* @__PURE__ */ N(class extends D {
4492
+ const Oc = Lc, Fc = /* @__PURE__ */ H(class extends D {
4470
4493
  constructor() {
4471
4494
  super();
4472
4495
  /**
4473
4496
  * The caption displayed below the select input.
4474
4497
  */
4475
- d(this, "caption");
4498
+ f(this, "caption");
4476
4499
  /**
4477
4500
  * Whether the select input is disabled.
4478
4501
  */
4479
- d(this, "disabled", !1);
4502
+ f(this, "disabled", !1);
4480
4503
  /**
4481
4504
  * The ID for the select input.
4482
4505
  */
4483
- d(this, "inputId");
4506
+ f(this, "inputId");
4484
4507
  /**
4485
4508
  * The label of the select input.
4486
4509
  */
4487
- d(this, "label");
4510
+ f(this, "label");
4488
4511
  /**
4489
4512
  * The ID for the label of the select input.
4490
4513
  */
4491
- d(this, "labelId");
4514
+ f(this, "labelId");
4492
4515
  /**
4493
4516
  * The name of the select input.
4494
4517
  */
4495
- d(this, "name");
4518
+ f(this, "name");
4496
4519
  /**
4497
4520
  * The options for the select input.
4498
4521
  */
4499
- d(this, "options", []);
4522
+ f(this, "options", []);
4500
4523
  /**
4501
4524
  * The event fired when the select is changed.
4502
4525
  */
4503
- d(this, "selectChange");
4504
- d(this, "searchResultsPerPage");
4505
- d(this, "setSearchResultsPage", () => {
4526
+ f(this, "selectChange");
4527
+ f(this, "searchResultsPerPage");
4528
+ f(this, "setSearchResultsPage", () => {
4506
4529
  });
4507
- d(this, "setSearchResultsPerPage", () => {
4530
+ f(this, "setSearchResultsPerPage", () => {
4508
4531
  });
4509
- d(this, "handleSelectChange", (r) => {
4532
+ f(this, "handleSelectChange", (r) => {
4510
4533
  this.selectChange.emit(r.target.value);
4511
4534
  });
4512
4535
  this.__registerHost(), this.selectChange = Ce(this, "selectChange");
@@ -4515,7 +4538,7 @@ const Oc = Lc, Fc = /* @__PURE__ */ N(class extends D {
4515
4538
  this.setSearchResultsPage(r);
4516
4539
  }
4517
4540
  render() {
4518
- 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));
4541
+ 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));
4519
4542
  }
4520
4543
  }, [0, "searchcraft-select", {
4521
4544
  caption: [1],
@@ -4529,7 +4552,7 @@ const Oc = Lc, Fc = /* @__PURE__ */ N(class extends D {
4529
4552
  setSearchResultsPage: [32],
4530
4553
  setSearchResultsPerPage: [32]
4531
4554
  }]);
4532
- function la() {
4555
+ function ua() {
4533
4556
  if (typeof customElements > "u")
4534
4557
  return;
4535
4558
  ["searchcraft-select"].forEach((t) => {
@@ -4540,28 +4563,28 @@ function la() {
4540
4563
  }
4541
4564
  });
4542
4565
  }
4543
- const Dc = /* @__PURE__ */ N(class extends D {
4566
+ const Dc = /* @__PURE__ */ H(class extends D {
4544
4567
  constructor() {
4545
4568
  super();
4546
4569
  /**
4547
4570
  * The amount the options will increase (e.g. 20 = [20, 40, 60, 80, 100]).
4548
4571
  * The base value is defined by the `searchResultsPerPage` option in the configuration.
4549
4572
  */
4550
- d(this, "increment", 20);
4573
+ f(this, "increment", 20);
4551
4574
  // store vars
4552
- d(this, "searchTerm");
4553
- d(this, "searchResultsPage");
4554
- d(this, "searchResultsPerPage");
4555
- d(this, "searchResultsCount");
4556
- d(this, "searchResultsPagesCount");
4575
+ f(this, "searchTerm");
4576
+ f(this, "searchResultsPage");
4577
+ f(this, "searchResultsPerPage");
4578
+ f(this, "searchResultsCount");
4579
+ f(this, "searchResultsPagesCount");
4557
4580
  // local vars
4558
- d(this, "initialSearchResultsPerPage");
4581
+ f(this, "initialSearchResultsPerPage");
4559
4582
  // store functions
4560
- d(this, "setSearchResultsPerPage", () => {
4583
+ f(this, "setSearchResultsPerPage", () => {
4561
4584
  });
4562
- d(this, "setSearchResultsPage", () => {
4585
+ f(this, "setSearchResultsPage", () => {
4563
4586
  });
4564
- d(this, "unsubscribe", () => {
4587
+ f(this, "unsubscribe", () => {
4565
4588
  });
4566
4589
  this.__registerHost();
4567
4590
  }
@@ -4576,7 +4599,7 @@ const Dc = /* @__PURE__ */ N(class extends D {
4576
4599
  }
4577
4600
  render() {
4578
4601
  if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
4579
- 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) => {
4602
+ 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) => {
4580
4603
  const a = this.initialSearchResultsPerPage + Number(this.increment) * s;
4581
4604
  return {
4582
4605
  label: `${a}`,
@@ -4597,7 +4620,7 @@ const Dc = /* @__PURE__ */ N(class extends D {
4597
4620
  setSearchResultsPerPage: [32],
4598
4621
  setSearchResultsPage: [32]
4599
4622
  }]);
4600
- function Nc() {
4623
+ function Hc() {
4601
4624
  if (typeof customElements > "u")
4602
4625
  return;
4603
4626
  ["searchcraft-search-results-per-page", "searchcraft-select"].forEach((t) => {
@@ -4606,18 +4629,18 @@ function Nc() {
4606
4629
  customElements.get(t) || customElements.define(t, Dc);
4607
4630
  break;
4608
4631
  case "searchcraft-select":
4609
- customElements.get(t) || la();
4632
+ customElements.get(t) || ua();
4610
4633
  break;
4611
4634
  }
4612
4635
  });
4613
4636
  }
4614
- const Hc = Nc, Uc = la, zc = ra, jc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
4615
- `, Vc = /* @__PURE__ */ N(class extends D {
4637
+ const Nc = Hc, Uc = ua, zc = sa, jc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-ad-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-ad-no-template>p{margin:0}.searchcraft-adm-ad{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.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 */
4638
+ `, Vc = /* @__PURE__ */ H(class extends D {
4616
4639
  constructor() {
4617
4640
  super(), this.__registerHost();
4618
4641
  }
4619
4642
  render() {
4620
- return i("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, jc);
4643
+ return l("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, jc);
4621
4644
  }
4622
4645
  }, [0, "searchcraft-theme"]);
4623
4646
  function Bc() {
@@ -4631,61 +4654,61 @@ function Bc() {
4631
4654
  }
4632
4655
  });
4633
4656
  }
4634
- const Wc = Bc, Gc = sa, ua = () => {
4635
- qo(), Zo(), Ko(), sc(), lc(), fc(), dc(), gc(), yc(), Sc(), Rc(), Ec(), Pc(), _c(), Ac(), Hc(), Oc(), Uc(), zc(), Wc(), Gc();
4657
+ const Wc = Bc, Gc = aa, ha = () => {
4658
+ qo(), Zo(), Ko(), sc(), lc(), dc(), fc(), gc(), yc(), Sc(), Rc(), Ec(), Pc(), _c(), Ac(), Nc(), Oc(), Uc(), zc(), Wc(), Gc();
4636
4659
  };
4637
- globalThis.__scDefineCustomElements__ = ua;
4638
- const qc = "@searchcraft/vue-sdk", Yc = "0.10.2", ys = {
4660
+ globalThis.__scDefineCustomElements__ = ha;
4661
+ const qc = "@searchcraft/vue-sdk", Yc = "0.10.3", Cs = {
4639
4662
  name: qc,
4640
4663
  version: Yc
4641
- }, Yt = "routerLink", Cs = "navManager", Zc = "router", Qc = "aria", Qe = Symbol(), Ss = { default: Qe }, ks = (e) => (e == null ? void 0 : e.split(" ")) || [], Kc = (e, t, r = []) => {
4664
+ }, Zt = "routerLink", Ss = "navManager", Zc = "router", Qc = "aria", Ke = Symbol(), ks = { default: Ke }, ws = (e) => (e == null ? void 0 : e.split(" ")) || [], Kc = (e, t, r = []) => {
4642
4665
  var s;
4643
4666
  return [...Array.from(((s = e.value) == null ? void 0 : s.classList) || []), ...r].filter((a, o, n) => !t.has(a) && n.indexOf(a) === o);
4644
4667
  }, ye = (e, t, r = [], s = [], a, o) => {
4645
4668
  t !== void 0 && t();
4646
- const n = Ka((c, { attrs: u, slots: h, emit: l }) => {
4669
+ const n = Xa((c, { attrs: u, slots: h, emit: i }) => {
4647
4670
  var O;
4648
- const p = Xa(), g = new Set(ks(u.class)), k = Ja(), P = ((O = k == null ? void 0 : k.appContext) == null ? void 0 : O.provides[Cs]) ? en(Cs) : void 0, _ = (T) => {
4671
+ const p = Ja(), g = new Set(ws(u.class)), k = en(), P = ((O = k == null ? void 0 : k.appContext) == null ? void 0 : O.provides[Ss]) ? tn(Ss) : void 0, _ = (T) => {
4649
4672
  const { routerLink: ue } = c;
4650
- if (ue !== Qe)
4673
+ if (ue !== Ke)
4651
4674
  if (P !== void 0) {
4652
4675
  T.preventDefault();
4653
4676
  let se = { event: T };
4654
4677
  for (const we in c) {
4655
- const H = c[we];
4656
- c.hasOwnProperty(we) && we.startsWith(Zc) && H !== Qe && (se[we] = H);
4678
+ const N = c[we];
4679
+ c.hasOwnProperty(we) && we.startsWith(Zc) && N !== Ke && (se[we] = N);
4657
4680
  }
4658
4681
  P.navigate(se);
4659
4682
  } else
4660
4683
  console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
4661
4684
  };
4662
4685
  return () => {
4663
- c[a], ks(u.class).forEach((H) => {
4664
- g.add(H);
4686
+ c[a], ws(u.class).forEach((N) => {
4687
+ g.add(N);
4665
4688
  });
4666
- const T = c.onClick, ue = (H) => {
4667
- T !== void 0 && T(H), H.defaultPrevented || _(H);
4689
+ const T = c.onClick, ue = (N) => {
4690
+ T !== void 0 && T(N), N.defaultPrevented || _(N);
4668
4691
  };
4669
4692
  let se = {
4670
4693
  ref: p,
4671
4694
  class: Kc(p, g),
4672
4695
  onClick: ue
4673
4696
  };
4674
- for (const H in c) {
4675
- const ee = c[H];
4676
- (c.hasOwnProperty(H) && ee !== Qe || H.startsWith(Qc)) && (se[H] = ee);
4677
- const U = "on" + H.slice(0, 1).toUpperCase() + H.slice(1), xe = u[U];
4678
- p.value && u.hasOwnProperty(U) && "addEventListener" in p.value && p.value.addEventListener(H, xe);
4697
+ for (const N in c) {
4698
+ const ee = c[N];
4699
+ (c.hasOwnProperty(N) && ee !== Ke || N.startsWith(Qc)) && (se[N] = ee);
4700
+ const U = "on" + N.slice(0, 1).toUpperCase() + N.slice(1), xe = u[U];
4701
+ p.value && u.hasOwnProperty(U) && "addEventListener" in p.value && p.value.addEventListener(N, xe);
4679
4702
  }
4680
- return Yt in c && c[Yt] !== Qe && (se = {
4703
+ return Zt in c && c[Zt] !== Ke && (se = {
4681
4704
  ...se,
4682
- href: c[Yt]
4683
- }), tn(e, se, h.default && h.default());
4705
+ href: c[Zt]
4706
+ }), rn(e, se, h.default && h.default());
4684
4707
  };
4685
4708
  });
4686
4709
  if (typeof n != "function") {
4687
4710
  let c = [], u = {};
4688
- u.ROUTER_LINK_VALUE = Ss, r.forEach((h) => u[h] = Ss), c = s, n.name = e, n.emits = c, n.props = u;
4711
+ u.ROUTER_LINK_VALUE = ks, r.forEach((h) => u[h] = ks), c = s, n.name = e, n.emits = c, n.props = u;
4689
4712
  }
4690
4713
  return n;
4691
4714
  }, Xc = /* @__PURE__ */ ye("searchcraft-filter-panel", () => {
@@ -4728,18 +4751,18 @@ const qc = "@searchcraft/vue-sdk", Yc = "0.10.2", ys = {
4728
4751
  }, [
4729
4752
  "increment"
4730
4753
  ]), oi = /* @__PURE__ */ ye("searchcraft-theme", () => {
4731
- }), _i = ai, Ii = Xc, Ai = Jc, Mi = ti, Li = ri, Oi = si, Fi = oi, Di = ei, Ni = ni;
4732
- class Hi extends wo {
4754
+ }), _i = ai, Ii = Xc, Ai = Jc, Mi = ti, Li = ri, Oi = si, Fi = oi, Di = ei, Hi = ni;
4755
+ class Ni extends wo {
4733
4756
  constructor(t) {
4734
4757
  super(t, {
4735
- sdkName: ys.name,
4736
- sdkVersion: ys.version
4758
+ sdkName: Cs.name,
4759
+ sdkVersion: Cs.version
4737
4760
  });
4738
4761
  }
4739
4762
  }
4740
- ua();
4763
+ ha();
4741
4764
  export {
4742
- Hi as Searchcraft,
4765
+ Ni as Searchcraft,
4743
4766
  Ii as SearchcraftFilterPanel,
4744
4767
  Ai as SearchcraftInputForm,
4745
4768
  Di as SearchcraftPagination,
@@ -4747,7 +4770,7 @@ export {
4747
4770
  Li as SearchcraftPopoverForm,
4748
4771
  Oi as SearchcraftResultsInfo,
4749
4772
  _i as SearchcraftSearchResults,
4750
- Ni as SearchcraftSearchResultsPerPage,
4773
+ Hi as SearchcraftSearchResultsPerPage,
4751
4774
  Fi as SearchcraftTheme
4752
4775
  };
4753
4776
  //# sourceMappingURL=index.es.js.map