/*! ally.js - v1.4.1 - https://allyjs.io/ - MIT License */
!(function (e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
else if ("function" == typeof define && define.amd) define([], e);
else {
var t;
(t = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this), (t.ally = e());
}
})(function () {
var e;
return (function t(e, n, r) {
function i(a, u) {
if (!n[a]) {
if (!e[a]) {
var s = "function" == typeof require && require;
if (!u && s) return s(a, !0);
if (o) return o(a, !0);
var l = new Error("Cannot find module '" + a + "'");
throw ((l.code = "MODULE_NOT_FOUND"), l);
}
var c = (n[a] = { exports: {} });
e[a][0].call(
c.exports,
function (t) {
var n = e[a][1][t];
return i(n ? n : t);
},
c,
c.exports,
t,
e,
n,
r
);
}
return n[a].exports;
}
for (var o = "function" == typeof require && require, a = 0; a < r.length; a++) i(r[a]);
return i;
})(
{
1: [
function (e, t) {
"use strict";
function n(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}
function r(e) {
return e && "object" === ("undefined" == typeof e ? "undefined" : ft(e)) && "default" in e ? e["default"] : e;
}
function i() {
var e = { activeElement: document.activeElement, windowScrollTop: window.scrollTop, windowScrollLeft: window.scrollLeft, bodyScrollTop: document.body.scrollTop, bodyScrollLeft: document.body.scrollLeft },
t = document.createElement("iframe");
t.setAttribute("style", "position:absolute; position:fixed; top:0; left:-2px; width:1px; height:1px; overflow:hidden;"),
t.setAttribute("aria-live", "off"),
t.setAttribute("aria-busy", "true"),
t.setAttribute("aria-hidden", "true"),
document.body.appendChild(t);
var n = t.contentWindow,
r = n.document;
r.open(), r.close();
var i = r.createElement("div");
return r.body.appendChild(i), (e.iframe = t), (e.wrapper = i), (e.window = n), (e.document = r), e;
}
function o(e, t) {
e.wrapper.innerHTML = "";
var n = "string" == typeof t.element ? e.document.createElement(t.element) : t.element(e.wrapper, e.document),
r = t.mutate && t.mutate(n, e.wrapper, e.document);
return r || r === !1 || (r = n), !n.parentNode && e.wrapper.appendChild(n), r && r.focus && r.focus(), t.validate ? t.validate(n, r, e.document) : e.document.activeElement === r;
}
function a(e) {
e.activeElement === document.body
? (document.activeElement && document.activeElement.blur && document.activeElement.blur(), Et.is.IE10 && document.body.focus())
: e.activeElement && e.activeElement.focus && e.activeElement.focus(),
document.body.removeChild(e.iframe),
(window.scrollTop = e.windowScrollTop),
(window.scrollLeft = e.windowScrollLeft),
(document.body.scrollTop = e.bodyScrollTop),
(document.body.scrollLeft = e.bodyScrollLeft);
}
function u(e) {
var t = void 0;
try {
(t = window.localStorage && window.localStorage.getItem(e)), (t = t ? JSON.parse(t) : {});
} catch (n) {
t = {};
}
return t;
}
function s(e, t) {
if (document.hasFocus())
try {
window.localStorage && window.localStorage.setItem(e, JSON.stringify(t));
} catch (n) {}
else
try {
window.localStorage && window.localStorage.removeItem(e);
} catch (n) {}
}
function l() {
var e = document.createElement("div");
return (e.innerHTML = ''), e.firstChild.firstChild;
}
function c(e) {
return '";
}
function d(e) {
if (!e.focus)
try {
HTMLElement.prototype.focus.call(e);
} catch (t) {
xn(e);
}
}
function f(e, t, n) {
return d(t), n.activeElement === t;
}
function m() {
var e = Ft(Pn);
return (
Object.keys(_n).forEach(function (t) {
e[t] = _n[t]();
}),
e
);
}
function b() {
zn.warn("trying to focus inert element", this);
}
function v(e, t) {
if (t) {
var n = jn(e);
$n({ element: e, attribute: "tabindex", temporaryValue: "-1", saveValue: null !== n ? n : "" });
} else $n({ element: e, attribute: "tabindex" });
}
function h(e, t) {
Zn({ element: e, attribute: "controls", remove: t });
}
function g(e, t) {
$n({ element: e, attribute: "focusable", temporaryValue: t ? "false" : void 0 });
}
function p(e, t) {
Zn({ element: e, attribute: "xlink:href", remove: t });
}
function x(e, t) {
$n({ element: e, attribute: "aria-disabled", temporaryValue: t ? "true" : void 0 });
}
function y(e, t) {
t ? (e.focus = b) : delete e.focus;
}
function w(e, t) {
if (t) {
var n = e.style.pointerEvents || "";
e.setAttribute("data-inert-pointer-events", n), (e.style.pointerEvents = "none");
} else {
var r = e.getAttribute("data-inert-pointer-events");
e.removeAttribute("data-inert-pointer-events"), (e.style.pointerEvents = r);
}
}
function E(e, t) {
x(e, t), v(e, t), y(e, t), w(e, t);
var n = e.nodeName.toLowerCase();
("video" === n || "audio" === n) && h(e, t),
("svg" === n || e.ownerSVGElement) && (Jn.focusSvgFocusableAttribute ? g(e, t) : Jn.focusSvgTabindexAttribute || "a" !== n || p(e, t)),
t ? e.setAttribute("data-ally-disabled", "true") : e.removeAttribute("data-ally-disabled");
}
function S(e) {
er.some(function (t) {
return e[t] ? ((tr = t), !0) : !1;
});
}
function T(e, t) {
return tr || S(e), e[tr](t);
}
function A(e) {
var t = e.webkitUserModify || "";
return Boolean(t && -1 !== t.indexOf("write"));
}
function O(e) {
return [e.getPropertyValue("overflow"), e.getPropertyValue("overflow-x"), e.getPropertyValue("overflow-y")].some(function (e) {
return "auto" === e || "scroll" === e;
});
}
function C(e) {
return e.display.indexOf("flex") > -1;
}
function I(e, t, n, r) {
return "div" !== t && "span" !== t ? !1 : n && "div" !== n && "span" !== n && !O(r) ? !1 : e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth;
}
function L() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = e.except,
r = void 0 === n ? { flexbox: !1, scrollable: !1, shadow: !1 } : n;
nr || (nr = Bn());
var i = ht({ label: "is/focus-relevant", resolveDocument: !0, context: t });
if (!r.shadow && i.shadowRoot) return !0;
var o = i.nodeName.toLowerCase();
if ("input" === o && "hidden" === i.type) return !1;
if ("input" === o || "select" === o || "button" === o || "textarea" === o) return !0;
if ("legend" === o && nr.focusRedirectLegend) return !0;
if ("label" === o) return !0;
if ("area" === o) return !0;
if ("a" === o && i.hasAttribute("href")) return !0;
if ("object" === o && i.hasAttribute("usemap")) return !1;
if ("object" === o) {
var a = i.getAttribute("type");
if (!nr.focusObjectSvg && "image/svg+xml" === a) return !1;
if (!nr.focusObjectSwf && "application/x-shockwave-flash" === a) return !1;
}
if ("iframe" === o || "object" === o) return !0;
if ("embed" === o || "keygen" === o) return !0;
if (i.hasAttribute("contenteditable")) return !0;
if ("audio" === o && (nr.focusAudioWithoutControls || i.hasAttribute("controls"))) return !0;
if ("video" === o && (nr.focusVideoWithoutControls || i.hasAttribute("controls"))) return !0;
if (nr.focusSummary && "summary" === o) return !0;
var u = Hn(i);
if ("img" === o && i.hasAttribute("usemap")) return (u && nr.focusImgUsemapTabindex) || nr.focusRedirectImgUsemap;
if (nr.focusTable && ("table" === o || "td" === o)) return !0;
if (nr.focusFieldset && "fieldset" === o) return !0;
var s = "svg" === o,
l = i.ownerSVGElement,
c = i.getAttribute("focusable"),
d = jn(i);
if ("use" === o && null !== d && !nr.focusSvgUseTabindex) return !1;
if ("foreignobject" === o) return null !== d && nr.focusSvgForeignobjectTabindex;
if (T(i, "svg a") && i.hasAttribute("xlink:href")) return !0;
if ((s || l) && i.focus && !nr.focusSvgNegativeTabindexAttribute && 0 > d) return !1;
if (s) return u || nr.focusSvg || nr.focusSvgInIframe || Boolean(nr.focusSvgFocusableAttribute && c && "true" === c);
if (l) {
if (nr.focusSvgTabindexAttribute && u) return !0;
if (nr.focusSvgFocusableAttribute) return "true" === c;
}
if (u) return !0;
var f = window.getComputedStyle(i, null);
if (A(f)) return !0;
if (nr.focusImgIsmap && "img" === o && i.hasAttribute("ismap")) {
var m = Yn({ context: i }).some(function (e) {
return "a" === e.nodeName.toLowerCase() && e.hasAttribute("href");
});
if (m) return !0;
}
if (!r.scrollable && nr.focusScrollContainer)
if (nr.focusScrollContainerWithoutOverflow) {
if (I(i, o)) return !0;
} else if (O(f)) return !0;
if (!r.flexbox && nr.focusFlexboxContainer && C(f)) return !0;
var b = i.parentElement;
if (!r.scrollable && b) {
var v = b.nodeName.toLowerCase(),
h = window.getComputedStyle(b, null);
if (nr.focusScrollBody && I(b, o, v, h)) return !0;
if (nr.focusChildrenOfFocusableFlexbox && C(h)) return !0;
}
return !1;
}
function N(e, t) {
if (e.findIndex) return e.findIndex(t);
var n = e.length;
if (0 === n) return -1;
for (var r = 0; n > r; r++) if (t(e[r], r, e)) return r;
return -1;
}
function M(e) {
if ((ur || (ur = ar("object, iframe")), void 0 !== e._frameElement)) return e._frameElement;
e._frameElement = null;
var t = e.parent.document.querySelectorAll(ur);
return (
[].some.call(t, function (t) {
var n = ir(t);
return n !== e.document ? !1 : ((e._frameElement = t), !0);
}),
e._frameElement
);
}
function k(e) {
var t = yt(e);
if (!t.parent || t.parent === t) return null;
try {
return t.frameElement || M(t);
} catch (n) {
return null;
}
}
function _(e, t) {
return window.getComputedStyle(e, null).getPropertyValue(t);
}
function P(e) {
return e.some(function (e) {
return "none" === _(e, "display");
});
}
function F(e) {
var t = N(e, function (e) {
var t = _(e, "visibility");
return "hidden" === t || "collapse" === t;
});
if (-1 === t) return !1;
var n = N(e, function (e) {
return "visible" === _(e, "visibility");
});
return -1 === n ? !0 : n > t ? !0 : !1;
}
function B(e) {
var t = 1;
return (
"summary" === e[0].nodeName.toLowerCase() && (t = 2),
e.slice(t).some(function (e) {
return "details" === e.nodeName.toLowerCase() && e.open === !1;
})
);
}
function D() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = e.except,
r = void 0 === n ? { notRendered: !1, cssDisplay: !1, cssVisibility: !1, detailsElement: !1, browsingContext: !1 } : n,
i = ht({ label: "is/visible", resolveDocument: !0, context: t }),
o = i.nodeName.toLowerCase();
if (!r.notRendered && sr.test(o)) return !0;
var a = Yn({ context: i }),
u = "audio" === o && !i.hasAttribute("controls");
if (!r.cssDisplay && P(u ? a.slice(1) : a)) return !1;
if (!r.cssVisibility && F(a)) return !1;
if (!r.detailsElement && B(a)) return !1;
if (!r.browsingContext) {
var s = k(i),
l = D.except(r);
if (s && !l(s)) return !1;
}
return !0;
}
function R(e, t) {
var n = t.querySelector('map[name="' + bt(e) + '"]');
return n || null;
}
function W(e) {
var t = e.getAttribute("usemap");
if (!t) return null;
var n = pt(e);
return R(t.slice(1), n);
}
function H(e) {
var t = e.parentElement;
if (!t.name || "map" !== t.nodeName.toLowerCase()) return null;
var n = pt(e);
return n.querySelector('img[usemap="#' + bt(t.name) + '"]') || null;
}
function j(e) {
var t = e.nodeName.toLowerCase();
return "fieldset" === t && e.disabled;
}
function q(e) {
var t = e.nodeName.toLowerCase();
return "form" === t && e.disabled;
}
function G() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = e.except,
r = void 0 === n ? { onlyFocusableBrowsingContext: !1, visible: !1 } : n,
i = ht({ label: "is/only-tabbable", resolveDocument: !0, context: t });
if (!r.visible && !lr(i)) return !1;
if (!r.onlyFocusableBrowsingContext && (Et.is.GECKO || Et.is.TRIDENT || Et.is.EDGE)) {
var o = k(i);
if (o && jn(o) < 0) return !1;
}
var a = i.nodeName.toLowerCase(),
u = jn(i);
return "label" === a && Et.is.GECKO ? null !== u && u >= 0 : Et.is.GECKO && i.ownerSVGElement && !i.focus && "a" === a && i.hasAttribute("xlink:href") && Et.is.GECKO ? !0 : !1;
}
function K(e) {
var t = e.nodeName.toLowerCase();
if ("embed" === t || "keygen" === t) return !0;
var n = jn(e);
if (e.shadowRoot && null === n) return !0;
if ("label" === t) return !vr.focusLabelTabindex || null === n;
if ("legend" === t) return null === n;
if (vr.focusSvgFocusableAttribute && (e.ownerSVGElement || "svg" === t)) {
var r = e.getAttribute("focusable");
return r && "false" === r;
}
return "img" === t && e.hasAttribute("usemap") ? null === n || !vr.focusImgUsemapTabindex : "area" === t ? !dr(e) : !1;
}
function V() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = e.except,
r = void 0 === n ? { disabled: !1, visible: !1, onlyTabbable: !1 } : n;
vr || (vr = Bn());
var i = br.rules.except({ onlyFocusableBrowsingContext: !0, visible: r.visible }),
o = ht({ label: "is/focusable", resolveDocument: !0, context: t }),
a = rr.rules({ context: o, except: r });
if (!a || K(o)) return !1;
if (!r.disabled && mr(o)) return !1;
if (!r.onlyTabbable && i(o)) return !1;
if (!r.visible) {
var u = { context: o, except: {} };
if ((vr.focusInHiddenIframe && (u.except.browsingContext = !0), vr.focusObjectSvgHidden)) {
var s = o.nodeName.toLowerCase();
"object" === s && (u.except.cssVisibility = !0);
}
if (!lr.rules(u)) return !1;
}
var l = k(o);
if (l) {
var c = l.nodeName.toLowerCase();
if (!("object" !== c || vr.focusInZeroDimensionObject || (l.offsetWidth && l.offsetHeight))) return !1;
}
var d = o.nodeName.toLowerCase();
return "svg" === d && vr.focusSvgInIframe && !l && null === o.getAttribute("tabindex") ? !1 : !0;
}
function Z(e) {
var t = function (t) {
return t.shadowRoot ? NodeFilter.FILTER_ACCEPT : e(t) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
};
return (t.acceptNode = t), t;
}
function $() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = e.includeContext,
r = e.includeOnlyTabbable,
i = e.strategy;
t || (t = document.documentElement);
for (var o = hr.rules.except({ onlyTabbable: r }), a = pt(t), u = a.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, "all" === i ? gr : Z(o), !1), s = []; u.nextNode(); )
u.currentNode.shadowRoot ? (o(u.currentNode) && s.push(u.currentNode), (s = s.concat($({ context: u.currentNode.shadowRoot, includeOnlyTabbable: r, strategy: i })))) : s.push(u.currentNode);
return n && ("all" === i ? rr(t) && s.unshift(t) : o(t) && s.unshift(t)), s;
}
function U() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = e.includeContext,
r = e.includeOnlyTabbable,
i = yr(),
o = t.querySelectorAll(i),
a = hr.rules.except({ onlyTabbable: r }),
u = [].filter.call(o, a);
return n && a(t) && u.unshift(t), u;
}
function X() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = e.except,
r = void 0 === n ? { flexbox: !1, scrollable: !1, shadow: !1, visible: !1, onlyTabbable: !1 } : n;
Er || (Er = Bn());
var i = ht({ label: "is/tabbable", resolveDocument: !0, context: t });
if (Et.is.BLINK && Et.is.ANDROID && Et.majorVersion > 42) return !1;
var o = k(i);
if (o) {
if (Et.is.WEBKIT && Et.is.IOS) return !1;
if (jn(o) < 0) return !1;
if (!r.visible && (Et.is.BLINK || Et.is.WEBKIT) && !lr(o)) return !1;
var a = o.nodeName.toLowerCase();
if ("object" === a) {
var u = ("Chrome" === Et.name && Et.majorVersion >= 54) || ("Opera" === Et.name && Et.majorVersion >= 41);
if (Et.is.WEBKIT || (Et.is.BLINK && !u)) return !1;
}
}
var s = i.nodeName.toLowerCase(),
l = jn(i),
c = null === l ? null : l >= 0;
if (Et.is.EDGE && Et.majorVersion >= 14 && o && i.ownerSVGElement && 0 > l) return !0;
var d = c !== !1,
f = null !== l && l >= 0;
if (i.hasAttribute("contenteditable")) return d;
if (Sr.test(s) && c !== !0) return !1;
if (Et.is.WEBKIT && Et.is.IOS) {
var m = ("input" === s && "text" === i.type) || "password" === i.type || "select" === s || "textarea" === s || i.hasAttribute("contenteditable");
if (!m) {
var b = window.getComputedStyle(i, null);
m = A(b);
}
if (!m) return !1;
}
if ("use" === s && null !== l && (Et.is.BLINK || (Et.is.WEBKIT && 9 === Et.majorVersion))) return !0;
if (T(i, "svg a") && i.hasAttribute("xlink:href")) {
if (d) return !0;
if (i.focus && !Er.focusSvgNegativeTabindexAttribute) return !0;
}
if ("svg" === s && Er.focusSvgInIframe && d) return !0;
if (Et.is.TRIDENT || Et.is.EDGE) {
if ("svg" === s) return Er.focusSvg ? !0 : i.hasAttribute("focusable") || f;
if (i.ownerSVGElement) return Er.focusSvgTabindexAttribute && f ? !0 : i.hasAttribute("focusable");
}
if (void 0 === i.tabIndex) return Boolean(r.onlyTabbable);
if ("audio" === s) {
if (!i.hasAttribute("controls")) return !1;
if (Et.is.BLINK) return !0;
}
if ("video" === s)
if (i.hasAttribute("controls")) {
if (Et.is.BLINK || Et.is.GECKO) return !0;
} else if (Et.is.TRIDENT || Et.is.EDGE) return !1;
if ("object" === s && (Et.is.BLINK || Et.is.WEBKIT)) return !1;
if ("iframe" === s) return !1;
if (!r.scrollable && Et.is.GECKO) {
var v = window.getComputedStyle(i, null);
if (O(v)) return d;
}
if (Et.is.TRIDENT || Et.is.EDGE) {
if ("area" === s) {
var h = H(i);
if (h && jn(h) < 0) return !1;
}
var g = window.getComputedStyle(i, null);
if (A(g)) return i.tabIndex >= 0;
if (!r.flexbox && C(g)) return null !== l ? f : Tr(i) && Ar(i);
if (I(i, s)) return !1;
var p = i.parentElement;
if (p) {
var x = p.nodeName.toLowerCase(),
y = window.getComputedStyle(p, null);
if (I(p, s, x, y)) return !1;
if (C(y)) return f;
}
}
return i.tabIndex >= 0;
}
function z(e, t) {
return e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
}
function J(e, t) {
return N(e, function (e) {
return t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING;
});
}
function Q(e, t, n) {
var r = [];
return (
t.forEach(function (t) {
var i = !0,
o = e.indexOf(t);
-1 === o && ((o = J(e, t)), (i = !1)), -1 === o && (o = e.length);
var a = vt(n ? n(t) : t);
a.length && r.push({ offset: o, replace: i, elements: a });
}),
r
);
}
function Y(e, t) {
var n = 0;
t.sort(function (e, t) {
return e.offset - t.offset;
}),
t.forEach(function (t) {
var r = t.replace ? 1 : 0,
i = [t.offset + n, r].concat(t.elements);
e.splice.apply(e, i), (n += t.elements.length - r);
});
}
function ee(e) {
var t = e.nodeName.toLowerCase();
return "input" === t || "textarea" === t || "select" === t || "button" === t;
}
function te(e, t) {
var n = e.getAttribute("for");
return n ? t.getElementById(n) : e.querySelector("input, select, textarea");
}
function ne(e) {
var t = e.parentNode,
n = wr({ context: t, strategy: "strict" });
return n.filter(ee)[0] || null;
}
function re(e, t) {
var n = Cr({ context: t.body, strategy: "strict" });
if (!n.length) return null;
var r = Lr({ list: n, elements: [e] }),
i = r.indexOf(e);
return i === r.length - 1 ? null : r[i + 1];
}
function ie(e, t) {
if (!Nr.focusRedirectLegend) return null;
var n = e.parentNode;
return "fieldset" !== n.nodeName.toLowerCase() ? null : "tabbable" === Nr.focusRedirectLegend ? re(e, t) : ne(e, t);
}
function oe(e) {
if (!Nr.focusRedirectImgUsemap) return null;
var t = W(e);
return (t && t.querySelector("area")) || null;
}
function ae(e) {
var t = Yn({ context: e }),
n = t.slice(1).map(function (e) {
return { element: e, scrollTop: e.scrollTop, scrollLeft: e.scrollLeft };
});
return function () {
n.forEach(function (e) {
(e.element.scrollTop = e.scrollTop), (e.element.scrollLeft = e.scrollLeft);
});
};
}
function ue(e) {
if (e.focus) return e.focus(), xt(e) ? e : null;
var t = yt(e);
try {
return t.HTMLElement.prototype.focus.call(e), xt(e) ? e : null;
} catch (n) {
var r = xn(e);
return r && xt(e) ? e : null;
}
}
function se() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.force;
t ? (this.instances = 0) : this.instances--, this.instances || (this.disengage(), (this._result = null));
}
function le() {
return this.instances ? (this.instances++, this._result) : (this.instances++, (this._result = this.engage() || {}), (this._result.disengage = se.bind(this)), this._result);
}
function ce() {}
function de() {
if (document.activeElement) {
if (document.activeElement !== Wr) {
var e = new Dr("active-element", { bubbles: !1, cancelable: !1, detail: { focus: document.activeElement, blur: Wr } });
document.dispatchEvent(e), (Wr = document.activeElement);
}
} else document.body.focus();
Hr !== !1 && (Hr = requestAnimationFrame(de));
}
function fe() {
(Hr = !0), (Wr = document.activeElement), de();
}
function me() {
cancelAnimationFrame(Hr), (Hr = !1);
}
function be() {
for (var e = [document.activeElement]; e[0] && e[0].shadowRoot; ) e.unshift(e[0].shadowRoot.activeElement);
return e;
}
function ve() {
var e = Gr({ context: document.activeElement });
return [document.activeElement].concat(e);
}
function he() {
this.context && (this.context.forEach(this.disengage), (this.context = null), (this.engage = null), (this.disengage = null));
}
function ge() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context;
return (this.context = vt(t || document)), this.context.forEach(this.engage), { disengage: he.bind(this) };
}
function pe() {}
function xe() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.parent,
n = e.element,
r = e.includeSelf;
if (t)
return function (e) {
return Boolean((r && e === t) || t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_CONTAINED_BY);
};
if (n)
return function (e) {
return Boolean((r && n === e) || e.compareDocumentPosition(n) & Node.DOCUMENT_POSITION_CONTAINED_BY);
};
throw new TypeError("util/compare-position#getParentComparator required either options.parent or options.element");
}
function ye(e) {
var t = e.context,
n = e.filter,
r = function (e) {
var t = xe({ parent: e });
return n.some(t);
},
i = [],
o = function (e) {
return n.some(function (t) {
return e === t;
})
? NodeFilter.FILTER_REJECT
: r(e)
? NodeFilter.FILTER_ACCEPT
: (i.push(e), NodeFilter.FILTER_REJECT);
};
o.acceptNode = o;
for (var a = pt(t), u = a.createTreeWalker(t, NodeFilter.SHOW_ELEMENT, o, !1); u.nextNode(); );
return i;
}
function we() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.context,
n = ht({ label: "query/shadow-hosts", resolveDocument: !0, defaultToDocument: !0, context: t }),
r = pt(t),
i = r.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, mi, !1),
o = [];
for (n.shadowRoot && (o.push(n), (o = o.concat(we({ context: n.shadowRoot })))); i.nextNode(); ) o.push(i.currentNode), (o = o.concat(we({ context: i.currentNode.shadowRoot })));
return o;
}
function Ee(e) {
return Qn(e, !0);
}
function Se(e) {
return Qn(e, !1);
}
function Te(e) {
$n({ element: e, attribute: "aria-hidden", temporaryValue: "true" });
}
function Ae(e) {
$n({ element: e, attribute: "aria-hidden" });
}
function Oe(e, t) {
var n = e.indexOf(t);
if (n > 0) {
var r = e.splice(n, 1);
return r.concat(e);
}
return e;
}
function Ce(e, t) {
return Ii.tabsequenceAreaAtImgPosition && (e = Ti(e, t)), (e = Ci(e));
}
function Ie(e) {
var t = e ? null : !1;
return { altKey: t, ctrlKey: t, metaKey: t, shiftKey: t };
}
function Le(e) {
var t = -1 !== e.indexOf("*"),
n = Ie(t);
return (
e.forEach(function (e) {
if ("*" !== e) {
var t = !0,
r = e.slice(0, 1);
"?" === r ? (t = null) : "!" === r && (t = !1), t !== !0 && (e = e.slice(1));
var i = Ri[e];
if (!i) throw new TypeError('Unknown modifier "' + e + '"');
n[i] = t;
}
}),
n
);
}
function Ne(e) {
var t = Ni[e] || parseInt(e, 10);
if (!t || "number" != typeof t || isNaN(t)) throw new TypeError('Unknown key "' + e + '"');
return [t].concat(Ni._alias[t] || []);
}
function Me(e, t) {
return !Wi.some(function (n) {
return "boolean" == typeof e[n] && Boolean(t[n]) !== e[n];
});
}
function ke() {
(Zi = 0), ($i = 0);
}
function _e(e) {
e.isPrimary !== !1 && Zi++;
}
function Pe(e) {
return e.isPrimary !== !1
? e.touches
? void (Zi = e.touches.length)
: void (window.setImmediate || window.setTimeout)(function () {
Zi = Math.max(Zi - 1, 0);
})
: void 0;
}
function Fe(e) {
switch (e.keyCode || e.which) {
case 16:
case 17:
case 18:
case 91:
case 93:
return;
}
$i++;
}
function Be(e) {
switch (e.keyCode || e.which) {
case 16:
case 17:
case 18:
case 91:
case 93:
return;
}
(window.setImmediate || window.setTimeout)(function () {
$i = Math.max($i - 1, 0);
});
}
function De() {
return { pointer: Boolean(Zi), key: Boolean($i) };
}
function Re() {
(Zi = $i = 0),
window.removeEventListener("blur", ke, !1),
document.documentElement.removeEventListener("keydown", Fe, !0),
document.documentElement.removeEventListener("keyup", Be, !0),
Ui.forEach(function (e) {
document.documentElement.removeEventListener(e, _e, !0);
}),
Xi.forEach(function (e) {
document.documentElement.removeEventListener(e, Pe, !0);
});
}
function We() {
return (
window.addEventListener("blur", ke, !1),
document.documentElement.addEventListener("keydown", Fe, !0),
document.documentElement.addEventListener("keyup", Be, !0),
Ui.forEach(function (e) {
document.documentElement.addEventListener(e, _e, !0);
}),
Xi.forEach(function (e) {
document.documentElement.addEventListener(e, Pe, !0);
}),
{ get: De }
);
}
function He(e) {
return e.hasAttribute("autofocus");
}
function je(e) {
return e.tabIndex <= 0;
}
function qe(e) {
var t = (e.getAttribute && e.getAttribute("class")) || "";
return "" === t ? [] : t.split(" ");
}
function Ge(e, t, n) {
var r = qe(e),
i = r.indexOf(t),
o = -1 !== i,
a = void 0 !== n ? n : !o;
a !== o && (a || r.splice(i, 1), a && r.push(t), e.setAttribute("class", r.join(" ")));
}
function Ke(e, t) {
return Ge(e, t, !1);
}
function Ve(e, t) {
return Ge(e, t, !0);
}
function Ze(e) {
var t = "";
if (e.type === to || "shadow-focus" === e.type) {
var n = ro.get();
t = ao || (n.pointer && "pointer") || (n.key && "key") || "script";
} else "initial" === e.type && (t = "initial");
document.documentElement.setAttribute("data-focus-source", t), e.type !== no && (uo[t] || Ve(document.documentElement, "focus-source-" + t), (uo[t] = !0), (oo = t));
}
function $e() {
return oo;
}
function Ue(e) {
return uo[e];
}
function Xe(e) {
ao = e;
}
function ze() {
ao = !1;
}
function Je() {
Ze({ type: no }),
(oo = ao = null),
Object.keys(uo).forEach(function (e) {
Ke(document.documentElement, "focus-source-" + e), (uo[e] = !1);
}),
ro.disengage(),
io && io.disengage(),
document.removeEventListener("shadow-focus", Ze, !0),
document.documentElement.removeEventListener(to, Ze, !0),
document.documentElement.removeEventListener(no, Ze, !0),
document.documentElement.removeAttribute("data-focus-source");
}
function Qe() {
return (
(io = $r()),
document.addEventListener("shadow-focus", Ze, !0),
document.documentElement.addEventListener(to, Ze, !0),
document.documentElement.addEventListener(no, Ze, !0),
(ro = zi()),
Ze({ type: "initial" }),
{ used: Ue, current: $e, lock: Xe, unlock: ze }
);
}
function Ye(e) {
var t = e || Kr();
lo.cssShadowPiercingDeepCombinator || (t = t.slice(-1));
var n = [].slice.call(document.querySelectorAll(vo), 0),
r = t
.map(function (e) {
return Yn({ context: e });
})
.reduce(function (e, t) {
return t.concat(e);
}, []);
n.forEach(function (e) {
-1 === r.indexOf(e) && Ke(e, bo);
}),
r.forEach(function (e) {
-1 === n.indexOf(e) && Ve(e, bo);
});
}
function et() {
ho = (window.setImmediate || window.setTimeout)(function () {
Ye();
});
}
function tt() {
(window.clearImmediate || window.clearTimeout)(ho), Ye();
}
function nt(e) {
Ye(e.detail.elements);
}
function rt() {
go && go.disengage(),
(window.clearImmediate || window.clearTimeout)(ho),
document.removeEventListener(mo, et, !0),
document.removeEventListener(fo, tt, !0),
document.removeEventListener("shadow-focus", nt, !0),
[].forEach.call(document.querySelectorAll(vo), function (e) {
Ke(e, bo);
});
}
function it() {
lo || ((lo = Bn()), (vo = ar("." + bo))), (go = $r()), document.addEventListener(mo, et, !0), document.addEventListener(fo, tt, !0), document.addEventListener("shadow-focus", nt, !0), Ye();
}
function ot(e, t) {
var n = Math.max(e.top, t.top),
r = Math.max(e.left, t.left),
i = Math.max(Math.min(e.right, t.right), r),
o = Math.max(Math.min(e.bottom, t.bottom), n);
return { top: n, right: i, bottom: o, left: r, width: i - r, height: o - n };
}
function at() {
var e = window.innerWidth || document.documentElement.clientWidth,
t = window.innerHeight || document.documentElement.clientHeight;
return { top: 0, right: e, bottom: t, left: 0, width: e, height: t };
}
function ut(e) {
var t = e.getBoundingClientRect(),
n = e.offsetWidth - e.clientWidth,
r = e.offsetHeight - e.clientHeight,
i = { top: t.top, left: t.left, right: t.right - n, bottom: t.bottom - r, width: t.width - n, height: t.height - r, area: 0 };
return (i.area = i.width * i.height), i;
}
function st(e) {
var t = window.getComputedStyle(e, null),
n = "visible";
return t.getPropertyValue("overflow-x") !== n && t.getPropertyValue("overflow-y") !== n;
}
function lt(e) {
return st(e) ? e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth : !1;
}
function ct(e) {
var t = Yn({ context: e }).slice(1).filter(lt);
return t.length
? t.reduce(function (e, t) {
var n = ut(t),
r = ot(n, e);
return (r.area = Math.min(n.area, e.area)), r;
}, ut(t[0]))
: null;
}
var dt = (function () {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
(r.enumerable = r.enumerable || !1), (r.configurable = !0), "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
}
}
return function (t, n, r) {
return n && e(t.prototype, n), r && e(t, r), t;
};
})(),
ft =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (e) {
return typeof e;
}
: function (e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
},
mt = r(e("platform")),
bt = r(e("css.escape")),
vt = function (e) {
if (!e) return [];
if (Array.isArray(e)) return e;
if (void 0 !== e.nodeType) return [e];
if (("string" == typeof e && (e = document.querySelectorAll(e)), void 0 !== e.length)) return [].slice.call(e, 0);
throw new TypeError("unexpected input " + String(e));
},
ht = function (e) {
var t = e.context,
n = e.label,
r = void 0 === n ? "context-to-element" : n,
i = e.resolveDocument,
o = e.defaultToDocument,
a = vt(t)[0];
if ((i && a && a.nodeType === Node.DOCUMENT_NODE && (a = a.documentElement), !a && o)) return document.documentElement;
if (!a) throw new TypeError(r + " requires valid options.context");
if (a.nodeType !== Node.ELEMENT_NODE && a.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) throw new TypeError(r + " requires options.context to be an Element");
return a;
},
gt = function () {
for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = ht({ label: "get/shadow-host", context: t }), r = null; n; ) (r = n), (n = n.parentNode);
return r.nodeType === r.DOCUMENT_FRAGMENT_NODE && r.host ? r.host : null;
},
pt = function (e) {
return e ? (e.nodeType === Node.DOCUMENT_NODE ? e : e.ownerDocument || document) : document;
},
xt = function (e) {
var t = ht({ label: "is/active-element", resolveDocument: !0, context: e }),
n = pt(t);
if (n.activeElement === t) return !0;
var r = gt({ context: t });
return r && r.shadowRoot.activeElement === t ? !0 : !1;
},
yt = function (e) {
var t = pt(e);
return t.defaultView || window;
},
wt = function (e) {
var t = ht({ label: "element/blur", context: e });
if (!xt(t)) return null;
var n = t.nodeName.toLowerCase();
if ("body" === n) return null;
if (t.blur) return t.blur(), document.activeElement;
var r = yt(t);
try {
r.HTMLElement.prototype.blur.call(t);
} catch (i) {
var o = r.document && r.document.body;
if (!o) return null;
var a = o.getAttribute("tabindex");
o.setAttribute("tabindex", "-1"), o.focus(), a ? o.setAttribute("tabindex", a) : o.removeAttribute("tabindex");
}
return r.document.activeElement;
},
Et = JSON.parse(JSON.stringify(mt)),
St = Et.os.family || "",
Tt = "Android" === St,
At = "Windows" === St.slice(0, 7),
Ot = "OS X" === St,
Ct = "iOS" === St,
It = "Blink" === Et.layout,
Lt = "Gecko" === Et.layout,
Nt = "Trident" === Et.layout,
Mt = "EdgeHTML" === Et.layout,
kt = "WebKit" === Et.layout,
_t = parseFloat(Et.version),
Pt = Math.floor(_t);
(Et.majorVersion = Pt), (Et.is = { ANDROID: Tt, WINDOWS: At, OSX: Ot, IOS: Ct, BLINK: It, GECKO: Lt, TRIDENT: Nt, EDGE: Mt, WEBKIT: kt, IE9: Nt && 9 === Pt, IE10: Nt && 10 === Pt, IE11: Nt && 11 === Pt });
var Ft = function (e) {
var t = i(),
n = {};
return (
Object.keys(e).map(function (r) {
n[r] = o(t, e[r]);
}),
a(t),
n
);
},
Bt = "1.4.1",
Dt = ("undefined" != typeof window && window.navigator.userAgent) || "",
Rt = "ally-supports-cache",
Wt = u(Rt);
(Wt.userAgent !== Dt || Wt.version !== Bt) && (Wt = {}), (Wt.userAgent = Dt), (Wt.version = Bt);
var Ht = {
get: function () {
return Wt;
},
set: function (e) {
Object.keys(e).forEach(function (t) {
Wt[t] = e[t];
}),
(Wt.time = new Date().toISOString()),
s(Rt, Wt);
},
},
jt = function () {
var e = void 0;
try {
document.querySelector("html >>> :first-child"), (e = ">>>");
} catch (t) {
try {
document.querySelector("html /deep/ :first-child"), (e = "/deep/");
} catch (n) {
e = "";
}
}
return e;
},
qt = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
Gt = {
element: "div",
mutate: function (e) {
return (
(e.innerHTML = ''), e.querySelector("area")
);
},
},
Kt = {
element: "div",
mutate: function (e) {
return (e.innerHTML = '
'), !1;
},
validate: function (e, t, n) {
if (Et.is.GECKO) return !0;
var r = e.querySelector("area");
return r.focus(), n.activeElement === r;
},
},
Vt = {
element: "div",
mutate: function (e) {
return (e.innerHTML = '
'), e.querySelector("area");
},
validate: function (e, t, n) {
return Et.is.GECKO ? !0 : n.activeElement === t;
},
},
Zt = {
name: "can-focus-audio-without-controls",
element: "audio",
mutate: function (e) {
try {
e.setAttribute("src", qt);
} catch (t) {}
},
},
$t = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ",
Ut = {
element: "div",
mutate: function (e) {
return (e.innerHTML = '
'), e.querySelector("area");
},
},
Xt = {
element: "div",
mutate: function (e) {
return (
e.setAttribute("tabindex", "-1"),
e.setAttribute("style", "display: -webkit-flex; display: -ms-flexbox; display: flex;"),
(e.innerHTML = 'hello'),
e.querySelector("span")
);
},
},
zt = {
element: "fieldset",
mutate: function (e) {
e.setAttribute("tabindex", 0), e.setAttribute("disabled", "disabled");
},
},
Jt = {
element: "fieldset",
mutate: function (e) {
e.innerHTML = "
content
"; }, }, Qt = { element: "span", mutate: function (e) { e.setAttribute("style", "display: -webkit-flex; display: -ms-flexbox; display: flex;"), (e.innerHTML = 'hello'); }, }, Yt = { element: "form", mutate: function (e) { e.setAttribute("tabindex", 0), e.setAttribute("disabled", "disabled"); }, }, en = { element: "a", mutate: function (e) { return (e.href = "#void"), (e.innerHTML = 'content
"), e.firstElementChild; }, }, xn = function (e) { var t = e.ownerSVGElement || "svg" === e.nodeName.toLowerCase(); if (!t) return !1; var n = l(); e.appendChild(n); var r = n.querySelector("input"); return r.focus(), (r.disabled = !0), e.removeChild(n), !0; }, yn = { element: "div", mutate: function (e) { return (e.innerHTML = c('