@searchcraft/react-sdk 0.10.2 → 0.10.4
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/client/index.js +869 -845
- package/dist/client/index.js.map +1 -1
- package/dist/client/themes/hologram.css +1 -1
- package/dist/client/themes/hologram.css.map +1 -1
- package/dist/server/index.d.ts +32 -10
- package/dist/server/index.js +822 -798
- package/dist/server/index.js.map +1 -1
- package/package.json +3 -3
package/dist/client/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var d = (e, t, r) =>
|
|
1
|
+
var dn = Object.defineProperty;
|
|
2
|
+
var pn = (e, t, r) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var d = (e, t, r) => pn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsx as ge } from "react/jsx-runtime";
|
|
5
5
|
import ve from "react";
|
|
6
|
-
const
|
|
6
|
+
const mn = "searchcraft-javascript-sdk", Fe = (
|
|
7
7
|
/* searchcraft-javascript-sdk */
|
|
8
8
|
{ experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
|
|
9
9
|
);
|
|
10
|
-
var
|
|
10
|
+
var gn = Object.defineProperty, vn = (e, t) => {
|
|
11
11
|
for (var r in t)
|
|
12
|
-
|
|
13
|
-
},
|
|
12
|
+
gn(e, r, { get: t[r], enumerable: !0 });
|
|
13
|
+
}, bn = "http://www.w3.org/2000/svg", yn = "http://www.w3.org/1999/xhtml", Cn = (e, t) => {
|
|
14
14
|
var r;
|
|
15
15
|
const s = t.$cmpMeta$;
|
|
16
16
|
Object.entries((r = s.$members$) != null ? r : {}).map(([o, [n]]) => {
|
|
17
17
|
if (n & 31 || n & 32) {
|
|
18
|
-
const c = e[o],
|
|
18
|
+
const c = e[o], u = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), o);
|
|
19
19
|
Object.defineProperty(e, o, {
|
|
20
20
|
get() {
|
|
21
|
-
return
|
|
21
|
+
return u.get.call(this);
|
|
22
22
|
},
|
|
23
|
-
set(
|
|
24
|
-
|
|
23
|
+
set(h) {
|
|
24
|
+
u.set.call(this, h);
|
|
25
25
|
},
|
|
26
26
|
configurable: !0,
|
|
27
27
|
enumerable: !0
|
|
28
28
|
}), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
},
|
|
31
|
+
}, Xt = /* @__PURE__ */ new WeakMap(), Sn = (e) => Xt.delete(e), Se = (e) => Xt.get(e), kn = (e, t) => {
|
|
32
32
|
const r = {
|
|
33
33
|
$flags$: 0,
|
|
34
34
|
$hostElement$: e,
|
|
@@ -36,9 +36,9 @@ var mn = Object.defineProperty, gn = (e, t) => {
|
|
|
36
36
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
37
37
|
};
|
|
38
38
|
r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
|
|
39
|
-
const s =
|
|
40
|
-
return
|
|
41
|
-
},
|
|
39
|
+
const s = Xt.set(e, r);
|
|
40
|
+
return Cn(e, r), s;
|
|
41
|
+
}, Qr = (e, t) => t in e, Ct = (e, t) => (0, console.error)(e, t), St = typeof window < "u" ? window : {}, Le = St.document || { head: {} }, F = St.HTMLElement || class {
|
|
42
42
|
}, ee = {
|
|
43
43
|
$flags$: 0,
|
|
44
44
|
$resourcesUrl$: "",
|
|
@@ -47,82 +47,82 @@ var mn = Object.defineProperty, gn = (e, t) => {
|
|
|
47
47
|
ael: (e, t, r, s) => e.addEventListener(t, r, s),
|
|
48
48
|
rel: (e, t, r, s) => e.removeEventListener(t, r, s),
|
|
49
49
|
ce: (e, t) => new CustomEvent(e, t)
|
|
50
|
-
},
|
|
51
|
-
e.push(r),
|
|
52
|
-
},
|
|
50
|
+
}, wn = Fe.shadowDom, xn = (e) => Promise.resolve(e), Yt = !1, Kr = [], ks = [], Rn = (e, t) => (r) => {
|
|
51
|
+
e.push(r), Yt || (Yt = !0, ee.$flags$ & 4 ? Jt(Zt) : ee.raf(Zt));
|
|
52
|
+
}, Xr = (e) => {
|
|
53
53
|
for (let t = 0; t < e.length; t++)
|
|
54
54
|
try {
|
|
55
55
|
e[t](performance.now());
|
|
56
56
|
} catch (r) {
|
|
57
|
-
|
|
57
|
+
Ct(r);
|
|
58
58
|
}
|
|
59
59
|
e.length = 0;
|
|
60
|
-
},
|
|
61
|
-
Kr
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
err: () =>
|
|
65
|
-
map: () =>
|
|
66
|
-
ok: () =>
|
|
67
|
-
unwrap: () =>
|
|
68
|
-
unwrapErr: () =>
|
|
60
|
+
}, Zt = () => {
|
|
61
|
+
Xr(Kr), Xr(ks), (Yt = Kr.length > 0) && ee.raf(Zt);
|
|
62
|
+
}, Jt = (e) => xn().then(e), En = /* @__PURE__ */ Rn(ks), er = (e) => (e = typeof e, e === "object" || e === "function"), Tn = {};
|
|
63
|
+
vn(Tn, {
|
|
64
|
+
err: () => ws,
|
|
65
|
+
map: () => Pn,
|
|
66
|
+
ok: () => Qt,
|
|
67
|
+
unwrap: () => $n,
|
|
68
|
+
unwrapErr: () => _n
|
|
69
69
|
});
|
|
70
|
-
var
|
|
70
|
+
var Qt = (e) => ({
|
|
71
71
|
isOk: !0,
|
|
72
72
|
isErr: !1,
|
|
73
73
|
value: e
|
|
74
|
-
}),
|
|
74
|
+
}), ws = (e) => ({
|
|
75
75
|
isOk: !1,
|
|
76
76
|
isErr: !0,
|
|
77
77
|
value: e
|
|
78
78
|
});
|
|
79
|
-
function
|
|
79
|
+
function Pn(e, t) {
|
|
80
80
|
if (e.isOk) {
|
|
81
81
|
const r = t(e.value);
|
|
82
|
-
return r instanceof Promise ? r.then((s) =>
|
|
82
|
+
return r instanceof Promise ? r.then((s) => Qt(s)) : Qt(r);
|
|
83
83
|
}
|
|
84
84
|
if (e.isErr) {
|
|
85
85
|
const r = e.value;
|
|
86
|
-
return
|
|
86
|
+
return ws(r);
|
|
87
87
|
}
|
|
88
88
|
throw "should never get here";
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var $n = (e) => {
|
|
91
91
|
if (e.isOk)
|
|
92
92
|
return e.value;
|
|
93
93
|
throw e.value;
|
|
94
|
-
},
|
|
94
|
+
}, _n = (e) => {
|
|
95
95
|
if (e.isErr)
|
|
96
96
|
return e.value;
|
|
97
97
|
throw e.value;
|
|
98
|
-
},
|
|
98
|
+
}, xs = (e) => {
|
|
99
99
|
const t = e.__childNodes || e.childNodes;
|
|
100
|
-
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" &&
|
|
100
|
+
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Rs(t, e.tagName).forEach((r) => {
|
|
101
101
|
var s;
|
|
102
|
-
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s =
|
|
102
|
+
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = In(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
|
|
103
103
|
});
|
|
104
104
|
for (const r of t)
|
|
105
|
-
r.nodeType === 1 && (r.__childNodes || r.childNodes).length &&
|
|
105
|
+
r.nodeType === 1 && (r.__childNodes || r.childNodes).length && xs(r);
|
|
106
106
|
};
|
|
107
|
-
function
|
|
107
|
+
function Rs(e, t, r) {
|
|
108
108
|
let s = 0, a = [], o;
|
|
109
109
|
for (; s < e.length; s++)
|
|
110
|
-
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...
|
|
110
|
+
o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...Rs(o.childNodes, t, r)];
|
|
111
111
|
return a;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var In = (e, t, r = !0) => {
|
|
114
114
|
const s = [];
|
|
115
115
|
for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
|
|
116
116
|
s.push(e);
|
|
117
117
|
return s;
|
|
118
|
-
},
|
|
118
|
+
}, Jr = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ke = (e, t = "") => () => {
|
|
119
119
|
}, l = (e, t, ...r) => {
|
|
120
120
|
let s = null, a = null, o = null, n = !1, c = !1;
|
|
121
|
-
const
|
|
121
|
+
const u = [], h = (p) => {
|
|
122
122
|
for (let g = 0; g < p.length; g++)
|
|
123
|
-
s = p[g], Array.isArray(s) ?
|
|
123
|
+
s = p[g], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !er(s)) && (s = String(s)), n && c ? u[u.length - 1].$text$ += s : u.push(n ? gt(null, s) : s), c = n);
|
|
124
124
|
};
|
|
125
|
-
if (
|
|
125
|
+
if (h(r), t) {
|
|
126
126
|
t.key && (a = t.key), t.name && (o = t.name);
|
|
127
127
|
{
|
|
128
128
|
const p = t.className || t.class;
|
|
@@ -132,12 +132,12 @@ var _n = (e, t, r = !0) => {
|
|
|
132
132
|
if (typeof e == "function")
|
|
133
133
|
return e(
|
|
134
134
|
t === null ? {} : t,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
u,
|
|
136
|
+
Ln
|
|
137
137
|
);
|
|
138
|
-
const i =
|
|
139
|
-
return i.$attrs$ = t,
|
|
140
|
-
},
|
|
138
|
+
const i = gt(e, null);
|
|
139
|
+
return i.$attrs$ = t, u.length > 0 && (i.$children$ = u), i.$key$ = a, i.$name$ = o, i;
|
|
140
|
+
}, gt = (e, t) => {
|
|
141
141
|
const r = {
|
|
142
142
|
$flags$: 0,
|
|
143
143
|
$tag$: e,
|
|
@@ -146,78 +146,78 @@ var _n = (e, t, r = !0) => {
|
|
|
146
146
|
$children$: null
|
|
147
147
|
};
|
|
148
148
|
return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
|
|
149
|
-
},
|
|
150
|
-
forEach: (e, t) => e.map(
|
|
151
|
-
map: (e, t) => e.map(
|
|
152
|
-
},
|
|
149
|
+
}, An = {}, Mn = (e) => e && e.$tag$ === An, Ln = {
|
|
150
|
+
forEach: (e, t) => e.map(es).forEach(t),
|
|
151
|
+
map: (e, t) => e.map(es).map(t).map(On)
|
|
152
|
+
}, es = (e) => ({
|
|
153
153
|
vattrs: e.$attrs$,
|
|
154
154
|
vchildren: e.$children$,
|
|
155
155
|
vkey: e.$key$,
|
|
156
156
|
vname: e.$name$,
|
|
157
157
|
vtag: e.$tag$,
|
|
158
158
|
vtext: e.$text$
|
|
159
|
-
}),
|
|
159
|
+
}), On = (e) => {
|
|
160
160
|
if (typeof e.vtag == "function") {
|
|
161
161
|
const r = { ...e.vattrs };
|
|
162
162
|
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), l(e.vtag, r, ...e.vchildren || []);
|
|
163
163
|
}
|
|
164
|
-
const t =
|
|
164
|
+
const t = gt(e.vtag, e.vtext);
|
|
165
165
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
|
166
|
-
},
|
|
167
|
-
const s =
|
|
166
|
+
}, Es = (e, t) => e != null && !er(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Fn = (e) => e, ye = (e, t, r) => {
|
|
167
|
+
const s = Fn(e);
|
|
168
168
|
return {
|
|
169
|
-
emit: (a) =>
|
|
169
|
+
emit: (a) => Ts(s, t, {
|
|
170
170
|
bubbles: !0,
|
|
171
171
|
composed: !0,
|
|
172
172
|
cancelable: !0,
|
|
173
173
|
detail: a
|
|
174
174
|
})
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, Ts = (e, t, r) => {
|
|
177
177
|
const s = ee.ce(t, r);
|
|
178
178
|
return e.dispatchEvent(s), s;
|
|
179
|
-
},
|
|
179
|
+
}, ft = /* @__PURE__ */ new WeakMap(), ts = (e, t, r, s, a, o) => {
|
|
180
180
|
if (r !== s) {
|
|
181
|
-
let n =
|
|
181
|
+
let n = Qr(e, t), c = t.toLowerCase();
|
|
182
182
|
if (t === "class") {
|
|
183
|
-
const
|
|
184
|
-
let i =
|
|
185
|
-
e["s-si"] ? (i.push(e["s-si"]),
|
|
183
|
+
const u = e.classList, h = rs(r);
|
|
184
|
+
let i = rs(s);
|
|
185
|
+
e["s-si"] ? (i.push(e["s-si"]), h.forEach((p) => {
|
|
186
186
|
p.startsWith(e["s-si"]) && i.push(p);
|
|
187
|
-
}), i = [...new Set(i)],
|
|
187
|
+
}), 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))));
|
|
188
188
|
} else if (t === "style") {
|
|
189
|
-
for (const
|
|
190
|
-
(!s || s[
|
|
191
|
-
for (const
|
|
192
|
-
(!r || s[
|
|
189
|
+
for (const u in r)
|
|
190
|
+
(!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
|
|
191
|
+
for (const u in s)
|
|
192
|
+
(!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
|
|
193
193
|
} else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
194
|
-
if (t[2] === "-" ? t = t.slice(3) :
|
|
195
|
-
const
|
|
196
|
-
t = t.replace(
|
|
194
|
+
if (t[2] === "-" ? t = t.slice(3) : Qr(St, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
|
|
195
|
+
const u = t.endsWith(Ps);
|
|
196
|
+
t = t.replace(Nn, ""), r && ee.rel(e, t, r, u), s && ee.ael(e, t, s, u);
|
|
197
197
|
}
|
|
198
198
|
} else {
|
|
199
|
-
const
|
|
200
|
-
if ((n ||
|
|
199
|
+
const u = er(s);
|
|
200
|
+
if ((n || u && s !== null) && !a)
|
|
201
201
|
try {
|
|
202
202
|
if (e.tagName.includes("-"))
|
|
203
203
|
e[t] !== s && (e[t] = s);
|
|
204
204
|
else {
|
|
205
|
-
const
|
|
206
|
-
t === "list" ? n = !1 : (r == null || e[t] !=
|
|
205
|
+
const h = s ?? "";
|
|
206
|
+
t === "list" ? n = !1 : (r == null || e[t] != h) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = h : e.setAttribute(t, h));
|
|
207
207
|
}
|
|
208
208
|
} catch {
|
|
209
209
|
}
|
|
210
|
-
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !
|
|
210
|
+
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));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, Dn = /\s/, rs = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Dn) : []), Ps = "Capture", Nn = new RegExp(Ps + "$"), $s = (e, t, r) => {
|
|
214
214
|
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || {}, o = t.$attrs$ || {};
|
|
215
|
-
for (const n of
|
|
216
|
-
n in o ||
|
|
217
|
-
for (const n of
|
|
218
|
-
|
|
215
|
+
for (const n of ss(Object.keys(a)))
|
|
216
|
+
n in o || ts(s, n, a[n], void 0, r, t.$flags$);
|
|
217
|
+
for (const n of ss(Object.keys(o)))
|
|
218
|
+
ts(s, n, a[n], o[n], r, t.$flags$);
|
|
219
219
|
};
|
|
220
|
-
function
|
|
220
|
+
function ss(e) {
|
|
221
221
|
return e.includes("ref") ? (
|
|
222
222
|
// we need to sort these to ensure that `'ref'` is the last attr
|
|
223
223
|
[...e.filter((t) => t !== "ref"), "ref"]
|
|
@@ -226,11 +226,11 @@ function rs(e) {
|
|
|
226
226
|
e
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var Kt, tr, vt = !1, bt = !1, rr = !1, te = !1, yt = (e, t, r) => {
|
|
230
230
|
var s;
|
|
231
231
|
const a = t.$children$[r];
|
|
232
|
-
let o = 0, n, c,
|
|
233
|
-
if (
|
|
232
|
+
let o = 0, n, c, u;
|
|
233
|
+
if (vt || (rr = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
|
|
234
234
|
// slot element has fallback content
|
|
235
235
|
// still create an element that "mocks" the slot element
|
|
236
236
|
2
|
|
@@ -245,82 +245,82 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
245
245
|
n = a.$elm$ = Le.createTextNode("");
|
|
246
246
|
else {
|
|
247
247
|
if (te || (te = a.$tag$ === "svg"), n = a.$elm$ = Le.createElementNS(
|
|
248
|
-
te ?
|
|
249
|
-
!
|
|
250
|
-
), te && a.$tag$ === "foreignObject" && (te = !1),
|
|
248
|
+
te ? bn : yn,
|
|
249
|
+
!vt && Fe.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
|
|
250
|
+
), te && a.$tag$ === "foreignObject" && (te = !1), $s(null, a, te), a.$children$)
|
|
251
251
|
for (o = 0; o < a.$children$.length; ++o)
|
|
252
|
-
c =
|
|
252
|
+
c = yt(e, a, o), c && n.appendChild(c);
|
|
253
253
|
a.$tag$ === "svg" ? te = !1 : n.tagName === "foreignObject" && (te = !0);
|
|
254
254
|
}
|
|
255
|
-
return n["s-hn"] =
|
|
256
|
-
},
|
|
255
|
+
return n["s-hn"] = tr, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Kt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === a.$tag$ && e.$elm$ && Xe(e.$elm$, !1)), n;
|
|
256
|
+
}, Xe = (e, t) => {
|
|
257
257
|
ee.$flags$ |= 1;
|
|
258
258
|
const r = Array.from(e.__childNodes || e.childNodes);
|
|
259
|
-
e["s-sr"] &&
|
|
259
|
+
e["s-sr"] && Fe.experimentalSlotFixes;
|
|
260
260
|
for (let s = r.length - 1; s >= 0; s--) {
|
|
261
261
|
const a = r[s];
|
|
262
|
-
a["s-hn"] !==
|
|
262
|
+
a["s-hn"] !== tr && a["s-ol"] && (Ce(Je(a).parentNode, a, Je(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, rr = !0), t && Xe(a, t);
|
|
263
263
|
}
|
|
264
264
|
ee.$flags$ &= -2;
|
|
265
|
-
},
|
|
265
|
+
}, _s = (e, t, r, s, a, o) => {
|
|
266
266
|
let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
267
267
|
for (; a <= o; ++a)
|
|
268
|
-
s[a] && (c =
|
|
269
|
-
},
|
|
268
|
+
s[a] && (c = yt(null, r, a), c && (s[a].$elm$ = c, Ce(n, c, Je(t))));
|
|
269
|
+
}, Is = (e, t, r) => {
|
|
270
270
|
for (let s = t; s <= r; ++s) {
|
|
271
271
|
const a = e[s];
|
|
272
272
|
if (a) {
|
|
273
273
|
const o = a.$elm$;
|
|
274
|
-
o && (
|
|
274
|
+
o && (bt = !0, o["s-ol"] ? o["s-ol"].remove() : Xe(o, !0), o.remove());
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
},
|
|
278
|
-
let o = 0, n = 0, c = 0,
|
|
279
|
-
for (; o <=
|
|
277
|
+
}, Hn = (e, t, r, s, a = !1) => {
|
|
278
|
+
let o = 0, n = 0, c = 0, u = 0, h = t.length - 1, i = t[0], p = t[h], g = s.length - 1, b = s[0], v = s[g], T, _;
|
|
279
|
+
for (; o <= h && n <= g; )
|
|
280
280
|
if (i == null)
|
|
281
281
|
i = t[++o];
|
|
282
282
|
else if (p == null)
|
|
283
|
-
p = t[--
|
|
283
|
+
p = t[--h];
|
|
284
284
|
else if (b == null)
|
|
285
285
|
b = s[++n];
|
|
286
286
|
else if (v == null)
|
|
287
287
|
v = s[--g];
|
|
288
|
-
else if (
|
|
288
|
+
else if (dt(i, b, a))
|
|
289
289
|
Ae(i, b, a), i = t[++o], b = s[++n];
|
|
290
|
-
else if (
|
|
291
|
-
Ae(p, v, a), p = t[--
|
|
292
|
-
else if (
|
|
293
|
-
(i.$tag$ === "slot" || v.$tag$ === "slot") &&
|
|
294
|
-
else if (
|
|
295
|
-
(i.$tag$ === "slot" || v.$tag$ === "slot") &&
|
|
290
|
+
else if (dt(p, v, a))
|
|
291
|
+
Ae(p, v, a), p = t[--h], v = s[--g];
|
|
292
|
+
else if (dt(i, v, a))
|
|
293
|
+
(i.$tag$ === "slot" || v.$tag$ === "slot") && Xe(i.$elm$.parentNode, !1), Ae(i, v, a), Ce(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], v = s[--g];
|
|
294
|
+
else if (dt(p, b, a))
|
|
295
|
+
(i.$tag$ === "slot" || v.$tag$ === "slot") && Xe(p.$elm$.parentNode, !1), Ae(p, b, a), Ce(e, p.$elm$, i.$elm$), p = t[--h], b = s[++n];
|
|
296
296
|
else {
|
|
297
|
-
for (c = -1,
|
|
298
|
-
if (t[
|
|
299
|
-
c =
|
|
297
|
+
for (c = -1, u = o; u <= h; ++u)
|
|
298
|
+
if (t[u] && t[u].$key$ !== null && t[u].$key$ === b.$key$) {
|
|
299
|
+
c = u;
|
|
300
300
|
break;
|
|
301
301
|
}
|
|
302
|
-
c >= 0 ? (_ = t[c], _.$tag$ !== b.$tag$ ? T =
|
|
303
|
-
|
|
302
|
+
c >= 0 ? (_ = t[c], _.$tag$ !== b.$tag$ ? T = yt(t && t[n], r, c) : (Ae(_, b, a), t[c] = void 0, T = _.$elm$), b = s[++n]) : (T = yt(t && t[n], r, n), b = s[++n]), T && Ce(
|
|
303
|
+
Je(i.$elm$).parentNode,
|
|
304
304
|
T,
|
|
305
|
-
|
|
305
|
+
Je(i.$elm$)
|
|
306
306
|
);
|
|
307
307
|
}
|
|
308
|
-
o >
|
|
308
|
+
o > h ? _s(
|
|
309
309
|
e,
|
|
310
310
|
s[g + 1] == null ? null : s[g + 1].$elm$,
|
|
311
311
|
r,
|
|
312
312
|
s,
|
|
313
313
|
n,
|
|
314
314
|
g
|
|
315
|
-
) : n > g &&
|
|
316
|
-
},
|
|
315
|
+
) : n > g && Is(t, o, h);
|
|
316
|
+
}, dt = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, Je = (e) => e && e["s-ol"] || e, Ae = (e, t, r = !1) => {
|
|
317
317
|
const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
|
|
318
|
-
let
|
|
319
|
-
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !
|
|
318
|
+
let u;
|
|
319
|
+
c === null ? (te = n === "svg" ? !0 : n === "foreignObject" ? !1 : te, n === "slot" && !vt || $s(e, t, te), a !== null && o !== null ? Hn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), _s(s, null, t, o, 0, o.length - 1)) : (
|
|
320
320
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
321
|
-
!r &&
|
|
322
|
-
), te && n === "svg" && (te = !1)) : (
|
|
323
|
-
}, fe = [],
|
|
321
|
+
!r && Fe.updatable && a !== null && Is(a, 0, a.length - 1)
|
|
322
|
+
), te && n === "svg" && (te = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
|
|
323
|
+
}, fe = [], As = (e) => {
|
|
324
324
|
let t, r, s;
|
|
325
325
|
const a = e.__childNodes || e.childNodes;
|
|
326
326
|
for (const o of a) {
|
|
@@ -329,30 +329,30 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
329
329
|
const n = o["s-sn"];
|
|
330
330
|
for (s = r.length - 1; s >= 0; s--)
|
|
331
331
|
if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
|
|
332
|
-
if (
|
|
333
|
-
let c = fe.find((
|
|
334
|
-
|
|
332
|
+
if (Jr(t, n)) {
|
|
333
|
+
let c = fe.find((u) => u.$nodeToRelocate$ === t);
|
|
334
|
+
bt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], fe.push({
|
|
335
335
|
$slotRefNode$: o,
|
|
336
336
|
$nodeToRelocate$: t
|
|
337
|
-
})), t["s-sr"] && fe.map((
|
|
338
|
-
|
|
337
|
+
})), t["s-sr"] && fe.map((u) => {
|
|
338
|
+
Jr(u.$nodeToRelocate$, t["s-sn"]) && (c = fe.find((h) => h.$nodeToRelocate$ === t), c && !u.$slotRefNode$ && (u.$slotRefNode$ = c.$slotRefNode$));
|
|
339
339
|
});
|
|
340
340
|
} else fe.some((c) => c.$nodeToRelocate$ === t) || fe.push({
|
|
341
341
|
$nodeToRelocate$: t
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
o.nodeType === 1 &&
|
|
344
|
+
o.nodeType === 1 && As(o);
|
|
345
345
|
}
|
|
346
|
-
}, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r),
|
|
346
|
+
}, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Un = (e, t, r = !1) => {
|
|
347
347
|
var s, a, o, n;
|
|
348
|
-
const c = e.$hostElement$,
|
|
349
|
-
if (
|
|
350
|
-
for (const i of Object.keys(
|
|
351
|
-
c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (
|
|
352
|
-
|
|
348
|
+
const c = e.$hostElement$, u = e.$vnode$ || gt(null, null), h = Mn(t) ? t : l(null, null, t);
|
|
349
|
+
if (tr = c.tagName, r && h.$attrs$)
|
|
350
|
+
for (const i of Object.keys(h.$attrs$))
|
|
351
|
+
c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (h.$attrs$[i] = c[i]);
|
|
352
|
+
h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = u.$elm$ = c, vt = wn, Kt = c["s-cr"], bt = !1, Ae(u, h, r);
|
|
353
353
|
{
|
|
354
|
-
if (ee.$flags$ |= 1,
|
|
355
|
-
|
|
354
|
+
if (ee.$flags$ |= 1, rr) {
|
|
355
|
+
As(h.$elm$);
|
|
356
356
|
for (const i of fe) {
|
|
357
357
|
const p = i.$nodeToRelocate$;
|
|
358
358
|
if (!p["s-ol"]) {
|
|
@@ -386,10 +386,10 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
386
386
|
p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
|
|
389
|
+
bt && xs(h.$elm$), ee.$flags$ &= -2, fe.length = 0;
|
|
390
390
|
}
|
|
391
|
-
|
|
392
|
-
},
|
|
391
|
+
Kt = void 0;
|
|
392
|
+
}, Ms = (e, t) => {
|
|
393
393
|
if (t && !e.$onRenderResolve$ && t["s-p"]) {
|
|
394
394
|
const r = t["s-p"].push(
|
|
395
395
|
new Promise(
|
|
@@ -399,84 +399,84 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
399
399
|
)
|
|
400
400
|
);
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, sr = (e, t) => {
|
|
403
403
|
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
404
404
|
e.$flags$ |= 512;
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
const r = e.$hostElement$, s =
|
|
407
|
+
return Ms(e, e.$ancestorComponent$), En(() => zn(e, t));
|
|
408
|
+
}, zn = (e, t) => {
|
|
409
|
+
const r = e.$hostElement$, s = Ke("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
|
|
410
410
|
if (!a)
|
|
411
411
|
throw new Error(
|
|
412
412
|
`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
413
413
|
);
|
|
414
414
|
let o;
|
|
415
|
-
return s(),
|
|
416
|
-
},
|
|
415
|
+
return s(), jn(o, () => Vn(e, a, t));
|
|
416
|
+
}, jn = (e, t) => Bn(e) ? e.then(t).catch((r) => {
|
|
417
417
|
console.error(r), t();
|
|
418
|
-
}) : t(),
|
|
418
|
+
}) : t(), Bn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Vn = async (e, t, r) => {
|
|
419
419
|
var s;
|
|
420
|
-
const a = e.$hostElement$, o =
|
|
421
|
-
|
|
420
|
+
const a = e.$hostElement$, o = Ke("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Ke("render", e.$cmpMeta$.$tagName$);
|
|
421
|
+
Wn(e, t, a, r), n && (n.map((u) => u()), a["s-rc"] = void 0), c(), o();
|
|
422
422
|
{
|
|
423
|
-
const
|
|
424
|
-
|
|
423
|
+
const u = (s = a["s-p"]) != null ? s : [], h = () => Gn(e);
|
|
424
|
+
u.length === 0 ? h() : (Promise.all(u).then(h), e.$flags$ |= 4, u.length = 0);
|
|
425
425
|
}
|
|
426
|
-
},
|
|
426
|
+
}, Wn = (e, t, r, s) => {
|
|
427
427
|
try {
|
|
428
|
-
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2,
|
|
428
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Un(e, t, s);
|
|
429
429
|
} catch (a) {
|
|
430
|
-
|
|
430
|
+
Ct(a, e.$hostElement$);
|
|
431
431
|
}
|
|
432
432
|
return null;
|
|
433
|
-
}, Wn = (e) => {
|
|
434
|
-
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Qe("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
-
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ms(r), qn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Gn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Xt(() => rr(e, !1)), e.$flags$ &= -517;
|
|
436
433
|
}, Gn = (e) => {
|
|
437
|
-
|
|
438
|
-
|
|
434
|
+
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
|
|
435
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ls(r), Yn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || qn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Jt(() => sr(e, !1)), e.$flags$ &= -517;
|
|
436
|
+
}, qn = (e) => {
|
|
437
|
+
Ls(Le.documentElement), Jt(() => Ts(St, "appload", { detail: { namespace: mn } }));
|
|
438
|
+
}, Yn = (e, t, r, s) => {
|
|
439
439
|
if (e && e[t])
|
|
440
440
|
try {
|
|
441
441
|
return e[t](r);
|
|
442
442
|
} catch (a) {
|
|
443
|
-
|
|
443
|
+
Ct(a, s);
|
|
444
444
|
}
|
|
445
|
-
},
|
|
445
|
+
}, Ls = (e) => {
|
|
446
446
|
var t;
|
|
447
|
-
return e.classList.add((t =
|
|
448
|
-
},
|
|
449
|
-
const a = Se(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$,
|
|
450
|
-
r =
|
|
451
|
-
const
|
|
452
|
-
if (r !== n && !
|
|
447
|
+
return e.classList.add((t = Fe.hydratedSelectorName) != null ? t : "hydrated");
|
|
448
|
+
}, Zn = (e, t) => Se(e).$instanceValues$.get(t), as = (e, t, r, s) => {
|
|
449
|
+
const a = Se(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, u = o;
|
|
450
|
+
r = Es(r, s.$members$[t][0]);
|
|
451
|
+
const h = Number.isNaN(n) && Number.isNaN(r);
|
|
452
|
+
if (r !== n && !h) {
|
|
453
453
|
a.$instanceValues$.set(t, r);
|
|
454
454
|
{
|
|
455
455
|
if (s.$watchers$ && c & 128) {
|
|
456
456
|
const p = s.$watchers$[t];
|
|
457
457
|
p && p.map((g) => {
|
|
458
458
|
try {
|
|
459
|
-
|
|
459
|
+
u[g](r, n, t);
|
|
460
460
|
} catch (b) {
|
|
461
|
-
|
|
461
|
+
Ct(b, o);
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
(c & 18) === 2 &&
|
|
465
|
+
(c & 18) === 2 && sr(a, !1);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
},
|
|
468
|
+
}, Qn = (e, t, r) => {
|
|
469
469
|
var s, a;
|
|
470
470
|
const o = e.prototype;
|
|
471
471
|
if (t.$members$ || t.$watchers$ || e.watchers) {
|
|
472
472
|
e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
|
|
473
473
|
const n = Object.entries((s = t.$members$) != null ? s : {});
|
|
474
|
-
n.map(([c, [
|
|
475
|
-
if (
|
|
476
|
-
const { get:
|
|
477
|
-
|
|
474
|
+
n.map(([c, [u]]) => {
|
|
475
|
+
if (u & 31 || u & 32) {
|
|
476
|
+
const { get: h, set: i } = Object.getOwnPropertyDescriptor(o, c) || {};
|
|
477
|
+
h && (t.$members$[c][0] |= 2048), i && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
|
|
478
478
|
get() {
|
|
479
|
-
return
|
|
479
|
+
return h ? h.apply(this) : Zn(this, c);
|
|
480
480
|
},
|
|
481
481
|
configurable: !0,
|
|
482
482
|
enumerable: !0
|
|
@@ -484,12 +484,12 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
484
484
|
set(p) {
|
|
485
485
|
const g = Se(this);
|
|
486
486
|
if (i) {
|
|
487
|
-
const b =
|
|
488
|
-
typeof b > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && b && g.$instanceValues$.set(c, b), i.apply(this, [
|
|
487
|
+
const b = u & 32 ? this[c] : g.$hostElement$[c];
|
|
488
|
+
typeof b > "u" && g.$instanceValues$.get(c) ? p = g.$instanceValues$.get(c) : !g.$instanceValues$.get(c) && b && g.$instanceValues$.set(c, b), i.apply(this, [Es(p, u)]), p = u & 32 ? this[c] : g.$hostElement$[c], as(this, c, p, t);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
491
|
{
|
|
492
|
-
|
|
492
|
+
as(this, c, p, t);
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -498,20 +498,20 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
498
498
|
});
|
|
499
499
|
{
|
|
500
500
|
const c = /* @__PURE__ */ new Map();
|
|
501
|
-
o.attributeChangedCallback = function(
|
|
501
|
+
o.attributeChangedCallback = function(u, h, i) {
|
|
502
502
|
ee.jmp(() => {
|
|
503
503
|
var p;
|
|
504
|
-
const g = c.get(
|
|
505
|
-
if (!(this.hasOwnProperty(g) &&
|
|
504
|
+
const g = c.get(u);
|
|
505
|
+
if (!(this.hasOwnProperty(g) && Fe.lazyLoad)) {
|
|
506
506
|
if (o.hasOwnProperty(g) && typeof this[g] == "number" && // cast type to number to avoid TS compiler issues
|
|
507
507
|
this[g] == i)
|
|
508
508
|
return;
|
|
509
509
|
if (g == null) {
|
|
510
510
|
const v = Se(this), T = v == null ? void 0 : v.$flags$;
|
|
511
|
-
if (T && !(T & 8) && T & 128 && i !==
|
|
512
|
-
const N = this, I = (p = t.$watchers$) == null ? void 0 : p[
|
|
513
|
-
I == null || I.forEach((
|
|
514
|
-
N[
|
|
511
|
+
if (T && !(T & 8) && T & 128 && i !== h) {
|
|
512
|
+
const N = this, I = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
513
|
+
I == null || I.forEach((Ne) => {
|
|
514
|
+
N[Ne] != null && N[Ne].call(N, i, h, u);
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
return;
|
|
@@ -524,18 +524,18 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
524
524
|
/* @__PURE__ */ new Set([
|
|
525
525
|
...Object.keys((a = t.$watchers$) != null ? a : {}),
|
|
526
526
|
...n.filter(
|
|
527
|
-
([
|
|
527
|
+
([u, h]) => h[0] & 15
|
|
528
528
|
/* HasAttribute */
|
|
529
|
-
).map(([
|
|
530
|
-
const i =
|
|
531
|
-
return c.set(i,
|
|
529
|
+
).map(([u, h]) => {
|
|
530
|
+
const i = h[1] || u;
|
|
531
|
+
return c.set(i, u), i;
|
|
532
532
|
})
|
|
533
533
|
])
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
return e;
|
|
538
|
-
},
|
|
538
|
+
}, Kn = async (e, t, r, s) => {
|
|
539
539
|
if (!(t.$flags$ & 32)) {
|
|
540
540
|
t.$flags$ |= 32;
|
|
541
541
|
{
|
|
@@ -546,22 +546,22 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
546
546
|
);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
const a = t.$ancestorComponent$, o = () =>
|
|
549
|
+
const a = t.$ancestorComponent$, o = () => sr(t, !0);
|
|
550
550
|
a && a["s-rc"] ? a["s-rc"].push(o) : o();
|
|
551
|
-
},
|
|
552
|
-
},
|
|
551
|
+
}, Xn = (e, t) => {
|
|
552
|
+
}, Jn = (e) => {
|
|
553
553
|
if (!(ee.$flags$ & 1)) {
|
|
554
|
-
const t = Se(e), r = t.$cmpMeta$, s =
|
|
554
|
+
const t = Se(e), r = t.$cmpMeta$, s = Ke("connectedCallback", r.$tagName$);
|
|
555
555
|
if (t.$flags$ & 1)
|
|
556
|
-
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() =>
|
|
556
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Xn());
|
|
557
557
|
else {
|
|
558
558
|
t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
559
|
-
r.$flags$ & 12 &&
|
|
559
|
+
r.$flags$ & 12 && eo(e);
|
|
560
560
|
{
|
|
561
561
|
let a = e;
|
|
562
562
|
for (; a = a.parentNode || a.host; )
|
|
563
563
|
if (a["s-p"]) {
|
|
564
|
-
|
|
564
|
+
Ms(t, t.$ancestorComponent$ = a);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -570,17 +570,17 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
570
570
|
const n = e[a];
|
|
571
571
|
delete e[a], e[a] = n;
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), Kn(e, t);
|
|
574
574
|
}
|
|
575
575
|
s();
|
|
576
576
|
}
|
|
577
|
-
},
|
|
577
|
+
}, eo = (e) => {
|
|
578
578
|
const t = e["s-cr"] = Le.createComment(
|
|
579
579
|
""
|
|
580
580
|
);
|
|
581
581
|
t["s-cn"] = !0, Ce(e, t, e.firstChild);
|
|
582
|
-
},
|
|
583
|
-
ee.$flags$ & 1 || Se(e),
|
|
582
|
+
}, to = async (e) => {
|
|
583
|
+
ee.$flags$ & 1 || Se(e), ft.has(e) && ft.delete(e), e.shadowRoot && ft.has(e.shadowRoot) && ft.delete(e.shadowRoot);
|
|
584
584
|
}, D = (e, t) => {
|
|
585
585
|
const r = {
|
|
586
586
|
$flags$: t[0],
|
|
@@ -591,24 +591,24 @@ var Qt, er, mt = !1, gt = !1, tr = !1, te = !1, vt = (e, t, r) => {
|
|
|
591
591
|
return Object.assign(e.prototype, {
|
|
592
592
|
__hasHostListenerAttached: !1,
|
|
593
593
|
__registerHost() {
|
|
594
|
-
|
|
594
|
+
kn(this, r);
|
|
595
595
|
},
|
|
596
596
|
connectedCallback() {
|
|
597
|
-
this.__hasHostListenerAttached || (Se(this), this.__hasHostListenerAttached = !0),
|
|
597
|
+
this.__hasHostListenerAttached || (Se(this), this.__hasHostListenerAttached = !0), Jn(this), s && s.call(this);
|
|
598
598
|
},
|
|
599
599
|
disconnectedCallback() {
|
|
600
|
-
|
|
600
|
+
to(this), a && a.call(this), ee.raf(() => {
|
|
601
601
|
var o;
|
|
602
602
|
const n = Se(this);
|
|
603
|
-
((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected &&
|
|
603
|
+
((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && Sn(this);
|
|
604
604
|
});
|
|
605
605
|
},
|
|
606
606
|
__attachShadow() {
|
|
607
607
|
this.shadowRoot = this;
|
|
608
608
|
}
|
|
609
|
-
}), e.is = r.$tagName$,
|
|
610
|
-
},
|
|
611
|
-
class
|
|
609
|
+
}), e.is = r.$tagName$, Qn(e, r);
|
|
610
|
+
}, ro = (e, t) => t, so = Object.defineProperty, ao = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => ao(e, typeof t != "symbol" ? t + "" : t, r), he = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(he || {});
|
|
611
|
+
class no {
|
|
612
612
|
constructor(t) {
|
|
613
613
|
A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
|
|
614
614
|
}
|
|
@@ -646,27 +646,27 @@ class ao {
|
|
|
646
646
|
}
|
|
647
647
|
function de(e, t, r, s) {
|
|
648
648
|
return new (r || (r = Promise))(function(a, o) {
|
|
649
|
-
function n(
|
|
649
|
+
function n(h) {
|
|
650
650
|
try {
|
|
651
|
-
|
|
651
|
+
u(s.next(h));
|
|
652
652
|
} catch (i) {
|
|
653
653
|
o(i);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function c(
|
|
656
|
+
function c(h) {
|
|
657
657
|
try {
|
|
658
|
-
|
|
658
|
+
u(s.throw(h));
|
|
659
659
|
} catch (i) {
|
|
660
660
|
o(i);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function h
|
|
663
|
+
function u(h) {
|
|
664
664
|
var i;
|
|
665
|
-
|
|
665
|
+
h.done ? a(h.value) : (i = h.value, i instanceof r ? i : new r(function(p) {
|
|
666
666
|
p(i);
|
|
667
667
|
})).then(n, c);
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
u((s = s.apply(e, [])).next());
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
function pe(e, t) {
|
|
@@ -677,8 +677,8 @@ function pe(e, t) {
|
|
|
677
677
|
return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
678
678
|
return this;
|
|
679
679
|
}), o;
|
|
680
|
-
function c(
|
|
681
|
-
return function(
|
|
680
|
+
function c(u) {
|
|
681
|
+
return function(h) {
|
|
682
682
|
return function(i) {
|
|
683
683
|
if (r) throw new TypeError("Generator is already executing.");
|
|
684
684
|
for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
|
|
@@ -724,103 +724,103 @@ function pe(e, t) {
|
|
|
724
724
|
}
|
|
725
725
|
if (5 & i[0]) throw i[1];
|
|
726
726
|
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
727
|
-
}([
|
|
727
|
+
}([u, h]);
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
var me = { exclude: [] },
|
|
732
|
-
typeof window < "u" && (
|
|
733
|
-
},
|
|
734
|
-
return Object.fromEntries(Object.entries(
|
|
731
|
+
var me = { exclude: [] }, Os = {}, oo = { timeout: "true" }, ne = function(e, t) {
|
|
732
|
+
typeof window < "u" && (Os[e] = t);
|
|
733
|
+
}, co = function() {
|
|
734
|
+
return Object.fromEntries(Object.entries(Os).filter(function(e) {
|
|
735
735
|
var t, r = e[0];
|
|
736
736
|
return !(!((t = me == null ? void 0 : me.exclude) === null || t === void 0) && t.includes(r));
|
|
737
737
|
}).map(function(e) {
|
|
738
738
|
return [e[0], (0, e[1])()];
|
|
739
739
|
}));
|
|
740
740
|
};
|
|
741
|
-
function
|
|
741
|
+
function pt(e) {
|
|
742
742
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
743
743
|
}
|
|
744
744
|
var W = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
745
|
-
function
|
|
745
|
+
function se(e, t) {
|
|
746
746
|
return e << t | e >>> 32 - t;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function ar(e, t) {
|
|
749
749
|
var r;
|
|
750
750
|
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");
|
|
751
751
|
var s = new Uint32Array([t, t, t, t]);
|
|
752
752
|
(function(o, n) {
|
|
753
|
-
for (var c = o.byteLength / 16 | 0,
|
|
754
|
-
var i =
|
|
755
|
-
i[0] = Math.imul(i[0], W[0]), i[0] =
|
|
753
|
+
for (var c = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
|
|
754
|
+
var i = u.subarray(4 * h, 4 * (h + 1));
|
|
755
|
+
i[0] = Math.imul(i[0], W[0]), i[0] = se(i[0], 15), i[0] = Math.imul(i[0], W[1]), n[0] = n[0] ^ i[0], n[0] = se(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, i[1] = Math.imul(i[1], W[1]), i[1] = se(i[1], 16), i[1] = Math.imul(i[1], W[2]), n[1] = n[1] ^ i[1], n[1] = se(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, i[2] = Math.imul(i[2], W[2]), i[2] = se(i[2], 17), i[2] = Math.imul(i[2], W[3]), n[2] = n[2] ^ i[2], n[2] = se(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, i[3] = Math.imul(i[3], W[3]), i[3] = se(i[3], 18), i[3] = Math.imul(i[3], W[0]), n[3] = n[3] ^ i[3], n[3] = se(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
|
|
756
756
|
}
|
|
757
757
|
})(e, s), function(o, n) {
|
|
758
|
-
var c = o.byteLength / 16 | 0,
|
|
759
|
-
switch (
|
|
758
|
+
var c = o.byteLength / 16 | 0, u = o.byteLength % 16, h = new Uint32Array(4), i = new Uint8Array(o, 16 * c, u);
|
|
759
|
+
switch (u) {
|
|
760
760
|
case 15:
|
|
761
|
-
|
|
761
|
+
h[3] = h[3] ^ i[14] << 16;
|
|
762
762
|
case 14:
|
|
763
|
-
|
|
763
|
+
h[3] = h[3] ^ i[13] << 8;
|
|
764
764
|
case 13:
|
|
765
|
-
|
|
765
|
+
h[3] = h[3] ^ i[12] << 0, h[3] = Math.imul(h[3], W[3]), h[3] = se(h[3], 18), h[3] = Math.imul(h[3], W[0]), n[3] = n[3] ^ h[3];
|
|
766
766
|
case 12:
|
|
767
|
-
|
|
767
|
+
h[2] = h[2] ^ i[11] << 24;
|
|
768
768
|
case 11:
|
|
769
|
-
|
|
769
|
+
h[2] = h[2] ^ i[10] << 16;
|
|
770
770
|
case 10:
|
|
771
|
-
|
|
771
|
+
h[2] = h[2] ^ i[9] << 8;
|
|
772
772
|
case 9:
|
|
773
|
-
|
|
773
|
+
h[2] = h[2] ^ i[8] << 0, h[2] = Math.imul(h[2], W[2]), h[2] = se(h[2], 17), h[2] = Math.imul(h[2], W[3]), n[2] = n[2] ^ h[2];
|
|
774
774
|
case 8:
|
|
775
|
-
|
|
775
|
+
h[1] = h[1] ^ i[7] << 24;
|
|
776
776
|
case 7:
|
|
777
|
-
|
|
777
|
+
h[1] = h[1] ^ i[6] << 16;
|
|
778
778
|
case 6:
|
|
779
|
-
|
|
779
|
+
h[1] = h[1] ^ i[5] << 8;
|
|
780
780
|
case 5:
|
|
781
|
-
|
|
781
|
+
h[1] = h[1] ^ i[4] << 0, h[1] = Math.imul(h[1], W[1]), h[1] = se(h[1], 16), h[1] = Math.imul(h[1], W[2]), n[1] = n[1] ^ h[1];
|
|
782
782
|
case 4:
|
|
783
|
-
|
|
783
|
+
h[0] = h[0] ^ i[3] << 24;
|
|
784
784
|
case 3:
|
|
785
|
-
|
|
785
|
+
h[0] = h[0] ^ i[2] << 16;
|
|
786
786
|
case 2:
|
|
787
|
-
|
|
787
|
+
h[0] = h[0] ^ i[1] << 8;
|
|
788
788
|
case 1:
|
|
789
|
-
|
|
789
|
+
h[0] = h[0] ^ i[0] << 0, h[0] = Math.imul(h[0], W[0]), h[0] = se(h[0], 15), h[0] = Math.imul(h[0], W[1]), n[0] = n[0] ^ h[0];
|
|
790
790
|
}
|
|
791
791
|
}(e, s), function(o, n) {
|
|
792
|
-
n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] =
|
|
792
|
+
n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = pt(n[0]), n[1] = pt(n[1]), n[2] = pt(n[2]), n[3] = pt(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;
|
|
793
793
|
}(e, s);
|
|
794
794
|
var a = new Uint8Array(s.buffer);
|
|
795
795
|
return Array.from(a).map(function(o) {
|
|
796
796
|
return o.toString(16).padStart(2, "0");
|
|
797
797
|
}).join("");
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function io(e, t) {
|
|
800
800
|
return new Promise(function(r) {
|
|
801
801
|
setTimeout(function() {
|
|
802
802
|
return r(t);
|
|
803
803
|
}, e);
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function lo(e, t, r) {
|
|
807
807
|
return Promise.all(e.map(function(s) {
|
|
808
|
-
return Promise.race([s,
|
|
808
|
+
return Promise.race([s, io(t, r)]);
|
|
809
809
|
}));
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function uo() {
|
|
812
812
|
return de(this, void 0, void 0, function() {
|
|
813
813
|
var e, t, r, s, a;
|
|
814
814
|
return pe(this, function(o) {
|
|
815
815
|
switch (o.label) {
|
|
816
816
|
case 0:
|
|
817
|
-
return o.trys.push([0, 2, , 3]), e =
|
|
817
|
+
return o.trys.push([0, 2, , 3]), e = co(), t = Object.keys(e), [4, lo(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, oo)];
|
|
818
818
|
case 1:
|
|
819
819
|
return r = o.sent(), s = r.filter(function(n) {
|
|
820
820
|
return n !== void 0;
|
|
821
821
|
}), a = {}, s.forEach(function(n, c) {
|
|
822
822
|
a[t[c]] = n;
|
|
823
|
-
}), [2,
|
|
823
|
+
}), [2, Fs(a, me.exclude || [])];
|
|
824
824
|
case 2:
|
|
825
825
|
throw o.sent();
|
|
826
826
|
case 3:
|
|
@@ -829,14 +829,14 @@ function lo() {
|
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Fs(e, t) {
|
|
833
833
|
var r = {}, s = function(o) {
|
|
834
834
|
if (e.hasOwnProperty(o)) {
|
|
835
835
|
var n = e[o];
|
|
836
836
|
if (typeof n != "object" || Array.isArray(n)) t.includes(o) || (r[o] = n);
|
|
837
837
|
else {
|
|
838
|
-
var c =
|
|
839
|
-
return
|
|
838
|
+
var c = Fs(n, t.map(function(u) {
|
|
839
|
+
return u.startsWith(o + ".") ? u.slice(o.length + 1) : u;
|
|
840
840
|
}));
|
|
841
841
|
Object.keys(c).length > 0 && (r[o] = c);
|
|
842
842
|
}
|
|
@@ -845,15 +845,15 @@ function Os(e, t) {
|
|
|
845
845
|
for (var a in e) s(a);
|
|
846
846
|
return r;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function ho(e) {
|
|
849
849
|
return de(this, void 0, void 0, function() {
|
|
850
850
|
var t, r;
|
|
851
851
|
return pe(this, function(s) {
|
|
852
852
|
switch (s.label) {
|
|
853
853
|
case 0:
|
|
854
|
-
return s.trys.push([0, 2, , 3]), [4,
|
|
854
|
+
return s.trys.push([0, 2, , 3]), [4, uo()];
|
|
855
855
|
case 1:
|
|
856
|
-
return t = s.sent(), r =
|
|
856
|
+
return t = s.sent(), r = ar(JSON.stringify(t)), [2, r.toString()];
|
|
857
857
|
case 2:
|
|
858
858
|
throw s.sent();
|
|
859
859
|
case 3:
|
|
@@ -862,19 +862,19 @@ function uo(e) {
|
|
|
862
862
|
});
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function fo(e) {
|
|
866
866
|
for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
|
|
867
867
|
return t;
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function Ds(e, t, r) {
|
|
870
870
|
for (var s = [], a = 0; a < e[0].data.length; a++) {
|
|
871
871
|
for (var o = [], n = 0; n < e.length; n++) o.push(e[n].data[a]);
|
|
872
|
-
s.push(
|
|
872
|
+
s.push(po(o));
|
|
873
873
|
}
|
|
874
874
|
var c = new Uint8ClampedArray(s);
|
|
875
875
|
return new ImageData(c, t, r);
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function po(e) {
|
|
878
878
|
if (e.length === 0) return 0;
|
|
879
879
|
for (var t = {}, r = 0, s = e; r < s.length; r++)
|
|
880
880
|
t[o = s[r]] = (t[o] || 0) + 1;
|
|
@@ -882,7 +882,7 @@ function fo(e) {
|
|
|
882
882
|
for (var o in t) t[o] > t[a] && (a = parseInt(o, 10));
|
|
883
883
|
return a;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function et() {
|
|
886
886
|
if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
|
|
887
887
|
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++) {
|
|
888
888
|
var a = s[r], o = e.match(a);
|
|
@@ -898,24 +898,24 @@ ne("audio", function() {
|
|
|
898
898
|
var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), a = s.createBufferSource(), o = s.createOscillator();
|
|
899
899
|
o.frequency.value = 1e3;
|
|
900
900
|
var n, c = s.createDynamicsCompressor();
|
|
901
|
-
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(
|
|
902
|
-
n =
|
|
901
|
+
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) {
|
|
902
|
+
n = u.renderedBuffer.getChannelData(0), t({ sampleHash: fo(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
|
|
903
903
|
}, s.startRendering();
|
|
904
|
-
} catch (
|
|
905
|
-
console.error("Error creating audio fingerprint:",
|
|
904
|
+
} catch (u) {
|
|
905
|
+
console.error("Error creating audio fingerprint:", u), r(u);
|
|
906
906
|
}
|
|
907
907
|
})];
|
|
908
908
|
});
|
|
909
909
|
});
|
|
910
910
|
});
|
|
911
|
-
var
|
|
912
|
-
|
|
911
|
+
var mo = et().name !== "SamsungBrowser" ? 1 : 3, ns = 280, os = 20;
|
|
912
|
+
et().name != "Firefox" && ne("canvas", function() {
|
|
913
913
|
return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
|
|
914
|
-
var t = Array.from({ length:
|
|
914
|
+
var t = Array.from({ length: mo }, function() {
|
|
915
915
|
return function() {
|
|
916
916
|
var r = document.createElement("canvas"), s = r.getContext("2d");
|
|
917
917
|
if (!s) return new ImageData(1, 1);
|
|
918
|
-
r.width =
|
|
918
|
+
r.width = ns, r.height = os;
|
|
919
919
|
var a = s.createLinearGradient(0, 0, r.width, r.height);
|
|
920
920
|
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);
|
|
921
921
|
var o = "Random Text WMwmil10Oo";
|
|
@@ -924,23 +924,23 @@ Je().name != "Firefox" && ne("canvas", function() {
|
|
|
924
924
|
return n;
|
|
925
925
|
}();
|
|
926
926
|
});
|
|
927
|
-
e({ commonImageDataHash:
|
|
927
|
+
e({ commonImageDataHash: ar(Ds(t, ns, os).data.toString()).toString() });
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
|
-
var Wt,
|
|
931
|
-
function
|
|
930
|
+
var Wt, go = ["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"], vo = ["monospace", "sans-serif", "serif"];
|
|
931
|
+
function cs(e, t) {
|
|
932
932
|
if (!e) throw new Error("Canvas context not supported");
|
|
933
933
|
return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function bo() {
|
|
936
936
|
var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
|
|
937
937
|
if (r && "getParameter" in r) try {
|
|
938
938
|
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() };
|
|
939
939
|
if (!a.length || !s.length) {
|
|
940
940
|
var n = r.getExtension("WEBGL_debug_renderer_info");
|
|
941
941
|
if (n) {
|
|
942
|
-
var c = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(),
|
|
943
|
-
c && (o.vendorUnmasked = c),
|
|
942
|
+
var c = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
943
|
+
c && (o.vendorUnmasked = c), u && (o.rendererUnmasked = u);
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
return o;
|
|
@@ -948,23 +948,23 @@ function vo() {
|
|
|
948
948
|
}
|
|
949
949
|
return "undefined";
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function yo() {
|
|
952
952
|
var e = new Float32Array(1), t = new Uint8Array(e.buffer);
|
|
953
953
|
return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Co(e, t) {
|
|
956
956
|
var r = {};
|
|
957
957
|
return t.forEach(function(s) {
|
|
958
958
|
var a = function(o) {
|
|
959
959
|
if (o.length === 0) return null;
|
|
960
960
|
var n = {};
|
|
961
|
-
o.forEach(function(
|
|
962
|
-
var i = String(
|
|
961
|
+
o.forEach(function(h) {
|
|
962
|
+
var i = String(h);
|
|
963
963
|
n[i] = (n[i] || 0) + 1;
|
|
964
964
|
});
|
|
965
|
-
var c = o[0],
|
|
966
|
-
return Object.keys(n).forEach(function(
|
|
967
|
-
n[
|
|
965
|
+
var c = o[0], u = 1;
|
|
966
|
+
return Object.keys(n).forEach(function(h) {
|
|
967
|
+
n[h] > u && (c = h, u = n[h]);
|
|
968
968
|
}), c;
|
|
969
969
|
}(e.map(function(o) {
|
|
970
970
|
return s in o ? o[s] : void 0;
|
|
@@ -974,7 +974,7 @@ function yo(e, t) {
|
|
|
974
974
|
a && (r[s] = a);
|
|
975
975
|
}), r;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function So() {
|
|
978
978
|
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"] };
|
|
979
979
|
return Object.keys(t).forEach(function(r) {
|
|
980
980
|
t[r].forEach(function(s) {
|
|
@@ -982,7 +982,7 @@ function Co() {
|
|
|
982
982
|
});
|
|
983
983
|
}), e;
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function ko() {
|
|
986
986
|
if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
|
|
987
987
|
for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
|
|
988
988
|
} catch {
|
|
@@ -990,7 +990,7 @@ function So() {
|
|
|
990
990
|
}
|
|
991
991
|
return 0;
|
|
992
992
|
}
|
|
993
|
-
|
|
993
|
+
et().name != "Firefox" && ne("fonts", function() {
|
|
994
994
|
var e = this;
|
|
995
995
|
return new Promise(function(t, r) {
|
|
996
996
|
try {
|
|
@@ -998,34 +998,34 @@ Je().name != "Firefox" && ne("fonts", function() {
|
|
|
998
998
|
var a;
|
|
999
999
|
de(this, void 0, void 0, function() {
|
|
1000
1000
|
var o, n, c;
|
|
1001
|
-
return pe(this, function(
|
|
1002
|
-
switch (
|
|
1001
|
+
return pe(this, function(u) {
|
|
1002
|
+
switch (u.label) {
|
|
1003
1003
|
case 0:
|
|
1004
|
-
return document.body ? [3, 2] : [4, (
|
|
1005
|
-
return setTimeout(p,
|
|
1004
|
+
return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
|
|
1005
|
+
return setTimeout(p, h, i);
|
|
1006
1006
|
}))];
|
|
1007
1007
|
case 1:
|
|
1008
|
-
return
|
|
1008
|
+
return u.sent(), [3, 0];
|
|
1009
1009
|
case 2:
|
|
1010
1010
|
if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (n = o.style).setProperty("position", "fixed"), n.setProperty("display", "block", "important"), n.setProperty("visibility", "visible"), n.setProperty("border", "0"), n.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(c = o.contentDocument || ((a = o.contentWindow) === null || a === void 0 ? void 0 : a.document))) throw new Error("Iframe document is not accessible");
|
|
1011
1011
|
return s({ iframe: c }), setTimeout(function() {
|
|
1012
1012
|
document.body.removeChild(o);
|
|
1013
1013
|
}, 0), [2];
|
|
1014
1014
|
}
|
|
1015
|
-
var
|
|
1015
|
+
var h, i;
|
|
1016
1016
|
});
|
|
1017
1017
|
});
|
|
1018
1018
|
})(function(s) {
|
|
1019
1019
|
var a = s.iframe;
|
|
1020
1020
|
return de(e, void 0, void 0, function() {
|
|
1021
|
-
var o, n, c,
|
|
1022
|
-
return pe(this, function(
|
|
1023
|
-
return o = a.createElement("canvas"), n = o.getContext("2d"), c =
|
|
1024
|
-
return
|
|
1025
|
-
}),
|
|
1026
|
-
var p =
|
|
1027
|
-
c.includes(p) || (
|
|
1028
|
-
}), t(
|
|
1021
|
+
var o, n, c, u;
|
|
1022
|
+
return pe(this, function(h) {
|
|
1023
|
+
return o = a.createElement("canvas"), n = o.getContext("2d"), c = vo.map(function(i) {
|
|
1024
|
+
return cs(n, i);
|
|
1025
|
+
}), u = {}, go.forEach(function(i) {
|
|
1026
|
+
var p = cs(n, i);
|
|
1027
|
+
c.includes(p) || (u[i] = p);
|
|
1028
|
+
}), t(u), [2];
|
|
1029
1029
|
});
|
|
1030
1030
|
});
|
|
1031
1031
|
});
|
|
@@ -1036,7 +1036,7 @@ Je().name != "Firefox" && ne("fonts", function() {
|
|
|
1036
1036
|
}), ne("hardware", function() {
|
|
1037
1037
|
return new Promise(function(e, t) {
|
|
1038
1038
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1039
|
-
e({ videocard:
|
|
1039
|
+
e({ videocard: bo(), architecture: yo(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
|
|
1040
1040
|
});
|
|
1041
1041
|
}), ne("locales", function() {
|
|
1042
1042
|
return new Promise(function(e) {
|
|
@@ -1072,7 +1072,7 @@ Je().name != "Firefox" && ne("fonts", function() {
|
|
|
1072
1072
|
});
|
|
1073
1073
|
}();
|
|
1074
1074
|
}), [2, Promise.all(e).then(function(r) {
|
|
1075
|
-
return
|
|
1075
|
+
return Co(r, Wt);
|
|
1076
1076
|
})];
|
|
1077
1077
|
});
|
|
1078
1078
|
});
|
|
@@ -1087,15 +1087,15 @@ Je().name != "Firefox" && ne("fonts", function() {
|
|
|
1087
1087
|
});
|
|
1088
1088
|
}), ne("screen", function() {
|
|
1089
1089
|
return new Promise(function(e) {
|
|
1090
|
-
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches:
|
|
1090
|
+
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: So() });
|
|
1091
1091
|
});
|
|
1092
1092
|
}), ne("system", function() {
|
|
1093
1093
|
return new Promise(function(e) {
|
|
1094
|
-
var t =
|
|
1095
|
-
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:
|
|
1094
|
+
var t = et();
|
|
1095
|
+
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: ko() });
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
|
-
var K,
|
|
1098
|
+
var K, wo = et().name !== "SamsungBrowser" ? 1 : 3, k = null;
|
|
1099
1099
|
ne("webgl", function() {
|
|
1100
1100
|
return de(this, void 0, void 0, function() {
|
|
1101
1101
|
var e;
|
|
@@ -1103,7 +1103,7 @@ ne("webgl", function() {
|
|
|
1103
1103
|
typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100, k = K.getContext("webgl"));
|
|
1104
1104
|
try {
|
|
1105
1105
|
if (!k) throw new Error("WebGL not supported");
|
|
1106
|
-
return e = Array.from({ length:
|
|
1106
|
+
return e = Array.from({ length: wo }, function() {
|
|
1107
1107
|
return function() {
|
|
1108
1108
|
try {
|
|
1109
1109
|
if (!k) throw new Error("WebGL not supported");
|
|
@@ -1125,12 +1125,12 @@ ne("webgl", function() {
|
|
|
1125
1125
|
if (!n) throw new Error("Failed to create shader program");
|
|
1126
1126
|
if (k.attachShader(n, a), k.attachShader(n, o), k.linkProgram(n), !k.getProgramParameter(n, k.LINK_STATUS)) throw new Error("Shader program linking failed: " + k.getProgramInfoLog(n));
|
|
1127
1127
|
k.useProgram(n);
|
|
1128
|
-
for (var c = 137,
|
|
1129
|
-
var p = i *
|
|
1130
|
-
|
|
1128
|
+
for (var c = 137, u = new Float32Array(4 * c), h = 2 * Math.PI / c, i = 0; i < c; i++) {
|
|
1129
|
+
var p = i * h;
|
|
1130
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (K.width / 2), u[4 * i + 3] = Math.sin(p) * (K.height / 2);
|
|
1131
1131
|
}
|
|
1132
1132
|
var g = k.createBuffer();
|
|
1133
|
-
k.bindBuffer(k.ARRAY_BUFFER, g), k.bufferData(k.ARRAY_BUFFER,
|
|
1133
|
+
k.bindBuffer(k.ARRAY_BUFFER, g), k.bufferData(k.ARRAY_BUFFER, u, k.STATIC_DRAW);
|
|
1134
1134
|
var b = k.getAttribLocation(n, "position");
|
|
1135
1135
|
k.enableVertexAttribArray(b), k.vertexAttribPointer(b, 2, k.FLOAT, !1, 0, 0), k.viewport(0, 0, K.width, K.height), k.clearColor(0, 0, 0, 1), k.clear(k.COLOR_BUFFER_BIT), k.drawArrays(k.LINES, 0, 2 * c);
|
|
1136
1136
|
var v = new Uint8ClampedArray(K.width * K.height * 4);
|
|
@@ -1141,7 +1141,7 @@ ne("webgl", function() {
|
|
|
1141
1141
|
k && (k.bindBuffer(k.ARRAY_BUFFER, null), k.useProgram(null), k.viewport(0, 0, k.drawingBufferWidth, k.drawingBufferHeight), k.clearColor(0, 0, 0, 0));
|
|
1142
1142
|
}
|
|
1143
1143
|
}();
|
|
1144
|
-
}), [2, { commonImageHash:
|
|
1144
|
+
}), [2, { commonImageHash: ar(Ds(e, K.width, K.height).data.toString()).toString() }];
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
return [2, { webgl: "unsupported" }];
|
|
1147
1147
|
}
|
|
@@ -1161,14 +1161,14 @@ ne("math", function() {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
});
|
|
1163
1163
|
});
|
|
1164
|
-
const
|
|
1165
|
-
let
|
|
1164
|
+
const xo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1165
|
+
let Oe = (e = 21) => {
|
|
1166
1166
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1167
1167
|
for (; e--; )
|
|
1168
|
-
t +=
|
|
1168
|
+
t += xo[r[e] & 63];
|
|
1169
1169
|
return t;
|
|
1170
1170
|
};
|
|
1171
|
-
class
|
|
1171
|
+
class nr {
|
|
1172
1172
|
constructor(t) {
|
|
1173
1173
|
A(this, "config"), this.config = t;
|
|
1174
1174
|
}
|
|
@@ -1186,7 +1186,7 @@ class ar {
|
|
|
1186
1186
|
async onAdContainerViewed(t) {
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
class
|
|
1189
|
+
class Ro extends nr {
|
|
1190
1190
|
/**
|
|
1191
1191
|
* Gets ads from the adMarketplace API based on the search term.
|
|
1192
1192
|
*/
|
|
@@ -1203,13 +1203,13 @@ class xo extends ar {
|
|
|
1203
1203
|
"results-pa": `${this.config.admProductAdQuantity || 0}`
|
|
1204
1204
|
}).toString()}`, s = await (await fetch(r, { method: "GET" })).json(), a = s.product_ads.map(
|
|
1205
1205
|
(n) => ({
|
|
1206
|
-
id:
|
|
1206
|
+
id: Oe(),
|
|
1207
1207
|
adSource: "adMarketplace",
|
|
1208
1208
|
admAdType: "adm-product-ad",
|
|
1209
1209
|
admAd: n
|
|
1210
1210
|
})
|
|
1211
1211
|
), o = s.text_ads.map((n) => ({
|
|
1212
|
-
id:
|
|
1212
|
+
id: Oe(),
|
|
1213
1213
|
adSource: "adMarketplace",
|
|
1214
1214
|
admAdType: "adm-text-ad",
|
|
1215
1215
|
admAd: n
|
|
@@ -1222,13 +1222,13 @@ class xo extends ar {
|
|
|
1222
1222
|
(r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
class
|
|
1225
|
+
class Eo extends nr {
|
|
1226
1226
|
async getAds(t) {
|
|
1227
1227
|
return [];
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1231
|
-
class
|
|
1230
|
+
const To = 1e3;
|
|
1231
|
+
class Po extends nr {
|
|
1232
1232
|
constructor(t) {
|
|
1233
1233
|
super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
|
|
1234
1234
|
}
|
|
@@ -1241,7 +1241,7 @@ class To extends ar {
|
|
|
1241
1241
|
this.removeScriptTagFromDocument();
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
|
-
this.performAdCall(
|
|
1244
|
+
this.performAdCall(To);
|
|
1245
1245
|
}
|
|
1246
1246
|
async onInputCleared() {
|
|
1247
1247
|
this.removeScriptTagFromDocument();
|
|
@@ -1270,8 +1270,8 @@ class To extends ar {
|
|
|
1270
1270
|
t && document.head.removeChild(t);
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1274
|
-
class
|
|
1273
|
+
const $o = 600;
|
|
1274
|
+
class _o {
|
|
1275
1275
|
constructor(t, r, s) {
|
|
1276
1276
|
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 = {}) => {
|
|
1277
1277
|
const c = {
|
|
@@ -1287,16 +1287,17 @@ class $o {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
1289
|
if (a === "document_clicked") {
|
|
1290
|
-
const
|
|
1290
|
+
const u = JSON.stringify(c), h = `${this.baseMeasureUrl}/event`;
|
|
1291
1291
|
try {
|
|
1292
|
-
const i = await fetch(
|
|
1292
|
+
const i = await fetch(h, {
|
|
1293
1293
|
method: "POST",
|
|
1294
1294
|
headers: {
|
|
1295
1295
|
"Content-Type": "application/json",
|
|
1296
1296
|
Authorization: this.config.readKey,
|
|
1297
|
-
"X-Sc-User-Id": this.userId
|
|
1297
|
+
"X-Sc-User-Id": this.userId,
|
|
1298
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1298
1299
|
},
|
|
1299
|
-
body:
|
|
1300
|
+
body: u,
|
|
1300
1301
|
keepalive: !0
|
|
1301
1302
|
});
|
|
1302
1303
|
if (!i.ok)
|
|
@@ -1308,16 +1309,17 @@ class $o {
|
|
|
1308
1309
|
}
|
|
1309
1310
|
} else
|
|
1310
1311
|
this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
1311
|
-
const
|
|
1312
|
+
const u = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
|
|
1312
1313
|
try {
|
|
1313
|
-
const i = await fetch(
|
|
1314
|
+
const i = await fetch(h, {
|
|
1314
1315
|
method: "POST",
|
|
1315
1316
|
headers: {
|
|
1316
1317
|
"Content-Type": "application/json",
|
|
1317
1318
|
Authorization: this.config.readKey,
|
|
1318
|
-
"X-Sc-User-Id": this.userId
|
|
1319
|
+
"X-Sc-User-Id": this.userId,
|
|
1320
|
+
"X-Sc-Session-Id": this.sessionId
|
|
1319
1321
|
},
|
|
1320
|
-
body:
|
|
1322
|
+
body: u,
|
|
1321
1323
|
keepalive: !0
|
|
1322
1324
|
});
|
|
1323
1325
|
if (this.measureRequestsBatched = [], !i.ok)
|
|
@@ -1328,8 +1330,8 @@ class $o {
|
|
|
1328
1330
|
} catch (i) {
|
|
1329
1331
|
throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", i), i;
|
|
1330
1332
|
}
|
|
1331
|
-
},
|
|
1332
|
-
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId =
|
|
1333
|
+
}, $o);
|
|
1334
|
+
}), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = Oe(), this.sendMeasureEvent("sdk_initialized");
|
|
1333
1335
|
}
|
|
1334
1336
|
/**
|
|
1335
1337
|
* Getter for the base url used by the /measure endpoints.
|
|
@@ -1352,7 +1354,7 @@ class $o {
|
|
|
1352
1354
|
};
|
|
1353
1355
|
}
|
|
1354
1356
|
}
|
|
1355
|
-
const
|
|
1357
|
+
const Io = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Gt = (e) => {
|
|
1356
1358
|
let t = "";
|
|
1357
1359
|
if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
|
|
1358
1360
|
"‘": "'",
|
|
@@ -1368,7 +1370,7 @@ const _o = (e) => e.endsWith("/") ? e.slice(0, -1) : e, Io = (e) => {
|
|
|
1368
1370
|
class Mo {
|
|
1369
1371
|
constructor(t, r, s) {
|
|
1370
1372
|
A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a) => {
|
|
1371
|
-
var o, n, c,
|
|
1373
|
+
var o, n, c, u, h;
|
|
1372
1374
|
let i;
|
|
1373
1375
|
const p = typeof a == "string" ? a : a.searchTerm;
|
|
1374
1376
|
try {
|
|
@@ -1395,9 +1397,9 @@ class Mo {
|
|
|
1395
1397
|
data: {
|
|
1396
1398
|
searchTerm: p
|
|
1397
1399
|
}
|
|
1398
|
-
}), (((
|
|
1400
|
+
}), (((u = i.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
1399
1401
|
name: "no_results_returned"
|
|
1400
|
-
}), (
|
|
1402
|
+
}), (h = this.parent.adClient) == null || h.onQueryFetched(
|
|
1401
1403
|
typeof a == "string" ? { searchTerm: p, mode: "exact" } : a,
|
|
1402
1404
|
i
|
|
1403
1405
|
), i;
|
|
@@ -1405,57 +1407,61 @@ class Mo {
|
|
|
1405
1407
|
throw console.error("Error parsing response:", g), g;
|
|
1406
1408
|
}
|
|
1407
1409
|
}), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
|
|
1408
|
-
|
|
1410
|
+
var o;
|
|
1411
|
+
let n;
|
|
1409
1412
|
try {
|
|
1410
|
-
|
|
1413
|
+
n = JSON.parse(a), n = {
|
|
1411
1414
|
limit: this.config.searchResultsPerPage,
|
|
1412
|
-
|
|
1413
|
-
...o
|
|
1415
|
+
...n
|
|
1414
1416
|
};
|
|
1415
1417
|
} catch {
|
|
1416
1418
|
throw new Error("Error: Query string is not valid json.");
|
|
1417
1419
|
}
|
|
1418
|
-
const
|
|
1420
|
+
const c = await fetch(this.baseSearchUrl, {
|
|
1419
1421
|
method: "POST",
|
|
1420
1422
|
headers: {
|
|
1421
1423
|
Authorization: this.config.readKey,
|
|
1422
1424
|
"Content-Type": "application/json",
|
|
1423
|
-
"X-Sc-User-Id": this.userId
|
|
1425
|
+
"X-Sc-User-Id": this.userId,
|
|
1426
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Oe()
|
|
1424
1427
|
},
|
|
1425
|
-
body: JSON.stringify(
|
|
1428
|
+
body: JSON.stringify(n)
|
|
1426
1429
|
});
|
|
1427
|
-
if (!
|
|
1430
|
+
if (!c.ok)
|
|
1428
1431
|
throw new Error(
|
|
1429
|
-
`Error: ${
|
|
1432
|
+
`Error: ${c.statusText} (Status: ${c.status})`
|
|
1430
1433
|
);
|
|
1431
|
-
return await
|
|
1434
|
+
return await c.json();
|
|
1432
1435
|
}), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
|
|
1436
|
+
var o;
|
|
1433
1437
|
try {
|
|
1434
|
-
const o = {
|
|
1435
|
-
query: this.formatParamsForRequest(a),
|
|
1436
|
-
offset: a.offset || 0,
|
|
1437
|
-
// Default to 0 (first page) if not provided
|
|
1438
|
-
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1439
|
-
// Default to 20 if not provided
|
|
1440
|
-
order_by: a.order_by || this.config.indexFieldName
|
|
1441
|
-
};
|
|
1442
|
-
o.order_by && (o.sort = a.sort === "desc" || a.sort === "asc" ? a.sort : "asc");
|
|
1443
1438
|
const n = await fetch(this.baseSearchUrl, {
|
|
1444
1439
|
method: "POST",
|
|
1445
1440
|
headers: {
|
|
1446
1441
|
Authorization: this.config.readKey,
|
|
1447
1442
|
"Content-Type": "application/json",
|
|
1448
|
-
"X-Sc-User-Id": this.userId
|
|
1443
|
+
"X-Sc-User-Id": this.userId,
|
|
1444
|
+
"X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Oe()
|
|
1449
1445
|
},
|
|
1450
|
-
body: JSON.stringify(
|
|
1446
|
+
body: JSON.stringify({
|
|
1447
|
+
query: this.formatParamsForRequest(a),
|
|
1448
|
+
offset: a.offset || 0,
|
|
1449
|
+
limit: a.limit || this.config.searchResultsPerPage || 20,
|
|
1450
|
+
...a.order_by && {
|
|
1451
|
+
order_by: a.order_by
|
|
1452
|
+
},
|
|
1453
|
+
...a.sort && {
|
|
1454
|
+
sort: a.sort
|
|
1455
|
+
}
|
|
1456
|
+
})
|
|
1451
1457
|
});
|
|
1452
1458
|
if (!n.ok)
|
|
1453
1459
|
throw new Error(
|
|
1454
1460
|
`Error: ${n.statusText} (Status: ${n.status})`
|
|
1455
1461
|
);
|
|
1456
1462
|
return await n.json();
|
|
1457
|
-
} catch (
|
|
1458
|
-
throw console.error("Error parsing response:",
|
|
1463
|
+
} catch (n) {
|
|
1464
|
+
throw console.error("Error parsing response:", n), n;
|
|
1459
1465
|
}
|
|
1460
1466
|
}), this.parent = t, this.config = r, this.userId = s;
|
|
1461
1467
|
}
|
|
@@ -1473,30 +1479,34 @@ class Mo {
|
|
|
1473
1479
|
formatParamsForRequest(t) {
|
|
1474
1480
|
const r = [];
|
|
1475
1481
|
let s = "should";
|
|
1476
|
-
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((
|
|
1477
|
-
var
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1480
|
-
occur:
|
|
1482
|
+
t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((n) => {
|
|
1483
|
+
var c;
|
|
1484
|
+
const u = (c = t.facetPathsForIndexFields) == null ? void 0 : c[n];
|
|
1485
|
+
u && (s = "must", r.push({
|
|
1486
|
+
occur: "must",
|
|
1481
1487
|
exact: {
|
|
1482
|
-
ctx:
|
|
1488
|
+
ctx: Gt(u.value)
|
|
1483
1489
|
}
|
|
1484
1490
|
}));
|
|
1485
|
-
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((
|
|
1486
|
-
var
|
|
1487
|
-
const
|
|
1488
|
-
|
|
1489
|
-
occur:
|
|
1491
|
+
}), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((n) => {
|
|
1492
|
+
var c;
|
|
1493
|
+
const u = (c = t.rangeValueForIndexFields) == null ? void 0 : c[n];
|
|
1494
|
+
u && (s = "must", r.push({
|
|
1495
|
+
occur: "must",
|
|
1490
1496
|
exact: {
|
|
1491
|
-
ctx:
|
|
1497
|
+
ctx: Gt(u.value)
|
|
1492
1498
|
}
|
|
1493
1499
|
}));
|
|
1494
1500
|
});
|
|
1495
|
-
const a = t.mode === "fuzzy" ? { fuzzy: { ctx:
|
|
1501
|
+
const a = Gt(t.searchTerm), o = t.mode === "fuzzy" ? { fuzzy: { ctx: a } } : {
|
|
1502
|
+
exact: {
|
|
1503
|
+
ctx: `${a.startsWith('"') ? a : `"${a}"`}`
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1496
1506
|
return r.push({
|
|
1497
|
-
occur: s,
|
|
1507
|
+
occur: t.mode === "exact" ? "must" : s,
|
|
1498
1508
|
// Valid, as 'occur' is a required property in SearchClientQuery
|
|
1499
|
-
...
|
|
1509
|
+
...o
|
|
1500
1510
|
}), r;
|
|
1501
1511
|
}
|
|
1502
1512
|
}
|
|
@@ -1505,16 +1515,17 @@ class Lo {
|
|
|
1505
1515
|
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) => {
|
|
1506
1516
|
const n = async () => {
|
|
1507
1517
|
(async () => {
|
|
1508
|
-
var c
|
|
1518
|
+
var c;
|
|
1509
1519
|
const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
|
|
1510
1520
|
if (!u)
|
|
1511
1521
|
throw new Error("Search client was not initialized.");
|
|
1512
|
-
const
|
|
1513
|
-
|
|
1514
|
-
id:
|
|
1515
|
-
|
|
1522
|
+
const h = (u.data.hits || []).filter((i) => !!i.doc).map((i) => ({
|
|
1523
|
+
id: Oe(),
|
|
1524
|
+
document: i.doc || { id: -1 },
|
|
1525
|
+
source_index: i.source_index,
|
|
1526
|
+
type: "SearchDocument"
|
|
1516
1527
|
}));
|
|
1517
|
-
a(u,
|
|
1528
|
+
a(u, h);
|
|
1518
1529
|
})(), (async () => {
|
|
1519
1530
|
if (this.adClient && typeof s != "string") {
|
|
1520
1531
|
const c = await this.adClient.getAds(s);
|
|
@@ -1533,7 +1544,7 @@ class Lo {
|
|
|
1533
1544
|
this.config = {
|
|
1534
1545
|
...t,
|
|
1535
1546
|
// Strips off the trailing '/' from an endpointURL if one is accidentally added
|
|
1536
|
-
endpointURL:
|
|
1547
|
+
endpointURL: Io(t.endpointURL)
|
|
1537
1548
|
}, 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());
|
|
1538
1549
|
}
|
|
1539
1550
|
initInputForms() {
|
|
@@ -1562,15 +1573,15 @@ class Lo {
|
|
|
1562
1573
|
initClients(t, r) {
|
|
1563
1574
|
setTimeout(async () => {
|
|
1564
1575
|
let s = this.config.userId;
|
|
1565
|
-
switch (s || (s = await
|
|
1576
|
+
switch (s || (s = await ho()), this.measureClient = new _o(t, r, s), this.searchClient = new Mo(this, t, s), t.adSource) {
|
|
1566
1577
|
case "adMarketplace":
|
|
1567
|
-
this.adClient = new
|
|
1578
|
+
this.adClient = new Ro(t);
|
|
1568
1579
|
break;
|
|
1569
1580
|
case "Nativo":
|
|
1570
|
-
this.adClient = new
|
|
1581
|
+
this.adClient = new Po(t);
|
|
1571
1582
|
break;
|
|
1572
1583
|
case "Custom":
|
|
1573
|
-
this.adClient = new
|
|
1584
|
+
this.adClient = new Eo(t);
|
|
1574
1585
|
break;
|
|
1575
1586
|
}
|
|
1576
1587
|
this.emitEvent("initialized", {
|
|
@@ -1629,20 +1640,20 @@ class Lo {
|
|
|
1629
1640
|
}), (t = this.adClient) == null || t.onInputCleared();
|
|
1630
1641
|
}
|
|
1631
1642
|
}
|
|
1632
|
-
var
|
|
1633
|
-
const
|
|
1643
|
+
var Ns = {}, or = {};
|
|
1644
|
+
const is = (e) => {
|
|
1634
1645
|
let t;
|
|
1635
|
-
const r = /* @__PURE__ */ new Set(), s = (
|
|
1636
|
-
const p = typeof
|
|
1646
|
+
const r = /* @__PURE__ */ new Set(), s = (h, i) => {
|
|
1647
|
+
const p = typeof h == "function" ? h(t) : h;
|
|
1637
1648
|
if (!Object.is(p, t)) {
|
|
1638
1649
|
const g = t;
|
|
1639
1650
|
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((b) => b(t, g));
|
|
1640
1651
|
}
|
|
1641
|
-
}, a = () => t, c = { setState: s, getState: a, getInitialState: () =>
|
|
1652
|
+
}, a = () => t, c = { setState: s, getState: a, getInitialState: () => u, subscribe: (h) => (r.add(h), () => r.delete(h)) }, u = t = e(s, a, c);
|
|
1642
1653
|
return c;
|
|
1643
|
-
}, Oo = (e) => e ?
|
|
1644
|
-
|
|
1645
|
-
var
|
|
1654
|
+
}, Oo = (e) => e ? is(e) : is;
|
|
1655
|
+
or.createStore = Oo;
|
|
1656
|
+
var cr = {}, Hs = { exports: {} }, w = {};
|
|
1646
1657
|
/**
|
|
1647
1658
|
* @license React
|
|
1648
1659
|
* react.production.js
|
|
@@ -1652,11 +1663,11 @@ var or = {}, Ns = { exports: {} }, w = {};
|
|
|
1652
1663
|
* This source code is licensed under the MIT license found in the
|
|
1653
1664
|
* LICENSE file in the root directory of this source tree.
|
|
1654
1665
|
*/
|
|
1655
|
-
var
|
|
1666
|
+
var ir = Symbol.for("react.transitional.element"), Fo = Symbol.for("react.portal"), Do = Symbol.for("react.fragment"), No = Symbol.for("react.strict_mode"), Ho = Symbol.for("react.profiler"), Uo = Symbol.for("react.consumer"), zo = Symbol.for("react.context"), jo = Symbol.for("react.forward_ref"), Bo = Symbol.for("react.suspense"), Vo = Symbol.for("react.memo"), Us = Symbol.for("react.lazy"), ls = Symbol.iterator;
|
|
1656
1667
|
function Wo(e) {
|
|
1657
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
1668
|
+
return e === null || typeof e != "object" ? null : (e = ls && e[ls] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1658
1669
|
}
|
|
1659
|
-
var
|
|
1670
|
+
var zs = {
|
|
1660
1671
|
isMounted: function() {
|
|
1661
1672
|
return !1;
|
|
1662
1673
|
},
|
|
@@ -1666,35 +1677,35 @@ var Us = {
|
|
|
1666
1677
|
},
|
|
1667
1678
|
enqueueSetState: function() {
|
|
1668
1679
|
}
|
|
1669
|
-
},
|
|
1670
|
-
function
|
|
1671
|
-
this.props = e, this.context = t, this.refs =
|
|
1680
|
+
}, js = Object.assign, Bs = {};
|
|
1681
|
+
function De(e, t, r) {
|
|
1682
|
+
this.props = e, this.context = t, this.refs = Bs, this.updater = r || zs;
|
|
1672
1683
|
}
|
|
1673
|
-
|
|
1674
|
-
|
|
1684
|
+
De.prototype.isReactComponent = {};
|
|
1685
|
+
De.prototype.setState = function(e, t) {
|
|
1675
1686
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1676
1687
|
throw Error(
|
|
1677
1688
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1678
1689
|
);
|
|
1679
1690
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1680
1691
|
};
|
|
1681
|
-
|
|
1692
|
+
De.prototype.forceUpdate = function(e) {
|
|
1682
1693
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1683
1694
|
};
|
|
1684
1695
|
function Vs() {
|
|
1685
1696
|
}
|
|
1686
|
-
Vs.prototype =
|
|
1687
|
-
function
|
|
1688
|
-
this.props = e, this.context = t, this.refs =
|
|
1697
|
+
Vs.prototype = De.prototype;
|
|
1698
|
+
function lr(e, t, r) {
|
|
1699
|
+
this.props = e, this.context = t, this.refs = Bs, this.updater = r || zs;
|
|
1689
1700
|
}
|
|
1690
|
-
var
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
var
|
|
1695
|
-
function
|
|
1701
|
+
var ur = lr.prototype = new Vs();
|
|
1702
|
+
ur.constructor = lr;
|
|
1703
|
+
js(ur, De.prototype);
|
|
1704
|
+
ur.isPureReactComponent = !0;
|
|
1705
|
+
var us = Array.isArray, L = { H: null, A: null, T: null, S: null }, Ws = Object.prototype.hasOwnProperty;
|
|
1706
|
+
function hr(e, t, r, s, a, o) {
|
|
1696
1707
|
return r = o.ref, {
|
|
1697
|
-
$$typeof:
|
|
1708
|
+
$$typeof: ir,
|
|
1698
1709
|
type: e,
|
|
1699
1710
|
key: t,
|
|
1700
1711
|
ref: r !== void 0 ? r : null,
|
|
@@ -1702,7 +1713,7 @@ function ur(e, t, r, s, a, o) {
|
|
|
1702
1713
|
};
|
|
1703
1714
|
}
|
|
1704
1715
|
function Go(e, t) {
|
|
1705
|
-
return
|
|
1716
|
+
return hr(
|
|
1706
1717
|
e.type,
|
|
1707
1718
|
t,
|
|
1708
1719
|
void 0,
|
|
@@ -1711,8 +1722,8 @@ function Go(e, t) {
|
|
|
1711
1722
|
e.props
|
|
1712
1723
|
);
|
|
1713
1724
|
}
|
|
1714
|
-
function
|
|
1715
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
1725
|
+
function fr(e) {
|
|
1726
|
+
return typeof e == "object" && e !== null && e.$$typeof === ir;
|
|
1716
1727
|
}
|
|
1717
1728
|
function qo(e) {
|
|
1718
1729
|
var t = { "=": "=0", ":": "=2" };
|
|
@@ -1720,11 +1731,11 @@ function qo(e) {
|
|
|
1720
1731
|
return t[r];
|
|
1721
1732
|
});
|
|
1722
1733
|
}
|
|
1723
|
-
var
|
|
1724
|
-
function
|
|
1734
|
+
var hs = /\/+/g;
|
|
1735
|
+
function qt(e, t) {
|
|
1725
1736
|
return typeof e == "object" && e !== null && e.key != null ? qo("" + e.key) : t.toString(36);
|
|
1726
1737
|
}
|
|
1727
|
-
function
|
|
1738
|
+
function fs() {
|
|
1728
1739
|
}
|
|
1729
1740
|
function Yo(e) {
|
|
1730
1741
|
switch (e.status) {
|
|
@@ -1733,7 +1744,7 @@ function Yo(e) {
|
|
|
1733
1744
|
case "rejected":
|
|
1734
1745
|
throw e.reason;
|
|
1735
1746
|
default:
|
|
1736
|
-
switch (typeof e.status == "string" ? e.then(
|
|
1747
|
+
switch (typeof e.status == "string" ? e.then(fs, fs) : (e.status = "pending", e.then(
|
|
1737
1748
|
function(t) {
|
|
1738
1749
|
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
1739
1750
|
},
|
|
@@ -1763,11 +1774,11 @@ function Me(e, t, r, s, a) {
|
|
|
1763
1774
|
break;
|
|
1764
1775
|
case "object":
|
|
1765
1776
|
switch (e.$$typeof) {
|
|
1766
|
-
case
|
|
1777
|
+
case ir:
|
|
1767
1778
|
case Fo:
|
|
1768
1779
|
n = !0;
|
|
1769
1780
|
break;
|
|
1770
|
-
case
|
|
1781
|
+
case Us:
|
|
1771
1782
|
return n = e._init, Me(
|
|
1772
1783
|
n(e._payload),
|
|
1773
1784
|
t,
|
|
@@ -1778,29 +1789,29 @@ function Me(e, t, r, s, a) {
|
|
|
1778
1789
|
}
|
|
1779
1790
|
}
|
|
1780
1791
|
if (n)
|
|
1781
|
-
return a = a(e), n = s === "" ? "." +
|
|
1782
|
-
return
|
|
1783
|
-
})) : a != null && (
|
|
1792
|
+
return a = a(e), n = s === "" ? "." + qt(e, 0) : s, us(a) ? (r = "", n != null && (r = n.replace(hs, "$&/") + "/"), Me(a, t, r, "", function(h) {
|
|
1793
|
+
return h;
|
|
1794
|
+
})) : a != null && (fr(a) && (a = Go(
|
|
1784
1795
|
a,
|
|
1785
1796
|
r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
|
|
1786
|
-
|
|
1797
|
+
hs,
|
|
1787
1798
|
"$&/"
|
|
1788
1799
|
) + "/") + n
|
|
1789
1800
|
)), t.push(a)), 1;
|
|
1790
1801
|
n = 0;
|
|
1791
1802
|
var c = s === "" ? "." : s + ":";
|
|
1792
|
-
if (
|
|
1793
|
-
for (var
|
|
1794
|
-
s = e[
|
|
1803
|
+
if (us(e))
|
|
1804
|
+
for (var u = 0; u < e.length; u++)
|
|
1805
|
+
s = e[u], o = c + qt(s, u), n += Me(
|
|
1795
1806
|
s,
|
|
1796
1807
|
t,
|
|
1797
1808
|
r,
|
|
1798
1809
|
o,
|
|
1799
1810
|
a
|
|
1800
1811
|
);
|
|
1801
|
-
else if (
|
|
1802
|
-
for (e =
|
|
1803
|
-
s = s.value, o = c +
|
|
1812
|
+
else if (u = Wo(e), typeof u == "function")
|
|
1813
|
+
for (e = u.call(e), u = 0; !(s = e.next()).done; )
|
|
1814
|
+
s = s.value, o = c + qt(s, u++), n += Me(
|
|
1804
1815
|
s,
|
|
1805
1816
|
t,
|
|
1806
1817
|
r,
|
|
@@ -1822,7 +1833,7 @@ function Me(e, t, r, s, a) {
|
|
|
1822
1833
|
}
|
|
1823
1834
|
return n;
|
|
1824
1835
|
}
|
|
1825
|
-
function
|
|
1836
|
+
function mt(e, t, r) {
|
|
1826
1837
|
if (e == null) return e;
|
|
1827
1838
|
var s = [], a = 0;
|
|
1828
1839
|
return Me(e, s, "", "", function(o) {
|
|
@@ -1844,7 +1855,7 @@ function Zo(e) {
|
|
|
1844
1855
|
if (e._status === 1) return e._result.default;
|
|
1845
1856
|
throw e._result;
|
|
1846
1857
|
}
|
|
1847
|
-
var
|
|
1858
|
+
var ds = typeof reportError == "function" ? reportError : function(e) {
|
|
1848
1859
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1849
1860
|
var t = new window.ErrorEvent("error", {
|
|
1850
1861
|
bubbles: !0,
|
|
@@ -1862,9 +1873,9 @@ var fs = typeof reportError == "function" ? reportError : function(e) {
|
|
|
1862
1873
|
function Qo() {
|
|
1863
1874
|
}
|
|
1864
1875
|
w.Children = {
|
|
1865
|
-
map:
|
|
1876
|
+
map: mt,
|
|
1866
1877
|
forEach: function(e, t, r) {
|
|
1867
|
-
|
|
1878
|
+
mt(
|
|
1868
1879
|
e,
|
|
1869
1880
|
function() {
|
|
1870
1881
|
t.apply(this, arguments);
|
|
@@ -1874,29 +1885,29 @@ w.Children = {
|
|
|
1874
1885
|
},
|
|
1875
1886
|
count: function(e) {
|
|
1876
1887
|
var t = 0;
|
|
1877
|
-
return
|
|
1888
|
+
return mt(e, function() {
|
|
1878
1889
|
t++;
|
|
1879
1890
|
}), t;
|
|
1880
1891
|
},
|
|
1881
1892
|
toArray: function(e) {
|
|
1882
|
-
return
|
|
1893
|
+
return mt(e, function(t) {
|
|
1883
1894
|
return t;
|
|
1884
1895
|
}) || [];
|
|
1885
1896
|
},
|
|
1886
1897
|
only: function(e) {
|
|
1887
|
-
if (!
|
|
1898
|
+
if (!fr(e))
|
|
1888
1899
|
throw Error(
|
|
1889
1900
|
"React.Children.only expected to receive a single React element child."
|
|
1890
1901
|
);
|
|
1891
1902
|
return e;
|
|
1892
1903
|
}
|
|
1893
1904
|
};
|
|
1894
|
-
w.Component =
|
|
1905
|
+
w.Component = De;
|
|
1895
1906
|
w.Fragment = Do;
|
|
1896
1907
|
w.Profiler = Ho;
|
|
1897
|
-
w.PureComponent =
|
|
1908
|
+
w.PureComponent = lr;
|
|
1898
1909
|
w.StrictMode = No;
|
|
1899
|
-
w.Suspense =
|
|
1910
|
+
w.Suspense = Bo;
|
|
1900
1911
|
w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = L;
|
|
1901
1912
|
w.act = function() {
|
|
1902
1913
|
throw Error("act(...) is not supported in production builds of React.");
|
|
@@ -1911,18 +1922,18 @@ w.cloneElement = function(e, t, r) {
|
|
|
1911
1922
|
throw Error(
|
|
1912
1923
|
"The argument must be a React element, but you passed " + e + "."
|
|
1913
1924
|
);
|
|
1914
|
-
var s =
|
|
1925
|
+
var s = js({}, e.props), a = e.key, o = void 0;
|
|
1915
1926
|
if (t != null)
|
|
1916
1927
|
for (n in t.ref !== void 0 && (o = void 0), t.key !== void 0 && (a = "" + t.key), t)
|
|
1917
|
-
!
|
|
1928
|
+
!Ws.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
|
|
1918
1929
|
var n = arguments.length - 2;
|
|
1919
1930
|
if (n === 1) s.children = r;
|
|
1920
1931
|
else if (1 < n) {
|
|
1921
|
-
for (var c = Array(n),
|
|
1922
|
-
c[
|
|
1932
|
+
for (var c = Array(n), u = 0; u < n; u++)
|
|
1933
|
+
c[u] = arguments[u + 2];
|
|
1923
1934
|
s.children = c;
|
|
1924
1935
|
}
|
|
1925
|
-
return
|
|
1936
|
+
return hr(e.type, a, void 0, void 0, o, s);
|
|
1926
1937
|
};
|
|
1927
1938
|
w.createContext = function(e) {
|
|
1928
1939
|
return e = {
|
|
@@ -1941,18 +1952,18 @@ w.createElement = function(e, t, r) {
|
|
|
1941
1952
|
var s, a = {}, o = null;
|
|
1942
1953
|
if (t != null)
|
|
1943
1954
|
for (s in t.key !== void 0 && (o = "" + t.key), t)
|
|
1944
|
-
|
|
1955
|
+
Ws.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
|
|
1945
1956
|
var n = arguments.length - 2;
|
|
1946
1957
|
if (n === 1) a.children = r;
|
|
1947
1958
|
else if (1 < n) {
|
|
1948
|
-
for (var c = Array(n),
|
|
1949
|
-
c[
|
|
1959
|
+
for (var c = Array(n), u = 0; u < n; u++)
|
|
1960
|
+
c[u] = arguments[u + 2];
|
|
1950
1961
|
a.children = c;
|
|
1951
1962
|
}
|
|
1952
1963
|
if (e && e.defaultProps)
|
|
1953
1964
|
for (s in n = e.defaultProps, n)
|
|
1954
1965
|
a[s] === void 0 && (a[s] = n[s]);
|
|
1955
|
-
return
|
|
1966
|
+
return hr(e, o, void 0, void 0, null, a);
|
|
1956
1967
|
};
|
|
1957
1968
|
w.createRef = function() {
|
|
1958
1969
|
return { current: null };
|
|
@@ -1960,17 +1971,17 @@ w.createRef = function() {
|
|
|
1960
1971
|
w.forwardRef = function(e) {
|
|
1961
1972
|
return { $$typeof: jo, render: e };
|
|
1962
1973
|
};
|
|
1963
|
-
w.isValidElement =
|
|
1974
|
+
w.isValidElement = fr;
|
|
1964
1975
|
w.lazy = function(e) {
|
|
1965
1976
|
return {
|
|
1966
|
-
$$typeof:
|
|
1977
|
+
$$typeof: Us,
|
|
1967
1978
|
_payload: { _status: -1, _result: e },
|
|
1968
1979
|
_init: Zo
|
|
1969
1980
|
};
|
|
1970
1981
|
};
|
|
1971
1982
|
w.memo = function(e, t) {
|
|
1972
1983
|
return {
|
|
1973
|
-
$$typeof:
|
|
1984
|
+
$$typeof: Vo,
|
|
1974
1985
|
type: e,
|
|
1975
1986
|
compare: t === void 0 ? null : t
|
|
1976
1987
|
};
|
|
@@ -1980,9 +1991,9 @@ w.startTransition = function(e) {
|
|
|
1980
1991
|
L.T = r;
|
|
1981
1992
|
try {
|
|
1982
1993
|
var s = e(), a = L.S;
|
|
1983
|
-
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Qo,
|
|
1994
|
+
a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Qo, ds);
|
|
1984
1995
|
} catch (o) {
|
|
1985
|
-
|
|
1996
|
+
ds(o);
|
|
1986
1997
|
} finally {
|
|
1987
1998
|
L.T = t;
|
|
1988
1999
|
}
|
|
@@ -2048,25 +2059,25 @@ w.useTransition = function() {
|
|
|
2048
2059
|
return L.H.useTransition();
|
|
2049
2060
|
};
|
|
2050
2061
|
w.version = "19.0.0";
|
|
2051
|
-
|
|
2052
|
-
var
|
|
2062
|
+
Hs.exports = w;
|
|
2063
|
+
var ps = Hs.exports, Ko = or;
|
|
2053
2064
|
const Xo = (e) => e;
|
|
2054
|
-
function
|
|
2055
|
-
const r =
|
|
2065
|
+
function Gs(e, t = Xo) {
|
|
2066
|
+
const r = ps.useSyncExternalStore(
|
|
2056
2067
|
e.subscribe,
|
|
2057
2068
|
() => t(e.getState()),
|
|
2058
2069
|
() => t(e.getInitialState())
|
|
2059
2070
|
);
|
|
2060
|
-
return
|
|
2071
|
+
return ps.useDebugValue(r), r;
|
|
2061
2072
|
}
|
|
2062
|
-
const
|
|
2063
|
-
const t = Ko.createStore(e), r = (s) =>
|
|
2073
|
+
const ms = (e) => {
|
|
2074
|
+
const t = Ko.createStore(e), r = (s) => Gs(t, s);
|
|
2064
2075
|
return Object.assign(r, t), r;
|
|
2065
|
-
}, Jo = (e) => e ?
|
|
2066
|
-
|
|
2067
|
-
|
|
2076
|
+
}, Jo = (e) => e ? ms(e) : ms;
|
|
2077
|
+
cr.create = Jo;
|
|
2078
|
+
cr.useStore = Gs;
|
|
2068
2079
|
(function(e) {
|
|
2069
|
-
var t =
|
|
2080
|
+
var t = or, r = cr;
|
|
2070
2081
|
Object.keys(t).forEach(function(s) {
|
|
2071
2082
|
s !== "default" && !Object.prototype.hasOwnProperty.call(e, s) && Object.defineProperty(e, s, {
|
|
2072
2083
|
enumerable: !0,
|
|
@@ -2082,8 +2093,8 @@ or.useStore = Ws;
|
|
|
2082
2093
|
}
|
|
2083
2094
|
});
|
|
2084
2095
|
});
|
|
2085
|
-
})(
|
|
2086
|
-
const
|
|
2096
|
+
})(Ns);
|
|
2097
|
+
const gs = {
|
|
2087
2098
|
adClientResponseItems: [],
|
|
2088
2099
|
core: void 0,
|
|
2089
2100
|
hotkey: "k",
|
|
@@ -2103,11 +2114,12 @@ const ms = {
|
|
|
2103
2114
|
searchResultsCount: 0,
|
|
2104
2115
|
searchResultsPerPage: 20,
|
|
2105
2116
|
searchResultsPage: 1,
|
|
2106
|
-
sortType:
|
|
2117
|
+
sortType: void 0,
|
|
2118
|
+
orderByField: void 0,
|
|
2107
2119
|
// Callbacks
|
|
2108
2120
|
afterInit: () => {
|
|
2109
2121
|
}
|
|
2110
|
-
}, $ =
|
|
2122
|
+
}, $ = Ns.createStore((e, t) => {
|
|
2111
2123
|
const r = {
|
|
2112
2124
|
set: (a) => (e(a), t()),
|
|
2113
2125
|
addFacetPathsForIndexField: (a) => r.set((o) => ({
|
|
@@ -2127,7 +2139,7 @@ const ms = {
|
|
|
2127
2139
|
return a;
|
|
2128
2140
|
},
|
|
2129
2141
|
init: (a, o = !1) => {
|
|
2130
|
-
const n = o ? new
|
|
2142
|
+
const n = o ? new no({ logLevel: he.DEBUG }) : void 0, c = r.set({
|
|
2131
2143
|
core: a,
|
|
2132
2144
|
logger: n,
|
|
2133
2145
|
searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
|
|
@@ -2175,6 +2187,7 @@ const ms = {
|
|
|
2175
2187
|
searchTerm: a.searchTerm,
|
|
2176
2188
|
mode: a.searchMode,
|
|
2177
2189
|
sort: a.sortType,
|
|
2190
|
+
order_by: a.orderByField,
|
|
2178
2191
|
facetPathsForIndexFields: a.facetPathsForIndexFields,
|
|
2179
2192
|
rangeValueForIndexFields: a.rangeValueForIndexFields,
|
|
2180
2193
|
offset: a.searchResultsPerPage ? a.searchResultsPerPage * (a.searchResultsPage - 1) : 0,
|
|
@@ -2184,32 +2197,32 @@ const ms = {
|
|
|
2184
2197
|
setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
|
|
2185
2198
|
setSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2186
2199
|
var i, p;
|
|
2187
|
-
const { facets: n, count: c = 0, time_taken:
|
|
2200
|
+
const { facets: n, count: c = 0, time_taken: u = 0 } = a.data, h = r.set((g) => ({
|
|
2188
2201
|
isSearchInProgress: !1,
|
|
2189
2202
|
searchClientResponseItems: o,
|
|
2190
|
-
searchResponseTimeTaken:
|
|
2203
|
+
searchResponseTimeTaken: u,
|
|
2191
2204
|
searchResultsPage: (
|
|
2192
2205
|
// Reset to first page when response count changes
|
|
2193
2206
|
c === g.searchResultsCount ? g.searchResultsPage : 1
|
|
2194
2207
|
),
|
|
2195
2208
|
searchResultsCount: c,
|
|
2196
|
-
|
|
2209
|
+
searchResponseFacetPrime: n
|
|
2197
2210
|
}));
|
|
2198
|
-
(i =
|
|
2211
|
+
(i = h.logger) == null || i.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`), (p = h.logger) == null || p.log(he.DEBUG, `Facets from response: ${JSON.stringify(n)}`);
|
|
2199
2212
|
},
|
|
2200
2213
|
setInitialSearchClientResponseItemsFromResponse: (a, o) => {
|
|
2201
|
-
var
|
|
2202
|
-
const n = t(), { count: c = 0, time_taken:
|
|
2214
|
+
var h;
|
|
2215
|
+
const n = t(), { count: c = 0, time_taken: u = 0 } = a.data;
|
|
2203
2216
|
r.set((i) => ({
|
|
2204
2217
|
isSearchInProgress: !1,
|
|
2205
2218
|
initialSearchClientResponseItems: o,
|
|
2206
|
-
searchResponseTimeTaken:
|
|
2219
|
+
searchResponseTimeTaken: u,
|
|
2207
2220
|
searchResultsPage: (
|
|
2208
2221
|
// Reset to first page when response count changes
|
|
2209
2222
|
c === i.searchResultsCount ? i.searchResultsPage : 1
|
|
2210
2223
|
),
|
|
2211
2224
|
searchResultsCount: c
|
|
2212
|
-
})), (
|
|
2225
|
+
})), (h = n.logger) == null || h.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`);
|
|
2213
2226
|
},
|
|
2214
2227
|
setInitialQuery: async (a) => {
|
|
2215
2228
|
var n;
|
|
@@ -2222,7 +2235,7 @@ const ms = {
|
|
|
2222
2235
|
isPopoverVisible: a
|
|
2223
2236
|
}),
|
|
2224
2237
|
setSearchMode: (a) => r.set({ searchMode: a }),
|
|
2225
|
-
|
|
2238
|
+
setSortOrder: ({ orderByField: a, sortType: o }) => r.set({ sortType: o, orderByField: a }),
|
|
2226
2239
|
setSearchTerm: (a) => {
|
|
2227
2240
|
const { core: o } = t();
|
|
2228
2241
|
a.length === 0 && (o == null || o.handleInputCleared()), r.set({
|
|
@@ -2230,7 +2243,8 @@ const ms = {
|
|
|
2230
2243
|
facetPathsForIndexFields: {},
|
|
2231
2244
|
...a.trim().length === 0 && {
|
|
2232
2245
|
searchMode: "fuzzy",
|
|
2233
|
-
sortType:
|
|
2246
|
+
sortType: null,
|
|
2247
|
+
orderByField: null
|
|
2234
2248
|
}
|
|
2235
2249
|
});
|
|
2236
2250
|
},
|
|
@@ -2243,7 +2257,7 @@ const ms = {
|
|
|
2243
2257
|
r.set({ searchResultsPerPage: a }), await r.search();
|
|
2244
2258
|
},
|
|
2245
2259
|
setHotKeyAndHotKeyModifier: (a, o) => {
|
|
2246
|
-
const { hotkey: n, hotkeyModifier: c } =
|
|
2260
|
+
const { hotkey: n, hotkeyModifier: c } = gs;
|
|
2247
2261
|
r.set({
|
|
2248
2262
|
hotkey: a || n,
|
|
2249
2263
|
hotkeyModifier: o || c
|
|
@@ -2251,11 +2265,48 @@ const ms = {
|
|
|
2251
2265
|
}
|
|
2252
2266
|
};
|
|
2253
2267
|
return {
|
|
2254
|
-
...
|
|
2268
|
+
...gs,
|
|
2255
2269
|
...r
|
|
2256
2270
|
};
|
|
2257
2271
|
});
|
|
2258
|
-
var
|
|
2272
|
+
var qs = { exports: {} };
|
|
2273
|
+
/*!
|
|
2274
|
+
Copyright (c) 2018 Jed Watson.
|
|
2275
|
+
Licensed under the MIT License (MIT), see
|
|
2276
|
+
http://jedwatson.github.io/classnames
|
|
2277
|
+
*/
|
|
2278
|
+
(function(e) {
|
|
2279
|
+
(function() {
|
|
2280
|
+
var t = {}.hasOwnProperty;
|
|
2281
|
+
function r() {
|
|
2282
|
+
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2283
|
+
var c = arguments[n];
|
|
2284
|
+
c && (o = a(o, s(c)));
|
|
2285
|
+
}
|
|
2286
|
+
return o;
|
|
2287
|
+
}
|
|
2288
|
+
function s(o) {
|
|
2289
|
+
if (typeof o == "string" || typeof o == "number")
|
|
2290
|
+
return o;
|
|
2291
|
+
if (typeof o != "object")
|
|
2292
|
+
return "";
|
|
2293
|
+
if (Array.isArray(o))
|
|
2294
|
+
return r.apply(null, o);
|
|
2295
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2296
|
+
return o.toString();
|
|
2297
|
+
var n = "";
|
|
2298
|
+
for (var c in o)
|
|
2299
|
+
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2300
|
+
return n;
|
|
2301
|
+
}
|
|
2302
|
+
function a(o, n) {
|
|
2303
|
+
return n ? o ? o + " " + n : o + n : o;
|
|
2304
|
+
}
|
|
2305
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2306
|
+
})();
|
|
2307
|
+
})(qs);
|
|
2308
|
+
const re = qs.exports;
|
|
2309
|
+
var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ys = { exports: {} };
|
|
2259
2310
|
/*! @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 */
|
|
2260
2311
|
(function(e, t) {
|
|
2261
2312
|
(function(r, s) {
|
|
@@ -2270,30 +2321,30 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2270
2321
|
} = Object;
|
|
2271
2322
|
let {
|
|
2272
2323
|
freeze: c,
|
|
2273
|
-
seal:
|
|
2274
|
-
create:
|
|
2324
|
+
seal: u,
|
|
2325
|
+
create: h
|
|
2275
2326
|
} = Object, {
|
|
2276
2327
|
apply: i,
|
|
2277
2328
|
construct: p
|
|
2278
2329
|
} = typeof Reflect < "u" && Reflect;
|
|
2279
2330
|
c || (c = function(C) {
|
|
2280
2331
|
return C;
|
|
2281
|
-
}),
|
|
2332
|
+
}), u || (u = function(C) {
|
|
2282
2333
|
return C;
|
|
2283
2334
|
}), i || (i = function(C, P, E) {
|
|
2284
2335
|
return C.apply(P, E);
|
|
2285
2336
|
}), p || (p = function(C, P) {
|
|
2286
2337
|
return new C(...P);
|
|
2287
2338
|
});
|
|
2288
|
-
const g = q(Array.prototype.forEach), b = q(Array.prototype.lastIndexOf), v = q(Array.prototype.pop), T = q(Array.prototype.push), _ = q(Array.prototype.splice), N = q(String.prototype.toLowerCase), I = q(String.prototype.toString),
|
|
2339
|
+
const g = q(Array.prototype.forEach), b = q(Array.prototype.lastIndexOf), v = q(Array.prototype.pop), T = q(Array.prototype.push), _ = q(Array.prototype.splice), N = q(String.prototype.toLowerCase), I = q(String.prototype.toString), Ne = q(String.prototype.match), He = q(String.prototype.replace), Ea = q(String.prototype.indexOf), Ta = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), Ue = Pa(TypeError);
|
|
2289
2340
|
function q(R) {
|
|
2290
2341
|
return function(C) {
|
|
2291
|
-
for (var P = arguments.length, E = new Array(P > 1 ? P - 1 : 0),
|
|
2292
|
-
E[
|
|
2342
|
+
for (var P = arguments.length, E = new Array(P > 1 ? P - 1 : 0), B = 1; B < P; B++)
|
|
2343
|
+
E[B - 1] = arguments[B];
|
|
2293
2344
|
return i(R, C, E);
|
|
2294
2345
|
};
|
|
2295
2346
|
}
|
|
2296
|
-
function
|
|
2347
|
+
function Pa(R) {
|
|
2297
2348
|
return function() {
|
|
2298
2349
|
for (var C = arguments.length, P = new Array(C), E = 0; E < C; E++)
|
|
2299
2350
|
P[E] = arguments[E];
|
|
@@ -2305,27 +2356,27 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2305
2356
|
s && s(R, null);
|
|
2306
2357
|
let E = C.length;
|
|
2307
2358
|
for (; E--; ) {
|
|
2308
|
-
let
|
|
2309
|
-
if (typeof
|
|
2310
|
-
const ie = P(
|
|
2311
|
-
ie !==
|
|
2359
|
+
let B = C[E];
|
|
2360
|
+
if (typeof B == "string") {
|
|
2361
|
+
const ie = P(B);
|
|
2362
|
+
ie !== B && (a(C) || (C[E] = ie), B = ie);
|
|
2312
2363
|
}
|
|
2313
|
-
R[
|
|
2364
|
+
R[B] = !0;
|
|
2314
2365
|
}
|
|
2315
2366
|
return R;
|
|
2316
2367
|
}
|
|
2317
|
-
function
|
|
2368
|
+
function $a(R) {
|
|
2318
2369
|
for (let C = 0; C < R.length; C++)
|
|
2319
2370
|
ae(R, C) || (R[C] = null);
|
|
2320
2371
|
return R;
|
|
2321
2372
|
}
|
|
2322
2373
|
function ke(R) {
|
|
2323
|
-
const C =
|
|
2374
|
+
const C = h(null);
|
|
2324
2375
|
for (const [P, E] of r(R))
|
|
2325
|
-
ae(R, P) && (Array.isArray(E) ? C[P] =
|
|
2376
|
+
ae(R, P) && (Array.isArray(E) ? C[P] = $a(E) : E && typeof E == "object" && E.constructor === Object ? C[P] = ke(E) : C[P] = E);
|
|
2326
2377
|
return C;
|
|
2327
2378
|
}
|
|
2328
|
-
function
|
|
2379
|
+
function ze(R, C) {
|
|
2329
2380
|
for (; R !== null; ) {
|
|
2330
2381
|
const E = n(R, C);
|
|
2331
2382
|
if (E) {
|
|
@@ -2341,41 +2392,41 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2341
2392
|
}
|
|
2342
2393
|
return P;
|
|
2343
2394
|
}
|
|
2344
|
-
const
|
|
2395
|
+
const mr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Rt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Et = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), _a = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Tt = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ia = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), gr = c(["#text"]), vr = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Pt = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), br = 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"]), rt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Aa = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ma = u(/<%[\w\W]*|[\w\W]*%>/gm), La = u(/\$\{[\w\W]*/gm), Oa = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Fa = u(/^aria-[\-\w]+$/), yr = u(
|
|
2345
2396
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2346
2397
|
// eslint-disable-line no-useless-escape
|
|
2347
|
-
),
|
|
2398
|
+
), Da = u(/^(?:\w+script|data):/i), Na = u(
|
|
2348
2399
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
2349
2400
|
// eslint-disable-line no-control-regex
|
|
2350
|
-
),
|
|
2351
|
-
var
|
|
2401
|
+
), Cr = u(/^html$/i), Ha = u(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
2402
|
+
var Sr = /* @__PURE__ */ Object.freeze({
|
|
2352
2403
|
__proto__: null,
|
|
2353
|
-
ARIA_ATTR:
|
|
2354
|
-
ATTR_WHITESPACE:
|
|
2355
|
-
CUSTOM_ELEMENT:
|
|
2356
|
-
DATA_ATTR:
|
|
2357
|
-
DOCTYPE_NAME:
|
|
2358
|
-
ERB_EXPR:
|
|
2359
|
-
IS_ALLOWED_URI:
|
|
2360
|
-
IS_SCRIPT_OR_DATA:
|
|
2361
|
-
MUSTACHE_EXPR:
|
|
2362
|
-
TMPLIT_EXPR:
|
|
2404
|
+
ARIA_ATTR: Fa,
|
|
2405
|
+
ATTR_WHITESPACE: Na,
|
|
2406
|
+
CUSTOM_ELEMENT: Ha,
|
|
2407
|
+
DATA_ATTR: Oa,
|
|
2408
|
+
DOCTYPE_NAME: Cr,
|
|
2409
|
+
ERB_EXPR: Ma,
|
|
2410
|
+
IS_ALLOWED_URI: yr,
|
|
2411
|
+
IS_SCRIPT_OR_DATA: Da,
|
|
2412
|
+
MUSTACHE_EXPR: Aa,
|
|
2413
|
+
TMPLIT_EXPR: La
|
|
2363
2414
|
});
|
|
2364
|
-
const
|
|
2415
|
+
const je = {
|
|
2365
2416
|
element: 1,
|
|
2366
2417
|
text: 3,
|
|
2367
2418
|
// Deprecated
|
|
2368
2419
|
progressingInstruction: 7,
|
|
2369
2420
|
comment: 8,
|
|
2370
2421
|
document: 9
|
|
2371
|
-
},
|
|
2422
|
+
}, Ua = function() {
|
|
2372
2423
|
return typeof window > "u" ? null : window;
|
|
2373
|
-
},
|
|
2424
|
+
}, za = function(C, P) {
|
|
2374
2425
|
if (typeof C != "object" || typeof C.createPolicy != "function")
|
|
2375
2426
|
return null;
|
|
2376
2427
|
let E = null;
|
|
2377
|
-
const
|
|
2378
|
-
P && P.hasAttribute(
|
|
2428
|
+
const B = "data-tt-policy-suffix";
|
|
2429
|
+
P && P.hasAttribute(B) && (E = P.getAttribute(B));
|
|
2379
2430
|
const ie = "dompurify" + (E ? "#" + E : "");
|
|
2380
2431
|
try {
|
|
2381
2432
|
return C.createPolicy(ie, {
|
|
@@ -2389,7 +2440,7 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2389
2440
|
} catch {
|
|
2390
2441
|
return console.warn("TrustedTypes policy " + ie + " could not be created."), null;
|
|
2391
2442
|
}
|
|
2392
|
-
},
|
|
2443
|
+
}, kr = function() {
|
|
2393
2444
|
return {
|
|
2394
2445
|
afterSanitizeAttributes: [],
|
|
2395
2446
|
afterSanitizeElements: [],
|
|
@@ -2402,57 +2453,57 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2402
2453
|
uponSanitizeShadowNode: []
|
|
2403
2454
|
};
|
|
2404
2455
|
};
|
|
2405
|
-
function
|
|
2406
|
-
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2407
|
-
const C = (S) =>
|
|
2408
|
-
if (C.version = "3.2.4", C.removed = [], !R || !R.document || R.document.nodeType !==
|
|
2456
|
+
function wr() {
|
|
2457
|
+
let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ua();
|
|
2458
|
+
const C = (S) => wr(S);
|
|
2459
|
+
if (C.version = "3.2.4", C.removed = [], !R || !R.document || R.document.nodeType !== je.document || !R.Element)
|
|
2409
2460
|
return C.isSupported = !1, C;
|
|
2410
2461
|
let {
|
|
2411
2462
|
document: P
|
|
2412
2463
|
} = R;
|
|
2413
|
-
const E = P,
|
|
2464
|
+
const E = P, B = E.currentScript, {
|
|
2414
2465
|
DocumentFragment: ie,
|
|
2415
2466
|
HTMLTemplateElement: Re,
|
|
2416
2467
|
Node: $t,
|
|
2417
|
-
Element:
|
|
2418
|
-
NodeFilter:
|
|
2419
|
-
NamedNodeMap:
|
|
2468
|
+
Element: xr,
|
|
2469
|
+
NodeFilter: Be,
|
|
2470
|
+
NamedNodeMap: Ba = R.NamedNodeMap || R.MozNamedAttrMap,
|
|
2420
2471
|
HTMLFormElement: Va,
|
|
2421
|
-
DOMParser:
|
|
2422
|
-
trustedTypes:
|
|
2423
|
-
} = R, Ve =
|
|
2472
|
+
DOMParser: Wa,
|
|
2473
|
+
trustedTypes: st
|
|
2474
|
+
} = R, Ve = xr.prototype, Ga = ze(Ve, "cloneNode"), qa = ze(Ve, "remove"), Ya = ze(Ve, "nextSibling"), Za = ze(Ve, "childNodes"), at = ze(Ve, "parentNode");
|
|
2424
2475
|
if (typeof Re == "function") {
|
|
2425
2476
|
const S = P.createElement("template");
|
|
2426
2477
|
S.content && S.content.ownerDocument && (P = S.content.ownerDocument);
|
|
2427
2478
|
}
|
|
2428
|
-
let Y,
|
|
2479
|
+
let Y, We = "";
|
|
2429
2480
|
const {
|
|
2430
2481
|
implementation: _t,
|
|
2431
|
-
createNodeIterator:
|
|
2432
|
-
createDocumentFragment:
|
|
2433
|
-
getElementsByTagName:
|
|
2482
|
+
createNodeIterator: Qa,
|
|
2483
|
+
createDocumentFragment: Ka,
|
|
2484
|
+
getElementsByTagName: Xa
|
|
2434
2485
|
} = P, {
|
|
2435
|
-
importNode:
|
|
2486
|
+
importNode: Ja
|
|
2436
2487
|
} = E;
|
|
2437
|
-
let Z =
|
|
2438
|
-
C.isSupported = typeof r == "function" && typeof
|
|
2488
|
+
let Z = kr();
|
|
2489
|
+
C.isSupported = typeof r == "function" && typeof at == "function" && _t && _t.createHTMLDocument !== void 0;
|
|
2439
2490
|
const {
|
|
2440
2491
|
MUSTACHE_EXPR: It,
|
|
2441
2492
|
ERB_EXPR: At,
|
|
2442
2493
|
TMPLIT_EXPR: Mt,
|
|
2443
|
-
DATA_ATTR:
|
|
2444
|
-
ARIA_ATTR:
|
|
2445
|
-
IS_SCRIPT_OR_DATA:
|
|
2446
|
-
ATTR_WHITESPACE:
|
|
2447
|
-
CUSTOM_ELEMENT:
|
|
2448
|
-
} =
|
|
2494
|
+
DATA_ATTR: en,
|
|
2495
|
+
ARIA_ATTR: tn,
|
|
2496
|
+
IS_SCRIPT_OR_DATA: rn,
|
|
2497
|
+
ATTR_WHITESPACE: Rr,
|
|
2498
|
+
CUSTOM_ELEMENT: sn
|
|
2499
|
+
} = Sr;
|
|
2449
2500
|
let {
|
|
2450
|
-
IS_ALLOWED_URI:
|
|
2451
|
-
} =
|
|
2452
|
-
const
|
|
2501
|
+
IS_ALLOWED_URI: Er
|
|
2502
|
+
} = Sr, H = null;
|
|
2503
|
+
const Tr = x({}, [...mr, ...Rt, ...Et, ...Tt, ...gr]);
|
|
2453
2504
|
let z = null;
|
|
2454
|
-
const
|
|
2455
|
-
let O = Object.seal(
|
|
2505
|
+
const Pr = x({}, [...vr, ...Pt, ...br, ...rt]);
|
|
2506
|
+
let O = Object.seal(h(null, {
|
|
2456
2507
|
tagNameCheck: {
|
|
2457
2508
|
writable: !0,
|
|
2458
2509
|
configurable: !1,
|
|
@@ -2471,55 +2522,55 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2471
2522
|
enumerable: !0,
|
|
2472
2523
|
value: !1
|
|
2473
2524
|
}
|
|
2474
|
-
})),
|
|
2475
|
-
const
|
|
2476
|
-
let Ht = !0,
|
|
2477
|
-
const
|
|
2478
|
-
let
|
|
2479
|
-
const
|
|
2525
|
+
})), Ge = null, Lt = null, $r = !0, Ot = !0, _r = !1, Ir = !0, Ee = !1, Ft = !0, we = !1, Dt = !1, Nt = !1, Te = !1, nt = !1, ot = !1, Ar = !0, Mr = !1;
|
|
2526
|
+
const an = "user-content-";
|
|
2527
|
+
let Ht = !0, qe = !1, Pe = {}, $e = null;
|
|
2528
|
+
const Lr = 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"]);
|
|
2529
|
+
let Or = null;
|
|
2530
|
+
const Fr = x({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2480
2531
|
let Ut = null;
|
|
2481
|
-
const
|
|
2532
|
+
const Dr = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ct = "http://www.w3.org/1998/Math/MathML", it = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
|
|
2482
2533
|
let _e = le, zt = !1, jt = null;
|
|
2483
|
-
const
|
|
2484
|
-
let
|
|
2485
|
-
const
|
|
2486
|
-
let
|
|
2487
|
-
const
|
|
2534
|
+
const nn = x({}, [ct, it, le], I);
|
|
2535
|
+
let lt = x({}, ["mi", "mo", "mn", "ms", "mtext"]), ut = x({}, ["annotation-xml"]);
|
|
2536
|
+
const on = x({}, ["title", "style", "font", "a", "script"]);
|
|
2537
|
+
let Ye = null;
|
|
2538
|
+
const cn = ["application/xhtml+xml", "text/html"], ln = "text/html";
|
|
2488
2539
|
let U = null, Ie = null;
|
|
2489
|
-
const
|
|
2540
|
+
const un = P.createElement("form"), Nr = function(f) {
|
|
2490
2541
|
return f instanceof RegExp || f instanceof Function;
|
|
2491
|
-
},
|
|
2542
|
+
}, Bt = function() {
|
|
2492
2543
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2493
2544
|
if (!(Ie && Ie === f)) {
|
|
2494
|
-
if ((!f || typeof f != "object") && (f = {}), f = ke(f),
|
|
2495
|
-
|
|
2545
|
+
if ((!f || typeof f != "object") && (f = {}), f = ke(f), Ye = // eslint-disable-next-line unicorn/prefer-includes
|
|
2546
|
+
cn.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? ln : f.PARSER_MEDIA_TYPE, U = Ye === "application/xhtml+xml" ? I : N, H = ae(f, "ALLOWED_TAGS") ? x({}, f.ALLOWED_TAGS, U) : Tr, z = ae(f, "ALLOWED_ATTR") ? x({}, f.ALLOWED_ATTR, U) : Pr, jt = ae(f, "ALLOWED_NAMESPACES") ? x({}, f.ALLOWED_NAMESPACES, I) : nn, Ut = ae(f, "ADD_URI_SAFE_ATTR") ? x(ke(Dr), f.ADD_URI_SAFE_ATTR, U) : Dr, Or = ae(f, "ADD_DATA_URI_TAGS") ? x(ke(Fr), f.ADD_DATA_URI_TAGS, U) : Fr, $e = ae(f, "FORBID_CONTENTS") ? x({}, f.FORBID_CONTENTS, U) : Lr, Ge = ae(f, "FORBID_TAGS") ? x({}, f.FORBID_TAGS, U) : {}, Lt = ae(f, "FORBID_ATTR") ? x({}, f.FORBID_ATTR, U) : {}, Pe = ae(f, "USE_PROFILES") ? f.USE_PROFILES : !1, $r = f.ALLOW_ARIA_ATTR !== !1, Ot = f.ALLOW_DATA_ATTR !== !1, _r = f.ALLOW_UNKNOWN_PROTOCOLS || !1, Ir = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = f.SAFE_FOR_TEMPLATES || !1, Ft = f.SAFE_FOR_XML !== !1, we = f.WHOLE_DOCUMENT || !1, Te = f.RETURN_DOM || !1, nt = f.RETURN_DOM_FRAGMENT || !1, ot = f.RETURN_TRUSTED_TYPE || !1, Nt = f.FORCE_BODY || !1, Ar = f.SANITIZE_DOM !== !1, Mr = f.SANITIZE_NAMED_PROPS || !1, Ht = f.KEEP_CONTENT !== !1, qe = f.IN_PLACE || !1, Er = f.ALLOWED_URI_REGEXP || yr, _e = f.NAMESPACE || le, lt = f.MATHML_TEXT_INTEGRATION_POINTS || lt, ut = f.HTML_INTEGRATION_POINTS || ut, O = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Nr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Nr(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ee && (Ot = !1), nt && (Te = !0), Pe && (H = x({}, gr), z = [], Pe.html === !0 && (x(H, mr), x(z, vr)), Pe.svg === !0 && (x(H, Rt), x(z, Pt), x(z, rt)), Pe.svgFilters === !0 && (x(H, Et), x(z, Pt), x(z, rt)), Pe.mathMl === !0 && (x(H, Tt), x(z, br), x(z, rt))), f.ADD_TAGS && (H === Tr && (H = ke(H)), x(H, f.ADD_TAGS, U)), f.ADD_ATTR && (z === Pr && (z = ke(z)), x(z, f.ADD_ATTR, U)), f.ADD_URI_SAFE_ATTR && x(Ut, f.ADD_URI_SAFE_ATTR, U), f.FORBID_CONTENTS && ($e === Lr && ($e = ke($e)), x($e, f.FORBID_CONTENTS, U)), Ht && (H["#text"] = !0), we && x(H, ["html", "head", "body"]), H.table && (x(H, ["tbody"]), delete Ge.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
2496
2547
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2497
|
-
throw
|
|
2548
|
+
throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2498
2549
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2499
|
-
throw
|
|
2500
|
-
Y = f.TRUSTED_TYPES_POLICY,
|
|
2550
|
+
throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2551
|
+
Y = f.TRUSTED_TYPES_POLICY, We = Y.createHTML("");
|
|
2501
2552
|
} else
|
|
2502
|
-
Y === void 0 && (Y =
|
|
2553
|
+
Y === void 0 && (Y = za(st, B)), Y !== null && typeof We == "string" && (We = Y.createHTML(""));
|
|
2503
2554
|
c && c(f), Ie = f;
|
|
2504
2555
|
}
|
|
2505
|
-
},
|
|
2506
|
-
let m =
|
|
2556
|
+
}, Hr = x({}, [...Rt, ...Et, ..._a]), Ur = x({}, [...Tt, ...Ia]), hn = function(f) {
|
|
2557
|
+
let m = at(f);
|
|
2507
2558
|
(!m || !m.tagName) && (m = {
|
|
2508
2559
|
namespaceURI: _e,
|
|
2509
2560
|
tagName: "template"
|
|
2510
2561
|
});
|
|
2511
2562
|
const y = N(f.tagName), M = N(m.tagName);
|
|
2512
|
-
return jt[f.namespaceURI] ? f.namespaceURI ===
|
|
2563
|
+
return jt[f.namespaceURI] ? f.namespaceURI === it ? m.namespaceURI === le ? y === "svg" : m.namespaceURI === ct ? y === "svg" && (M === "annotation-xml" || lt[M]) : !!Hr[y] : f.namespaceURI === ct ? m.namespaceURI === le ? y === "math" : m.namespaceURI === it ? y === "math" && ut[M] : !!Ur[y] : f.namespaceURI === le ? m.namespaceURI === it && !ut[M] || m.namespaceURI === ct && !lt[M] ? !1 : !Ur[y] && (on[y] || !Hr[y]) : !!(Ye === "application/xhtml+xml" && jt[f.namespaceURI]) : !1;
|
|
2513
2564
|
}, oe = function(f) {
|
|
2514
2565
|
T(C.removed, {
|
|
2515
2566
|
element: f
|
|
2516
2567
|
});
|
|
2517
2568
|
try {
|
|
2518
|
-
|
|
2569
|
+
at(f).removeChild(f);
|
|
2519
2570
|
} catch {
|
|
2520
|
-
|
|
2571
|
+
qa(f);
|
|
2521
2572
|
}
|
|
2522
|
-
},
|
|
2573
|
+
}, ht = function(f, m) {
|
|
2523
2574
|
try {
|
|
2524
2575
|
T(C.removed, {
|
|
2525
2576
|
attribute: m.getAttributeNode(f),
|
|
@@ -2532,7 +2583,7 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2532
2583
|
});
|
|
2533
2584
|
}
|
|
2534
2585
|
if (m.removeAttribute(f), f === "is")
|
|
2535
|
-
if (Te ||
|
|
2586
|
+
if (Te || nt)
|
|
2536
2587
|
try {
|
|
2537
2588
|
oe(m);
|
|
2538
2589
|
} catch {
|
|
@@ -2542,41 +2593,41 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2542
2593
|
m.setAttribute(f, "");
|
|
2543
2594
|
} catch {
|
|
2544
2595
|
}
|
|
2545
|
-
},
|
|
2596
|
+
}, zr = function(f) {
|
|
2546
2597
|
let m = null, y = null;
|
|
2547
2598
|
if (Nt)
|
|
2548
2599
|
f = "<remove></remove>" + f;
|
|
2549
2600
|
else {
|
|
2550
|
-
const j =
|
|
2601
|
+
const j = Ne(f, /^[\r\n\t ]+/);
|
|
2551
2602
|
y = j && j[0];
|
|
2552
2603
|
}
|
|
2553
|
-
|
|
2604
|
+
Ye === "application/xhtml+xml" && _e === le && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
2554
2605
|
const M = Y ? Y.createHTML(f) : f;
|
|
2555
2606
|
if (_e === le)
|
|
2556
2607
|
try {
|
|
2557
|
-
m = new
|
|
2608
|
+
m = new Wa().parseFromString(M, Ye);
|
|
2558
2609
|
} catch {
|
|
2559
2610
|
}
|
|
2560
2611
|
if (!m || !m.documentElement) {
|
|
2561
2612
|
m = _t.createDocument(_e, "template", null);
|
|
2562
2613
|
try {
|
|
2563
|
-
m.documentElement.innerHTML = zt ?
|
|
2614
|
+
m.documentElement.innerHTML = zt ? We : M;
|
|
2564
2615
|
} catch {
|
|
2565
2616
|
}
|
|
2566
2617
|
}
|
|
2567
|
-
const
|
|
2568
|
-
return f && y &&
|
|
2569
|
-
},
|
|
2570
|
-
return
|
|
2618
|
+
const V = m.body || m.documentElement;
|
|
2619
|
+
return f && y && V.insertBefore(P.createTextNode(y), V.childNodes[0] || null), _e === le ? Xa.call(m, we ? "html" : "body")[0] : we ? m.documentElement : V;
|
|
2620
|
+
}, jr = function(f) {
|
|
2621
|
+
return Qa.call(
|
|
2571
2622
|
f.ownerDocument || f,
|
|
2572
2623
|
f,
|
|
2573
2624
|
// eslint-disable-next-line no-bitwise
|
|
2574
|
-
|
|
2625
|
+
Be.SHOW_ELEMENT | Be.SHOW_COMMENT | Be.SHOW_TEXT | Be.SHOW_PROCESSING_INSTRUCTION | Be.SHOW_CDATA_SECTION,
|
|
2575
2626
|
null
|
|
2576
2627
|
);
|
|
2577
|
-
},
|
|
2578
|
-
return f instanceof Va && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof
|
|
2579
|
-
},
|
|
2628
|
+
}, Vt = function(f) {
|
|
2629
|
+
return f instanceof Va && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof Ba) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
|
|
2630
|
+
}, Br = function(f) {
|
|
2580
2631
|
return typeof $t == "function" && f instanceof $t;
|
|
2581
2632
|
};
|
|
2582
2633
|
function ue(S, f, m) {
|
|
@@ -2586,52 +2637,52 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2586
2637
|
}
|
|
2587
2638
|
const Vr = function(f) {
|
|
2588
2639
|
let m = null;
|
|
2589
|
-
if (ue(Z.beforeSanitizeElements, f, null),
|
|
2640
|
+
if (ue(Z.beforeSanitizeElements, f, null), Vt(f))
|
|
2590
2641
|
return oe(f), !0;
|
|
2591
2642
|
const y = U(f.nodeName);
|
|
2592
2643
|
if (ue(Z.uponSanitizeElement, f, {
|
|
2593
2644
|
tagName: y,
|
|
2594
2645
|
allowedTags: H
|
|
2595
|
-
}), f.hasChildNodes() && !
|
|
2646
|
+
}), f.hasChildNodes() && !Br(f.firstElementChild) && G(/<[/\w]/g, f.innerHTML) && G(/<[/\w]/g, f.textContent) || f.nodeType === je.progressingInstruction || Ft && f.nodeType === je.comment && G(/<[/\w]/g, f.data))
|
|
2596
2647
|
return oe(f), !0;
|
|
2597
|
-
if (!H[y] ||
|
|
2598
|
-
if (!
|
|
2648
|
+
if (!H[y] || Ge[y]) {
|
|
2649
|
+
if (!Ge[y] && Gr(y) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2599
2650
|
return !1;
|
|
2600
2651
|
if (Ht && !$e[y]) {
|
|
2601
|
-
const M =
|
|
2602
|
-
if (
|
|
2603
|
-
const j =
|
|
2652
|
+
const M = at(f) || f.parentNode, V = Za(f) || f.childNodes;
|
|
2653
|
+
if (V && M) {
|
|
2654
|
+
const j = V.length;
|
|
2604
2655
|
for (let J = j - 1; J >= 0; --J) {
|
|
2605
|
-
const ce =
|
|
2606
|
-
ce.__removalCount = (f.__removalCount || 0) + 1, M.insertBefore(ce,
|
|
2656
|
+
const ce = Ga(V[J], !0);
|
|
2657
|
+
ce.__removalCount = (f.__removalCount || 0) + 1, M.insertBefore(ce, Ya(f));
|
|
2607
2658
|
}
|
|
2608
2659
|
}
|
|
2609
2660
|
}
|
|
2610
2661
|
return oe(f), !0;
|
|
2611
2662
|
}
|
|
2612
|
-
return f instanceof
|
|
2613
|
-
m =
|
|
2663
|
+
return f instanceof xr && !hn(f) || (y === "noscript" || y === "noembed" || y === "noframes") && G(/<\/no(script|embed|frames)/i, f.innerHTML) ? (oe(f), !0) : (Ee && f.nodeType === je.text && (m = f.textContent, g([It, At, Mt], (M) => {
|
|
2664
|
+
m = He(m, M, " ");
|
|
2614
2665
|
}), f.textContent !== m && (T(C.removed, {
|
|
2615
2666
|
element: f.cloneNode()
|
|
2616
2667
|
}), f.textContent = m)), ue(Z.afterSanitizeElements, f, null), !1);
|
|
2617
|
-
},
|
|
2618
|
-
if (
|
|
2668
|
+
}, Wr = function(f, m, y) {
|
|
2669
|
+
if (Ar && (m === "id" || m === "name") && (y in P || y in un))
|
|
2619
2670
|
return !1;
|
|
2620
|
-
if (!(Ot && !Lt[m] && G(
|
|
2621
|
-
if (!(
|
|
2671
|
+
if (!(Ot && !Lt[m] && G(en, m))) {
|
|
2672
|
+
if (!($r && G(tn, m))) {
|
|
2622
2673
|
if (!z[m] || Lt[m]) {
|
|
2623
2674
|
if (
|
|
2624
2675
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2625
2676
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2626
2677
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2627
|
-
!(
|
|
2678
|
+
!(Gr(f) && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, f) || O.tagNameCheck instanceof Function && O.tagNameCheck(f)) && (O.attributeNameCheck instanceof RegExp && G(O.attributeNameCheck, m) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(m)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2628
2679
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2629
2680
|
m === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && G(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2630
2681
|
) return !1;
|
|
2631
2682
|
} else if (!Ut[m]) {
|
|
2632
|
-
if (!G(
|
|
2633
|
-
if (!((m === "src" || m === "xlink:href" || m === "href") && f !== "script" &&
|
|
2634
|
-
if (!(
|
|
2683
|
+
if (!G(Er, He(y, Rr, ""))) {
|
|
2684
|
+
if (!((m === "src" || m === "xlink:href" || m === "href") && f !== "script" && Ea(y, "data:") === 0 && Or[f])) {
|
|
2685
|
+
if (!(_r && !G(rn, He(y, Rr, "")))) {
|
|
2635
2686
|
if (y)
|
|
2636
2687
|
return !1;
|
|
2637
2688
|
}
|
|
@@ -2641,14 +2692,14 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2641
2692
|
}
|
|
2642
2693
|
}
|
|
2643
2694
|
return !0;
|
|
2644
|
-
}, Wr = function(f) {
|
|
2645
|
-
return f !== "annotation-xml" && De(f, rn);
|
|
2646
2695
|
}, Gr = function(f) {
|
|
2696
|
+
return f !== "annotation-xml" && Ne(f, sn);
|
|
2697
|
+
}, qr = function(f) {
|
|
2647
2698
|
ue(Z.beforeSanitizeAttributes, f, null);
|
|
2648
2699
|
const {
|
|
2649
2700
|
attributes: m
|
|
2650
2701
|
} = f;
|
|
2651
|
-
if (!m ||
|
|
2702
|
+
if (!m || Vt(f))
|
|
2652
2703
|
return;
|
|
2653
2704
|
const y = {
|
|
2654
2705
|
attrName: "",
|
|
@@ -2659,29 +2710,29 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2659
2710
|
};
|
|
2660
2711
|
let M = m.length;
|
|
2661
2712
|
for (; M--; ) {
|
|
2662
|
-
const
|
|
2713
|
+
const V = m[M], {
|
|
2663
2714
|
name: j,
|
|
2664
2715
|
namespaceURI: J,
|
|
2665
2716
|
value: ce
|
|
2666
|
-
} =
|
|
2667
|
-
let Q = j === "value" ? ce :
|
|
2668
|
-
if (y.attrName =
|
|
2669
|
-
|
|
2717
|
+
} = V, Ze = U(j);
|
|
2718
|
+
let Q = j === "value" ? ce : Ta(ce);
|
|
2719
|
+
if (y.attrName = Ze, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, f, y), Q = y.attrValue, Mr && (Ze === "id" || Ze === "name") && (ht(j, f), Q = an + Q), Ft && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
|
|
2720
|
+
ht(j, f);
|
|
2670
2721
|
continue;
|
|
2671
2722
|
}
|
|
2672
|
-
if (y.forceKeepAttr || (
|
|
2723
|
+
if (y.forceKeepAttr || (ht(j, f), !y.keepAttr))
|
|
2673
2724
|
continue;
|
|
2674
|
-
if (!
|
|
2675
|
-
|
|
2725
|
+
if (!Ir && G(/\/>/i, Q)) {
|
|
2726
|
+
ht(j, f);
|
|
2676
2727
|
continue;
|
|
2677
2728
|
}
|
|
2678
|
-
Ee && g([It, At, Mt], (
|
|
2679
|
-
Q =
|
|
2729
|
+
Ee && g([It, At, Mt], (Zr) => {
|
|
2730
|
+
Q = He(Q, Zr, " ");
|
|
2680
2731
|
});
|
|
2681
|
-
const
|
|
2682
|
-
if (
|
|
2683
|
-
if (Y && typeof
|
|
2684
|
-
switch (
|
|
2732
|
+
const Yr = U(f.nodeName);
|
|
2733
|
+
if (Wr(Yr, Ze, Q)) {
|
|
2734
|
+
if (Y && typeof st == "object" && typeof st.getAttributeType == "function" && !J)
|
|
2735
|
+
switch (st.getAttributeType(Yr, Ze)) {
|
|
2685
2736
|
case "TrustedHTML": {
|
|
2686
2737
|
Q = Y.createHTML(Q);
|
|
2687
2738
|
break;
|
|
@@ -2692,72 +2743,72 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2692
2743
|
}
|
|
2693
2744
|
}
|
|
2694
2745
|
try {
|
|
2695
|
-
J ? f.setAttributeNS(J, j, Q) : f.setAttribute(j, Q),
|
|
2746
|
+
J ? f.setAttributeNS(J, j, Q) : f.setAttribute(j, Q), Vt(f) ? oe(f) : v(C.removed);
|
|
2696
2747
|
} catch {
|
|
2697
2748
|
}
|
|
2698
2749
|
}
|
|
2699
2750
|
}
|
|
2700
2751
|
ue(Z.afterSanitizeAttributes, f, null);
|
|
2701
|
-
},
|
|
2752
|
+
}, fn = function S(f) {
|
|
2702
2753
|
let m = null;
|
|
2703
|
-
const y =
|
|
2754
|
+
const y = jr(f);
|
|
2704
2755
|
for (ue(Z.beforeSanitizeShadowDOM, f, null); m = y.nextNode(); )
|
|
2705
|
-
ue(Z.uponSanitizeShadowNode, m, null), Vr(m),
|
|
2756
|
+
ue(Z.uponSanitizeShadowNode, m, null), Vr(m), qr(m), m.content instanceof ie && S(m.content);
|
|
2706
2757
|
ue(Z.afterSanitizeShadowDOM, f, null);
|
|
2707
2758
|
};
|
|
2708
2759
|
return C.sanitize = function(S) {
|
|
2709
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, y = null, M = null,
|
|
2710
|
-
if (zt = !S, zt && (S = "<!-->"), typeof S != "string" && !
|
|
2760
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, y = null, M = null, V = null;
|
|
2761
|
+
if (zt = !S, zt && (S = "<!-->"), typeof S != "string" && !Br(S))
|
|
2711
2762
|
if (typeof S.toString == "function") {
|
|
2712
2763
|
if (S = S.toString(), typeof S != "string")
|
|
2713
|
-
throw
|
|
2764
|
+
throw Ue("dirty is not a string, aborting");
|
|
2714
2765
|
} else
|
|
2715
|
-
throw
|
|
2766
|
+
throw Ue("toString is not a function");
|
|
2716
2767
|
if (!C.isSupported)
|
|
2717
2768
|
return S;
|
|
2718
|
-
if (Dt ||
|
|
2769
|
+
if (Dt || Bt(f), C.removed = [], typeof S == "string" && (qe = !1), qe) {
|
|
2719
2770
|
if (S.nodeName) {
|
|
2720
2771
|
const ce = U(S.nodeName);
|
|
2721
|
-
if (!H[ce] ||
|
|
2722
|
-
throw
|
|
2772
|
+
if (!H[ce] || Ge[ce])
|
|
2773
|
+
throw Ue("root node is forbidden and cannot be sanitized in-place");
|
|
2723
2774
|
}
|
|
2724
2775
|
} else if (S instanceof $t)
|
|
2725
|
-
m =
|
|
2776
|
+
m = zr("<!---->"), y = m.ownerDocument.importNode(S, !0), y.nodeType === je.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? m = y : m.appendChild(y);
|
|
2726
2777
|
else {
|
|
2727
2778
|
if (!Te && !Ee && !we && // eslint-disable-next-line unicorn/prefer-includes
|
|
2728
2779
|
S.indexOf("<") === -1)
|
|
2729
|
-
return Y &&
|
|
2730
|
-
if (m =
|
|
2731
|
-
return Te ? null :
|
|
2780
|
+
return Y && ot ? Y.createHTML(S) : S;
|
|
2781
|
+
if (m = zr(S), !m)
|
|
2782
|
+
return Te ? null : ot ? We : "";
|
|
2732
2783
|
}
|
|
2733
2784
|
m && Nt && oe(m.firstChild);
|
|
2734
|
-
const j =
|
|
2785
|
+
const j = jr(qe ? S : m);
|
|
2735
2786
|
for (; M = j.nextNode(); )
|
|
2736
|
-
Vr(M),
|
|
2737
|
-
if (
|
|
2787
|
+
Vr(M), qr(M), M.content instanceof ie && fn(M.content);
|
|
2788
|
+
if (qe)
|
|
2738
2789
|
return S;
|
|
2739
2790
|
if (Te) {
|
|
2740
|
-
if (
|
|
2741
|
-
for (
|
|
2742
|
-
|
|
2791
|
+
if (nt)
|
|
2792
|
+
for (V = Ka.call(m.ownerDocument); m.firstChild; )
|
|
2793
|
+
V.appendChild(m.firstChild);
|
|
2743
2794
|
else
|
|
2744
|
-
|
|
2745
|
-
return (z.shadowroot || z.shadowrootmode) && (
|
|
2795
|
+
V = m;
|
|
2796
|
+
return (z.shadowroot || z.shadowrootmode) && (V = Ja.call(E, V, !0)), V;
|
|
2746
2797
|
}
|
|
2747
2798
|
let J = we ? m.outerHTML : m.innerHTML;
|
|
2748
|
-
return we && H["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(
|
|
2799
|
+
return we && H["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && G(Cr, m.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
|
|
2749
2800
|
` + J), Ee && g([It, At, Mt], (ce) => {
|
|
2750
|
-
J =
|
|
2751
|
-
}), Y &&
|
|
2801
|
+
J = He(J, ce, " ");
|
|
2802
|
+
}), Y && ot ? Y.createHTML(J) : J;
|
|
2752
2803
|
}, C.setConfig = function() {
|
|
2753
2804
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2754
|
-
|
|
2805
|
+
Bt(S), Dt = !0;
|
|
2755
2806
|
}, C.clearConfig = function() {
|
|
2756
2807
|
Ie = null, Dt = !1;
|
|
2757
2808
|
}, C.isValidAttribute = function(S, f, m) {
|
|
2758
|
-
Ie ||
|
|
2809
|
+
Ie || Bt({});
|
|
2759
2810
|
const y = U(S), M = U(f);
|
|
2760
|
-
return
|
|
2811
|
+
return Wr(y, M, m);
|
|
2761
2812
|
}, C.addHook = function(S, f) {
|
|
2762
2813
|
typeof f == "function" && T(Z[S], f);
|
|
2763
2814
|
}, C.removeHook = function(S, f) {
|
|
@@ -2769,14 +2820,14 @@ var ec = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2769
2820
|
}, C.removeHooks = function(S) {
|
|
2770
2821
|
Z[S] = [];
|
|
2771
2822
|
}, C.removeAllHooks = function() {
|
|
2772
|
-
Z =
|
|
2823
|
+
Z = kr();
|
|
2773
2824
|
}, C;
|
|
2774
2825
|
}
|
|
2775
|
-
var
|
|
2776
|
-
return
|
|
2826
|
+
var ja = wr();
|
|
2827
|
+
return ja;
|
|
2777
2828
|
});
|
|
2778
|
-
})(
|
|
2779
|
-
const tc =
|
|
2829
|
+
})(Ys);
|
|
2830
|
+
const tc = Ys.exports, tt = (e, ...t) => {
|
|
2780
2831
|
let r = e[0];
|
|
2781
2832
|
for (let s = 0; s < t.length; s++)
|
|
2782
2833
|
r += tc.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
|
|
@@ -2828,9 +2879,12 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
2828
2879
|
(r = this.storeUnsubscribe) == null || r.call(this), (s = this.intersectionObserver) == null || s.disconnect(), this.isComponentConnected = !1, clearTimeout(this.adContainerRenderedTimeout);
|
|
2829
2880
|
}
|
|
2830
2881
|
renderADMAd() {
|
|
2882
|
+
var a, o, n, c;
|
|
2831
2883
|
const r = this.adClientResponseItem;
|
|
2832
|
-
if (r.admAd)
|
|
2833
|
-
return
|
|
2884
|
+
if (!r.admAd)
|
|
2885
|
+
return;
|
|
2886
|
+
let s = "<p>Ad Marketplace Ad Placeholder</p>";
|
|
2887
|
+
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: tt })), l("div", { class: "searchcraft-ad searchcraft-adm-ad", "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: s });
|
|
2834
2888
|
}
|
|
2835
2889
|
renderCustomAd() {
|
|
2836
2890
|
var o, n;
|
|
@@ -2839,12 +2893,12 @@ const sc = /* @__PURE__ */ D(class extends F {
|
|
|
2839
2893
|
return r && (a = r({
|
|
2840
2894
|
searchTerm: this.searchTerm || "",
|
|
2841
2895
|
adContainerId: this.adContainerId
|
|
2842
|
-
}, { html:
|
|
2896
|
+
}, { html: tt })), l("div", { class: "searchcraft-ad searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
|
|
2843
2897
|
}
|
|
2844
2898
|
renderNativoAd() {
|
|
2845
2899
|
var s;
|
|
2846
2900
|
const r = ((s = this.core) == null ? void 0 : s.config.nativoAdClassName) || "ntv-item";
|
|
2847
|
-
return l("div", { class: r });
|
|
2901
|
+
return l("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: re("searchcraft-ad", r), "data-searchcraft-ad-container-id": this.adContainerId });
|
|
2848
2902
|
}
|
|
2849
2903
|
render() {
|
|
2850
2904
|
var r, s;
|
|
@@ -2886,44 +2940,7 @@ function kt() {
|
|
|
2886
2940
|
}
|
|
2887
2941
|
});
|
|
2888
2942
|
}
|
|
2889
|
-
const ac = kt
|
|
2890
|
-
var qs = { exports: {} };
|
|
2891
|
-
/*!
|
|
2892
|
-
Copyright (c) 2018 Jed Watson.
|
|
2893
|
-
Licensed under the MIT License (MIT), see
|
|
2894
|
-
http://jedwatson.github.io/classnames
|
|
2895
|
-
*/
|
|
2896
|
-
(function(e) {
|
|
2897
|
-
(function() {
|
|
2898
|
-
var t = {}.hasOwnProperty;
|
|
2899
|
-
function r() {
|
|
2900
|
-
for (var o = "", n = 0; n < arguments.length; n++) {
|
|
2901
|
-
var c = arguments[n];
|
|
2902
|
-
c && (o = a(o, s(c)));
|
|
2903
|
-
}
|
|
2904
|
-
return o;
|
|
2905
|
-
}
|
|
2906
|
-
function s(o) {
|
|
2907
|
-
if (typeof o == "string" || typeof o == "number")
|
|
2908
|
-
return o;
|
|
2909
|
-
if (typeof o != "object")
|
|
2910
|
-
return "";
|
|
2911
|
-
if (Array.isArray(o))
|
|
2912
|
-
return r.apply(null, o);
|
|
2913
|
-
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
2914
|
-
return o.toString();
|
|
2915
|
-
var n = "";
|
|
2916
|
-
for (var c in o)
|
|
2917
|
-
t.call(o, c) && o[c] && (n = a(n, c));
|
|
2918
|
-
return n;
|
|
2919
|
-
}
|
|
2920
|
-
function a(o, n) {
|
|
2921
|
-
return n ? o ? o + " " + n : o + n : o;
|
|
2922
|
-
}
|
|
2923
|
-
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
2924
|
-
})();
|
|
2925
|
-
})(qs);
|
|
2926
|
-
const se = qs.exports, nc = /* @__PURE__ */ D(class extends F {
|
|
2943
|
+
const ac = kt, nc = /* @__PURE__ */ D(class extends F {
|
|
2927
2944
|
constructor() {
|
|
2928
2945
|
super();
|
|
2929
2946
|
/**
|
|
@@ -2964,11 +2981,11 @@ const se = qs.exports, nc = /* @__PURE__ */ D(class extends F {
|
|
|
2964
2981
|
this.__registerHost(), this.buttonClick = ye(this, "buttonClick");
|
|
2965
2982
|
}
|
|
2966
2983
|
render() {
|
|
2967
|
-
return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class:
|
|
2984
|
+
return l("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: re("searchcraft-button", {
|
|
2968
2985
|
"searchcraft-button-primary": this.hierarchy === "primary",
|
|
2969
2986
|
"searchcraft-button-tertiary": this.hierarchy === "tertiary",
|
|
2970
2987
|
"searchcraft-button-disabled": this.disabled
|
|
2971
|
-
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(
|
|
2988
|
+
}), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : l(ro, null, this.iconPosition === "left" && this.icon, l("span", null, this.label), this.iconPosition === "right" && this.icon));
|
|
2972
2989
|
}
|
|
2973
2990
|
}, [0, "searchcraft-button", {
|
|
2974
2991
|
hierarchy: [1],
|
|
@@ -3010,16 +3027,16 @@ function xt() {
|
|
|
3010
3027
|
});
|
|
3011
3028
|
}
|
|
3012
3029
|
const ic = xt;
|
|
3013
|
-
function
|
|
3030
|
+
function Zs(e, t) {
|
|
3014
3031
|
const r = { ...e };
|
|
3015
3032
|
for (const s in t)
|
|
3016
|
-
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] =
|
|
3033
|
+
t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Zs(e[s], t[s]) : r[s] = t[s]);
|
|
3017
3034
|
return r;
|
|
3018
3035
|
}
|
|
3019
3036
|
function lc(e) {
|
|
3020
3037
|
return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
|
|
3021
3038
|
}
|
|
3022
|
-
function
|
|
3039
|
+
function vs(e) {
|
|
3023
3040
|
const t = {}, r = (s) => {
|
|
3024
3041
|
var a;
|
|
3025
3042
|
t[s.path] = {
|
|
@@ -3043,23 +3060,23 @@ function uc(e) {
|
|
|
3043
3060
|
return;
|
|
3044
3061
|
const a = s.path.substring(1).split("/");
|
|
3045
3062
|
let o = t, n = "";
|
|
3046
|
-
a.forEach((c,
|
|
3047
|
-
const
|
|
3048
|
-
o.children[
|
|
3063
|
+
a.forEach((c, u) => {
|
|
3064
|
+
const h = `${n}/${c}`;
|
|
3065
|
+
o.children[h] || (o.children[h] = {
|
|
3049
3066
|
count: 0,
|
|
3050
|
-
path:
|
|
3067
|
+
path: h,
|
|
3051
3068
|
children: {}
|
|
3052
|
-
}),
|
|
3069
|
+
}), u === a.length - 1 && (o.children[h].count = s.count), n = h, o = o.children[h];
|
|
3053
3070
|
});
|
|
3054
3071
|
}), t;
|
|
3055
3072
|
}
|
|
3056
|
-
function
|
|
3073
|
+
function Qs(e) {
|
|
3057
3074
|
const t = {
|
|
3058
3075
|
count: e.count,
|
|
3059
3076
|
path: e.path,
|
|
3060
3077
|
children: []
|
|
3061
3078
|
};
|
|
3062
|
-
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) =>
|
|
3079
|
+
return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Qs(r))), t;
|
|
3063
3080
|
}
|
|
3064
3081
|
function hc(e, t) {
|
|
3065
3082
|
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("/"))));
|
|
@@ -3074,7 +3091,7 @@ function fc(e, t, r) {
|
|
|
3074
3091
|
count: 0,
|
|
3075
3092
|
path: "/",
|
|
3076
3093
|
children: a
|
|
3077
|
-
}, c =
|
|
3094
|
+
}, c = vs(o), u = vs(n), h = hc(c, u), i = Zs(h, u), p = uc(i), g = Qs(p);
|
|
3078
3095
|
return {
|
|
3079
3096
|
[e]: g.children
|
|
3080
3097
|
};
|
|
@@ -3113,11 +3130,11 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3113
3130
|
handleStateUpdate(r) {
|
|
3114
3131
|
const s = r.searchResponseFacetPrime, a = r.searchResponseTimeTaken;
|
|
3115
3132
|
if (this.fieldName) {
|
|
3116
|
-
if (
|
|
3133
|
+
if (r.searchTerm || (this.facetRoot = void 0), (r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && s) {
|
|
3117
3134
|
this.facetRoot = void 0;
|
|
3118
3135
|
const o = s.find((n) => this.fieldName === Object.keys(n)[0]);
|
|
3119
3136
|
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = fc(this.fieldName, this.baseFacetRoot, o));
|
|
3120
|
-
}
|
|
3137
|
+
} else !s && Object.keys(this.selectedPaths).length === 0 && (this.facetRoot = void 0);
|
|
3121
3138
|
this.lastSearchTerm = r.searchTerm, this.lastSearchMode = r.searchMode, this.lastSortType = r.sortType, this.lastTimeTaken = a;
|
|
3122
3139
|
}
|
|
3123
3140
|
}
|
|
@@ -3138,8 +3155,8 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3138
3155
|
[r]: !0
|
|
3139
3156
|
};
|
|
3140
3157
|
else {
|
|
3141
|
-
const c = Object.keys(this.selectedPaths).filter((
|
|
3142
|
-
this.selectedPaths = c.reduce((
|
|
3158
|
+
const c = Object.keys(this.selectedPaths).filter((u) => !u.includes(r));
|
|
3159
|
+
this.selectedPaths = c.reduce((u, h) => (u[h] = !0, u), {});
|
|
3143
3160
|
}
|
|
3144
3161
|
const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = lc(a);
|
|
3145
3162
|
(n = this.facetSelectionUpdated) == null || n.emit({ paths: o });
|
|
@@ -3154,7 +3171,7 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3154
3171
|
const o = a.children ? (n = a.children) == null ? void 0 : n.some((c) => this.selectedPaths[c.path]) : !1;
|
|
3155
3172
|
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: {
|
|
3156
3173
|
display: this.selectedPaths[a.path] ? "flex" : "none"
|
|
3157
|
-
} }, l("div", { class: "searchcraft-facet-list-checkbox-input-wrapper searchcraft-facet-child-list-checkbox-input-wrapper" }, l("input", { class: "searchcraft-facet-list-checkbox-input searchcraft-facet-child-list-checkbox-input", checked: this.selectedPaths[c.path], onChange: (
|
|
3174
|
+
} }, 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) => {
|
|
3158
3175
|
this.handleCheckboxChange(c.path);
|
|
3159
3176
|
}, 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)))));
|
|
3160
3177
|
}));
|
|
@@ -3166,7 +3183,7 @@ const dc = /* @__PURE__ */ D(class extends F {
|
|
|
3166
3183
|
selectedPaths: [32],
|
|
3167
3184
|
lastTimeTaken: [32]
|
|
3168
3185
|
}]);
|
|
3169
|
-
function
|
|
3186
|
+
function Ks() {
|
|
3170
3187
|
if (typeof customElements > "u")
|
|
3171
3188
|
return;
|
|
3172
3189
|
["searchcraft-facet-list"].forEach((t) => {
|
|
@@ -3177,8 +3194,8 @@ function Qs() {
|
|
|
3177
3194
|
}
|
|
3178
3195
|
});
|
|
3179
3196
|
}
|
|
3180
|
-
const pc =
|
|
3181
|
-
function
|
|
3197
|
+
const pc = Ks;
|
|
3198
|
+
function Qe(e, t) {
|
|
3182
3199
|
if (e && t)
|
|
3183
3200
|
return t.fieldNames.map((r) => {
|
|
3184
3201
|
let s = e[r.fieldName];
|
|
@@ -3196,7 +3213,7 @@ function Ze(e, t) {
|
|
|
3196
3213
|
return s;
|
|
3197
3214
|
}).filter((r) => !!r).join(t.delimiter || " ");
|
|
3198
3215
|
}
|
|
3199
|
-
function
|
|
3216
|
+
function Xs(e) {
|
|
3200
3217
|
switch (e) {
|
|
3201
3218
|
case "hour":
|
|
3202
3219
|
return 36e5;
|
|
@@ -3210,7 +3227,7 @@ function Ks(e) {
|
|
|
3210
3227
|
return 36e5;
|
|
3211
3228
|
}
|
|
3212
3229
|
}
|
|
3213
|
-
function
|
|
3230
|
+
function Js(e) {
|
|
3214
3231
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3215
3232
|
}
|
|
3216
3233
|
function mc(e, t = "en-US", r = {
|
|
@@ -3220,8 +3237,8 @@ function mc(e, t = "en-US", r = {
|
|
|
3220
3237
|
}) {
|
|
3221
3238
|
const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
|
|
3222
3239
|
if (o < n) {
|
|
3223
|
-
const c = Math.trunc(o / 1e3),
|
|
3224
|
-
return i >= 1 ? p.format(-i, "day") :
|
|
3240
|
+
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);
|
|
3241
|
+
return i >= 1 ? p.format(-i, "day") : h >= 1 ? p.format(-h, "hour") : u >= 1 ? p.format(-u, "minute") : p.format(0, "second");
|
|
3225
3242
|
}
|
|
3226
3243
|
return new Intl.DateTimeFormat(t, r).format(s);
|
|
3227
3244
|
}
|
|
@@ -3239,7 +3256,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
3239
3256
|
/**
|
|
3240
3257
|
* The granularity that the value must adhere to.
|
|
3241
3258
|
*/
|
|
3242
|
-
d(this, "granularity",
|
|
3259
|
+
d(this, "granularity", Xs("month"));
|
|
3243
3260
|
/** The type of data allowed. */
|
|
3244
3261
|
d(this, "dataType", "number");
|
|
3245
3262
|
d(this, "endValue", this.max);
|
|
@@ -3274,7 +3291,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
3274
3291
|
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: {
|
|
3275
3292
|
left: `${a}%`,
|
|
3276
3293
|
width: `${o - a}%`
|
|
3277
|
-
} }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class:
|
|
3294
|
+
} }), l("input", { key: "f07a91d441d277b8e9eba34e39093393a44bbf53", class: re("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: re("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)));
|
|
3278
3295
|
}
|
|
3279
3296
|
}, [0, "searchcraft-slider", {
|
|
3280
3297
|
max: [2],
|
|
@@ -3285,7 +3302,7 @@ const gc = /* @__PURE__ */ D(class extends F {
|
|
|
3285
3302
|
startValue: [32],
|
|
3286
3303
|
lastFocusedHandle: [32]
|
|
3287
3304
|
}]);
|
|
3288
|
-
function
|
|
3305
|
+
function ea() {
|
|
3289
3306
|
if (typeof customElements > "u")
|
|
3290
3307
|
return;
|
|
3291
3308
|
["searchcraft-slider"].forEach((t) => {
|
|
@@ -3330,7 +3347,7 @@ const vc = /* @__PURE__ */ D(class extends F {
|
|
|
3330
3347
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3331
3348
|
}
|
|
3332
3349
|
render() {
|
|
3333
|
-
return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class:
|
|
3350
|
+
return l("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: re("searchcraft-toggle-button", {
|
|
3334
3351
|
"searchcraft-toggle-button-active": this.isActive
|
|
3335
3352
|
}) }, 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" })));
|
|
3336
3353
|
}
|
|
@@ -3341,7 +3358,7 @@ const vc = /* @__PURE__ */ D(class extends F {
|
|
|
3341
3358
|
unsubscribe: [32],
|
|
3342
3359
|
lastSearchTerm: [32]
|
|
3343
3360
|
}]);
|
|
3344
|
-
function
|
|
3361
|
+
function ta() {
|
|
3345
3362
|
if (typeof customElements > "u")
|
|
3346
3363
|
return;
|
|
3347
3364
|
["searchcraft-toggle-button"].forEach((t) => {
|
|
@@ -3352,7 +3369,7 @@ function ea() {
|
|
|
3352
3369
|
}
|
|
3353
3370
|
});
|
|
3354
3371
|
}
|
|
3355
|
-
const
|
|
3372
|
+
const ra = /* @__PURE__ */ D(class extends F {
|
|
3356
3373
|
constructor() {
|
|
3357
3374
|
super();
|
|
3358
3375
|
/**
|
|
@@ -3395,17 +3412,23 @@ const ta = /* @__PURE__ */ D(class extends F {
|
|
|
3395
3412
|
handleExactMatchToggleUpdated(r) {
|
|
3396
3413
|
this.searchStore.setSearchMode(r ? "exact" : "fuzzy"), this.searchStore.search();
|
|
3397
3414
|
}
|
|
3398
|
-
handleMostRecentToggleUpdated(r) {
|
|
3399
|
-
|
|
3415
|
+
handleMostRecentToggleUpdated(r, s) {
|
|
3416
|
+
s ? this.searchStore.setSortOrder({
|
|
3417
|
+
orderByField: r,
|
|
3418
|
+
sortType: "desc"
|
|
3419
|
+
}) : this.searchStore.setSortOrder({
|
|
3420
|
+
orderByField: null,
|
|
3421
|
+
sortType: null
|
|
3422
|
+
}), this.searchStore.search();
|
|
3400
3423
|
}
|
|
3401
3424
|
/**
|
|
3402
3425
|
* Iterate through `items` and render them based on `type`
|
|
3403
3426
|
*/
|
|
3404
3427
|
render() {
|
|
3405
|
-
return l("div", { key: "
|
|
3428
|
+
return l("div", { key: "7f15e8f1a2e1be763118f9cd4ded34cf7e2902d0", class: "searchcraft-filter-panel" }, this.items.map((r) => {
|
|
3406
3429
|
switch (r.type) {
|
|
3407
3430
|
case "dateRange": {
|
|
3408
|
-
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n =
|
|
3431
|
+
const s = r, a = new Date(s.options.minDate).getTime(), o = new Date(s.options.maxDate).getTime(), n = Xs(s.options.granularity);
|
|
3409
3432
|
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) => {
|
|
3410
3433
|
this.handleDateRangeChanged(s.fieldName, c.detail.startValue, c.detail.endValue);
|
|
3411
3434
|
} }));
|
|
@@ -3431,7 +3454,7 @@ const ta = /* @__PURE__ */ D(class extends F {
|
|
|
3431
3454
|
case "mostRecentToggle": {
|
|
3432
3455
|
const s = r;
|
|
3433
3456
|
return l("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
|
|
3434
|
-
this.handleMostRecentToggleUpdated(a.detail);
|
|
3457
|
+
this.handleMostRecentToggleUpdated(s.fieldName, a.detail);
|
|
3435
3458
|
} });
|
|
3436
3459
|
}
|
|
3437
3460
|
}
|
|
@@ -3448,21 +3471,21 @@ function bc() {
|
|
|
3448
3471
|
["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
|
|
3449
3472
|
switch (t) {
|
|
3450
3473
|
case "searchcraft-filter-panel":
|
|
3451
|
-
customElements.get(t) || customElements.define(t,
|
|
3474
|
+
customElements.get(t) || customElements.define(t, ra);
|
|
3452
3475
|
break;
|
|
3453
3476
|
case "searchcraft-facet-list":
|
|
3454
|
-
customElements.get(t) ||
|
|
3477
|
+
customElements.get(t) || Ks();
|
|
3455
3478
|
break;
|
|
3456
3479
|
case "searchcraft-slider":
|
|
3457
|
-
customElements.get(t) ||
|
|
3480
|
+
customElements.get(t) || ea();
|
|
3458
3481
|
break;
|
|
3459
3482
|
case "searchcraft-toggle-button":
|
|
3460
|
-
customElements.get(t) ||
|
|
3483
|
+
customElements.get(t) || ta();
|
|
3461
3484
|
break;
|
|
3462
3485
|
}
|
|
3463
3486
|
});
|
|
3464
3487
|
}
|
|
3465
|
-
const yc =
|
|
3488
|
+
const yc = ra, sa = bc, Cc = /* @__PURE__ */ D(class extends F {
|
|
3466
3489
|
constructor() {
|
|
3467
3490
|
super();
|
|
3468
3491
|
/**
|
|
@@ -3473,13 +3496,13 @@ const yc = ta, ra = bc, Cc = /* @__PURE__ */ D(class extends F {
|
|
|
3473
3496
|
this.__registerHost();
|
|
3474
3497
|
}
|
|
3475
3498
|
render() {
|
|
3476
|
-
return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class:
|
|
3499
|
+
return l("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: re("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
|
|
3477
3500
|
}
|
|
3478
3501
|
}, [0, "searchcraft-input-label", {
|
|
3479
3502
|
inputLabelClassName: [1, "input-label-class-name"],
|
|
3480
3503
|
label: [1]
|
|
3481
3504
|
}]);
|
|
3482
|
-
function
|
|
3505
|
+
function dr() {
|
|
3483
3506
|
if (typeof customElements > "u")
|
|
3484
3507
|
return;
|
|
3485
3508
|
["searchcraft-input-label"].forEach((t) => {
|
|
@@ -3490,7 +3513,7 @@ function fr() {
|
|
|
3490
3513
|
}
|
|
3491
3514
|
});
|
|
3492
3515
|
}
|
|
3493
|
-
const
|
|
3516
|
+
const aa = /* @__PURE__ */ D(class extends F {
|
|
3494
3517
|
constructor() {
|
|
3495
3518
|
super();
|
|
3496
3519
|
/**
|
|
@@ -3577,7 +3600,7 @@ const sa = /* @__PURE__ */ D(class extends F {
|
|
|
3577
3600
|
this.handleReset(), (r = this.unsubscribe) == null || r.call(this);
|
|
3578
3601
|
}
|
|
3579
3602
|
render() {
|
|
3580
|
-
const r = this.inputValue.length > 0, s =
|
|
3603
|
+
const r = this.inputValue.length > 0, s = re("searchcraft-input-form-grid", {
|
|
3581
3604
|
"searchcraft-input-form-grid-button-left": this.buttonPlacement === "left",
|
|
3582
3605
|
"searchcraft-input-form-grid-button-right": this.buttonPlacement === "right",
|
|
3583
3606
|
"searchcraft-input-form-grid-button-none": this.buttonPlacement === "none"
|
|
@@ -3612,13 +3635,13 @@ const sa = /* @__PURE__ */ D(class extends F {
|
|
|
3612
3635
|
}, void 0, {
|
|
3613
3636
|
core: ["onCoreChange"]
|
|
3614
3637
|
}]);
|
|
3615
|
-
function
|
|
3638
|
+
function na() {
|
|
3616
3639
|
if (typeof customElements > "u")
|
|
3617
3640
|
return;
|
|
3618
3641
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
3619
3642
|
switch (t) {
|
|
3620
3643
|
case "searchcraft-input-form":
|
|
3621
|
-
customElements.get(t) || customElements.define(t,
|
|
3644
|
+
customElements.get(t) || customElements.define(t, aa);
|
|
3622
3645
|
break;
|
|
3623
3646
|
case "searchcraft-button":
|
|
3624
3647
|
customElements.get(t) || wt();
|
|
@@ -3627,12 +3650,12 @@ function aa() {
|
|
|
3627
3650
|
customElements.get(t) || xt();
|
|
3628
3651
|
break;
|
|
3629
3652
|
case "searchcraft-input-label":
|
|
3630
|
-
customElements.get(t) ||
|
|
3653
|
+
customElements.get(t) || dr();
|
|
3631
3654
|
break;
|
|
3632
3655
|
}
|
|
3633
3656
|
});
|
|
3634
3657
|
}
|
|
3635
|
-
const Sc =
|
|
3658
|
+
const Sc = aa, oa = na, kc = dr, ca = /* @__PURE__ */ D(class extends F {
|
|
3636
3659
|
constructor() {
|
|
3637
3660
|
super();
|
|
3638
3661
|
// store vars
|
|
@@ -3664,19 +3687,19 @@ const Sc = sa, na = aa, kc = fr, oa = /* @__PURE__ */ D(class extends F {
|
|
|
3664
3687
|
this.setSearchResultsPage(r);
|
|
3665
3688
|
}
|
|
3666
3689
|
renderOddPaginationItem(r) {
|
|
3667
|
-
return l("li", null, l("button", { class:
|
|
3690
|
+
return l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3668
3691
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3669
3692
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r));
|
|
3670
3693
|
}
|
|
3671
3694
|
renderEvenPaginationItem(r) {
|
|
3672
3695
|
if (!(this.searchResultsPagesCount <= r))
|
|
3673
|
-
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class:
|
|
3696
|
+
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3674
3697
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
3675
3698
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : l("li", null, l("span", { class: "searchcraft-pagination-item" }, "..."));
|
|
3676
3699
|
}
|
|
3677
3700
|
renderMiddlePaginationItem() {
|
|
3678
3701
|
if (!(this.searchResultsPagesCount <= 3))
|
|
3679
|
-
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class:
|
|
3702
|
+
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? l("li", null, l("button", { class: re("searchcraft-pagination-item", {
|
|
3680
3703
|
"searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
|
|
3681
3704
|
}), 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));
|
|
3682
3705
|
}
|
|
@@ -3702,7 +3725,7 @@ function wc() {
|
|
|
3702
3725
|
["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
|
|
3703
3726
|
switch (t) {
|
|
3704
3727
|
case "searchcraft-pagination":
|
|
3705
|
-
customElements.get(t) || customElements.define(t,
|
|
3728
|
+
customElements.get(t) || customElements.define(t, ca);
|
|
3706
3729
|
break;
|
|
3707
3730
|
case "searchcraft-button":
|
|
3708
3731
|
customElements.get(t) || wt();
|
|
@@ -3710,7 +3733,7 @@ function wc() {
|
|
|
3710
3733
|
}
|
|
3711
3734
|
});
|
|
3712
3735
|
}
|
|
3713
|
-
const xc =
|
|
3736
|
+
const xc = ca, ia = wc, la = /* @__PURE__ */ D(class extends F {
|
|
3714
3737
|
constructor() {
|
|
3715
3738
|
super();
|
|
3716
3739
|
/**
|
|
@@ -3781,7 +3804,7 @@ const xc = oa, ca = wc, ia = /* @__PURE__ */ D(class extends F {
|
|
|
3781
3804
|
}
|
|
3782
3805
|
}
|
|
3783
3806
|
render() {
|
|
3784
|
-
return l("button", { key: "74e36b0593ba2cbb03f5ecff1434bc7056bf0db0", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, innerHTML: typeof this.template < "u" ? this.template({ isPopoverVisible: this.isPopoverVisible }, { html:
|
|
3807
|
+
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: tt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
|
|
3785
3808
|
}
|
|
3786
3809
|
}, [4, "searchcraft-popover-button", {
|
|
3787
3810
|
template: [16],
|
|
@@ -3798,12 +3821,12 @@ function Rc() {
|
|
|
3798
3821
|
["searchcraft-popover-button"].forEach((t) => {
|
|
3799
3822
|
switch (t) {
|
|
3800
3823
|
case "searchcraft-popover-button":
|
|
3801
|
-
customElements.get(t) || customElements.define(t,
|
|
3824
|
+
customElements.get(t) || customElements.define(t, la);
|
|
3802
3825
|
break;
|
|
3803
3826
|
}
|
|
3804
3827
|
});
|
|
3805
3828
|
}
|
|
3806
|
-
const Ec =
|
|
3829
|
+
const Ec = la, ua = Rc, Tc = /* @__PURE__ */ D(class extends F {
|
|
3807
3830
|
constructor() {
|
|
3808
3831
|
super();
|
|
3809
3832
|
d(this, "searchResultsCount");
|
|
@@ -3821,12 +3844,12 @@ const Ec = ia, la = Rc, Tc = /* @__PURE__ */ D(class extends F {
|
|
|
3821
3844
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3822
3845
|
}
|
|
3823
3846
|
render() {
|
|
3824
|
-
return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${
|
|
3847
|
+
return l("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, l("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${Js(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" }))));
|
|
3825
3848
|
}
|
|
3826
3849
|
}, [0, "searchcraft-popover-footer", {
|
|
3827
3850
|
searchResultsCount: [32]
|
|
3828
3851
|
}]);
|
|
3829
|
-
function
|
|
3852
|
+
function ha() {
|
|
3830
3853
|
if (typeof customElements > "u")
|
|
3831
3854
|
return;
|
|
3832
3855
|
["searchcraft-popover-footer"].forEach((t) => {
|
|
@@ -3837,7 +3860,7 @@ function ua() {
|
|
|
3837
3860
|
}
|
|
3838
3861
|
});
|
|
3839
3862
|
}
|
|
3840
|
-
const Pc =
|
|
3863
|
+
const Pc = ha, $c = /* @__PURE__ */ D(class extends F {
|
|
3841
3864
|
constructor() {
|
|
3842
3865
|
super();
|
|
3843
3866
|
d(this, "item");
|
|
@@ -3865,7 +3888,7 @@ const Pc = ua, $c = /* @__PURE__ */ D(class extends F {
|
|
|
3865
3888
|
}
|
|
3866
3889
|
mapValuesFromDocument(r) {
|
|
3867
3890
|
var s, a, o, n, c;
|
|
3868
|
-
this.title =
|
|
3891
|
+
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);
|
|
3869
3892
|
}
|
|
3870
3893
|
connectedCallback() {
|
|
3871
3894
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
@@ -3885,7 +3908,7 @@ const Pc = ua, $c = /* @__PURE__ */ D(class extends F {
|
|
|
3885
3908
|
imageSource: [32],
|
|
3886
3909
|
imageAlt: [32]
|
|
3887
3910
|
}]);
|
|
3888
|
-
function
|
|
3911
|
+
function pr() {
|
|
3889
3912
|
if (typeof customElements > "u")
|
|
3890
3913
|
return;
|
|
3891
3914
|
["searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3896,7 +3919,7 @@ function dr() {
|
|
|
3896
3919
|
}
|
|
3897
3920
|
});
|
|
3898
3921
|
}
|
|
3899
|
-
var
|
|
3922
|
+
var Ss;
|
|
3900
3923
|
const _c = /* @__PURE__ */ D(class extends F {
|
|
3901
3924
|
constructor() {
|
|
3902
3925
|
super();
|
|
@@ -3912,7 +3935,7 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3912
3935
|
d(this, "adClientResponseItems");
|
|
3913
3936
|
d(this, "searchResultsPage");
|
|
3914
3937
|
d(this, "searchResultsPerPage");
|
|
3915
|
-
d(this, "config", (
|
|
3938
|
+
d(this, "config", (Ss = $.getState().core) == null ? void 0 : Ss.config);
|
|
3916
3939
|
this.__registerHost();
|
|
3917
3940
|
}
|
|
3918
3941
|
renderWithADMAds() {
|
|
@@ -3920,8 +3943,8 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3920
3943
|
return l("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => l("searchcraft-ad", { adClientResponseItem: a, adContainerId: X(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => l("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
|
|
3921
3944
|
}
|
|
3922
3945
|
renderWithCustomAds() {
|
|
3923
|
-
var
|
|
3924
|
-
const r = [], s = ((
|
|
3946
|
+
var u, h, i, p;
|
|
3947
|
+
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 || [];
|
|
3925
3948
|
for (let g = 0; g < o; g++)
|
|
3926
3949
|
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${g}-ad` }));
|
|
3927
3950
|
c.forEach((g, b) => {
|
|
@@ -3935,12 +3958,12 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3935
3958
|
return l("div", { class: "searchcraft-popover-list-view" }, r);
|
|
3936
3959
|
}
|
|
3937
3960
|
renderWithNativoAds() {
|
|
3938
|
-
var
|
|
3939
|
-
const r = [], s = ((
|
|
3961
|
+
var h, i, p, g, b;
|
|
3962
|
+
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 = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
3940
3963
|
for (let v = 0; v < n; v++)
|
|
3941
3964
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${v}-ad` }));
|
|
3942
|
-
|
|
3943
|
-
if (a && (T + s) % a === 0 && T + a <
|
|
3965
|
+
u.forEach((v, T) => {
|
|
3966
|
+
if (a && (T + s) % a === 0 && T + a < u.length && T >= a)
|
|
3944
3967
|
for (let _ = 0; _ < o; _++)
|
|
3945
3968
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${v.id}-ad-${_}` }));
|
|
3946
3969
|
r.push(l("searchcraft-popover-list-item", { item: v, key: v.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + T }));
|
|
@@ -3973,7 +3996,7 @@ const _c = /* @__PURE__ */ D(class extends F {
|
|
|
3973
3996
|
searchResultsPage: [2, "search-results-page"],
|
|
3974
3997
|
searchResultsPerPage: [2, "search-results-per-page"]
|
|
3975
3998
|
}]);
|
|
3976
|
-
function
|
|
3999
|
+
function fa() {
|
|
3977
4000
|
if (typeof customElements > "u")
|
|
3978
4001
|
return;
|
|
3979
4002
|
["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -3985,12 +4008,12 @@ function ha() {
|
|
|
3985
4008
|
customElements.get(t) || kt();
|
|
3986
4009
|
break;
|
|
3987
4010
|
case "searchcraft-popover-list-item":
|
|
3988
|
-
customElements.get(t) ||
|
|
4011
|
+
customElements.get(t) || pr();
|
|
3989
4012
|
break;
|
|
3990
4013
|
}
|
|
3991
4014
|
});
|
|
3992
4015
|
}
|
|
3993
|
-
const
|
|
4016
|
+
const da = /* @__PURE__ */ D(class extends F {
|
|
3994
4017
|
constructor() {
|
|
3995
4018
|
super();
|
|
3996
4019
|
/**
|
|
@@ -4121,19 +4144,19 @@ const fa = /* @__PURE__ */ D(class extends F {
|
|
|
4121
4144
|
}
|
|
4122
4145
|
renderInlinePopover() {
|
|
4123
4146
|
const r = this.hasResultsToShow && this.isFocused;
|
|
4124
|
-
return l("div", { class:
|
|
4147
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-inline", {
|
|
4125
4148
|
"searchcraft-popover-form-active": r
|
|
4126
4149
|
}) }, 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)));
|
|
4127
4150
|
}
|
|
4128
4151
|
renderModalPopover() {
|
|
4129
4152
|
if (this.isPopoverVisibleInState)
|
|
4130
|
-
return l("div", { class:
|
|
4153
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-modal", {
|
|
4131
4154
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4132
4155
|
}) }, 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)));
|
|
4133
4156
|
}
|
|
4134
4157
|
renderFullscreenPopover() {
|
|
4135
4158
|
if (this.isPopoverVisibleInState)
|
|
4136
|
-
return l("div", { class:
|
|
4159
|
+
return l("div", { class: re("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
|
|
4137
4160
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4138
4161
|
}) }, 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));
|
|
4139
4162
|
}
|
|
@@ -4165,13 +4188,13 @@ const fa = /* @__PURE__ */ D(class extends F {
|
|
|
4165
4188
|
searchResultsPerPage: [32],
|
|
4166
4189
|
modalElement: [32]
|
|
4167
4190
|
}]);
|
|
4168
|
-
function
|
|
4191
|
+
function pa() {
|
|
4169
4192
|
if (typeof customElements > "u")
|
|
4170
4193
|
return;
|
|
4171
4194
|
["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) => {
|
|
4172
4195
|
switch (t) {
|
|
4173
4196
|
case "searchcraft-popover-form":
|
|
4174
|
-
customElements.get(t) || customElements.define(t,
|
|
4197
|
+
customElements.get(t) || customElements.define(t, da);
|
|
4175
4198
|
break;
|
|
4176
4199
|
case "searchcraft-ad":
|
|
4177
4200
|
customElements.get(t) || kt();
|
|
@@ -4183,27 +4206,27 @@ function da() {
|
|
|
4183
4206
|
customElements.get(t) || xt();
|
|
4184
4207
|
break;
|
|
4185
4208
|
case "searchcraft-input-form":
|
|
4186
|
-
customElements.get(t) ||
|
|
4209
|
+
customElements.get(t) || na();
|
|
4187
4210
|
break;
|
|
4188
4211
|
case "searchcraft-input-label":
|
|
4189
|
-
customElements.get(t) ||
|
|
4212
|
+
customElements.get(t) || dr();
|
|
4190
4213
|
break;
|
|
4191
4214
|
case "searchcraft-popover-footer":
|
|
4192
|
-
customElements.get(t) ||
|
|
4215
|
+
customElements.get(t) || ha();
|
|
4193
4216
|
break;
|
|
4194
4217
|
case "searchcraft-popover-form":
|
|
4195
|
-
customElements.get(t) ||
|
|
4218
|
+
customElements.get(t) || pa();
|
|
4196
4219
|
break;
|
|
4197
4220
|
case "searchcraft-popover-list-item":
|
|
4198
|
-
customElements.get(t) ||
|
|
4221
|
+
customElements.get(t) || pr();
|
|
4199
4222
|
break;
|
|
4200
4223
|
case "searchcraft-popover-list-view":
|
|
4201
|
-
customElements.get(t) ||
|
|
4224
|
+
customElements.get(t) || fa();
|
|
4202
4225
|
break;
|
|
4203
4226
|
}
|
|
4204
4227
|
});
|
|
4205
4228
|
}
|
|
4206
|
-
const Ic =
|
|
4229
|
+
const Ic = da, ma = pa, Ac = pr, Mc = fa, ga = /* @__PURE__ */ D(class extends F {
|
|
4207
4230
|
constructor() {
|
|
4208
4231
|
super();
|
|
4209
4232
|
/**
|
|
@@ -4236,7 +4259,7 @@ const Ic = fa, pa = da, Ac = dr, Mc = ha, ma = /* @__PURE__ */ D(class extends F
|
|
|
4236
4259
|
range: [Number(this.range[0]), Number(this.range[1])],
|
|
4237
4260
|
count: this.count,
|
|
4238
4261
|
responseTime: this.responseTime
|
|
4239
|
-
}, { html:
|
|
4262
|
+
}, { html: tt }) : `${Js(this.count)} results found in ${this.responseTime}ms`);
|
|
4240
4263
|
}
|
|
4241
4264
|
}, [0, "searchcraft-results-info", {
|
|
4242
4265
|
template: [16],
|
|
@@ -4254,12 +4277,12 @@ function Lc() {
|
|
|
4254
4277
|
["searchcraft-results-info"].forEach((t) => {
|
|
4255
4278
|
switch (t) {
|
|
4256
4279
|
case "searchcraft-results-info":
|
|
4257
|
-
customElements.get(t) || customElements.define(t,
|
|
4280
|
+
customElements.get(t) || customElements.define(t, ga);
|
|
4258
4281
|
break;
|
|
4259
4282
|
}
|
|
4260
4283
|
});
|
|
4261
4284
|
}
|
|
4262
|
-
const Oc =
|
|
4285
|
+
const Oc = ga, va = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
4263
4286
|
constructor() {
|
|
4264
4287
|
super();
|
|
4265
4288
|
d(this, "item");
|
|
@@ -4284,11 +4307,11 @@ const Oc = ma, ga = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
|
4284
4307
|
const n = r.target.closest("a");
|
|
4285
4308
|
if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
|
|
4286
4309
|
return;
|
|
4287
|
-
const c = this.documentPosition,
|
|
4310
|
+
const c = this.documentPosition, u = s.searchTerm, h = s.searchClientResponseItems.length || 0;
|
|
4288
4311
|
a.measureClient.sendMeasureEvent("document_clicked", {
|
|
4289
4312
|
document_position: c,
|
|
4290
|
-
number_of_documents:
|
|
4291
|
-
search_term:
|
|
4313
|
+
number_of_documents: h,
|
|
4314
|
+
search_term: u
|
|
4292
4315
|
});
|
|
4293
4316
|
});
|
|
4294
4317
|
d(this, "handleKeyDown", () => {
|
|
@@ -4303,7 +4326,8 @@ const Oc = ma, ga = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
|
4303
4326
|
if (this.item)
|
|
4304
4327
|
try {
|
|
4305
4328
|
this.templateHtml = (r = this.template) == null ? void 0 : r.call(this, this.item.document, this.index, {
|
|
4306
|
-
html:
|
|
4329
|
+
html: tt,
|
|
4330
|
+
source_index: this.item.source_index
|
|
4307
4331
|
});
|
|
4308
4332
|
} catch (s) {
|
|
4309
4333
|
console.error("Invalid search result template:", s);
|
|
@@ -4320,7 +4344,7 @@ const Oc = ma, ga = Lc, Fc = /* @__PURE__ */ D(class extends F {
|
|
|
4320
4344
|
template: [16],
|
|
4321
4345
|
templateHtml: [32]
|
|
4322
4346
|
}]);
|
|
4323
|
-
function
|
|
4347
|
+
function ba() {
|
|
4324
4348
|
if (typeof customElements > "u")
|
|
4325
4349
|
return;
|
|
4326
4350
|
["searchcraft-search-result"].forEach((t) => {
|
|
@@ -4331,7 +4355,7 @@ function va() {
|
|
|
4331
4355
|
}
|
|
4332
4356
|
});
|
|
4333
4357
|
}
|
|
4334
|
-
const Dc =
|
|
4358
|
+
const Dc = ba, ya = /* @__PURE__ */ D(class extends F {
|
|
4335
4359
|
constructor() {
|
|
4336
4360
|
super();
|
|
4337
4361
|
/**
|
|
@@ -4383,8 +4407,8 @@ const Dc = va, ba = /* @__PURE__ */ D(class extends F {
|
|
|
4383
4407
|
return l("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => l("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: X(), key: n.id })), r.map((n, c) => l("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
|
|
4384
4408
|
}
|
|
4385
4409
|
renderWithCustomAds() {
|
|
4386
|
-
var
|
|
4387
|
-
const r = [], s = ((
|
|
4410
|
+
var u, h, i, p, g, b;
|
|
4411
|
+
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 : (b = this.initialSearchClientResponseItems) != null && b.length ? this.initialSearchClientResponseItems : [];
|
|
4388
4412
|
for (let v = 0; v < o; v++)
|
|
4389
4413
|
r.push(l("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${v}-ad` }));
|
|
4390
4414
|
c.forEach((v, T) => {
|
|
@@ -4398,12 +4422,12 @@ const Dc = va, ba = /* @__PURE__ */ D(class extends F {
|
|
|
4398
4422
|
return l("div", { class: "searchcraft-search-results" }, r);
|
|
4399
4423
|
}
|
|
4400
4424
|
renderWithNativoAds() {
|
|
4401
|
-
var
|
|
4402
|
-
const r = [], s = ((
|
|
4425
|
+
var h, i, p, g, b, v, T;
|
|
4426
|
+
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 = ((b = this.config) == null ? void 0 : b.nativoAdEndQuantity) || 0, u = (v = this.searchClientResponseItems) != null && v.length ? this.searchClientResponseItems : (T = this.initialSearchClientResponseItems) != null && T.length ? this.initialSearchClientResponseItems : [];
|
|
4403
4427
|
for (let _ = 0; _ < n; _++)
|
|
4404
4428
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
|
|
4405
|
-
|
|
4406
|
-
if (a && (N + s) % a === 0 && N + a <
|
|
4429
|
+
u.forEach((_, N) => {
|
|
4430
|
+
if (a && (N + s) % a === 0 && N + a < u.length && N >= a)
|
|
4407
4431
|
for (let I = 0; I < o; I++)
|
|
4408
4432
|
r.push(l("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${I}` }));
|
|
4409
4433
|
r.push(l("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + N, index: N, item: _, template: this.template }));
|
|
@@ -4453,7 +4477,7 @@ function Nc() {
|
|
|
4453
4477
|
["searchcraft-search-results", "searchcraft-ad", "searchcraft-error-message", "searchcraft-search-result"].forEach((t) => {
|
|
4454
4478
|
switch (t) {
|
|
4455
4479
|
case "searchcraft-search-results":
|
|
4456
|
-
customElements.get(t) || customElements.define(t,
|
|
4480
|
+
customElements.get(t) || customElements.define(t, ya);
|
|
4457
4481
|
break;
|
|
4458
4482
|
case "searchcraft-ad":
|
|
4459
4483
|
customElements.get(t) || kt();
|
|
@@ -4462,12 +4486,12 @@ function Nc() {
|
|
|
4462
4486
|
customElements.get(t) || xt();
|
|
4463
4487
|
break;
|
|
4464
4488
|
case "searchcraft-search-result":
|
|
4465
|
-
customElements.get(t) ||
|
|
4489
|
+
customElements.get(t) || ba();
|
|
4466
4490
|
break;
|
|
4467
4491
|
}
|
|
4468
4492
|
});
|
|
4469
4493
|
}
|
|
4470
|
-
const Hc =
|
|
4494
|
+
const Hc = ya, Ca = Nc, Uc = /* @__PURE__ */ D(class extends F {
|
|
4471
4495
|
constructor() {
|
|
4472
4496
|
super();
|
|
4473
4497
|
/**
|
|
@@ -4530,7 +4554,7 @@ const Hc = ba, ya = Nc, Uc = /* @__PURE__ */ D(class extends F {
|
|
|
4530
4554
|
setSearchResultsPage: [32],
|
|
4531
4555
|
setSearchResultsPerPage: [32]
|
|
4532
4556
|
}]);
|
|
4533
|
-
function
|
|
4557
|
+
function Sa() {
|
|
4534
4558
|
if (typeof customElements > "u")
|
|
4535
4559
|
return;
|
|
4536
4560
|
["searchcraft-select"].forEach((t) => {
|
|
@@ -4541,7 +4565,7 @@ function Ca() {
|
|
|
4541
4565
|
}
|
|
4542
4566
|
});
|
|
4543
4567
|
}
|
|
4544
|
-
const
|
|
4568
|
+
const ka = /* @__PURE__ */ D(class extends F {
|
|
4545
4569
|
constructor() {
|
|
4546
4570
|
super();
|
|
4547
4571
|
/**
|
|
@@ -4604,16 +4628,16 @@ function zc() {
|
|
|
4604
4628
|
["searchcraft-search-results-per-page", "searchcraft-select"].forEach((t) => {
|
|
4605
4629
|
switch (t) {
|
|
4606
4630
|
case "searchcraft-search-results-per-page":
|
|
4607
|
-
customElements.get(t) || customElements.define(t,
|
|
4631
|
+
customElements.get(t) || customElements.define(t, ka);
|
|
4608
4632
|
break;
|
|
4609
4633
|
case "searchcraft-select":
|
|
4610
|
-
customElements.get(t) ||
|
|
4634
|
+
customElements.get(t) || Sa();
|
|
4611
4635
|
break;
|
|
4612
4636
|
}
|
|
4613
4637
|
});
|
|
4614
4638
|
}
|
|
4615
|
-
const jc = Sa, ka = zc, Vc = Ca, Bc = Js, Wc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-adm-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-ad:last-child .searchcraft-adm-ad{border-bottom:none}.searchcraft-adm-ad-link{align-items:flex-start;background-color:rgb(from blue r g b/5%);color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-adm-ad-link:focus,.searchcraft-adm-ad-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-adm-ad-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-adm-ad-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-adm-ad-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-adm-ad-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-adm-ad-content-title,.searchcraft-adm-ad-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-adm-ad-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-adm-ad-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:6px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius-sm);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:block}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:block}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro",sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4616
|
-
`,
|
|
4639
|
+
const jc = ka, wa = zc, Bc = Sa, Vc = ea, Wc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-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 */
|
|
4640
|
+
`, xa = /* @__PURE__ */ D(class extends F {
|
|
4617
4641
|
constructor() {
|
|
4618
4642
|
super(), this.__registerHost();
|
|
4619
4643
|
}
|
|
@@ -4627,16 +4651,16 @@ function Gc() {
|
|
|
4627
4651
|
["searchcraft-theme"].forEach((t) => {
|
|
4628
4652
|
switch (t) {
|
|
4629
4653
|
case "searchcraft-theme":
|
|
4630
|
-
customElements.get(t) || customElements.define(t,
|
|
4654
|
+
customElements.get(t) || customElements.define(t, xa);
|
|
4631
4655
|
break;
|
|
4632
4656
|
}
|
|
4633
4657
|
});
|
|
4634
4658
|
}
|
|
4635
|
-
const qc =
|
|
4636
|
-
ac(), oc(), ic(), pc(),
|
|
4659
|
+
const qc = xa, Ra = Gc, Yc = ta, Zc = () => {
|
|
4660
|
+
ac(), oc(), ic(), pc(), sa(), oa(), kc(), ia(), ua(), Pc(), ma(), Ac(), Mc(), va(), Dc(), wa(), Ca(), Bc(), Vc(), Ra(), Yc();
|
|
4637
4661
|
};
|
|
4638
4662
|
globalThis.__scDefineCustomElements__ = Zc;
|
|
4639
|
-
const Qc = "@searchcraft/react-sdk", Kc = "0.10.
|
|
4663
|
+
const Qc = "@searchcraft/react-sdk", Kc = "0.10.4", bs = {
|
|
4640
4664
|
name: Qc,
|
|
4641
4665
|
version: Kc
|
|
4642
4666
|
};
|
|
@@ -4645,30 +4669,30 @@ const Qc = "@searchcraft/react-sdk", Kc = "0.10.2", vs = {
|
|
|
4645
4669
|
* Copyright 2018 Google LLC
|
|
4646
4670
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4647
4671
|
*/
|
|
4648
|
-
const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]),
|
|
4672
|
+
const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), ys = /* @__PURE__ */ new WeakMap(), Cs = (e, t, r, s, a) => {
|
|
4649
4673
|
const o = a == null ? void 0 : a[t];
|
|
4650
|
-
o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, c,
|
|
4651
|
-
let
|
|
4652
|
-
|
|
4653
|
-
let i =
|
|
4654
|
-
|
|
4674
|
+
o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, c, u) => {
|
|
4675
|
+
let h = ys.get(n);
|
|
4676
|
+
h === void 0 && ys.set(n, h = /* @__PURE__ */ new Map());
|
|
4677
|
+
let i = h.get(c);
|
|
4678
|
+
u !== void 0 ? i === void 0 ? (h.set(c, i = { handleEvent: u }), n.addEventListener(c, i)) : i.handleEvent = u : i !== void 0 && (h.delete(c), n.removeEventListener(c, i));
|
|
4655
4679
|
})(e, o, r);
|
|
4656
4680
|
}, Jc = ({ react: e, tagName: t, elementClass: r, events: s, displayName: a }) => {
|
|
4657
|
-
const o = new Set(Object.keys(s ?? {})), n = e.forwardRef((c,
|
|
4658
|
-
const
|
|
4681
|
+
const o = new Set(Object.keys(s ?? {})), n = e.forwardRef((c, u) => {
|
|
4682
|
+
const h = e.useRef(/* @__PURE__ */ new Map()), i = e.useRef(null), p = {}, g = {};
|
|
4659
4683
|
for (const [b, v] of Object.entries(c)) Xc.has(b) ? p[b === "className" ? "class" : b] = v : o.has(b) || b in r.prototype ? g[b] = v : p[b] = v;
|
|
4660
4684
|
return e.useLayoutEffect(() => {
|
|
4661
4685
|
if (i.current === null) return;
|
|
4662
4686
|
const b = /* @__PURE__ */ new Map();
|
|
4663
|
-
for (const v in g)
|
|
4664
|
-
for (const [v, T] of
|
|
4665
|
-
|
|
4687
|
+
for (const v in g) Cs(i.current, v, c[v], h.current.get(v), s), h.current.delete(v), b.set(v, c[v]);
|
|
4688
|
+
for (const [v, T] of h.current) Cs(i.current, v, void 0, T, s);
|
|
4689
|
+
h.current = b;
|
|
4666
4690
|
}), e.useLayoutEffect(() => {
|
|
4667
4691
|
var b;
|
|
4668
4692
|
(b = i.current) == null || b.removeAttribute("defer-hydration");
|
|
4669
4693
|
}, []), p.suppressHydrationWarning = !0, e.createElement(t, { ...p, ref: e.useCallback((b) => {
|
|
4670
|
-
i.current = b, typeof
|
|
4671
|
-
}, [
|
|
4694
|
+
i.current = b, typeof u == "function" ? u(b) : u !== null && (u.current = b);
|
|
4695
|
+
}, [u]) });
|
|
4672
4696
|
});
|
|
4673
4697
|
return n.displayName = a ?? r.name, n;
|
|
4674
4698
|
}, be = ({
|
|
@@ -4680,7 +4704,7 @@ const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
4680
4704
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4681
4705
|
react: ve,
|
|
4682
4706
|
events: {},
|
|
4683
|
-
defineCustomElement:
|
|
4707
|
+
defineCustomElement: sa
|
|
4684
4708
|
}), ti = /* @__PURE__ */ be({
|
|
4685
4709
|
tagName: "searchcraft-input-form",
|
|
4686
4710
|
elementClass: Sc,
|
|
@@ -4691,62 +4715,62 @@ const Xc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
4691
4715
|
onInputBlur: "inputBlur",
|
|
4692
4716
|
onInputInit: "inputInit"
|
|
4693
4717
|
},
|
|
4694
|
-
defineCustomElement:
|
|
4718
|
+
defineCustomElement: oa
|
|
4695
4719
|
}), ri = /* @__PURE__ */ be({
|
|
4696
4720
|
tagName: "searchcraft-pagination",
|
|
4697
4721
|
elementClass: xc,
|
|
4698
4722
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4699
4723
|
react: ve,
|
|
4700
4724
|
events: {},
|
|
4701
|
-
defineCustomElement:
|
|
4725
|
+
defineCustomElement: ia
|
|
4702
4726
|
}), si = /* @__PURE__ */ be({
|
|
4703
4727
|
tagName: "searchcraft-popover-button",
|
|
4704
4728
|
elementClass: Ec,
|
|
4705
4729
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4706
4730
|
react: ve,
|
|
4707
4731
|
events: {},
|
|
4708
|
-
defineCustomElement:
|
|
4732
|
+
defineCustomElement: ua
|
|
4709
4733
|
}), ai = /* @__PURE__ */ be({
|
|
4710
4734
|
tagName: "searchcraft-popover-form",
|
|
4711
4735
|
elementClass: Ic,
|
|
4712
4736
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4713
4737
|
react: ve,
|
|
4714
4738
|
events: {},
|
|
4715
|
-
defineCustomElement:
|
|
4739
|
+
defineCustomElement: ma
|
|
4716
4740
|
}), ni = /* @__PURE__ */ be({
|
|
4717
4741
|
tagName: "searchcraft-results-info",
|
|
4718
4742
|
elementClass: Oc,
|
|
4719
4743
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4720
4744
|
react: ve,
|
|
4721
4745
|
events: {},
|
|
4722
|
-
defineCustomElement:
|
|
4746
|
+
defineCustomElement: va
|
|
4723
4747
|
}), oi = /* @__PURE__ */ be({
|
|
4724
4748
|
tagName: "searchcraft-search-results",
|
|
4725
4749
|
elementClass: Hc,
|
|
4726
4750
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4727
4751
|
react: ve,
|
|
4728
4752
|
events: {},
|
|
4729
|
-
defineCustomElement:
|
|
4753
|
+
defineCustomElement: Ca
|
|
4730
4754
|
}), ci = /* @__PURE__ */ be({
|
|
4731
4755
|
tagName: "searchcraft-search-results-per-page",
|
|
4732
4756
|
elementClass: jc,
|
|
4733
4757
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4734
4758
|
react: ve,
|
|
4735
4759
|
events: {},
|
|
4736
|
-
defineCustomElement:
|
|
4760
|
+
defineCustomElement: wa
|
|
4737
4761
|
}), ii = /* @__PURE__ */ be({
|
|
4738
4762
|
tagName: "searchcraft-theme",
|
|
4739
4763
|
elementClass: qc,
|
|
4740
4764
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4741
4765
|
react: ve,
|
|
4742
4766
|
events: {},
|
|
4743
|
-
defineCustomElement:
|
|
4767
|
+
defineCustomElement: Ra
|
|
4744
4768
|
}), Mi = (e) => /* @__PURE__ */ ge(ei, { ...e }), Li = (e) => /* @__PURE__ */ ge(ti, { ...e }), Oi = (e) => /* @__PURE__ */ ge(si, { ...e }), Fi = (e) => /* @__PURE__ */ ge(ai, { ...e }), Di = (e) => /* @__PURE__ */ ge(ni, { ...e }), Ni = (e) => /* @__PURE__ */ ge(ii, { ...e }), Hi = (e) => /* @__PURE__ */ ge(ri, { ...e }), Ui = (e) => /* @__PURE__ */ ge(ci, { ...e }), zi = (e) => /* @__PURE__ */ ge(oi, { ...e });
|
|
4745
4769
|
class ji extends Lo {
|
|
4746
4770
|
constructor(t) {
|
|
4747
4771
|
super(t, {
|
|
4748
|
-
sdkName:
|
|
4749
|
-
sdkVersion:
|
|
4772
|
+
sdkName: bs.name,
|
|
4773
|
+
sdkVersion: bs.version
|
|
4750
4774
|
});
|
|
4751
4775
|
}
|
|
4752
4776
|
}
|