@searchstax-inc/searchstudio-ux-react 4.1.64 → 4.1.68
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/CHANGELOG.md +10 -0
- package/README.md +2 -3
- package/README.mustache +1 -1
- package/dist/@searchstax-inc/components/SearchstaxWrapper.d.ts +2 -2
- package/dist/@searchstax-inc/searchstudio-ux-react.cjs +43 -44
- package/dist/@searchstax-inc/searchstudio-ux-react.iife.js +16 -17
- package/dist/@searchstax-inc/searchstudio-ux-react.mjs +336 -327
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import si, { useState as V, useEffect as we, useRef as ai, createRef as Aa } from "react";
|
|
2
|
-
var
|
|
2
|
+
var ms = { exports: {} }, nt = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -50,13 +50,13 @@ function ri() {
|
|
|
50
50
|
if (L == null)
|
|
51
51
|
return null;
|
|
52
52
|
if (typeof L == "function")
|
|
53
|
-
return L.$$typeof ===
|
|
53
|
+
return L.$$typeof === H ? null : L.displayName || L.name || null;
|
|
54
54
|
if (typeof L == "string")
|
|
55
55
|
return L;
|
|
56
56
|
switch (L) {
|
|
57
57
|
case w:
|
|
58
58
|
return "Fragment";
|
|
59
|
-
case
|
|
59
|
+
case j:
|
|
60
60
|
return "Profiler";
|
|
61
61
|
case S:
|
|
62
62
|
return "StrictMode";
|
|
@@ -64,7 +64,7 @@ function ri() {
|
|
|
64
64
|
return "Suspense";
|
|
65
65
|
case T:
|
|
66
66
|
return "SuspenseList";
|
|
67
|
-
case
|
|
67
|
+
case de:
|
|
68
68
|
return "Activity";
|
|
69
69
|
}
|
|
70
70
|
if (typeof L == "object")
|
|
@@ -156,15 +156,15 @@ function ri() {
|
|
|
156
156
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
157
157
|
)), L = this.props.ref, L !== void 0 ? L : null;
|
|
158
158
|
}
|
|
159
|
-
function c(L, A, I, J,
|
|
160
|
-
var
|
|
159
|
+
function c(L, A, I, J, Q, Se) {
|
|
160
|
+
var q = I.ref;
|
|
161
161
|
return L = {
|
|
162
162
|
$$typeof: x,
|
|
163
163
|
type: L,
|
|
164
164
|
key: A,
|
|
165
165
|
props: I,
|
|
166
166
|
_owner: J
|
|
167
|
-
}, (
|
|
167
|
+
}, (q !== void 0 ? q : null) !== null ? Object.defineProperty(L, "ref", {
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
get: l
|
|
170
170
|
}) : Object.defineProperty(L, "ref", { enumerable: !1, value: null }), L._store = {}, Object.defineProperty(L._store, "validated", {
|
|
@@ -181,7 +181,7 @@ function ri() {
|
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: Q
|
|
185
185
|
}), Object.defineProperty(L, "_debugTask", {
|
|
186
186
|
configurable: !1,
|
|
187
187
|
enumerable: !1,
|
|
@@ -189,26 +189,26 @@ function ri() {
|
|
|
189
189
|
value: Se
|
|
190
190
|
}), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
|
|
191
191
|
}
|
|
192
|
-
function g(L, A, I, J,
|
|
193
|
-
var
|
|
194
|
-
if (
|
|
192
|
+
function g(L, A, I, J, Q, Se) {
|
|
193
|
+
var q = A.children;
|
|
194
|
+
if (q !== void 0)
|
|
195
195
|
if (J)
|
|
196
|
-
if (Re(
|
|
197
|
-
for (J = 0; J <
|
|
198
|
-
f(
|
|
199
|
-
Object.freeze && Object.freeze(
|
|
196
|
+
if (Re(q)) {
|
|
197
|
+
for (J = 0; J < q.length; J++)
|
|
198
|
+
f(q[J]);
|
|
199
|
+
Object.freeze && Object.freeze(q);
|
|
200
200
|
} else
|
|
201
201
|
console.error(
|
|
202
202
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
203
203
|
);
|
|
204
204
|
else
|
|
205
|
-
f(
|
|
205
|
+
f(q);
|
|
206
206
|
if (Ce.call(A, "key")) {
|
|
207
|
-
|
|
208
|
-
var
|
|
207
|
+
q = i(L);
|
|
208
|
+
var re = Object.keys(A).filter(function(at) {
|
|
209
209
|
return at !== "key";
|
|
210
210
|
});
|
|
211
|
-
J = 0 <
|
|
211
|
+
J = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", st[q + J] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
212
212
|
`A props object containing a "key" prop is being spread into JSX:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s {...props} />
|
|
@@ -216,26 +216,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
let props = %s;
|
|
217
217
|
<%s key={someKey} {...props} />`,
|
|
218
218
|
J,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
), st[
|
|
219
|
+
q,
|
|
220
|
+
re,
|
|
221
|
+
q
|
|
222
|
+
), st[q + J] = !0);
|
|
223
223
|
}
|
|
224
|
-
if (
|
|
224
|
+
if (q = null, I !== void 0 && (t(I), q = "" + I), o(A) && (t(A.key), q = "" + A.key), "key" in A) {
|
|
225
225
|
I = {};
|
|
226
226
|
for (var _e in A)
|
|
227
227
|
_e !== "key" && (I[_e] = A[_e]);
|
|
228
228
|
} else
|
|
229
229
|
I = A;
|
|
230
|
-
return
|
|
230
|
+
return q && n(
|
|
231
231
|
I,
|
|
232
232
|
typeof L == "function" ? L.displayName || L.name || "Unknown" : L
|
|
233
233
|
), c(
|
|
234
234
|
L,
|
|
235
|
-
|
|
235
|
+
q,
|
|
236
236
|
I,
|
|
237
237
|
s(),
|
|
238
|
-
|
|
238
|
+
Q,
|
|
239
239
|
Se
|
|
240
240
|
);
|
|
241
241
|
}
|
|
@@ -245,7 +245,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
function p(L) {
|
|
246
246
|
return typeof L == "object" && L !== null && L.$$typeof === x;
|
|
247
247
|
}
|
|
248
|
-
var y = si, x = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"),
|
|
248
|
+
var y = si, x = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), k = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), de = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), ie = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ce = Object.prototype.hasOwnProperty, Re = Array.isArray, et = console.createTask ? console.createTask : function() {
|
|
249
249
|
return null;
|
|
250
250
|
};
|
|
251
251
|
y = {
|
|
@@ -280,8 +280,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
280
280
|
};
|
|
281
281
|
}()), ot;
|
|
282
282
|
}
|
|
283
|
-
process.env.NODE_ENV === "production" ?
|
|
284
|
-
var u =
|
|
283
|
+
process.env.NODE_ENV === "production" ? ms.exports = ii() : ms.exports = ri();
|
|
284
|
+
var u = ms.exports, ni = Object.defineProperty, oi = (i, e, t) => e in i ? ni(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, h = (i, e, t) => (oi(i, typeof e != "symbol" ? e + "" : e, t), t), G = ((i) => (i[i.mustache = 0] = "mustache", i[i.vue = 1] = "vue", i[i.react = 2] = "react", i[i.angular = 3] = "angular", i))(G || {});
|
|
285
285
|
function As() {
|
|
286
286
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
287
287
|
}
|
|
@@ -294,23 +294,23 @@ function _(i, e = "") {
|
|
|
294
294
|
let t = typeof i == "string" ? i : i.source;
|
|
295
295
|
const a = { replace: (s, r) => {
|
|
296
296
|
let o = typeof r == "string" ? r : r.source;
|
|
297
|
-
return o = o.replace(
|
|
297
|
+
return o = o.replace(le.caret, "$1"), t = t.replace(s, o), a;
|
|
298
298
|
}, getRegex: () => new RegExp(t, e) };
|
|
299
299
|
return a;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
302
|
-
]`).replace("lheading", Ra).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, wi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, vi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
|
|
301
|
+
var le = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (i) => new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}#`), htmlBeginRegex: (i) => new RegExp(`^ {0,${Math.min(3, i - 1)}}<(?:[a-z].*>|!--)`, "i") }, li = /^(?:[ \t]*(?:\n|$))+/, ci = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, hi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Mt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ui = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Is = /(?:[*+-]|\d{1,9}[.)])/, Ia = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ra = _(Ia).replace(/bull/g, Is).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), di = _(Ia).replace(/bull/g, Is).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Rs = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, gi = /^[^\n]+/, Ds = /(?!\s*\])(?:\\.|[^\[\]\\])+/, pi = _(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ds).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), mi = _(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Is).getRegex(), Ut = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ns = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, fi = _("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ns).replace("tag", Ut).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Da = _(Rs).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ut).getRegex(), Li = _(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Da).getRegex(), Os = { blockquote: Li, code: ci, def: pi, fences: hi, heading: ui, hr: Mt, html: fi, lheading: Ra, list: mi, newline: li, paragraph: Da, table: yt, text: gi }, oa = _("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ut).getRegex(), yi = { ...Os, lheading: di, table: oa, paragraph: _(Rs).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", oa).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ut).getRegex() }, xi = { ...Os, html: _(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ns).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: yt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: _(Rs).replace("hr", Mt).replace("heading", ` *#{1,6} *[^
|
|
302
|
+
]`).replace("lheading", Ra).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, wi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, vi = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Na = /^( {2,}|\\)\n(?!\s*$)/, bi = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Yt = /[\p{P}\p{S}]/u, Ps = /[\s\p{P}\p{S}]/u, Oa = /[^\s\p{P}\p{S}]/u, Mi = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ps).getRegex(), Pa = /(?!~)[\p{P}\p{S}]/u, Ci = /(?!~)[\s\p{P}\p{S}]/u, Si = /(?:[^\s\p{P}\p{S}]|~)/u, ki = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Fa = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ti = _(Fa, "u").replace(/punct/g, Yt).getRegex(), Ei = _(Fa, "u").replace(/punct/g, Pa).getRegex(), $a = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ji = _($a, "gu").replace(/notPunctSpace/g, Oa).replace(/punctSpace/g, Ps).replace(/punct/g, Yt).getRegex(), Ai = _($a, "gu").replace(/notPunctSpace/g, Si).replace(/punctSpace/g, Ci).replace(/punct/g, Pa).getRegex(), Ii = _("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Oa).replace(/punctSpace/g, Ps).replace(/punct/g, Yt).getRegex(), Ri = _(/\\(punct)/, "gu").replace(/punct/g, Yt).getRegex(), Di = _(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ni = _(Ns).replace("(?:-->|$)", "-->").getRegex(), Oi = _("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ni).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ht = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Pi = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Ht).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), za = _(/^!?\[(label)\]\[(ref)\]/).replace("label", Ht).replace("ref", Ds).getRegex(), _a = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ds).getRegex(), Fi = _("reflink|nolink(?!\\()", "g").replace("reflink", za).replace("nolink", _a).getRegex(), Fs = { _backpedal: yt, anyPunctuation: Ri, autolink: Di, blockSkip: ki, br: Na, code: vi, del: yt, emStrongLDelim: Ti, emStrongRDelimAst: ji, emStrongRDelimUnd: Ii, escape: wi, link: Pi, nolink: _a, punctuation: Mi, reflink: za, reflinkSearch: Fi, tag: Oi, text: bi, url: yt }, $i = { ...Fs, link: _(/^!?\[(label)\]\((.*?)\)/).replace("label", Ht).getRegex(), reflink: _(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ht).getRegex() }, fs = { ...Fs, emStrongRDelimAst: Ai, emStrongLDelim: Ei, url: _(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, zi = { ...fs, br: _(Na).replace("{2,}", "*").getRegex(), text: _(fs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Nt = { normal: Os, gfm: yi, pedantic: xi }, lt = { normal: Fs, gfm: fs, breaks: zi, pedantic: $i }, _i = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, la = (i) => _i[i];
|
|
303
303
|
function be(i, e) {
|
|
304
304
|
if (e) {
|
|
305
|
-
if (
|
|
306
|
-
return i.replace(
|
|
307
|
-
} else if (
|
|
308
|
-
return i.replace(
|
|
305
|
+
if (le.escapeTest.test(i))
|
|
306
|
+
return i.replace(le.escapeReplace, la);
|
|
307
|
+
} else if (le.escapeTestNoEncode.test(i))
|
|
308
|
+
return i.replace(le.escapeReplaceNoEncode, la);
|
|
309
309
|
return i;
|
|
310
310
|
}
|
|
311
311
|
function ca(i) {
|
|
312
312
|
try {
|
|
313
|
-
i = encodeURI(i).replace(
|
|
313
|
+
i = encodeURI(i).replace(le.percentDecode, "%");
|
|
314
314
|
} catch {
|
|
315
315
|
return null;
|
|
316
316
|
}
|
|
@@ -318,12 +318,12 @@ function ca(i) {
|
|
|
318
318
|
}
|
|
319
319
|
function ha(i, e) {
|
|
320
320
|
var t;
|
|
321
|
-
const a = i.replace(
|
|
321
|
+
const a = i.replace(le.findPipe, (o, n, l) => {
|
|
322
322
|
let c = !1, g = n;
|
|
323
323
|
for (; --g >= 0 && l[g] === "\\"; )
|
|
324
324
|
c = !c;
|
|
325
325
|
return c ? "|" : " |";
|
|
326
|
-
}), s = a.split(
|
|
326
|
+
}), s = a.split(le.splitPipe);
|
|
327
327
|
let r = 0;
|
|
328
328
|
if (s[0].trim() || s.shift(), s.length > 0 && !((t = s.at(-1)) != null && t.trim()) && s.pop(), e)
|
|
329
329
|
if (s.length > e)
|
|
@@ -332,7 +332,7 @@ function ha(i, e) {
|
|
|
332
332
|
for (; s.length < e; )
|
|
333
333
|
s.push("");
|
|
334
334
|
for (; r < s.length; r++)
|
|
335
|
-
s[r] = s[r].trim().replace(
|
|
335
|
+
s[r] = s[r].trim().replace(le.slashPipe, "|");
|
|
336
336
|
return s;
|
|
337
337
|
}
|
|
338
338
|
function ct(i, e, t) {
|
|
@@ -493,18 +493,18 @@ ${g}` : g;
|
|
|
493
493
|
`, 1)[0], y = !f.trim(), x = 0;
|
|
494
494
|
if (this.options.pedantic ? (x = 2, g = f.trimStart()) : y ? x = e[1].length + 1 : (x = e[2].search(this.rules.other.nonSpaceChar), x = x > 4 ? 1 : x, g = f.slice(x), x += e[1].length), y && this.rules.other.blankLine.test(p) && (c += p + `
|
|
495
495
|
`, i = i.substring(p.length + 1), l = !0), !l) {
|
|
496
|
-
const S = this.rules.other.nextBulletRegex(x),
|
|
496
|
+
const S = this.rules.other.nextBulletRegex(x), j = this.rules.other.hrRegex(x), P = this.rules.other.fencesBeginRegex(x), k = this.rules.other.headingBeginRegex(x), O = this.rules.other.htmlBeginRegex(x);
|
|
497
497
|
for (; i; ) {
|
|
498
498
|
const $ = i.split(`
|
|
499
499
|
`, 1)[0];
|
|
500
500
|
let T;
|
|
501
|
-
if (p = $, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), T = p) : T = p.replace(this.rules.other.tabCharGlobal, " "), P.test(p) || k.test(p) || O.test(p) || S.test(p) ||
|
|
501
|
+
if (p = $, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), T = p) : T = p.replace(this.rules.other.tabCharGlobal, " "), P.test(p) || k.test(p) || O.test(p) || S.test(p) || j.test(p))
|
|
502
502
|
break;
|
|
503
503
|
if (T.search(this.rules.other.nonSpaceChar) >= x || !p.trim())
|
|
504
504
|
g += `
|
|
505
505
|
` + T.slice(x);
|
|
506
506
|
else {
|
|
507
|
-
if (y || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || P.test(f) || k.test(f) ||
|
|
507
|
+
if (y || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || P.test(f) || k.test(f) || j.test(f))
|
|
508
508
|
break;
|
|
509
509
|
g += `
|
|
510
510
|
` + p;
|
|
@@ -708,23 +708,23 @@ ${g}` : g;
|
|
|
708
708
|
return { type: "text", raw: e[0], text: e[0], escaped: t };
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
}, Ae = class
|
|
711
|
+
}, Ae = class Ls {
|
|
712
712
|
constructor(e) {
|
|
713
713
|
h(this, "tokens"), h(this, "options"), h(this, "state"), h(this, "tokenizer"), h(this, "inlineQueue"), this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ze, this.options.tokenizer = this.options.tokenizer || new Qt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
714
|
-
const t = { other:
|
|
715
|
-
this.options.pedantic ? (t.block =
|
|
714
|
+
const t = { other: le, block: Nt.normal, inline: lt.normal };
|
|
715
|
+
this.options.pedantic ? (t.block = Nt.pedantic, t.inline = lt.pedantic) : this.options.gfm && (t.block = Nt.gfm, this.options.breaks ? t.inline = lt.breaks : t.inline = lt.gfm), this.tokenizer.rules = t;
|
|
716
716
|
}
|
|
717
717
|
static get rules() {
|
|
718
|
-
return { block:
|
|
718
|
+
return { block: Nt, inline: lt };
|
|
719
719
|
}
|
|
720
720
|
static lex(e, t) {
|
|
721
|
-
return new
|
|
721
|
+
return new Ls(t).lex(e);
|
|
722
722
|
}
|
|
723
723
|
static lexInline(e, t) {
|
|
724
|
-
return new
|
|
724
|
+
return new Ls(t).inlineTokens(e);
|
|
725
725
|
}
|
|
726
726
|
lex(e) {
|
|
727
|
-
e = e.replace(
|
|
727
|
+
e = e.replace(le.carriageReturn, `
|
|
728
728
|
`), this.blockTokens(e, this.tokens);
|
|
729
729
|
for (let t = 0; t < this.inlineQueue.length; t++) {
|
|
730
730
|
const a = this.inlineQueue[t];
|
|
@@ -734,7 +734,7 @@ ${g}` : g;
|
|
|
734
734
|
}
|
|
735
735
|
blockTokens(e, t = [], a = !1) {
|
|
736
736
|
var s, r, o;
|
|
737
|
-
for (this.options.pedantic && (e = e.replace(
|
|
737
|
+
for (this.options.pedantic && (e = e.replace(le.tabCharGlobal, " ").replace(le.spaceLine, "")); e; ) {
|
|
738
738
|
let n;
|
|
739
739
|
if ((r = (s = this.options.extensions) == null ? void 0 : s.block) != null && r.some((c) => (n = c.call({ lexer: this }, e, t)) ? (e = e.substring(n.raw.length), t.push(n), !0) : !1))
|
|
740
740
|
continue;
|
|
@@ -918,7 +918,7 @@ ${g}` : g;
|
|
|
918
918
|
}
|
|
919
919
|
return t;
|
|
920
920
|
}
|
|
921
|
-
},
|
|
921
|
+
}, Bt = class {
|
|
922
922
|
constructor(i) {
|
|
923
923
|
h(this, "options"), h(this, "parser"), this.options = i || ze;
|
|
924
924
|
}
|
|
@@ -927,7 +927,7 @@ ${g}` : g;
|
|
|
927
927
|
}
|
|
928
928
|
code({ text: i, lang: e, escaped: t }) {
|
|
929
929
|
var a;
|
|
930
|
-
const s = (a = (e || "").match(
|
|
930
|
+
const s = (a = (e || "").match(le.notSpaceStart)) == null ? void 0 : a[0], r = i.replace(le.endingNewline, "") + `
|
|
931
931
|
`;
|
|
932
932
|
return s ? '<pre><code class="language-' + be(s) + '">' + (t ? r : be(r, !0)) + `</code></pre>
|
|
933
933
|
` : "<pre><code>" + (t ? r : be(r, !0)) + `</code></pre>
|
|
@@ -1070,15 +1070,15 @@ ${i}</tr>
|
|
|
1070
1070
|
br() {
|
|
1071
1071
|
return "";
|
|
1072
1072
|
}
|
|
1073
|
-
}, Ie = class
|
|
1073
|
+
}, Ie = class ys {
|
|
1074
1074
|
constructor(e) {
|
|
1075
|
-
h(this, "options"), h(this, "renderer"), h(this, "textRenderer"), this.options = e || ze, this.options.renderer = this.options.renderer || new
|
|
1075
|
+
h(this, "options"), h(this, "renderer"), h(this, "textRenderer"), this.options = e || ze, this.options.renderer = this.options.renderer || new Bt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $s();
|
|
1076
1076
|
}
|
|
1077
1077
|
static parse(e, t) {
|
|
1078
|
-
return new
|
|
1078
|
+
return new ys(t).parse(e);
|
|
1079
1079
|
}
|
|
1080
1080
|
static parseInline(e, t) {
|
|
1081
|
-
return new
|
|
1081
|
+
return new ys(t).parseInline(e);
|
|
1082
1082
|
}
|
|
1083
1083
|
parse(e, t = !0) {
|
|
1084
1084
|
var a, s;
|
|
@@ -1212,7 +1212,7 @@ ${i}</tr>
|
|
|
1212
1212
|
}
|
|
1213
1213
|
return r;
|
|
1214
1214
|
}
|
|
1215
|
-
},
|
|
1215
|
+
}, rs, $t = (rs = class {
|
|
1216
1216
|
constructor(i) {
|
|
1217
1217
|
h(this, "options"), h(this, "block"), this.options = i || ze;
|
|
1218
1218
|
}
|
|
@@ -1231,9 +1231,9 @@ ${i}</tr>
|
|
|
1231
1231
|
provideParser() {
|
|
1232
1232
|
return this.block ? Ie.parse : Ie.parseInline;
|
|
1233
1233
|
}
|
|
1234
|
-
}, h(
|
|
1234
|
+
}, h(rs, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), rs), Hi = class {
|
|
1235
1235
|
constructor(...i) {
|
|
1236
|
-
h(this, "defaults", As()), h(this, "options", this.setOptions), h(this, "parse", this.parseMarkdown(!0)), h(this, "parseInline", this.parseMarkdown(!1)), h(this, "Parser", Ie), h(this, "Renderer",
|
|
1236
|
+
h(this, "defaults", As()), h(this, "options", this.setOptions), h(this, "parse", this.parseMarkdown(!0)), h(this, "parseInline", this.parseMarkdown(!1)), h(this, "Parser", Ie), h(this, "Renderer", Bt), h(this, "TextRenderer", $s), h(this, "Lexer", Ae), h(this, "Tokenizer", Qt), h(this, "Hooks", $t), this.use(...i);
|
|
1237
1237
|
}
|
|
1238
1238
|
walkTokens(i, e) {
|
|
1239
1239
|
var t, a;
|
|
@@ -1286,7 +1286,7 @@ ${i}</tr>
|
|
|
1286
1286
|
}
|
|
1287
1287
|
"childTokens" in s && s.childTokens && (e.childTokens[s.name] = s.childTokens);
|
|
1288
1288
|
}), a.extensions = e), t.renderer) {
|
|
1289
|
-
const s = this.defaults.renderer || new
|
|
1289
|
+
const s = this.defaults.renderer || new Bt(this.defaults);
|
|
1290
1290
|
for (const r in t.renderer) {
|
|
1291
1291
|
if (!(r in s))
|
|
1292
1292
|
throw new Error(`renderer '${r}' does not exist`);
|
|
@@ -1390,7 +1390,7 @@ Please report this to https://github.com/markedjs/marked.`, i) {
|
|
|
1390
1390
|
throw t;
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
|
-
}, Fe = new
|
|
1393
|
+
}, Fe = new Hi();
|
|
1394
1394
|
function z(i, e) {
|
|
1395
1395
|
return Fe.parse(i, e);
|
|
1396
1396
|
}
|
|
@@ -1400,13 +1400,13 @@ z.options = z.setOptions = function(i) {
|
|
|
1400
1400
|
return Fe.use(...i), z.defaults = Fe.defaults, na(z.defaults), z;
|
|
1401
1401
|
}, z.walkTokens = function(i, e) {
|
|
1402
1402
|
return Fe.walkTokens(i, e);
|
|
1403
|
-
}, z.parseInline = Fe.parseInline, z.Parser = Ie, z.parser = Ie.parse, z.Renderer =
|
|
1404
|
-
/*! @license DOMPurify 3.3.
|
|
1405
|
-
const { entries: Wa, setPrototypeOf: da, isFrozen:
|
|
1406
|
-
let { freeze:
|
|
1407
|
-
|
|
1403
|
+
}, z.parseInline = Fe.parseInline, z.Parser = Ie, z.parser = Ie.parse, z.Renderer = Bt, z.TextRenderer = $s, z.Lexer = Ae, z.lexer = Ae.lex, z.Tokenizer = Qt, z.Hooks = $t, z.parse = z, z.options, z.setOptions, z.use, z.walkTokens, z.parseInline, Ie.parse, Ae.lex;
|
|
1404
|
+
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
1405
|
+
const { entries: Wa, setPrototypeOf: da, isFrozen: Qi, getPrototypeOf: Bi, getOwnPropertyDescriptor: qi } = Object;
|
|
1406
|
+
let { freeze: ce, seal: me, create: zt } = Object, { apply: xs, construct: ws } = typeof Reflect < "u" && Reflect;
|
|
1407
|
+
ce || (ce = function(i) {
|
|
1408
1408
|
return i;
|
|
1409
|
-
}),
|
|
1409
|
+
}), me || (me = function(i) {
|
|
1410
1410
|
return i;
|
|
1411
1411
|
}), xs || (xs = function(i, e) {
|
|
1412
1412
|
for (var t = arguments.length, a = new Array(t > 2 ? t - 2 : 0), s = 2; s < t; s++)
|
|
@@ -1417,8 +1417,8 @@ le || (le = function(i) {
|
|
|
1417
1417
|
t[a - 1] = arguments[a];
|
|
1418
1418
|
return new i(...t);
|
|
1419
1419
|
});
|
|
1420
|
-
const Ot =
|
|
1421
|
-
function
|
|
1420
|
+
const Ot = he(Array.prototype.forEach), Ui = he(Array.prototype.lastIndexOf), ga = he(Array.prototype.pop), ht = he(Array.prototype.push), Yi = he(Array.prototype.splice), _t = he(String.prototype.toLowerCase), ns = he(String.prototype.toString), os = he(String.prototype.match), ut = he(String.prototype.replace), Ji = he(String.prototype.indexOf), Gi = he(String.prototype.trim), ge = he(Object.prototype.hasOwnProperty), ne = he(RegExp.prototype.test), dt = Ki(TypeError);
|
|
1421
|
+
function he(i) {
|
|
1422
1422
|
return function(e) {
|
|
1423
1423
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
1424
1424
|
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
@@ -1433,15 +1433,15 @@ function Ki(i) {
|
|
|
1433
1433
|
return ws(i, t);
|
|
1434
1434
|
};
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
1436
|
+
function D(i, e) {
|
|
1437
|
+
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _t;
|
|
1438
1438
|
da && da(i, null);
|
|
1439
1439
|
let a = e.length;
|
|
1440
1440
|
for (; a--; ) {
|
|
1441
1441
|
let s = e[a];
|
|
1442
1442
|
if (typeof s == "string") {
|
|
1443
1443
|
const r = t(s);
|
|
1444
|
-
r !== s && (
|
|
1444
|
+
r !== s && (Qi(e) || (e[a] = r), s = r);
|
|
1445
1445
|
}
|
|
1446
1446
|
i[s] = !0;
|
|
1447
1447
|
}
|
|
@@ -1449,13 +1449,13 @@ function N(i, e) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
function Zi(i) {
|
|
1451
1451
|
for (let e = 0; e < i.length; e++)
|
|
1452
|
-
|
|
1452
|
+
ge(i, e) || (i[e] = null);
|
|
1453
1453
|
return i;
|
|
1454
1454
|
}
|
|
1455
1455
|
function Me(i) {
|
|
1456
|
-
const e =
|
|
1456
|
+
const e = zt(null);
|
|
1457
1457
|
for (const [t, a] of Wa(i))
|
|
1458
|
-
|
|
1458
|
+
ge(i, t) && (Array.isArray(a) ? e[t] = Zi(a) : a && typeof a == "object" && a.constructor === Object ? e[t] = Me(a) : e[t] = a);
|
|
1459
1459
|
return e;
|
|
1460
1460
|
}
|
|
1461
1461
|
function gt(i, e) {
|
|
@@ -1463,9 +1463,9 @@ function gt(i, e) {
|
|
|
1463
1463
|
const a = qi(i, e);
|
|
1464
1464
|
if (a) {
|
|
1465
1465
|
if (a.get)
|
|
1466
|
-
return
|
|
1466
|
+
return he(a.get);
|
|
1467
1467
|
if (typeof a.value == "function")
|
|
1468
|
-
return
|
|
1468
|
+
return he(a.value);
|
|
1469
1469
|
}
|
|
1470
1470
|
i = Bi(i);
|
|
1471
1471
|
}
|
|
@@ -1474,8 +1474,8 @@ function gt(i, e) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
return t;
|
|
1476
1476
|
}
|
|
1477
|
-
const pa =
|
|
1478
|
-
var ya = Object.freeze({ __proto__: null, ARIA_ATTR: rr, ATTR_WHITESPACE: or, CUSTOM_ELEMENT: lr, DATA_ATTR: ir, DOCTYPE_NAME:
|
|
1477
|
+
const pa = ce(["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", "search", "section", "select", "shadow", "slot", "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"]), ls = ce(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), cs = ce(["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"]), Xi = ce(["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"]), hs = ce(["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"]), er = ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ma = ce(["#text"]), fa = ce(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), us = ce(["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", "mask-type", "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"]), La = ce(["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"]), Pt = ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), tr = me(/\{\{[\w\W]*|[\w\W]*\}\}/gm), sr = me(/<%[\w\W]*|[\w\W]*%>/gm), ar = me(/\$\{[\w\W]*/gm), ir = me(/^data-[\-\w.\u00B7-\uFFFF]+$/), rr = me(/^aria-[\-\w]+$/), Va = me(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), nr = me(/^(?:\w+script|data):/i), or = me(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ha = me(/^html$/i), lr = me(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1478
|
+
var ya = Object.freeze({ __proto__: null, ARIA_ATTR: rr, ATTR_WHITESPACE: or, CUSTOM_ELEMENT: lr, DATA_ATTR: ir, DOCTYPE_NAME: Ha, ERB_EXPR: sr, IS_ALLOWED_URI: Va, IS_SCRIPT_OR_DATA: nr, MUSTACHE_EXPR: tr, TMPLIT_EXPR: ar });
|
|
1479
1479
|
const pt = { element: 1, attribute: 2, text: 3, cdataSection: 4, entityReference: 5, entityNode: 6, progressingInstruction: 7, comment: 8, document: 9, documentType: 10, documentFragment: 11, notation: 12 }, cr = function() {
|
|
1480
1480
|
return typeof window > "u" ? null : window;
|
|
1481
1481
|
}, hr = function(i, e) {
|
|
@@ -1497,49 +1497,49 @@ const pt = { element: 1, attribute: 2, text: 3, cdataSection: 4, entityReference
|
|
|
1497
1497
|
}, xa = function() {
|
|
1498
1498
|
return { afterSanitizeAttributes: [], afterSanitizeElements: [], afterSanitizeShadowDOM: [], beforeSanitizeAttributes: [], beforeSanitizeElements: [], beforeSanitizeShadowDOM: [], uponSanitizeAttribute: [], uponSanitizeElement: [], uponSanitizeShadowNode: [] };
|
|
1499
1499
|
};
|
|
1500
|
-
function
|
|
1500
|
+
function Qa() {
|
|
1501
1501
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : cr();
|
|
1502
|
-
const e = (d) =>
|
|
1503
|
-
if (e.version = "3.3.
|
|
1502
|
+
const e = (d) => Qa(d);
|
|
1503
|
+
if (e.version = "3.3.3", e.removed = [], !i || !i.document || i.document.nodeType !== pt.document || !i.Element)
|
|
1504
1504
|
return e.isSupported = !1, e;
|
|
1505
1505
|
let { document: t } = i;
|
|
1506
|
-
const a = t, s = a.currentScript, { DocumentFragment: r, HTMLTemplateElement: o, Node: n, Element: l, NodeFilter: c, NamedNodeMap: g = i.NamedNodeMap || i.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: y } = i, x = l.prototype, m = gt(x, "cloneNode"), w = gt(x, "remove"), S = gt(x, "nextSibling"),
|
|
1506
|
+
const a = t, s = a.currentScript, { DocumentFragment: r, HTMLTemplateElement: o, Node: n, Element: l, NodeFilter: c, NamedNodeMap: g = i.NamedNodeMap || i.MozNamedAttrMap, HTMLFormElement: f, DOMParser: p, trustedTypes: y } = i, x = l.prototype, m = gt(x, "cloneNode"), w = gt(x, "remove"), S = gt(x, "nextSibling"), j = gt(x, "childNodes"), P = gt(x, "parentNode");
|
|
1507
1507
|
if (typeof o == "function") {
|
|
1508
1508
|
const d = t.createElement("template");
|
|
1509
1509
|
d.content && d.content.ownerDocument && (t = d.content.ownerDocument);
|
|
1510
1510
|
}
|
|
1511
1511
|
let k, O = "";
|
|
1512
|
-
const { implementation: $, createNodeIterator: T, createDocumentFragment: R, getElementsByTagName: B } = t, { importNode:
|
|
1513
|
-
let
|
|
1512
|
+
const { implementation: $, createNodeIterator: T, createDocumentFragment: R, getElementsByTagName: B } = t, { importNode: de } = a;
|
|
1513
|
+
let H = xa();
|
|
1514
1514
|
e.isSupported = typeof Wa == "function" && typeof P == "function" && $ && $.createHTMLDocument !== void 0;
|
|
1515
1515
|
const { MUSTACHE_EXPR: ie, ERB_EXPR: Ce, TMPLIT_EXPR: Re, DATA_ATTR: et, ARIA_ATTR: Ct, IS_SCRIPT_OR_DATA: St, ATTR_WHITESPACE: tt, CUSTOM_ELEMENT: kt } = ya;
|
|
1516
1516
|
let { IS_ALLOWED_URI: st } = ya, L = null;
|
|
1517
|
-
const A =
|
|
1517
|
+
const A = D({}, [...pa, ...ls, ...cs, ...hs, ...ma]);
|
|
1518
1518
|
let I = null;
|
|
1519
|
-
const J =
|
|
1520
|
-
let
|
|
1521
|
-
const
|
|
1522
|
-
let _e = !0, at = !0, _s = !1, Ws = !0, We = !1, Tt = !0,
|
|
1519
|
+
const J = D({}, [...fa, ...us, ...La, ...Pt]);
|
|
1520
|
+
let Q = Object.seal(zt(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), Se = null, q = null;
|
|
1521
|
+
const re = Object.seal(zt(null, { tagCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeCheck: { writable: !0, configurable: !1, enumerable: !0, value: null } }));
|
|
1522
|
+
let _e = !0, at = !0, _s = !1, Ws = !0, We = !1, Tt = !0, Ne = !1, Jt = !1, Gt = !1, Ve = !1, Et = !1, jt = !1, Vs = !0, Hs = !1;
|
|
1523
1523
|
const Ua = "user-content-";
|
|
1524
|
-
let
|
|
1525
|
-
const
|
|
1526
|
-
let
|
|
1527
|
-
const Bs =
|
|
1528
|
-
let
|
|
1529
|
-
const qs =
|
|
1530
|
-
let
|
|
1531
|
-
const Ya =
|
|
1532
|
-
let Rt =
|
|
1533
|
-
const Ja =
|
|
1524
|
+
let Kt = !0, it = !1, He = {}, ve = null;
|
|
1525
|
+
const Zt = D({}, ["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"]);
|
|
1526
|
+
let Qs = null;
|
|
1527
|
+
const Bs = D({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1528
|
+
let Xt = null;
|
|
1529
|
+
const qs = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), At = "http://www.w3.org/1998/Math/MathML", It = "http://www.w3.org/2000/svg", ke = "http://www.w3.org/1999/xhtml";
|
|
1530
|
+
let Qe = ke, es = !1, ts = null;
|
|
1531
|
+
const Ya = D({}, [At, It, ke], ns);
|
|
1532
|
+
let Rt = D({}, ["mi", "mo", "mn", "ms", "mtext"]), Dt = D({}, ["annotation-xml"]);
|
|
1533
|
+
const Ja = D({}, ["title", "style", "font", "a", "script"]);
|
|
1534
1534
|
let rt = null;
|
|
1535
1535
|
const Ga = ["application/xhtml+xml", "text/html"], Ka = "text/html";
|
|
1536
1536
|
let Z = null, Be = null;
|
|
1537
1537
|
const Za = t.createElement("form"), Us = function(d) {
|
|
1538
1538
|
return d instanceof RegExp || d instanceof Function;
|
|
1539
|
-
},
|
|
1539
|
+
}, ss = function() {
|
|
1540
1540
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1541
1541
|
if (!(Be && Be === d)) {
|
|
1542
|
-
if ((!d || typeof d != "object") && (d = {}), d = Me(d), rt = Ga.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? Ka : d.PARSER_MEDIA_TYPE, Z = rt === "application/xhtml+xml" ?
|
|
1542
|
+
if ((!d || typeof d != "object") && (d = {}), d = Me(d), rt = Ga.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? Ka : d.PARSER_MEDIA_TYPE, Z = rt === "application/xhtml+xml" ? ns : _t, L = ge(d, "ALLOWED_TAGS") ? D({}, d.ALLOWED_TAGS, Z) : A, I = ge(d, "ALLOWED_ATTR") ? D({}, d.ALLOWED_ATTR, Z) : J, ts = ge(d, "ALLOWED_NAMESPACES") ? D({}, d.ALLOWED_NAMESPACES, ns) : Ya, Xt = ge(d, "ADD_URI_SAFE_ATTR") ? D(Me(qs), d.ADD_URI_SAFE_ATTR, Z) : qs, Qs = ge(d, "ADD_DATA_URI_TAGS") ? D(Me(Bs), d.ADD_DATA_URI_TAGS, Z) : Bs, ve = ge(d, "FORBID_CONTENTS") ? D({}, d.FORBID_CONTENTS, Z) : Zt, Se = ge(d, "FORBID_TAGS") ? D({}, d.FORBID_TAGS, Z) : Me({}), q = ge(d, "FORBID_ATTR") ? D({}, d.FORBID_ATTR, Z) : Me({}), He = ge(d, "USE_PROFILES") ? d.USE_PROFILES : !1, _e = d.ALLOW_ARIA_ATTR !== !1, at = d.ALLOW_DATA_ATTR !== !1, _s = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Ws = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, We = d.SAFE_FOR_TEMPLATES || !1, Tt = d.SAFE_FOR_XML !== !1, Ne = d.WHOLE_DOCUMENT || !1, Ve = d.RETURN_DOM || !1, Et = d.RETURN_DOM_FRAGMENT || !1, jt = d.RETURN_TRUSTED_TYPE || !1, Gt = d.FORCE_BODY || !1, Vs = d.SANITIZE_DOM !== !1, Hs = d.SANITIZE_NAMED_PROPS || !1, Kt = d.KEEP_CONTENT !== !1, it = d.IN_PLACE || !1, st = d.ALLOWED_URI_REGEXP || Va, Qe = d.NAMESPACE || ke, Rt = d.MATHML_TEXT_INTEGRATION_POINTS || Rt, Dt = d.HTML_INTEGRATION_POINTS || Dt, Q = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Us(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Us(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), We && (at = !1), Et && (Ve = !0), He && (L = D({}, ma), I = zt(null), He.html === !0 && (D(L, pa), D(I, fa)), He.svg === !0 && (D(L, ls), D(I, us), D(I, Pt)), He.svgFilters === !0 && (D(L, cs), D(I, us), D(I, Pt)), He.mathMl === !0 && (D(L, hs), D(I, La), D(I, Pt))), ge(d, "ADD_TAGS") || (re.tagCheck = null), ge(d, "ADD_ATTR") || (re.attributeCheck = null), d.ADD_TAGS && (typeof d.ADD_TAGS == "function" ? re.tagCheck = d.ADD_TAGS : (L === A && (L = Me(L)), D(L, d.ADD_TAGS, Z))), d.ADD_ATTR && (typeof d.ADD_ATTR == "function" ? re.attributeCheck = d.ADD_ATTR : (I === J && (I = Me(I)), D(I, d.ADD_ATTR, Z))), d.ADD_URI_SAFE_ATTR && D(Xt, d.ADD_URI_SAFE_ATTR, Z), d.FORBID_CONTENTS && (ve === Zt && (ve = Me(ve)), D(ve, d.FORBID_CONTENTS, Z)), d.ADD_FORBID_CONTENTS && (ve === Zt && (ve = Me(ve)), D(ve, d.ADD_FORBID_CONTENTS, Z)), Kt && (L["#text"] = !0), Ne && D(L, ["html", "head", "body"]), L.table && (D(L, ["tbody"]), delete Se.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
1543
1543
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1544
1544
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1545
1545
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -1547,13 +1547,13 @@ function Ha() {
|
|
|
1547
1547
|
k = d.TRUSTED_TYPES_POLICY, O = k.createHTML("");
|
|
1548
1548
|
} else
|
|
1549
1549
|
k === void 0 && (k = hr(y, s)), k !== null && typeof O == "string" && (O = k.createHTML(""));
|
|
1550
|
-
|
|
1550
|
+
ce && ce(d), Be = d;
|
|
1551
1551
|
}
|
|
1552
|
-
}, Ys =
|
|
1552
|
+
}, Ys = D({}, [...ls, ...cs, ...Xi]), Js = D({}, [...hs, ...er]), Xa = function(d) {
|
|
1553
1553
|
let M = P(d);
|
|
1554
|
-
(!M || !M.tagName) && (M = { namespaceURI:
|
|
1555
|
-
const v =
|
|
1556
|
-
return
|
|
1554
|
+
(!M || !M.tagName) && (M = { namespaceURI: Qe, tagName: "template" });
|
|
1555
|
+
const v = _t(d.tagName), W = _t(M.tagName);
|
|
1556
|
+
return ts[d.namespaceURI] ? d.namespaceURI === It ? M.namespaceURI === ke ? v === "svg" : M.namespaceURI === At ? v === "svg" && (W === "annotation-xml" || Rt[W]) : !!Ys[v] : d.namespaceURI === At ? M.namespaceURI === ke ? v === "math" : M.namespaceURI === It ? v === "math" && Dt[W] : !!Js[v] : d.namespaceURI === ke ? M.namespaceURI === It && !Dt[W] || M.namespaceURI === At && !Rt[W] ? !1 : !Js[v] && (Ja[v] || !Ys[v]) : !!(rt === "application/xhtml+xml" && ts[d.namespaceURI]) : !1;
|
|
1557
1557
|
}, Oe = function(d) {
|
|
1558
1558
|
ht(e.removed, { element: d });
|
|
1559
1559
|
try {
|
|
@@ -1568,7 +1568,7 @@ function Ha() {
|
|
|
1568
1568
|
ht(e.removed, { attribute: null, from: M });
|
|
1569
1569
|
}
|
|
1570
1570
|
if (M.removeAttribute(d), d === "is")
|
|
1571
|
-
if (Ve ||
|
|
1571
|
+
if (Ve || Et)
|
|
1572
1572
|
try {
|
|
1573
1573
|
Oe(M);
|
|
1574
1574
|
} catch {
|
|
@@ -1580,31 +1580,31 @@ function Ha() {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
}, Gs = function(d) {
|
|
1582
1582
|
let M = null, v = null;
|
|
1583
|
-
if (
|
|
1583
|
+
if (Gt)
|
|
1584
1584
|
d = "<remove></remove>" + d;
|
|
1585
1585
|
else {
|
|
1586
|
-
const Y =
|
|
1586
|
+
const Y = os(d, /^[\r\n\t ]+/);
|
|
1587
1587
|
v = Y && Y[0];
|
|
1588
1588
|
}
|
|
1589
|
-
rt === "application/xhtml+xml" &&
|
|
1589
|
+
rt === "application/xhtml+xml" && Qe === ke && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
1590
1590
|
const W = k ? k.createHTML(d) : d;
|
|
1591
|
-
if (
|
|
1591
|
+
if (Qe === ke)
|
|
1592
1592
|
try {
|
|
1593
1593
|
M = new p().parseFromString(W, rt);
|
|
1594
1594
|
} catch {
|
|
1595
1595
|
}
|
|
1596
1596
|
if (!M || !M.documentElement) {
|
|
1597
|
-
M = $.createDocument(
|
|
1597
|
+
M = $.createDocument(Qe, "template", null);
|
|
1598
1598
|
try {
|
|
1599
|
-
M.documentElement.innerHTML =
|
|
1599
|
+
M.documentElement.innerHTML = es ? O : W;
|
|
1600
1600
|
} catch {
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
const se = M.body || M.documentElement;
|
|
1604
|
-
return d && v && se.insertBefore(t.createTextNode(v), se.childNodes[0] || null),
|
|
1604
|
+
return d && v && se.insertBefore(t.createTextNode(v), se.childNodes[0] || null), Qe === ke ? B.call(M, Ne ? "html" : "body")[0] : Ne ? M.documentElement : se;
|
|
1605
1605
|
}, Ks = function(d) {
|
|
1606
1606
|
return T.call(d.ownerDocument || d, d, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
1607
|
-
},
|
|
1607
|
+
}, as = function(d) {
|
|
1608
1608
|
return d instanceof f && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof g) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
|
|
1609
1609
|
}, Zs = function(d) {
|
|
1610
1610
|
return typeof n == "function" && d instanceof n;
|
|
@@ -1616,57 +1616,57 @@ function Ha() {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
const Xs = function(d) {
|
|
1618
1618
|
let M = null;
|
|
1619
|
-
if (Te(
|
|
1619
|
+
if (Te(H.beforeSanitizeElements, d, null), as(d))
|
|
1620
1620
|
return Oe(d), !0;
|
|
1621
1621
|
const v = Z(d.nodeName);
|
|
1622
|
-
if (Te(
|
|
1622
|
+
if (Te(H.uponSanitizeElement, d, { tagName: v, allowedTags: L }), Tt && d.hasChildNodes() && !Zs(d.firstElementChild) && ne(/<[/\w!]/g, d.innerHTML) && ne(/<[/\w!]/g, d.textContent) || d.nodeType === pt.progressingInstruction || Tt && d.nodeType === pt.comment && ne(/<[/\w]/g, d.data))
|
|
1623
1623
|
return Oe(d), !0;
|
|
1624
|
-
if (!(
|
|
1625
|
-
if (!Se[v] && ta(v) && (
|
|
1624
|
+
if (!(re.tagCheck instanceof Function && re.tagCheck(v)) && (!L[v] || Se[v])) {
|
|
1625
|
+
if (!Se[v] && ta(v) && (Q.tagNameCheck instanceof RegExp && ne(Q.tagNameCheck, v) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(v)))
|
|
1626
1626
|
return !1;
|
|
1627
|
-
if (
|
|
1628
|
-
const W = P(d) || d.parentNode, se =
|
|
1627
|
+
if (Kt && !ve[v]) {
|
|
1628
|
+
const W = P(d) || d.parentNode, se = j(d) || d.childNodes;
|
|
1629
1629
|
if (se && W) {
|
|
1630
1630
|
const Y = se.length;
|
|
1631
|
-
for (let
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1631
|
+
for (let Ee = Y - 1; Ee >= 0; --Ee) {
|
|
1632
|
+
const fe = m(se[Ee], !0);
|
|
1633
|
+
fe.__removalCount = (d.__removalCount || 0) + 1, W.insertBefore(fe, S(d));
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
return Oe(d), !0;
|
|
1638
1638
|
}
|
|
1639
|
-
return d instanceof l && !Xa(d) || (v === "noscript" || v === "noembed" || v === "noframes") &&
|
|
1639
|
+
return d instanceof l && !Xa(d) || (v === "noscript" || v === "noembed" || v === "noframes") && ne(/<\/no(script|embed|frames)/i, d.innerHTML) ? (Oe(d), !0) : (We && d.nodeType === pt.text && (M = d.textContent, Ot([ie, Ce, Re], (W) => {
|
|
1640
1640
|
M = ut(M, W, " ");
|
|
1641
|
-
}), d.textContent !== M && (ht(e.removed, { element: d.cloneNode() }), d.textContent = M)), Te(
|
|
1641
|
+
}), d.textContent !== M && (ht(e.removed, { element: d.cloneNode() }), d.textContent = M)), Te(H.afterSanitizeElements, d, null), !1);
|
|
1642
1642
|
}, ea = function(d, M, v) {
|
|
1643
|
-
if (Vs && (M === "id" || M === "name") && (v in t || v in Za))
|
|
1643
|
+
if (q[M] || Vs && (M === "id" || M === "name") && (v in t || v in Za))
|
|
1644
1644
|
return !1;
|
|
1645
|
-
if (!(at && !
|
|
1646
|
-
if (!I[M] ||
|
|
1647
|
-
if (!(ta(d) && (
|
|
1645
|
+
if (!(at && !q[M] && ne(et, M)) && !(_e && ne(Ct, M)) && !(re.attributeCheck instanceof Function && re.attributeCheck(M, d))) {
|
|
1646
|
+
if (!I[M] || q[M]) {
|
|
1647
|
+
if (!(ta(d) && (Q.tagNameCheck instanceof RegExp && ne(Q.tagNameCheck, d) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(d)) && (Q.attributeNameCheck instanceof RegExp && ne(Q.attributeNameCheck, M) || Q.attributeNameCheck instanceof Function && Q.attributeNameCheck(M, d)) || M === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && ne(Q.tagNameCheck, v) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(v))))
|
|
1648
1648
|
return !1;
|
|
1649
|
-
} else if (!
|
|
1649
|
+
} else if (!Xt[M] && !ne(st, ut(v, tt, "")) && !((M === "src" || M === "xlink:href" || M === "href") && d !== "script" && Ji(v, "data:") === 0 && Qs[d]) && !(_s && !ne(St, ut(v, tt, ""))) && v)
|
|
1650
1650
|
return !1;
|
|
1651
1651
|
}
|
|
1652
1652
|
return !0;
|
|
1653
1653
|
}, ta = function(d) {
|
|
1654
|
-
return d !== "annotation-xml" &&
|
|
1654
|
+
return d !== "annotation-xml" && os(d, kt);
|
|
1655
1655
|
}, sa = function(d) {
|
|
1656
|
-
Te(
|
|
1656
|
+
Te(H.beforeSanitizeAttributes, d, null);
|
|
1657
1657
|
const { attributes: M } = d;
|
|
1658
|
-
if (!M ||
|
|
1658
|
+
if (!M || as(d))
|
|
1659
1659
|
return;
|
|
1660
1660
|
const v = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: I, forceKeepAttr: void 0 };
|
|
1661
1661
|
let W = M.length;
|
|
1662
1662
|
for (; W--; ) {
|
|
1663
|
-
const se = M[W], { name: Y, namespaceURI:
|
|
1664
|
-
let ae = Y === "value" ?
|
|
1665
|
-
if (v.attrName =
|
|
1663
|
+
const se = M[W], { name: Y, namespaceURI: Ee, value: fe } = se, Le = Z(Y), is = fe;
|
|
1664
|
+
let ae = Y === "value" ? is : Gi(is);
|
|
1665
|
+
if (v.attrName = Le, v.attrValue = ae, v.keepAttr = !0, v.forceKeepAttr = void 0, Te(H.uponSanitizeAttribute, d, v), ae = v.attrValue, Hs && (Le === "id" || Le === "name") && (Pe(Y, d), ae = Ua + ae), Tt && ne(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, ae)) {
|
|
1666
1666
|
Pe(Y, d);
|
|
1667
1667
|
continue;
|
|
1668
1668
|
}
|
|
1669
|
-
if (
|
|
1669
|
+
if (Le === "attributename" && os(ae, "href")) {
|
|
1670
1670
|
Pe(Y, d);
|
|
1671
1671
|
continue;
|
|
1672
1672
|
}
|
|
@@ -1676,7 +1676,7 @@ function Ha() {
|
|
|
1676
1676
|
Pe(Y, d);
|
|
1677
1677
|
continue;
|
|
1678
1678
|
}
|
|
1679
|
-
if (!Ws &&
|
|
1679
|
+
if (!Ws && ne(/\/>/i, ae)) {
|
|
1680
1680
|
Pe(Y, d);
|
|
1681
1681
|
continue;
|
|
1682
1682
|
}
|
|
@@ -1684,12 +1684,12 @@ function Ha() {
|
|
|
1684
1684
|
ae = ut(ae, ti, " ");
|
|
1685
1685
|
});
|
|
1686
1686
|
const aa = Z(d.nodeName);
|
|
1687
|
-
if (!ea(aa,
|
|
1687
|
+
if (!ea(aa, Le, ae)) {
|
|
1688
1688
|
Pe(Y, d);
|
|
1689
1689
|
continue;
|
|
1690
1690
|
}
|
|
1691
|
-
if (k && typeof y == "object" && typeof y.getAttributeType == "function" && !
|
|
1692
|
-
switch (y.getAttributeType(aa,
|
|
1691
|
+
if (k && typeof y == "object" && typeof y.getAttributeType == "function" && !Ee)
|
|
1692
|
+
switch (y.getAttributeType(aa, Le)) {
|
|
1693
1693
|
case "TrustedHTML": {
|
|
1694
1694
|
ae = k.createHTML(ae);
|
|
1695
1695
|
break;
|
|
@@ -1699,24 +1699,24 @@ function Ha() {
|
|
|
1699
1699
|
break;
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
if (ae !==
|
|
1702
|
+
if (ae !== is)
|
|
1703
1703
|
try {
|
|
1704
|
-
|
|
1704
|
+
Ee ? d.setAttributeNS(Ee, Y, ae) : d.setAttribute(Y, ae), as(d) ? Oe(d) : ga(e.removed);
|
|
1705
1705
|
} catch {
|
|
1706
1706
|
Pe(Y, d);
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
Te(
|
|
1709
|
+
Te(H.afterSanitizeAttributes, d, null);
|
|
1710
1710
|
}, ei = function d(M) {
|
|
1711
1711
|
let v = null;
|
|
1712
1712
|
const W = Ks(M);
|
|
1713
|
-
for (Te(
|
|
1714
|
-
Te(
|
|
1715
|
-
Te(
|
|
1713
|
+
for (Te(H.beforeSanitizeShadowDOM, M, null); v = W.nextNode(); )
|
|
1714
|
+
Te(H.uponSanitizeShadowNode, v, null), Xs(v), sa(v), v.content instanceof r && d(v.content);
|
|
1715
|
+
Te(H.afterSanitizeShadowDOM, M, null);
|
|
1716
1716
|
};
|
|
1717
1717
|
return e.sanitize = function(d) {
|
|
1718
1718
|
let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, W = null, se = null, Y = null;
|
|
1719
|
-
if (
|
|
1719
|
+
if (es = !d, es && (d = "<!-->"), typeof d != "string" && !Zs(d))
|
|
1720
1720
|
if (typeof d.toString == "function") {
|
|
1721
1721
|
if (d = d.toString(), typeof d != "string")
|
|
1722
1722
|
throw dt("dirty is not a string, aborting");
|
|
@@ -1724,63 +1724,63 @@ function Ha() {
|
|
|
1724
1724
|
throw dt("toString is not a function");
|
|
1725
1725
|
if (!e.isSupported)
|
|
1726
1726
|
return d;
|
|
1727
|
-
if (
|
|
1727
|
+
if (Jt || ss(M), e.removed = [], typeof d == "string" && (it = !1), it) {
|
|
1728
1728
|
if (d.nodeName) {
|
|
1729
|
-
const
|
|
1730
|
-
if (!L[
|
|
1729
|
+
const Le = Z(d.nodeName);
|
|
1730
|
+
if (!L[Le] || Se[Le])
|
|
1731
1731
|
throw dt("root node is forbidden and cannot be sanitized in-place");
|
|
1732
1732
|
}
|
|
1733
1733
|
} else if (d instanceof n)
|
|
1734
1734
|
v = Gs("<!---->"), W = v.ownerDocument.importNode(d, !0), W.nodeType === pt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? v = W : v.appendChild(W);
|
|
1735
1735
|
else {
|
|
1736
|
-
if (!Ve && !We && !
|
|
1737
|
-
return k &&
|
|
1736
|
+
if (!Ve && !We && !Ne && d.indexOf("<") === -1)
|
|
1737
|
+
return k && jt ? k.createHTML(d) : d;
|
|
1738
1738
|
if (v = Gs(d), !v)
|
|
1739
|
-
return Ve ? null :
|
|
1739
|
+
return Ve ? null : jt ? O : "";
|
|
1740
1740
|
}
|
|
1741
|
-
v &&
|
|
1742
|
-
const
|
|
1743
|
-
for (; se =
|
|
1741
|
+
v && Gt && Oe(v.firstChild);
|
|
1742
|
+
const Ee = Ks(it ? d : v);
|
|
1743
|
+
for (; se = Ee.nextNode(); )
|
|
1744
1744
|
Xs(se), sa(se), se.content instanceof r && ei(se.content);
|
|
1745
1745
|
if (it)
|
|
1746
1746
|
return d;
|
|
1747
1747
|
if (Ve) {
|
|
1748
|
-
if (
|
|
1748
|
+
if (Et)
|
|
1749
1749
|
for (Y = R.call(v.ownerDocument); v.firstChild; )
|
|
1750
1750
|
Y.appendChild(v.firstChild);
|
|
1751
1751
|
else
|
|
1752
1752
|
Y = v;
|
|
1753
|
-
return (I.shadowroot || I.shadowrootmode) && (Y =
|
|
1753
|
+
return (I.shadowroot || I.shadowrootmode) && (Y = de.call(a, Y, !0)), Y;
|
|
1754
1754
|
}
|
|
1755
|
-
let
|
|
1756
|
-
return
|
|
1757
|
-
` +
|
|
1758
|
-
|
|
1759
|
-
}), k &&
|
|
1755
|
+
let fe = Ne ? v.outerHTML : v.innerHTML;
|
|
1756
|
+
return Ne && L["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && ne(Ha, v.ownerDocument.doctype.name) && (fe = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
|
|
1757
|
+
` + fe), We && Ot([ie, Ce, Re], (Le) => {
|
|
1758
|
+
fe = ut(fe, Le, " ");
|
|
1759
|
+
}), k && jt ? k.createHTML(fe) : fe;
|
|
1760
1760
|
}, e.setConfig = function() {
|
|
1761
1761
|
let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1762
|
-
|
|
1762
|
+
ss(d), Jt = !0;
|
|
1763
1763
|
}, e.clearConfig = function() {
|
|
1764
|
-
Be = null,
|
|
1764
|
+
Be = null, Jt = !1;
|
|
1765
1765
|
}, e.isValidAttribute = function(d, M, v) {
|
|
1766
|
-
Be ||
|
|
1766
|
+
Be || ss({});
|
|
1767
1767
|
const W = Z(d), se = Z(M);
|
|
1768
1768
|
return ea(W, se, v);
|
|
1769
1769
|
}, e.addHook = function(d, M) {
|
|
1770
|
-
typeof M == "function" && ht(
|
|
1770
|
+
typeof M == "function" && ht(H[d], M);
|
|
1771
1771
|
}, e.removeHook = function(d, M) {
|
|
1772
1772
|
if (M !== void 0) {
|
|
1773
|
-
const v = Ui(
|
|
1774
|
-
return v === -1 ? void 0 : Yi(
|
|
1773
|
+
const v = Ui(H[d], M);
|
|
1774
|
+
return v === -1 ? void 0 : Yi(H[d], v, 1)[0];
|
|
1775
1775
|
}
|
|
1776
|
-
return ga(
|
|
1776
|
+
return ga(H[d]);
|
|
1777
1777
|
}, e.removeHooks = function(d) {
|
|
1778
|
-
|
|
1778
|
+
H[d] = [];
|
|
1779
1779
|
}, e.removeAllHooks = function() {
|
|
1780
|
-
|
|
1780
|
+
H = xa();
|
|
1781
1781
|
}, e;
|
|
1782
1782
|
}
|
|
1783
|
-
var wa =
|
|
1783
|
+
var wa = Qa();
|
|
1784
1784
|
class ur {
|
|
1785
1785
|
constructor(e) {
|
|
1786
1786
|
h(this, "dataLayer"), this.dataLayer = e;
|
|
@@ -1937,7 +1937,7 @@ class ur {
|
|
|
1937
1937
|
return { searchTerm: this.searchTerm, trackApiKey: ((e = this.dataLayer.searchstaxConfig) == null ? void 0 : e.trackApiKey) ?? "", session: this.dataLayer.sessionIdValue, language: this.dataLayer.language, recordsPerPage: ((t = this.dataLayer.searchResultsMetadata) == null ? void 0 : t.recordsPerPageValue) ?? 0, totalResults: ((a = this.dataLayer.searchResultsMetadata) == null ? void 0 : a.totalResultsValue) ?? 0, currentPage: this.dataLayer.currentPage, latencyVal: ((s = this.dataLayer.searchResultsMetadata) == null ? void 0 : s.latency) ?? 0, ...this.dataLayer.model ? { model: this.dataLayer.model } : {} };
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
|
-
class
|
|
1940
|
+
class pe {
|
|
1941
1941
|
static deepEqual(e, t) {
|
|
1942
1942
|
const a = Object.keys(e), s = Object.keys(t);
|
|
1943
1943
|
if (a.length !== s.length)
|
|
@@ -1953,7 +1953,7 @@ class ge {
|
|
|
1953
1953
|
return e != null && typeof e == "object";
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
class
|
|
1956
|
+
class E {
|
|
1957
1957
|
constructor(e) {
|
|
1958
1958
|
h(this, "value"), h(this, "observers", {}), this.value = e, this.observers = {};
|
|
1959
1959
|
}
|
|
@@ -2008,7 +2008,7 @@ class j {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
|
-
class
|
|
2011
|
+
class ds {
|
|
2012
2012
|
static getOrSetCookie(e, t) {
|
|
2013
2013
|
let a = this.getCookie(e);
|
|
2014
2014
|
return a == null && (a = t ?? this.makeid(25), this.setCookie(e, a, { secure: !0, "max-age": 3600 })), a;
|
|
@@ -2047,12 +2047,12 @@ class te {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
class dr {
|
|
2049
2049
|
constructor(e, t) {
|
|
2050
|
-
h(this, "$searchTermChange", new
|
|
2050
|
+
h(this, "$searchTermChange", new E("")), h(this, "$searchLocationChange", new E("")), h(this, "$searchLocationCoordinatesDecoded", new E("")), h(this, "$searchLatChange", new E("")), h(this, "$searchLongChange", new E("")), h(this, "$searchRadiusChange", new E(void 0)), h(this, "$loadingChange", new E(!1)), h(this, "$locationError", new E(!1)), h(this, "$searchResults", new E(null)), h(this, "$searchResultsMetadata", new E(null)), h(this, "$searchAutosuggest", new E(null)), h(this, "$searchFacets", new E(null)), h(this, "$searchFacetsCached", new E(null)), h(this, "$searchFacetsCachedTabs", new E(null)), h(this, "$searchstaxConfig", new E(null)), h(this, "$autosuggestResults", new E(null)), h(this, "$itemsPerPage", new E(void 0)), h(this, "$searchObject", new E({ query: "", itemsPerPage: void 0, page: 99999999, order: "", facets: [], additionalProps: [], location: { term: void 0, radius: void 0, lat: void 0, lon: void 0 }, model: "" })), h(this, "$searchRelatedSearches", new E(null)), h(this, "$searchInputConfig", new E(null)), h(this, "$searchLocationConfig", new E(null)), h(this, "$searchExternalPromotions", new E(null)), h(this, "$facetsTemplateData", new E(null)), h(this, "$selectedFacetsTemplateData", new E(null)), h(this, "$paginationData", new E(null)), h(this, "$answerData", new E(null)), h(this, "$searchFeedbackData", new E(null)), h(this, "$inputWidgetTemplateData", new E(null)), h(this, "$locationWidgetTemplateData", new E(null)), h(this, "$searchSortingData", new E(null)), h(this, "$searchRelatedSearchesData", new E(null)), h(this, "$searchExternalPromotionsData", new E(null)), h(this, "$cookiesDisabled", new E(null)), h(this, "$locationDecodingLoading", new E(!1)), h(this, "$answer", new E("")), h(this, "$language", new E("en")), h(this, "$model", new E("")), h(this, "$answerLoading", new E(!1)), h(this, "$locationEnabled", new E(null)), h(this, "$answerError", new E(!1)), h(this, "$answerErrorMessage", new E("")), h(this, "$isQuestion", new E(!1)), h(this, "$inputTemplateRendered", new E(!1)), h(this, "currentPageValue", 1), h(this, "isAnswerWidgetCreatedValue", !1), h(this, "renderingEngineValue", G.mustache), h(this, "parsedData", new ur(this)), h(this, "sessionId"), h(this, "sessionIdValue", null), h(this, "autoCorrect", !0), h(this, "forceNotCorrect", !1), h(this, "lastSearchValue", ""), h(this, "turnAIAnswerGenerationOn", !1), h(this, "questionURL", ""), h(this, "isInfiniteScroll", !1), h(this, "firstSearchHappened", !1), h(this, "facetsWereSet", !1), h(this, "answerWidgetShowMoreLimit", 100), h(this, "searchHelper"), h(this, "searchResultUnparsed"), this.sessionId = e, t && (this.sessionIdValue = t), this.cookieHandlingCallback(t), this.$cookiesDisabled.subscribe(() => {
|
|
2051
2051
|
this.cookieHandlingCallback(t);
|
|
2052
2052
|
});
|
|
2053
2053
|
}
|
|
2054
2054
|
cookieHandlingCallback(e) {
|
|
2055
|
-
this.cookiesDisabled ? (this.sessionIdValue = null,
|
|
2055
|
+
this.cookiesDisabled ? (this.sessionIdValue = null, ds.deleteCookie(this.sessionId), ds.deleteCookie("ms_visitorid")) : this.sessionIdValue = ds.getOrSetCookie(this.sessionId, e);
|
|
2056
2056
|
}
|
|
2057
2057
|
setIsInfiniteScroll(e) {
|
|
2058
2058
|
this.isInfiniteScroll = e;
|
|
@@ -2079,10 +2079,10 @@ class dr {
|
|
|
2079
2079
|
this.$loadingChange.setValue(e);
|
|
2080
2080
|
}
|
|
2081
2081
|
setSearchResults(e) {
|
|
2082
|
-
this.firstSearchHappened = !0, (!
|
|
2082
|
+
this.firstSearchHappened = !0, (!pe.deepEqual(e, this.searchResults ?? [""]) || this.facetsWereSet) && (this.facetsWereSet = !1, this.$searchResults.setValue(e));
|
|
2083
2083
|
}
|
|
2084
2084
|
setSearchResultsMetadata(e) {
|
|
2085
|
-
|
|
2085
|
+
pe.deepEqual(e, this.searchResultsMetadata ?? {}) || this.$searchResultsMetadata.setValue(e);
|
|
2086
2086
|
}
|
|
2087
2087
|
setSearchAutosuggest(e) {
|
|
2088
2088
|
this.$searchAutosuggest.setValue(e);
|
|
@@ -2090,22 +2090,22 @@ class dr {
|
|
|
2090
2090
|
setSearchObject(e) {
|
|
2091
2091
|
var t, a;
|
|
2092
2092
|
let s = e;
|
|
2093
|
-
s = { ...s, itemsPerPage: this.itemsPerPage, model: this.model }, (a = (t = this.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.beforeSearch && s && (s = this.searchstaxConfig.hooks.beforeSearch(s)), s && (!
|
|
2093
|
+
s = { ...s, itemsPerPage: this.itemsPerPage, model: this.model }, (a = (t = this.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.beforeSearch && s && (s = this.searchstaxConfig.hooks.beforeSearch(s)), s && (!pe.deepEqual(s, this.searchObject ?? {}) || this.forceNotCorrect) && this.$searchObject.setValue(s);
|
|
2094
2094
|
}
|
|
2095
2095
|
setSearchFacets(e) {
|
|
2096
|
-
this.facetsWereSet = !0,
|
|
2096
|
+
this.facetsWereSet = !0, pe.deepEqual(e, this.searchFacets ?? []) || this.$searchFacets.setValue(e);
|
|
2097
2097
|
}
|
|
2098
2098
|
setSearchFacetsCached(e) {
|
|
2099
|
-
|
|
2099
|
+
pe.deepEqual(e, this.searchFacetsCached ?? []) || this.$searchFacetsCached.setValue(e);
|
|
2100
2100
|
}
|
|
2101
2101
|
setSearchFacetsCachedTabs(e) {
|
|
2102
|
-
|
|
2102
|
+
pe.deepEqual(e, this.searchFacetsCachedTabs ?? []) || this.$searchFacetsCachedTabs.setValue(e);
|
|
2103
2103
|
}
|
|
2104
2104
|
setSearchRelatedSearches(e) {
|
|
2105
|
-
|
|
2105
|
+
pe.deepEqual(e, this.searchRelatedSearches ?? []) || this.$searchRelatedSearches.setValue(e);
|
|
2106
2106
|
}
|
|
2107
2107
|
setSearchExternalPromotions(e) {
|
|
2108
|
-
|
|
2108
|
+
pe.deepEqual(e, this.searchExternalPromotions ?? []) || this.$searchExternalPromotions.setValue(e);
|
|
2109
2109
|
}
|
|
2110
2110
|
setLanguage(e) {
|
|
2111
2111
|
this.$language.setValue(e);
|
|
@@ -2197,6 +2197,9 @@ class dr {
|
|
|
2197
2197
|
setLocationEnabled(e) {
|
|
2198
2198
|
this.$locationEnabled.setValue(e);
|
|
2199
2199
|
}
|
|
2200
|
+
setSearchResultUnparsedData(e) {
|
|
2201
|
+
this.searchResultUnparsed = e;
|
|
2202
|
+
}
|
|
2200
2203
|
get getAnswerData() {
|
|
2201
2204
|
return this.$answer.getValue();
|
|
2202
2205
|
}
|
|
@@ -2338,6 +2341,9 @@ class dr {
|
|
|
2338
2341
|
get locationEnabled() {
|
|
2339
2342
|
return this.$locationEnabled.getValue();
|
|
2340
2343
|
}
|
|
2344
|
+
get searchResultUnparsedData() {
|
|
2345
|
+
return this.searchResultUnparsed;
|
|
2346
|
+
}
|
|
2341
2347
|
}
|
|
2342
2348
|
class mt {
|
|
2343
2349
|
static combineResultsWithMetadata(e) {
|
|
@@ -2521,18 +2527,18 @@ class ba extends Error {
|
|
|
2521
2527
|
super(e), this.name = "ParseError", this.type = t.type, this.field = t.field, this.value = t.value, this.line = t.line;
|
|
2522
2528
|
}
|
|
2523
2529
|
}
|
|
2524
|
-
function
|
|
2530
|
+
function gs(i) {
|
|
2525
2531
|
}
|
|
2526
2532
|
function pr(i) {
|
|
2527
2533
|
if (typeof i == "function")
|
|
2528
2534
|
throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");
|
|
2529
|
-
const { onEvent: e =
|
|
2535
|
+
const { onEvent: e = gs, onError: t = gs, onRetry: a = gs, onComment: s } = i;
|
|
2530
2536
|
let r = "", o = !0, n, l = "", c = "";
|
|
2531
2537
|
function g(m) {
|
|
2532
|
-
const w = o ? m.replace(/^\xEF\xBB\xBF/, "") : m, [S,
|
|
2538
|
+
const w = o ? m.replace(/^\xEF\xBB\xBF/, "") : m, [S, j] = mr(`${r}${w}`);
|
|
2533
2539
|
for (const P of S)
|
|
2534
2540
|
f(P);
|
|
2535
|
-
r =
|
|
2541
|
+
r = j, o = !1;
|
|
2536
2542
|
}
|
|
2537
2543
|
function f(m) {
|
|
2538
2544
|
if (m === "") {
|
|
@@ -2545,7 +2551,7 @@ function pr(i) {
|
|
|
2545
2551
|
}
|
|
2546
2552
|
const w = m.indexOf(":");
|
|
2547
2553
|
if (w !== -1) {
|
|
2548
|
-
const S = m.slice(0, w),
|
|
2554
|
+
const S = m.slice(0, w), j = m[w + 1] === " " ? 2 : 1, P = m.slice(w + j);
|
|
2549
2555
|
p(S, P, m);
|
|
2550
2556
|
return;
|
|
2551
2557
|
}
|
|
@@ -2622,89 +2628,89 @@ function Ca(i) {
|
|
|
2622
2628
|
}
|
|
2623
2629
|
var Ba = (i) => {
|
|
2624
2630
|
throw TypeError(i);
|
|
2625
|
-
}, zs = (i, e, t) => e.has(i) || Ba("Cannot " + t),
|
|
2626
|
-
class
|
|
2631
|
+
}, zs = (i, e, t) => e.has(i) || Ba("Cannot " + t), N = (i, e, t) => (zs(i, e, "read from private field"), t ? t.call(i) : e.get(i)), X = (i, e, t) => e.has(i) ? Ba("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), U = (i, e, t, a) => (zs(i, e, "write to private field"), e.set(i, t), t), je = (i, e, t) => (zs(i, e, "access private method"), t), ue, $e, qe, Wt, qt, xt, Ge, wt, De, Ue, Ze, Ye, ft, ye, bs, Ms, Cs, Sa, Ss, ks, Lt, Ts, Es;
|
|
2632
|
+
class Vt extends EventTarget {
|
|
2627
2633
|
constructor(e, t) {
|
|
2628
2634
|
var a, s;
|
|
2629
|
-
super(), X(this, ye), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, X(this,
|
|
2635
|
+
super(), X(this, ye), this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, X(this, ue), X(this, $e), X(this, qe), X(this, Wt), X(this, qt), X(this, xt), X(this, Ge), X(this, wt, null), X(this, De), X(this, Ue), X(this, Ze, null), X(this, Ye, null), X(this, ft, null), X(this, Ms, async (r) => {
|
|
2630
2636
|
var o;
|
|
2631
|
-
|
|
2637
|
+
N(this, Ue).reset();
|
|
2632
2638
|
const { body: n, redirected: l, status: c, headers: g } = r;
|
|
2633
2639
|
if (c === 204) {
|
|
2634
|
-
|
|
2640
|
+
je(this, ye, Lt).call(this, "Server sent HTTP 204, not reconnecting", 204), this.close();
|
|
2635
2641
|
return;
|
|
2636
2642
|
}
|
|
2637
|
-
if (l ?
|
|
2638
|
-
|
|
2643
|
+
if (l ? U(this, qe, new URL(r.url)) : U(this, qe, void 0), c !== 200) {
|
|
2644
|
+
je(this, ye, Lt).call(this, `Non-200 status code (${c})`, c);
|
|
2639
2645
|
return;
|
|
2640
2646
|
}
|
|
2641
2647
|
if (!(g.get("content-type") || "").startsWith("text/event-stream")) {
|
|
2642
|
-
|
|
2648
|
+
je(this, ye, Lt).call(this, 'Invalid content type, expected "text/event-stream"', c);
|
|
2643
2649
|
return;
|
|
2644
2650
|
}
|
|
2645
|
-
if (
|
|
2651
|
+
if (N(this, ue) === this.CLOSED)
|
|
2646
2652
|
return;
|
|
2647
|
-
|
|
2653
|
+
U(this, ue, this.OPEN);
|
|
2648
2654
|
const f = new Event("open");
|
|
2649
|
-
if ((o =
|
|
2650
|
-
|
|
2655
|
+
if ((o = N(this, ft)) == null || o.call(this, f), this.dispatchEvent(f), typeof n != "object" || !n || !("getReader" in n)) {
|
|
2656
|
+
je(this, ye, Lt).call(this, "Invalid response body, expected a web ReadableStream", c), this.close();
|
|
2651
2657
|
return;
|
|
2652
2658
|
}
|
|
2653
2659
|
const p = new TextDecoder(), y = n.getReader();
|
|
2654
2660
|
let x = !0;
|
|
2655
2661
|
do {
|
|
2656
2662
|
const { done: m, value: w } = await y.read();
|
|
2657
|
-
w &&
|
|
2663
|
+
w && N(this, Ue).feed(p.decode(w, { stream: !m })), m && (x = !1, N(this, Ue).reset(), je(this, ye, Ts).call(this));
|
|
2658
2664
|
} while (x);
|
|
2659
2665
|
}), X(this, Cs, (r) => {
|
|
2660
|
-
|
|
2666
|
+
U(this, De, void 0), !(r.name === "AbortError" || r.type === "aborted") && je(this, ye, Ts).call(this, vs(r));
|
|
2661
2667
|
}), X(this, Ss, (r) => {
|
|
2662
|
-
typeof r.id == "string" &&
|
|
2663
|
-
const o = new MessageEvent(r.event || "message", { data: r.data, origin:
|
|
2664
|
-
|
|
2668
|
+
typeof r.id == "string" && U(this, wt, r.id);
|
|
2669
|
+
const o = new MessageEvent(r.event || "message", { data: r.data, origin: N(this, qe) ? N(this, qe).origin : N(this, $e).origin, lastEventId: r.id || "" });
|
|
2670
|
+
N(this, Ye) && (!r.event || r.event === "message") && N(this, Ye).call(this, o), this.dispatchEvent(o);
|
|
2665
2671
|
}), X(this, ks, (r) => {
|
|
2666
|
-
|
|
2667
|
-
}), X(this,
|
|
2668
|
-
|
|
2672
|
+
U(this, xt, r);
|
|
2673
|
+
}), X(this, Es, () => {
|
|
2674
|
+
U(this, Ge, void 0), N(this, ue) === this.CONNECTING && je(this, ye, bs).call(this);
|
|
2669
2675
|
});
|
|
2670
2676
|
try {
|
|
2671
2677
|
if (e instanceof URL)
|
|
2672
|
-
|
|
2678
|
+
U(this, $e, e);
|
|
2673
2679
|
else if (typeof e == "string")
|
|
2674
|
-
|
|
2680
|
+
U(this, $e, new URL(e, Lr()));
|
|
2675
2681
|
else
|
|
2676
2682
|
throw new Error("Invalid URL");
|
|
2677
2683
|
} catch {
|
|
2678
2684
|
throw fr("An invalid or illegal string was specified");
|
|
2679
2685
|
}
|
|
2680
|
-
|
|
2686
|
+
U(this, Ue, pr({ onEvent: N(this, Ss), onRetry: N(this, ks) })), U(this, ue, this.CONNECTING), U(this, xt, 3e3), U(this, qt, (a = t == null ? void 0 : t.fetch) != null ? a : globalThis.fetch), U(this, Wt, (s = t == null ? void 0 : t.withCredentials) != null ? s : !1), je(this, ye, bs).call(this);
|
|
2681
2687
|
}
|
|
2682
2688
|
get readyState() {
|
|
2683
|
-
return
|
|
2689
|
+
return N(this, ue);
|
|
2684
2690
|
}
|
|
2685
2691
|
get url() {
|
|
2686
|
-
return
|
|
2692
|
+
return N(this, $e).href;
|
|
2687
2693
|
}
|
|
2688
2694
|
get withCredentials() {
|
|
2689
|
-
return
|
|
2695
|
+
return N(this, Wt);
|
|
2690
2696
|
}
|
|
2691
2697
|
get onerror() {
|
|
2692
|
-
return
|
|
2698
|
+
return N(this, Ze);
|
|
2693
2699
|
}
|
|
2694
2700
|
set onerror(e) {
|
|
2695
|
-
|
|
2701
|
+
U(this, Ze, e);
|
|
2696
2702
|
}
|
|
2697
2703
|
get onmessage() {
|
|
2698
|
-
return
|
|
2704
|
+
return N(this, Ye);
|
|
2699
2705
|
}
|
|
2700
2706
|
set onmessage(e) {
|
|
2701
|
-
|
|
2707
|
+
U(this, Ye, e);
|
|
2702
2708
|
}
|
|
2703
2709
|
get onopen() {
|
|
2704
|
-
return
|
|
2710
|
+
return N(this, ft);
|
|
2705
2711
|
}
|
|
2706
2712
|
set onopen(e) {
|
|
2707
|
-
|
|
2713
|
+
U(this, ft, e);
|
|
2708
2714
|
}
|
|
2709
2715
|
addEventListener(e, t, a) {
|
|
2710
2716
|
const s = t;
|
|
@@ -2715,28 +2721,28 @@ class Wt extends EventTarget {
|
|
|
2715
2721
|
super.removeEventListener(e, s, a);
|
|
2716
2722
|
}
|
|
2717
2723
|
close() {
|
|
2718
|
-
|
|
2724
|
+
N(this, Ge) && clearTimeout(N(this, Ge)), N(this, ue) !== this.CLOSED && (N(this, De) && N(this, De).abort(), U(this, ue, this.CLOSED), U(this, De, void 0));
|
|
2719
2725
|
}
|
|
2720
2726
|
}
|
|
2721
|
-
|
|
2722
|
-
|
|
2727
|
+
ue = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakSet(), bs = function() {
|
|
2728
|
+
U(this, ue, this.CONNECTING), U(this, De, new AbortController()), N(this, qt)(N(this, $e), je(this, ye, Sa).call(this)).then(N(this, Ms)).catch(N(this, Cs));
|
|
2723
2729
|
}, Ms = /* @__PURE__ */ new WeakMap(), Cs = /* @__PURE__ */ new WeakMap(), Sa = function() {
|
|
2724
2730
|
var i;
|
|
2725
|
-
const e = { mode: "cors", redirect: "follow", headers: { Accept: "text/event-stream", ...
|
|
2731
|
+
const e = { mode: "cors", redirect: "follow", headers: { Accept: "text/event-stream", ...N(this, wt) ? { "Last-Event-ID": N(this, wt) } : void 0 }, cache: "no-store", signal: (i = N(this, De)) == null ? void 0 : i.signal };
|
|
2726
2732
|
return "window" in globalThis && (e.credentials = this.withCredentials ? "include" : "same-origin"), e;
|
|
2727
2733
|
}, Ss = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), Lt = function(i, e) {
|
|
2728
2734
|
var t;
|
|
2729
|
-
|
|
2735
|
+
N(this, ue) !== this.CLOSED && U(this, ue, this.CLOSED);
|
|
2730
2736
|
const a = new Ma("error", { code: e, message: i });
|
|
2731
|
-
(t =
|
|
2737
|
+
(t = N(this, Ze)) == null || t.call(this, a), this.dispatchEvent(a);
|
|
2732
2738
|
}, Ts = function(i, e) {
|
|
2733
2739
|
var t;
|
|
2734
|
-
if (
|
|
2740
|
+
if (N(this, ue) === this.CLOSED)
|
|
2735
2741
|
return;
|
|
2736
|
-
|
|
2742
|
+
U(this, ue, this.CONNECTING);
|
|
2737
2743
|
const a = new Ma("error", { code: e, message: i });
|
|
2738
|
-
(t =
|
|
2739
|
-
},
|
|
2744
|
+
(t = N(this, Ze)) == null || t.call(this, a), this.dispatchEvent(a), U(this, Ge, setTimeout(N(this, Es), N(this, xt)));
|
|
2745
|
+
}, Es = /* @__PURE__ */ new WeakMap(), Vt.CONNECTING = 0, Vt.OPEN = 1, Vt.CLOSED = 2;
|
|
2740
2746
|
function Lr() {
|
|
2741
2747
|
const i = "document" in globalThis ? globalThis.document : void 0;
|
|
2742
2748
|
return i && typeof i == "object" && "baseURI" in i && typeof i.baseURI == "string" ? i.baseURI : void 0;
|
|
@@ -2876,7 +2882,7 @@ class yr {
|
|
|
2876
2882
|
startSSE(e, t) {
|
|
2877
2883
|
if (!this.dataLayer.turnAIAnswerGenerationOn || e === "*" || this.dataLayer.searchObject.page !== 1)
|
|
2878
2884
|
return;
|
|
2879
|
-
const a = new
|
|
2885
|
+
const a = new Vt(this.dataLayer.questionURL + this.generateQueryParams(this.dataLayer.searchObject), { fetch: (r, o) => fetch(r, { ...o, headers: { ...o == null ? void 0 : o.headers, Authorization: this._authToken } }) }), s = this.dataLayer;
|
|
2880
2886
|
return a.onmessage = (r) => {
|
|
2881
2887
|
if (r.data === Je.question || r.data === Je.notQuestion) {
|
|
2882
2888
|
r.data === Je.question ? (this.dataLayer.setAnswerLoading(!0), this.dataLayer.setIsQuestion(!0)) : (s.setAnswerLoading(!1), this.dataLayer.setIsQuestion(!1)), s.setAnswerData("");
|
|
@@ -2928,13 +2934,13 @@ class yr {
|
|
|
2928
2934
|
var xr = Object.prototype.toString, Ke = Array.isArray || function(i) {
|
|
2929
2935
|
return xr.call(i) === "[object Array]";
|
|
2930
2936
|
};
|
|
2931
|
-
function
|
|
2937
|
+
function js(i) {
|
|
2932
2938
|
return typeof i == "function";
|
|
2933
2939
|
}
|
|
2934
2940
|
function wr(i) {
|
|
2935
2941
|
return Ke(i) ? "array" : typeof i;
|
|
2936
2942
|
}
|
|
2937
|
-
function
|
|
2943
|
+
function ps(i) {
|
|
2938
2944
|
return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
2939
2945
|
}
|
|
2940
2946
|
function ka(i, e) {
|
|
@@ -2957,7 +2963,7 @@ function Tr(i) {
|
|
|
2957
2963
|
return kr[e];
|
|
2958
2964
|
});
|
|
2959
2965
|
}
|
|
2960
|
-
var
|
|
2966
|
+
var Er = /\s*/, jr = /\s+/, Ta = /\s*=/, Ar = /\s*\}/, Ir = /#|\^|\/|>|\{|&|=|!/;
|
|
2961
2967
|
function Rr(i, e) {
|
|
2962
2968
|
if (!i)
|
|
2963
2969
|
return [];
|
|
@@ -2972,40 +2978,40 @@ function Rr(i, e) {
|
|
|
2972
2978
|
}
|
|
2973
2979
|
var f, p, y;
|
|
2974
2980
|
function x(R) {
|
|
2975
|
-
if (typeof R == "string" && (R = R.split(
|
|
2981
|
+
if (typeof R == "string" && (R = R.split(jr, 2)), !Ke(R) || R.length !== 2)
|
|
2976
2982
|
throw new Error("Invalid tags: " + R);
|
|
2977
|
-
f = new RegExp(
|
|
2983
|
+
f = new RegExp(ps(R[0]) + "\\s*"), p = new RegExp("\\s*" + ps(R[1])), y = new RegExp("\\s*" + ps("}" + R[1]));
|
|
2978
2984
|
}
|
|
2979
2985
|
x(e || F.tags);
|
|
2980
|
-
for (var m = new vt(i), w, S,
|
|
2981
|
-
if (w = m.pos,
|
|
2982
|
-
for (var $ = 0, T =
|
|
2983
|
-
P =
|
|
2986
|
+
for (var m = new vt(i), w, S, j, P, k, O; !m.eos(); ) {
|
|
2987
|
+
if (w = m.pos, j = m.scanUntil(f), j)
|
|
2988
|
+
for (var $ = 0, T = j.length; $ < T; ++$)
|
|
2989
|
+
P = j.charAt($), Sr(P) ? (r.push(s.length), l += P) : (n = !0, t = !0, l += " "), s.push(["text", P, w, w + 1]), w += 1, P === `
|
|
2984
2990
|
` && (g(), l = "", c = 0, t = !1);
|
|
2985
2991
|
if (!m.scan(f))
|
|
2986
2992
|
break;
|
|
2987
|
-
if (o = !0, S = m.scan(Ir) || "name", m.scan(
|
|
2993
|
+
if (o = !0, S = m.scan(Ir) || "name", m.scan(Er), S === "=" ? (j = m.scanUntil(Ta), m.scan(Ta), m.scanUntil(p)) : S === "{" ? (j = m.scanUntil(y), m.scan(Ar), m.scanUntil(p), S = "&") : j = m.scanUntil(p), !m.scan(p))
|
|
2988
2994
|
throw new Error("Unclosed tag at " + m.pos);
|
|
2989
|
-
if (S == ">" ? k = [S,
|
|
2995
|
+
if (S == ">" ? k = [S, j, w, m.pos, l, c, t] : k = [S, j, w, m.pos], c++, s.push(k), S === "#" || S === "^")
|
|
2990
2996
|
a.push(k);
|
|
2991
2997
|
else if (S === "/") {
|
|
2992
2998
|
if (O = a.pop(), !O)
|
|
2993
|
-
throw new Error('Unopened section "' +
|
|
2994
|
-
if (O[1] !==
|
|
2999
|
+
throw new Error('Unopened section "' + j + '" at ' + w);
|
|
3000
|
+
if (O[1] !== j)
|
|
2995
3001
|
throw new Error('Unclosed section "' + O[1] + '" at ' + w);
|
|
2996
3002
|
} else
|
|
2997
|
-
S === "name" || S === "{" || S === "&" ? n = !0 : S === "=" && x(
|
|
3003
|
+
S === "name" || S === "{" || S === "&" ? n = !0 : S === "=" && x(j);
|
|
2998
3004
|
}
|
|
2999
3005
|
if (g(), O = a.pop(), O)
|
|
3000
3006
|
throw new Error('Unclosed section "' + O[1] + '" at ' + m.pos);
|
|
3001
|
-
return Dr(
|
|
3007
|
+
return Nr(Dr(s));
|
|
3002
3008
|
}
|
|
3003
|
-
function
|
|
3009
|
+
function Dr(i) {
|
|
3004
3010
|
for (var e = [], t, a, s = 0, r = i.length; s < r; ++s)
|
|
3005
3011
|
t = i[s], t && (t[0] === "text" && a && a[0] === "text" ? (a[1] += t[1], a[3] = t[3]) : (e.push(t), a = t));
|
|
3006
3012
|
return e;
|
|
3007
3013
|
}
|
|
3008
|
-
function
|
|
3014
|
+
function Nr(i) {
|
|
3009
3015
|
for (var e = [], t = e, a = [], s, r, o = 0, n = i.length; o < n; ++o)
|
|
3010
3016
|
switch (s = i[o], s[0]) {
|
|
3011
3017
|
case "#":
|
|
@@ -3069,9 +3075,9 @@ Xe.prototype.push = function(i) {
|
|
|
3069
3075
|
}
|
|
3070
3076
|
e[i] = t;
|
|
3071
3077
|
}
|
|
3072
|
-
return
|
|
3078
|
+
return js(t) && (t = t.call(this.view)), t;
|
|
3073
3079
|
};
|
|
3074
|
-
function
|
|
3080
|
+
function oe() {
|
|
3075
3081
|
this.templateCache = { _cache: {}, set: function(i, e) {
|
|
3076
3082
|
this._cache[i] = e;
|
|
3077
3083
|
}, get: function(i) {
|
|
@@ -3080,19 +3086,19 @@ function ne() {
|
|
|
3080
3086
|
this._cache = {};
|
|
3081
3087
|
} };
|
|
3082
3088
|
}
|
|
3083
|
-
|
|
3089
|
+
oe.prototype.clearCache = function() {
|
|
3084
3090
|
typeof this.templateCache < "u" && this.templateCache.clear();
|
|
3085
|
-
},
|
|
3091
|
+
}, oe.prototype.parse = function(i, e) {
|
|
3086
3092
|
var t = this.templateCache, a = i + ":" + (e || F.tags).join(":"), s = typeof t < "u", r = s ? t.get(a) : void 0;
|
|
3087
3093
|
return r == null && (r = Rr(i, e), s && t.set(a, r)), r;
|
|
3088
|
-
},
|
|
3094
|
+
}, oe.prototype.render = function(i, e, t, a) {
|
|
3089
3095
|
var s = this.getConfigTags(a), r = this.parse(i, s), o = e instanceof Xe ? e : new Xe(e, void 0);
|
|
3090
3096
|
return this.renderTokens(r, o, t, i, a);
|
|
3091
|
-
},
|
|
3097
|
+
}, oe.prototype.renderTokens = function(i, e, t, a, s) {
|
|
3092
3098
|
for (var r = "", o, n, l, c = 0, g = i.length; c < g; ++c)
|
|
3093
3099
|
l = void 0, o = i[c], n = o[0], n === "#" ? l = this.renderSection(o, e, t, a, s) : n === "^" ? l = this.renderInverted(o, e, t, a, s) : n === ">" ? l = this.renderPartial(o, e, t, s) : n === "&" ? l = this.unescapedValue(o, e) : n === "name" ? l = this.escapedValue(o, e, s) : n === "text" && (l = this.rawValue(o)), l !== void 0 && (r += l);
|
|
3094
3100
|
return r;
|
|
3095
|
-
},
|
|
3101
|
+
}, oe.prototype.renderSection = function(i, e, t, a, s) {
|
|
3096
3102
|
var r = this, o = "", n = e.lookup(i[1]);
|
|
3097
3103
|
function l(f) {
|
|
3098
3104
|
return r.render(f, e, t, s);
|
|
@@ -3103,7 +3109,7 @@ ne.prototype.clearCache = function() {
|
|
|
3103
3109
|
o += this.renderTokens(i[4], e.push(n[c]), t, a, s);
|
|
3104
3110
|
else if (typeof n == "object" || typeof n == "string" || typeof n == "number")
|
|
3105
3111
|
o += this.renderTokens(i[4], e.push(n), t, a, s);
|
|
3106
|
-
else if (
|
|
3112
|
+
else if (js(n)) {
|
|
3107
3113
|
if (typeof a != "string")
|
|
3108
3114
|
throw new Error("Cannot use higher-order sections without the original template");
|
|
3109
3115
|
n = n.call(e.view, a.slice(i[3], i[5]), l), n != null && (o += n);
|
|
@@ -3111,19 +3117,19 @@ ne.prototype.clearCache = function() {
|
|
|
3111
3117
|
o += this.renderTokens(i[4], e, t, a, s);
|
|
3112
3118
|
return o;
|
|
3113
3119
|
}
|
|
3114
|
-
},
|
|
3120
|
+
}, oe.prototype.renderInverted = function(i, e, t, a, s) {
|
|
3115
3121
|
var r = e.lookup(i[1]);
|
|
3116
3122
|
if (!r || Ke(r) && r.length === 0)
|
|
3117
3123
|
return this.renderTokens(i[4], e, t, a, s);
|
|
3118
|
-
},
|
|
3124
|
+
}, oe.prototype.indentPartial = function(i, e, t) {
|
|
3119
3125
|
for (var a = e.replace(/[^ \t]/g, ""), s = i.split(`
|
|
3120
3126
|
`), r = 0; r < s.length; r++)
|
|
3121
3127
|
s[r].length && (r > 0 || !t) && (s[r] = a + s[r]);
|
|
3122
3128
|
return s.join(`
|
|
3123
3129
|
`);
|
|
3124
|
-
},
|
|
3130
|
+
}, oe.prototype.renderPartial = function(i, e, t, a) {
|
|
3125
3131
|
if (t) {
|
|
3126
|
-
var s = this.getConfigTags(a), r =
|
|
3132
|
+
var s = this.getConfigTags(a), r = js(t) ? t(i[1]) : t[i[1]];
|
|
3127
3133
|
if (r != null) {
|
|
3128
3134
|
var o = i[6], n = i[5], l = i[4], c = r;
|
|
3129
3135
|
n == 0 && l && (c = this.indentPartial(r, l, o));
|
|
@@ -3131,19 +3137,19 @@ ne.prototype.clearCache = function() {
|
|
|
3131
3137
|
return this.renderTokens(g, e, t, c, a);
|
|
3132
3138
|
}
|
|
3133
3139
|
}
|
|
3134
|
-
},
|
|
3140
|
+
}, oe.prototype.unescapedValue = function(i, e) {
|
|
3135
3141
|
var t = e.lookup(i[1]);
|
|
3136
3142
|
if (t != null)
|
|
3137
3143
|
return t;
|
|
3138
|
-
},
|
|
3144
|
+
}, oe.prototype.escapedValue = function(i, e, t) {
|
|
3139
3145
|
var a = this.getConfigEscape(t) || F.escape, s = e.lookup(i[1]);
|
|
3140
3146
|
if (s != null)
|
|
3141
3147
|
return typeof s == "number" && a === F.escape ? String(s) : a(s);
|
|
3142
|
-
},
|
|
3148
|
+
}, oe.prototype.rawValue = function(i) {
|
|
3143
3149
|
return i[1];
|
|
3144
|
-
},
|
|
3150
|
+
}, oe.prototype.getConfigTags = function(i) {
|
|
3145
3151
|
return Ke(i) ? i : i && typeof i == "object" ? i.tags : void 0;
|
|
3146
|
-
},
|
|
3152
|
+
}, oe.prototype.getConfigEscape = function(i) {
|
|
3147
3153
|
if (i && typeof i == "object" && !Ke(i))
|
|
3148
3154
|
return i.escape;
|
|
3149
3155
|
};
|
|
@@ -3151,7 +3157,7 @@ var F = { name: "mustache.js", version: "4.2.0", tags: ["{{", "}}"], clearCache:
|
|
|
3151
3157
|
bt.templateCache = i;
|
|
3152
3158
|
}, get templateCache() {
|
|
3153
3159
|
return bt.templateCache;
|
|
3154
|
-
} }, bt = new
|
|
3160
|
+
} }, bt = new oe();
|
|
3155
3161
|
F.clearCache = function() {
|
|
3156
3162
|
return bt.clearCache();
|
|
3157
3163
|
}, F.parse = function(i, e) {
|
|
@@ -3160,7 +3166,7 @@ F.clearCache = function() {
|
|
|
3160
3166
|
if (typeof i != "string")
|
|
3161
3167
|
throw new TypeError('Invalid template! Template should be a "string" but "' + wr(i) + '" was given as the first argument for mustache#render(template, view, partials)');
|
|
3162
3168
|
return bt.render(i, e, t, a);
|
|
3163
|
-
}, F.escape = Tr, F.Scanner = vt, F.Context = Xe, F.Writer =
|
|
3169
|
+
}, F.escape = Tr, F.Scanner = vt, F.Context = Xe, F.Writer = oe;
|
|
3164
3170
|
const Or = { main: { template: `
|
|
3165
3171
|
{{#shouldShowAnswer}}
|
|
3166
3172
|
<div class="searchstax-answer-wrap">
|
|
@@ -3187,7 +3193,7 @@ const Or = { main: { template: `
|
|
|
3187
3193
|
{{#answerLoading}}
|
|
3188
3194
|
<div class="searchstax-answer-loading"></div>
|
|
3189
3195
|
{{/answerLoading}}
|
|
3190
|
-
<button class="searchstax-answer-load-more-button">
|
|
3196
|
+
<button class="searchstax-answer-load-more-button">Show More</button>
|
|
3191
3197
|
</div>
|
|
3192
3198
|
{{/showMoreButtonVisible}}
|
|
3193
3199
|
</div>
|
|
@@ -3357,7 +3363,7 @@ const Or = { main: { template: `
|
|
|
3357
3363
|
{{/shouldShowLocationDistanceDropdown}}
|
|
3358
3364
|
</div>
|
|
3359
3365
|
</div>
|
|
3360
|
-
`, locationInputId: "searchstax-location-input", radiusInputId: "searchstax-location-radius-select", currentLocationActionButtonId: "searchstax-location-get-current-location" } },
|
|
3366
|
+
`, locationInputId: "searchstax-location-input", radiusInputId: "searchstax-location-radius-select", currentLocationActionButtonId: "searchstax-location-get-current-location" } }, Hr = { mainTemplate: { template: `
|
|
3361
3367
|
<section aria-label="search results container" tabindex="0">
|
|
3362
3368
|
<div class="searchstax-search-results-container" id="searchstax-search-results-container" data-test-id="searchstax-search-results-container">
|
|
3363
3369
|
<div class="searchstax-search-results" id="searchstax-search-results"></div>
|
|
@@ -3426,11 +3432,10 @@ const Or = { main: { template: `
|
|
|
3426
3432
|
</div>
|
|
3427
3433
|
<ul class="searchstax-no-results-list" data-test-id="searchstax-no-results-list">
|
|
3428
3434
|
<li>Try searching for search related terms or topics. We offer a wide variety of content to help you get the information you need.</li>
|
|
3429
|
-
<li>Lost? Click on the ‘X” in the Search Box to reset your search.</li>
|
|
3430
3435
|
</ul>
|
|
3431
3436
|
</div>
|
|
3432
3437
|
{{/searchExecuted}}
|
|
3433
|
-
` } },
|
|
3438
|
+
` } }, Qr = { main: { template: `
|
|
3434
3439
|
{{#searchExecuted}}
|
|
3435
3440
|
{{#hasResultsOrExternalPromotions}}
|
|
3436
3441
|
{{#sortOptions.length}}
|
|
@@ -3533,7 +3538,7 @@ const Or = { main: { template: `
|
|
|
3533
3538
|
`, thumbsUpButtonClass: "searchstax-lightweight-widget-thumbs-up", thumbsDownButtonClass: "searchstax-lightweight-widget-thumbs-down" } };
|
|
3534
3539
|
class C {
|
|
3535
3540
|
}
|
|
3536
|
-
h(C, "answer", Or), h(C, "externalPromotions", Pr), h(C, "facets", Fr), h(C, "pagination", $r), h(C, "relatedSearches", zr), h(C, "searchFeedback", _r), h(C, "searchInput", Wr), h(C, "location", Vr), h(C, "searchResults",
|
|
3541
|
+
h(C, "answer", Or), h(C, "externalPromotions", Pr), h(C, "facets", Fr), h(C, "pagination", $r), h(C, "relatedSearches", zr), h(C, "searchFeedback", _r), h(C, "searchInput", Wr), h(C, "location", Vr), h(C, "searchResults", Hr), h(C, "sorting", Qr), h(C, "feedback", K);
|
|
3537
3542
|
class Br {
|
|
3538
3543
|
constructor(e) {
|
|
3539
3544
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "externalPromotionsContainerId"), h(this, "searchExternalPromotionsMainContainer", null);
|
|
@@ -3606,7 +3611,7 @@ class qr {
|
|
|
3606
3611
|
const g = this.dataLayer.searchObject;
|
|
3607
3612
|
let f = [...g.facets];
|
|
3608
3613
|
const p = this.extractFacetValue(s);
|
|
3609
|
-
c ? f.find((y) =>
|
|
3614
|
+
c ? f.find((y) => pe.deepEqual(y, p) ? y : !1) || (this.config.facetingType === "tabs" && (f = f.filter((y) => y.name !== p.name)), f.push(p)) : f = f.filter((y) => !pe.deepEqual(y, p)), setTimeout(() => {
|
|
3610
3615
|
this.dataLayer.setSearchObject({ ...g, facets: f, page: 1 }), this.config.facetingType === "tabs" && this.renderMainTemplate(this.generateTemplateData(), !0);
|
|
3611
3616
|
}, 0);
|
|
3612
3617
|
}
|
|
@@ -3661,7 +3666,7 @@ class qr {
|
|
|
3661
3666
|
}
|
|
3662
3667
|
}
|
|
3663
3668
|
createFacetItem(e, t, a) {
|
|
3664
|
-
var s, r, o, n, l, c, g, f, p, y, x, m, w, S,
|
|
3669
|
+
var s, r, o, n, l, c, g, f, p, y, x, m, w, S, j, P;
|
|
3665
3670
|
if (typeof document < "u") {
|
|
3666
3671
|
const k = document == null ? void 0 : document.createElement("div");
|
|
3667
3672
|
k.classList.add("searchstax-facet-container"), this.deactivatedFacets[e.name] || k.classList.add("active");
|
|
@@ -3675,11 +3680,11 @@ class qr {
|
|
|
3675
3680
|
}), (m = $ == null ? void 0 : $.querySelector("." + ((x = (y = (p = this.config) == null ? void 0 : p.templates) == null ? void 0 : y.facetItemContainerTemplate) == null ? void 0 : x.facetListTitleContainerInner))) == null || m.addEventListener("keydown", (R) => {
|
|
3676
3681
|
if (R.code === "Enter" || R.code === "Space") {
|
|
3677
3682
|
R.preventDefault(), k.classList.toggle("active");
|
|
3678
|
-
const B = k.classList.contains("active"),
|
|
3679
|
-
|
|
3683
|
+
const B = k.classList.contains("active"), de = $.querySelector(".searchstax-facet-title");
|
|
3684
|
+
de && de.setAttribute("aria-expanded", String(B));
|
|
3680
3685
|
}
|
|
3681
3686
|
});
|
|
3682
|
-
const T = k.querySelector("." + (((
|
|
3687
|
+
const T = k.querySelector("." + (((j = (S = (w = this.config) == null ? void 0 : w.templates) == null ? void 0 : S.facetItemContainerTemplate) == null ? void 0 : j.facetListContainerClass) || ((P = C.facets.facetItemContainerTemplate) == null ? void 0 : P.facetListContainerClass)));
|
|
3683
3688
|
T && (e.values.forEach((R) => {
|
|
3684
3689
|
this.createFacetListItem(R, T, e.name);
|
|
3685
3690
|
}), e.hasMoreFacets && this.createHasMoreComponent(e, T, a));
|
|
@@ -3687,15 +3692,15 @@ class qr {
|
|
|
3687
3692
|
}
|
|
3688
3693
|
isChecked(e) {
|
|
3689
3694
|
var t;
|
|
3690
|
-
return !!((t = this.dataLayer.searchObject.facets) != null && t.find((a) =>
|
|
3695
|
+
return !!((t = this.dataLayer.searchObject.facets) != null && t.find((a) => pe.deepEqual(a, this.extractFacetValue(e))));
|
|
3691
3696
|
}
|
|
3692
3697
|
createFacetListItem(e, t, a) {
|
|
3693
3698
|
var s, r, o, n, l, c, g, f, p, y, x, m;
|
|
3694
3699
|
if (typeof document < "u") {
|
|
3695
3700
|
const w = document == null ? void 0 : document.createElement("div");
|
|
3696
3701
|
w.classList.add("searchstax-facet-value-container"), e.disabled && w.classList.add("searchstax-facet-value-disabled");
|
|
3697
|
-
const S = this.isChecked(e),
|
|
3698
|
-
w.innerHTML = F.render(
|
|
3702
|
+
const S = this.isChecked(e), j = ((o = (r = (s = this.config) == null ? void 0 : s.templates) == null ? void 0 : r.facetItemTemplate) == null ? void 0 : o.template) || ((n = C.facets.facetItemTemplate) == null ? void 0 : n.template);
|
|
3703
|
+
w.innerHTML = F.render(j, { ...e, isChecked: S });
|
|
3699
3704
|
let P = (l = C.facets.facetItemTemplate) == null ? void 0 : l.checkTriggerClasses;
|
|
3700
3705
|
P = ((f = (g = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : g.facetItemTemplate) == null ? void 0 : f.checkTriggerClasses) || P, P.forEach((O) => {
|
|
3701
3706
|
const $ = w.querySelector("." + O);
|
|
@@ -3736,7 +3741,7 @@ class qr {
|
|
|
3736
3741
|
}
|
|
3737
3742
|
renderMainTemplate(e, t) {
|
|
3738
3743
|
var a, s, r, o, n, l, c, g, f, p, y;
|
|
3739
|
-
if (e && (!
|
|
3744
|
+
if (e && (!pe.deepEqual(this.cachedData ?? {}, e) || t)) {
|
|
3740
3745
|
this.cachedData = e;
|
|
3741
3746
|
const x = ((r = (s = (a = this.config) == null ? void 0 : a.templates) == null ? void 0 : s.mainTemplateDesktop) == null ? void 0 : r.template) || ((o = C.facets.mainTemplateDesktop) == null ? void 0 : o.template);
|
|
3742
3747
|
if (this.dataLayer.renderingEngine === G.mustache && this.searchFacetsMainContainer) {
|
|
@@ -3757,8 +3762,8 @@ class qr {
|
|
|
3757
3762
|
k instanceof HTMLElement && k.focus(), this.focusedElement = null;
|
|
3758
3763
|
return;
|
|
3759
3764
|
}
|
|
3760
|
-
const S = this.focusedElement.getAttribute("data-test-value"),
|
|
3761
|
-
|
|
3765
|
+
const S = this.focusedElement.getAttribute("data-test-value"), j = this.searchFacetsMainContainer.querySelector(`[data-test-value="${S}"]`);
|
|
3766
|
+
j instanceof HTMLInputElement && j.focus(), this.focusedElement = null;
|
|
3762
3767
|
}
|
|
3763
3768
|
}
|
|
3764
3769
|
}
|
|
@@ -3847,23 +3852,23 @@ class qr {
|
|
|
3847
3852
|
ee.setAccessibilityText("Facet overlay closed"), this.overlayOpened = !1, this.searchFacetsMainContainer && (typeof document < "u" && document.body.classList.toggle("searchstax-no-scroll"), (e = this.searchFacetsMainContainer.querySelector(".searchstax-facets-mobile-overlay")) == null || e.classList.remove("searchstax-show"));
|
|
3848
3853
|
}
|
|
3849
3854
|
renderMobileTemplate(e) {
|
|
3850
|
-
var t, a, s, r, o, n, l, c, g, f, p, y, x, m, w, S,
|
|
3855
|
+
var t, a, s, r, o, n, l, c, g, f, p, y, x, m, w, S, j, P, k;
|
|
3851
3856
|
if (e && typeof document < "u") {
|
|
3852
3857
|
const O = document == null ? void 0 : document.createElement("div");
|
|
3853
3858
|
O.classList.add("searchstax-facets-container-mobile");
|
|
3854
3859
|
const $ = ((s = (a = (t = this.config) == null ? void 0 : t.templates) == null ? void 0 : a.mainTemplateMobile) == null ? void 0 : s.template) || ((r = C.facets.mainTemplateMobile) == null ? void 0 : r.template);
|
|
3855
3860
|
if (this.dataLayer.renderingEngine === G.mustache) {
|
|
3856
3861
|
if (O.innerHTML = F.render($, { ...e, overlayOpened: this.overlayOpened }), (o = this.searchFacetsMainContainer) == null || o.appendChild(O), (l = (n = this.config) == null ? void 0 : n.templates) != null && l.mainTemplateMobile)
|
|
3857
|
-
for (const
|
|
3858
|
-
const
|
|
3859
|
-
|
|
3862
|
+
for (const de of ((f = (g = (c = this.config) == null ? void 0 : c.templates) == null ? void 0 : g.mainTemplateMobile) == null ? void 0 : f.closeOverlayTriggerClasses) || []) {
|
|
3863
|
+
const H = O.querySelector("." + de);
|
|
3864
|
+
H && (H.addEventListener("click", this.closeOverlay.bind(this)), H.addEventListener("keyup", (ie) => {
|
|
3860
3865
|
(ie.code === "Space" || ie.code === "Enter") && this.closeOverlay();
|
|
3861
3866
|
}));
|
|
3862
3867
|
}
|
|
3863
3868
|
else
|
|
3864
|
-
for (const
|
|
3865
|
-
const
|
|
3866
|
-
|
|
3869
|
+
for (const de of C.facets.mainTemplateMobile.closeOverlayTriggerClasses) {
|
|
3870
|
+
const H = O.querySelector("." + de);
|
|
3871
|
+
H && (H.addEventListener("click", this.closeOverlay.bind(this)), H.addEventListener("keyup", (ie) => {
|
|
3867
3872
|
(ie.code === "Space" || ie.code === "Enter") && this.closeOverlay();
|
|
3868
3873
|
}));
|
|
3869
3874
|
}
|
|
@@ -3871,11 +3876,11 @@ class qr {
|
|
|
3871
3876
|
T && this.createFilterByComponent(T);
|
|
3872
3877
|
const R = O.querySelector("." + (((S = (w = (m = this.config) == null ? void 0 : m.templates) == null ? void 0 : w.mainTemplateMobile) == null ? void 0 : S.selectedFacetsContainerClass) || C.facets.mainTemplateMobile.selectedFacetsContainerClass));
|
|
3873
3878
|
R && (this.createSelectedFacetsComponents(R), this.createClearFacetsComponents(R));
|
|
3874
|
-
const B = O.querySelector("." + (((k = (P = (
|
|
3879
|
+
const B = O.querySelector("." + (((k = (P = (j = this.config) == null ? void 0 : j.templates) == null ? void 0 : P.mainTemplateMobile) == null ? void 0 : k.facetsContainerClass) || C.facets.mainTemplateMobile.facetsContainerClass));
|
|
3875
3880
|
if (B) {
|
|
3876
3881
|
B.innerHTML = "";
|
|
3877
|
-
for (const
|
|
3878
|
-
this.createFacetItem(
|
|
3882
|
+
for (const de of e.facets)
|
|
3883
|
+
this.createFacetItem(de, B, !0);
|
|
3879
3884
|
}
|
|
3880
3885
|
}
|
|
3881
3886
|
}
|
|
@@ -3906,7 +3911,14 @@ class Ur {
|
|
|
3906
3911
|
}
|
|
3907
3912
|
goToPage(e, t) {
|
|
3908
3913
|
const a = this.dataLayer.searchObject;
|
|
3909
|
-
a && (a.page = e, this.dataLayer.setSearchObject(a))
|
|
3914
|
+
a && (a.page = e, this.dataLayer.setSearchObject(a));
|
|
3915
|
+
const s = document.querySelector(".searchstax-page-layout-result-container");
|
|
3916
|
+
if (s instanceof HTMLElement) {
|
|
3917
|
+
const r = s.querySelector('[tabindex="0"]');
|
|
3918
|
+
r instanceof HTMLElement && r.focus();
|
|
3919
|
+
} else
|
|
3920
|
+
document.body.tabIndex = -1, document.body.focus();
|
|
3921
|
+
t || (s instanceof HTMLElement ? s.scrollIntoView({ block: "start", behavior: "auto" }) : window == null || window.scrollTo(0, 0));
|
|
3910
3922
|
}
|
|
3911
3923
|
nextPage(e) {
|
|
3912
3924
|
var t;
|
|
@@ -4522,7 +4534,7 @@ class en {
|
|
|
4522
4534
|
return this.config.testString && (e.searchExecuted = !0), this.dataLayer.setAnswerFullData(e), e;
|
|
4523
4535
|
}
|
|
4524
4536
|
}
|
|
4525
|
-
class
|
|
4537
|
+
class Ea {
|
|
4526
4538
|
constructor(e) {
|
|
4527
4539
|
h(this, "dataLayer"), h(this, "config"), h(this, "containerId"), h(this, "currentSelectValue", ""), h(this, "locationInput"), h(this, "radiusInput"), h(this, "locationDecode"), h(this, "locationDecodeCoordinatesToAddress");
|
|
4528
4540
|
var t, a;
|
|
@@ -4547,8 +4559,8 @@ class ja {
|
|
|
4547
4559
|
throw new Error("Input not found");
|
|
4548
4560
|
const m = ((o = (r = this.config.templates) == null ? void 0 : r.mainTemplate) == null ? void 0 : o.radiusInputId) || C.location.mainTemplate.radiusInputId, w = document == null ? void 0 : document.querySelector(`#${m}`);
|
|
4549
4561
|
w instanceof HTMLSelectElement && (this.radiusInput = w, w.addEventListener("change", this.radiusSelectChangeEvent.bind(this)));
|
|
4550
|
-
const S = ((l = (n = this.config.templates) == null ? void 0 : n.mainTemplate) == null ? void 0 : l.currentLocationActionButtonId) || C.location.mainTemplate.currentLocationActionButtonId,
|
|
4551
|
-
|
|
4562
|
+
const S = ((l = (n = this.config.templates) == null ? void 0 : n.mainTemplate) == null ? void 0 : l.currentLocationActionButtonId) || C.location.mainTemplate.currentLocationActionButtonId, j = document == null ? void 0 : document.querySelector(`#${S}`);
|
|
4563
|
+
j && j.addEventListener("click", this.getCurrentLocation.bind(this));
|
|
4552
4564
|
}
|
|
4553
4565
|
}
|
|
4554
4566
|
}
|
|
@@ -4609,7 +4621,7 @@ class tn {
|
|
|
4609
4621
|
handleHooks() {
|
|
4610
4622
|
var e, t;
|
|
4611
4623
|
(t = (e = this.dataLayer.searchstaxConfig) == null ? void 0 : e.hooks) != null && t.afterSearch && this.dataLayer.$searchResults.subscribe((a) => {
|
|
4612
|
-
this.dataLayer.searchstaxConfig.hooks.afterSearch(a);
|
|
4624
|
+
this.dataLayer.searchstaxConfig.hooks.afterSearch(a, this.dataLayer.searchResultUnparsedData);
|
|
4613
4625
|
}), setTimeout(() => {
|
|
4614
4626
|
this.dataLayer.$searchObject.subscribe((a) => {
|
|
4615
4627
|
var s, r, o, n, l, c;
|
|
@@ -4672,7 +4684,7 @@ class tn {
|
|
|
4672
4684
|
var t, a;
|
|
4673
4685
|
this.handleRouter(), this.dataLayer.setItemsPerPage(parseInt(e.responseHeader.params.rows)), this.dataLayer.setModel(e.responseHeader.params.model);
|
|
4674
4686
|
let s = mt.combineResultsWithMetadata(e), r = mt.extractFacets(e);
|
|
4675
|
-
this.dataLayer.setSearchFacets(r), (a = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.afterSearch && (s = this.dataLayer.searchstaxConfig.hooks.afterSearch(s)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []), this.parseSearchResultsResponseMetadata(e), this.dataLayer.setSearchResults(s);
|
|
4687
|
+
this.dataLayer.setSearchFacets(r), (a = (t = this.dataLayer.searchstaxConfig) == null ? void 0 : t.hooks) != null && a.afterSearch && (s = this.dataLayer.searchstaxConfig.hooks.afterSearch(s, e)), this.dataLayer.setSearchExternalPromotions(e.externalLinks ?? []), this.parseSearchResultsResponseMetadata(e), this.dataLayer.setSearchResultUnparsedData(e), this.dataLayer.setSearchResults(s);
|
|
4676
4688
|
}
|
|
4677
4689
|
parseAnswerResultsResponse(e) {
|
|
4678
4690
|
this.handleRouter(), e !== Je.question && e !== Je.notQuestion && (this.dataLayer.setAnswerLoading(!0), this.dataLayer.setAnswerData(this.dataLayer.getAnswerData + e));
|
|
@@ -4701,8 +4713,8 @@ class tn {
|
|
|
4701
4713
|
}
|
|
4702
4714
|
addSearchLocationWidget(e, t) {
|
|
4703
4715
|
var a, s;
|
|
4704
|
-
this.dataLayer.searchLocationConfig || (t.locationSearchEnabled ? (this.dataLayer.setLocationEnabled(!0), this.dataLayer.setSearchLocationConfig(t), t.locationValuesOverride ? (this.searchLocationWidget = new
|
|
4705
|
-
this.searchLocationWidget = new
|
|
4716
|
+
this.dataLayer.searchLocationConfig || (t.locationSearchEnabled ? (this.dataLayer.setLocationEnabled(!0), this.dataLayer.setSearchLocationConfig(t), t.locationValuesOverride ? (this.searchLocationWidget = new Ea({ containerId: e, config: t, dataLayer: this.dataLayer }), (a = t == null ? void 0 : t.locationValuesOverride) != null && a.locationFilterDefaultValue && this.dataLayer.setSearchRadius((s = t == null ? void 0 : t.locationValuesOverride) == null ? void 0 : s.locationFilterDefaultValue)) : this.dataLayer.$searchResultsMetadata.subscribeUntilHasValue(() => {
|
|
4717
|
+
this.searchLocationWidget = new Ea({ containerId: e, config: t, dataLayer: this.dataLayer });
|
|
4706
4718
|
}, 0)) : this.dataLayer.setLocationEnabled(!1));
|
|
4707
4719
|
}
|
|
4708
4720
|
addAnswerWidget(e, t) {
|
|
@@ -4872,7 +4884,7 @@ function sn(i) {
|
|
|
4872
4884
|
i.searchLocationTemplate && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.searchLocationTemplate(t, r, x, y, p, s, l, o) })
|
|
4873
4885
|
] }) });
|
|
4874
4886
|
}
|
|
4875
|
-
const
|
|
4887
|
+
const ja = {
|
|
4876
4888
|
appId: "APP_ID",
|
|
4877
4889
|
relatedSearchesAPIKey: "KEY"
|
|
4878
4890
|
}, Ft = {
|
|
@@ -4906,11 +4918,11 @@ const Ea = {
|
|
|
4906
4918
|
}),
|
|
4907
4919
|
locationDecodeCoordinatesToAddress: (i, e) => new Promise((t) => {
|
|
4908
4920
|
fetch(
|
|
4909
|
-
`https://geocoding-staging.searchstax.co/reverse?location=${i},${e}&components=country:US&app_id=${
|
|
4921
|
+
`https://geocoding-staging.searchstax.co/reverse?location=${i},${e}&components=country:US&app_id=${ja.appId}`,
|
|
4910
4922
|
{
|
|
4911
4923
|
method: "GET",
|
|
4912
4924
|
headers: {
|
|
4913
|
-
Authorization: `Token ${
|
|
4925
|
+
Authorization: `Token ${ja.relatedSearchesAPIKey}`
|
|
4914
4926
|
}
|
|
4915
4927
|
}
|
|
4916
4928
|
).then((a) => a.json()).then((a) => {
|
|
@@ -5138,14 +5150,11 @@ function rn(i, e, t) {
|
|
|
5138
5150
|
"?"
|
|
5139
5151
|
] })
|
|
5140
5152
|
] }),
|
|
5141
|
-
/* @__PURE__ */ u.
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
] }),
|
|
5147
|
-
/* @__PURE__ */ u.jsx("li", { children: "Lost? Click on the ‘X” in the Search Box to reset your search." })
|
|
5148
|
-
] })
|
|
5153
|
+
/* @__PURE__ */ u.jsx("ul", { children: /* @__PURE__ */ u.jsxs("li", { children: [
|
|
5154
|
+
" ",
|
|
5155
|
+
"Try searching for search related terms or topics. We offer a wide variety of content to help you get the information you need.",
|
|
5156
|
+
" "
|
|
5157
|
+
] }) })
|
|
5149
5158
|
] });
|
|
5150
5159
|
}
|
|
5151
5160
|
function nn(i, e) {
|
|
@@ -5895,9 +5904,9 @@ function Mn(i) {
|
|
|
5895
5904
|
var R;
|
|
5896
5905
|
return (R = b.searchstax.searchFacetsWidget) == null ? void 0 : R.isChecked(T);
|
|
5897
5906
|
}
|
|
5898
|
-
function
|
|
5907
|
+
function j(T, R, B, de, H) {
|
|
5899
5908
|
var Re;
|
|
5900
|
-
const ie =
|
|
5909
|
+
const ie = H ? "mobile-" : "desktop-", Ce = document.getElementsByClassName(ie + T);
|
|
5901
5910
|
Ce[0] && ((Re = b.searchstax.searchFacetsWidget) == null || Re.onFacetSelect(
|
|
5902
5911
|
R,
|
|
5903
5912
|
B,
|
|
@@ -5931,24 +5940,24 @@ function Mn(i) {
|
|
|
5931
5940
|
(T = b.searchstax.searchFacetsWidget) == null || T.closeOverlay();
|
|
5932
5941
|
}
|
|
5933
5942
|
return /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsxs("div", { id: "searchstax-facets-container" + g, children: [
|
|
5934
|
-
(e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: un(e, c, m, w,
|
|
5943
|
+
(e == null ? void 0 : e.hasResultsOrExternalPromotions) && !i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: un(e, c, m, w, j, S, P) }),
|
|
5935
5944
|
i.facetsTemplateDesktop && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateDesktop(
|
|
5936
5945
|
e,
|
|
5937
5946
|
c,
|
|
5938
5947
|
m,
|
|
5939
5948
|
w,
|
|
5940
|
-
|
|
5949
|
+
j,
|
|
5941
5950
|
S,
|
|
5942
5951
|
P
|
|
5943
5952
|
) }),
|
|
5944
|
-
(a == null ? void 0 : a.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: dn(a, r, c, m, w,
|
|
5953
|
+
(a == null ? void 0 : a.hasResultsOrExternalPromotions) && !i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: dn(a, r, c, m, w, j, S, y, k, O, $, x) }),
|
|
5945
5954
|
i.facetsTemplateMobile && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.facetsTemplateMobile(
|
|
5946
5955
|
a,
|
|
5947
5956
|
r,
|
|
5948
5957
|
c,
|
|
5949
5958
|
m,
|
|
5950
5959
|
w,
|
|
5951
|
-
|
|
5960
|
+
j,
|
|
5952
5961
|
S,
|
|
5953
5962
|
y,
|
|
5954
5963
|
k,
|
|
@@ -6103,7 +6112,7 @@ function mn(i, e) {
|
|
|
6103
6112
|
onClick: (t) => {
|
|
6104
6113
|
e(t);
|
|
6105
6114
|
},
|
|
6106
|
-
children: "
|
|
6115
|
+
children: "Show More"
|
|
6107
6116
|
}
|
|
6108
6117
|
) })
|
|
6109
6118
|
] }),
|