UNPKG

32.8 kBJavaScriptView Raw
1System.register([], function () {
2 'use strict';
3 return {
4 execute: function () {
5 /*
6 Stencil Client Platform v1.14.0 | MIT Licensed | https://stenciljs.com
7 */
8 (function () {
9 var aa = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
10 function g(a) { var b = aa.has(a); a = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a); return !b && a; }
11 function l(a) { var b = a.isConnected; if (void 0 !== b)
12 return b; for (; a && !(a.__CE_isImportDocument || a instanceof Document);)
13 a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0); return !(!a || !(a.__CE_isImportDocument || a instanceof Document)); }
14 function n(a, b) { for (; b && b !== a && !b.nextSibling;)
15 b = b.parentNode; return b && b !== a ? b.nextSibling : null; }
16 function p(a, b, d) { d = void 0 === d ? new Set : d; for (var c = a; c;) {
17 if (c.nodeType === Node.ELEMENT_NODE) {
18 var e = c;
19 b(e);
20 var f = e.localName;
21 if ("link" === f && "import" === e.getAttribute("rel")) {
22 c = e.import;
23 if (c instanceof Node && !d.has(c))
24 for (d.add(c), c = c.firstChild; c; c = c.nextSibling)
25 p(c, b, d);
26 c = n(a, e);
27 continue;
28 }
29 else if ("template" === f) {
30 c = n(a, e);
31 continue;
32 }
33 if (e = e.__CE_shadowRoot)
34 for (e = e.firstChild; e; e = e.nextSibling)
35 p(e, b, d);
36 }
37 c = c.firstChild ? c.firstChild : n(a, c);
38 } }
39 function r(a, b, d) { a[b] = d; }
40 function u() { this.a = new Map; this.g = new Map; this.c = []; this.f = []; this.b = !1; }
41 function ba(a, b, d) { a.a.set(b, d); a.g.set(d.constructorFunction, d); }
42 function ca(a, b) { a.b = !0; a.c.push(b); }
43 function da(a, b) { a.b = !0; a.f.push(b); }
44 function v(a, b) { a.b && p(b, function (b) { return w(a, b); }); }
45 function w(a, b) { if (a.b && !b.__CE_patched) {
46 b.__CE_patched = !0;
47 for (var d = 0; d < a.c.length; d++)
48 a.c[d](b);
49 for (d = 0; d < a.f.length; d++)
50 a.f[d](b);
51 } }
52 function x(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
53 var c = d[b];
54 1 === c.__CE_state ? a.connectedCallback(c) : y(a, c);
55 } }
56 function z(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
57 var c = d[b];
58 1 === c.__CE_state && a.disconnectedCallback(c);
59 } }
60 function A(a, b, d) {
61 d = void 0 === d ? {} : d;
62 var c = d.u || new Set, e = d.i || function (b) { return y(a, b); }, f = [];
63 p(b, function (b) { if ("link" === b.localName && "import" === b.getAttribute("rel")) {
64 var d = b.import;
65 d instanceof Node && (d.__CE_isImportDocument = !0, d.__CE_hasRegistry = !0);
66 d && "complete" === d.readyState ? d.__CE_documentLoadHandled = !0 : b.addEventListener("load", function () { var d = b.import; if (!d.__CE_documentLoadHandled) {
67 d.__CE_documentLoadHandled = !0;
68 var f = new Set(c);
69 f.delete(d);
70 A(a, d, { u: f, i: e });
71 } });
72 }
73 else
74 f.push(b); }, c);
75 if (a.b)
76 for (b =
77 0; b < f.length; b++)
78 w(a, f[b]);
79 for (b = 0; b < f.length; b++)
80 e(f[b]);
81 }
82 function y(a, b) {
83 if (void 0 === b.__CE_state) {
84 var d = b.ownerDocument;
85 if (d.defaultView || d.__CE_isImportDocument && d.__CE_hasRegistry)
86 if (d = a.a.get(b.localName)) {
87 d.constructionStack.push(b);
88 var c = d.constructorFunction;
89 try {
90 try {
91 if (new c !== b)
92 throw Error("The custom element constructor did not produce the element being upgraded.");
93 }
94 finally {
95 d.constructionStack.pop();
96 }
97 }
98 catch (t) {
99 throw b.__CE_state = 2, t;
100 }
101 b.__CE_state = 1;
102 b.__CE_definition = d;
103 if (d.attributeChangedCallback)
104 for (d = d.observedAttributes, c = 0; c < d.length; c++) {
105 var e = d[c], f = b.getAttribute(e);
106 null !== f && a.attributeChangedCallback(b, e, null, f, null);
107 }
108 l(b) && a.connectedCallback(b);
109 }
110 }
111 }
112 u.prototype.connectedCallback = function (a) { var b = a.__CE_definition; b.connectedCallback && b.connectedCallback.call(a); };
113 u.prototype.disconnectedCallback = function (a) { var b = a.__CE_definition; b.disconnectedCallback && b.disconnectedCallback.call(a); };
114 u.prototype.attributeChangedCallback = function (a, b, d, c, e) { var f = a.__CE_definition; f.attributeChangedCallback && -1 < f.observedAttributes.indexOf(b) && f.attributeChangedCallback.call(a, b, d, c, e); };
115 function B(a) { var b = document; this.c = a; this.a = b; this.b = void 0; A(this.c, this.a); "loading" === this.a.readyState && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, { childList: !0, subtree: !0 })); }
116 function C(a) { a.b && a.b.disconnect(); }
117 B.prototype.f = function (a) { var b = this.a.readyState; "interactive" !== b && "complete" !== b || C(this); for (b = 0; b < a.length; b++)
118 for (var d = a[b].addedNodes, c = 0; c < d.length; c++)
119 A(this.c, d[c]); };
120 function ea() { var a = this; this.b = this.a = void 0; this.c = new Promise(function (b) { a.b = b; a.a && b(a.a); }); }
121 function D(a) { if (a.a)
122 throw Error("Already resolved."); a.a = void 0; a.b && a.b(void 0); }
123 function E(a) { this.c = !1; this.a = a; this.j = new Map; this.f = function (b) { return b(); }; this.b = !1; this.g = []; this.o = new B(a); }
124 E.prototype.l = function (a, b) {
125 var d = this;
126 if (!(b instanceof Function))
127 throw new TypeError("Custom element constructors must be functions.");
128 if (!g(a))
129 throw new SyntaxError("The element name '" + a + "' is not valid.");
130 if (this.a.a.get(a))
131 throw Error("A custom element with name '" + a + "' has already been defined.");
132 if (this.c)
133 throw Error("A custom element is already being defined.");
134 this.c = !0;
135 try {
136 var c = function (b) {
137 var a = e[b];
138 if (void 0 !== a && !(a instanceof Function))
139 throw Error("The '" + b + "' callback must be a function.");
140 return a;
141 }, e = b.prototype;
142 if (!(e instanceof Object))
143 throw new TypeError("The custom element constructor's prototype is not an object.");
144 var f = c("connectedCallback");
145 var t = c("disconnectedCallback");
146 var k = c("adoptedCallback");
147 var h = c("attributeChangedCallback");
148 var m = b.observedAttributes || [];
149 }
150 catch (q) {
151 return;
152 }
153 finally {
154 this.c = !1;
155 }
156 b = { localName: a, constructorFunction: b, connectedCallback: f, disconnectedCallback: t, adoptedCallback: k, attributeChangedCallback: h, observedAttributes: m, constructionStack: [] };
157 ba(this.a, a, b);
158 this.g.push(b);
159 this.b || (this.b = !0, this.f(function () { return fa(d); }));
160 };
161 E.prototype.i = function (a) { A(this.a, a); };
162 function fa(a) { if (!1 !== a.b) {
163 a.b = !1;
164 for (var b = a.g, d = [], c = new Map, e = 0; e < b.length; e++)
165 c.set(b[e].localName, []);
166 A(a.a, document, { i: function (b) { if (void 0 === b.__CE_state) {
167 var e = b.localName, f = c.get(e);
168 f ? f.push(b) : a.a.a.get(e) && d.push(b);
169 } } });
170 for (e = 0; e < d.length; e++)
171 y(a.a, d[e]);
172 for (; 0 < b.length;) {
173 var f = b.shift();
174 e = f.localName;
175 f = c.get(f.localName);
176 for (var t = 0; t < f.length; t++)
177 y(a.a, f[t]);
178 (e = a.j.get(e)) && D(e);
179 }
180 } }
181 E.prototype.get = function (a) { if (a = this.a.a.get(a))
182 return a.constructorFunction; };
183 E.prototype.m = function (a) { if (!g(a))
184 return Promise.reject(new SyntaxError("'" + a + "' is not a valid custom element name.")); var b = this.j.get(a); if (b)
185 return b.c; b = new ea; this.j.set(a, b); this.a.a.get(a) && !this.g.some(function (b) { return b.localName === a; }) && D(b); return b.c; };
186 E.prototype.s = function (a) { C(this.o); var b = this.f; this.f = function (d) { return a(function () { return b(d); }); }; };
187 window.CustomElementRegistry = E;
188 E.prototype.define = E.prototype.l;
189 E.prototype.upgrade = E.prototype.i;
190 E.prototype.get = E.prototype.get;
191 E.prototype.whenDefined = E.prototype.m;
192 E.prototype.polyfillWrapFlushCallback = E.prototype.s;
193 var F = window.Document.prototype.createElement, G = window.Document.prototype.createElementNS, ha = window.Document.prototype.importNode, ia = window.Document.prototype.prepend, ja = window.Document.prototype.append, ka = window.DocumentFragment.prototype.prepend, la = window.DocumentFragment.prototype.append, H = window.Node.prototype.cloneNode, I = window.Node.prototype.appendChild, J = window.Node.prototype.insertBefore, K = window.Node.prototype.removeChild, L = window.Node.prototype.replaceChild, M = Object.getOwnPropertyDescriptor(window.Node.prototype, "textContent"), N = window.Element.prototype.attachShadow, O = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"), P = window.Element.prototype.getAttribute, Q = window.Element.prototype.setAttribute, R = window.Element.prototype.removeAttribute, S = window.Element.prototype.getAttributeNS, T = window.Element.prototype.setAttributeNS, U = window.Element.prototype.removeAttributeNS, ma = window.Element.prototype.insertAdjacentElement, na = window.Element.prototype.insertAdjacentHTML, oa = window.Element.prototype.prepend, pa = window.Element.prototype.append, V = window.Element.prototype.before, qa = window.Element.prototype.after, ra = window.Element.prototype.replaceWith, sa = window.Element.prototype.remove, ta = window.HTMLElement, W = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"), ua = window.HTMLElement.prototype.insertAdjacentElement, va = window.HTMLElement.prototype.insertAdjacentHTML;
194 var wa = new function () { };
195 function xa() {
196 var a = X;
197 window.HTMLElement = function () {
198 function b() {
199 var b = this.constructor, c = a.g.get(b);
200 if (!c)
201 throw Error("The custom element being constructed was not registered with `customElements`.");
202 var e = c.constructionStack;
203 if (0 === e.length)
204 return e = F.call(document, c.localName), Object.setPrototypeOf(e, b.prototype), e.__CE_state = 1, e.__CE_definition = c, w(a, e), e;
205 c = e.length - 1;
206 var f = e[c];
207 if (f === wa)
208 throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
209 e[c] = wa;
210 Object.setPrototypeOf(f, b.prototype);
211 w(a, f);
212 return f;
213 }
214 b.prototype = ta.prototype;
215 Object.defineProperty(b.prototype, "constructor", { writable: !0, configurable: !0, enumerable: !1, value: b });
216 return b;
217 }();
218 }
219 function Y(a, b, d) { function c(b) { return function (d) { for (var e = [], c = 0; c < arguments.length; ++c)
220 e[c] = arguments[c]; c = []; for (var f = [], m = 0; m < e.length; m++) {
221 var q = e[m];
222 q instanceof Element && l(q) && f.push(q);
223 if (q instanceof DocumentFragment)
224 for (q = q.firstChild; q; q = q.nextSibling)
225 c.push(q);
226 else
227 c.push(q);
228 } b.apply(this, e); for (e = 0; e < f.length; e++)
229 z(a, f[e]); if (l(this))
230 for (e = 0; e < c.length; e++)
231 f = c[e], f instanceof Element && x(a, f); }; } void 0 !== d.h && (b.prepend = c(d.h)); void 0 !== d.append && (b.append = c(d.append)); }
232 function ya() {
233 var a = X;
234 r(Document.prototype, "createElement", function (b) { if (this.__CE_hasRegistry) {
235 var d = a.a.get(b);
236 if (d)
237 return new d.constructorFunction;
238 } b = F.call(this, b); w(a, b); return b; });
239 r(Document.prototype, "importNode", function (b, d) { b = ha.call(this, b, !!d); this.__CE_hasRegistry ? A(a, b) : v(a, b); return b; });
240 r(Document.prototype, "createElementNS", function (b, d) {
241 if (this.__CE_hasRegistry && (null === b || "http://www.w3.org/1999/xhtml" === b)) {
242 var c = a.a.get(d);
243 if (c)
244 return new c.constructorFunction;
245 }
246 b = G.call(this, b, d);
247 w(a, b);
248 return b;
249 });
250 Y(a, Document.prototype, { h: ia, append: ja });
251 }
252 function za() {
253 function a(a, c) { Object.defineProperty(a, "textContent", { enumerable: c.enumerable, configurable: !0, get: c.get, set: function (a) { if (this.nodeType === Node.TEXT_NODE)
254 c.set.call(this, a);
255 else {
256 var d = void 0;
257 if (this.firstChild) {
258 var e = this.childNodes, k = e.length;
259 if (0 < k && l(this)) {
260 d = Array(k);
261 for (var h = 0; h < k; h++)
262 d[h] = e[h];
263 }
264 }
265 c.set.call(this, a);
266 if (d)
267 for (a = 0; a < d.length; a++)
268 z(b, d[a]);
269 } } }); }
270 var b = X;
271 r(Node.prototype, "insertBefore", function (a, c) {
272 if (a instanceof DocumentFragment) {
273 var e = Array.prototype.slice.apply(a.childNodes);
274 a = J.call(this, a, c);
275 if (l(this))
276 for (c = 0; c < e.length; c++)
277 x(b, e[c]);
278 return a;
279 }
280 e = l(a);
281 c = J.call(this, a, c);
282 e && z(b, a);
283 l(this) && x(b, a);
284 return c;
285 });
286 r(Node.prototype, "appendChild", function (a) { if (a instanceof DocumentFragment) {
287 var c = Array.prototype.slice.apply(a.childNodes);
288 a = I.call(this, a);
289 if (l(this))
290 for (var e = 0; e < c.length; e++)
291 x(b, c[e]);
292 return a;
293 } c = l(a); e = I.call(this, a); c && z(b, a); l(this) && x(b, a); return e; });
294 r(Node.prototype, "cloneNode", function (a) {
295 a = H.call(this, !!a);
296 this.ownerDocument.__CE_hasRegistry ? A(b, a) : v(b, a);
297 return a;
298 });
299 r(Node.prototype, "removeChild", function (a) { var c = l(a), e = K.call(this, a); c && z(b, a); return e; });
300 r(Node.prototype, "replaceChild", function (a, c) { if (a instanceof DocumentFragment) {
301 var e = Array.prototype.slice.apply(a.childNodes);
302 a = L.call(this, a, c);
303 if (l(this))
304 for (z(b, c), c = 0; c < e.length; c++)
305 x(b, e[c]);
306 return a;
307 } e = l(a); var f = L.call(this, a, c), d = l(this); d && z(b, c); e && z(b, a); d && x(b, a); return f; });
308 M && M.get ? a(Node.prototype, M) : ca(b, function (b) {
309 a(b, { enumerable: !0, configurable: !0, get: function () {
310 for (var a = [], b = 0; b < this.childNodes.length; b++) {
311 var f = this.childNodes[b];
312 f.nodeType !== Node.COMMENT_NODE && a.push(f.textContent);
313 }
314 return a.join("");
315 }, set: function (a) { for (; this.firstChild;)
316 K.call(this, this.firstChild); null != a && "" !== a && I.call(this, document.createTextNode(a)); } });
317 });
318 }
319 function Aa(a) {
320 function b(b) { return function (e) { for (var c = [], d = 0; d < arguments.length; ++d)
321 c[d] = arguments[d]; d = []; for (var k = [], h = 0; h < c.length; h++) {
322 var m = c[h];
323 m instanceof Element && l(m) && k.push(m);
324 if (m instanceof DocumentFragment)
325 for (m = m.firstChild; m; m = m.nextSibling)
326 d.push(m);
327 else
328 d.push(m);
329 } b.apply(this, c); for (c = 0; c < k.length; c++)
330 z(a, k[c]); if (l(this))
331 for (c = 0; c < d.length; c++)
332 k = d[c], k instanceof Element && x(a, k); }; }
333 var d = Element.prototype;
334 void 0 !== V && (d.before = b(V));
335 void 0 !== V && (d.after = b(qa));
336 void 0 !== ra &&
337 r(d, "replaceWith", function (b) { for (var e = [], c = 0; c < arguments.length; ++c)
338 e[c] = arguments[c]; c = []; for (var d = [], k = 0; k < e.length; k++) {
339 var h = e[k];
340 h instanceof Element && l(h) && d.push(h);
341 if (h instanceof DocumentFragment)
342 for (h = h.firstChild; h; h = h.nextSibling)
343 c.push(h);
344 else
345 c.push(h);
346 } k = l(this); ra.apply(this, e); for (e = 0; e < d.length; e++)
347 z(a, d[e]); if (k)
348 for (z(a, this), e = 0; e < c.length; e++)
349 d = c[e], d instanceof Element && x(a, d); });
350 void 0 !== sa && r(d, "remove", function () { var b = l(this); sa.call(this); b && z(a, this); });
351 }
352 function Ba() {
353 function a(a, b) { Object.defineProperty(a, "innerHTML", { enumerable: b.enumerable, configurable: !0, get: b.get, set: function (a) { var e = this, d = void 0; l(this) && (d = [], p(this, function (a) { a !== e && d.push(a); })); b.set.call(this, a); if (d)
354 for (var f = 0; f < d.length; f++) {
355 var t = d[f];
356 1 === t.__CE_state && c.disconnectedCallback(t);
357 } this.ownerDocument.__CE_hasRegistry ? A(c, this) : v(c, this); return a; } }); }
358 function b(a, b) { r(a, "insertAdjacentElement", function (a, e) { var d = l(e); a = b.call(this, a, e); d && z(c, e); l(a) && x(c, e); return a; }); }
359 function d(a, b) {
360 function e(a, b) { for (var e = []; a !== b; a = a.nextSibling)
361 e.push(a); for (b = 0; b < e.length; b++)
362 A(c, e[b]); }
363 r(a, "insertAdjacentHTML", function (a, c) {
364 a = a.toLowerCase();
365 if ("beforebegin" === a) {
366 var d = this.previousSibling;
367 b.call(this, a, c);
368 e(d || this.parentNode.firstChild, this);
369 }
370 else if ("afterbegin" === a)
371 d = this.firstChild, b.call(this, a, c), e(this.firstChild, d);
372 else if ("beforeend" === a)
373 d = this.lastChild, b.call(this, a, c), e(d || this.firstChild, null);
374 else if ("afterend" === a)
375 d = this.nextSibling, b.call(this, a, c), e(this.nextSibling, d);
376 else
377 throw new SyntaxError("The value provided (" + String(a) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
378 });
379 }
380 var c = X;
381 N && r(Element.prototype, "attachShadow", function (a) { a = N.call(this, a); var b = c; if (b.b && !a.__CE_patched) {
382 a.__CE_patched = !0;
383 for (var e = 0; e < b.c.length; e++)
384 b.c[e](a);
385 } return this.__CE_shadowRoot = a; });
386 O && O.get ? a(Element.prototype, O) : W && W.get ? a(HTMLElement.prototype, W) : da(c, function (b) {
387 a(b, { enumerable: !0, configurable: !0, get: function () { return H.call(this, !0).innerHTML; }, set: function (a) { var b = "template" === this.localName, c = b ? this.content : this, e = G.call(document, this.namespaceURI, this.localName); for (e.innerHTML = a; 0 < c.childNodes.length;)
388 K.call(c, c.childNodes[0]); for (a = b ? e.content : e; 0 < a.childNodes.length;)
389 I.call(c, a.childNodes[0]); } });
390 });
391 r(Element.prototype, "setAttribute", function (a, b) { if (1 !== this.__CE_state)
392 return Q.call(this, a, b); var e = P.call(this, a); Q.call(this, a, b); b = P.call(this, a); c.attributeChangedCallback(this, a, e, b, null); });
393 r(Element.prototype, "setAttributeNS", function (a, b, d) { if (1 !== this.__CE_state)
394 return T.call(this, a, b, d); var e = S.call(this, a, b); T.call(this, a, b, d); d = S.call(this, a, b); c.attributeChangedCallback(this, b, e, d, a); });
395 r(Element.prototype, "removeAttribute", function (a) { if (1 !== this.__CE_state)
396 return R.call(this, a); var b = P.call(this, a); R.call(this, a); null !== b && c.attributeChangedCallback(this, a, b, null, null); });
397 r(Element.prototype, "removeAttributeNS", function (a, b) {
398 if (1 !== this.__CE_state)
399 return U.call(this, a, b);
400 var d = S.call(this, a, b);
401 U.call(this, a, b);
402 var e = S.call(this, a, b);
403 d !== e && c.attributeChangedCallback(this, b, d, e, a);
404 });
405 ua ? b(HTMLElement.prototype, ua) : ma ? b(Element.prototype, ma) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");
406 va ? d(HTMLElement.prototype, va) : na ? d(Element.prototype, na) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");
407 Y(c, Element.prototype, { h: oa, append: pa });
408 Aa(c);
409 }
410 var Z = window.customElements;
411 if (!Z || Z.forcePolyfill || "function" != typeof Z.define || "function" != typeof Z.get) {
412 var X = new u;
413 xa();
414 ya();
415 Y(X, DocumentFragment.prototype, { h: ka, append: la });
416 za();
417 Ba();
418 document.__CE_hasRegistry = !0;
419 var customElements = new E(X);
420 Object.defineProperty(window, "customElements", { configurable: !0, enumerable: !0, value: customElements });
421 }
422 }).call(self);
423 // Polyfill document.baseURI
424 "string" !== typeof document.baseURI && Object.defineProperty(Document.prototype, "baseURI", { enumerable: !0, configurable: !0, get: function () { var a = document.querySelector("base"); return a && a.href ? a.href : document.URL; } });
425 // Polyfill CustomEvent
426 "function" !== typeof window.CustomEvent && (window.CustomEvent = function (c, a) { a = a || { bubbles: !1, cancelable: !1, detail: void 0 }; var b = document.createEvent("CustomEvent"); b.initCustomEvent(c, a.bubbles, a.cancelable, a.detail); return b; }, window.CustomEvent.prototype = window.Event.prototype);
427 // Event.composedPath
428 (function (b, c, d) { b.composedPath || (b.composedPath = function () { if (this.path)
429 return this.path; var a = this.target; for (this.path = []; null !== a.parentNode;)
430 this.path.push(a), a = a.parentNode; this.path.push(c, d); return this.path; }); })(Event.prototype, document, window);
431 /*!
432 Element.closest and Element.matches
433 https://github.com/jonathantneal/closest
434 Creative Commons Zero v1.0 Universal
435 */
436 (function (a) { "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) { a = (this.document || this.ownerDocument).querySelectorAll(a); for (var b = 0; a[b] && a[b] !== this;)
437 ++b; return !!a[b]; }); "function" !== typeof a.closest && (a.closest = function (a) { for (var b = this; b && 1 === b.nodeType;) {
438 if (b.matches(a))
439 return b;
440 b = b.parentNode;
441 } return null; }); })(window.Element.prototype);
442 /*!
443 Element.getRootNode()
444 */
445 (function (c) { function d(a) { a = b(a); return a && 11 === a.nodeType ? d(a.host) : a; } function b(a) { return a && a.parentNode ? b(a.parentNode) : a; } "function" !== typeof c.getRootNode && (c.getRootNode = function (a) { return a && a.composed ? d(this) : b(this); }); })(Element.prototype);
446 /*!
447 Element.isConnected()
448 */
449 (function (a) { "isConnected" in a || Object.defineProperty(a, "isConnected", { configurable: !0, enumerable: !0, get: function () { var a = this.getRootNode({ composed: !0 }); return a && 9 === a.nodeType; } }); })(Element.prototype);
450 /*!
451 Element.remove()
452 */
453 (function (b) { b.forEach(function (a) { a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { null !== this.parentNode && this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
454 /*!
455 Element.classList
456 */
457 !function (e) { 'classList' in e || Object.defineProperty(e, "classList", { get: function () { var e = this, t = (e.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g); function n() { t.length > 0 ? e.setAttribute("class", t.join(" ")) : e.removeAttribute("class"); } return "" === t[0] && t.splice(0, 1), t.toggle = function (e, i) { void 0 !== i ? i ? t.add(e) : t.remove(e) : -1 !== t.indexOf(e) ? t.splice(t.indexOf(e), 1) : t.push(e), n(); }, t.add = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
458 -1 === t.indexOf(e[i]) && t.push(e[i]); n(); }, t.remove = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
459 -1 !== t.indexOf(e[i]) && t.splice(t.indexOf(e[i]), 1); n(); }, t.item = function (e) { return t[e]; }, t.contains = function (e) { return -1 !== t.indexOf(e); }, t.replace = function (e, i) { -1 !== t.indexOf(e) && t.splice(t.indexOf(e), 1, i), n(); }, t.value = e.getAttribute("class") || "", t; } }); }(Element.prototype);
460 /*!
461 DOMTokenList
462 */
463 (function (b) { try {
464 document.body.classList.add();
465 }
466 catch (e) {
467 var c = b.add, d = b.remove;
468 b.add = function () { for (var a = 0; a < arguments.length; a++)
469 c.call(this, arguments[a]); };
470 b.remove = function () { for (var a = 0; a < arguments.length; a++)
471 d.call(this, arguments[a]); };
472 } })(DOMTokenList.prototype);
473 }
474 };
475});