@searchcraft/react-sdk 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +51 -8
- package/dist/index.js +1061 -966
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,28 +3,28 @@ var _n = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var h = (e, t, r) => _n(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsx as Se } from "react/jsx-runtime";
|
|
5
5
|
import we from "react";
|
|
6
|
-
var An = Object.defineProperty, In = (e, t, r) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
6
|
+
var An = Object.defineProperty, In = (e, t, r) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, F = (e, t, r) => In(e, typeof t != "symbol" ? t + "" : t, r);
|
|
7
7
|
function be(e, t, r, a) {
|
|
8
8
|
return new (r || (r = Promise))(function(n, o) {
|
|
9
|
-
function s(
|
|
9
|
+
function s(c) {
|
|
10
10
|
try {
|
|
11
|
-
u(a.next(
|
|
11
|
+
u(a.next(c));
|
|
12
12
|
} catch (i) {
|
|
13
13
|
o(i);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
function c
|
|
16
|
+
function l(c) {
|
|
17
17
|
try {
|
|
18
|
-
u(a.throw(
|
|
18
|
+
u(a.throw(c));
|
|
19
19
|
} catch (i) {
|
|
20
20
|
o(i);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
function u(
|
|
23
|
+
function u(c) {
|
|
24
24
|
var i;
|
|
25
|
-
|
|
25
|
+
c.done ? n(c.value) : (i = c.value, i instanceof r ? i : new r(function(p) {
|
|
26
26
|
p(i);
|
|
27
|
-
})).then(s,
|
|
27
|
+
})).then(s, l);
|
|
28
28
|
}
|
|
29
29
|
u((a = a.apply(e, [])).next());
|
|
30
30
|
});
|
|
@@ -34,11 +34,11 @@ function ve(e, t) {
|
|
|
34
34
|
if (1 & n[0]) throw n[1];
|
|
35
35
|
return n[1];
|
|
36
36
|
}, trys: [], ops: [] };
|
|
37
|
-
return o = { next:
|
|
37
|
+
return o = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
38
38
|
return this;
|
|
39
39
|
}), o;
|
|
40
|
-
function
|
|
41
|
-
return function(
|
|
40
|
+
function l(u) {
|
|
41
|
+
return function(c) {
|
|
42
42
|
return function(i) {
|
|
43
43
|
if (r) throw new TypeError("Generator is already executing.");
|
|
44
44
|
for (; o && (o = 0, i[0] && (s = 0)), s; ) try {
|
|
@@ -84,11 +84,11 @@ function ve(e, t) {
|
|
|
84
84
|
}
|
|
85
85
|
if (5 & i[0]) throw i[1];
|
|
86
86
|
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
87
|
-
}([u,
|
|
87
|
+
}([u, c]);
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
var ye = { exclude: [] }, Da = {}, Mn = { timeout: "true" },
|
|
91
|
+
var ye = { exclude: [] }, Da = {}, Mn = { timeout: "true" }, le = function(e, t) {
|
|
92
92
|
typeof window < "u" && (Da[e] = t);
|
|
93
93
|
}, Ln = function() {
|
|
94
94
|
return Object.fromEntries(Object.entries(Da).filter(function(e) {
|
|
@@ -101,8 +101,8 @@ var ye = { exclude: [] }, Da = {}, Mn = { timeout: "true" }, ce = function(e, t)
|
|
|
101
101
|
function yt(e) {
|
|
102
102
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
104
|
+
var V = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
105
|
+
function ne(e, t) {
|
|
106
106
|
return e << t | e >>> 32 - t;
|
|
107
107
|
}
|
|
108
108
|
function lr(e, t) {
|
|
@@ -110,43 +110,43 @@ function lr(e, t) {
|
|
|
110
110
|
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");
|
|
111
111
|
var a = new Uint32Array([t, t, t, t]);
|
|
112
112
|
(function(o, s) {
|
|
113
|
-
for (var
|
|
114
|
-
var i = u.subarray(4 *
|
|
115
|
-
i[0] = Math.imul(i[0],
|
|
113
|
+
for (var l = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * l), c = 0; c < l; c++) {
|
|
114
|
+
var i = u.subarray(4 * c, 4 * (c + 1));
|
|
115
|
+
i[0] = Math.imul(i[0], V[0]), i[0] = ne(i[0], 15), i[0] = Math.imul(i[0], V[1]), s[0] = s[0] ^ i[0], s[0] = ne(s[0], 19), s[0] = s[0] + s[1], s[0] = Math.imul(s[0], 5) + 1444728091, i[1] = Math.imul(i[1], V[1]), i[1] = ne(i[1], 16), i[1] = Math.imul(i[1], V[2]), s[1] = s[1] ^ i[1], s[1] = ne(s[1], 17), s[1] = s[1] + s[2], s[1] = Math.imul(s[1], 5) + 197830471, i[2] = Math.imul(i[2], V[2]), i[2] = ne(i[2], 17), i[2] = Math.imul(i[2], V[3]), s[2] = s[2] ^ i[2], s[2] = ne(s[2], 15), s[2] = s[2] + s[3], s[2] = Math.imul(s[2], 5) + 2530024501, i[3] = Math.imul(i[3], V[3]), i[3] = ne(i[3], 18), i[3] = Math.imul(i[3], V[0]), s[3] = s[3] ^ i[3], s[3] = ne(s[3], 13), s[3] = s[3] + s[0], s[3] = Math.imul(s[3], 5) + 850148119;
|
|
116
116
|
}
|
|
117
117
|
})(e, a), function(o, s) {
|
|
118
|
-
var
|
|
118
|
+
var l = o.byteLength / 16 | 0, u = o.byteLength % 16, c = new Uint32Array(4), i = new Uint8Array(o, 16 * l, u);
|
|
119
119
|
switch (u) {
|
|
120
120
|
case 15:
|
|
121
|
-
|
|
121
|
+
c[3] = c[3] ^ i[14] << 16;
|
|
122
122
|
case 14:
|
|
123
|
-
|
|
123
|
+
c[3] = c[3] ^ i[13] << 8;
|
|
124
124
|
case 13:
|
|
125
|
-
|
|
125
|
+
c[3] = c[3] ^ i[12] << 0, c[3] = Math.imul(c[3], V[3]), c[3] = ne(c[3], 18), c[3] = Math.imul(c[3], V[0]), s[3] = s[3] ^ c[3];
|
|
126
126
|
case 12:
|
|
127
|
-
|
|
127
|
+
c[2] = c[2] ^ i[11] << 24;
|
|
128
128
|
case 11:
|
|
129
|
-
|
|
129
|
+
c[2] = c[2] ^ i[10] << 16;
|
|
130
130
|
case 10:
|
|
131
|
-
|
|
131
|
+
c[2] = c[2] ^ i[9] << 8;
|
|
132
132
|
case 9:
|
|
133
|
-
|
|
133
|
+
c[2] = c[2] ^ i[8] << 0, c[2] = Math.imul(c[2], V[2]), c[2] = ne(c[2], 17), c[2] = Math.imul(c[2], V[3]), s[2] = s[2] ^ c[2];
|
|
134
134
|
case 8:
|
|
135
|
-
|
|
135
|
+
c[1] = c[1] ^ i[7] << 24;
|
|
136
136
|
case 7:
|
|
137
|
-
|
|
137
|
+
c[1] = c[1] ^ i[6] << 16;
|
|
138
138
|
case 6:
|
|
139
|
-
|
|
139
|
+
c[1] = c[1] ^ i[5] << 8;
|
|
140
140
|
case 5:
|
|
141
|
-
|
|
141
|
+
c[1] = c[1] ^ i[4] << 0, c[1] = Math.imul(c[1], V[1]), c[1] = ne(c[1], 16), c[1] = Math.imul(c[1], V[2]), s[1] = s[1] ^ c[1];
|
|
142
142
|
case 4:
|
|
143
|
-
|
|
143
|
+
c[0] = c[0] ^ i[3] << 24;
|
|
144
144
|
case 3:
|
|
145
|
-
|
|
145
|
+
c[0] = c[0] ^ i[2] << 16;
|
|
146
146
|
case 2:
|
|
147
|
-
|
|
147
|
+
c[0] = c[0] ^ i[1] << 8;
|
|
148
148
|
case 1:
|
|
149
|
-
|
|
149
|
+
c[0] = c[0] ^ i[0] << 0, c[0] = Math.imul(c[0], V[0]), c[0] = ne(c[0], 15), c[0] = Math.imul(c[0], V[1]), s[0] = s[0] ^ c[0];
|
|
150
150
|
}
|
|
151
151
|
}(e, a), function(o, s) {
|
|
152
152
|
s[0] = s[0] ^ o.byteLength, s[1] = s[1] ^ o.byteLength, s[2] = s[2] ^ o.byteLength, s[3] = s[3] ^ o.byteLength, s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0, s[0] = yt(s[0]), s[1] = yt(s[1]), s[2] = yt(s[2]), s[3] = yt(s[3]), s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0;
|
|
@@ -178,8 +178,8 @@ function Dn() {
|
|
|
178
178
|
case 1:
|
|
179
179
|
return r = o.sent(), a = r.filter(function(s) {
|
|
180
180
|
return s !== void 0;
|
|
181
|
-
}), n = {}, a.forEach(function(s,
|
|
182
|
-
n[t[
|
|
181
|
+
}), n = {}, a.forEach(function(s, l) {
|
|
182
|
+
n[t[l]] = s;
|
|
183
183
|
}), [2, Na(n, ye.exclude || [])];
|
|
184
184
|
case 2:
|
|
185
185
|
throw o.sent();
|
|
@@ -195,10 +195,10 @@ function Na(e, t) {
|
|
|
195
195
|
var s = e[o];
|
|
196
196
|
if (typeof s != "object" || Array.isArray(s)) t.includes(o) || (r[o] = s);
|
|
197
197
|
else {
|
|
198
|
-
var
|
|
198
|
+
var l = Na(s, t.map(function(u) {
|
|
199
199
|
return u.startsWith(o + ".") ? u.slice(o.length + 1) : u;
|
|
200
200
|
}));
|
|
201
|
-
Object.keys(
|
|
201
|
+
Object.keys(l).length > 0 && (r[o] = l);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
};
|
|
@@ -231,8 +231,8 @@ function Ua(e, t, r) {
|
|
|
231
231
|
for (var o = [], s = 0; s < e.length; s++) o.push(e[s].data[n]);
|
|
232
232
|
a.push(zn(o));
|
|
233
233
|
}
|
|
234
|
-
var
|
|
235
|
-
return new ImageData(
|
|
234
|
+
var l = new Uint8ClampedArray(a);
|
|
235
|
+
return new ImageData(l, t, r);
|
|
236
236
|
}
|
|
237
237
|
function zn(e) {
|
|
238
238
|
if (e.length === 0) return 0;
|
|
@@ -250,15 +250,15 @@ function at() {
|
|
|
250
250
|
}
|
|
251
251
|
return { name: "unknown", version: "unknown" };
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
le("audio", function() {
|
|
254
254
|
return be(this, void 0, void 0, function() {
|
|
255
255
|
return ve(this, function(e) {
|
|
256
256
|
return [2, new Promise(function(t, r) {
|
|
257
257
|
try {
|
|
258
258
|
var a = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), n = a.createBufferSource(), o = a.createOscillator();
|
|
259
259
|
o.frequency.value = 1e3;
|
|
260
|
-
var s,
|
|
261
|
-
|
|
260
|
+
var s, l = a.createDynamicsCompressor();
|
|
261
|
+
l.threshold.value = -50, l.knee.value = 40, l.ratio.value = 12, l.attack.value = 0, l.release.value = 0.2, o.connect(l), l.connect(a.destination), o.start(), a.oncomplete = function(u) {
|
|
262
262
|
s = u.renderedBuffer.getChannelData(0), t({ sampleHash: Un(s), oscillator: o.type, maxChannels: a.destination.maxChannelCount, channelCountMode: n.channelCountMode });
|
|
263
263
|
}, a.startRendering();
|
|
264
264
|
} catch (u) {
|
|
@@ -269,7 +269,7 @@ ce("audio", function() {
|
|
|
269
269
|
});
|
|
270
270
|
});
|
|
271
271
|
var Hn = at().name !== "SamsungBrowser" ? 1 : 3, ca = 280, la = 20;
|
|
272
|
-
at().name != "Firefox" &&
|
|
272
|
+
at().name != "Firefox" && le("canvas", function() {
|
|
273
273
|
return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
|
|
274
274
|
var t = Array.from({ length: Hn }, function() {
|
|
275
275
|
return function() {
|
|
@@ -292,15 +292,15 @@ function ua(e, t) {
|
|
|
292
292
|
if (!e) throw new Error("Canvas context not supported");
|
|
293
293
|
return e.font, e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Wn() {
|
|
296
296
|
var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
|
|
297
297
|
if (r && "getParameter" in r) try {
|
|
298
298
|
var a = (r.getParameter(r.VENDOR) || "").toString(), n = (r.getParameter(r.RENDERER) || "").toString(), o = { vendor: a, renderer: n, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
|
|
299
299
|
if (!n.length || !a.length) {
|
|
300
300
|
var s = r.getExtension("WEBGL_debug_renderer_info");
|
|
301
301
|
if (s) {
|
|
302
|
-
var
|
|
303
|
-
|
|
302
|
+
var l = (r.getParameter(s.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(s.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
303
|
+
l && (o.vendorUnmasked = l), u && (o.rendererUnmasked = u);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
return o;
|
|
@@ -308,7 +308,7 @@ function Gn() {
|
|
|
308
308
|
}
|
|
309
309
|
return "undefined";
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Gn() {
|
|
312
312
|
var e = new Float32Array(1), t = new Uint8Array(e.buffer);
|
|
313
313
|
return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
|
|
314
314
|
}
|
|
@@ -318,14 +318,14 @@ function Vn(e, t) {
|
|
|
318
318
|
var n = function(o) {
|
|
319
319
|
if (o.length === 0) return null;
|
|
320
320
|
var s = {};
|
|
321
|
-
o.forEach(function(
|
|
322
|
-
var i = String(
|
|
321
|
+
o.forEach(function(c) {
|
|
322
|
+
var i = String(c);
|
|
323
323
|
s[i] = (s[i] || 0) + 1;
|
|
324
324
|
});
|
|
325
|
-
var
|
|
326
|
-
return Object.keys(s).forEach(function(
|
|
327
|
-
s[
|
|
328
|
-
}),
|
|
325
|
+
var l = o[0], u = 1;
|
|
326
|
+
return Object.keys(s).forEach(function(c) {
|
|
327
|
+
s[c] > u && (l = c, u = s[c]);
|
|
328
|
+
}), l;
|
|
329
329
|
}(e.map(function(o) {
|
|
330
330
|
return a in o ? o[a] : void 0;
|
|
331
331
|
}).filter(function(o) {
|
|
@@ -350,41 +350,41 @@ function Yn() {
|
|
|
350
350
|
}
|
|
351
351
|
return 0;
|
|
352
352
|
}
|
|
353
|
-
at().name != "Firefox" &&
|
|
353
|
+
at().name != "Firefox" && le("fonts", function() {
|
|
354
354
|
var e = this;
|
|
355
355
|
return new Promise(function(t, r) {
|
|
356
356
|
try {
|
|
357
357
|
(function(a) {
|
|
358
358
|
var n;
|
|
359
359
|
be(this, void 0, void 0, function() {
|
|
360
|
-
var o, s,
|
|
360
|
+
var o, s, l;
|
|
361
361
|
return ve(this, function(u) {
|
|
362
362
|
switch (u.label) {
|
|
363
363
|
case 0:
|
|
364
|
-
return document.body ? [3, 2] : [4, (
|
|
365
|
-
return setTimeout(p,
|
|
364
|
+
return document.body ? [3, 2] : [4, (c = 50, new Promise(function(p) {
|
|
365
|
+
return setTimeout(p, c, i);
|
|
366
366
|
}))];
|
|
367
367
|
case 1:
|
|
368
368
|
return u.sent(), [3, 0];
|
|
369
369
|
case 2:
|
|
370
|
-
if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (s = o.style).setProperty("position", "fixed"), s.setProperty("display", "block", "important"), s.setProperty("visibility", "visible"), s.setProperty("border", "0"), s.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(
|
|
371
|
-
return a({ iframe:
|
|
370
|
+
if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (s = o.style).setProperty("position", "fixed"), s.setProperty("display", "block", "important"), s.setProperty("visibility", "visible"), s.setProperty("border", "0"), s.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(l = o.contentDocument || ((n = o.contentWindow) === null || n === void 0 ? void 0 : n.document))) throw new Error("Iframe document is not accessible");
|
|
371
|
+
return a({ iframe: l }), setTimeout(function() {
|
|
372
372
|
document.body.removeChild(o);
|
|
373
373
|
}, 0), [2];
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var c, i;
|
|
376
376
|
});
|
|
377
377
|
});
|
|
378
378
|
})(function(a) {
|
|
379
379
|
var n = a.iframe;
|
|
380
380
|
return be(e, void 0, void 0, function() {
|
|
381
|
-
var o, s,
|
|
382
|
-
return ve(this, function(
|
|
383
|
-
return o = n.createElement("canvas"), s = o.getContext("2d"),
|
|
381
|
+
var o, s, l, u;
|
|
382
|
+
return ve(this, function(c) {
|
|
383
|
+
return o = n.createElement("canvas"), s = o.getContext("2d"), l = jn.map(function(i) {
|
|
384
384
|
return ua(s, i);
|
|
385
385
|
}), u = {}, Bn.forEach(function(i) {
|
|
386
386
|
var p = ua(s, i);
|
|
387
|
-
|
|
387
|
+
l.includes(p) || (u[i] = p);
|
|
388
388
|
}), t(u), [2];
|
|
389
389
|
});
|
|
390
390
|
});
|
|
@@ -393,16 +393,16 @@ at().name != "Firefox" && ce("fonts", function() {
|
|
|
393
393
|
r({ error: "unsupported" });
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
|
-
}),
|
|
396
|
+
}), le("hardware", function() {
|
|
397
397
|
return new Promise(function(e, t) {
|
|
398
398
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, a = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
399
|
-
e({ videocard:
|
|
399
|
+
e({ videocard: Wn(), architecture: Gn(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: a.jsHeapSizeLimit || 0 });
|
|
400
400
|
});
|
|
401
|
-
}),
|
|
401
|
+
}), le("locales", function() {
|
|
402
402
|
return new Promise(function(e) {
|
|
403
403
|
e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
|
|
404
404
|
});
|
|
405
|
-
}),
|
|
405
|
+
}), le("permissions", function() {
|
|
406
406
|
return be(this, void 0, void 0, function() {
|
|
407
407
|
var e;
|
|
408
408
|
return ve(this, function(t) {
|
|
@@ -410,19 +410,19 @@ at().name != "Firefox" && ce("fonts", function() {
|
|
|
410
410
|
return function() {
|
|
411
411
|
return be(this, void 0, void 0, function() {
|
|
412
412
|
var r, a, n, o, s;
|
|
413
|
-
return ve(this, function(
|
|
414
|
-
switch (
|
|
413
|
+
return ve(this, function(l) {
|
|
414
|
+
switch (l.label) {
|
|
415
415
|
case 0:
|
|
416
|
-
r = {}, a = 0, n = tr,
|
|
416
|
+
r = {}, a = 0, n = tr, l.label = 1;
|
|
417
417
|
case 1:
|
|
418
418
|
if (!(a < n.length)) return [3, 6];
|
|
419
|
-
o = n[a],
|
|
419
|
+
o = n[a], l.label = 2;
|
|
420
420
|
case 2:
|
|
421
|
-
return
|
|
421
|
+
return l.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: o })];
|
|
422
422
|
case 3:
|
|
423
|
-
return s =
|
|
423
|
+
return s = l.sent(), r[o] = s.state.toString(), [3, 5];
|
|
424
424
|
case 4:
|
|
425
|
-
return
|
|
425
|
+
return l.sent(), [3, 5];
|
|
426
426
|
case 5:
|
|
427
427
|
return a++, [3, 1];
|
|
428
428
|
case 6:
|
|
@@ -436,7 +436,7 @@ at().name != "Firefox" && ce("fonts", function() {
|
|
|
436
436
|
})];
|
|
437
437
|
});
|
|
438
438
|
});
|
|
439
|
-
}),
|
|
439
|
+
}), le("plugins", function() {
|
|
440
440
|
var e = [];
|
|
441
441
|
if (navigator.plugins) for (var t = 0; t < navigator.plugins.length; t++) {
|
|
442
442
|
var r = navigator.plugins[t];
|
|
@@ -445,25 +445,25 @@ at().name != "Firefox" && ce("fonts", function() {
|
|
|
445
445
|
return new Promise(function(a) {
|
|
446
446
|
a({ plugins: e });
|
|
447
447
|
});
|
|
448
|
-
}),
|
|
448
|
+
}), le("screen", function() {
|
|
449
449
|
return new Promise(function(e) {
|
|
450
450
|
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: qn() });
|
|
451
451
|
});
|
|
452
|
-
}),
|
|
452
|
+
}), le("system", function() {
|
|
453
453
|
return new Promise(function(e) {
|
|
454
454
|
var t = at();
|
|
455
455
|
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: Yn() });
|
|
456
456
|
});
|
|
457
457
|
});
|
|
458
|
-
var
|
|
459
|
-
|
|
458
|
+
var Z, Qn = at().name !== "SamsungBrowser" ? 1 : 3, E = null;
|
|
459
|
+
le("webgl", function() {
|
|
460
460
|
return be(this, void 0, void 0, function() {
|
|
461
461
|
var e;
|
|
462
462
|
return ve(this, function(t) {
|
|
463
|
-
typeof document < "u" && ((
|
|
463
|
+
typeof document < "u" && ((Z = document.createElement("canvas")).width = 200, Z.height = 100, E = Z.getContext("webgl"));
|
|
464
464
|
try {
|
|
465
465
|
if (!E) throw new Error("WebGL not supported");
|
|
466
|
-
return e = Array.from({ length:
|
|
466
|
+
return e = Array.from({ length: Qn }, function() {
|
|
467
467
|
return function() {
|
|
468
468
|
try {
|
|
469
469
|
if (!E) throw new Error("WebGL not supported");
|
|
@@ -485,23 +485,23 @@ ce("webgl", function() {
|
|
|
485
485
|
if (!s) throw new Error("Failed to create shader program");
|
|
486
486
|
if (E.attachShader(s, n), E.attachShader(s, o), E.linkProgram(s), !E.getProgramParameter(s, E.LINK_STATUS)) throw new Error("Shader program linking failed: " + E.getProgramInfoLog(s));
|
|
487
487
|
E.useProgram(s);
|
|
488
|
-
for (var
|
|
489
|
-
var p = i *
|
|
490
|
-
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (
|
|
488
|
+
for (var l = 137, u = new Float32Array(4 * l), c = 2 * Math.PI / l, i = 0; i < l; i++) {
|
|
489
|
+
var p = i * c;
|
|
490
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (Z.width / 2), u[4 * i + 3] = Math.sin(p) * (Z.height / 2);
|
|
491
491
|
}
|
|
492
|
-
var
|
|
493
|
-
E.bindBuffer(E.ARRAY_BUFFER,
|
|
494
|
-
var
|
|
495
|
-
E.enableVertexAttribArray(
|
|
496
|
-
var
|
|
497
|
-
return E.readPixels(0, 0,
|
|
492
|
+
var m = E.createBuffer();
|
|
493
|
+
E.bindBuffer(E.ARRAY_BUFFER, m), E.bufferData(E.ARRAY_BUFFER, u, E.STATIC_DRAW);
|
|
494
|
+
var v = E.getAttribLocation(s, "position");
|
|
495
|
+
E.enableVertexAttribArray(v), E.vertexAttribPointer(v, 2, E.FLOAT, !1, 0, 0), E.viewport(0, 0, Z.width, Z.height), E.clearColor(0, 0, 0, 1), E.clear(E.COLOR_BUFFER_BIT), E.drawArrays(E.LINES, 0, 2 * l);
|
|
496
|
+
var b = new Uint8ClampedArray(Z.width * Z.height * 4);
|
|
497
|
+
return E.readPixels(0, 0, Z.width, Z.height, E.RGBA, E.UNSIGNED_BYTE, b), new ImageData(b, Z.width, Z.height);
|
|
498
498
|
} catch {
|
|
499
499
|
return new ImageData(1, 1);
|
|
500
500
|
} finally {
|
|
501
501
|
E && (E.bindBuffer(E.ARRAY_BUFFER, null), E.useProgram(null), E.viewport(0, 0, E.drawingBufferWidth, E.drawingBufferHeight), E.clearColor(0, 0, 0, 0));
|
|
502
502
|
}
|
|
503
503
|
}();
|
|
504
|
-
}), [2, { commonImageHash: lr(Ua(e,
|
|
504
|
+
}), [2, { commonImageHash: lr(Ua(e, Z.width, Z.height).data.toString()).toString() }];
|
|
505
505
|
} catch {
|
|
506
506
|
return [2, { webgl: "unsupported" }];
|
|
507
507
|
}
|
|
@@ -509,34 +509,40 @@ ce("webgl", function() {
|
|
|
509
509
|
});
|
|
510
510
|
});
|
|
511
511
|
});
|
|
512
|
-
var
|
|
512
|
+
var xe = function(e, t, r, a) {
|
|
513
513
|
for (var n = (r - t) / a, o = 0, s = 0; s < a; s++)
|
|
514
514
|
o += e(t + (s + 0.5) * n);
|
|
515
515
|
return o * n;
|
|
516
516
|
};
|
|
517
|
-
|
|
517
|
+
le("math", function() {
|
|
518
518
|
return be(void 0, void 0, void 0, function() {
|
|
519
519
|
return ve(this, function(e) {
|
|
520
|
-
return [2, { acos: Math.acos(0.5), asin:
|
|
520
|
+
return [2, { acos: Math.acos(0.5), asin: xe(Math.asin, -1, 1, 97), atan: xe(Math.atan, -1, 1, 97), cos: xe(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: xe(Math.sin, -Math.PI, Math.PI, 97), sinh: xe(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: xe(Math.tan, 0, 2 * Math.PI, 97), tanh: xe(Math.tanh, -9 / 7, 7 / 9, 97) }];
|
|
521
521
|
});
|
|
522
522
|
});
|
|
523
523
|
});
|
|
524
|
-
const
|
|
525
|
-
let
|
|
524
|
+
const Kn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
525
|
+
let kt = (e = 21) => {
|
|
526
526
|
let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
527
527
|
for (; e--; )
|
|
528
|
-
t +=
|
|
528
|
+
t += Kn[r[e] & 63];
|
|
529
529
|
return t;
|
|
530
530
|
};
|
|
531
531
|
class ur {
|
|
532
532
|
constructor(t) {
|
|
533
|
-
|
|
533
|
+
F(this, "config"), this.config = t;
|
|
534
534
|
}
|
|
535
535
|
async getAdsForSearchParams(t) {
|
|
536
536
|
return [];
|
|
537
537
|
}
|
|
538
|
+
async onQuerySubmitted(t) {
|
|
539
|
+
}
|
|
540
|
+
async onQueryFetched(t, r) {
|
|
541
|
+
}
|
|
542
|
+
async onInputCleared() {
|
|
543
|
+
}
|
|
538
544
|
}
|
|
539
|
-
class
|
|
545
|
+
class Xn extends ur {
|
|
540
546
|
/**
|
|
541
547
|
* Gets ads from the adMarketplace API based on the search term.
|
|
542
548
|
*/
|
|
@@ -553,13 +559,13 @@ class Qn extends ur {
|
|
|
553
559
|
"results-pa": `${this.config.admProductAdQuantity || 0}`
|
|
554
560
|
}).toString()}`, a = await (await fetch(r, { method: "GET" })).json(), n = a.product_ads.map(
|
|
555
561
|
(s) => ({
|
|
556
|
-
id:
|
|
562
|
+
id: kt(),
|
|
557
563
|
adSource: "adMarketplace",
|
|
558
564
|
admAdType: "adm-product-ad",
|
|
559
565
|
admAd: s
|
|
560
566
|
})
|
|
561
567
|
), o = a.text_ads.map((s) => ({
|
|
562
|
-
id:
|
|
568
|
+
id: kt(),
|
|
563
569
|
adSource: "adMarketplace",
|
|
564
570
|
admAdType: "adm-text-ad",
|
|
565
571
|
admAd: s
|
|
@@ -573,15 +579,47 @@ class Jn extends ur {
|
|
|
573
579
|
}
|
|
574
580
|
}
|
|
575
581
|
class Zn extends ur {
|
|
582
|
+
constructor(t) {
|
|
583
|
+
super(t), this.addScriptTagToDocument();
|
|
584
|
+
}
|
|
585
|
+
async onQuerySubmitted(t) {
|
|
586
|
+
this.addScriptTagToDocument();
|
|
587
|
+
}
|
|
588
|
+
async onQueryFetched(t, r) {
|
|
589
|
+
var a;
|
|
590
|
+
if ((((a = r.data.hits) == null ? void 0 : a.length) || 0) === 0) {
|
|
591
|
+
this.removeScriptTagFromDocument();
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
this.addScriptTagToDocument();
|
|
595
|
+
try {
|
|
596
|
+
PostRelease == null || PostRelease.Start({ ptd: [this.config.nativoPlacementId] });
|
|
597
|
+
} catch (n) {
|
|
598
|
+
console.error(n);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
async onInputCleared() {
|
|
602
|
+
this.removeScriptTagFromDocument();
|
|
603
|
+
}
|
|
576
604
|
async getAdsForSearchParams(t) {
|
|
577
605
|
return [];
|
|
578
606
|
}
|
|
607
|
+
addScriptTagToDocument() {
|
|
608
|
+
if (!document.head.querySelector("#nativo-tag")) {
|
|
609
|
+
const t = document.createElement("script");
|
|
610
|
+
t.type = "text/javascript", t.src = "https://s.ntv.io/serve/load.js", t.id = "nativo-tag", t.setAttribute("data-ntv-set-no-auto-start", "true"), document.head.appendChild(t);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
removeScriptTagFromDocument() {
|
|
614
|
+
const t = document.head.querySelector("#nativo-tag");
|
|
615
|
+
t && document.head.removeChild(t);
|
|
616
|
+
}
|
|
579
617
|
}
|
|
580
618
|
const eo = 500;
|
|
581
619
|
class to {
|
|
582
620
|
constructor(t, r, a) {
|
|
583
|
-
|
|
584
|
-
const
|
|
621
|
+
F(this, "measureRequestTimeout"), F(this, "measureRequestsBatched", []), F(this, "config"), F(this, "sdkInfo"), F(this, "userId"), F(this, "sessionId"), F(this, "sendMeasureEvent", (n, o = {}, s = {}) => {
|
|
622
|
+
const l = {
|
|
585
623
|
event_name: n,
|
|
586
624
|
properties: {
|
|
587
625
|
searchcraft_index_names: this.config.index,
|
|
@@ -593,10 +631,10 @@ class to {
|
|
|
593
631
|
...s
|
|
594
632
|
}
|
|
595
633
|
};
|
|
596
|
-
this.measureRequestsBatched.push(
|
|
597
|
-
const u = JSON.stringify({ items: this.measureRequestsBatched }),
|
|
634
|
+
this.measureRequestsBatched.push(l), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
|
|
635
|
+
const u = JSON.stringify({ items: this.measureRequestsBatched }), c = `${this.baseMeasureUrl}/batch`;
|
|
598
636
|
try {
|
|
599
|
-
const i = await fetch(
|
|
637
|
+
const i = await fetch(c, {
|
|
600
638
|
method: "POST",
|
|
601
639
|
headers: {
|
|
602
640
|
"Content-Type": "application/json",
|
|
@@ -616,7 +654,7 @@ class to {
|
|
|
616
654
|
throw console.error("Error sending MeasureRequest:", i), i;
|
|
617
655
|
}
|
|
618
656
|
}, eo);
|
|
619
|
-
}), this.config = t, this.sdkInfo = r, this.userId = a, this.sessionId =
|
|
657
|
+
}), this.config = t, this.sdkInfo = r, this.userId = a, this.sessionId = kt(), this.sendMeasureEvent("sdk_initialized");
|
|
620
658
|
}
|
|
621
659
|
/**
|
|
622
660
|
* Getter for the base url used by the /measure endpoints.
|
|
@@ -682,46 +720,53 @@ const ao = (e) => e.endsWith("/") ? e.slice(0, -1) : e, so = (e) => {
|
|
|
682
720
|
};
|
|
683
721
|
class no {
|
|
684
722
|
constructor(t, r, a) {
|
|
685
|
-
|
|
686
|
-
var o, s;
|
|
687
|
-
const
|
|
723
|
+
F(this, "config"), F(this, "userId"), F(this, "parent"), F(this, "getSearchResponse", async (n) => {
|
|
724
|
+
var o, s, l, u, c;
|
|
725
|
+
const i = so(n.searchTerm);
|
|
688
726
|
(o = this.parent.measureClient) == null || o.sendMeasureEvent("search_requested", {
|
|
689
|
-
search_term:
|
|
727
|
+
search_term: i
|
|
690
728
|
}), this.parent.emitEvent("query_submitted", {
|
|
691
729
|
name: "query_submitted",
|
|
692
730
|
data: {
|
|
693
|
-
searchTerm:
|
|
731
|
+
searchTerm: i
|
|
694
732
|
}
|
|
695
|
-
});
|
|
733
|
+
}), (s = this.parent.adClient) == null || s.onQuerySubmitted(n);
|
|
696
734
|
try {
|
|
697
|
-
const
|
|
735
|
+
const p = {
|
|
698
736
|
query: ro(n),
|
|
699
737
|
offset: n.offset || 0,
|
|
700
738
|
// Default to 0 (first page) if not provided
|
|
701
739
|
limit: n.limit || this.config.searchResultsPerPage || 20
|
|
702
740
|
// Default to 20 if not provided
|
|
703
741
|
};
|
|
704
|
-
n.order_by && (
|
|
705
|
-
const
|
|
742
|
+
n.order_by && (p.order_by = n.order_by, p.sort = n.sort === "desc" || n.sort === "asc" ? n.sort : "asc");
|
|
743
|
+
const m = {
|
|
706
744
|
method: "POST",
|
|
707
745
|
headers: {
|
|
708
746
|
Authorization: this.config.readKey,
|
|
709
747
|
"Content-Type": "application/json",
|
|
710
748
|
"X-Sc-User-Id": this.userId
|
|
711
749
|
},
|
|
712
|
-
body: JSON.stringify(
|
|
713
|
-
},
|
|
714
|
-
if (!
|
|
750
|
+
body: JSON.stringify(p)
|
|
751
|
+
}, v = await fetch(this.baseSearchUrl, m);
|
|
752
|
+
if (!v.ok)
|
|
715
753
|
throw new Error(
|
|
716
|
-
`Error: ${
|
|
754
|
+
`Error: ${v.statusText} (Status: ${v.status})`
|
|
717
755
|
);
|
|
718
|
-
const
|
|
719
|
-
return (
|
|
720
|
-
search_term:
|
|
721
|
-
number_of_documents:
|
|
722
|
-
}),
|
|
723
|
-
|
|
724
|
-
|
|
756
|
+
const b = await v.json();
|
|
757
|
+
return (l = this.parent.measureClient) == null || l.sendMeasureEvent("search_response_received", {
|
|
758
|
+
search_term: i,
|
|
759
|
+
number_of_documents: b.data.count
|
|
760
|
+
}), this.parent.emitEvent("query_fetched", {
|
|
761
|
+
name: "query_fetched",
|
|
762
|
+
data: {
|
|
763
|
+
searchTerm: i
|
|
764
|
+
}
|
|
765
|
+
}), (((u = b.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
|
|
766
|
+
name: "no_results_returned"
|
|
767
|
+
}), (c = this.parent.adClient) == null || c.onQueryFetched(n, b), b;
|
|
768
|
+
} catch (p) {
|
|
769
|
+
throw console.error("Error parsing response:", p), p;
|
|
725
770
|
}
|
|
726
771
|
}), this.parent = t, this.config = r, this.userId = a;
|
|
727
772
|
}
|
|
@@ -734,25 +779,23 @@ class no {
|
|
|
734
779
|
}
|
|
735
780
|
class oo {
|
|
736
781
|
constructor(t, r) {
|
|
737
|
-
if (
|
|
782
|
+
if (F(this, "config"), F(this, "measureClient"), F(this, "searchClient"), F(this, "adClient"), F(this, "userId"), F(this, "requestTimeout"), F(this, "subscriptionEvents", {}), F(this, "getItems", (a, n, o) => {
|
|
738
783
|
const s = async () => {
|
|
739
784
|
(async () => {
|
|
740
|
-
var
|
|
741
|
-
const
|
|
742
|
-
if (!
|
|
785
|
+
var l, u;
|
|
786
|
+
const c = await ((l = this == null ? void 0 : this.searchClient) == null ? void 0 : l.getSearchResponse(a));
|
|
787
|
+
if (!c)
|
|
743
788
|
throw new Error("Search client was not initialized.");
|
|
744
|
-
const i = (u =
|
|
789
|
+
const i = (u = c.data.hits || []) == null ? void 0 : u.map((p) => p.doc).filter((p) => !!p).map((p) => ({
|
|
745
790
|
type: "SearchDocument",
|
|
746
|
-
id:
|
|
791
|
+
id: kt(),
|
|
747
792
|
document: p
|
|
748
793
|
}));
|
|
749
|
-
|
|
750
|
-
name: "no_results_returned"
|
|
751
|
-
}), n(l, i);
|
|
794
|
+
n(c, i);
|
|
752
795
|
})(), (async () => {
|
|
753
796
|
if (this.adClient) {
|
|
754
|
-
const
|
|
755
|
-
o(
|
|
797
|
+
const l = await this.adClient.getAdsForSearchParams(a);
|
|
798
|
+
o(l);
|
|
756
799
|
}
|
|
757
800
|
})();
|
|
758
801
|
};
|
|
@@ -798,7 +841,7 @@ class oo {
|
|
|
798
841
|
let a = this.config.userId;
|
|
799
842
|
switch (a || (a = await Nn()), this.measureClient = new to(t, r, a), this.searchClient = new no(this, t, a), t.adSource) {
|
|
800
843
|
case "adMarketplace":
|
|
801
|
-
this.adClient = new
|
|
844
|
+
this.adClient = new Xn(t);
|
|
802
845
|
break;
|
|
803
846
|
case "Nativo":
|
|
804
847
|
this.adClient = new Zn(t);
|
|
@@ -822,6 +865,33 @@ class oo {
|
|
|
822
865
|
this.subscriptionEvents[t] = this.subscriptionEvents[t].filter((a) => a !== r);
|
|
823
866
|
};
|
|
824
867
|
}
|
|
868
|
+
/**
|
|
869
|
+
* Called when a `<searchcraft-ad>` component is rendered
|
|
870
|
+
*/
|
|
871
|
+
handleAdContainerRendered(t) {
|
|
872
|
+
var r;
|
|
873
|
+
if (t.adSource === "adMarketplace") {
|
|
874
|
+
const a = t.adClientResponseItem;
|
|
875
|
+
(r = a.admAd) != null && r.impression_url && fetch(a.admAd.impression_url);
|
|
876
|
+
}
|
|
877
|
+
this.emitEvent("ad_container_rendered", {
|
|
878
|
+
name: "ad_container_rendered",
|
|
879
|
+
data: {
|
|
880
|
+
adContainerId: t.adContainerId,
|
|
881
|
+
adSource: t.adSource,
|
|
882
|
+
searchTerm: t.searchTerm
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Perform various actions when the input is cleared
|
|
888
|
+
*/
|
|
889
|
+
handleInputCleared() {
|
|
890
|
+
var t;
|
|
891
|
+
this.emitEvent("input_cleared", {
|
|
892
|
+
name: "input_cleared"
|
|
893
|
+
}), (t = this.adClient) == null || t.onInputCleared();
|
|
894
|
+
}
|
|
825
895
|
}
|
|
826
896
|
const io = "searchcraft-javascript-sdk", je = (
|
|
827
897
|
/* searchcraft-javascript-sdk */
|
|
@@ -835,20 +905,20 @@ var co = Object.defineProperty, lo = (e, t) => {
|
|
|
835
905
|
const a = t.$cmpMeta$;
|
|
836
906
|
Object.entries((r = a.$members$) != null ? r : {}).map(([o, [s]]) => {
|
|
837
907
|
if (s & 31 || s & 32) {
|
|
838
|
-
const
|
|
908
|
+
const l = e[o], u = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), o);
|
|
839
909
|
Object.defineProperty(e, o, {
|
|
840
910
|
get() {
|
|
841
911
|
return u.get.call(this);
|
|
842
912
|
},
|
|
843
|
-
set(
|
|
844
|
-
u.set.call(this,
|
|
913
|
+
set(c) {
|
|
914
|
+
u.set.call(this, c);
|
|
845
915
|
},
|
|
846
916
|
configurable: !0,
|
|
847
917
|
enumerable: !0
|
|
848
|
-
}), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) :
|
|
918
|
+
}), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : l;
|
|
849
919
|
}
|
|
850
920
|
});
|
|
851
|
-
}, hr = /* @__PURE__ */ new WeakMap(), po = (e) => hr.delete(e),
|
|
921
|
+
}, hr = /* @__PURE__ */ new WeakMap(), po = (e) => hr.delete(e), ke = (e) => hr.get(e), mo = (e, t) => {
|
|
852
922
|
const r = {
|
|
853
923
|
$flags$: 0,
|
|
854
924
|
$hostElement$: e,
|
|
@@ -858,8 +928,8 @@ var co = Object.defineProperty, lo = (e, t) => {
|
|
|
858
928
|
r.$onReadyPromise$ = new Promise((n) => r.$onReadyResolve$ = n), e["s-p"] = [], e["s-rc"] = [];
|
|
859
929
|
const a = hr.set(e, r);
|
|
860
930
|
return fo(e, r), a;
|
|
861
|
-
}, ha = (e, t) => t in e, _t = (e, t) => (0, console.error)(e, t), At = typeof window < "u" ? window : {}, Be = At.document || { head: {} },
|
|
862
|
-
},
|
|
931
|
+
}, ha = (e, t) => t in e, _t = (e, t) => (0, console.error)(e, t), At = typeof window < "u" ? window : {}, Be = At.document || { head: {} }, D = At.HTMLElement || class {
|
|
932
|
+
}, re = {
|
|
863
933
|
$flags$: 0,
|
|
864
934
|
$resourcesUrl$: "",
|
|
865
935
|
jmp: (e) => e(),
|
|
@@ -868,7 +938,7 @@ var co = Object.defineProperty, lo = (e, t) => {
|
|
|
868
938
|
rel: (e, t, r, a) => e.removeEventListener(t, r, a),
|
|
869
939
|
ce: (e, t) => new CustomEvent(e, t)
|
|
870
940
|
}, go = je.shadowDom, bo = (e) => Promise.resolve(e), nr = !1, fa = [], za = [], vo = (e, t) => (r) => {
|
|
871
|
-
e.push(r), nr || (nr = !0,
|
|
941
|
+
e.push(r), nr || (nr = !0, re.$flags$ & 4 ? fr(or) : re.raf(or));
|
|
872
942
|
}, da = (e) => {
|
|
873
943
|
for (let t = 0; t < e.length; t++)
|
|
874
944
|
try {
|
|
@@ -878,7 +948,7 @@ var co = Object.defineProperty, lo = (e, t) => {
|
|
|
878
948
|
}
|
|
879
949
|
e.length = 0;
|
|
880
950
|
}, or = () => {
|
|
881
|
-
da(fa), da(za), (nr = fa.length > 0) &&
|
|
951
|
+
da(fa), da(za), (nr = fa.length > 0) && re.raf(or);
|
|
882
952
|
}, fr = (e) => bo().then(e), yo = /* @__PURE__ */ vo(za), dr = (e) => (e = typeof e, e === "object" || e === "function"), So = {};
|
|
883
953
|
lo(So, {
|
|
884
954
|
err: () => Ha,
|
|
@@ -919,7 +989,7 @@ var Eo = (e) => {
|
|
|
919
989
|
const t = e.__childNodes || e.childNodes;
|
|
920
990
|
e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && ja(t, e.tagName).forEach((r) => {
|
|
921
991
|
var a;
|
|
922
|
-
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((a =
|
|
992
|
+
r.nodeType === 1 && r.tagName === "SLOT-FB" && ((a = Co(r, r["s-sn"], !1)) != null && a.length ? r.hidden = !0 : r.hidden = !1);
|
|
923
993
|
});
|
|
924
994
|
for (const r of t)
|
|
925
995
|
r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Ba(r);
|
|
@@ -930,34 +1000,34 @@ function ja(e, t, r) {
|
|
|
930
1000
|
o = e[a], o["s-sr"] && o["s-hn"] === t && r === void 0 && n.push(o), n = [...n, ...ja(o.childNodes, t, r)];
|
|
931
1001
|
return n;
|
|
932
1002
|
}
|
|
933
|
-
var
|
|
1003
|
+
var Co = (e, t, r = !0) => {
|
|
934
1004
|
const a = [];
|
|
935
1005
|
for ((r && e["s-sr"] || !e["s-sr"]) && a.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
|
|
936
1006
|
a.push(e);
|
|
937
1007
|
return a;
|
|
938
1008
|
}, pa = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", st = (e, t = "") => () => {
|
|
939
1009
|
}, d = (e, t, ...r) => {
|
|
940
|
-
let a = null, n = null, o = null, s = !1,
|
|
941
|
-
const u = [],
|
|
942
|
-
for (let
|
|
943
|
-
a = p[
|
|
1010
|
+
let a = null, n = null, o = null, s = !1, l = !1;
|
|
1011
|
+
const u = [], c = (p) => {
|
|
1012
|
+
for (let m = 0; m < p.length; m++)
|
|
1013
|
+
a = p[m], Array.isArray(a) ? c(a) : a != null && typeof a != "boolean" && ((s = typeof e != "function" && !dr(a)) && (a = String(a)), s && l ? u[u.length - 1].$text$ += a : u.push(s ? Pt(null, a) : a), l = s);
|
|
944
1014
|
};
|
|
945
|
-
if (
|
|
1015
|
+
if (c(r), t) {
|
|
946
1016
|
t.key && (n = t.key), t.name && (o = t.name);
|
|
947
1017
|
{
|
|
948
1018
|
const p = t.className || t.class;
|
|
949
|
-
p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((
|
|
1019
|
+
p && (t.class = typeof p != "object" ? p : Object.keys(p).filter((m) => p[m]).join(" "));
|
|
950
1020
|
}
|
|
951
1021
|
}
|
|
952
1022
|
if (typeof e == "function")
|
|
953
1023
|
return e(
|
|
954
1024
|
t === null ? {} : t,
|
|
955
1025
|
u,
|
|
956
|
-
|
|
1026
|
+
To
|
|
957
1027
|
);
|
|
958
|
-
const i =
|
|
1028
|
+
const i = Pt(e, null);
|
|
959
1029
|
return i.$attrs$ = t, u.length > 0 && (i.$children$ = u), i.$key$ = n, i.$name$ = o, i;
|
|
960
|
-
},
|
|
1030
|
+
}, Pt = (e, t) => {
|
|
961
1031
|
const r = {
|
|
962
1032
|
$flags$: 0,
|
|
963
1033
|
$tag$: e,
|
|
@@ -966,9 +1036,9 @@ var ko = (e, t, r = !0) => {
|
|
|
966
1036
|
$children$: null
|
|
967
1037
|
};
|
|
968
1038
|
return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
|
|
969
|
-
},
|
|
1039
|
+
}, ko = {}, Po = (e) => e && e.$tag$ === ko, To = {
|
|
970
1040
|
forEach: (e, t) => e.map(ma).forEach(t),
|
|
971
|
-
map: (e, t) => e.map(ma).map(t).map(
|
|
1041
|
+
map: (e, t) => e.map(ma).map(t).map(xo)
|
|
972
1042
|
}, ma = (e) => ({
|
|
973
1043
|
vattrs: e.$attrs$,
|
|
974
1044
|
vchildren: e.$children$,
|
|
@@ -976,44 +1046,44 @@ var ko = (e, t, r = !0) => {
|
|
|
976
1046
|
vname: e.$name$,
|
|
977
1047
|
vtag: e.$tag$,
|
|
978
1048
|
vtext: e.$text$
|
|
979
|
-
}),
|
|
1049
|
+
}), xo = (e) => {
|
|
980
1050
|
if (typeof e.vtag == "function") {
|
|
981
1051
|
const r = { ...e.vattrs };
|
|
982
1052
|
return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), d(e.vtag, r, ...e.vchildren || []);
|
|
983
1053
|
}
|
|
984
|
-
const t =
|
|
1054
|
+
const t = Pt(e.vtag, e.vtext);
|
|
985
1055
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
|
986
|
-
},
|
|
1056
|
+
}, Wa = (e, t) => e != null && !dr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, $o = (e) => e, Re = (e, t, r) => {
|
|
987
1057
|
const a = $o(e);
|
|
988
1058
|
return {
|
|
989
|
-
emit: (n) =>
|
|
1059
|
+
emit: (n) => Ga(a, t, {
|
|
990
1060
|
bubbles: !0,
|
|
991
1061
|
composed: !0,
|
|
992
1062
|
cancelable: !0,
|
|
993
1063
|
detail: n
|
|
994
1064
|
})
|
|
995
1065
|
};
|
|
996
|
-
},
|
|
997
|
-
const a =
|
|
1066
|
+
}, Ga = (e, t, r) => {
|
|
1067
|
+
const a = re.ce(t, r);
|
|
998
1068
|
return e.dispatchEvent(a), a;
|
|
999
1069
|
}, St = /* @__PURE__ */ new WeakMap(), ga = (e, t, r, a, n, o) => {
|
|
1000
1070
|
if (r !== a) {
|
|
1001
|
-
let s = ha(e, t),
|
|
1071
|
+
let s = ha(e, t), l = t.toLowerCase();
|
|
1002
1072
|
if (t === "class") {
|
|
1003
|
-
const u = e.classList,
|
|
1073
|
+
const u = e.classList, c = ba(r);
|
|
1004
1074
|
let i = ba(a);
|
|
1005
|
-
e["s-si"] ? (i.push(e["s-si"]),
|
|
1075
|
+
e["s-si"] ? (i.push(e["s-si"]), c.forEach((p) => {
|
|
1006
1076
|
p.startsWith(e["s-si"]) && i.push(p);
|
|
1007
|
-
}), i = [...new Set(i)], u.add(...i), delete e["s-si"]) : (u.remove(...
|
|
1077
|
+
}), i = [...new Set(i)], u.add(...i), delete e["s-si"]) : (u.remove(...c.filter((p) => p && !i.includes(p))), u.add(...i.filter((p) => p && !c.includes(p))));
|
|
1008
1078
|
} else if (t === "style") {
|
|
1009
1079
|
for (const u in r)
|
|
1010
1080
|
(!a || a[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
|
|
1011
1081
|
for (const u in a)
|
|
1012
1082
|
(!r || a[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, a[u]) : e.style[u] = a[u]);
|
|
1013
1083
|
} else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
1014
|
-
if (t[2] === "-" ? t = t.slice(3) : ha(At,
|
|
1084
|
+
if (t[2] === "-" ? t = t.slice(3) : ha(At, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || a) {
|
|
1015
1085
|
const u = t.endsWith(Va);
|
|
1016
|
-
t = t.replace(Ao, ""), r &&
|
|
1086
|
+
t = t.replace(Ao, ""), r && re.rel(e, t, r, u), a && re.ael(e, t, a, u);
|
|
1017
1087
|
}
|
|
1018
1088
|
} else {
|
|
1019
1089
|
const u = dr(a);
|
|
@@ -1022,8 +1092,8 @@ var ko = (e, t, r = !0) => {
|
|
|
1022
1092
|
if (e.tagName.includes("-"))
|
|
1023
1093
|
e[t] !== a && (e[t] = a);
|
|
1024
1094
|
else {
|
|
1025
|
-
const
|
|
1026
|
-
t === "list" ? s = !1 : (r == null || e[t] !=
|
|
1095
|
+
const c = a ?? "";
|
|
1096
|
+
t === "list" ? s = !1 : (r == null || e[t] != c) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = c : e.setAttribute(t, c));
|
|
1027
1097
|
}
|
|
1028
1098
|
} catch {
|
|
1029
1099
|
}
|
|
@@ -1046,11 +1116,11 @@ function va(e) {
|
|
|
1046
1116
|
e
|
|
1047
1117
|
);
|
|
1048
1118
|
}
|
|
1049
|
-
var cr, pr,
|
|
1119
|
+
var cr, pr, Tt = !1, xt = !1, mr = !1, se = !1, $t = (e, t, r) => {
|
|
1050
1120
|
var a;
|
|
1051
1121
|
const n = t.$children$[r];
|
|
1052
|
-
let o = 0, s,
|
|
1053
|
-
if (
|
|
1122
|
+
let o = 0, s, l, u;
|
|
1123
|
+
if (Tt || (mr = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
|
|
1054
1124
|
// slot element has fallback content
|
|
1055
1125
|
// still create an element that "mocks" the slot element
|
|
1056
1126
|
2
|
|
@@ -1064,83 +1134,83 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1064
1134
|
else if (n.$flags$ & 1)
|
|
1065
1135
|
s = n.$elm$ = Be.createTextNode("");
|
|
1066
1136
|
else {
|
|
1067
|
-
if (
|
|
1068
|
-
|
|
1069
|
-
!
|
|
1070
|
-
),
|
|
1137
|
+
if (se || (se = n.$tag$ === "svg"), s = n.$elm$ = Be.createElementNS(
|
|
1138
|
+
se ? uo : ho,
|
|
1139
|
+
!Tt && je.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
|
|
1140
|
+
), se && n.$tag$ === "foreignObject" && (se = !1), qa(null, n, se), n.$children$)
|
|
1071
1141
|
for (o = 0; o < n.$children$.length; ++o)
|
|
1072
|
-
|
|
1073
|
-
n.$tag$ === "svg" ?
|
|
1142
|
+
l = $t(e, n, o), l && s.appendChild(l);
|
|
1143
|
+
n.$tag$ === "svg" ? se = !1 : s.tagName === "foreignObject" && (se = !0);
|
|
1074
1144
|
}
|
|
1075
1145
|
return s["s-hn"] = pr, n.$flags$ & 3 && (s["s-sr"] = !0, s["s-cr"] = cr, s["s-sn"] = n.$name$ || "", s["s-rf"] = (a = n.$attrs$) == null ? void 0 : a.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === n.$tag$ && e.$elm$ && nt(e.$elm$, !1)), s;
|
|
1076
1146
|
}, nt = (e, t) => {
|
|
1077
|
-
|
|
1147
|
+
re.$flags$ |= 1;
|
|
1078
1148
|
const r = Array.from(e.__childNodes || e.childNodes);
|
|
1079
1149
|
e["s-sr"] && je.experimentalSlotFixes;
|
|
1080
1150
|
for (let a = r.length - 1; a >= 0; a--) {
|
|
1081
1151
|
const n = r[a];
|
|
1082
|
-
n["s-hn"] !== pr && n["s-ol"] && (
|
|
1152
|
+
n["s-hn"] !== pr && n["s-ol"] && (Ce(ot(n).parentNode, n, ot(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, mr = !0), t && nt(n, t);
|
|
1083
1153
|
}
|
|
1084
|
-
|
|
1154
|
+
re.$flags$ &= -2;
|
|
1085
1155
|
}, Ya = (e, t, r, a, n, o) => {
|
|
1086
|
-
let s = e["s-cr"] && e["s-cr"].parentNode || e,
|
|
1156
|
+
let s = e["s-cr"] && e["s-cr"].parentNode || e, l;
|
|
1087
1157
|
for (; n <= o; ++n)
|
|
1088
|
-
a[n] && (
|
|
1089
|
-
},
|
|
1158
|
+
a[n] && (l = $t(null, r, n), l && (a[n].$elm$ = l, Ce(s, l, ot(t))));
|
|
1159
|
+
}, Qa = (e, t, r) => {
|
|
1090
1160
|
for (let a = t; a <= r; ++a) {
|
|
1091
1161
|
const n = e[a];
|
|
1092
1162
|
if (n) {
|
|
1093
1163
|
const o = n.$elm$;
|
|
1094
|
-
o && (
|
|
1164
|
+
o && (xt = !0, o["s-ol"] ? o["s-ol"].remove() : nt(o, !0), o.remove());
|
|
1095
1165
|
}
|
|
1096
1166
|
}
|
|
1097
1167
|
}, Io = (e, t, r, a, n = !1) => {
|
|
1098
|
-
let o = 0, s = 0,
|
|
1099
|
-
for (; o <=
|
|
1168
|
+
let o = 0, s = 0, l = 0, u = 0, c = t.length - 1, i = t[0], p = t[c], m = a.length - 1, v = a[0], b = a[m], $, H;
|
|
1169
|
+
for (; o <= c && s <= m; )
|
|
1100
1170
|
if (i == null)
|
|
1101
1171
|
i = t[++o];
|
|
1102
1172
|
else if (p == null)
|
|
1103
|
-
p = t[--
|
|
1173
|
+
p = t[--c];
|
|
1174
|
+
else if (v == null)
|
|
1175
|
+
v = a[++s];
|
|
1104
1176
|
else if (b == null)
|
|
1105
|
-
b = a[
|
|
1106
|
-
else if (
|
|
1107
|
-
|
|
1108
|
-
else if (wt(i, b, n))
|
|
1109
|
-
ze(i, b, n), i = t[++o], b = a[++s];
|
|
1110
|
-
else if (wt(p, w, n))
|
|
1111
|
-
ze(p, w, n), p = t[--l], w = a[--g];
|
|
1112
|
-
else if (wt(i, w, n))
|
|
1113
|
-
(i.$tag$ === "slot" || w.$tag$ === "slot") && nt(i.$elm$.parentNode, !1), ze(i, w, n), ke(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], w = a[--g];
|
|
1177
|
+
b = a[--m];
|
|
1178
|
+
else if (wt(i, v, n))
|
|
1179
|
+
ze(i, v, n), i = t[++o], v = a[++s];
|
|
1114
1180
|
else if (wt(p, b, n))
|
|
1115
|
-
|
|
1181
|
+
ze(p, b, n), p = t[--c], b = a[--m];
|
|
1182
|
+
else if (wt(i, b, n))
|
|
1183
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && nt(i.$elm$.parentNode, !1), ze(i, b, n), Ce(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], b = a[--m];
|
|
1184
|
+
else if (wt(p, v, n))
|
|
1185
|
+
(i.$tag$ === "slot" || b.$tag$ === "slot") && nt(p.$elm$.parentNode, !1), ze(p, v, n), Ce(e, p.$elm$, i.$elm$), p = t[--c], v = a[++s];
|
|
1116
1186
|
else {
|
|
1117
|
-
for (
|
|
1118
|
-
if (t[u] && t[u].$key$ !== null && t[u].$key$ ===
|
|
1119
|
-
|
|
1187
|
+
for (l = -1, u = o; u <= c; ++u)
|
|
1188
|
+
if (t[u] && t[u].$key$ !== null && t[u].$key$ === v.$key$) {
|
|
1189
|
+
l = u;
|
|
1120
1190
|
break;
|
|
1121
1191
|
}
|
|
1122
|
-
|
|
1192
|
+
l >= 0 ? (H = t[l], H.$tag$ !== v.$tag$ ? $ = $t(t && t[s], r, l) : (ze(H, v, n), t[l] = void 0, $ = H.$elm$), v = a[++s]) : ($ = $t(t && t[s], r, s), v = a[++s]), $ && Ce(
|
|
1123
1193
|
ot(i.$elm$).parentNode,
|
|
1124
|
-
|
|
1194
|
+
$,
|
|
1125
1195
|
ot(i.$elm$)
|
|
1126
1196
|
);
|
|
1127
1197
|
}
|
|
1128
|
-
o >
|
|
1198
|
+
o > c ? Ya(
|
|
1129
1199
|
e,
|
|
1130
|
-
a[
|
|
1200
|
+
a[m + 1] == null ? null : a[m + 1].$elm$,
|
|
1131
1201
|
r,
|
|
1132
1202
|
a,
|
|
1133
1203
|
s,
|
|
1134
|
-
|
|
1135
|
-
) : s >
|
|
1204
|
+
m
|
|
1205
|
+
) : s > m && Qa(t, o, c);
|
|
1136
1206
|
}, wt = (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, ot = (e) => e && e["s-ol"] || e, ze = (e, t, r = !1) => {
|
|
1137
|
-
const a = t.$elm$ = e.$elm$, n = e.$children$, o = t.$children$, s = t.$tag$,
|
|
1207
|
+
const a = t.$elm$ = e.$elm$, n = e.$children$, o = t.$children$, s = t.$tag$, l = t.$text$;
|
|
1138
1208
|
let u;
|
|
1139
|
-
|
|
1209
|
+
l === null ? (se = s === "svg" ? !0 : s === "foreignObject" ? !1 : se, s === "slot" && !Tt || qa(e, t, se), n !== null && o !== null ? Io(a, n, t, o, r) : o !== null ? (e.$text$ !== null && (a.textContent = ""), Ya(a, null, t, o, 0, o.length - 1)) : (
|
|
1140
1210
|
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
1141
|
-
!r && je.updatable && n !== null &&
|
|
1142
|
-
),
|
|
1143
|
-
}, ge = [],
|
|
1211
|
+
!r && je.updatable && n !== null && Qa(n, 0, n.length - 1)
|
|
1212
|
+
), se && s === "svg" && (se = !1)) : (u = a["s-cr"]) ? u.parentNode.textContent = l : e.$text$ !== l && (a.data = l);
|
|
1213
|
+
}, ge = [], Ka = (e) => {
|
|
1144
1214
|
let t, r, a;
|
|
1145
1215
|
const n = e.__childNodes || e.childNodes;
|
|
1146
1216
|
for (const o of n) {
|
|
@@ -1150,66 +1220,66 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1150
1220
|
for (a = r.length - 1; a >= 0; a--)
|
|
1151
1221
|
if (t = r[a], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
|
|
1152
1222
|
if (pa(t, s)) {
|
|
1153
|
-
let
|
|
1154
|
-
|
|
1223
|
+
let l = ge.find((u) => u.$nodeToRelocate$ === t);
|
|
1224
|
+
xt = !0, t["s-sn"] = t["s-sn"] || s, l ? (l.$nodeToRelocate$["s-sh"] = o["s-hn"], l.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], ge.push({
|
|
1155
1225
|
$slotRefNode$: o,
|
|
1156
1226
|
$nodeToRelocate$: t
|
|
1157
1227
|
})), t["s-sr"] && ge.map((u) => {
|
|
1158
|
-
pa(u.$nodeToRelocate$, t["s-sn"]) && (
|
|
1228
|
+
pa(u.$nodeToRelocate$, t["s-sn"]) && (l = ge.find((c) => c.$nodeToRelocate$ === t), l && !u.$slotRefNode$ && (u.$slotRefNode$ = l.$slotRefNode$));
|
|
1159
1229
|
});
|
|
1160
|
-
} else ge.some((
|
|
1230
|
+
} else ge.some((l) => l.$nodeToRelocate$ === t) || ge.push({
|
|
1161
1231
|
$nodeToRelocate$: t
|
|
1162
1232
|
});
|
|
1163
1233
|
}
|
|
1164
|
-
o.nodeType === 1 &&
|
|
1234
|
+
o.nodeType === 1 && Ka(o);
|
|
1165
1235
|
}
|
|
1166
|
-
},
|
|
1236
|
+
}, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Mo = (e, t, r = !1) => {
|
|
1167
1237
|
var a, n, o, s;
|
|
1168
|
-
const
|
|
1169
|
-
if (pr =
|
|
1170
|
-
for (const i of Object.keys(
|
|
1171
|
-
|
|
1172
|
-
|
|
1238
|
+
const l = e.$hostElement$, u = e.$vnode$ || Pt(null, null), c = Po(t) ? t : d(null, null, t);
|
|
1239
|
+
if (pr = l.tagName, r && c.$attrs$)
|
|
1240
|
+
for (const i of Object.keys(c.$attrs$))
|
|
1241
|
+
l.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (c.$attrs$[i] = l[i]);
|
|
1242
|
+
c.$tag$ = null, c.$flags$ |= 4, e.$vnode$ = c, c.$elm$ = u.$elm$ = l, Tt = go, cr = l["s-cr"], xt = !1, ze(u, c, r);
|
|
1173
1243
|
{
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1244
|
+
if (re.$flags$ |= 1, mr) {
|
|
1245
|
+
Ka(c.$elm$);
|
|
1176
1246
|
for (const i of ge) {
|
|
1177
1247
|
const p = i.$nodeToRelocate$;
|
|
1178
1248
|
if (!p["s-ol"]) {
|
|
1179
|
-
const
|
|
1180
|
-
|
|
1249
|
+
const m = Be.createTextNode("");
|
|
1250
|
+
m["s-nr"] = p, Ce(p.parentNode, p["s-ol"] = m, p);
|
|
1181
1251
|
}
|
|
1182
1252
|
}
|
|
1183
1253
|
for (const i of ge) {
|
|
1184
|
-
const p = i.$nodeToRelocate$,
|
|
1185
|
-
if (
|
|
1186
|
-
const
|
|
1187
|
-
let
|
|
1254
|
+
const p = i.$nodeToRelocate$, m = i.$slotRefNode$;
|
|
1255
|
+
if (m) {
|
|
1256
|
+
const v = m.parentNode;
|
|
1257
|
+
let b = m.nextSibling;
|
|
1188
1258
|
{
|
|
1189
|
-
let
|
|
1190
|
-
for (;
|
|
1191
|
-
let
|
|
1192
|
-
if (
|
|
1193
|
-
for (
|
|
1194
|
-
|
|
1195
|
-
if (!
|
|
1196
|
-
|
|
1259
|
+
let ae = (a = p["s-ol"]) == null ? void 0 : a.previousSibling;
|
|
1260
|
+
for (; ae; ) {
|
|
1261
|
+
let L = (n = ae["s-nr"]) != null ? n : null;
|
|
1262
|
+
if (L && L["s-sn"] === p["s-sn"] && v === (L.__parentNode || L.parentNode)) {
|
|
1263
|
+
for (L = L.nextSibling; L === p || L != null && L["s-sr"]; )
|
|
1264
|
+
L = L == null ? void 0 : L.nextSibling;
|
|
1265
|
+
if (!L || !L["s-nr"]) {
|
|
1266
|
+
b = L;
|
|
1197
1267
|
break;
|
|
1198
1268
|
}
|
|
1199
1269
|
}
|
|
1200
|
-
|
|
1270
|
+
ae = ae.previousSibling;
|
|
1201
1271
|
}
|
|
1202
1272
|
}
|
|
1203
|
-
const
|
|
1204
|
-
(!
|
|
1273
|
+
const $ = p.__parentNode || p.parentNode, H = p.__nextSibling || p.nextSibling;
|
|
1274
|
+
(!b && v !== $ || H !== b) && p !== b && (!p["s-hn"] && p["s-ol"] && (p["s-hn"] = p["s-ol"].parentNode.nodeName), Ce(v, p, b), p.nodeType === 1 && p.tagName !== "SLOT-FB" && (p.hidden = (o = p["s-ih"]) != null ? o : !1)), p && typeof m["s-rf"] == "function" && m["s-rf"](p);
|
|
1205
1275
|
} else
|
|
1206
1276
|
p.nodeType === 1 && (r && (p["s-ih"] = (s = p.hidden) != null ? s : !1), p.hidden = !0);
|
|
1207
1277
|
}
|
|
1208
1278
|
}
|
|
1209
|
-
|
|
1279
|
+
xt && Ba(c.$elm$), re.$flags$ &= -2, ge.length = 0;
|
|
1210
1280
|
}
|
|
1211
1281
|
cr = void 0;
|
|
1212
|
-
},
|
|
1282
|
+
}, Xa = (e, t) => {
|
|
1213
1283
|
if (t && !e.$onRenderResolve$ && t["s-p"]) {
|
|
1214
1284
|
const r = t["s-p"].push(
|
|
1215
1285
|
new Promise(
|
|
@@ -1224,7 +1294,7 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1224
1294
|
e.$flags$ |= 512;
|
|
1225
1295
|
return;
|
|
1226
1296
|
}
|
|
1227
|
-
return
|
|
1297
|
+
return Xa(e, e.$ancestorComponent$), yo(() => Lo(e, t));
|
|
1228
1298
|
}, Lo = (e, t) => {
|
|
1229
1299
|
const r = e.$hostElement$, a = st("scheduleUpdate", e.$cmpMeta$.$tagName$), n = r;
|
|
1230
1300
|
if (!n)
|
|
@@ -1237,11 +1307,11 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1237
1307
|
console.error(r), t();
|
|
1238
1308
|
}) : t(), Fo = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Do = async (e, t, r) => {
|
|
1239
1309
|
var a;
|
|
1240
|
-
const n = e.$hostElement$, o = st("update", e.$cmpMeta$.$tagName$), s = n["s-rc"],
|
|
1241
|
-
No(e, t, n, r), s && (s.map((u) => u()), n["s-rc"] = void 0),
|
|
1310
|
+
const n = e.$hostElement$, o = st("update", e.$cmpMeta$.$tagName$), s = n["s-rc"], l = st("render", e.$cmpMeta$.$tagName$);
|
|
1311
|
+
No(e, t, n, r), s && (s.map((u) => u()), n["s-rc"] = void 0), l(), o();
|
|
1242
1312
|
{
|
|
1243
|
-
const u = (a = n["s-p"]) != null ? a : [],
|
|
1244
|
-
u.length === 0 ?
|
|
1313
|
+
const u = (a = n["s-p"]) != null ? a : [], c = () => Uo(e);
|
|
1314
|
+
u.length === 0 ? c() : (Promise.all(u).then(c), e.$flags$ |= 4, u.length = 0);
|
|
1245
1315
|
}
|
|
1246
1316
|
}, No = (e, t, r, a) => {
|
|
1247
1317
|
try {
|
|
@@ -1254,7 +1324,7 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1254
1324
|
const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, a = st("postUpdate", t), n = r, o = e.$ancestorComponent$;
|
|
1255
1325
|
e.$flags$ & 64 ? a() : (e.$flags$ |= 64, Ja(r), Ho(n, "componentDidLoad", void 0, r), a(), e.$onReadyResolve$(r), o || zo()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && fr(() => gr(e, !1)), e.$flags$ &= -517;
|
|
1256
1326
|
}, zo = (e) => {
|
|
1257
|
-
Ja(Be.documentElement), fr(() =>
|
|
1327
|
+
Ja(Be.documentElement), fr(() => Ga(At, "appload", { detail: { namespace: io } }));
|
|
1258
1328
|
}, Ho = (e, t, r, a) => {
|
|
1259
1329
|
if (e && e[t])
|
|
1260
1330
|
try {
|
|
@@ -1265,24 +1335,24 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1265
1335
|
}, Ja = (e) => {
|
|
1266
1336
|
var t;
|
|
1267
1337
|
return e.classList.add((t = je.hydratedSelectorName) != null ? t : "hydrated");
|
|
1268
|
-
}, Bo = (e, t) =>
|
|
1269
|
-
const n =
|
|
1270
|
-
r =
|
|
1271
|
-
const
|
|
1272
|
-
if (r !== s && !
|
|
1338
|
+
}, Bo = (e, t) => ke(e).$instanceValues$.get(t), ya = (e, t, r, a) => {
|
|
1339
|
+
const n = ke(e), o = e, s = n.$instanceValues$.get(t), l = n.$flags$, u = o;
|
|
1340
|
+
r = Wa(r, a.$members$[t][0]);
|
|
1341
|
+
const c = Number.isNaN(s) && Number.isNaN(r);
|
|
1342
|
+
if (r !== s && !c) {
|
|
1273
1343
|
n.$instanceValues$.set(t, r);
|
|
1274
1344
|
{
|
|
1275
|
-
if (a.$watchers$ &&
|
|
1345
|
+
if (a.$watchers$ && l & 128) {
|
|
1276
1346
|
const p = a.$watchers$[t];
|
|
1277
|
-
p && p.map((
|
|
1347
|
+
p && p.map((m) => {
|
|
1278
1348
|
try {
|
|
1279
|
-
u[
|
|
1280
|
-
} catch (
|
|
1281
|
-
_t(
|
|
1349
|
+
u[m](r, s, t);
|
|
1350
|
+
} catch (v) {
|
|
1351
|
+
_t(v, o);
|
|
1282
1352
|
}
|
|
1283
1353
|
});
|
|
1284
1354
|
}
|
|
1285
|
-
(
|
|
1355
|
+
(l & 18) === 2 && gr(n, !1);
|
|
1286
1356
|
}
|
|
1287
1357
|
}
|
|
1288
1358
|
}, jo = (e, t, r) => {
|
|
@@ -1291,25 +1361,25 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1291
1361
|
if (t.$members$ || t.$watchers$ || e.watchers) {
|
|
1292
1362
|
e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
|
|
1293
1363
|
const s = Object.entries((a = t.$members$) != null ? a : {});
|
|
1294
|
-
s.map(([
|
|
1364
|
+
s.map(([l, [u]]) => {
|
|
1295
1365
|
if (u & 31 || u & 32) {
|
|
1296
|
-
const { get:
|
|
1297
|
-
|
|
1366
|
+
const { get: c, set: i } = Object.getOwnPropertyDescriptor(o, l) || {};
|
|
1367
|
+
c && (t.$members$[l][0] |= 2048), i && (t.$members$[l][0] |= 4096), Object.defineProperty(o, l, {
|
|
1298
1368
|
get() {
|
|
1299
|
-
return
|
|
1369
|
+
return c ? c.apply(this) : Bo(this, l);
|
|
1300
1370
|
},
|
|
1301
1371
|
configurable: !0,
|
|
1302
1372
|
enumerable: !0
|
|
1303
|
-
}), Object.defineProperty(o,
|
|
1373
|
+
}), Object.defineProperty(o, l, {
|
|
1304
1374
|
set(p) {
|
|
1305
|
-
const
|
|
1375
|
+
const m = ke(this);
|
|
1306
1376
|
if (i) {
|
|
1307
|
-
const
|
|
1308
|
-
typeof
|
|
1377
|
+
const v = u & 32 ? this[l] : m.$hostElement$[l];
|
|
1378
|
+
typeof v > "u" && m.$instanceValues$.get(l) ? p = m.$instanceValues$.get(l) : !m.$instanceValues$.get(l) && v && m.$instanceValues$.set(l, v), i.apply(this, [Wa(p, u)]), p = u & 32 ? this[l] : m.$hostElement$[l], ya(this, l, p, t);
|
|
1309
1379
|
return;
|
|
1310
1380
|
}
|
|
1311
1381
|
{
|
|
1312
|
-
ya(this,
|
|
1382
|
+
ya(this, l, p, t);
|
|
1313
1383
|
return;
|
|
1314
1384
|
}
|
|
1315
1385
|
}
|
|
@@ -1317,45 +1387,45 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1317
1387
|
}
|
|
1318
1388
|
});
|
|
1319
1389
|
{
|
|
1320
|
-
const
|
|
1321
|
-
o.attributeChangedCallback = function(u,
|
|
1322
|
-
|
|
1390
|
+
const l = /* @__PURE__ */ new Map();
|
|
1391
|
+
o.attributeChangedCallback = function(u, c, i) {
|
|
1392
|
+
re.jmp(() => {
|
|
1323
1393
|
var p;
|
|
1324
|
-
const
|
|
1325
|
-
if (!(this.hasOwnProperty(
|
|
1326
|
-
if (o.hasOwnProperty(
|
|
1327
|
-
this[
|
|
1394
|
+
const m = l.get(u);
|
|
1395
|
+
if (!(this.hasOwnProperty(m) && je.lazyLoad)) {
|
|
1396
|
+
if (o.hasOwnProperty(m) && typeof this[m] == "number" && // cast type to number to avoid TS compiler issues
|
|
1397
|
+
this[m] == i)
|
|
1328
1398
|
return;
|
|
1329
|
-
if (
|
|
1330
|
-
const
|
|
1331
|
-
if (
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
|
|
1399
|
+
if (m == null) {
|
|
1400
|
+
const b = ke(this), $ = b == null ? void 0 : b.$flags$;
|
|
1401
|
+
if ($ && !($ & 8) && $ & 128 && i !== c) {
|
|
1402
|
+
const ae = this, L = (p = t.$watchers$) == null ? void 0 : p[u];
|
|
1403
|
+
L == null || L.forEach((Ge) => {
|
|
1404
|
+
ae[Ge] != null && ae[Ge].call(ae, i, c, u);
|
|
1335
1405
|
});
|
|
1336
1406
|
}
|
|
1337
1407
|
return;
|
|
1338
1408
|
}
|
|
1339
1409
|
}
|
|
1340
|
-
const
|
|
1341
|
-
i = i === null && typeof this[
|
|
1410
|
+
const v = Object.getOwnPropertyDescriptor(o, m);
|
|
1411
|
+
i = i === null && typeof this[m] == "boolean" ? !1 : i, i !== this[m] && (!v.get || v.set) && (this[m] = i);
|
|
1342
1412
|
});
|
|
1343
1413
|
}, e.observedAttributes = Array.from(
|
|
1344
1414
|
/* @__PURE__ */ new Set([
|
|
1345
1415
|
...Object.keys((n = t.$watchers$) != null ? n : {}),
|
|
1346
1416
|
...s.filter(
|
|
1347
|
-
([u,
|
|
1417
|
+
([u, c]) => c[0] & 15
|
|
1348
1418
|
/* HasAttribute */
|
|
1349
|
-
).map(([u,
|
|
1350
|
-
const i =
|
|
1351
|
-
return
|
|
1419
|
+
).map(([u, c]) => {
|
|
1420
|
+
const i = c[1] || u;
|
|
1421
|
+
return l.set(i, u), i;
|
|
1352
1422
|
})
|
|
1353
1423
|
])
|
|
1354
1424
|
);
|
|
1355
1425
|
}
|
|
1356
1426
|
}
|
|
1357
1427
|
return e;
|
|
1358
|
-
},
|
|
1428
|
+
}, Wo = async (e, t, r, a) => {
|
|
1359
1429
|
if (!(t.$flags$ & 32)) {
|
|
1360
1430
|
t.$flags$ |= 32;
|
|
1361
1431
|
{
|
|
@@ -1368,12 +1438,12 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1368
1438
|
}
|
|
1369
1439
|
const n = t.$ancestorComponent$, o = () => gr(t, !0);
|
|
1370
1440
|
n && n["s-rc"] ? n["s-rc"].push(o) : o();
|
|
1371
|
-
},
|
|
1441
|
+
}, Go = (e, t) => {
|
|
1372
1442
|
}, Vo = (e) => {
|
|
1373
|
-
if (!(
|
|
1374
|
-
const t =
|
|
1443
|
+
if (!(re.$flags$ & 1)) {
|
|
1444
|
+
const t = ke(e), r = t.$cmpMeta$, a = st("connectedCallback", r.$tagName$);
|
|
1375
1445
|
if (t.$flags$ & 1)
|
|
1376
|
-
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() =>
|
|
1446
|
+
t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Go());
|
|
1377
1447
|
else {
|
|
1378
1448
|
t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1379
1449
|
r.$flags$ & 12 && qo(e);
|
|
@@ -1381,7 +1451,7 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1381
1451
|
let n = e;
|
|
1382
1452
|
for (; n = n.parentNode || n.host; )
|
|
1383
1453
|
if (n["s-p"]) {
|
|
1384
|
-
|
|
1454
|
+
Xa(t, t.$ancestorComponent$ = n);
|
|
1385
1455
|
break;
|
|
1386
1456
|
}
|
|
1387
1457
|
}
|
|
@@ -1390,7 +1460,7 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1390
1460
|
const s = e[n];
|
|
1391
1461
|
delete e[n], e[n] = s;
|
|
1392
1462
|
}
|
|
1393
|
-
}),
|
|
1463
|
+
}), Wo(e, t);
|
|
1394
1464
|
}
|
|
1395
1465
|
a();
|
|
1396
1466
|
}
|
|
@@ -1398,10 +1468,10 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1398
1468
|
const t = e["s-cr"] = Be.createComment(
|
|
1399
1469
|
""
|
|
1400
1470
|
);
|
|
1401
|
-
t["s-cn"] = !0,
|
|
1471
|
+
t["s-cn"] = !0, Ce(e, t, e.firstChild);
|
|
1402
1472
|
}, Yo = async (e) => {
|
|
1403
|
-
|
|
1404
|
-
},
|
|
1473
|
+
re.$flags$ & 1 || ke(e), St.has(e) && St.delete(e), e.shadowRoot && St.has(e.shadowRoot) && St.delete(e.shadowRoot);
|
|
1474
|
+
}, N = (e, t) => {
|
|
1405
1475
|
const r = {
|
|
1406
1476
|
$flags$: t[0],
|
|
1407
1477
|
$tagName$: t[1]
|
|
@@ -1414,12 +1484,12 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1414
1484
|
mo(this, r);
|
|
1415
1485
|
},
|
|
1416
1486
|
connectedCallback() {
|
|
1417
|
-
this.__hasHostListenerAttached || (
|
|
1487
|
+
this.__hasHostListenerAttached || (ke(this), this.__hasHostListenerAttached = !0), Vo(this), a && a.call(this);
|
|
1418
1488
|
},
|
|
1419
1489
|
disconnectedCallback() {
|
|
1420
|
-
Yo(this), n && n.call(this),
|
|
1490
|
+
Yo(this), n && n.call(this), re.raf(() => {
|
|
1421
1491
|
var o;
|
|
1422
|
-
const s =
|
|
1492
|
+
const s = ke(this);
|
|
1423
1493
|
((o = s == null ? void 0 : s.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !s.$vnode$.$elm$.isConnected && delete s.$vnode$, this instanceof Node && !this.isConnected && po(this);
|
|
1424
1494
|
});
|
|
1425
1495
|
},
|
|
@@ -1427,8 +1497,8 @@ var cr, pr, xt = !1, Tt = !1, mr = !1, ae = !1, $t = (e, t, r) => {
|
|
|
1427
1497
|
this.shadowRoot = this;
|
|
1428
1498
|
}
|
|
1429
1499
|
}), e.is = r.$tagName$, jo(e, r);
|
|
1430
|
-
}, br = (e, t) => t,
|
|
1431
|
-
class
|
|
1500
|
+
}, br = (e, t) => t, Qo = Object.defineProperty, Ko = (e, t, r) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sa = (e, t, r) => Ko(e, typeof t != "symbol" ? t + "" : t, r), _e = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(_e || {});
|
|
1501
|
+
class Xo {
|
|
1432
1502
|
constructor(t) {
|
|
1433
1503
|
Sa(this, "logLevel"), Sa(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
|
|
1434
1504
|
}
|
|
@@ -1466,25 +1536,25 @@ class Qo {
|
|
|
1466
1536
|
}
|
|
1467
1537
|
function Ae(e, t, r, a) {
|
|
1468
1538
|
return new (r || (r = Promise))(function(n, o) {
|
|
1469
|
-
function s(
|
|
1539
|
+
function s(c) {
|
|
1470
1540
|
try {
|
|
1471
|
-
u(a.next(
|
|
1541
|
+
u(a.next(c));
|
|
1472
1542
|
} catch (i) {
|
|
1473
1543
|
o(i);
|
|
1474
1544
|
}
|
|
1475
1545
|
}
|
|
1476
|
-
function c
|
|
1546
|
+
function l(c) {
|
|
1477
1547
|
try {
|
|
1478
|
-
u(a.throw(
|
|
1548
|
+
u(a.throw(c));
|
|
1479
1549
|
} catch (i) {
|
|
1480
1550
|
o(i);
|
|
1481
1551
|
}
|
|
1482
1552
|
}
|
|
1483
|
-
function u(
|
|
1553
|
+
function u(c) {
|
|
1484
1554
|
var i;
|
|
1485
|
-
|
|
1555
|
+
c.done ? n(c.value) : (i = c.value, i instanceof r ? i : new r(function(p) {
|
|
1486
1556
|
p(i);
|
|
1487
|
-
})).then(s,
|
|
1557
|
+
})).then(s, l);
|
|
1488
1558
|
}
|
|
1489
1559
|
u((a = a.apply(e, [])).next());
|
|
1490
1560
|
});
|
|
@@ -1494,11 +1564,11 @@ function Ie(e, t) {
|
|
|
1494
1564
|
if (1 & n[0]) throw n[1];
|
|
1495
1565
|
return n[1];
|
|
1496
1566
|
}, trys: [], ops: [] };
|
|
1497
|
-
return o = { next:
|
|
1567
|
+
return o = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
1498
1568
|
return this;
|
|
1499
1569
|
}), o;
|
|
1500
|
-
function
|
|
1501
|
-
return function(
|
|
1570
|
+
function l(u) {
|
|
1571
|
+
return function(c) {
|
|
1502
1572
|
return function(i) {
|
|
1503
1573
|
if (r) throw new TypeError("Generator is already executing.");
|
|
1504
1574
|
for (; o && (o = 0, i[0] && (s = 0)), s; ) try {
|
|
@@ -1544,18 +1614,18 @@ function Ie(e, t) {
|
|
|
1544
1614
|
}
|
|
1545
1615
|
if (5 & i[0]) throw i[1];
|
|
1546
1616
|
return { value: i[0] ? i[1] : void 0, done: !0 };
|
|
1547
|
-
}([u,
|
|
1617
|
+
}([u, c]);
|
|
1548
1618
|
};
|
|
1549
1619
|
}
|
|
1550
1620
|
}
|
|
1551
|
-
var Et = { exclude: [] }, Jo = {},
|
|
1621
|
+
var Et = { exclude: [] }, Jo = {}, ue = function(e, t) {
|
|
1552
1622
|
typeof window < "u" && (Jo[e] = t);
|
|
1553
1623
|
};
|
|
1554
1624
|
function Rt(e) {
|
|
1555
1625
|
return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
|
|
1556
1626
|
}
|
|
1557
|
-
var
|
|
1558
|
-
function
|
|
1627
|
+
var q = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
|
|
1628
|
+
function oe(e, t) {
|
|
1559
1629
|
return e << t | e >>> 32 - t;
|
|
1560
1630
|
}
|
|
1561
1631
|
function Za(e, t) {
|
|
@@ -1563,43 +1633,43 @@ function Za(e, t) {
|
|
|
1563
1633
|
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");
|
|
1564
1634
|
var a = new Uint32Array([t, t, t, t]);
|
|
1565
1635
|
(function(o, s) {
|
|
1566
|
-
for (var
|
|
1567
|
-
var i = u.subarray(4 *
|
|
1568
|
-
i[0] = Math.imul(i[0],
|
|
1636
|
+
for (var l = o.byteLength / 16 | 0, u = new Uint32Array(o, 0, 4 * l), c = 0; c < l; c++) {
|
|
1637
|
+
var i = u.subarray(4 * c, 4 * (c + 1));
|
|
1638
|
+
i[0] = Math.imul(i[0], q[0]), i[0] = oe(i[0], 15), i[0] = Math.imul(i[0], q[1]), s[0] = s[0] ^ i[0], s[0] = oe(s[0], 19), s[0] = s[0] + s[1], s[0] = Math.imul(s[0], 5) + 1444728091, i[1] = Math.imul(i[1], q[1]), i[1] = oe(i[1], 16), i[1] = Math.imul(i[1], q[2]), s[1] = s[1] ^ i[1], s[1] = oe(s[1], 17), s[1] = s[1] + s[2], s[1] = Math.imul(s[1], 5) + 197830471, i[2] = Math.imul(i[2], q[2]), i[2] = oe(i[2], 17), i[2] = Math.imul(i[2], q[3]), s[2] = s[2] ^ i[2], s[2] = oe(s[2], 15), s[2] = s[2] + s[3], s[2] = Math.imul(s[2], 5) + 2530024501, i[3] = Math.imul(i[3], q[3]), i[3] = oe(i[3], 18), i[3] = Math.imul(i[3], q[0]), s[3] = s[3] ^ i[3], s[3] = oe(s[3], 13), s[3] = s[3] + s[0], s[3] = Math.imul(s[3], 5) + 850148119;
|
|
1569
1639
|
}
|
|
1570
1640
|
})(e, a), function(o, s) {
|
|
1571
|
-
var
|
|
1641
|
+
var l = o.byteLength / 16 | 0, u = o.byteLength % 16, c = new Uint32Array(4), i = new Uint8Array(o, 16 * l, u);
|
|
1572
1642
|
switch (u) {
|
|
1573
1643
|
case 15:
|
|
1574
|
-
|
|
1644
|
+
c[3] = c[3] ^ i[14] << 16;
|
|
1575
1645
|
case 14:
|
|
1576
|
-
|
|
1646
|
+
c[3] = c[3] ^ i[13] << 8;
|
|
1577
1647
|
case 13:
|
|
1578
|
-
|
|
1648
|
+
c[3] = c[3] ^ i[12] << 0, c[3] = Math.imul(c[3], q[3]), c[3] = oe(c[3], 18), c[3] = Math.imul(c[3], q[0]), s[3] = s[3] ^ c[3];
|
|
1579
1649
|
case 12:
|
|
1580
|
-
|
|
1650
|
+
c[2] = c[2] ^ i[11] << 24;
|
|
1581
1651
|
case 11:
|
|
1582
|
-
|
|
1652
|
+
c[2] = c[2] ^ i[10] << 16;
|
|
1583
1653
|
case 10:
|
|
1584
|
-
|
|
1654
|
+
c[2] = c[2] ^ i[9] << 8;
|
|
1585
1655
|
case 9:
|
|
1586
|
-
|
|
1656
|
+
c[2] = c[2] ^ i[8] << 0, c[2] = Math.imul(c[2], q[2]), c[2] = oe(c[2], 17), c[2] = Math.imul(c[2], q[3]), s[2] = s[2] ^ c[2];
|
|
1587
1657
|
case 8:
|
|
1588
|
-
|
|
1658
|
+
c[1] = c[1] ^ i[7] << 24;
|
|
1589
1659
|
case 7:
|
|
1590
|
-
|
|
1660
|
+
c[1] = c[1] ^ i[6] << 16;
|
|
1591
1661
|
case 6:
|
|
1592
|
-
|
|
1662
|
+
c[1] = c[1] ^ i[5] << 8;
|
|
1593
1663
|
case 5:
|
|
1594
|
-
|
|
1664
|
+
c[1] = c[1] ^ i[4] << 0, c[1] = Math.imul(c[1], q[1]), c[1] = oe(c[1], 16), c[1] = Math.imul(c[1], q[2]), s[1] = s[1] ^ c[1];
|
|
1595
1665
|
case 4:
|
|
1596
|
-
|
|
1666
|
+
c[0] = c[0] ^ i[3] << 24;
|
|
1597
1667
|
case 3:
|
|
1598
|
-
|
|
1668
|
+
c[0] = c[0] ^ i[2] << 16;
|
|
1599
1669
|
case 2:
|
|
1600
|
-
|
|
1670
|
+
c[0] = c[0] ^ i[1] << 8;
|
|
1601
1671
|
case 1:
|
|
1602
|
-
|
|
1672
|
+
c[0] = c[0] ^ i[0] << 0, c[0] = Math.imul(c[0], q[0]), c[0] = oe(c[0], 15), c[0] = Math.imul(c[0], q[1]), s[0] = s[0] ^ c[0];
|
|
1603
1673
|
}
|
|
1604
1674
|
}(e, a), function(o, s) {
|
|
1605
1675
|
s[0] = s[0] ^ o.byteLength, s[1] = s[1] ^ o.byteLength, s[2] = s[2] ^ o.byteLength, s[3] = s[3] ^ o.byteLength, s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0, s[0] = Rt(s[0]), s[1] = Rt(s[1]), s[2] = Rt(s[2]), s[3] = Rt(s[3]), s[0] = s[0] + s[1] | 0, s[0] = s[0] + s[2] | 0, s[0] = s[0] + s[3] | 0, s[1] = s[1] + s[0] | 0, s[2] = s[2] + s[0] | 0, s[3] = s[3] + s[0] | 0;
|
|
@@ -1618,8 +1688,8 @@ function es(e, t, r) {
|
|
|
1618
1688
|
for (var o = [], s = 0; s < e.length; s++) o.push(e[s].data[n]);
|
|
1619
1689
|
a.push(ei(o));
|
|
1620
1690
|
}
|
|
1621
|
-
var
|
|
1622
|
-
return new ImageData(
|
|
1691
|
+
var l = new Uint8ClampedArray(a);
|
|
1692
|
+
return new ImageData(l, t, r);
|
|
1623
1693
|
}
|
|
1624
1694
|
function ei(e) {
|
|
1625
1695
|
if (e.length === 0) return 0;
|
|
@@ -1637,15 +1707,15 @@ function it() {
|
|
|
1637
1707
|
}
|
|
1638
1708
|
return { name: "unknown", version: "unknown" };
|
|
1639
1709
|
}
|
|
1640
|
-
|
|
1710
|
+
ue("audio", function() {
|
|
1641
1711
|
return Ae(this, void 0, void 0, function() {
|
|
1642
1712
|
return Ie(this, function(e) {
|
|
1643
1713
|
return [2, new Promise(function(t, r) {
|
|
1644
1714
|
try {
|
|
1645
1715
|
var a = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), n = a.createBufferSource(), o = a.createOscillator();
|
|
1646
1716
|
o.frequency.value = 1e3;
|
|
1647
|
-
var s,
|
|
1648
|
-
|
|
1717
|
+
var s, l = a.createDynamicsCompressor();
|
|
1718
|
+
l.threshold.value = -50, l.knee.value = 40, l.ratio.value = 12, l.attack.value = 0, l.release.value = 0.2, o.connect(l), l.connect(a.destination), o.start(), a.oncomplete = function(u) {
|
|
1649
1719
|
s = u.renderedBuffer.getChannelData(0), t({ sampleHash: Zo(s), oscillator: o.type, maxChannels: a.destination.maxChannelCount, channelCountMode: n.channelCountMode });
|
|
1650
1720
|
}, a.startRendering();
|
|
1651
1721
|
} catch (u) {
|
|
@@ -1656,7 +1726,7 @@ le("audio", function() {
|
|
|
1656
1726
|
});
|
|
1657
1727
|
});
|
|
1658
1728
|
var ti = it().name !== "SamsungBrowser" ? 1 : 3, wa = 280, Ea = 20;
|
|
1659
|
-
it().name != "Firefox" &&
|
|
1729
|
+
it().name != "Firefox" && ue("canvas", function() {
|
|
1660
1730
|
return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
|
|
1661
1731
|
var t = Array.from({ length: ti }, function() {
|
|
1662
1732
|
return function() {
|
|
@@ -1686,8 +1756,8 @@ function si() {
|
|
|
1686
1756
|
if (!n.length || !a.length) {
|
|
1687
1757
|
var s = r.getExtension("WEBGL_debug_renderer_info");
|
|
1688
1758
|
if (s) {
|
|
1689
|
-
var
|
|
1690
|
-
|
|
1759
|
+
var l = (r.getParameter(s.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(s.UNMASKED_RENDERER_WEBGL) || "").toString();
|
|
1760
|
+
l && (o.vendorUnmasked = l), u && (o.rendererUnmasked = u);
|
|
1691
1761
|
}
|
|
1692
1762
|
}
|
|
1693
1763
|
return o;
|
|
@@ -1705,14 +1775,14 @@ function oi(e, t) {
|
|
|
1705
1775
|
var n = function(o) {
|
|
1706
1776
|
if (o.length === 0) return null;
|
|
1707
1777
|
var s = {};
|
|
1708
|
-
o.forEach(function(
|
|
1709
|
-
var i = String(
|
|
1778
|
+
o.forEach(function(c) {
|
|
1779
|
+
var i = String(c);
|
|
1710
1780
|
s[i] = (s[i] || 0) + 1;
|
|
1711
1781
|
});
|
|
1712
|
-
var
|
|
1713
|
-
return Object.keys(s).forEach(function(
|
|
1714
|
-
s[
|
|
1715
|
-
}),
|
|
1782
|
+
var l = o[0], u = 1;
|
|
1783
|
+
return Object.keys(s).forEach(function(c) {
|
|
1784
|
+
s[c] > u && (l = c, u = s[c]);
|
|
1785
|
+
}), l;
|
|
1716
1786
|
}(e.map(function(o) {
|
|
1717
1787
|
return a in o ? o[a] : void 0;
|
|
1718
1788
|
}).filter(function(o) {
|
|
@@ -1737,41 +1807,41 @@ function ci() {
|
|
|
1737
1807
|
}
|
|
1738
1808
|
return 0;
|
|
1739
1809
|
}
|
|
1740
|
-
it().name != "Firefox" &&
|
|
1810
|
+
it().name != "Firefox" && ue("fonts", function() {
|
|
1741
1811
|
var e = this;
|
|
1742
1812
|
return new Promise(function(t, r) {
|
|
1743
1813
|
try {
|
|
1744
1814
|
(function(a) {
|
|
1745
1815
|
var n;
|
|
1746
1816
|
Ae(this, void 0, void 0, function() {
|
|
1747
|
-
var o, s,
|
|
1817
|
+
var o, s, l;
|
|
1748
1818
|
return Ie(this, function(u) {
|
|
1749
1819
|
switch (u.label) {
|
|
1750
1820
|
case 0:
|
|
1751
|
-
return document.body ? [3, 2] : [4, (
|
|
1752
|
-
return setTimeout(p,
|
|
1821
|
+
return document.body ? [3, 2] : [4, (c = 50, new Promise(function(p) {
|
|
1822
|
+
return setTimeout(p, c, i);
|
|
1753
1823
|
}))];
|
|
1754
1824
|
case 1:
|
|
1755
1825
|
return u.sent(), [3, 0];
|
|
1756
1826
|
case 2:
|
|
1757
|
-
if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (s = o.style).setProperty("position", "fixed"), s.setProperty("display", "block", "important"), s.setProperty("visibility", "visible"), s.setProperty("border", "0"), s.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(
|
|
1758
|
-
return a({ iframe:
|
|
1827
|
+
if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (s = o.style).setProperty("position", "fixed"), s.setProperty("display", "block", "important"), s.setProperty("visibility", "visible"), s.setProperty("border", "0"), s.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(l = o.contentDocument || ((n = o.contentWindow) === null || n === void 0 ? void 0 : n.document))) throw new Error("Iframe document is not accessible");
|
|
1828
|
+
return a({ iframe: l }), setTimeout(function() {
|
|
1759
1829
|
document.body.removeChild(o);
|
|
1760
1830
|
}, 0), [2];
|
|
1761
1831
|
}
|
|
1762
|
-
var
|
|
1832
|
+
var c, i;
|
|
1763
1833
|
});
|
|
1764
1834
|
});
|
|
1765
1835
|
})(function(a) {
|
|
1766
1836
|
var n = a.iframe;
|
|
1767
1837
|
return Ae(e, void 0, void 0, function() {
|
|
1768
|
-
var o, s,
|
|
1769
|
-
return Ie(this, function(
|
|
1770
|
-
return o = n.createElement("canvas"), s = o.getContext("2d"),
|
|
1838
|
+
var o, s, l, u;
|
|
1839
|
+
return Ie(this, function(c) {
|
|
1840
|
+
return o = n.createElement("canvas"), s = o.getContext("2d"), l = ai.map(function(i) {
|
|
1771
1841
|
return Ra(s, i);
|
|
1772
1842
|
}), u = {}, ri.forEach(function(i) {
|
|
1773
1843
|
var p = Ra(s, i);
|
|
1774
|
-
|
|
1844
|
+
l.includes(p) || (u[i] = p);
|
|
1775
1845
|
}), t(u), [2];
|
|
1776
1846
|
});
|
|
1777
1847
|
});
|
|
@@ -1780,16 +1850,16 @@ it().name != "Firefox" && le("fonts", function() {
|
|
|
1780
1850
|
r({ error: "unsupported" });
|
|
1781
1851
|
}
|
|
1782
1852
|
});
|
|
1783
|
-
}),
|
|
1853
|
+
}), ue("hardware", function() {
|
|
1784
1854
|
return new Promise(function(e, t) {
|
|
1785
1855
|
var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, a = window.performance && window.performance.memory ? window.performance.memory : 0;
|
|
1786
1856
|
e({ videocard: si(), architecture: ni(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: a.jsHeapSizeLimit || 0 });
|
|
1787
1857
|
});
|
|
1788
|
-
}),
|
|
1858
|
+
}), ue("locales", function() {
|
|
1789
1859
|
return new Promise(function(e) {
|
|
1790
1860
|
e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
|
|
1791
1861
|
});
|
|
1792
|
-
}),
|
|
1862
|
+
}), ue("permissions", function() {
|
|
1793
1863
|
return Ae(this, void 0, void 0, function() {
|
|
1794
1864
|
var e;
|
|
1795
1865
|
return Ie(this, function(t) {
|
|
@@ -1797,19 +1867,19 @@ it().name != "Firefox" && le("fonts", function() {
|
|
|
1797
1867
|
return function() {
|
|
1798
1868
|
return Ae(this, void 0, void 0, function() {
|
|
1799
1869
|
var r, a, n, o, s;
|
|
1800
|
-
return Ie(this, function(
|
|
1801
|
-
switch (
|
|
1870
|
+
return Ie(this, function(l) {
|
|
1871
|
+
switch (l.label) {
|
|
1802
1872
|
case 0:
|
|
1803
|
-
r = {}, a = 0, n = rr,
|
|
1873
|
+
r = {}, a = 0, n = rr, l.label = 1;
|
|
1804
1874
|
case 1:
|
|
1805
1875
|
if (!(a < n.length)) return [3, 6];
|
|
1806
|
-
o = n[a],
|
|
1876
|
+
o = n[a], l.label = 2;
|
|
1807
1877
|
case 2:
|
|
1808
|
-
return
|
|
1878
|
+
return l.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: o })];
|
|
1809
1879
|
case 3:
|
|
1810
|
-
return s =
|
|
1880
|
+
return s = l.sent(), r[o] = s.state.toString(), [3, 5];
|
|
1811
1881
|
case 4:
|
|
1812
|
-
return
|
|
1882
|
+
return l.sent(), [3, 5];
|
|
1813
1883
|
case 5:
|
|
1814
1884
|
return a++, [3, 1];
|
|
1815
1885
|
case 6:
|
|
@@ -1823,7 +1893,7 @@ it().name != "Firefox" && le("fonts", function() {
|
|
|
1823
1893
|
})];
|
|
1824
1894
|
});
|
|
1825
1895
|
});
|
|
1826
|
-
}),
|
|
1896
|
+
}), ue("plugins", function() {
|
|
1827
1897
|
var e = [];
|
|
1828
1898
|
if (navigator.plugins) for (var t = 0; t < navigator.plugins.length; t++) {
|
|
1829
1899
|
var r = navigator.plugins[t];
|
|
@@ -1832,22 +1902,22 @@ it().name != "Firefox" && le("fonts", function() {
|
|
|
1832
1902
|
return new Promise(function(a) {
|
|
1833
1903
|
a({ plugins: e });
|
|
1834
1904
|
});
|
|
1835
|
-
}),
|
|
1905
|
+
}), ue("screen", function() {
|
|
1836
1906
|
return new Promise(function(e) {
|
|
1837
1907
|
e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: ii() });
|
|
1838
1908
|
});
|
|
1839
|
-
}),
|
|
1909
|
+
}), ue("system", function() {
|
|
1840
1910
|
return new Promise(function(e) {
|
|
1841
1911
|
var t = it();
|
|
1842
1912
|
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: ci() });
|
|
1843
1913
|
});
|
|
1844
1914
|
});
|
|
1845
|
-
var
|
|
1846
|
-
|
|
1915
|
+
var ee, li = it().name !== "SamsungBrowser" ? 1 : 3, R = null;
|
|
1916
|
+
ue("webgl", function() {
|
|
1847
1917
|
return Ae(this, void 0, void 0, function() {
|
|
1848
1918
|
var e;
|
|
1849
1919
|
return Ie(this, function(t) {
|
|
1850
|
-
typeof document < "u" && ((
|
|
1920
|
+
typeof document < "u" && ((ee = document.createElement("canvas")).width = 200, ee.height = 100, R = ee.getContext("webgl"));
|
|
1851
1921
|
try {
|
|
1852
1922
|
if (!R) throw new Error("WebGL not supported");
|
|
1853
1923
|
return e = Array.from({ length: li }, function() {
|
|
@@ -1872,23 +1942,23 @@ le("webgl", function() {
|
|
|
1872
1942
|
if (!s) throw new Error("Failed to create shader program");
|
|
1873
1943
|
if (R.attachShader(s, n), R.attachShader(s, o), R.linkProgram(s), !R.getProgramParameter(s, R.LINK_STATUS)) throw new Error("Shader program linking failed: " + R.getProgramInfoLog(s));
|
|
1874
1944
|
R.useProgram(s);
|
|
1875
|
-
for (var
|
|
1876
|
-
var p = i *
|
|
1877
|
-
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (
|
|
1945
|
+
for (var l = 137, u = new Float32Array(4 * l), c = 2 * Math.PI / l, i = 0; i < l; i++) {
|
|
1946
|
+
var p = i * c;
|
|
1947
|
+
u[4 * i] = 0, u[4 * i + 1] = 0, u[4 * i + 2] = Math.cos(p) * (ee.width / 2), u[4 * i + 3] = Math.sin(p) * (ee.height / 2);
|
|
1878
1948
|
}
|
|
1879
|
-
var
|
|
1880
|
-
R.bindBuffer(R.ARRAY_BUFFER,
|
|
1881
|
-
var
|
|
1882
|
-
R.enableVertexAttribArray(
|
|
1883
|
-
var
|
|
1884
|
-
return R.readPixels(0, 0,
|
|
1949
|
+
var m = R.createBuffer();
|
|
1950
|
+
R.bindBuffer(R.ARRAY_BUFFER, m), R.bufferData(R.ARRAY_BUFFER, u, R.STATIC_DRAW);
|
|
1951
|
+
var v = R.getAttribLocation(s, "position");
|
|
1952
|
+
R.enableVertexAttribArray(v), R.vertexAttribPointer(v, 2, R.FLOAT, !1, 0, 0), R.viewport(0, 0, ee.width, ee.height), R.clearColor(0, 0, 0, 1), R.clear(R.COLOR_BUFFER_BIT), R.drawArrays(R.LINES, 0, 2 * l);
|
|
1953
|
+
var b = new Uint8ClampedArray(ee.width * ee.height * 4);
|
|
1954
|
+
return R.readPixels(0, 0, ee.width, ee.height, R.RGBA, R.UNSIGNED_BYTE, b), new ImageData(b, ee.width, ee.height);
|
|
1885
1955
|
} catch {
|
|
1886
1956
|
return new ImageData(1, 1);
|
|
1887
1957
|
} finally {
|
|
1888
1958
|
R && (R.bindBuffer(R.ARRAY_BUFFER, null), R.useProgram(null), R.viewport(0, 0, R.drawingBufferWidth, R.drawingBufferHeight), R.clearColor(0, 0, 0, 0));
|
|
1889
1959
|
}
|
|
1890
1960
|
}();
|
|
1891
|
-
}), [2, { commonImageHash: Za(es(e,
|
|
1961
|
+
}), [2, { commonImageHash: Za(es(e, ee.width, ee.height).data.toString()).toString() }];
|
|
1892
1962
|
} catch {
|
|
1893
1963
|
return [2, { webgl: "unsupported" }];
|
|
1894
1964
|
}
|
|
@@ -1901,7 +1971,7 @@ var $e = function(e, t, r, a) {
|
|
|
1901
1971
|
o += e(t + (s + 0.5) * n);
|
|
1902
1972
|
return o * n;
|
|
1903
1973
|
};
|
|
1904
|
-
|
|
1974
|
+
ue("math", function() {
|
|
1905
1975
|
return Ae(void 0, void 0, void 0, function() {
|
|
1906
1976
|
return Ie(this, function(e) {
|
|
1907
1977
|
return [2, { acos: Math.acos(0.5), asin: $e(Math.asin, -1, 1, 97), atan: $e(Math.atan, -1, 1, 97), cos: $e(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: $e(Math.sin, -Math.PI, Math.PI, 97), sinh: $e(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: $e(Math.tan, 0, 2 * Math.PI, 97), tanh: $e(Math.tanh, -9 / 7, 7 / 9, 97) }];
|
|
@@ -1909,19 +1979,19 @@ le("math", function() {
|
|
|
1909
1979
|
});
|
|
1910
1980
|
});
|
|
1911
1981
|
var ts = {}, vr = {};
|
|
1912
|
-
const
|
|
1982
|
+
const Ca = (e) => {
|
|
1913
1983
|
let t;
|
|
1914
|
-
const r = /* @__PURE__ */ new Set(), a = (
|
|
1915
|
-
const p = typeof
|
|
1984
|
+
const r = /* @__PURE__ */ new Set(), a = (c, i) => {
|
|
1985
|
+
const p = typeof c == "function" ? c(t) : c;
|
|
1916
1986
|
if (!Object.is(p, t)) {
|
|
1917
|
-
const
|
|
1918
|
-
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((
|
|
1987
|
+
const m = t;
|
|
1988
|
+
t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((v) => v(t, m));
|
|
1919
1989
|
}
|
|
1920
|
-
}, n = () => t,
|
|
1921
|
-
return
|
|
1922
|
-
}, ui = (e) => e ?
|
|
1990
|
+
}, n = () => t, l = { setState: a, getState: n, getInitialState: () => u, subscribe: (c) => (r.add(c), () => r.delete(c)) }, u = t = e(a, n, l);
|
|
1991
|
+
return l;
|
|
1992
|
+
}, ui = (e) => e ? Ca(e) : Ca;
|
|
1923
1993
|
vr.createStore = ui;
|
|
1924
|
-
var yr = {}, rs = { exports: {} },
|
|
1994
|
+
var yr = {}, rs = { exports: {} }, C = {};
|
|
1925
1995
|
/**
|
|
1926
1996
|
* @license React
|
|
1927
1997
|
* react.production.js
|
|
@@ -1931,9 +2001,9 @@ var yr = {}, rs = { exports: {} }, k = {};
|
|
|
1931
2001
|
* This source code is licensed under the MIT license found in the
|
|
1932
2002
|
* LICENSE file in the root directory of this source tree.
|
|
1933
2003
|
*/
|
|
1934
|
-
var Sr = Symbol.for("react.transitional.element"), hi = Symbol.for("react.portal"), fi = Symbol.for("react.fragment"), di = Symbol.for("react.strict_mode"), pi = Symbol.for("react.profiler"), mi = Symbol.for("react.consumer"), gi = Symbol.for("react.context"), bi = Symbol.for("react.forward_ref"), vi = Symbol.for("react.suspense"), yi = Symbol.for("react.memo"), as = Symbol.for("react.lazy"),
|
|
2004
|
+
var Sr = Symbol.for("react.transitional.element"), hi = Symbol.for("react.portal"), fi = Symbol.for("react.fragment"), di = Symbol.for("react.strict_mode"), pi = Symbol.for("react.profiler"), mi = Symbol.for("react.consumer"), gi = Symbol.for("react.context"), bi = Symbol.for("react.forward_ref"), vi = Symbol.for("react.suspense"), yi = Symbol.for("react.memo"), as = Symbol.for("react.lazy"), ka = Symbol.iterator;
|
|
1935
2005
|
function Si(e) {
|
|
1936
|
-
return e === null || typeof e != "object" ? null : (e =
|
|
2006
|
+
return e === null || typeof e != "object" ? null : (e = ka && e[ka] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1937
2007
|
}
|
|
1938
2008
|
var ss = {
|
|
1939
2009
|
isMounted: function() {
|
|
@@ -1946,31 +2016,31 @@ var ss = {
|
|
|
1946
2016
|
enqueueSetState: function() {
|
|
1947
2017
|
}
|
|
1948
2018
|
}, ns = Object.assign, os = {};
|
|
1949
|
-
function
|
|
2019
|
+
function We(e, t, r) {
|
|
1950
2020
|
this.props = e, this.context = t, this.refs = os, this.updater = r || ss;
|
|
1951
2021
|
}
|
|
1952
|
-
|
|
1953
|
-
|
|
2022
|
+
We.prototype.isReactComponent = {};
|
|
2023
|
+
We.prototype.setState = function(e, t) {
|
|
1954
2024
|
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1955
2025
|
throw Error(
|
|
1956
2026
|
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1957
2027
|
);
|
|
1958
2028
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1959
2029
|
};
|
|
1960
|
-
|
|
2030
|
+
We.prototype.forceUpdate = function(e) {
|
|
1961
2031
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1962
2032
|
};
|
|
1963
2033
|
function is() {
|
|
1964
2034
|
}
|
|
1965
|
-
is.prototype =
|
|
2035
|
+
is.prototype = We.prototype;
|
|
1966
2036
|
function wr(e, t, r) {
|
|
1967
2037
|
this.props = e, this.context = t, this.refs = os, this.updater = r || ss;
|
|
1968
2038
|
}
|
|
1969
2039
|
var Er = wr.prototype = new is();
|
|
1970
2040
|
Er.constructor = wr;
|
|
1971
|
-
ns(Er,
|
|
2041
|
+
ns(Er, We.prototype);
|
|
1972
2042
|
Er.isPureReactComponent = !0;
|
|
1973
|
-
var
|
|
2043
|
+
var Pa = Array.isArray, M = { H: null, A: null, T: null, S: null }, cs = Object.prototype.hasOwnProperty;
|
|
1974
2044
|
function Rr(e, t, r, a, n, o) {
|
|
1975
2045
|
return r = o.ref, {
|
|
1976
2046
|
$$typeof: Sr,
|
|
@@ -1990,7 +2060,7 @@ function wi(e, t) {
|
|
|
1990
2060
|
e.props
|
|
1991
2061
|
);
|
|
1992
2062
|
}
|
|
1993
|
-
function
|
|
2063
|
+
function Cr(e) {
|
|
1994
2064
|
return typeof e == "object" && e !== null && e.$$typeof === Sr;
|
|
1995
2065
|
}
|
|
1996
2066
|
function Ei(e) {
|
|
@@ -1999,11 +2069,11 @@ function Ei(e) {
|
|
|
1999
2069
|
return t[r];
|
|
2000
2070
|
});
|
|
2001
2071
|
}
|
|
2002
|
-
var
|
|
2072
|
+
var Ta = /\/+/g;
|
|
2003
2073
|
function ar(e, t) {
|
|
2004
2074
|
return typeof e == "object" && e !== null && e.key != null ? Ei("" + e.key) : t.toString(36);
|
|
2005
2075
|
}
|
|
2006
|
-
function
|
|
2076
|
+
function xa() {
|
|
2007
2077
|
}
|
|
2008
2078
|
function Ri(e) {
|
|
2009
2079
|
switch (e.status) {
|
|
@@ -2012,7 +2082,7 @@ function Ri(e) {
|
|
|
2012
2082
|
case "rejected":
|
|
2013
2083
|
throw e.reason;
|
|
2014
2084
|
default:
|
|
2015
|
-
switch (typeof e.status == "string" ? e.then(
|
|
2085
|
+
switch (typeof e.status == "string" ? e.then(xa, xa) : (e.status = "pending", e.then(
|
|
2016
2086
|
function(t) {
|
|
2017
2087
|
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
2018
2088
|
},
|
|
@@ -2057,20 +2127,20 @@ function He(e, t, r, a, n) {
|
|
|
2057
2127
|
}
|
|
2058
2128
|
}
|
|
2059
2129
|
if (s)
|
|
2060
|
-
return n = n(e), s = a === "" ? "." + ar(e, 0) : a,
|
|
2061
|
-
return
|
|
2062
|
-
})) : n != null && (
|
|
2130
|
+
return n = n(e), s = a === "" ? "." + ar(e, 0) : a, Pa(n) ? (r = "", s != null && (r = s.replace(Ta, "$&/") + "/"), He(n, t, r, "", function(c) {
|
|
2131
|
+
return c;
|
|
2132
|
+
})) : n != null && (Cr(n) && (n = wi(
|
|
2063
2133
|
n,
|
|
2064
2134
|
r + (n.key == null || e && e.key === n.key ? "" : ("" + n.key).replace(
|
|
2065
|
-
|
|
2135
|
+
Ta,
|
|
2066
2136
|
"$&/"
|
|
2067
2137
|
) + "/") + s
|
|
2068
2138
|
)), t.push(n)), 1;
|
|
2069
2139
|
s = 0;
|
|
2070
|
-
var
|
|
2071
|
-
if (
|
|
2140
|
+
var l = a === "" ? "." : a + ":";
|
|
2141
|
+
if (Pa(e))
|
|
2072
2142
|
for (var u = 0; u < e.length; u++)
|
|
2073
|
-
a = e[u], o =
|
|
2143
|
+
a = e[u], o = l + ar(a, u), s += He(
|
|
2074
2144
|
a,
|
|
2075
2145
|
t,
|
|
2076
2146
|
r,
|
|
@@ -2079,7 +2149,7 @@ function He(e, t, r, a, n) {
|
|
|
2079
2149
|
);
|
|
2080
2150
|
else if (u = Si(e), typeof u == "function")
|
|
2081
2151
|
for (e = u.call(e), u = 0; !(a = e.next()).done; )
|
|
2082
|
-
a = a.value, o =
|
|
2152
|
+
a = a.value, o = l + ar(a, u++), s += He(
|
|
2083
2153
|
a,
|
|
2084
2154
|
t,
|
|
2085
2155
|
r,
|
|
@@ -2101,14 +2171,14 @@ function He(e, t, r, a, n) {
|
|
|
2101
2171
|
}
|
|
2102
2172
|
return s;
|
|
2103
2173
|
}
|
|
2104
|
-
function
|
|
2174
|
+
function Ct(e, t, r) {
|
|
2105
2175
|
if (e == null) return e;
|
|
2106
2176
|
var a = [], n = 0;
|
|
2107
2177
|
return He(e, a, "", "", function(o) {
|
|
2108
2178
|
return t.call(r, o, n++);
|
|
2109
2179
|
}), a;
|
|
2110
2180
|
}
|
|
2111
|
-
function
|
|
2181
|
+
function Ci(e) {
|
|
2112
2182
|
if (e._status === -1) {
|
|
2113
2183
|
var t = e._result;
|
|
2114
2184
|
t = t(), t.then(
|
|
@@ -2138,12 +2208,12 @@ var $a = typeof reportError == "function" ? reportError : function(e) {
|
|
|
2138
2208
|
}
|
|
2139
2209
|
console.error(e);
|
|
2140
2210
|
};
|
|
2141
|
-
function
|
|
2211
|
+
function ki() {
|
|
2142
2212
|
}
|
|
2143
|
-
|
|
2144
|
-
map:
|
|
2213
|
+
C.Children = {
|
|
2214
|
+
map: Ct,
|
|
2145
2215
|
forEach: function(e, t, r) {
|
|
2146
|
-
|
|
2216
|
+
Ct(
|
|
2147
2217
|
e,
|
|
2148
2218
|
function() {
|
|
2149
2219
|
t.apply(this, arguments);
|
|
@@ -2153,39 +2223,39 @@ k.Children = {
|
|
|
2153
2223
|
},
|
|
2154
2224
|
count: function(e) {
|
|
2155
2225
|
var t = 0;
|
|
2156
|
-
return
|
|
2226
|
+
return Ct(e, function() {
|
|
2157
2227
|
t++;
|
|
2158
2228
|
}), t;
|
|
2159
2229
|
},
|
|
2160
2230
|
toArray: function(e) {
|
|
2161
|
-
return
|
|
2231
|
+
return Ct(e, function(t) {
|
|
2162
2232
|
return t;
|
|
2163
2233
|
}) || [];
|
|
2164
2234
|
},
|
|
2165
2235
|
only: function(e) {
|
|
2166
|
-
if (!
|
|
2236
|
+
if (!Cr(e))
|
|
2167
2237
|
throw Error(
|
|
2168
2238
|
"React.Children.only expected to receive a single React element child."
|
|
2169
2239
|
);
|
|
2170
2240
|
return e;
|
|
2171
2241
|
}
|
|
2172
2242
|
};
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2243
|
+
C.Component = We;
|
|
2244
|
+
C.Fragment = fi;
|
|
2245
|
+
C.Profiler = pi;
|
|
2246
|
+
C.PureComponent = wr;
|
|
2247
|
+
C.StrictMode = di;
|
|
2248
|
+
C.Suspense = vi;
|
|
2249
|
+
C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = M;
|
|
2250
|
+
C.act = function() {
|
|
2181
2251
|
throw Error("act(...) is not supported in production builds of React.");
|
|
2182
2252
|
};
|
|
2183
|
-
|
|
2253
|
+
C.cache = function(e) {
|
|
2184
2254
|
return function() {
|
|
2185
2255
|
return e.apply(null, arguments);
|
|
2186
2256
|
};
|
|
2187
2257
|
};
|
|
2188
|
-
|
|
2258
|
+
C.cloneElement = function(e, t, r) {
|
|
2189
2259
|
if (e == null)
|
|
2190
2260
|
throw Error(
|
|
2191
2261
|
"The argument must be a React element, but you passed " + e + "."
|
|
@@ -2197,13 +2267,13 @@ k.cloneElement = function(e, t, r) {
|
|
|
2197
2267
|
var s = arguments.length - 2;
|
|
2198
2268
|
if (s === 1) a.children = r;
|
|
2199
2269
|
else if (1 < s) {
|
|
2200
|
-
for (var
|
|
2201
|
-
|
|
2202
|
-
a.children =
|
|
2270
|
+
for (var l = Array(s), u = 0; u < s; u++)
|
|
2271
|
+
l[u] = arguments[u + 2];
|
|
2272
|
+
a.children = l;
|
|
2203
2273
|
}
|
|
2204
2274
|
return Rr(e.type, n, void 0, void 0, o, a);
|
|
2205
2275
|
};
|
|
2206
|
-
|
|
2276
|
+
C.createContext = function(e) {
|
|
2207
2277
|
return e = {
|
|
2208
2278
|
$$typeof: gi,
|
|
2209
2279
|
_currentValue: e,
|
|
@@ -2216,7 +2286,7 @@ k.createContext = function(e) {
|
|
|
2216
2286
|
_context: e
|
|
2217
2287
|
}, e;
|
|
2218
2288
|
};
|
|
2219
|
-
|
|
2289
|
+
C.createElement = function(e, t, r) {
|
|
2220
2290
|
var a, n = {}, o = null;
|
|
2221
2291
|
if (t != null)
|
|
2222
2292
|
for (a in t.key !== void 0 && (o = "" + t.key), t)
|
|
@@ -2224,113 +2294,113 @@ k.createElement = function(e, t, r) {
|
|
|
2224
2294
|
var s = arguments.length - 2;
|
|
2225
2295
|
if (s === 1) n.children = r;
|
|
2226
2296
|
else if (1 < s) {
|
|
2227
|
-
for (var
|
|
2228
|
-
|
|
2229
|
-
n.children =
|
|
2297
|
+
for (var l = Array(s), u = 0; u < s; u++)
|
|
2298
|
+
l[u] = arguments[u + 2];
|
|
2299
|
+
n.children = l;
|
|
2230
2300
|
}
|
|
2231
2301
|
if (e && e.defaultProps)
|
|
2232
2302
|
for (a in s = e.defaultProps, s)
|
|
2233
2303
|
n[a] === void 0 && (n[a] = s[a]);
|
|
2234
2304
|
return Rr(e, o, void 0, void 0, null, n);
|
|
2235
2305
|
};
|
|
2236
|
-
|
|
2306
|
+
C.createRef = function() {
|
|
2237
2307
|
return { current: null };
|
|
2238
2308
|
};
|
|
2239
|
-
|
|
2309
|
+
C.forwardRef = function(e) {
|
|
2240
2310
|
return { $$typeof: bi, render: e };
|
|
2241
2311
|
};
|
|
2242
|
-
|
|
2243
|
-
|
|
2312
|
+
C.isValidElement = Cr;
|
|
2313
|
+
C.lazy = function(e) {
|
|
2244
2314
|
return {
|
|
2245
2315
|
$$typeof: as,
|
|
2246
2316
|
_payload: { _status: -1, _result: e },
|
|
2247
|
-
_init:
|
|
2317
|
+
_init: Ci
|
|
2248
2318
|
};
|
|
2249
2319
|
};
|
|
2250
|
-
|
|
2320
|
+
C.memo = function(e, t) {
|
|
2251
2321
|
return {
|
|
2252
2322
|
$$typeof: yi,
|
|
2253
2323
|
type: e,
|
|
2254
2324
|
compare: t === void 0 ? null : t
|
|
2255
2325
|
};
|
|
2256
2326
|
};
|
|
2257
|
-
|
|
2258
|
-
var t =
|
|
2259
|
-
|
|
2327
|
+
C.startTransition = function(e) {
|
|
2328
|
+
var t = M.T, r = {};
|
|
2329
|
+
M.T = r;
|
|
2260
2330
|
try {
|
|
2261
|
-
var a = e(), n =
|
|
2262
|
-
n !== null && n(r, a), typeof a == "object" && a !== null && typeof a.then == "function" && a.then(
|
|
2331
|
+
var a = e(), n = M.S;
|
|
2332
|
+
n !== null && n(r, a), typeof a == "object" && a !== null && typeof a.then == "function" && a.then(ki, $a);
|
|
2263
2333
|
} catch (o) {
|
|
2264
2334
|
$a(o);
|
|
2265
2335
|
} finally {
|
|
2266
|
-
|
|
2336
|
+
M.T = t;
|
|
2267
2337
|
}
|
|
2268
2338
|
};
|
|
2269
|
-
|
|
2270
|
-
return
|
|
2339
|
+
C.unstable_useCacheRefresh = function() {
|
|
2340
|
+
return M.H.useCacheRefresh();
|
|
2271
2341
|
};
|
|
2272
|
-
|
|
2273
|
-
return
|
|
2342
|
+
C.use = function(e) {
|
|
2343
|
+
return M.H.use(e);
|
|
2274
2344
|
};
|
|
2275
|
-
|
|
2276
|
-
return
|
|
2345
|
+
C.useActionState = function(e, t, r) {
|
|
2346
|
+
return M.H.useActionState(e, t, r);
|
|
2277
2347
|
};
|
|
2278
|
-
|
|
2279
|
-
return
|
|
2348
|
+
C.useCallback = function(e, t) {
|
|
2349
|
+
return M.H.useCallback(e, t);
|
|
2280
2350
|
};
|
|
2281
|
-
|
|
2282
|
-
return
|
|
2351
|
+
C.useContext = function(e) {
|
|
2352
|
+
return M.H.useContext(e);
|
|
2283
2353
|
};
|
|
2284
|
-
|
|
2354
|
+
C.useDebugValue = function() {
|
|
2285
2355
|
};
|
|
2286
|
-
|
|
2287
|
-
return
|
|
2356
|
+
C.useDeferredValue = function(e, t) {
|
|
2357
|
+
return M.H.useDeferredValue(e, t);
|
|
2288
2358
|
};
|
|
2289
|
-
|
|
2290
|
-
return
|
|
2359
|
+
C.useEffect = function(e, t) {
|
|
2360
|
+
return M.H.useEffect(e, t);
|
|
2291
2361
|
};
|
|
2292
|
-
|
|
2293
|
-
return
|
|
2362
|
+
C.useId = function() {
|
|
2363
|
+
return M.H.useId();
|
|
2294
2364
|
};
|
|
2295
|
-
|
|
2296
|
-
return
|
|
2365
|
+
C.useImperativeHandle = function(e, t, r) {
|
|
2366
|
+
return M.H.useImperativeHandle(e, t, r);
|
|
2297
2367
|
};
|
|
2298
|
-
|
|
2299
|
-
return
|
|
2368
|
+
C.useInsertionEffect = function(e, t) {
|
|
2369
|
+
return M.H.useInsertionEffect(e, t);
|
|
2300
2370
|
};
|
|
2301
|
-
|
|
2302
|
-
return
|
|
2371
|
+
C.useLayoutEffect = function(e, t) {
|
|
2372
|
+
return M.H.useLayoutEffect(e, t);
|
|
2303
2373
|
};
|
|
2304
|
-
|
|
2305
|
-
return
|
|
2374
|
+
C.useMemo = function(e, t) {
|
|
2375
|
+
return M.H.useMemo(e, t);
|
|
2306
2376
|
};
|
|
2307
|
-
|
|
2308
|
-
return
|
|
2377
|
+
C.useOptimistic = function(e, t) {
|
|
2378
|
+
return M.H.useOptimistic(e, t);
|
|
2309
2379
|
};
|
|
2310
|
-
|
|
2311
|
-
return
|
|
2380
|
+
C.useReducer = function(e, t, r) {
|
|
2381
|
+
return M.H.useReducer(e, t, r);
|
|
2312
2382
|
};
|
|
2313
|
-
|
|
2314
|
-
return
|
|
2383
|
+
C.useRef = function(e) {
|
|
2384
|
+
return M.H.useRef(e);
|
|
2315
2385
|
};
|
|
2316
|
-
|
|
2317
|
-
return
|
|
2386
|
+
C.useState = function(e) {
|
|
2387
|
+
return M.H.useState(e);
|
|
2318
2388
|
};
|
|
2319
|
-
|
|
2320
|
-
return
|
|
2389
|
+
C.useSyncExternalStore = function(e, t, r) {
|
|
2390
|
+
return M.H.useSyncExternalStore(
|
|
2321
2391
|
e,
|
|
2322
2392
|
t,
|
|
2323
2393
|
r
|
|
2324
2394
|
);
|
|
2325
2395
|
};
|
|
2326
|
-
|
|
2327
|
-
return
|
|
2396
|
+
C.useTransition = function() {
|
|
2397
|
+
return M.H.useTransition();
|
|
2328
2398
|
};
|
|
2329
|
-
|
|
2330
|
-
rs.exports =
|
|
2331
|
-
var _a = rs.exports,
|
|
2332
|
-
const
|
|
2333
|
-
function ls(e, t =
|
|
2399
|
+
C.version = "19.0.0";
|
|
2400
|
+
rs.exports = C;
|
|
2401
|
+
var _a = rs.exports, Pi = vr;
|
|
2402
|
+
const Ti = (e) => e;
|
|
2403
|
+
function ls(e, t = Ti) {
|
|
2334
2404
|
const r = _a.useSyncExternalStore(
|
|
2335
2405
|
e.subscribe,
|
|
2336
2406
|
() => t(e.getState()),
|
|
@@ -2339,10 +2409,10 @@ function ls(e, t = xi) {
|
|
|
2339
2409
|
return _a.useDebugValue(r), r;
|
|
2340
2410
|
}
|
|
2341
2411
|
const Aa = (e) => {
|
|
2342
|
-
const t =
|
|
2412
|
+
const t = Pi.createStore(e), r = (a) => ls(t, a);
|
|
2343
2413
|
return Object.assign(r, t), r;
|
|
2344
|
-
},
|
|
2345
|
-
yr.create =
|
|
2414
|
+
}, xi = (e) => e ? Aa(e) : Aa;
|
|
2415
|
+
yr.create = xi;
|
|
2346
2416
|
yr.useStore = ls;
|
|
2347
2417
|
(function(e) {
|
|
2348
2418
|
var t = vr, r = yr;
|
|
@@ -2379,7 +2449,7 @@ const $i = {
|
|
|
2379
2449
|
searchResultsPerPage: 20,
|
|
2380
2450
|
searchResultsPage: 1,
|
|
2381
2451
|
sortType: "asc"
|
|
2382
|
-
},
|
|
2452
|
+
}, _ = ts.createStore((e, t) => {
|
|
2383
2453
|
const r = {
|
|
2384
2454
|
addFacetPathsForIndexField: (n) => e((o) => ({
|
|
2385
2455
|
facetPathsForIndexFields: {
|
|
@@ -2398,10 +2468,10 @@ const $i = {
|
|
|
2398
2468
|
return n;
|
|
2399
2469
|
},
|
|
2400
2470
|
initialize: (n, o = !1) => {
|
|
2401
|
-
const s = n,
|
|
2471
|
+
const s = n, l = o ? new Xo({ logLevel: _e.DEBUG }) : void 0;
|
|
2402
2472
|
e({
|
|
2403
2473
|
core: s,
|
|
2404
|
-
logger:
|
|
2474
|
+
logger: l,
|
|
2405
2475
|
searchResultsPerPage: s.config.searchResultsPerPage || 20
|
|
2406
2476
|
});
|
|
2407
2477
|
},
|
|
@@ -2427,9 +2497,9 @@ const $i = {
|
|
|
2427
2497
|
});
|
|
2428
2498
|
},
|
|
2429
2499
|
search: async () => {
|
|
2430
|
-
var
|
|
2500
|
+
var l, u;
|
|
2431
2501
|
const n = t();
|
|
2432
|
-
if ((
|
|
2502
|
+
if ((l = n.logger) == null || l.log(_e.INFO, `Starting search with search term: "${n.searchTerm}"`), !n.core)
|
|
2433
2503
|
throw new Error("Searchcraft instance is not initialized.");
|
|
2434
2504
|
if (!n.searchTerm.trim()) {
|
|
2435
2505
|
(u = n.logger) == null || u.log(_e.INFO, "No search request was made: search term was empty."), e({
|
|
@@ -2441,21 +2511,21 @@ const $i = {
|
|
|
2441
2511
|
return;
|
|
2442
2512
|
}
|
|
2443
2513
|
e({ isSearchInProgress: !0 });
|
|
2444
|
-
const o = (
|
|
2445
|
-
var
|
|
2446
|
-
const p =
|
|
2447
|
-
e((
|
|
2514
|
+
const o = (c, i) => {
|
|
2515
|
+
var m, v;
|
|
2516
|
+
const p = c.data.facets;
|
|
2517
|
+
e((b) => ({
|
|
2448
2518
|
isSearchInProgress: !1,
|
|
2449
2519
|
searchClientResponseItems: i,
|
|
2450
|
-
searchResponseTimeTaken:
|
|
2520
|
+
searchResponseTimeTaken: c.data.time_taken || 0,
|
|
2451
2521
|
searchResultsPage: (
|
|
2452
2522
|
// reset to first page when response count changes
|
|
2453
|
-
|
|
2523
|
+
c.data.count === b.searchResultsCount ? b.searchResultsPage : 1
|
|
2454
2524
|
),
|
|
2455
|
-
searchResultsCount:
|
|
2456
|
-
})), p && e({ searchResponseFacetPrime: p }), (
|
|
2457
|
-
}, s = (
|
|
2458
|
-
e({ adClientResponseItems:
|
|
2525
|
+
searchResultsCount: c.data.count || 0
|
|
2526
|
+
})), p && e({ searchResponseFacetPrime: p }), (m = n.logger) == null || m.log(_e.DEBUG, `Search results: ${JSON.stringify(i)}`), (v = n.logger) == null || v.log(_e.DEBUG, `Facets from response: ${JSON.stringify(p)}`);
|
|
2527
|
+
}, s = (c) => {
|
|
2528
|
+
e({ adClientResponseItems: c });
|
|
2459
2529
|
};
|
|
2460
2530
|
n.core.getItems({
|
|
2461
2531
|
searchTerm: n.searchTerm,
|
|
@@ -2476,9 +2546,7 @@ const $i = {
|
|
|
2476
2546
|
setSortType: (n) => e({ sortType: n }),
|
|
2477
2547
|
setSearchTerm: (n) => {
|
|
2478
2548
|
const { core: o } = t();
|
|
2479
|
-
|
|
2480
|
-
name: "input_cleared"
|
|
2481
|
-
}), e({
|
|
2549
|
+
n.length === 0 && (o == null || o.handleInputCleared()), e({
|
|
2482
2550
|
searchTerm: n,
|
|
2483
2551
|
facetPathsForIndexFields: {},
|
|
2484
2552
|
...n.trim().length === 0 && {
|
|
@@ -2514,79 +2582,79 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2514
2582
|
getOwnPropertyDescriptor: s
|
|
2515
2583
|
} = Object;
|
|
2516
2584
|
let {
|
|
2517
|
-
freeze:
|
|
2585
|
+
freeze: l,
|
|
2518
2586
|
seal: u,
|
|
2519
|
-
create:
|
|
2587
|
+
create: c
|
|
2520
2588
|
} = Object, {
|
|
2521
2589
|
apply: i,
|
|
2522
2590
|
construct: p
|
|
2523
2591
|
} = typeof Reflect < "u" && Reflect;
|
|
2524
|
-
|
|
2525
|
-
return
|
|
2526
|
-
}), u || (u = function(
|
|
2527
|
-
return
|
|
2528
|
-
}), i || (i = function(
|
|
2529
|
-
return
|
|
2530
|
-
}), p || (p = function(
|
|
2531
|
-
return new
|
|
2592
|
+
l || (l = function(S) {
|
|
2593
|
+
return S;
|
|
2594
|
+
}), u || (u = function(S) {
|
|
2595
|
+
return S;
|
|
2596
|
+
}), i || (i = function(S, x, T) {
|
|
2597
|
+
return S.apply(x, T);
|
|
2598
|
+
}), p || (p = function(S, x) {
|
|
2599
|
+
return new S(...x);
|
|
2532
2600
|
});
|
|
2533
|
-
const
|
|
2534
|
-
function
|
|
2535
|
-
return function(
|
|
2536
|
-
for (var
|
|
2537
|
-
|
|
2538
|
-
return i(
|
|
2601
|
+
const m = Q(Array.prototype.forEach), v = Q(Array.prototype.lastIndexOf), b = Q(Array.prototype.pop), $ = Q(Array.prototype.push), H = Q(Array.prototype.splice), ae = Q(String.prototype.toLowerCase), L = Q(String.prototype.toString), Ge = Q(String.prototype.match), Ve = Q(String.prototype.replace), Bs = Q(String.prototype.indexOf), js = Q(String.prototype.trim), ce = Q(Object.prototype.hasOwnProperty), Y = Q(RegExp.prototype.test), qe = Ws(TypeError);
|
|
2602
|
+
function Q(P) {
|
|
2603
|
+
return function(S) {
|
|
2604
|
+
for (var x = arguments.length, T = new Array(x > 1 ? x - 1 : 0), W = 1; W < x; W++)
|
|
2605
|
+
T[W - 1] = arguments[W];
|
|
2606
|
+
return i(P, S, T);
|
|
2539
2607
|
};
|
|
2540
2608
|
}
|
|
2541
|
-
function
|
|
2609
|
+
function Ws(P) {
|
|
2542
2610
|
return function() {
|
|
2543
|
-
for (var
|
|
2544
|
-
T
|
|
2545
|
-
return p(
|
|
2611
|
+
for (var S = arguments.length, x = new Array(S), T = 0; T < S; T++)
|
|
2612
|
+
x[T] = arguments[T];
|
|
2613
|
+
return p(P, x);
|
|
2546
2614
|
};
|
|
2547
2615
|
}
|
|
2548
|
-
function P
|
|
2549
|
-
let
|
|
2550
|
-
a && a(
|
|
2551
|
-
let
|
|
2552
|
-
for (;
|
|
2553
|
-
let
|
|
2554
|
-
if (typeof
|
|
2555
|
-
const de =
|
|
2556
|
-
de !==
|
|
2616
|
+
function k(P, S) {
|
|
2617
|
+
let x = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
|
|
2618
|
+
a && a(P, null);
|
|
2619
|
+
let T = S.length;
|
|
2620
|
+
for (; T--; ) {
|
|
2621
|
+
let W = S[T];
|
|
2622
|
+
if (typeof W == "string") {
|
|
2623
|
+
const de = x(W);
|
|
2624
|
+
de !== W && (n(S) || (S[T] = de), W = de);
|
|
2557
2625
|
}
|
|
2558
|
-
|
|
2626
|
+
P[W] = !0;
|
|
2559
2627
|
}
|
|
2560
|
-
return
|
|
2628
|
+
return P;
|
|
2561
2629
|
}
|
|
2562
|
-
function
|
|
2563
|
-
for (let
|
|
2564
|
-
|
|
2565
|
-
return
|
|
2630
|
+
function Gs(P) {
|
|
2631
|
+
for (let S = 0; S < P.length; S++)
|
|
2632
|
+
ce(P, S) || (P[S] = null);
|
|
2633
|
+
return P;
|
|
2566
2634
|
}
|
|
2567
|
-
function
|
|
2568
|
-
const
|
|
2569
|
-
for (const [
|
|
2570
|
-
|
|
2571
|
-
return
|
|
2635
|
+
function Pe(P) {
|
|
2636
|
+
const S = c(null);
|
|
2637
|
+
for (const [x, T] of r(P))
|
|
2638
|
+
ce(P, x) && (Array.isArray(T) ? S[x] = Gs(T) : T && typeof T == "object" && T.constructor === Object ? S[x] = Pe(T) : S[x] = T);
|
|
2639
|
+
return S;
|
|
2572
2640
|
}
|
|
2573
|
-
function Ye(
|
|
2574
|
-
for (;
|
|
2575
|
-
const
|
|
2576
|
-
if (
|
|
2577
|
-
if (
|
|
2578
|
-
return
|
|
2579
|
-
if (typeof
|
|
2580
|
-
return
|
|
2641
|
+
function Ye(P, S) {
|
|
2642
|
+
for (; P !== null; ) {
|
|
2643
|
+
const T = s(P, S);
|
|
2644
|
+
if (T) {
|
|
2645
|
+
if (T.get)
|
|
2646
|
+
return Q(T.get);
|
|
2647
|
+
if (typeof T.value == "function")
|
|
2648
|
+
return Q(T.value);
|
|
2581
2649
|
}
|
|
2582
|
-
|
|
2650
|
+
P = o(P);
|
|
2583
2651
|
}
|
|
2584
|
-
function
|
|
2652
|
+
function x() {
|
|
2585
2653
|
return null;
|
|
2586
2654
|
}
|
|
2587
|
-
return
|
|
2655
|
+
return x;
|
|
2588
2656
|
}
|
|
2589
|
-
const
|
|
2657
|
+
const Tr = l(["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"]), Ot = l(["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"]), Ft = l(["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"]), Vs = l(["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"]), Dt = l(["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"]), qs = l(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), xr = l(["#text"]), $r = l(["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"]), Nt = l(["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"]), _r = l(["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"]), lt = l(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ys = u(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Qs = u(/<%[\w\W]*|[\w\W]*%>/gm), Ks = u(/\$\{[\w\W]*/gm), Xs = u(/^data-[\-\w.\u00B7-\uFFFF]+$/), Js = u(/^aria-[\-\w]+$/), Ar = u(
|
|
2590
2658
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
2591
2659
|
// eslint-disable-line no-useless-escape
|
|
2592
2660
|
), Zs = u(/^(?:\w+script|data):/i), en = u(
|
|
@@ -2598,15 +2666,15 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2598
2666
|
ARIA_ATTR: Js,
|
|
2599
2667
|
ATTR_WHITESPACE: en,
|
|
2600
2668
|
CUSTOM_ELEMENT: tn,
|
|
2601
|
-
DATA_ATTR:
|
|
2669
|
+
DATA_ATTR: Xs,
|
|
2602
2670
|
DOCTYPE_NAME: Ir,
|
|
2603
|
-
ERB_EXPR:
|
|
2671
|
+
ERB_EXPR: Qs,
|
|
2604
2672
|
IS_ALLOWED_URI: Ar,
|
|
2605
2673
|
IS_SCRIPT_OR_DATA: Zs,
|
|
2606
2674
|
MUSTACHE_EXPR: Ys,
|
|
2607
|
-
TMPLIT_EXPR:
|
|
2675
|
+
TMPLIT_EXPR: Ks
|
|
2608
2676
|
});
|
|
2609
|
-
const
|
|
2677
|
+
const Qe = {
|
|
2610
2678
|
element: 1,
|
|
2611
2679
|
attribute: 2,
|
|
2612
2680
|
text: 3,
|
|
@@ -2624,15 +2692,15 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2624
2692
|
// Deprecated
|
|
2625
2693
|
}, rn = function() {
|
|
2626
2694
|
return typeof window > "u" ? null : window;
|
|
2627
|
-
}, an = function(
|
|
2628
|
-
if (typeof
|
|
2695
|
+
}, an = function(S, x) {
|
|
2696
|
+
if (typeof S != "object" || typeof S.createPolicy != "function")
|
|
2629
2697
|
return null;
|
|
2630
|
-
let
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2633
|
-
const de = "dompurify" + (
|
|
2698
|
+
let T = null;
|
|
2699
|
+
const W = "data-tt-policy-suffix";
|
|
2700
|
+
x && x.hasAttribute(W) && (T = x.getAttribute(W));
|
|
2701
|
+
const de = "dompurify" + (T ? "#" + T : "");
|
|
2634
2702
|
try {
|
|
2635
|
-
return
|
|
2703
|
+
return S.createPolicy(de, {
|
|
2636
2704
|
createHTML(Me) {
|
|
2637
2705
|
return Me;
|
|
2638
2706
|
},
|
|
@@ -2657,27 +2725,27 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2657
2725
|
};
|
|
2658
2726
|
};
|
|
2659
2727
|
function Or() {
|
|
2660
|
-
let
|
|
2661
|
-
const
|
|
2662
|
-
if (
|
|
2663
|
-
return
|
|
2728
|
+
let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : rn();
|
|
2729
|
+
const S = (w) => Or(w);
|
|
2730
|
+
if (S.version = "3.2.4", S.removed = [], !P || !P.document || P.document.nodeType !== Qe.document || !P.Element)
|
|
2731
|
+
return S.isSupported = !1, S;
|
|
2664
2732
|
let {
|
|
2665
|
-
document:
|
|
2666
|
-
} =
|
|
2667
|
-
const
|
|
2733
|
+
document: x
|
|
2734
|
+
} = P;
|
|
2735
|
+
const T = x, W = T.currentScript, {
|
|
2668
2736
|
DocumentFragment: de,
|
|
2669
2737
|
HTMLTemplateElement: Me,
|
|
2670
2738
|
Node: Ut,
|
|
2671
2739
|
Element: Fr,
|
|
2672
|
-
NodeFilter:
|
|
2673
|
-
NamedNodeMap: nn =
|
|
2740
|
+
NodeFilter: Ke,
|
|
2741
|
+
NamedNodeMap: nn = P.NamedNodeMap || P.MozNamedAttrMap,
|
|
2674
2742
|
HTMLFormElement: on,
|
|
2675
2743
|
DOMParser: cn,
|
|
2676
2744
|
trustedTypes: ut
|
|
2677
|
-
} =
|
|
2745
|
+
} = P, Xe = Fr.prototype, ln = Ye(Xe, "cloneNode"), un = Ye(Xe, "remove"), hn = Ye(Xe, "nextSibling"), fn = Ye(Xe, "childNodes"), ht = Ye(Xe, "parentNode");
|
|
2678
2746
|
if (typeof Me == "function") {
|
|
2679
|
-
const
|
|
2680
|
-
|
|
2747
|
+
const w = x.createElement("template");
|
|
2748
|
+
w.content && w.content.ownerDocument && (x = w.content.ownerDocument);
|
|
2681
2749
|
}
|
|
2682
2750
|
let K, Je = "";
|
|
2683
2751
|
const {
|
|
@@ -2685,11 +2753,11 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2685
2753
|
createNodeIterator: dn,
|
|
2686
2754
|
createDocumentFragment: pn,
|
|
2687
2755
|
getElementsByTagName: mn
|
|
2688
|
-
} =
|
|
2756
|
+
} = x, {
|
|
2689
2757
|
importNode: gn
|
|
2690
|
-
} =
|
|
2758
|
+
} = T;
|
|
2691
2759
|
let X = Lr();
|
|
2692
|
-
|
|
2760
|
+
S.isSupported = typeof r == "function" && typeof ht == "function" && zt && zt.createHTMLDocument !== void 0;
|
|
2693
2761
|
const {
|
|
2694
2762
|
MUSTACHE_EXPR: Ht,
|
|
2695
2763
|
ERB_EXPR: Bt,
|
|
@@ -2703,10 +2771,10 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2703
2771
|
let {
|
|
2704
2772
|
IS_ALLOWED_URI: Nr
|
|
2705
2773
|
} = Mr, U = null;
|
|
2706
|
-
const Ur =
|
|
2707
|
-
let
|
|
2708
|
-
const zr =
|
|
2709
|
-
let
|
|
2774
|
+
const Ur = k({}, [...Tr, ...Ot, ...Ft, ...Dt, ...xr]);
|
|
2775
|
+
let B = null;
|
|
2776
|
+
const zr = k({}, [...$r, ...Nt, ..._r, ...lt]);
|
|
2777
|
+
let O = Object.seal(c(null, {
|
|
2710
2778
|
tagNameCheck: {
|
|
2711
2779
|
writable: !0,
|
|
2712
2780
|
configurable: !1,
|
|
@@ -2725,47 +2793,47 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2725
2793
|
enumerable: !0,
|
|
2726
2794
|
value: !1
|
|
2727
2795
|
}
|
|
2728
|
-
})), Ze = null,
|
|
2796
|
+
})), Ze = null, Wt = null, Hr = !0, Gt = !0, Br = !1, jr = !0, Le = !1, Vt = !0, Te = !1, qt = !1, Yt = !1, Oe = !1, ft = !1, dt = !1, Wr = !0, Gr = !1;
|
|
2729
2797
|
const wn = "user-content-";
|
|
2730
|
-
let
|
|
2731
|
-
const Vr =
|
|
2798
|
+
let Qt = !0, et = !1, Fe = {}, De = null;
|
|
2799
|
+
const Vr = k({}, ["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"]);
|
|
2732
2800
|
let qr = null;
|
|
2733
|
-
const Yr =
|
|
2734
|
-
let
|
|
2735
|
-
const
|
|
2736
|
-
let Ne = pe,
|
|
2737
|
-
const En =
|
|
2738
|
-
let gt =
|
|
2739
|
-
const Rn =
|
|
2801
|
+
const Yr = k({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2802
|
+
let Kt = null;
|
|
2803
|
+
const Qr = k({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), pt = "http://www.w3.org/1998/Math/MathML", mt = "http://www.w3.org/2000/svg", pe = "http://www.w3.org/1999/xhtml";
|
|
2804
|
+
let Ne = pe, Xt = !1, Jt = null;
|
|
2805
|
+
const En = k({}, [pt, mt, pe], L);
|
|
2806
|
+
let gt = k({}, ["mi", "mo", "mn", "ms", "mtext"]), bt = k({}, ["annotation-xml"]);
|
|
2807
|
+
const Rn = k({}, ["title", "style", "font", "a", "script"]);
|
|
2740
2808
|
let tt = null;
|
|
2741
|
-
const
|
|
2809
|
+
const Cn = ["application/xhtml+xml", "text/html"], kn = "text/html";
|
|
2742
2810
|
let z = null, Ue = null;
|
|
2743
|
-
const
|
|
2811
|
+
const Pn = x.createElement("form"), Kr = function(f) {
|
|
2744
2812
|
return f instanceof RegExp || f instanceof Function;
|
|
2745
2813
|
}, Zt = function() {
|
|
2746
2814
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2747
2815
|
if (!(Ue && Ue === f)) {
|
|
2748
|
-
if ((!f || typeof f != "object") && (f = {}), f =
|
|
2749
|
-
|
|
2816
|
+
if ((!f || typeof f != "object") && (f = {}), f = Pe(f), tt = // eslint-disable-next-line unicorn/prefer-includes
|
|
2817
|
+
Cn.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? kn : f.PARSER_MEDIA_TYPE, z = tt === "application/xhtml+xml" ? L : ae, U = ce(f, "ALLOWED_TAGS") ? k({}, f.ALLOWED_TAGS, z) : Ur, B = ce(f, "ALLOWED_ATTR") ? k({}, f.ALLOWED_ATTR, z) : zr, Jt = ce(f, "ALLOWED_NAMESPACES") ? k({}, f.ALLOWED_NAMESPACES, L) : En, Kt = ce(f, "ADD_URI_SAFE_ATTR") ? k(Pe(Qr), f.ADD_URI_SAFE_ATTR, z) : Qr, qr = ce(f, "ADD_DATA_URI_TAGS") ? k(Pe(Yr), f.ADD_DATA_URI_TAGS, z) : Yr, De = ce(f, "FORBID_CONTENTS") ? k({}, f.FORBID_CONTENTS, z) : Vr, Ze = ce(f, "FORBID_TAGS") ? k({}, f.FORBID_TAGS, z) : {}, Wt = ce(f, "FORBID_ATTR") ? k({}, f.FORBID_ATTR, z) : {}, Fe = ce(f, "USE_PROFILES") ? f.USE_PROFILES : !1, Hr = f.ALLOW_ARIA_ATTR !== !1, Gt = f.ALLOW_DATA_ATTR !== !1, Br = f.ALLOW_UNKNOWN_PROTOCOLS || !1, jr = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Le = f.SAFE_FOR_TEMPLATES || !1, Vt = f.SAFE_FOR_XML !== !1, Te = f.WHOLE_DOCUMENT || !1, Oe = f.RETURN_DOM || !1, ft = f.RETURN_DOM_FRAGMENT || !1, dt = f.RETURN_TRUSTED_TYPE || !1, Yt = f.FORCE_BODY || !1, Wr = f.SANITIZE_DOM !== !1, Gr = f.SANITIZE_NAMED_PROPS || !1, Qt = f.KEEP_CONTENT !== !1, et = f.IN_PLACE || !1, Nr = f.ALLOWED_URI_REGEXP || Ar, Ne = f.NAMESPACE || pe, gt = f.MATHML_TEXT_INTEGRATION_POINTS || gt, bt = f.HTML_INTEGRATION_POINTS || bt, O = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && Kr(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && Kr(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), Le && (Gt = !1), ft && (Oe = !0), Fe && (U = k({}, xr), B = [], Fe.html === !0 && (k(U, Tr), k(B, $r)), Fe.svg === !0 && (k(U, Ot), k(B, Nt), k(B, lt)), Fe.svgFilters === !0 && (k(U, Ft), k(B, Nt), k(B, lt)), Fe.mathMl === !0 && (k(U, Dt), k(B, _r), k(B, lt))), f.ADD_TAGS && (U === Ur && (U = Pe(U)), k(U, f.ADD_TAGS, z)), f.ADD_ATTR && (B === zr && (B = Pe(B)), k(B, f.ADD_ATTR, z)), f.ADD_URI_SAFE_ATTR && k(Kt, f.ADD_URI_SAFE_ATTR, z), f.FORBID_CONTENTS && (De === Vr && (De = Pe(De)), k(De, f.FORBID_CONTENTS, z)), Qt && (U["#text"] = !0), Te && k(U, ["html", "head", "body"]), U.table && (k(U, ["tbody"]), delete Ze.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
2750
2818
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2751
2819
|
throw qe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2752
2820
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2753
2821
|
throw qe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2754
2822
|
K = f.TRUSTED_TYPES_POLICY, Je = K.createHTML("");
|
|
2755
2823
|
} else
|
|
2756
|
-
K === void 0 && (K = an(ut,
|
|
2757
|
-
|
|
2824
|
+
K === void 0 && (K = an(ut, W)), K !== null && typeof Je == "string" && (Je = K.createHTML(""));
|
|
2825
|
+
l && l(f), Ue = f;
|
|
2758
2826
|
}
|
|
2759
|
-
},
|
|
2760
|
-
let
|
|
2761
|
-
(!
|
|
2827
|
+
}, Xr = k({}, [...Ot, ...Ft, ...Vs]), Jr = k({}, [...Dt, ...qs]), Tn = function(f) {
|
|
2828
|
+
let g = ht(f);
|
|
2829
|
+
(!g || !g.tagName) && (g = {
|
|
2762
2830
|
namespaceURI: Ne,
|
|
2763
2831
|
tagName: "template"
|
|
2764
2832
|
});
|
|
2765
|
-
const
|
|
2766
|
-
return Jt[f.namespaceURI] ? f.namespaceURI === mt ?
|
|
2767
|
-
},
|
|
2768
|
-
|
|
2833
|
+
const y = ae(f.tagName), A = ae(g.tagName);
|
|
2834
|
+
return Jt[f.namespaceURI] ? f.namespaceURI === mt ? g.namespaceURI === pe ? y === "svg" : g.namespaceURI === pt ? y === "svg" && (A === "annotation-xml" || gt[A]) : !!Xr[y] : f.namespaceURI === pt ? g.namespaceURI === pe ? y === "math" : g.namespaceURI === mt ? y === "math" && bt[A] : !!Jr[y] : f.namespaceURI === pe ? g.namespaceURI === mt && !bt[A] || g.namespaceURI === pt && !gt[A] ? !1 : !Jr[y] && (Rn[y] || !Xr[y]) : !!(tt === "application/xhtml+xml" && Jt[f.namespaceURI]) : !1;
|
|
2835
|
+
}, he = function(f) {
|
|
2836
|
+
$(S.removed, {
|
|
2769
2837
|
element: f
|
|
2770
2838
|
});
|
|
2771
2839
|
try {
|
|
@@ -2773,59 +2841,59 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2773
2841
|
} catch {
|
|
2774
2842
|
un(f);
|
|
2775
2843
|
}
|
|
2776
|
-
}, vt = function(f,
|
|
2844
|
+
}, vt = function(f, g) {
|
|
2777
2845
|
try {
|
|
2778
|
-
|
|
2779
|
-
attribute:
|
|
2780
|
-
from:
|
|
2846
|
+
$(S.removed, {
|
|
2847
|
+
attribute: g.getAttributeNode(f),
|
|
2848
|
+
from: g
|
|
2781
2849
|
});
|
|
2782
2850
|
} catch {
|
|
2783
|
-
|
|
2851
|
+
$(S.removed, {
|
|
2784
2852
|
attribute: null,
|
|
2785
|
-
from:
|
|
2853
|
+
from: g
|
|
2786
2854
|
});
|
|
2787
2855
|
}
|
|
2788
|
-
if (
|
|
2856
|
+
if (g.removeAttribute(f), f === "is")
|
|
2789
2857
|
if (Oe || ft)
|
|
2790
2858
|
try {
|
|
2791
|
-
|
|
2859
|
+
he(g);
|
|
2792
2860
|
} catch {
|
|
2793
2861
|
}
|
|
2794
2862
|
else
|
|
2795
2863
|
try {
|
|
2796
|
-
|
|
2864
|
+
g.setAttribute(f, "");
|
|
2797
2865
|
} catch {
|
|
2798
2866
|
}
|
|
2799
2867
|
}, Zr = function(f) {
|
|
2800
|
-
let
|
|
2868
|
+
let g = null, y = null;
|
|
2801
2869
|
if (Yt)
|
|
2802
2870
|
f = "<remove></remove>" + f;
|
|
2803
2871
|
else {
|
|
2804
|
-
const
|
|
2805
|
-
|
|
2872
|
+
const j = Ge(f, /^[\r\n\t ]+/);
|
|
2873
|
+
y = j && j[0];
|
|
2806
2874
|
}
|
|
2807
2875
|
tt === "application/xhtml+xml" && Ne === pe && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
2808
|
-
const
|
|
2876
|
+
const A = K ? K.createHTML(f) : f;
|
|
2809
2877
|
if (Ne === pe)
|
|
2810
2878
|
try {
|
|
2811
|
-
|
|
2879
|
+
g = new cn().parseFromString(A, tt);
|
|
2812
2880
|
} catch {
|
|
2813
2881
|
}
|
|
2814
|
-
if (!
|
|
2815
|
-
|
|
2882
|
+
if (!g || !g.documentElement) {
|
|
2883
|
+
g = zt.createDocument(Ne, "template", null);
|
|
2816
2884
|
try {
|
|
2817
|
-
|
|
2885
|
+
g.documentElement.innerHTML = Xt ? Je : A;
|
|
2818
2886
|
} catch {
|
|
2819
2887
|
}
|
|
2820
2888
|
}
|
|
2821
|
-
const G =
|
|
2822
|
-
return f &&
|
|
2889
|
+
const G = g.body || g.documentElement;
|
|
2890
|
+
return f && y && G.insertBefore(x.createTextNode(y), G.childNodes[0] || null), Ne === pe ? mn.call(g, Te ? "html" : "body")[0] : Te ? g.documentElement : G;
|
|
2823
2891
|
}, ea = function(f) {
|
|
2824
2892
|
return dn.call(
|
|
2825
2893
|
f.ownerDocument || f,
|
|
2826
2894
|
f,
|
|
2827
2895
|
// eslint-disable-next-line no-bitwise
|
|
2828
|
-
|
|
2896
|
+
Ke.SHOW_ELEMENT | Ke.SHOW_COMMENT | Ke.SHOW_TEXT | Ke.SHOW_PROCESSING_INSTRUCTION | Ke.SHOW_CDATA_SECTION,
|
|
2829
2897
|
null
|
|
2830
2898
|
);
|
|
2831
2899
|
}, er = function(f) {
|
|
@@ -2833,60 +2901,60 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2833
2901
|
}, ta = function(f) {
|
|
2834
2902
|
return typeof Ut == "function" && f instanceof Ut;
|
|
2835
2903
|
};
|
|
2836
|
-
function me(
|
|
2837
|
-
|
|
2838
|
-
|
|
2904
|
+
function me(w, f, g) {
|
|
2905
|
+
m(w, (y) => {
|
|
2906
|
+
y.call(S, f, g, Ue);
|
|
2839
2907
|
});
|
|
2840
2908
|
}
|
|
2841
2909
|
const ra = function(f) {
|
|
2842
|
-
let
|
|
2910
|
+
let g = null;
|
|
2843
2911
|
if (me(X.beforeSanitizeElements, f, null), er(f))
|
|
2844
|
-
return
|
|
2845
|
-
const
|
|
2912
|
+
return he(f), !0;
|
|
2913
|
+
const y = z(f.nodeName);
|
|
2846
2914
|
if (me(X.uponSanitizeElement, f, {
|
|
2847
|
-
tagName:
|
|
2915
|
+
tagName: y,
|
|
2848
2916
|
allowedTags: U
|
|
2849
|
-
}), f.hasChildNodes() && !ta(f.firstElementChild) &&
|
|
2850
|
-
return
|
|
2851
|
-
if (!U[
|
|
2852
|
-
if (!Ze[
|
|
2917
|
+
}), f.hasChildNodes() && !ta(f.firstElementChild) && Y(/<[/\w]/g, f.innerHTML) && Y(/<[/\w]/g, f.textContent) || f.nodeType === Qe.progressingInstruction || Vt && f.nodeType === Qe.comment && Y(/<[/\w]/g, f.data))
|
|
2918
|
+
return he(f), !0;
|
|
2919
|
+
if (!U[y] || Ze[y]) {
|
|
2920
|
+
if (!Ze[y] && sa(y) && (O.tagNameCheck instanceof RegExp && Y(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2853
2921
|
return !1;
|
|
2854
|
-
if (
|
|
2855
|
-
const
|
|
2856
|
-
if (G &&
|
|
2857
|
-
const
|
|
2858
|
-
for (let
|
|
2859
|
-
const
|
|
2860
|
-
|
|
2922
|
+
if (Qt && !De[y]) {
|
|
2923
|
+
const A = ht(f) || f.parentNode, G = fn(f) || f.childNodes;
|
|
2924
|
+
if (G && A) {
|
|
2925
|
+
const j = G.length;
|
|
2926
|
+
for (let te = j - 1; te >= 0; --te) {
|
|
2927
|
+
const fe = ln(G[te], !0);
|
|
2928
|
+
fe.__removalCount = (f.__removalCount || 0) + 1, A.insertBefore(fe, hn(f));
|
|
2861
2929
|
}
|
|
2862
2930
|
}
|
|
2863
2931
|
}
|
|
2864
|
-
return
|
|
2932
|
+
return he(f), !0;
|
|
2865
2933
|
}
|
|
2866
|
-
return f instanceof Fr && !
|
|
2867
|
-
|
|
2868
|
-
}), f.textContent !==
|
|
2934
|
+
return f instanceof Fr && !Tn(f) || (y === "noscript" || y === "noembed" || y === "noframes") && Y(/<\/no(script|embed|frames)/i, f.innerHTML) ? (he(f), !0) : (Le && f.nodeType === Qe.text && (g = f.textContent, m([Ht, Bt, jt], (A) => {
|
|
2935
|
+
g = Ve(g, A, " ");
|
|
2936
|
+
}), f.textContent !== g && ($(S.removed, {
|
|
2869
2937
|
element: f.cloneNode()
|
|
2870
|
-
}), f.textContent =
|
|
2871
|
-
}, aa = function(f,
|
|
2872
|
-
if (
|
|
2938
|
+
}), f.textContent = g)), me(X.afterSanitizeElements, f, null), !1);
|
|
2939
|
+
}, aa = function(f, g, y) {
|
|
2940
|
+
if (Wr && (g === "id" || g === "name") && (y in x || y in Pn))
|
|
2873
2941
|
return !1;
|
|
2874
|
-
if (!(
|
|
2875
|
-
if (!(Hr &&
|
|
2876
|
-
if (!
|
|
2942
|
+
if (!(Gt && !Wt[g] && Y(bn, g))) {
|
|
2943
|
+
if (!(Hr && Y(vn, g))) {
|
|
2944
|
+
if (!B[g] || Wt[g]) {
|
|
2877
2945
|
if (
|
|
2878
2946
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2879
2947
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2880
2948
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2881
|
-
!(sa(f) && (
|
|
2949
|
+
!(sa(f) && (O.tagNameCheck instanceof RegExp && Y(O.tagNameCheck, f) || O.tagNameCheck instanceof Function && O.tagNameCheck(f)) && (O.attributeNameCheck instanceof RegExp && Y(O.attributeNameCheck, g) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(g)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2882
2950
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2883
|
-
|
|
2951
|
+
g === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && Y(O.tagNameCheck, y) || O.tagNameCheck instanceof Function && O.tagNameCheck(y)))
|
|
2884
2952
|
) return !1;
|
|
2885
|
-
} else if (!
|
|
2886
|
-
if (!
|
|
2887
|
-
if (!((
|
|
2888
|
-
if (!(Br && !
|
|
2889
|
-
if (
|
|
2953
|
+
} else if (!Kt[g]) {
|
|
2954
|
+
if (!Y(Nr, Ve(y, Dr, ""))) {
|
|
2955
|
+
if (!((g === "src" || g === "xlink:href" || g === "href") && f !== "script" && Bs(y, "data:") === 0 && qr[f])) {
|
|
2956
|
+
if (!(Br && !Y(yn, Ve(y, Dr, "")))) {
|
|
2957
|
+
if (y)
|
|
2890
2958
|
return !1;
|
|
2891
2959
|
}
|
|
2892
2960
|
}
|
|
@@ -2896,135 +2964,135 @@ var _i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2896
2964
|
}
|
|
2897
2965
|
return !0;
|
|
2898
2966
|
}, sa = function(f) {
|
|
2899
|
-
return f !== "annotation-xml" &&
|
|
2967
|
+
return f !== "annotation-xml" && Ge(f, Sn);
|
|
2900
2968
|
}, na = function(f) {
|
|
2901
2969
|
me(X.beforeSanitizeAttributes, f, null);
|
|
2902
2970
|
const {
|
|
2903
|
-
attributes:
|
|
2971
|
+
attributes: g
|
|
2904
2972
|
} = f;
|
|
2905
|
-
if (!
|
|
2973
|
+
if (!g || er(f))
|
|
2906
2974
|
return;
|
|
2907
|
-
const
|
|
2975
|
+
const y = {
|
|
2908
2976
|
attrName: "",
|
|
2909
2977
|
attrValue: "",
|
|
2910
2978
|
keepAttr: !0,
|
|
2911
|
-
allowedAttributes:
|
|
2979
|
+
allowedAttributes: B,
|
|
2912
2980
|
forceKeepAttr: void 0
|
|
2913
2981
|
};
|
|
2914
|
-
let
|
|
2915
|
-
for (;
|
|
2916
|
-
const G =
|
|
2917
|
-
name:
|
|
2918
|
-
namespaceURI:
|
|
2919
|
-
value:
|
|
2920
|
-
} = G, rt = z(
|
|
2921
|
-
let
|
|
2922
|
-
if (
|
|
2923
|
-
vt(
|
|
2982
|
+
let A = g.length;
|
|
2983
|
+
for (; A--; ) {
|
|
2984
|
+
const G = g[A], {
|
|
2985
|
+
name: j,
|
|
2986
|
+
namespaceURI: te,
|
|
2987
|
+
value: fe
|
|
2988
|
+
} = G, rt = z(j);
|
|
2989
|
+
let J = j === "value" ? fe : js(fe);
|
|
2990
|
+
if (y.attrName = rt, y.attrValue = J, y.keepAttr = !0, y.forceKeepAttr = void 0, me(X.uponSanitizeAttribute, f, y), J = y.attrValue, Gr && (rt === "id" || rt === "name") && (vt(j, f), J = wn + J), Vt && Y(/((--!?|])>)|<\/(style|title)/i, J)) {
|
|
2991
|
+
vt(j, f);
|
|
2924
2992
|
continue;
|
|
2925
2993
|
}
|
|
2926
|
-
if (
|
|
2994
|
+
if (y.forceKeepAttr || (vt(j, f), !y.keepAttr))
|
|
2927
2995
|
continue;
|
|
2928
|
-
if (!jr &&
|
|
2929
|
-
vt(
|
|
2996
|
+
if (!jr && Y(/\/>/i, J)) {
|
|
2997
|
+
vt(j, f);
|
|
2930
2998
|
continue;
|
|
2931
2999
|
}
|
|
2932
|
-
Le &&
|
|
2933
|
-
|
|
3000
|
+
Le && m([Ht, Bt, jt], (ia) => {
|
|
3001
|
+
J = Ve(J, ia, " ");
|
|
2934
3002
|
});
|
|
2935
3003
|
const oa = z(f.nodeName);
|
|
2936
|
-
if (aa(oa, rt,
|
|
2937
|
-
if (K && typeof ut == "object" && typeof ut.getAttributeType == "function" && !
|
|
3004
|
+
if (aa(oa, rt, J)) {
|
|
3005
|
+
if (K && typeof ut == "object" && typeof ut.getAttributeType == "function" && !te)
|
|
2938
3006
|
switch (ut.getAttributeType(oa, rt)) {
|
|
2939
3007
|
case "TrustedHTML": {
|
|
2940
|
-
|
|
3008
|
+
J = K.createHTML(J);
|
|
2941
3009
|
break;
|
|
2942
3010
|
}
|
|
2943
3011
|
case "TrustedScriptURL": {
|
|
2944
|
-
|
|
3012
|
+
J = K.createScriptURL(J);
|
|
2945
3013
|
break;
|
|
2946
3014
|
}
|
|
2947
3015
|
}
|
|
2948
3016
|
try {
|
|
2949
|
-
|
|
3017
|
+
te ? f.setAttributeNS(te, j, J) : f.setAttribute(j, J), er(f) ? he(f) : b(S.removed);
|
|
2950
3018
|
} catch {
|
|
2951
3019
|
}
|
|
2952
3020
|
}
|
|
2953
3021
|
}
|
|
2954
3022
|
me(X.afterSanitizeAttributes, f, null);
|
|
2955
|
-
},
|
|
2956
|
-
let
|
|
2957
|
-
const
|
|
2958
|
-
for (me(X.beforeSanitizeShadowDOM, f, null);
|
|
2959
|
-
me(X.uponSanitizeShadowNode,
|
|
3023
|
+
}, xn = function w(f) {
|
|
3024
|
+
let g = null;
|
|
3025
|
+
const y = ea(f);
|
|
3026
|
+
for (me(X.beforeSanitizeShadowDOM, f, null); g = y.nextNode(); )
|
|
3027
|
+
me(X.uponSanitizeShadowNode, g, null), ra(g), na(g), g.content instanceof de && w(g.content);
|
|
2960
3028
|
me(X.afterSanitizeShadowDOM, f, null);
|
|
2961
3029
|
};
|
|
2962
|
-
return
|
|
2963
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
2964
|
-
if (
|
|
2965
|
-
if (typeof
|
|
2966
|
-
if (
|
|
3030
|
+
return S.sanitize = function(w) {
|
|
3031
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = null, y = null, A = null, G = null;
|
|
3032
|
+
if (Xt = !w, Xt && (w = "<!-->"), typeof w != "string" && !ta(w))
|
|
3033
|
+
if (typeof w.toString == "function") {
|
|
3034
|
+
if (w = w.toString(), typeof w != "string")
|
|
2967
3035
|
throw qe("dirty is not a string, aborting");
|
|
2968
3036
|
} else
|
|
2969
3037
|
throw qe("toString is not a function");
|
|
2970
|
-
if (!
|
|
2971
|
-
return
|
|
2972
|
-
if (qt || Zt(f),
|
|
2973
|
-
if (
|
|
2974
|
-
const
|
|
2975
|
-
if (!U[
|
|
3038
|
+
if (!S.isSupported)
|
|
3039
|
+
return w;
|
|
3040
|
+
if (qt || Zt(f), S.removed = [], typeof w == "string" && (et = !1), et) {
|
|
3041
|
+
if (w.nodeName) {
|
|
3042
|
+
const fe = z(w.nodeName);
|
|
3043
|
+
if (!U[fe] || Ze[fe])
|
|
2976
3044
|
throw qe("root node is forbidden and cannot be sanitized in-place");
|
|
2977
3045
|
}
|
|
2978
|
-
} else if (
|
|
2979
|
-
|
|
3046
|
+
} else if (w instanceof Ut)
|
|
3047
|
+
g = Zr("<!---->"), y = g.ownerDocument.importNode(w, !0), y.nodeType === Qe.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? g = y : g.appendChild(y);
|
|
2980
3048
|
else {
|
|
2981
|
-
if (!Oe && !Le && !
|
|
2982
|
-
|
|
2983
|
-
return K && dt ? K.createHTML(
|
|
2984
|
-
if (
|
|
3049
|
+
if (!Oe && !Le && !Te && // eslint-disable-next-line unicorn/prefer-includes
|
|
3050
|
+
w.indexOf("<") === -1)
|
|
3051
|
+
return K && dt ? K.createHTML(w) : w;
|
|
3052
|
+
if (g = Zr(w), !g)
|
|
2985
3053
|
return Oe ? null : dt ? Je : "";
|
|
2986
3054
|
}
|
|
2987
|
-
|
|
2988
|
-
const
|
|
2989
|
-
for (;
|
|
2990
|
-
ra(
|
|
3055
|
+
g && Yt && he(g.firstChild);
|
|
3056
|
+
const j = ea(et ? w : g);
|
|
3057
|
+
for (; A = j.nextNode(); )
|
|
3058
|
+
ra(A), na(A), A.content instanceof de && xn(A.content);
|
|
2991
3059
|
if (et)
|
|
2992
|
-
return
|
|
3060
|
+
return w;
|
|
2993
3061
|
if (Oe) {
|
|
2994
3062
|
if (ft)
|
|
2995
|
-
for (G = pn.call(
|
|
2996
|
-
G.appendChild(
|
|
3063
|
+
for (G = pn.call(g.ownerDocument); g.firstChild; )
|
|
3064
|
+
G.appendChild(g.firstChild);
|
|
2997
3065
|
else
|
|
2998
|
-
G =
|
|
2999
|
-
return (
|
|
3066
|
+
G = g;
|
|
3067
|
+
return (B.shadowroot || B.shadowrootmode) && (G = gn.call(T, G, !0)), G;
|
|
3000
3068
|
}
|
|
3001
|
-
let
|
|
3002
|
-
return
|
|
3003
|
-
` +
|
|
3004
|
-
|
|
3005
|
-
}), K && dt ? K.createHTML(
|
|
3006
|
-
},
|
|
3007
|
-
let
|
|
3008
|
-
Zt(
|
|
3009
|
-
},
|
|
3069
|
+
let te = Te ? g.outerHTML : g.innerHTML;
|
|
3070
|
+
return Te && U["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && Y(Ir, g.ownerDocument.doctype.name) && (te = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
|
|
3071
|
+
` + te), Le && m([Ht, Bt, jt], (fe) => {
|
|
3072
|
+
te = Ve(te, fe, " ");
|
|
3073
|
+
}), K && dt ? K.createHTML(te) : te;
|
|
3074
|
+
}, S.setConfig = function() {
|
|
3075
|
+
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3076
|
+
Zt(w), qt = !0;
|
|
3077
|
+
}, S.clearConfig = function() {
|
|
3010
3078
|
Ue = null, qt = !1;
|
|
3011
|
-
},
|
|
3079
|
+
}, S.isValidAttribute = function(w, f, g) {
|
|
3012
3080
|
Ue || Zt({});
|
|
3013
|
-
const
|
|
3014
|
-
return aa(
|
|
3015
|
-
},
|
|
3016
|
-
typeof f == "function" &&
|
|
3017
|
-
},
|
|
3081
|
+
const y = z(w), A = z(f);
|
|
3082
|
+
return aa(y, A, g);
|
|
3083
|
+
}, S.addHook = function(w, f) {
|
|
3084
|
+
typeof f == "function" && $(X[w], f);
|
|
3085
|
+
}, S.removeHook = function(w, f) {
|
|
3018
3086
|
if (f !== void 0) {
|
|
3019
|
-
const
|
|
3020
|
-
return
|
|
3087
|
+
const g = v(X[w], f);
|
|
3088
|
+
return g === -1 ? void 0 : H(X[w], g, 1)[0];
|
|
3021
3089
|
}
|
|
3022
|
-
return
|
|
3023
|
-
},
|
|
3024
|
-
X[
|
|
3025
|
-
},
|
|
3090
|
+
return b(X[w]);
|
|
3091
|
+
}, S.removeHooks = function(w) {
|
|
3092
|
+
X[w] = [];
|
|
3093
|
+
}, S.removeAllHooks = function() {
|
|
3026
3094
|
X = Lr();
|
|
3027
|
-
},
|
|
3095
|
+
}, S;
|
|
3028
3096
|
}
|
|
3029
3097
|
var sn = Or();
|
|
3030
3098
|
return sn;
|
|
@@ -3037,7 +3105,7 @@ let Mi = (e = 21) => {
|
|
|
3037
3105
|
t += Ii[r[e] & 63];
|
|
3038
3106
|
return t;
|
|
3039
3107
|
};
|
|
3040
|
-
const Li = /* @__PURE__ */
|
|
3108
|
+
const Li = /* @__PURE__ */ N(class extends D {
|
|
3041
3109
|
constructor() {
|
|
3042
3110
|
super();
|
|
3043
3111
|
h(this, "adSource", "Custom");
|
|
@@ -3050,21 +3118,15 @@ const Li = /* @__PURE__ */ D(class extends F {
|
|
|
3050
3118
|
this.__registerHost();
|
|
3051
3119
|
}
|
|
3052
3120
|
connectedCallback() {
|
|
3053
|
-
var a
|
|
3054
|
-
const r =
|
|
3055
|
-
|
|
3056
|
-
this.searchTerm =
|
|
3057
|
-
}), (
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
name: "ad_container_rendered",
|
|
3063
|
-
data: {
|
|
3064
|
-
adContainerId: this.adContainerId,
|
|
3065
|
-
adSource: this.adSource,
|
|
3066
|
-
searchTerm: this.searchTerm
|
|
3067
|
-
}
|
|
3121
|
+
var a;
|
|
3122
|
+
const r = _.getState();
|
|
3123
|
+
this.core = r.core, this.searchTerm = r.searchTerm, this.unsubscribe = _.subscribe((n) => {
|
|
3124
|
+
this.searchTerm = n.searchTerm;
|
|
3125
|
+
}), (a = this.core) == null || a.handleAdContainerRendered({
|
|
3126
|
+
adClientResponseItem: this.adClientResponseItem,
|
|
3127
|
+
adContainerId: this.adContainerId,
|
|
3128
|
+
adSource: this.adSource,
|
|
3129
|
+
searchTerm: this.searchTerm
|
|
3068
3130
|
});
|
|
3069
3131
|
}
|
|
3070
3132
|
disconnectedCallback() {
|
|
@@ -3085,7 +3147,9 @@ const Li = /* @__PURE__ */ D(class extends F {
|
|
|
3085
3147
|
})), d("div", { class: "searchcraft-custom-ad", id: a, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: Ai.sanitize(n) });
|
|
3086
3148
|
}
|
|
3087
3149
|
renderNativoAd() {
|
|
3088
|
-
|
|
3150
|
+
var a;
|
|
3151
|
+
const r = ((a = this.core) == null ? void 0 : a.config.nativoAdClassName) || "ntv-item";
|
|
3152
|
+
return d("div", { class: r });
|
|
3089
3153
|
}
|
|
3090
3154
|
render() {
|
|
3091
3155
|
switch (this.adSource) {
|
|
@@ -3116,7 +3180,7 @@ function It() {
|
|
|
3116
3180
|
});
|
|
3117
3181
|
}
|
|
3118
3182
|
const Oi = It;
|
|
3119
|
-
function
|
|
3183
|
+
function ie(e, t) {
|
|
3120
3184
|
if (e && t)
|
|
3121
3185
|
return t.fieldNames.map((r) => {
|
|
3122
3186
|
let a = e[r.fieldName];
|
|
@@ -3152,10 +3216,10 @@ function sr(e) {
|
|
|
3152
3216
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
3153
3217
|
}
|
|
3154
3218
|
function Fi(e) {
|
|
3155
|
-
const t = /* @__PURE__ */ new Date(), r = new Date(e), a = Math.floor((t.getTime() - r.getTime()) / 1e3), n = Math.floor(a / 60), o = Math.floor(n / 60), s = Math.floor(o / 24),
|
|
3156
|
-
return n < 60 ? `${n}m ago` : o < 24 ? `${o}h ago` : s < 365 ? `${s}d ago` : `${
|
|
3219
|
+
const t = /* @__PURE__ */ new Date(), r = new Date(e), a = Math.floor((t.getTime() - r.getTime()) / 1e3), n = Math.floor(a / 60), o = Math.floor(n / 60), s = Math.floor(o / 24), l = Math.floor(s / 365);
|
|
3220
|
+
return n < 60 ? `${n}m ago` : o < 24 ? `${o}h ago` : s < 365 ? `${s}d ago` : `${l}y ago`;
|
|
3157
3221
|
}
|
|
3158
|
-
const Di = /* @__PURE__ */
|
|
3222
|
+
const Di = /* @__PURE__ */ N(class extends D {
|
|
3159
3223
|
constructor() {
|
|
3160
3224
|
super();
|
|
3161
3225
|
h(this, "item");
|
|
@@ -3197,7 +3261,7 @@ const Di = /* @__PURE__ */ D(class extends F {
|
|
|
3197
3261
|
h(this, "containerHref");
|
|
3198
3262
|
h(this, "imageSrc");
|
|
3199
3263
|
h(this, "imageAlt");
|
|
3200
|
-
h(this, "searchcraftStore",
|
|
3264
|
+
h(this, "searchcraftStore", _.getState());
|
|
3201
3265
|
h(this, "handleLinkClick", () => {
|
|
3202
3266
|
var a;
|
|
3203
3267
|
const r = this.searchcraftStore.getSearchcraftInstance();
|
|
@@ -3225,8 +3289,8 @@ const Di = /* @__PURE__ */ D(class extends F {
|
|
|
3225
3289
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
3226
3290
|
}
|
|
3227
3291
|
mapValuesFromDocument(r) {
|
|
3228
|
-
var a, n, o, s,
|
|
3229
|
-
this.titleContent =
|
|
3292
|
+
var a, n, o, s, l, u, c;
|
|
3293
|
+
this.titleContent = ie(r, (a = this.searchResultMappings) == null ? void 0 : a.title), this.subtitleContent = ie(r, (n = this.searchResultMappings) == null ? void 0 : n.subtitle), this.bodyContent = ie(r, (o = this.searchResultMappings) == null ? void 0 : o.body), this.containerHref = ie(r, (s = this.searchResultMappings) == null ? void 0 : s.containerHref), this.buttonHref = ie(r, (l = this.searchResultMappings) == null ? void 0 : l.buttonHref), this.imageSrc = ie(r, (u = this.searchResultMappings) == null ? void 0 : u.imageSource), this.footerContent = ie(r, (c = this.searchResultMappings) == null ? void 0 : c.footer);
|
|
3230
3294
|
}
|
|
3231
3295
|
render() {
|
|
3232
3296
|
const r = this.parseStyles(), a = this.imageSrc && d("img", { alt: this.imageAlt, class: "searchcraft-search-result-image", src: this.imageSrc, style: r.image || {} }), n = d(br, null, this.imageSrc && this.imagePlacement === "left" && a, d("div", { class: "searchcraft-base-search-result-content-container" }, this.titleContent && d("h2", { class: "searchcraft-base-search-result-title", style: r.title || {} }, this.titleContent), this.subtitleContent && d("h3", { class: "searchcraft-base-search-result-subtitle", style: r.subtitle || {} }, this.subtitleContent), this.bodyContent && d("p", { class: "searchcraft-base-search-result-body-content", style: r.primaryContent || {} }, this.bodyContent), this.footerContent && d("p", { class: "searchcraft-base-search-result-footer-content", style: r.secondaryContent || {} }, this.footerContent), this.buttonHref && !this.containerHref && this.buttonLabel && d("a", { class: "searchcraft-search-result-button", href: this.buttonHref, style: r.button || {}, target: this.buttonTarget, rel: this.buttonRel }, this.buttonLabel)), this.imageSrc && this.imagePlacement === "right" && a);
|
|
@@ -3280,7 +3344,7 @@ function Ui(e) {
|
|
|
3280
3344
|
return console.error("Error serializing styles:", t), "{}";
|
|
3281
3345
|
}
|
|
3282
3346
|
}
|
|
3283
|
-
const zi = /* @__PURE__ */
|
|
3347
|
+
const zi = /* @__PURE__ */ N(class extends D {
|
|
3284
3348
|
constructor() {
|
|
3285
3349
|
super();
|
|
3286
3350
|
/**
|
|
@@ -3306,7 +3370,7 @@ function Mt() {
|
|
|
3306
3370
|
}
|
|
3307
3371
|
});
|
|
3308
3372
|
}
|
|
3309
|
-
const ds = /* @__PURE__ */
|
|
3373
|
+
const ds = /* @__PURE__ */ N(class extends D {
|
|
3310
3374
|
constructor() {
|
|
3311
3375
|
super();
|
|
3312
3376
|
/**
|
|
@@ -3346,7 +3410,7 @@ const ds = /* @__PURE__ */ D(class extends F {
|
|
|
3346
3410
|
h(this, "adClientResponseItems", []);
|
|
3347
3411
|
h(this, "searchResultsPerPage");
|
|
3348
3412
|
h(this, "searchResultsPage");
|
|
3349
|
-
h(this, "isSearchInProgress", !
|
|
3413
|
+
h(this, "isSearchInProgress", !0);
|
|
3350
3414
|
h(this, "config");
|
|
3351
3415
|
h(this, "unsubscribe", () => {
|
|
3352
3416
|
});
|
|
@@ -3358,9 +3422,9 @@ const ds = /* @__PURE__ */ D(class extends F {
|
|
|
3358
3422
|
}
|
|
3359
3423
|
componentDidLoad() {
|
|
3360
3424
|
var a;
|
|
3361
|
-
this.unsubscribe =
|
|
3362
|
-
const r =
|
|
3363
|
-
this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (a = r.core) == null ? void 0 : a.config;
|
|
3425
|
+
this.unsubscribe = _.subscribe((n) => this.handleStateChange(n));
|
|
3426
|
+
const r = _.getState();
|
|
3427
|
+
this.handleStateChange(r), this.searchClientResponseItems = r.searchClientResponseItems, this.searchTerm = r.searchTerm, this.config = (a = r.core) == null ? void 0 : a.config;
|
|
3364
3428
|
}
|
|
3365
3429
|
disconnectedCallback() {
|
|
3366
3430
|
var r;
|
|
@@ -3381,18 +3445,33 @@ const ds = /* @__PURE__ */ D(class extends F {
|
|
|
3381
3445
|
return d("div", { class: "searchcraft-search-results-container" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((n) => d("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, key: n.id })), (a = this.searchClientResponseItems) == null ? void 0 : a.map((n, o) => d("searchcraft-base-search-result", { key: n.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + o, searchResultMappings: this.searchResultMappings, item: n })));
|
|
3382
3446
|
}
|
|
3383
3447
|
renderWithCustomAds() {
|
|
3384
|
-
var u,
|
|
3385
|
-
const r = [], a = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, n = ((
|
|
3386
|
-
for (let
|
|
3387
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
3388
|
-
|
|
3389
|
-
if (a &&
|
|
3390
|
-
for (let
|
|
3391
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
3392
|
-
r.push(d("searchcraft-base-search-result", { key:
|
|
3448
|
+
var u, c, i, p;
|
|
3449
|
+
const r = [], a = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, n = ((c = this.config) == null ? void 0 : c.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, s = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, l = this.searchClientResponseItems || [];
|
|
3450
|
+
for (let m = 0; m < o; m++)
|
|
3451
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
3452
|
+
l.forEach((m, v) => {
|
|
3453
|
+
if (a && v % a === 0 && v + a < l.length && v >= a)
|
|
3454
|
+
for (let b = 0; b < n; b++)
|
|
3455
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m.id}-ad-${b}` }));
|
|
3456
|
+
r.push(d("searchcraft-base-search-result", { key: m.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + v, searchResultMappings: this.searchResultMappings, item: m }));
|
|
3457
|
+
});
|
|
3458
|
+
for (let m = 0; m < s; m++)
|
|
3459
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
3460
|
+
return d("div", { class: "searchcraft-search-results-container" }, r);
|
|
3461
|
+
}
|
|
3462
|
+
renderWithNativoAds() {
|
|
3463
|
+
var c, i, p, m, v;
|
|
3464
|
+
const r = [], a = ((c = this.config) == null ? void 0 : c.nativoAdInterstialStartIndex) || 0, n = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, s = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, l = ((v = this.config) == null ? void 0 : v.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
3465
|
+
for (let b = 0; b < s; b++)
|
|
3466
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${b}-ad` }));
|
|
3467
|
+
u.forEach((b, $) => {
|
|
3468
|
+
if (n && ($ + a) % n === 0 && $ + n < u.length && $ >= n)
|
|
3469
|
+
for (let H = 0; H < o; H++)
|
|
3470
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${b.id}-ad-${H}` }));
|
|
3471
|
+
r.push(d("searchcraft-base-search-result", { key: b.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + $, searchResultMappings: this.searchResultMappings, item: b }));
|
|
3393
3472
|
});
|
|
3394
|
-
for (let
|
|
3395
|
-
r.push(d("searchcraft-ad", { adSource: "
|
|
3473
|
+
for (let b = 0; b < l; b++)
|
|
3474
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${b}-ad` }));
|
|
3396
3475
|
return d("div", { class: "searchcraft-search-results-container" }, r);
|
|
3397
3476
|
}
|
|
3398
3477
|
renderWithNoAds() {
|
|
@@ -3410,6 +3489,8 @@ const ds = /* @__PURE__ */ D(class extends F {
|
|
|
3410
3489
|
return this.renderWithADMAds();
|
|
3411
3490
|
case "Custom":
|
|
3412
3491
|
return this.renderWithCustomAds();
|
|
3492
|
+
case "Nativo":
|
|
3493
|
+
return this.renderWithNativoAds();
|
|
3413
3494
|
default:
|
|
3414
3495
|
return this.renderWithNoAds();
|
|
3415
3496
|
}
|
|
@@ -3463,8 +3544,8 @@ var ms = { exports: {} };
|
|
|
3463
3544
|
var t = {}.hasOwnProperty;
|
|
3464
3545
|
function r() {
|
|
3465
3546
|
for (var o = "", s = 0; s < arguments.length; s++) {
|
|
3466
|
-
var
|
|
3467
|
-
|
|
3547
|
+
var l = arguments[s];
|
|
3548
|
+
l && (o = n(o, a(l)));
|
|
3468
3549
|
}
|
|
3469
3550
|
return o;
|
|
3470
3551
|
}
|
|
@@ -3478,8 +3559,8 @@ var ms = { exports: {} };
|
|
|
3478
3559
|
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
3479
3560
|
return o.toString();
|
|
3480
3561
|
var s = "";
|
|
3481
|
-
for (var
|
|
3482
|
-
t.call(o,
|
|
3562
|
+
for (var l in o)
|
|
3563
|
+
t.call(o, l) && o[l] && (s = n(s, l));
|
|
3483
3564
|
return s;
|
|
3484
3565
|
}
|
|
3485
3566
|
function n(o, s) {
|
|
@@ -3488,7 +3569,7 @@ var ms = { exports: {} };
|
|
|
3488
3569
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
3489
3570
|
})();
|
|
3490
3571
|
})(ms);
|
|
3491
|
-
const
|
|
3572
|
+
const I = ms.exports, ji = /* @__PURE__ */ N(class extends D {
|
|
3492
3573
|
constructor() {
|
|
3493
3574
|
super();
|
|
3494
3575
|
/**
|
|
@@ -3529,7 +3610,7 @@ const A = ms.exports, ji = /* @__PURE__ */ D(class extends F {
|
|
|
3529
3610
|
this.__registerHost(), this.buttonClick = Re(this, "buttonClick");
|
|
3530
3611
|
}
|
|
3531
3612
|
render() {
|
|
3532
|
-
return d("button", { key: "ff883b930d03da6cbfb40badd3be1de0a873f853", "aria-label": this.label, class:
|
|
3613
|
+
return d("button", { key: "ff883b930d03da6cbfb40badd3be1de0a873f853", "aria-label": this.label, class: I("searchcraft-button", {
|
|
3533
3614
|
"searchcraft-button-primary": this.hierarchy === "primary",
|
|
3534
3615
|
"searchcraft-button-tertiary": this.hierarchy === "tertiary",
|
|
3535
3616
|
"searchcraft-button-disabled": this.disabled
|
|
@@ -3555,7 +3636,7 @@ function Lt() {
|
|
|
3555
3636
|
}
|
|
3556
3637
|
});
|
|
3557
3638
|
}
|
|
3558
|
-
const
|
|
3639
|
+
const Wi = Lt, Gi = Mt;
|
|
3559
3640
|
function gs(e, t) {
|
|
3560
3641
|
const r = { ...e };
|
|
3561
3642
|
for (const a in t)
|
|
@@ -3589,13 +3670,13 @@ function qi(e) {
|
|
|
3589
3670
|
return;
|
|
3590
3671
|
const n = a.path.substring(1).split("/");
|
|
3591
3672
|
let o = t, s = "";
|
|
3592
|
-
n.forEach((
|
|
3593
|
-
const
|
|
3594
|
-
o.children[
|
|
3673
|
+
n.forEach((l, u) => {
|
|
3674
|
+
const c = `${s}/${l}`;
|
|
3675
|
+
o.children[c] || (o.children[c] = {
|
|
3595
3676
|
count: 0,
|
|
3596
|
-
path:
|
|
3677
|
+
path: c,
|
|
3597
3678
|
children: {}
|
|
3598
|
-
}), u === n.length - 1 && (o.children[
|
|
3679
|
+
}), u === n.length - 1 && (o.children[c].count = a.count), s = c, o = o.children[c];
|
|
3599
3680
|
});
|
|
3600
3681
|
}), t;
|
|
3601
3682
|
}
|
|
@@ -3611,7 +3692,7 @@ function Yi(e, t) {
|
|
|
3611
3692
|
const r = Object.keys(e), a = Object.keys(t), n = new Set(a.filter((s) => s.split("/").length > 2).map((s) => s.substring(0, s.lastIndexOf("/"))));
|
|
3612
3693
|
return Object.fromEntries(r.filter((s) => !n.has(s.substring(0, s.lastIndexOf("/")))).map((s) => [s, e[s]]));
|
|
3613
3694
|
}
|
|
3614
|
-
function
|
|
3695
|
+
function Qi(e, t, r) {
|
|
3615
3696
|
const a = t[e], n = r[e], o = {
|
|
3616
3697
|
count: 0,
|
|
3617
3698
|
path: "/",
|
|
@@ -3620,12 +3701,12 @@ function Ki(e, t, r) {
|
|
|
3620
3701
|
count: 0,
|
|
3621
3702
|
path: "/",
|
|
3622
3703
|
children: n
|
|
3623
|
-
},
|
|
3704
|
+
}, l = Ia(o), u = Ia(s), c = Yi(l, u), i = gs(c, u), p = qi(i), m = bs(p);
|
|
3624
3705
|
return {
|
|
3625
|
-
[e]:
|
|
3706
|
+
[e]: m.children
|
|
3626
3707
|
};
|
|
3627
3708
|
}
|
|
3628
|
-
const
|
|
3709
|
+
const Ki = /* @__PURE__ */ N(class extends D {
|
|
3629
3710
|
constructor() {
|
|
3630
3711
|
super();
|
|
3631
3712
|
/**
|
|
@@ -3645,14 +3726,14 @@ const Xi = /* @__PURE__ */ D(class extends F {
|
|
|
3645
3726
|
h(this, "lastSearchMode");
|
|
3646
3727
|
h(this, "lastSortType");
|
|
3647
3728
|
h(this, "unsubscribe");
|
|
3648
|
-
h(this, "searchStore",
|
|
3729
|
+
h(this, "searchStore", _.getState());
|
|
3649
3730
|
h(this, "formatLabel", (r) => {
|
|
3650
3731
|
const a = r.path.replace(/^\//, ""), n = r.count;
|
|
3651
3732
|
return `${a.replace(/-/g, " ").replace(/\b\w/g, (o) => o.toUpperCase())} (${n})`;
|
|
3652
3733
|
});
|
|
3653
3734
|
h(this, "formatSubLabel", (r, a) => {
|
|
3654
3735
|
const o = r.path.substring(a.path.length).replace(/^\//, ""), s = r.count;
|
|
3655
|
-
return `${o.replace(/-/g, " ").replace(/\b\w/g, (
|
|
3736
|
+
return `${o.replace(/-/g, " ").replace(/\b\w/g, (l) => l.toUpperCase())} (${s})`;
|
|
3656
3737
|
});
|
|
3657
3738
|
this.__registerHost(), this.facetSelectionUpdated = Re(this, "facetSelectionUpdated");
|
|
3658
3739
|
}
|
|
@@ -3662,13 +3743,13 @@ const Xi = /* @__PURE__ */ D(class extends F {
|
|
|
3662
3743
|
if ((r.searchTerm !== this.lastSearchTerm || r.searchMode !== this.lastSearchMode || r.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), n !== this.lastTimeTaken && a) {
|
|
3663
3744
|
this.facetRoot = void 0;
|
|
3664
3745
|
const o = a.find((s) => this.fieldName === Object.keys(s)[0]);
|
|
3665
|
-
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot =
|
|
3746
|
+
this.hasNewSearchTerm ? (this.baseFacetRoot = o, this.facetRoot = o, this.hasNewSearchTerm = !1) : this.baseFacetRoot && o && (this.facetRoot = Qi(this.fieldName, this.baseFacetRoot, o));
|
|
3666
3747
|
}
|
|
3667
3748
|
this.lastSearchTerm = r.searchTerm, this.lastSearchMode = r.searchMode, this.lastSortType = r.sortType, this.lastTimeTaken = n;
|
|
3668
3749
|
}
|
|
3669
3750
|
}
|
|
3670
3751
|
connectedCallback() {
|
|
3671
|
-
this.handleStateUpdate(this.searchStore), this.unsubscribe =
|
|
3752
|
+
this.handleStateUpdate(this.searchStore), this.unsubscribe = _.subscribe((r) => {
|
|
3672
3753
|
this.handleStateUpdate(r);
|
|
3673
3754
|
});
|
|
3674
3755
|
}
|
|
@@ -3684,10 +3765,10 @@ const Xi = /* @__PURE__ */ D(class extends F {
|
|
|
3684
3765
|
[r]: !0
|
|
3685
3766
|
};
|
|
3686
3767
|
else {
|
|
3687
|
-
const
|
|
3688
|
-
this.selectedPaths =
|
|
3768
|
+
const l = Object.keys(this.selectedPaths).filter((u) => !u.includes(r));
|
|
3769
|
+
this.selectedPaths = l.reduce((u, c) => (u[c] = !0, u), {});
|
|
3689
3770
|
}
|
|
3690
|
-
const n = Object.keys(this.selectedPaths).filter((
|
|
3771
|
+
const n = Object.keys(this.selectedPaths).filter((l) => this.selectedPaths[l]), o = Vi(n);
|
|
3691
3772
|
(s = this.facetSelectionUpdated) == null || s.emit({ paths: o });
|
|
3692
3773
|
}
|
|
3693
3774
|
render() {
|
|
@@ -3695,14 +3776,14 @@ const Xi = /* @__PURE__ */ D(class extends F {
|
|
|
3695
3776
|
if (!this.fieldName)
|
|
3696
3777
|
return;
|
|
3697
3778
|
const r = (a = this.facetRoot) == null ? void 0 : a[this.fieldName];
|
|
3698
|
-
return d("div", { class:
|
|
3779
|
+
return d("div", { class: I("filtersListContainer", "searchcraft-filters-list-container") }, !r && d("p", { class: "searchcraft-facet-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((n) => {
|
|
3699
3780
|
var s;
|
|
3700
|
-
const o = n.children ? (s = n.children) == null ? void 0 : s.some((
|
|
3701
|
-
return d("div", { key: n.path, class:
|
|
3781
|
+
const o = n.children ? (s = n.children) == null ? void 0 : s.some((l) => this.selectedPaths[l.path]) : !1;
|
|
3782
|
+
return d("div", { key: n.path, class: I("searchcraft-filters-list-item") }, d("label", { class: I("filterCheckboxLabel", "searchcraft-filters-list-checkbox-label") }, d("input", { checked: this.selectedPaths[n.path], onChange: (l) => this.handleCheckboxChange(n.path), type: "checkbox" }), o ? d("div", { class: I("dashContainer", "searchcraft-filter-list-dash-container") }, d("svg", { width: "14", height: "3", viewBox: "0 0 14 3", fill: "none" }, d("title", null, "Checkbox Dash"), d("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : d("div", { class: I("checkContainer", "searchcraft-filter-list-check-container") }, d("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, d("title", null, "Checkbox Check"), d("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.formatLabel(n)), n.children && n.children.length > 0 && d(br, null, n.children.map((l) => d("label", { key: l.path, class: I("childFilterCheckboxLabel", "searchcraft-child-filter-checkbox-label"), style: {
|
|
3702
3783
|
display: this.selectedPaths[n.path] ? "flex" : "none"
|
|
3703
|
-
} }, d("input", { checked: this.selectedPaths[
|
|
3704
|
-
this.handleCheckboxChange(
|
|
3705
|
-
}, type: "checkbox" }), d("div", { class:
|
|
3784
|
+
} }, d("input", { checked: this.selectedPaths[l.path], onChange: (u) => {
|
|
3785
|
+
this.handleCheckboxChange(l.path);
|
|
3786
|
+
}, type: "checkbox" }), d("div", { class: I("checkContainer", "searchcraft-filter-list-check-container") }, d("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, d("title", null, "Checkbox Check"), d("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.formatSubLabel(l, n)))));
|
|
3706
3787
|
}));
|
|
3707
3788
|
}
|
|
3708
3789
|
}, [0, "searchcraft-facet-list", {
|
|
@@ -3723,12 +3804,12 @@ function vs() {
|
|
|
3723
3804
|
["searchcraft-facet-list"].forEach((t) => {
|
|
3724
3805
|
switch (t) {
|
|
3725
3806
|
case "searchcraft-facet-list":
|
|
3726
|
-
customElements.get(t) || customElements.define(t,
|
|
3807
|
+
customElements.get(t) || customElements.define(t, Ki);
|
|
3727
3808
|
break;
|
|
3728
3809
|
}
|
|
3729
3810
|
});
|
|
3730
3811
|
}
|
|
3731
|
-
const
|
|
3812
|
+
const Xi = vs, Ji = /* @__PURE__ */ N(class extends D {
|
|
3732
3813
|
constructor() {
|
|
3733
3814
|
super();
|
|
3734
3815
|
/**
|
|
@@ -3773,11 +3854,11 @@ const Qi = vs, Ji = /* @__PURE__ */ D(class extends F {
|
|
|
3773
3854
|
this.startValue = this.min, this.endValue = this.max;
|
|
3774
3855
|
}
|
|
3775
3856
|
render() {
|
|
3776
|
-
const r = this.min, a = this.max, n = (this.startValue - r) / (a - r) * 100, o = (this.endValue - r) / (a - r) * 100, s = this.dataType === "number" ? this.startValue : new Date(this.startValue).getFullYear(),
|
|
3857
|
+
const r = this.min, a = this.max, n = (this.startValue - r) / (a - r) * 100, o = (this.endValue - r) / (a - r) * 100, s = this.dataType === "number" ? this.startValue : new Date(this.startValue).getFullYear(), l = this.dataType === "number" ? this.endValue : new Date(this.endValue).getFullYear();
|
|
3777
3858
|
return d("div", { key: "ec4a36e1ce6534b7c077114086d759e0b1e7a24e", class: "searchcraft-slider-container" }, d("div", { key: "35487cbeaeeb23052631804704645ca929340f70", class: "searchcraft-slider-range-container" }, d("div", { key: "186e699def8e7a6e58e8ad5f04953ac1c6584344", class: "searchcraft-slider-active-range", style: {
|
|
3778
3859
|
left: `${n}%`,
|
|
3779
3860
|
width: `${o - n}%`
|
|
3780
|
-
} }), d("input", { key: "97638e2a1471888c2be47f7526e9dd98fea58683", class:
|
|
3861
|
+
} }), d("input", { key: "97638e2a1471888c2be47f7526e9dd98fea58683", class: I("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 }), d("input", { key: "db2abded80b606d17bde1677e4acc09a85e6e20e", class: I("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 })), d("div", { key: "83954b6955a872a17377d506d2d8458059acac03", class: "searchcraft-slider-label-container" }, d("span", { key: "b5315b4438385ecf5df3f76579fdf102b6a8c39c", class: "searchcraft-slider-label" }, s), d("span", { key: "875094ac7ee69e04c3a16407388dd27f167b3c8f", class: "searchcraft-slider-label" }, l)));
|
|
3781
3862
|
}
|
|
3782
3863
|
}, [0, "searchcraft-slider", {
|
|
3783
3864
|
max: [2],
|
|
@@ -3799,7 +3880,7 @@ function ys() {
|
|
|
3799
3880
|
}
|
|
3800
3881
|
});
|
|
3801
3882
|
}
|
|
3802
|
-
const Zi = /* @__PURE__ */
|
|
3883
|
+
const Zi = /* @__PURE__ */ N(class extends D {
|
|
3803
3884
|
constructor() {
|
|
3804
3885
|
super();
|
|
3805
3886
|
/**
|
|
@@ -3824,7 +3905,7 @@ const Zi = /* @__PURE__ */ D(class extends F {
|
|
|
3824
3905
|
this.__registerHost(), this.toggleUpdated = Re(this, "toggleUpdated");
|
|
3825
3906
|
}
|
|
3826
3907
|
connectedCallback() {
|
|
3827
|
-
this.unsubscribe =
|
|
3908
|
+
this.unsubscribe = _.subscribe((r) => {
|
|
3828
3909
|
r.searchTerm !== this.lastSearchTerm && r.searchTerm.trim().length === 0 && (this.isActive = !1), this.lastSearchTerm = r.searchTerm;
|
|
3829
3910
|
});
|
|
3830
3911
|
}
|
|
@@ -3833,9 +3914,9 @@ const Zi = /* @__PURE__ */ D(class extends F {
|
|
|
3833
3914
|
(r = this.unsubscribe) == null || r.call(this);
|
|
3834
3915
|
}
|
|
3835
3916
|
render() {
|
|
3836
|
-
return d("div", { key: "25f3acd2b5dd6837182c8f07c092c54c35542c2f", class: "searchcraft-toggle-button-container" }, d("div", { key: "d2951f2673af55159ad6f39d381d272a3f9f872b" }, d("p", { key: "2468e261d46b454ce896b614ca2a076d27a31a8b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "1d9887dc12f30fb1982cf0d8a692ebfeca8edc1a", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "f51bb553d6b210233aa6ebfc4318aa521036d922", class:
|
|
3917
|
+
return d("div", { key: "25f3acd2b5dd6837182c8f07c092c54c35542c2f", class: "searchcraft-toggle-button-container" }, d("div", { key: "d2951f2673af55159ad6f39d381d272a3f9f872b" }, d("p", { key: "2468e261d46b454ce896b614ca2a076d27a31a8b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "1d9887dc12f30fb1982cf0d8a692ebfeca8edc1a", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "f51bb553d6b210233aa6ebfc4318aa521036d922", class: I("searchcraft-toggle-button-background", {
|
|
3837
3918
|
active: this.isActive
|
|
3838
|
-
}), onClick: this.handleToggle, type: "button" }, d("div", { key: "a34339f1bb5ab4742d897b01b61fe6c8c23e7e1e", class:
|
|
3919
|
+
}), onClick: this.handleToggle, type: "button" }, d("div", { key: "a34339f1bb5ab4742d897b01b61fe6c8c23e7e1e", class: I("searchcraft-toggle-button-handle", {
|
|
3839
3920
|
active: this.isActive
|
|
3840
3921
|
}) })));
|
|
3841
3922
|
}
|
|
@@ -3857,7 +3938,7 @@ function Ss() {
|
|
|
3857
3938
|
}
|
|
3858
3939
|
});
|
|
3859
3940
|
}
|
|
3860
|
-
const ws = /* @__PURE__ */
|
|
3941
|
+
const ws = /* @__PURE__ */ N(class extends D {
|
|
3861
3942
|
constructor() {
|
|
3862
3943
|
super();
|
|
3863
3944
|
/**
|
|
@@ -3866,11 +3947,11 @@ const ws = /* @__PURE__ */ D(class extends F {
|
|
|
3866
3947
|
h(this, "items", []);
|
|
3867
3948
|
h(this, "unsubscribe");
|
|
3868
3949
|
h(this, "lastSearchTerm");
|
|
3869
|
-
h(this, "searchStore",
|
|
3950
|
+
h(this, "searchStore", _.getState());
|
|
3870
3951
|
this.__registerHost();
|
|
3871
3952
|
}
|
|
3872
3953
|
componentDidLoad() {
|
|
3873
|
-
this.unsubscribe =
|
|
3954
|
+
this.unsubscribe = _.subscribe((r) => {
|
|
3874
3955
|
this.lastSearchTerm = r.searchTerm || "";
|
|
3875
3956
|
});
|
|
3876
3957
|
}
|
|
@@ -3911,8 +3992,8 @@ const ws = /* @__PURE__ */ D(class extends F {
|
|
|
3911
3992
|
switch (r.type) {
|
|
3912
3993
|
case "dateRange": {
|
|
3913
3994
|
const a = r, n = new Date(a.options.minDate).getTime(), o = new Date(a.options.maxDate).getTime(), s = hs(a.options.granularity);
|
|
3914
|
-
return d("div", { class: "searchcraft-filter-panel-section" }, d("p", { class: "searchcraft-filter-panel-label" }, r.label), d("searchcraft-slider", { min: n, max: o, granularity: s, dataType: "date", onRangeChanged: (
|
|
3915
|
-
this.handleDateRangeChanged(a.fieldName,
|
|
3995
|
+
return d("div", { class: "searchcraft-filter-panel-section" }, d("p", { class: "searchcraft-filter-panel-label" }, r.label), d("searchcraft-slider", { min: n, max: o, granularity: s, dataType: "date", onRangeChanged: (l) => {
|
|
3996
|
+
this.handleDateRangeChanged(a.fieldName, l.detail.startValue, l.detail.endValue);
|
|
3916
3997
|
} }));
|
|
3917
3998
|
}
|
|
3918
3999
|
case "numericRange": {
|
|
@@ -3967,7 +4048,7 @@ function ec() {
|
|
|
3967
4048
|
}
|
|
3968
4049
|
});
|
|
3969
4050
|
}
|
|
3970
|
-
const tc = ws, Es = ec, rc = /* @__PURE__ */
|
|
4051
|
+
const tc = ws, Es = ec, rc = /* @__PURE__ */ N(class extends D {
|
|
3971
4052
|
constructor() {
|
|
3972
4053
|
super();
|
|
3973
4054
|
/**
|
|
@@ -3978,13 +4059,13 @@ const tc = ws, Es = ec, rc = /* @__PURE__ */ D(class extends F {
|
|
|
3978
4059
|
this.__registerHost();
|
|
3979
4060
|
}
|
|
3980
4061
|
render() {
|
|
3981
|
-
return d("label", { key: "528396d4be9f22ff0c02d95d8bcea056576aed41", class:
|
|
4062
|
+
return d("label", { key: "528396d4be9f22ff0c02d95d8bcea056576aed41", class: I("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
|
|
3982
4063
|
}
|
|
3983
4064
|
}, [0, "searchcraft-input-label", {
|
|
3984
4065
|
inputLabelClassName: [1, "input-label-class-name"],
|
|
3985
4066
|
label: [1]
|
|
3986
4067
|
}]);
|
|
3987
|
-
function
|
|
4068
|
+
function kr() {
|
|
3988
4069
|
if (typeof customElements > "u")
|
|
3989
4070
|
return;
|
|
3990
4071
|
["searchcraft-input-label"].forEach((t) => {
|
|
@@ -3995,7 +4076,7 @@ function Pr() {
|
|
|
3995
4076
|
}
|
|
3996
4077
|
});
|
|
3997
4078
|
}
|
|
3998
|
-
const Rs = /* @__PURE__ */
|
|
4079
|
+
const Rs = /* @__PURE__ */ N(class extends D {
|
|
3999
4080
|
constructor() {
|
|
4000
4081
|
super();
|
|
4001
4082
|
/**
|
|
@@ -4022,10 +4103,6 @@ const Rs = /* @__PURE__ */ D(class extends F {
|
|
|
4022
4103
|
* The input element's placeholder value.
|
|
4023
4104
|
*/
|
|
4024
4105
|
h(this, "placeholderValue", "Enter Search");
|
|
4025
|
-
/**
|
|
4026
|
-
* The starting value of the input element.
|
|
4027
|
-
*/
|
|
4028
|
-
h(this, "searchTerm", "");
|
|
4029
4106
|
/**
|
|
4030
4107
|
* When the input becomes focused.
|
|
4031
4108
|
*/
|
|
@@ -4038,16 +4115,17 @@ const Rs = /* @__PURE__ */ D(class extends F {
|
|
|
4038
4115
|
* Event emitted when input initializes.
|
|
4039
4116
|
*/
|
|
4040
4117
|
h(this, "inputInit");
|
|
4041
|
-
h(this, "inputValue",
|
|
4118
|
+
h(this, "inputValue", "");
|
|
4119
|
+
h(this, "searchTerm", "");
|
|
4042
4120
|
h(this, "error", !1);
|
|
4043
4121
|
h(this, "core");
|
|
4044
|
-
h(this, "searchStore",
|
|
4122
|
+
h(this, "searchStore", _.getState());
|
|
4045
4123
|
h(this, "handleOnInput", (r) => {
|
|
4046
4124
|
const a = r.target;
|
|
4047
4125
|
this.inputValue = a.value, this.autoSearch && this.performSearch(a.value);
|
|
4048
4126
|
});
|
|
4049
4127
|
h(this, "performSearch", async (r) => {
|
|
4050
|
-
if (r !==
|
|
4128
|
+
if (r !== _.getState().searchTerm) {
|
|
4051
4129
|
this.searchTerm = r.trim(), this.error = !1, this.searchStore.setSearchTerm(this.searchTerm);
|
|
4052
4130
|
try {
|
|
4053
4131
|
await this.searchStore.search();
|
|
@@ -4075,22 +4153,22 @@ const Rs = /* @__PURE__ */ D(class extends F {
|
|
|
4075
4153
|
this.init();
|
|
4076
4154
|
}
|
|
4077
4155
|
render() {
|
|
4078
|
-
const r = ct(this.customStyles), a = this.inputValue.length > 0, n =
|
|
4156
|
+
const r = ct(this.customStyles), a = this.inputValue.length > 0, n = I("searchcraft-input-grid", {
|
|
4079
4157
|
"searchcraft-input-grid-buttonLeft": this.buttonPlacement === "left",
|
|
4080
4158
|
"searchcraft-input-grid-buttonRight": this.buttonPlacement === "right",
|
|
4081
4159
|
"searchcraft-input-grid-buttonNone": this.buttonPlacement === "none"
|
|
4082
4160
|
}), s = {
|
|
4083
4161
|
gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
|
|
4084
4162
|
};
|
|
4085
|
-
return d("form", { key: "
|
|
4086
|
-
var
|
|
4087
|
-
return (
|
|
4163
|
+
return d("form", { key: "f08b30d8688e110230c99dbdc0b08aaa259680d1", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, d("div", { key: "32e8cbea58acd0d1e8b14a3ca7363f648df052f1", class: n, style: s }, d("div", { key: "769484880d0228a5b865fad2c83e6537ae55686a", class: "searchcraft-input-button-wrapper" }, d("searchcraft-button", { key: "75902602813c266d77c038d106f5a033ff64c477", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && d("div", { key: "356356b1eac93b52f8622c9c2f414fe76b70e0fe", class: "searchcraft-input-label-wrapper" }, d("searchcraft-input-label", { key: "4c5a680712b8d26a6326dde48223317b690e7a30", label: this.inputLabel })), this.error && d("div", { key: "e2275fe0907d60e13ac3cb6b2a23e0872c475eb3", class: "searchcraft-input-error-wrapper" }, d("searchcraft-error-message", { key: "26e7ffbe8fe43f3f5340176e68cf7763d71c4eab", errorMessage: "Something went wrong." })), d("div", { key: "cfc0d53d4ec644fd453fe39b3091986d9abf2b49", class: "searchcraft-input-wrapper" }, d("input", { key: "44dcf30e32dcf4de2aeb5c64d445db468fde605b", autoComplete: "off", class: "searchcraft-input", onFocus: () => {
|
|
4164
|
+
var l;
|
|
4165
|
+
return (l = this.inputFocus) == null ? void 0 : l.emit();
|
|
4088
4166
|
}, onBlur: () => {
|
|
4089
|
-
var
|
|
4090
|
-
return (
|
|
4091
|
-
}, onInput: (
|
|
4092
|
-
this.handleOnInput(
|
|
4093
|
-
}, placeholder: this.placeholderValue, style: r, type: "text", value: this.inputValue }), d("div", { key: "
|
|
4167
|
+
var l;
|
|
4168
|
+
return (l = this.inputBlur) == null ? void 0 : l.emit();
|
|
4169
|
+
}, onInput: (l) => {
|
|
4170
|
+
this.handleOnInput(l);
|
|
4171
|
+
}, placeholder: this.placeholderValue, style: r, type: "text", value: this.inputValue }), d("div", { key: "a510ee45c5c1fcd8991220dcaed42bdbcef39b49", class: "searchcraft-input-search-icon-wrapper" }, d("svg", { key: "5dc9bc129a7f550f400aa23b09b38df7aa412821", class: "searchcraft-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, d("title", { key: "af9c2cb95db7d1f182d4312bccefa97ac95e06aa", id: "searchcraft-title" }, "Searchcraft Search Icon Light"), d("path", { key: "c2e8b250f1113670cb2435664a57725563d34efd", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), a && d("button", { key: "0630c1533ab1c9654e9e984a1194759dec2ab535", type: "button", class: "searchcraft-input-clear-button", onClick: this.handleClearInput }, d("svg", { key: "052abaa409746a98ee94e09e87e5345c05687dba", class: "searchcraft-input-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, d("title", { key: "795d7435b5cac2069063a6e6bf40868ddba76516", id: "icon-title" }, "Searchcraft Clear Input Icon Light"), d("path", { key: "29be529ce60d62136bde73baa2600f3664479c7f", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
|
|
4094
4172
|
}
|
|
4095
4173
|
static get watchers() {
|
|
4096
4174
|
return {
|
|
@@ -4104,14 +4182,14 @@ const Rs = /* @__PURE__ */ D(class extends F {
|
|
|
4104
4182
|
inputLabel: [1, "input-label"],
|
|
4105
4183
|
customStyles: [1, "custom-styles"],
|
|
4106
4184
|
placeholderValue: [1, "placeholder-value"],
|
|
4107
|
-
searchTerm: [1, "search-term"],
|
|
4108
4185
|
core: [16],
|
|
4109
4186
|
inputValue: [32],
|
|
4187
|
+
searchTerm: [32],
|
|
4110
4188
|
error: [32]
|
|
4111
4189
|
}, void 0, {
|
|
4112
4190
|
core: ["onCoreChange"]
|
|
4113
4191
|
}]);
|
|
4114
|
-
function
|
|
4192
|
+
function Cs() {
|
|
4115
4193
|
if (typeof customElements > "u")
|
|
4116
4194
|
return;
|
|
4117
4195
|
["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
|
|
@@ -4126,12 +4204,12 @@ function ks() {
|
|
|
4126
4204
|
customElements.get(t) || Mt();
|
|
4127
4205
|
break;
|
|
4128
4206
|
case "searchcraft-input-label":
|
|
4129
|
-
customElements.get(t) ||
|
|
4207
|
+
customElements.get(t) || kr();
|
|
4130
4208
|
break;
|
|
4131
4209
|
}
|
|
4132
4210
|
});
|
|
4133
4211
|
}
|
|
4134
|
-
const ac = Rs,
|
|
4212
|
+
const ac = Rs, ks = Cs, sc = kr, Ps = /* @__PURE__ */ N(class extends D {
|
|
4135
4213
|
constructor() {
|
|
4136
4214
|
super();
|
|
4137
4215
|
/**
|
|
@@ -4155,7 +4233,7 @@ const ac = Rs, Ps = ks, sc = Pr, Cs = /* @__PURE__ */ D(class extends F {
|
|
|
4155
4233
|
this.__registerHost();
|
|
4156
4234
|
}
|
|
4157
4235
|
componentDidLoad() {
|
|
4158
|
-
this.unsubscribe =
|
|
4236
|
+
this.unsubscribe = _.subscribe((r) => {
|
|
4159
4237
|
this.searchTerm = r.searchTerm, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsPage = r.searchResultsPage, this.searchResultsCount = r.searchResultsCount, this.searchResultsPagesCount = Math.ceil(this.searchResultsCount / this.searchResultsPerPage), this.searchResultsRangeMin = (this.searchResultsPage - 1) * this.searchResultsPerPage + 1, this.searchResultsRangeMax = (this.searchResultsPerPage - 1) * this.searchResultsPerPage + this.searchResultsPerPage, this.setSearchResultsPage = r.setSearchResultsPage;
|
|
4160
4238
|
});
|
|
4161
4239
|
}
|
|
@@ -4167,25 +4245,25 @@ const ac = Rs, Ps = ks, sc = Pr, Cs = /* @__PURE__ */ D(class extends F {
|
|
|
4167
4245
|
this.setSearchResultsPage(r);
|
|
4168
4246
|
}
|
|
4169
4247
|
renderOddPaginationItem(r) {
|
|
4170
|
-
return d("li", null, d("button", { class:
|
|
4248
|
+
return d("li", null, d("button", { class: I("searchcraft-pagination-item", {
|
|
4171
4249
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
4172
4250
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r));
|
|
4173
4251
|
}
|
|
4174
4252
|
renderEvenPaginationItem(r) {
|
|
4175
4253
|
if (!(this.searchResultsPagesCount <= r))
|
|
4176
|
-
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? d("li", null, d("button", { class:
|
|
4254
|
+
return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? d("li", null, d("button", { class: I("searchcraft-pagination-item", {
|
|
4177
4255
|
"searchcraft-pagination-item-active": this.searchResultsPage === r
|
|
4178
4256
|
}), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : d("li", null, d("span", { class: "searchcraft-pagination-item" }, "..."));
|
|
4179
4257
|
}
|
|
4180
4258
|
renderMiddlePaginationItem() {
|
|
4181
4259
|
if (!(this.searchResultsPagesCount <= 3))
|
|
4182
|
-
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? d("li", null, d("button", { class:
|
|
4260
|
+
return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? d("li", null, d("button", { class: I("searchcraft-pagination-item", {
|
|
4183
4261
|
"searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
|
|
4184
4262
|
}), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : d("li", null, d("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
|
|
4185
4263
|
}
|
|
4186
4264
|
render() {
|
|
4187
4265
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
4188
|
-
return d("div", { class:
|
|
4266
|
+
return d("div", { class: I("searchcraft-pagination", ct(this.customStyles || {})) }, d("div", { class: "searchcraft-pagination-control" }, d("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: d("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("title", null, "Previous page icon"), d("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), d("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), d("div", { class: "searchcraft-pagination-control" }, d("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
|
|
4189
4267
|
this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
|
|
4190
4268
|
}, label: "Next", iconPosition: "right", icon: d("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("title", null, "Next page icon"), d("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
|
|
4191
4269
|
}
|
|
@@ -4206,7 +4284,7 @@ function nc() {
|
|
|
4206
4284
|
["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
|
|
4207
4285
|
switch (t) {
|
|
4208
4286
|
case "searchcraft-pagination":
|
|
4209
|
-
customElements.get(t) || customElements.define(t,
|
|
4287
|
+
customElements.get(t) || customElements.define(t, Ps);
|
|
4210
4288
|
break;
|
|
4211
4289
|
case "searchcraft-button":
|
|
4212
4290
|
customElements.get(t) || Lt();
|
|
@@ -4214,12 +4292,12 @@ function nc() {
|
|
|
4214
4292
|
}
|
|
4215
4293
|
});
|
|
4216
4294
|
}
|
|
4217
|
-
const oc =
|
|
4295
|
+
const oc = Ps, Ts = nc, xs = /* @__PURE__ */ N(class extends D {
|
|
4218
4296
|
constructor() {
|
|
4219
4297
|
super(), this.__registerHost();
|
|
4220
4298
|
}
|
|
4221
4299
|
handleOnClick() {
|
|
4222
|
-
|
|
4300
|
+
_.getState().setPopoverVisibility(!0);
|
|
4223
4301
|
}
|
|
4224
4302
|
render() {
|
|
4225
4303
|
return d("button", { key: "a8ee70b49a5309cfb1363a272ea0870c48c59688", type: "button", onClick: this.handleOnClick.bind(this) }, d("slot", { key: "9ac712ed1f6e69d73e7ade3d42501fb67a02c7ff" }));
|
|
@@ -4231,12 +4309,12 @@ function ic() {
|
|
|
4231
4309
|
["searchcraft-popover-button"].forEach((t) => {
|
|
4232
4310
|
switch (t) {
|
|
4233
4311
|
case "searchcraft-popover-button":
|
|
4234
|
-
customElements.get(t) || customElements.define(t,
|
|
4312
|
+
customElements.get(t) || customElements.define(t, xs);
|
|
4235
4313
|
break;
|
|
4236
4314
|
}
|
|
4237
4315
|
});
|
|
4238
4316
|
}
|
|
4239
|
-
const cc =
|
|
4317
|
+
const cc = xs, $s = ic, lc = /* @__PURE__ */ N(class extends D {
|
|
4240
4318
|
constructor() {
|
|
4241
4319
|
super();
|
|
4242
4320
|
h(this, "item");
|
|
@@ -4250,12 +4328,12 @@ const cc = Ts, $s = ic, lc = /* @__PURE__ */ D(class extends F {
|
|
|
4250
4328
|
h(this, "subtitleContent");
|
|
4251
4329
|
h(this, "handleLinkClick", () => {
|
|
4252
4330
|
var n;
|
|
4253
|
-
const r =
|
|
4331
|
+
const r = _.getState(), a = r.getSearchcraftInstance();
|
|
4254
4332
|
if (a) {
|
|
4255
|
-
const o = this.documentPosition, s = r.searchTerm,
|
|
4333
|
+
const o = this.documentPosition, s = r.searchTerm, l = r.searchClientResponseItems.length || 0;
|
|
4256
4334
|
(n = a.measureClient) == null || n.sendMeasureEvent("document_clicked", {
|
|
4257
4335
|
document_position: o,
|
|
4258
|
-
number_of_documents:
|
|
4336
|
+
number_of_documents: l,
|
|
4259
4337
|
search_term: s
|
|
4260
4338
|
});
|
|
4261
4339
|
}
|
|
@@ -4263,8 +4341,8 @@ const cc = Ts, $s = ic, lc = /* @__PURE__ */ D(class extends F {
|
|
|
4263
4341
|
this.__registerHost();
|
|
4264
4342
|
}
|
|
4265
4343
|
mapValuesFromDocument(r) {
|
|
4266
|
-
var a, n, o, s,
|
|
4267
|
-
this.titleContent =
|
|
4344
|
+
var a, n, o, s, l;
|
|
4345
|
+
this.titleContent = ie(r, (a = this.popoverResultMappings) == null ? void 0 : a.title), this.subtitleContent = ie(r, (n = this.popoverResultMappings) == null ? void 0 : n.subtitle), this.href = ie(r, (o = this.popoverResultMappings) == null ? void 0 : o.href), this.imageSrc = ie(r, (s = this.popoverResultMappings) == null ? void 0 : s.imageSource), this.imageAlt = ie(r, (l = this.popoverResultMappings) == null ? void 0 : l.imageAlt);
|
|
4268
4346
|
}
|
|
4269
4347
|
connectedCallback() {
|
|
4270
4348
|
this.item && this.mapValuesFromDocument(this.item.document);
|
|
@@ -4284,7 +4362,7 @@ const cc = Ts, $s = ic, lc = /* @__PURE__ */ D(class extends F {
|
|
|
4284
4362
|
titleContent: [32],
|
|
4285
4363
|
subtitleContent: [32]
|
|
4286
4364
|
}]);
|
|
4287
|
-
function
|
|
4365
|
+
function Pr() {
|
|
4288
4366
|
if (typeof customElements > "u")
|
|
4289
4367
|
return;
|
|
4290
4368
|
["searchcraft-popover-list-item"].forEach((t) => {
|
|
@@ -4296,7 +4374,7 @@ function Cr() {
|
|
|
4296
4374
|
});
|
|
4297
4375
|
}
|
|
4298
4376
|
var Fa;
|
|
4299
|
-
const uc = /* @__PURE__ */
|
|
4377
|
+
const uc = /* @__PURE__ */ N(class extends D {
|
|
4300
4378
|
constructor() {
|
|
4301
4379
|
super();
|
|
4302
4380
|
/**
|
|
@@ -4311,7 +4389,7 @@ const uc = /* @__PURE__ */ D(class extends F {
|
|
|
4311
4389
|
h(this, "adClientResponseItems");
|
|
4312
4390
|
h(this, "searchResultsPage");
|
|
4313
4391
|
h(this, "searchResultsPerPage");
|
|
4314
|
-
h(this, "config", (Fa =
|
|
4392
|
+
h(this, "config", (Fa = _.getState().core) == null ? void 0 : Fa.config);
|
|
4315
4393
|
this.__registerHost();
|
|
4316
4394
|
}
|
|
4317
4395
|
renderWithADMAds() {
|
|
@@ -4319,18 +4397,33 @@ const uc = /* @__PURE__ */ D(class extends F {
|
|
|
4319
4397
|
return d("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((n) => d("searchcraft-ad", { adClientResponseItem: n, adSource: "adMarketplace", key: n.id })), (a = this.searchClientResponseItems) == null ? void 0 : a.map((n, o) => d("searchcraft-popover-list-item", { item: n, key: n.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
|
|
4320
4398
|
}
|
|
4321
4399
|
renderWithCustomAds() {
|
|
4322
|
-
var u,
|
|
4323
|
-
const r = [], a = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, n = ((
|
|
4324
|
-
for (let
|
|
4325
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
4326
|
-
|
|
4327
|
-
if (a &&
|
|
4328
|
-
for (let
|
|
4329
|
-
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${
|
|
4330
|
-
r.push(d("searchcraft-popover-list-item", { item:
|
|
4400
|
+
var u, c, i, p;
|
|
4401
|
+
const r = [], a = ((u = this.config) == null ? void 0 : u.customAdInterstitialInterval) || 0, n = ((c = this.config) == null ? void 0 : c.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, s = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, l = this.searchClientResponseItems || [];
|
|
4402
|
+
for (let m = 0; m < o; m++)
|
|
4403
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
4404
|
+
l.forEach((m, v) => {
|
|
4405
|
+
if (a && v % a === 0 && v + a < l.length && v >= a)
|
|
4406
|
+
for (let b = 0; b < n; b++)
|
|
4407
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m.id}-ad-${b}` }));
|
|
4408
|
+
r.push(d("searchcraft-popover-list-item", { item: m, key: m.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + v }));
|
|
4409
|
+
});
|
|
4410
|
+
for (let m = 0; m < s; m++)
|
|
4411
|
+
r.push(d("searchcraft-ad", { adSource: "Custom", key: `${m}-ad` }));
|
|
4412
|
+
return d("div", { class: "searchcraft-popover-list-view" }, r);
|
|
4413
|
+
}
|
|
4414
|
+
renderWithNativoAds() {
|
|
4415
|
+
var c, i, p, m, v;
|
|
4416
|
+
const r = [], a = ((c = this.config) == null ? void 0 : c.nativoAdInterstialStartIndex) || 0, n = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, s = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, l = ((v = this.config) == null ? void 0 : v.nativoAdEndQuantity) || 0, u = this.searchClientResponseItems || [];
|
|
4417
|
+
for (let b = 0; b < s; b++)
|
|
4418
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${b}-ad` }));
|
|
4419
|
+
u.forEach((b, $) => {
|
|
4420
|
+
if (n && ($ + a) % n === 0 && $ + n < u.length && $ >= n)
|
|
4421
|
+
for (let H = 0; H < o; H++)
|
|
4422
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${b.id}-ad-${H}` }));
|
|
4423
|
+
r.push(d("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + $ }));
|
|
4331
4424
|
});
|
|
4332
|
-
for (let
|
|
4333
|
-
r.push(d("searchcraft-ad", { adSource: "
|
|
4425
|
+
for (let b = 0; b < l; b++)
|
|
4426
|
+
r.push(d("searchcraft-ad", { adSource: "Nativo", key: `${b}-ad` }));
|
|
4334
4427
|
return d("div", { class: "searchcraft-popover-list-view" }, r);
|
|
4335
4428
|
}
|
|
4336
4429
|
renderWithNoAds() {
|
|
@@ -4344,6 +4437,8 @@ const uc = /* @__PURE__ */ D(class extends F {
|
|
|
4344
4437
|
return this.renderWithADMAds();
|
|
4345
4438
|
case "Custom":
|
|
4346
4439
|
return this.renderWithCustomAds();
|
|
4440
|
+
case "Nativo":
|
|
4441
|
+
return this.renderWithNativoAds();
|
|
4347
4442
|
default:
|
|
4348
4443
|
return this.renderWithNoAds();
|
|
4349
4444
|
}
|
|
@@ -4367,12 +4462,12 @@ function _s() {
|
|
|
4367
4462
|
customElements.get(t) || It();
|
|
4368
4463
|
break;
|
|
4369
4464
|
case "searchcraft-popover-list-item":
|
|
4370
|
-
customElements.get(t) ||
|
|
4465
|
+
customElements.get(t) || Pr();
|
|
4371
4466
|
break;
|
|
4372
4467
|
}
|
|
4373
4468
|
});
|
|
4374
4469
|
}
|
|
4375
|
-
const As = /* @__PURE__ */
|
|
4470
|
+
const As = /* @__PURE__ */ N(class extends D {
|
|
4376
4471
|
constructor() {
|
|
4377
4472
|
super();
|
|
4378
4473
|
/**
|
|
@@ -4421,7 +4516,7 @@ const As = /* @__PURE__ */ D(class extends F {
|
|
|
4421
4516
|
r.preventDefault(), this.focusOnNextListItem(r.key);
|
|
4422
4517
|
break;
|
|
4423
4518
|
case "Escape":
|
|
4424
|
-
|
|
4519
|
+
_.getState().setPopoverVisibility(!1);
|
|
4425
4520
|
break;
|
|
4426
4521
|
default:
|
|
4427
4522
|
return;
|
|
@@ -4438,7 +4533,7 @@ const As = /* @__PURE__ */ D(class extends F {
|
|
|
4438
4533
|
}
|
|
4439
4534
|
componentDidLoad() {
|
|
4440
4535
|
const r = getComputedStyle(document.documentElement);
|
|
4441
|
-
this.breakpointSm = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState =
|
|
4536
|
+
this.breakpointSm = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(r.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState = _.getState().isPopoverVisible, document.addEventListener("click", this.handleDocumentClick), document.addEventListener("keydown", this.handleDocumentKeyDown), this.unsubscribe = _.subscribe((a) => {
|
|
4442
4537
|
this.isPopoverVisibleInState !== a.isPopoverVisible && this.handlePopoverVisibilityChange(a.isPopoverVisible), this.searchClientResponseItems = [...a.searchClientResponseItems], this.adClientResponseItems = [...a.adClientResponseItems], this.searchTerm = a.searchTerm, this.searchResultsPage = a.searchResultsPage, this.searchResultsPerPage = a.searchResultsPerPage;
|
|
4443
4538
|
});
|
|
4444
4539
|
}
|
|
@@ -4457,10 +4552,10 @@ const As = /* @__PURE__ */ D(class extends F {
|
|
|
4457
4552
|
* focusing on the input will open a modal version of the popover form.
|
|
4458
4553
|
*/
|
|
4459
4554
|
handleInputFocus() {
|
|
4460
|
-
this.isFocused = !0, this.type === "inline" && window.visualViewport && window.visualViewport.width < this.breakpointSm && (
|
|
4555
|
+
this.isFocused = !0, this.type === "inline" && window.visualViewport && window.visualViewport.width < this.breakpointSm && (_.getState().setPopoverVisibility(!0), this.modalElement || (this.modalElement = document.createElement("searchcraft-popover-form"), this.modalElement.popoverResultMappings = this.popoverResultMappings, this.modalElement.setAttribute("type", "fullscreen"), document.body.appendChild(this.modalElement)));
|
|
4461
4556
|
}
|
|
4462
4557
|
handleModalBackdropClick(r) {
|
|
4463
|
-
|
|
4558
|
+
_.getState().setPopoverVisibility(!1);
|
|
4464
4559
|
}
|
|
4465
4560
|
/**
|
|
4466
4561
|
* When a hotkey is pressed, tests if the modifiers also match.
|
|
@@ -4472,10 +4567,10 @@ const As = /* @__PURE__ */ D(class extends F {
|
|
|
4472
4567
|
const a = this.hostElement.querySelector(".searchcraft-input");
|
|
4473
4568
|
a == null || a.focus();
|
|
4474
4569
|
} else
|
|
4475
|
-
|
|
4570
|
+
_.getState().setPopoverVisibility(!this.isPopoverVisibleInState);
|
|
4476
4571
|
}
|
|
4477
4572
|
handleCancelButtonClick() {
|
|
4478
|
-
|
|
4573
|
+
_.getState().setPopoverVisibility(!1);
|
|
4479
4574
|
}
|
|
4480
4575
|
/**
|
|
4481
4576
|
* Moves focus to the next/previous list item in the list view. If you are at the top
|
|
@@ -4485,16 +4580,16 @@ const As = /* @__PURE__ */ D(class extends F {
|
|
|
4485
4580
|
*/
|
|
4486
4581
|
focusOnNextListItem(r) {
|
|
4487
4582
|
var o, s;
|
|
4488
|
-
const a = Array.from(document.querySelectorAll("a.searchcraft-popover-list-item")).filter((
|
|
4583
|
+
const a = Array.from(document.querySelectorAll("a.searchcraft-popover-list-item")).filter((l) => !l.hasAttribute("disabled") && l.offsetParent !== null), n = a.indexOf(document.activeElement);
|
|
4489
4584
|
if (r === "ArrowDown")
|
|
4490
4585
|
(o = a[(n + 1) % a.length]) == null || o.focus();
|
|
4491
4586
|
else if (r === "ArrowUp")
|
|
4492
4587
|
if (n >= 1)
|
|
4493
4588
|
(s = a[n - 1]) == null || s.focus();
|
|
4494
4589
|
else {
|
|
4495
|
-
const
|
|
4496
|
-
|
|
4497
|
-
|
|
4590
|
+
const l = document.querySelector(".searchcraft-input");
|
|
4591
|
+
l && (l.focus(), requestAnimationFrame(() => {
|
|
4592
|
+
l.selectionEnd = l.value.length, l.selectionStart = l.value.length;
|
|
4498
4593
|
}));
|
|
4499
4594
|
}
|
|
4500
4595
|
}
|
|
@@ -4503,14 +4598,14 @@ const As = /* @__PURE__ */ D(class extends F {
|
|
|
4503
4598
|
return this.searchTerm && ((a = (r = this.searchTerm) == null ? void 0 : r.trim()) == null ? void 0 : a.length) > 0 && this.searchClientResponseItems.length > 0;
|
|
4504
4599
|
}
|
|
4505
4600
|
renderInlinePopover() {
|
|
4506
|
-
const r = this.hasResultsToShow && this.isFocused, a =
|
|
4601
|
+
const r = this.hasResultsToShow && this.isFocused, a = I("searchcraft-popover-form searchcraft-popover-form-inline", {
|
|
4507
4602
|
"searchcraft-popover-form-active": r
|
|
4508
4603
|
});
|
|
4509
4604
|
return d("div", { class: a }, d("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) }), r && d("div", { class: "searchcraft-popover-inline-wrapper-outer" }, d("div", { class: "searchcraft-popover-inline-wrapper-inner" }, d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }))));
|
|
4510
4605
|
}
|
|
4511
4606
|
renderModalPopover() {
|
|
4512
4607
|
if (this.isPopoverVisibleInState) {
|
|
4513
|
-
const r =
|
|
4608
|
+
const r = I("searchcraft-popover-form", {
|
|
4514
4609
|
"searchcraft-popover-form-active": this.hasResultsToShow
|
|
4515
4610
|
});
|
|
4516
4611
|
return d("div", { class: "searchcraft-popover-form-modal" }, d("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), d("div", { class: "searchcraft-popover-form-modal-inner" }, d("div", { class: r }, d("div", { class: "searchcraft-popover-form-input-wrapper" }, d("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), d("button", { type: "button", class: "searchcraft-popover-form-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }))));
|
|
@@ -4566,16 +4661,16 @@ function Is() {
|
|
|
4566
4661
|
customElements.get(t) || Mt();
|
|
4567
4662
|
break;
|
|
4568
4663
|
case "searchcraft-input-form":
|
|
4569
|
-
customElements.get(t) ||
|
|
4664
|
+
customElements.get(t) || Cs();
|
|
4570
4665
|
break;
|
|
4571
4666
|
case "searchcraft-input-label":
|
|
4572
|
-
customElements.get(t) ||
|
|
4667
|
+
customElements.get(t) || kr();
|
|
4573
4668
|
break;
|
|
4574
4669
|
case "searchcraft-popover-form":
|
|
4575
4670
|
customElements.get(t) || Is();
|
|
4576
4671
|
break;
|
|
4577
4672
|
case "searchcraft-popover-list-item":
|
|
4578
|
-
customElements.get(t) ||
|
|
4673
|
+
customElements.get(t) || Pr();
|
|
4579
4674
|
break;
|
|
4580
4675
|
case "searchcraft-popover-list-view":
|
|
4581
4676
|
customElements.get(t) || _s();
|
|
@@ -4583,7 +4678,7 @@ function Is() {
|
|
|
4583
4678
|
}
|
|
4584
4679
|
});
|
|
4585
4680
|
}
|
|
4586
|
-
const hc = As, Ms = Is, fc =
|
|
4681
|
+
const hc = As, Ms = Is, fc = Pr, dc = _s, Ls = /* @__PURE__ */ N(class extends D {
|
|
4587
4682
|
constructor() {
|
|
4588
4683
|
super();
|
|
4589
4684
|
/**
|
|
@@ -4614,7 +4709,7 @@ const hc = As, Ms = Is, fc = Cr, dc = _s, Ls = /* @__PURE__ */ D(class extends F
|
|
|
4614
4709
|
this.__registerHost();
|
|
4615
4710
|
}
|
|
4616
4711
|
connectedCallback() {
|
|
4617
|
-
this.unsubscribe =
|
|
4712
|
+
this.unsubscribe = _.subscribe((r) => {
|
|
4618
4713
|
this.searchTerm = r.searchTerm, this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsCount = r.searchResultsCount, this.count = this.searchResultsCount, this.range[0] = this.searchResultsPage <= 1 ? 1 : this.searchResultsPerPage * (this.searchResultsPage - 1), this.range[1] = this.searchResultsPerPage * this.searchResultsPage, this.range[1] = this.range[1] > this.searchResultsCount ? this.searchResultsCount : this.range[1], this.responseTime = ((r.searchResponseTimeTaken || 0) * 1e3).toFixed(2);
|
|
4619
4714
|
});
|
|
4620
4715
|
}
|
|
@@ -4622,7 +4717,7 @@ const hc = As, Ms = Is, fc = Cr, dc = _s, Ls = /* @__PURE__ */ D(class extends F
|
|
|
4622
4717
|
this.unsubscribe && this.unsubscribe();
|
|
4623
4718
|
}
|
|
4624
4719
|
render() {
|
|
4625
|
-
return !this.searchTerm || this.searchResultsCount === 0 ? null : d("p", { class:
|
|
4720
|
+
return !this.searchTerm || this.searchResultsCount === 0 ? null : d("p", { class: I("searchcraft-results-info", ct(this.customStyles || {})) }, this.customFormatter ? this.customFormatter([
|
|
4626
4721
|
sr(this.range[0]),
|
|
4627
4722
|
sr(this.range[1])
|
|
4628
4723
|
], sr(this.count), this.responseTime) : `${this.count} results found in ${this.responseTime}ms`);
|
|
@@ -4649,7 +4744,7 @@ function pc() {
|
|
|
4649
4744
|
}
|
|
4650
4745
|
});
|
|
4651
4746
|
}
|
|
4652
|
-
const mc = Ls, Os = pc, gc = /* @__PURE__ */
|
|
4747
|
+
const mc = Ls, Os = pc, gc = /* @__PURE__ */ N(class extends D {
|
|
4653
4748
|
constructor() {
|
|
4654
4749
|
super();
|
|
4655
4750
|
/**
|
|
@@ -4702,7 +4797,7 @@ const mc = Ls, Os = pc, gc = /* @__PURE__ */ D(class extends F {
|
|
|
4702
4797
|
this.setSearchResultsPage(r);
|
|
4703
4798
|
}
|
|
4704
4799
|
render() {
|
|
4705
|
-
return d("div", { key: "5024d49d89a3649a5de591d37ded304a9dfb36d9", class:
|
|
4800
|
+
return d("div", { key: "5024d49d89a3649a5de591d37ded304a9dfb36d9", class: I("searchcraft-select", ct(this.customStyles || {})) }, this.label && d("label", { key: "005aea9b190e5a6c041721e20395be23f76faab6", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), d("div", { key: "209d56844c0bcd241e73bafcad24fac927fe7ffa", class: "searchcraft-select-input-wrapper" }, d("select", { key: "010c9e596ef45a303f84c0ac0fa54ab67556d7b6", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: a, selected: n }) => d("option", { key: a, value: a, selected: n }, r))), d("svg", { key: "51d9fb79381468ee0992475ba376df5a5961116c", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, d("title", { key: "59186138953557764915d41708d4bcc23a9bb97f" }, "Select dropdown icon"), d("path", { key: "ec2c962df16cb68bdaf3e2c32e57d875a63957a9", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && d("p", { key: "742bc2dbd8371938894d49bb37d429d1b7a07d7a", class: "searchcraft-select-caption" }, this.caption));
|
|
4706
4801
|
}
|
|
4707
4802
|
}, [0, "searchcraft-select", {
|
|
4708
4803
|
caption: [1],
|
|
@@ -4728,7 +4823,7 @@ function Fs() {
|
|
|
4728
4823
|
}
|
|
4729
4824
|
});
|
|
4730
4825
|
}
|
|
4731
|
-
const Ds = /* @__PURE__ */
|
|
4826
|
+
const Ds = /* @__PURE__ */ N(class extends D {
|
|
4732
4827
|
constructor() {
|
|
4733
4828
|
super();
|
|
4734
4829
|
/**
|
|
@@ -4758,9 +4853,9 @@ const Ds = /* @__PURE__ */ D(class extends F {
|
|
|
4758
4853
|
this.__registerHost();
|
|
4759
4854
|
}
|
|
4760
4855
|
componentDidLoad() {
|
|
4761
|
-
this.unsubscribe =
|
|
4856
|
+
this.unsubscribe = _.subscribe((r) => {
|
|
4762
4857
|
this.searchTerm = r.searchTerm, this.searchResultsPerPage = r.searchResultsPerPage, this.searchResultsPage = r.searchResultsPage, this.searchResultsCount = r.searchResultsCount, this.searchResultsPagesCount = Math.ceil(this.searchResultsCount / this.searchResultsPerPage), this.setSearchResultsPage = r.setSearchResultsPage, this.setSearchResultsPerPage = r.setSearchResultsPerPage;
|
|
4763
|
-
}), this.initialSearchResultsPerPage =
|
|
4858
|
+
}), this.initialSearchResultsPerPage = _.getState().searchResultsPerPage;
|
|
4764
4859
|
}
|
|
4765
4860
|
disconnectedCallback() {
|
|
4766
4861
|
var r;
|
|
@@ -4768,7 +4863,7 @@ const Ds = /* @__PURE__ */ D(class extends F {
|
|
|
4768
4863
|
}
|
|
4769
4864
|
render() {
|
|
4770
4865
|
if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
|
|
4771
|
-
return d("div", { class:
|
|
4866
|
+
return d("div", { class: I("searchcraft-search-results-per-page", ct(this.customStyles || {})) }, d("div", { class: "searchcraft-search-results-per-page-select" }, d("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), d("div", { class: "searchcraft-search-results-per-page-select-input" }, d("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, a) => {
|
|
4772
4867
|
const n = this.initialSearchResultsPerPage + Number(this.increment) * a;
|
|
4773
4868
|
return {
|
|
4774
4869
|
label: `${n}`,
|
|
@@ -4805,7 +4900,7 @@ function bc() {
|
|
|
4805
4900
|
});
|
|
4806
4901
|
}
|
|
4807
4902
|
const vc = Ds, Ns = bc, yc = Fs, Sc = ys, wc = `: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)}: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: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var(--sc-color-background-hover, #fafafa);--sc-color-background-active: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, #f7f7f7 );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-secondary-hover, var(--sc-color-background-hover, #e6e6e6) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var(--sc-color-foreground-secondary, #404040);--sc-border-neutral: rgba(0, 0, 0, 0.1);--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var(--sc-color-brand-hover, #2e2e2e);--sc-color-brand-active: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var(--sc-color-brand-active, #292929);--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-surface-brand-secondary-hover: var( --sc-color-brand-secondary-hover, var(--sc-color-brand-hover, #ebebeb) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active, #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: hsl(from var(--sc-color-success) h s 30);--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, #009900 );--sc-color-success-primary-active: hsl(from var(--sc-color-success) h s 20);--sc-surface-success-primary-active: var( --sc-color-success-primary-active, #006600 );--sc-color-success-secondary: hsl(from var(--sc-color-success) h s 90);--sc-surface-success-secondary: var(--sc-color-success-secondary, #ccffcc);--sc-color-success-secondary-hover: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, #e6ffe6 );--sc-color-success-secondary-active: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, #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: hsl(from var(--sc-color-caution) h s 30);--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, #e57300 );--sc-color-caution-primary-active: hsl(from var(--sc-color-caution) h s 20);--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, #b25a00 );--sc-color-caution-secondary: hsl(from var(--sc-color-caution) h s 90);--sc-surface-caution-secondary: var(--sc-color-caution-secondary, #ffd9b3);--sc-color-caution-secondary-hover: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, #ffe5cc );--sc-color-caution-secondary-active: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, #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: hsl(from var(--sc-color-danger) h s 30);--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, #e50000 );--sc-color-danger-primary-active: hsl(from var(--sc-color-danger) h s 20);--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, #b30000 );--sc-color-danger-secondary: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var(--sc-color-danger-secondary, #ffcccc);--sc-color-danger-secondary-hover: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, #ffe7e7 );--sc-color-danger-secondary-active: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, #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: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover: hsl(from var(--sc-color-success) h s 30%);--sc-color-success-primary-active: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary: hsl(from var(--sc-color-success) h s 90%);--sc-color-success-secondary-hover: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active: 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: hsl(from var(--sc-color-caution) h s 30%);--sc-color-caution-primary-active: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary: hsl(from var(--sc-color-caution) h s 90%);--sc-color-caution-secondary-hover: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active: 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: hsl(from var(--sc-color-danger) h s 30%);--sc-color-danger-primary-active: hsl(from var(--sc-color-danger) h s 20%);--sc-color-danger-secondary: hsl(from var(--sc-color-danger) h s 90%);--sc-color-danger-secondary-hover: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active: 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-custom-ad{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size)}.searchcraft-adm-ad{all:unset;display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical);border:1px solid blue}.searchcraft-adm-ad:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-adm-ad:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-adm-ad-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:inherit}.searchcraft-adm-ad-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:inherit}.searchcraft-adm-ad-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-adm-ad-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-adm-ad-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:var(--sc-border-radius-lg);display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media(min-width: 768px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:calc(--sc-border-radius-lg - 8px);border-radius:calc(var(--sc-border-radius-lg) - 8px);width:100%}@media(min-width: 768px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin:0}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-disabled);margin:0}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-disabled);margin:0}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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-error-message{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-danger);margin:0}.filtersListContainer{width:100%}.filterCheckboxLabel{align-items:center;color:var(--sc-content-brand);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-bold)}:root{--sc-input-border-radius: var(--sc-border-radius);--sc-input-search-icon-size: 20px;--sc-input-clear-icon-size: 20px;--sc-input-padding-left: 44px;--sc-input-padding-right: 44px}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-border-radius);border:none;color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size);color:var(--sc-content-neutral-secondary)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size);color:var(--sc-content-brand)}.searchcraft-input-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-form-border-radius: var(--sc-border-radius);--sc-popover-list-view-height: 400px;--sc-popover-list-item-image-size: 60px;--sc-popover-list-item-padding-horizontal: 8px;--sc-popover-list-item-padding-vertical: 8px;--sc-popover-modal-max-width: 570px}.searchcraft-popover-form{display:flex;flex-direction:column;flex:1}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper{padding:12px;background-color:var(--sc-surface-neutral-secondary);display:flex;flex-direction:row;gap:4px}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper>searchcraft-input-form{flex:1}.searchcraft-popover-form .searchcraft-popover-form-cancel-button{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);border:0;outline:0;padding:0;flex-shrink:0;background:none;cursor:pointer;padding-left:12px;padding-right:12px}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:focus{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-popover-form-inline .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);border:none;outline:none}.searchcraft-popover-form-inline.searchcraft-popover-form-active .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-outer{position:relative}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-inner{position:absolute;height:var(--sc-popover-list-view-height);z-index:1000;width:100%}.searchcraft-popover-form-inline .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);max-height:var(--sc-popover-list-view-height)}.searchcraft-popover-form-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:0;background-color:var(--sc-surface-neutral-secondary)}@media(min-width: 576px){.searchcraft-popover-form-modal{padding:16px;background-color:rgba(0,0,0,0)}}.searchcraft-popover-form-modal .searchcraft-input{border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{position:absolute;inset:0;background-color:rgba(0,0,0,.5);display:none}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{position:absolute;inset:0;z-index:1002;margin-top:0px;display:flex;border-radius:var(--sc-popover-form-border-radius);overflow:hidden}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{inset:auto;position:relative;width:100%;margin-top:100px;max-width:var(--sc-popover-modal-max-width)}}.searchcraft-popover-form-modal .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:0;border-bottom-right-radius:0}@media(min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-list-view{max-height:var(--sc-popover-list-view-height)}}.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:scroll}@media(min-width: 576px){.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:auto}}.searchcraft-popover-form-fullscreen{position:fixed;inset:0;z-index:1000;background-color:var(--sc-surface-neutral-secondary)}.searchcraft-popover-form-fullscreen .searchcraft-popover-form{position:absolute;inset:0}.searchcraft-popover-form-fullscreen .searchcraft-input{border-radius:calc(--sc-popover-form-border-radius - 12px);border-radius:calc(var(--sc-popover-form-border-radius) - 12px);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-fullscreen searchcraft-popover-list-view{overflow:scroll}.searchcraft-popover-list-item{all:unset;color:var(--sc-content-neutral-secondary);display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical)}.searchcraft-popover-list-item:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item-title{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:inherit}.searchcraft-popover-list-item-subtitle{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:inherit}.searchcraft-popover-list-item-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-popover-list-item-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-popover-list-item-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}.searchcraft-results-info{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);color:var(--sc-content-primary);margin:0}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .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-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .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-container .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-container .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-container{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-label{min-width:30px;text-align:center}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color .2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.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-handle.active{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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);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{pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size)}.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);font-weight:var(--sc-font-normal);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
|
|
4808
|
-
`, Us = /* @__PURE__ */
|
|
4903
|
+
`, Us = /* @__PURE__ */ N(class extends D {
|
|
4809
4904
|
constructor() {
|
|
4810
4905
|
super();
|
|
4811
4906
|
/**
|
|
@@ -4844,16 +4939,16 @@ function Ec() {
|
|
|
4844
4939
|
}
|
|
4845
4940
|
});
|
|
4846
4941
|
}
|
|
4847
|
-
const Rc = Us, zs = Ec,
|
|
4848
|
-
Oi(), Ni(), ps(),
|
|
4942
|
+
const Rc = Us, zs = Ec, Cc = Ss, Hs = () => {
|
|
4943
|
+
Oi(), Ni(), ps(), Wi(), Gi(), Xi(), Es(), ks(), sc(), Ts(), $s(), Ms(), fc(), dc(), Os(), Ns(), yc(), Sc(), zs(), Cc();
|
|
4849
4944
|
};
|
|
4850
4945
|
Hs();
|
|
4851
|
-
const
|
|
4852
|
-
name:
|
|
4946
|
+
const kc = "@searchcraft/react-sdk", Pc = "Searchcraft", Tc = "0.9.5", xc = "Searchcraft React SDK.", $c = "module", _c = "Apache-2.0", Ac = ["searchcraft"], Ic = { build: "tsc && vite build && yarn docs", docs: "typedoc --options typedoc.json", lint: "biome format lint ./src", test: "vitest --watch=false", "test:watch": "vitest" }, Mc = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, Lc = { node: ">=18.0.0", npm: ">=10.0.0" }, Oc = "dist/index.js", Fc = "dist/index.js", Dc = "dist/index.d.ts", Nc = ["dist/**/*"], Uc = { ".": { import: "./dist/index.js", types: "./dist/index.d.ts" } }, zc = { "@searchcraft/javascript-sdk": "^0.9.5", classnames: "^2.3.2" }, Hc = { react: ">=18.0.0 <19.1.0", "react-dom": ">=18.0.0 <19.1.0" }, Bc = { "@biomejs/biome": "^1.8.1", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.1", "@types/node": "^20.11.25", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", jsdom: "^24.0.0", react: "^18.3.1", "react-dom": "^18.3.1", sass: "^1.56.1" }, Ma = {
|
|
4947
|
+
name: kc,
|
|
4853
4948
|
private: !1,
|
|
4854
|
-
author:
|
|
4855
|
-
version:
|
|
4856
|
-
description:
|
|
4949
|
+
author: Pc,
|
|
4950
|
+
version: Tc,
|
|
4951
|
+
description: xc,
|
|
4857
4952
|
type: $c,
|
|
4858
4953
|
license: _c,
|
|
4859
4954
|
keywords: Ac,
|
|
@@ -4876,34 +4971,34 @@ const Pc = "@searchcraft/react-sdk", Cc = "Searchcraft", xc = "0.9.4", Tc = "Sea
|
|
|
4876
4971
|
*/
|
|
4877
4972
|
const jc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), La = /* @__PURE__ */ new WeakMap(), Oa = (e, t, r, a, n) => {
|
|
4878
4973
|
const o = n == null ? void 0 : n[t];
|
|
4879
|
-
o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== a && ((s,
|
|
4880
|
-
let
|
|
4881
|
-
|
|
4882
|
-
let i =
|
|
4883
|
-
u !== void 0 ? i === void 0 ? (
|
|
4974
|
+
o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== a && ((s, l, u) => {
|
|
4975
|
+
let c = La.get(s);
|
|
4976
|
+
c === void 0 && La.set(s, c = /* @__PURE__ */ new Map());
|
|
4977
|
+
let i = c.get(l);
|
|
4978
|
+
u !== void 0 ? i === void 0 ? (c.set(l, i = { handleEvent: u }), s.addEventListener(l, i)) : i.handleEvent = u : i !== void 0 && (c.delete(l), s.removeEventListener(l, i));
|
|
4884
4979
|
})(e, o, r);
|
|
4885
|
-
},
|
|
4886
|
-
const o = new Set(Object.keys(a ?? {})), s = e.forwardRef((
|
|
4887
|
-
const
|
|
4888
|
-
for (const [
|
|
4980
|
+
}, Wc = ({ react: e, tagName: t, elementClass: r, events: a, displayName: n }) => {
|
|
4981
|
+
const o = new Set(Object.keys(a ?? {})), s = e.forwardRef((l, u) => {
|
|
4982
|
+
const c = e.useRef(/* @__PURE__ */ new Map()), i = e.useRef(null), p = {}, m = {};
|
|
4983
|
+
for (const [v, b] of Object.entries(l)) jc.has(v) ? p[v === "className" ? "class" : v] = b : o.has(v) || v in r.prototype ? m[v] = b : p[v] = b;
|
|
4889
4984
|
return e.useLayoutEffect(() => {
|
|
4890
4985
|
if (i.current === null) return;
|
|
4891
|
-
const
|
|
4892
|
-
for (const
|
|
4893
|
-
for (const [
|
|
4894
|
-
|
|
4986
|
+
const v = /* @__PURE__ */ new Map();
|
|
4987
|
+
for (const b in m) Oa(i.current, b, l[b], c.current.get(b), a), c.current.delete(b), v.set(b, l[b]);
|
|
4988
|
+
for (const [b, $] of c.current) Oa(i.current, b, void 0, $, a);
|
|
4989
|
+
c.current = v;
|
|
4895
4990
|
}), e.useLayoutEffect(() => {
|
|
4896
|
-
var
|
|
4897
|
-
(
|
|
4898
|
-
}, []), p.suppressHydrationWarning = !0, e.createElement(t, { ...p, ref: e.useCallback((
|
|
4899
|
-
i.current =
|
|
4991
|
+
var v;
|
|
4992
|
+
(v = i.current) == null || v.removeAttribute("defer-hydration");
|
|
4993
|
+
}, []), p.suppressHydrationWarning = !0, e.createElement(t, { ...p, ref: e.useCallback((v) => {
|
|
4994
|
+
i.current = v, typeof u == "function" ? u(v) : u !== null && (u.current = v);
|
|
4900
4995
|
}, [u]) });
|
|
4901
4996
|
});
|
|
4902
4997
|
return s.displayName = n ?? r.name, s;
|
|
4903
4998
|
}, Ee = ({
|
|
4904
4999
|
defineCustomElement: e,
|
|
4905
5000
|
...t
|
|
4906
|
-
}) => (typeof e < "u" && e(),
|
|
5001
|
+
}) => (typeof e < "u" && e(), Wc(t)), Gc = /* @__PURE__ */ Ee({
|
|
4907
5002
|
tagName: "searchcraft-base-search-results",
|
|
4908
5003
|
elementClass: Bi,
|
|
4909
5004
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
@@ -4927,29 +5022,29 @@ const jc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
4927
5022
|
onInputBlur: "inputBlur",
|
|
4928
5023
|
onInputInit: "inputInit"
|
|
4929
5024
|
},
|
|
4930
|
-
defineCustomElement:
|
|
5025
|
+
defineCustomElement: ks
|
|
4931
5026
|
}), Yc = /* @__PURE__ */ Ee({
|
|
4932
5027
|
tagName: "searchcraft-pagination",
|
|
4933
5028
|
elementClass: oc,
|
|
4934
5029
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4935
5030
|
react: we,
|
|
4936
5031
|
events: {},
|
|
4937
|
-
defineCustomElement:
|
|
4938
|
-
}),
|
|
5032
|
+
defineCustomElement: Ts
|
|
5033
|
+
}), Qc = /* @__PURE__ */ Ee({
|
|
4939
5034
|
tagName: "searchcraft-popover-button",
|
|
4940
5035
|
elementClass: cc,
|
|
4941
5036
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4942
5037
|
react: we,
|
|
4943
5038
|
events: {},
|
|
4944
5039
|
defineCustomElement: $s
|
|
4945
|
-
}),
|
|
5040
|
+
}), Kc = /* @__PURE__ */ Ee({
|
|
4946
5041
|
tagName: "searchcraft-popover-form",
|
|
4947
5042
|
elementClass: hc,
|
|
4948
5043
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
4949
5044
|
react: we,
|
|
4950
5045
|
events: {},
|
|
4951
5046
|
defineCustomElement: Ms
|
|
4952
|
-
}),
|
|
5047
|
+
}), Xc = /* @__PURE__ */ Ee({
|
|
4953
5048
|
tagName: "searchcraft-results-info",
|
|
4954
5049
|
elementClass: mc,
|
|
4955
5050
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
@@ -4970,7 +5065,7 @@ const jc = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
4970
5065
|
react: we,
|
|
4971
5066
|
events: {},
|
|
4972
5067
|
defineCustomElement: zs
|
|
4973
|
-
}), Rl = (e) => /* @__PURE__ */ Se(
|
|
5068
|
+
}), Rl = (e) => /* @__PURE__ */ Se(Gc, { ...e }), Cl = (e) => /* @__PURE__ */ Se(Vc, { ...e }), kl = (e) => /* @__PURE__ */ Se(qc, { ...e }), Pl = (e) => /* @__PURE__ */ Se(Qc, { ...e }), Tl = (e) => /* @__PURE__ */ Se(Kc, { ...e }), xl = (e) => /* @__PURE__ */ Se(Xc, { ...e }), $l = (e) => /* @__PURE__ */ Se(Zc, { ...e }), _l = (e) => /* @__PURE__ */ Se(Yc, { ...e }), Al = (e) => /* @__PURE__ */ Se(Jc, { ...e });
|
|
4974
5069
|
class Il extends oo {
|
|
4975
5070
|
constructor(t) {
|
|
4976
5071
|
super(t, {
|
|
@@ -4983,12 +5078,12 @@ Hs();
|
|
|
4983
5078
|
export {
|
|
4984
5079
|
Il as Searchcraft,
|
|
4985
5080
|
Rl as SearchcraftBaseSearchResults,
|
|
4986
|
-
|
|
4987
|
-
|
|
5081
|
+
Cl as SearchcraftFilterPanel,
|
|
5082
|
+
kl as SearchcraftInputForm,
|
|
4988
5083
|
_l as SearchcraftPagination,
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
5084
|
+
Pl as SearchcraftPopoverButton,
|
|
5085
|
+
Tl as SearchcraftPopoverForm,
|
|
5086
|
+
xl as SearchcraftResultsInfo,
|
|
4992
5087
|
Al as SearchcraftSearchResultsPerPage,
|
|
4993
5088
|
$l as SearchcraftTheme
|
|
4994
5089
|
};
|