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