Back to Codebase

Vulnerability Analysis Report

Cassiopeia Framework Theme v4.0.0-alpha1

Scan ID: SCAN-CASSIOPEIA-5K1pEn • Hash: 98f0d5f9

Severity Score
Critical
Total Findings
100
Engine Version
ECOMGUARD-HYBRID-AST-1.5
Scan Duration
0.644s

Vulnerability Details

L42

Dynamic Code Execution in uctc.php

CWE-94
File Location: libraries/idna_convert/uctc.php:42
Security Score:
98 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- if ($from != 'ucs4array') eval('$data = self::'.$from.'_ucs4array($data);');
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L43

Dynamic Code Execution in uctc.php

CWE-94
File Location: libraries/idna_convert/uctc.php:43
Security Score:
98 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- if ($to != 'ucs4array') eval('$data = self::ucs4array_'.$to.'($data);');
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L597

Dynamic Code Execution in HtmlDocument.php

CWE-94
File Location: libraries/src/Document/HtmlDocument.php:597
Security Score:
97 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- return eval($str);
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L445

Dynamic Code Execution in PlgContentEmailcloakTest.php

CWE-94
File Location: tests/unit/suites/plugins/content/emailcloak/PlgContentEmailcloakTest.php:445
Security Score:
96 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- eval($js);
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L453

Dynamic Code Execution in PlgContentEmailcloakTest.php

CWE-94
File Location: tests/unit/suites/plugins/content/emailcloak/PlgContentEmailcloakTest.php:453
Security Score:
95 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- eval($js);
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L204

Insecure DOM Manipulation (XSS) in overrider.js

CWE-79
File Location: media/com_languages/js/overrider.js:204
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- string.innerHTML = item.string;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L36

Insecure DOM Manipulation (XSS) in edit-images.js

CWE-79
File Location: media/com_media/js/edit-images.js:36
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.getElementById('media-manager-edit-container').innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L194

Insecure DOM Manipulation (XSS) in edit-images.js

CWE-79
File Location: media/com_media/js/edit-images.js:194
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.getElementById('media-manager-edit-container').innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L35

Insecure DOM Manipulation (XSS) in extensionupdatecheck.js

CWE-79
File Location: media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js:35
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- linkSpan[i].innerHTML = Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L74

Insecure DOM Manipulation (XSS) in extensionupdatecheck.js

CWE-79
File Location: media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js:74
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- linkSpan[i].innerHTML = Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_ERROR');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L988

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:988
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.title.getElementsByTagName('span')[0].innerHTML = this.params.debug ? year + ' ' + Date.convertNumbers(year.toString()) : Date.convertNumbers(year.toString());
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L37

Insecure DOM Manipulation (XSS) in moduleorder.js

CWE-79
File Location: media/system/js/fields/moduleorder.js:37
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- element.innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L53

Insecure DOM Manipulation (XSS) in moduleorder.js

CWE-79
File Location: media/system/js/fields/moduleorder.js:53
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- node.innerHTML = item[ 2 ];
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in caption.min.js

CWE-79
File Location: media/system/js/legacy/caption.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- Joomla=window.Joomla||{},function(t){t.JCaption=function(t){var e=function(t,e){var n,o=t.getAttribute("title"),i=t.getAttribute("width")||t.style.width,a=t.getAttribute("align")||t.style.cssFloat||"none",s=document.createElement("p"),c=e.replace(".","_").replace("#","").replace(",","").split(" ");s.innerHTML=o,n=document.createElement("div"),c.forEach(function(t){s.classList.add(t),n.classList.add(t)}),n.classList.add(a),function(t,e){e.parentNode.insertBefore(t,e)}(n,t),""!==o&&n.appendChild(s),n.style.cssFloat=a,n.style.width=/px/.test(i)?i:i+"px",n.appendChild(t)};!function(t){for(var n=document.querySelectorAll(t),o=0,i=n.length;o<i;o++)e(n[o],t)}(t)},document.addEventListener("DOMContentLoaded",function(){t.getOptions&&"function"==typeof t.getOptions&&t.getOptions("js-image-caption")&&t.getOptions("js-image-caption").selector&&new t.JCaption(t.getOptions("js-image-caption").selector)})}(Joomla);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L31

Insecure DOM Manipulation (XSS) in webcomponents-hi.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi.js:31
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- null;b.b--;b.o()})};e.prototype.C=function(a,b){if(!a)return document.createDocumentFragment();A&&(a=a.replace(y,function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=g.f(c.getAttribute("href"),b),c.removeAttribute("href");var d=0;k(a.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L36

Insecure DOM Manipulation (XSS) in webcomponents-lite.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-lite.js:36
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- return b}})}function c(b,c){x(b,"insertAdjacentElement",function(b,d){var e=t(d);b=c.call(this,b,d);e&&a.a(d);t(b)&&a.b(d);return b})}Sb&&x(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=Sb.call(this,a)});if(Qa&&Qa.get)b(Element.prototype,Qa);else if(Ra&&Ra.get)b(HTMLElement.prototype,Ra);else{var d=Sa.call(document,"div");a.v(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return Tb.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L89

Insecure DOM Manipulation (XSS) in webcomponents-sd-ce.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-sd-ce.js:89
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.localName?this.content:this;return S(this)?Oa(a):Vb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(ib&&ib.set?ib.set.call(ra,a):ra.innerHTML=a;ra.firstChild;)b.appendChild(ra.firstChild)},configurable:!0}},Nc={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ya||null},configurable:!0}},Qa={activeElement:{get:function(){var a=jb&&jb.get?jb.get.call(document):D.R?void 0:document.activeElement;if(a&&a.nodeType){var b=
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in lint.min.js

CWE-79
File Location: media/vendor/codemirror/addon/lint/lint.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";function e(t){t.parentNode&&t.parentNode.removeChild(t)}function n(n,o,r){function i(){t.off(r,"mouseout",i),a&&(!function(t){t.parentNode&&(null==t.style.opacity&&e(t),t.style.opacity=0,setTimeout(function(){e(t)},600))}(a),a=null)}var a=function(e,n){function o(e){if(!r.parentNode)return t.off(document,"mousemove",o);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}var r=document.createElement("div");return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),t.on(document,"mousemove",o),o(e),null!=r.style.opacity&&(r.style.opacity=1),r}(n,o),s=setInterval(function(){if(a)for(var t=r;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){i();break}}if(!a)return clearInterval(s)},400);t.on(r,"mouseout",i)}function o(t,e,o){this.marked=[],this.options=e,this.timeout=null,this.hasGutter=o,this.onMouseOver=function(e){!function(t,e){var o=e.target||e.srcElement;if(!/\bCodeMirror-lint-mark-/.test(o.className))return;for(var r=o.getBoundingClientRect(),i=(r.left+r.right)/2,a=(r.top+r.bottom)/2,u=t.findMarksAt(t.coordsChar({left:i,top:a},"client")),l=[],c=0;c<u.length;++c){var f=u[c].__annotation;f&&l.push(f)}l.length&&function(t,e){for(var o=e.target||e.srcElement,r=document.createDocumentFragment(),i=0;i<t.length;i++){var a=t[i];r.appendChild(s(a))}n(e,r,o)}(l,e)}(t,e)},this.waitingFor=0}function r(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(f);for(var n=0;n<e.marked.length;++n)e.marked[n].clear();e.marked.length=0}function i(e,o,r,i){var a=document.createElement("div"),s=a;return a.className="CodeMirror-lint-marker-"+o,r&&((s=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=i&&t.on(s,"mouseover",function(t){n(t,e,s)}),a}function a(t,e){return"error"==t?t:e}function s(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+e,void 0!==t.messageHTML?n.innerHTML=t.messageHTML:n.appendChild(document.createTextNode(t.message)),n}function u(e){var n=e.state.lint.options,o=n.options||n,r=n.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(r)if(n.async||r.async)!function(e,n,o){function r(){a=-1,e.off("change",r)}var i=e.state.lint,a=++i.waitingFor;e.on("change",r),n(e.getValue(),function(n,o){e.off("change",r),i.waitingFor==a&&(o&&n instanceof t&&(n=o),l(e,n))},o,e)}(e,r,o);else{var i=r(e.getValue(),o,e);if(!i)return;i.then?i.then(function(t){l(e,t)}):l(e,i)}}function l(t,e){r(t);for(var n=t.state.lint,o=n.options,u=function(t){for(var e=[],n=0;n<t.length;++n){var o=t[n],r=o.from.line;(e[r]||(e[r]=[])).push(o)}return e}(e),l=0;l<u.length;++l){var c=u[l];if(c){for(var m=null,d=n.hasGutter&&document.createDocumentFragment(),p=0;p<c.length;++p){var h=c[p],g=h.severity;g||(g="error"),m=a(m,g),o.formatAnnotation&&(h=o.formatAnnotation(h)),n.hasGutter&&d.appendChild(s(h)),h.to&&n.marked.push(t.markText(h.from,h.to,{className:"CodeMirror-lint-mark-"+g,__annotation:h}))}n.hasGutter&&t.setGutterMarker(l,f,i(d,m,c.length>1,n.options.tooltips))}}o.onUpdateLinting&&o.onUpdateLinting(e,u,t)}function c(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){u(t)},e.options.delay||500))}var f="CodeMirror-lint-markers";t.defineOption("lint",!1,function(e,n,i){if(i&&i!=t.Init&&(r(e),!1!==e.state.lint.options.lintOnChange&&e.off("change",c),t.off(e.getWrapperElement(),"mouseover",e.state.lint.onMouseOver),clearTimeout(e.state.lint.timeout),delete e.state.lint),n){for(var a=e.getOption("gutters"),s=!1,l=0;l<a.length;++l)a[l]==f&&(s=!0);var m=e.state.lint=new o(e,function(t,e){return e instanceof Function?{getAnnotations:e}:(e&&!0!==e||(e={}),e)}(0,n),s);!1!==m.options.lintOnChange&&e.on("change",c),0!=m.options.tooltips&&"gutter"!=m.options.tooltips&&t.on(e.getWrapperElement(),"mouseover",m.onMouseOver),u(e)}}),t.defineExtension("performLint",function(){this.state.lint&&u(this)})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";function e(t){t.parentNode&&t.parentNode.removeChild(t)}function n(n,o,r){function i(){t.off(r,"mouseout",i),a&&(function(t){t.parentNode&&(null==t.style.opacity&&e(t),t.style.opacity=0,setTimeout(function(){e(t)},600))}(a),a=null)}var a=function(e,n){function o(e){if(!r.parentNode)return t.off(document,"mousemove",o);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}var r=document.createElement("div");return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),t.on(document,"mousemove",o),o(e),null!=r.style.opacity&&(r.style.opacity=1),r}(n,o),s=setInterval(function(){if(a)for(var t=r;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){i();break}}if(!a)return clearInterval(s)},400);t.on(r,"mouseout",i)}function o(t,e,o){this.marked=[],this.options=e,this.timeout=null,this.hasGutter=o,this.onMouseOver=function(e){!function(t,e){var o=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(o.className)){for(var r=o.getBoundingClientRect(),i=(r.left+r.right)/2,a=(r.top+r.bottom)/2,u=t.findMarksAt(t.coordsChar({left:i,top:a},"client")),l=[],c=0;c<u.length;++c){var f=u[c].__annotation;f&&l.push(f)}l.length&&function(t,e){for(var o=e.target||e.srcElement,r=document.createDocumentFragment(),i=0;i<t.length;i++){var a=t[i];r.appendChild(s(a))}n(e,r,o)}(l,e)}}(t,e)},this.waitingFor=0}function r(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(f);for(var n=0;n<e.marked.length;++n)e.marked[n].clear();e.marked.length=0}function i(e,o,r,i){var a=document.createElement("div"),s=a;return a.className="CodeMirror-lint-marker-"+o,r&&((s=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=i&&t.on(s,"mouseover",function(t){n(t,e,s)}),a}function a(t,e){return"error"==t?t:e}function s(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+e,void 0!==t.messageHTML?n.innerHTML=t.messageHTML:n.appendChild(document.createTextNode(t.message)),n}function u(e){var n=e.state.lint.options,o=n.options||n,r=n.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(r)if(n.async||r.async)!function(e,n,o){function r(){a=-1,e.off("change",r)}var i=e.state.lint,a=++i.waitingFor;e.on("change",r),n(e.getValue(),function(n,o){e.off("change",r),i.waitingFor==a&&(o&&n instanceof t&&(n=o),l(e,n))},o,e)}(e,r,o);else{var i=r(e.getValue(),o,e);if(!i)return;i.then?i.then(function(t){l(e,t)}):l(e,i)}}function l(t,e){r(t);for(var n=t.state.lint,o=n.options,u=function(t){for(var e=[],n=0;n<t.length;++n){var o=t[n],r=o.from.line;(e[r]||(e[r]=[])).push(o)}return e}(e),l=0;l<u.length;++l){var c=u[l];if(c){for(var m=null,d=n.hasGutter&&document.createDocumentFragment(),p=0;p<c.length;++p){var h=c[p],g=h.severity;g||(g="error"),m=a(m,g),o.formatAnnotation&&(h=o.formatAnnotation(h)),n.hasGutter&&d.appendChild(s(h)),h.to&&n.marked.push(t.markText(h.from,h.to,{className:"CodeMirror-lint-mark-"+g,__annotation:h}))}n.hasGutter&&t.setGutterMarker(l,f,i(d,m,c.length>1,n.options.tooltips))}}o.onUpdateLinting&&o.onUpdateLinting(e,u,t)}function c(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){u(t)},e.options.delay||500))}var f="CodeMirror-lint-markers";t.defineOption("lint",!1,function(e,n,i){if(i&&i!=t.Init&&(r(e),!1!==e.state.lint.options.lintOnChange&&e.off("change",c),t.off(e.getWrapperElement(),"mouseover",e.state.lint.onMouseOver),clearTimeout(e.state.lint.timeout),delete e.state.lint),n){for(var a=e.getOption("gutters"),s=!1,l=0;l<a.length;++l)a[l]==f&&(s=!0);var m=e.state.lint=new o(e,function(t,e){return e instanceof Function?{getAnnotations:e}:(e&&!0!==e||(e={}),e)}(0,n),s);!1!==m.options.lintOnChange&&e.on("change",c),0!=m.options.tooltips&&"gutter"!=m.options.tooltips&&t.on(e.getWrapperElement(),"mouseover",m.onMouseOver),u(e)}}),t.defineExtension("performLint",function(){this.state.lint&&u(this)})});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3513

Insecure DOM Manipulation (XSS) in cropper.js

CWE-79
File Location: media/vendor/cropperjs/js/cropper.js:3513
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- template.innerHTML = TEMPLATE;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L6

Insecure DOM Manipulation (XSS) in joomla-alert.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert.js:6
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- style.innerHTML = css;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-tab-es5.min.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-tab-es5.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function t(e,r,o){function i(n,c){if(!r[n]){if(!e[n]){var l="function"==typeof require&&require;if(!c&&l)return l(n,!0);if(a)return a(n,!0);var s=new Error("Cannot find module '"+n+"'");throw s.code="MODULE_NOT_FOUND",s}var u=r[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r||t)},u,u.exports,t,e,r,o)}return r[n].exports}for(var a="function"==typeof require&&require,n=0;n<o.length;n++)i(o[n]);return i}({1:[function(t,e,r){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":n(e))&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":n(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=function(){function t(t,e){for(var r,o=0;o<e.length;o++)(r=e[o]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}return function(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),e}}();!function(){if(!document.getElementById("joomla-tab-stylesheet")){var t=document.createElement("style");t.id="joomla-tab-stylesheet",t.innerText='joomla-tab{display:flex;flex-direction:column}joomla-tab>ul{display:flex;background-color:#f5f5f5;border-color:#ccc #ccc currentcolor;border-image:none;border-radius:.25rem .25rem 0 0;border-style:solid solid none;border-width:1px 1px 0;box-shadow:0 1px #fff inset,0 2px 3px -3px rgba(0,0,0,.15),0 -4px 0 rgba(0,0,0,.05) inset,0 0 3px rgba(0,0,0,.04);margin:0;padding:0;list-style:outside none none;overflow-x:auto;overflow-y:hidden;white-space:nowrap}joomla-tab>ul a{display:block;color:#0d1321;padding:.75em 1em;position:relative;box-shadow:1px 0 0 rgba(0,0,0,.05);text-decoration:none}joomla-tab>ul a[active]{background-color:rgba(0,0,0,.03);background-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.05) 100%);border-left:0 none;border-right:0 none;border-top-left-radius:0;border-top-right-radius:0;box-shadow:2px 0 1px -1px rgba(0,0,0,.08) inset,-2px 0 1px -1px rgba(0,0,0,.08) inset,0 1px 0 rgba(0,0,0,.02) inset}joomla-tab>ul a[active]:after{background-color:#006898;bottom:-1px;content:"";height:5px;left:0;opacity:.8;position:absolute;right:0}joomla-tab>section{display:none;background-color:#fefefe;border:1px solid #ccc;border-radius:0 0 .25rem .25rem;box-shadow:0 0 3px rgba(0,0,0,.04);padding:15px}joomla-tab>section[active]{display:block}joomla-tab[orientation=vertical]{flex-direction:row;align-items:flex-start}joomla-tab[orientation=vertical]>ul{flex-direction:column;min-width:30%;height:auto;border:1px solid #ccc;border-radius:.25rem;box-shadow:none;overflow:hidden}joomla-tab[orientation=vertical] li:last-of-type a{border-bottom:0}joomla-tab[orientation=vertical] a{display:block;color:#0d1321;padding:.75em 1em;position:relative;border-bottom:1px solid #ddd;box-shadow:none;text-decoration:none}joomla-tab[orientation=vertical] a[active]{border-left:0 none;border-right:0 none;background-color:#fff;background-image:none;box-shadow:none}joomla-tab[orientation=vertical] a[active]:after{left:-1px;width:5px;height:auto;top:0;bottom:0}joomla-tab[orientation=vertical]>section{border:0 none;box-shadow:none;padding:0 15px}',document.head.appendChild(t)}}();var l=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.hasActive=!1,t.currentActive="",t}return a(e,HTMLElement),c(e,[{key:"recall",get:function(){return this.getAttribute("recall")}},{key:"orientation",get:function(){return this.getAttribute("orientation")},set:function(t){this.setAttribute("orientation",t)}}],[{key:"observedAttributes",get:function(){return["recall","orientation"]}}]),c(e,[{key:"connectedCallback",value:function(){var t=this;(!this.orientation||this.orientation&&-1===["horizontal","vertical"].indexOf(this.orientation))&&(this.orientation="horizontal");var e=[].slice.call(this.querySelectorAll("section"));if(e){for(var r,o=[],i=0,a=e.length;i<a;++i)(r=e[i]).parentNode===this&&o.push(r);this.createNavigation(tabsEl),tabsEl.forEach(function(e){if(e.setAttribute("role","tabpanel"),e.hasAttribute("active"))return t.hasActive=!0,t.currentActive=e.id,t.querySelector("#tab-"+e.id).setAttribute("aria-selected","true"),t.querySelector("#tab-"+e.id).setAttribute("active",""),void t.querySelector("#tab-"+e.id).setAttribute("tabindex","0")}),this.hasActive||(tabsEl[0].setAttribute("active",""),this.hasActive=!0,this.currentActive=tabsEl[0].id,this.querySelector("#tab-"+tabsEl[0].id).setAttribute("aria-selected","true"),this.querySelector("#tab-"+tabsEl[0].id).setAttribute("tabindex","0"),this.querySelector("#tab-"+tabsEl[0].id).setAttribute("active","")),this.keyListeners(tabsEl),this.hasAttribute("recall")&&this.restoreState()}}},{key:"disconnectedCallback",value:function(){var t=this.querySelector("ul");[].slice.call(t.querySelectorAll("a")).forEach(function(t){t.removeEventListener("click",this)}),t.removeEventListener("keydown",this)}},{key:"createNavigation",value:function(t){var e=this,r=document.createElement("ul");r.setAttribute("role","tablist");var o=function(t){t.preventDefault(),e.hasActive&&e.hideCurrent();var r=e.currentActive;e.dispatchCustomEvent("joomla.tab.show",t.target,e.querySelector("#tab-"+r)),t.target.setAttribute("active",""),t.target.setAttribute("aria-selected","true"),t.target.setAttribute("tabindex","0"),e.querySelector(t.target.hash).setAttribute("active",""),e.querySelector(t.target.hash).removeAttribute("aria-hidden"),e.currentActive=t.target.hash.substring(1),e.dispatchCustomEvent("joomla.tab.shown",t.target,e.querySelector("#tab-"+r))};t.forEach(function(t){if(t.id){var e=t.hasAttribute("active"),i=document.createElement("li"),a=document.createElement("a");i.setAttribute("role","presentation"),a.setAttribute("role","tab"),a.setAttribute("aria-controls",t.id),a.setAttribute("aria-selected",e?"true":"false"),a.setAttribute("tabindex",e?"0":"-1"),a.setAttribute("href","#"+t.id),a.setAttribute("id","tab-"+t.id),a.innerHTML=t.getAttribute("name"),e&&a.setAttribute("active",""),a.addEventListener("click",o),i.append(a),r.append(i),t.setAttribute("aria-labelledby","tab-"+t.id),e||t.setAttribute("aria-hidden","true")}}),this.insertAdjacentElement("afterbegin",r)}},{key:"hideCurrent",value:function(){if(this.currentActive){var t=this.querySelector('a[aria-controls="'+this.currentActive+'"]');this.dispatchCustomEvent("joomla.tab.hide",t,this.querySelector("#tab-"+this.currentActive)),t.removeAttribute("active"),t.setAttribute("tabindex","-1"),this.querySelector("#"+this.currentActive).removeAttribute("active"),this.querySelector("#"+this.currentActive).setAttribute("aria-hidden","true"),t.removeAttribute("aria-selected"),this.dispatchCustomEvent("joomla.tab.hidden",t,this.querySelector("#tab-"+this.currentActive))}}},{key:"showTab",value:function(t){querySelector("#tab-"+t.id).click()}},{key:"show",value:function(t){t.click()}},{key:"keyListeners",value:function(){var t=this;this.querySelector("ul").addEventListener("keydown",function(e){var r=t.querySelector("#tab-"+t.currentActive),o=[].slice.call(t.querySelector("ul").querySelectorAll("a")),i=r.parentNode.previousElementSibling||o[o.length-1],a=r.parentNode.nextElementSibling||o[0];if(!e.metaKey&&!e.altKey)switch(e.keyCode){case 37:case 38:"li"===i.tagName.toLowerCase()?(i.querySelector("a").click(),i.querySelector("a").focus()):(i.click(),i.focus()),e.preventDefault();break;case 39:case 40:"a"===a.tagName.toLowerCase()?(a.click(),a.focus()):(a.querySelector("a").click(),a.querySelector("a").focus()),e.preventDefault()}})}},{key:"restoreState",value:function(){}},{key:"dispatchCustomEvent",value:function(t,e,r){var o=new CustomEvent(t);o.relatedTarget=r,e.dispatchEvent(o),e.removeEventListener(t,e)}}]),e}();customElements.define("joomla-tab",l)},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4877

Insecure DOM Manipulation (XSS) in jquery.js

CWE-79
File Location: media/vendor/jquery/js/jquery.js:4877
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = "<textarea>x</textarea>";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L7760

Insecure DOM Manipulation (XSS) in jquery.slim.js

CWE-79
File Location: media/vendor/jquery/js/jquery.slim.js:7760
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- body.innerHTML = "<form></form><form></form>";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1766

Insecure DOM Manipulation (XSS) in mediaelement.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement.js:1766
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- flash.flashWrapper.innerHTML = '<embed ' + settings.join(' ') + '>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L15915

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:15915
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- body.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L17649

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:17649
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl().innerHTML = createOptions(e.value);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1448

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/mobile/theme.js:1448
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L16678

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.js:16678
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl('body').innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L5

Insecure DOM Manipulation (XSS) in theme.min.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.min.js:5
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- g("1h",["15","2u"],function(a,b){"use strict";return a.extend({renderHtml:function(){var a=this;return a.classes.add("iframe"),a.canFocus=!1,'<iframe id="'+a._id+'" class="'+a.classes+'" tabindex="-1" src="'+(a.settings.url||"javascript:''")+'" frameborder="0"></iframe>'},src:function(a){this.getEl().src=a},html:function(a,c){var d=this,e=this.getEl().contentWindow.document.body;return e?(e.innerHTML=a,c&&c()):b.setTimeout(function(){d.html(a)}),this}})}),g("1i",["15"],function(a){"use strict";return a.extend({init:function(a){var b=this;b._super(a),b.classes.add("widget").add("infobox"),b.canFocus=!1},severity:function(a){this.classes.remove("error"),this.classes.remove("warning"),this.classes.remove("success"),this.classes.add(a)},help:function(a){this.state.set("help",a)},renderHtml:function(){var a=this,b=a.classPrefix;return'<div id="'+a._id+'" class="'+a.classes+'"><div id="'+a._id+'-body">'+a.encode(a.state.get("text"))+'<button role="button" tabindex="-1"><i class="'+b+"ico "+b+'i-help"></i></button></div></div>'},bindStates:function(){var a=this;return a.state.on("change:text",function(b){a.getEl("body").firstChild.data=a.encode(b.value),a.state.get("rendered")&&a.updateLayoutRect()}),a.state.on("change:help",function(b){a.classes.toggle("has-help",b.value),a.state.get("rendered")&&a.updateLayoutRect()}),a._super()}})}),g("1k",["15","2n"],function(a,b){"use strict";return a.extend({init:function(a){var b=this;b._super(a),b.classes.add("widget").add("label"),b.canFocus=!1,a.multiline&&b.classes.add("autoscroll"),a.strong&&b.classes.add("strong")},initLayoutRect:function(){var a=this,c=a._super();if(a.settings.multiline){var d=b.getSize(a.getEl());d.width>c.maxW&&(c.minW=c.maxW,a.classes.add("multiline")),a.getEl().style.width=c.minW+"px",c.startMinH=c.h=c.minH=Math.min(c.maxH,b.getSize(a.getEl()).height)}return c},repaint:function(){var a=this;return a.settings.multiline||(a.getEl().style.lineHeight=a.layoutRect().h+"px"),a._super()},severity:function(a){this.classes.remove("error"),this.classes.remove("warning"),this.classes.remove("success"),this.classes.add(a)},renderHtml:function(){var a,b,c=this,d=c.settings.forId,e=c.settings.html?c.settings.html:c.encode(c.state.get("text"));return!d&&(b=c.settings.forName)&&(a=c.getRoot().find("#"+b)[0],a&&(d=a._id)),d?'<label id="'+c._id+'" class="'+c.classes+'"'+(d?' for="'+d+'"':"")+">"+e+"</label>":'<span id="'+c._id+'" class="'+c.classes+'">'+e+"</span>"},bindStates:function(){var a=this;return a.state.on("change:text",function(b){a.innerHtml(a.encode(b.value)),a.state.get("rendered")&&a.updateLayoutRect()}),a._super()}})}),g("2c",["n"],function(a){"use strict";return a.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(a){var b=this;b._super(a),b.classes.add("toolbar")},postRender:function(){var a=this;return a.items().each(function(a){a.classes.add("toolbar-item")}),a._super()}})}),g("1o",["2c"],function(a){"use strict";return a.extend({Defaults:{role:"menubar",containerCls:"menubar",ariaRoot:!0,defaults:{type:"menubutton"}}})}),g("1p",["1","b","f","1o"],function(a,b,c,d){"use strict";function e(a,b){for(;a;){if(b===a)return!0;a=a.parentNode}return!1}var f=c.extend({init:function(a){var b=this;b._renderOpen=!0,b._super(a),a=b.settings,b.classes.add("menubtn"),a.fixedWidth&&b.classes.add("fixed-width"),b.aria("haspopup",!0),b.state.set("menu",a.menu||b.render())},showMenu:function(a){var c,d=this;return d.menu&&d.menu.visible()&&a!==!1?d.hideMenu():(d.menu||(c=d.state.get("menu")||[],d.classes.add("opened"),c.length?c={type:"menu",animate:!0,items:c}:(c.type=c.type||"menu",c.animate=!0),c.renderTo?d.menu=c.parent(d).show().renderTo():d.menu=b.create(c).parent(d).renderTo(),d.fire("createmenu"),d.menu.reflow(),d.menu.on("cancel",function(a){a.control.parent()===d.menu&&(a.stopPropagation(),d.focus(),d.hideMenu())}),d.menu.on("select",function(){d.focus()}),d.menu.on("show hide",function(a){a.control===d.menu&&(d.activeMenu("show"==a.type),d.classes.toggle("opened","show"==a.type)),d.aria("expanded","show"==a.type)}).fire("show")),d.menu.show(),d.menu.layoutRect({w:d.layoutRect().w}),d.menu.moveRel(d.getEl(),d.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"]),void d.fire("showmenu"))},hideMenu:function(){var a=this;a.menu&&(a.menu.items().each(function(a){a.hideMenu&&a.hideMenu()}),a.menu.hide())},activeMenu:function(a){this.classes.toggle("active",a)},renderHtml:function(){var b,c=this,e=c._id,f=c.classPrefix,g=c.settings.icon,h=c.state.get("text"),i="";return b=c.settings.image,b?(g="none","string"!=typeof b&&(b=a.getSelection?b[0]:b[1]),b=" style=\"background-image: url('"+b+"')\""):b="",h&&(c.classes.add("btn-has-text"),i='<span class="'+f+'txt">'+c.encode(h)+"</span>"),g=c.settings.icon?f+"ico "+f+"i-"+g:"",c.aria("role",c.parent()instanceof d?"menuitem":"button"),'<div id="'+e+'" class="'+c.classes+'" tabindex="-1" aria-labelledby="'+e+'"><button id="'+e+'-open" role="presentation" type="button" tabindex="-1">'+(g?'<i class="'+g+'"'+b+"></i>":"")+i+' <i class="'+f+'caret"></i></button></div>'},postRender:function(){var a=this;return a.on("click",function(b){b.control===a&&e(b.target,a.getEl())&&(a.focus(),a.showMenu(!b.aria),b.aria&&a.menu.items().filter(":visible")[0].focus())}),a.on("mouseenter",function(b){var c,d=b.control,e=a.parent();d&&e&&d instanceof f&&d.parent()==e&&(e.items().filter("MenuButton").each(function(a){a.hideMenu&&a!=d&&(a.menu&&a.menu.visible()&&(c=!0),a.hideMenu())}),c&&(d.focus(),d.showMenu()))}),a._super()},bindStates:function(){var a=this;return a.state.on("change:menu",function(){a.menu&&a.menu.remove(),a.menu=null}),a._super()},remove:function(){this._super(),this.menu&&this.menu.remove()}});return f}),g("1q",["15","b","14","2u"],function(a,b,c,d){"use strict";var e=function(a,b){var c=a._textStyle;if(c){var d=a.getEl("text");d.setAttribute("style",c),b&&(d.style.color="",d.style.backgroundColor="")}};return a.extend({Defaults:{border:0,role:"menuitem"},init:function(a){var b,c=this;c._super(a),a=c.settings,c.classes.add("menu-item"),a.menu&&c.classes.add("menu-item-expand"),a.preview&&c.classes.add("menu-item-preview"),b=c.state.get("text"),"-"!==b&&"|"!==b||(c.classes.add("menu-item-sep"),c.aria("role","separator"),c.state.set("text","-")),a.selectable&&(c.aria("role","menuitemcheckbox"),c.classes.add("menu-item-checkbox"),a.icon="selected"),a.preview||a.selectable||c.classes.add("menu-item-normal"),c.on("mousedown",function(a){a.preventDefault()}),a.menu&&!a.ariaHideMenu&&c.aria("haspopup",!0)},hasMenus:function(){return!!this.settings.menu},showMenu:function(){var a,c=this,d=c.settings,e=c.parent();if(e.items().each(function(a){a!==c&&a.hideMenu()}),d.menu){a=c.menu,a?a.show():(a=d.menu,a.length?a={type:"menu",animate:!0,items:a}:(a.type=a.type||"menu",a.animate=!0),e.settings.itemDefaults&&(a.itemDefaults=e.settings.itemDefaults),a=c.menu=b.create(a).parent(c).renderTo(),a.reflow(),a.on("cancel",function(b){b.stopPropagation(),c.focus(),a.hide()}),a.on("show hide",function(a){a.control.items&&a.control.items().each(function(a){a.active(a.settings.selected)})}).fire("show"),a.on("hide",function(b){b.control===a&&c.classes.remove("selected")}),a.submenu=!0),a._parentMenu=e,a.classes.add("menu-sub");var f=a.testMoveRel(c.getEl(),c.isRtl()?["tl-tr","bl-br","tr-tl","br-bl"]:["tr-tl","br-bl","tl-tr","bl-br"]);a.moveRel(c.getEl(),f),a.rel=f,f="menu-sub-"+f,a.classes.remove(a._lastRel).add(f),a._lastRel=f,c.classes.add("selected"),c.aria("expanded",!0)}},hideMenu:function(){var a=this;return a.menu&&(a.menu.items().each(function(a){a.hideMenu&&a.hideMenu()}),a.menu.hide(),a.aria("expanded",!1)),a},renderHtml:function(){function a(a){var b,d,e={};for(e=c.mac?{alt:"&#x2325;",ctrl:"&#x2318;",shift:"&#x21E7;",meta:"&#x2318;"}:{meta:"Ctrl"},a=a.split("+"),b=0;b<a.length;b++)d=e[a[b].toLowerCase()],d&&(a[b]=d);return a.join("+")}function b(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function d(a){var c=h.match||"";return c?a.replace(new RegExp(b(c),"gi"),function(a){return"!mce~match["+a+"]mce~match!"}):a}function e(a){return a.replace(new RegExp(b("!mce~match["),"g"),"<b>").replace(new RegExp(b("]mce~match!"),"g"),"</b>")}var f=this,g=f._id,h=f.settings,i=f.classPrefix,j=f.state.get("text"),k=f.settings.icon,l="",m=h.shortcut,n=f.encode(h.url),o="";return k&&f.parent().classes.add("menu-has-icons"),h.image&&(l=" style=\"background-image: url('"+h.image+"')\""),m&&(m=a(m)),k=i+"ico "+i+"i-"+(f.settings.icon||"none"),o="-"!==j?'<i class="'+k+'"'+l+"></i>\xa0":"",j=e(f.encode(d(j))),n=e(f.encode(d(n))),'<div id="'+g+'" class="'+f.classes+'" tabindex="-1">'+o+("-"!==j?'<span id="'+g+'-text" class="'+i+'text">'+j+"</span>":"")+(m?'<div id="'+g+'-shortcut" class="'+i+'menu-shortcut">'+m+"</div>":"")+(h.menu?'<div class="'+i+'caret"></div>':"")+(n?'<div class="'+i+'menu-item-link">'+n+"</div>":"")+"</div>"},postRender:function(){var a=this,b=a.settings,c=b.textStyle;if("function"==typeof c&&(c=c.call(this)),c){var e=a.getEl("text");e&&(e.setAttribute("style",c),a._textStyle=c)}return a.on("mouseenter click",function(c){c.control===a&&(b.menu||"click"!==c.type?(a.showMenu(),c.aria&&a.menu.focus(!0)):(a.fire("select"),d.requestAnimationFrame(function(){a.parent().hideAll()})))}),a._super(),a},hover:function(){var a=this;return a.parent().items().each(function(a){a.classes.remove("selected")}),a.classes.toggle("selected",!0),a},active:function(a){return e(this,a),"undefined"!=typeof a&&this.aria("checked",a),this._super(a)},remove:function(){this._super(),this.menu&&this.menu.remove()}})}),g("1n",["14","2u","c","w","1q","2b"],function(a,b,c,d,e,f){"use strict";return d.extend({Defaults:{defaultType:"menuitem",border:1,layout:"stack",role:"application",bodyRole:"menu",ariaRoot:!0},init:function(b){var d=this;if(b.autohide=!0,b.constrainToViewport=!0,"function"==typeof b.items&&(b.itemsFactory=b.items,b.items=[]),b.itemDefaults)for(var e=b.items,f=e.length;f--;)e[f]=c.extend({},b.itemDefaults,e[f]);d._super(b),d.classes.add("menu"),b.animate&&11!==a.ie&&d.classes.add("animate")},repaint:function(){return this.classes.toggle("menu-align",!0),this._super(),this.getEl().style.height="",this.getEl("body").style.height="",this},cancel:function(){var a=this;a.hideAll(),a.fire("select")},load:function(){function a(){d.throbber&&(d.throbber.hide(),d.throbber=null)}var b,c,d=this;c=d.settings.itemsFactory,c&&(d.throbber||(d.throbber=new f(d.getEl("body"),!0),0===d.items().length?(d.throbber.show(),d.fire("loading")):d.throbber.show(100,function(){d.items().remove(),d.fire("loading")}),d.on("hide close",a)),d.requestTime=b=(new Date).getTime(),d.settings.itemsFactory(function(c){return 0===c.length?void d.hide():void(d.requestTime===b&&(d.getEl().style.width="",d.getEl("body").style.width="",a(),d.items().remove(),d.getEl("body").innerHTML="",d.add(c),d.renderNew(),d.fire("loaded")))}))},hideAll:function(){var a=this;return this.find("menuitem").exec("hideMenu"),a._super()},preRender:function(){var a=this;return a.items().each(function(b){var c=b.settings;if(c.icon||c.image||c.selectable)return a._hasIcons=!0,!1}),a.settings.itemsFactory&&a.on("postrender",function(){a.settings.itemsFactory&&a.load()}),a.on("show hide",function(c){c.control===a&&("show"===c.type?b.setTimeout(function(){a.classes.add("in")},0):a.classes.remove("in"))}),a._super()}})}),g("1m",["1p","1n"],function(a,b){"use strict";return a.extend({init:function(a){function b(c){for(var f=0;f<c.length;f++){if(d=c[f].selected||a.value===c[f].value)return e=e||c[f].text,g.state.set("value",c[f].value),!0;if(c[f].menu&&b(c[f].menu))return!0}}var c,d,e,f,g=this;g._super(a),a=g.settings,g._values=c=a.values,c&&("undefined"!=typeof a.value&&b(c),!d&&c.length>0&&(e=c[0].text,g.state.set("value",c[0].value)),g.state.set("menu",c)),g.state.set("text",a.text||e),g.classes.add("listbox"),g.on("select",function(b){var c=b.control;f&&(b.lastControl=f),a.multiple?c.active(!c.active()):g.value(b.control.value()),f=c})},bindStates:function(){function a(a,c){a instanceof b&&a.items().each(function(a){a.hasMenus()||a.active(a.value()===c)})}function c(a,b){var d;if(a)for(var e=0;e<a.length;e++){if(a[e].value===b)return a[e];if(a[e].menu&&(d=c(a[e].menu,b)))return d}}var d=this;return d.on("show",function(b){a(b.control,d.value())}),d.state.on("change:value",function(a){var b=c(d.state.get("menu"),a.value);b?d.text(b.text):d.text(d.settings.text)}),d._super()}})}),g("1y",["h"],function(a){"use strict";return a.extend({Defaults:{classes:"radio",role:"radio"}})}),g("21",["15","p"],function(a,b){"use strict";return a.extend({renderHtml:function(){var a=this,b=a.classPrefix;return a.classes.add("resizehandle"),"both"==a.settings.direction&&a.classes.add("resizehandle-both"),a.canFocus=!1,'<div id="'+a._id+'" class="'+a.classes+'"><i class="'+b+"ico "+b+'i-resize"></i></div>'},postRender:function(){var a=this;a._super(),a.resizeDragHelper=new b(this._id,{start:function(){a.fire("ResizeStart")},drag:function(b){"both"!=a.settings.direction&&(b.deltaX=0),a.fire("Resize",b)},stop:function(){a.fire("ResizeEnd")}})},remove:function(){return this.resizeDragHelper&&this.resizeDragHelper.destroy(),this._super()}})}),g("23",["15"],function(a){"use strict";function b(a){var b="";if(a)for(var c=0;c<a.length;c++)b+='<option value="'+a[c]+'">'+a[c]+"</option>";return b}return a.extend({Defaults:{classes:"selectbox",role:"selectbox",options:[]},init:function(a){var b=this;b._super(a),b.settings.size&&(b.size=b.settings.size),b.settings.options&&(b._options=b.settings.options),b.on("keydown",function(a){var c;13==a.keyCode&&(a.preventDefault(),b.parents().reverse().each(function(a){if(a.toJSON)return c=a,!1}),b.fire("submit",{data:c.toJSON()}))})},options:function(a){return arguments.length?(this.state.set("options",a),this):this.state.get("options")},renderHtml:function(){var a,c=this,d="";return a=b(c._options),c.size&&(d=' size = "'+c.size+'"'),'<select id="'+c._id+'" class="'+c.classes+'"'+d+">"+a+"</select>"},bindStates:function(){var a=this;return a.state.on("change:options",function(c){a.getEl().innerHTML=b(c.value)}),a._super()}})}),g("25",["15","p","2n"],function(a,b,c){"use strict";function d(a,b,c){return a<b&&(a=b),a>c&&(a=c),a}function e(a,b,c){a.setAttribute("aria-"+b,c)}function f(a,b){var d,f,g,h,i,j;"v"==a.settings.orientation?(h="top",g="height",f="h"):(h="left",g="width",f="w"),j=a.getEl("handle"),d=(a.layoutRect()[f]||100)-c.getSize(j)[g],i=d*((b-a._minValue)/(a._maxValue-a._minValue))+"px",j.style[h]=i,j.style.height=a.layoutRect().h+"px",e(j,"valuenow",b),e(j,"valuetext",""+a.settings.previewFilter(b)),e(j,"valuemin",a._minValue),e(j,"valuemax",a._maxValue)}return a.extend({init:function(a){var b=this;a.previewFilter||(a.previewFilter=function(a){return Math.round(100*a)/100}),b._super(a),b.classes.add("slider"),"v"==a.orientation&&b.classes.add("vertical"),b._minValue=a.minValue||0,b._maxValue=a.maxValue||100,b._initValue=b.state.get("value")},renderHtml:function(){var a=this,b=a._id,c=a.classPrefix;return'<div id="'+b+'" class="'+a.classes+'"><div id="'+b+'-handle" class="'+c+'slider-handle" role="slider" tabindex="-1"></div></div>'},reset:function(){this.value(this._initValue).repaint()},postRender:function(){function a(a,b,c){return(c+a)/(b-a)}function e(a,b,c){return c*(b-a)-a}function f(b,c){function f(f){var g;g=n.value(),g=e(b,c,a(b,c,g)+.05*f),g=d(g,b,c),n.value(g),n.fire("dragstart",{value:g}),n.fire("drag",{value:g}),n.fire("dragend",{value:g})}n.on("keydown",function(a){switch(a.keyCode){case 37:case 38:f(-1);break;case 39:case 40:f(1)}})}function g(a,e,f){var g,h,i,o,p;n._dragHelper=new b(n._id,{handle:n._id+"-handle",start:function(a){g=a[j],h=parseInt(n.getEl("handle").style[k],10),i=(n.layoutRect()[m]||100)-c.getSize(f)[l],n.fire("dragstart",{value:p})},drag:function(b){var c=b[j]-g;o=d(h+c,0,i),f.style[k]=o+"px",p=a+o/i*(e-a),n.value(p),n.tooltip().text(""+n.settings.previewFilter(p)).show().moveRel(f,"bc tc"),n.fire("drag",{value:p})},stop:function(){n.tooltip().hide(),n.fire("dragend",{value:p})}})}var h,i,j,k,l,m,n=this;h=n._minValue,i=n._maxValue,"v"==n.settings.orientation?(j="screenY",k="top",l="height",m="h"):(j="screenX",k="left",l="width",m="w"),n._super(),f(h,i,n.getEl("handle")),g(h,i,n.getEl("handle"))},repaint:function(){this._super(),f(this,this.value())},bindStates:function(){var a=this;return a.state.on("change:value",function(b){f(a,b.value)}),a._super()}})}),g("26",["15"],function(a){"use strict";return a.extend({renderHtml:function(){var a=this;return a.classes.add("spacer"),a.canFocus=!1,'<div id="'+a._id+'" class="'+a.classes+'"></div>'}})}),g("27",["1","2o","2n","1p"],function(a,b,c,d){return d.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var a,d,e=this,f=e.getEl(),g=e.layoutRect();return e._super(),a=f.firstChild,d=f.lastChild,b(a).css({width:g.w-c.getSize(d).width,height:g.h-2}),b(d).css({height:g.h-2}),e},activeMenu:function(a){var c=this;b(c.getEl().lastChild).toggleClass(c.classPrefix+"active",a)},renderHtml:function(){var b,c=this,d=c._id,e=c.classPrefix,f=c.state.get("icon"),g=c.state.get("text"),h="";return b=c.settings.image,b?(f="none","string"!=typeof b&&(b=a.getSelection?b[0]:b[1]),b=" style=\"background-image: url('"+b+"')\""):b="",f=c.settings.icon?e+"ico "+e+"i-"+f:"",g&&(c.classes.add("btn-has-text"),h='<span class="'+e+'txt">'+c.encode(g)+"</span>"),'<div id="'+d+'" class="'+c.classes+'" role="button" tabindex="-1"><button type="button" hidefocus="1" tabindex="-1">'+(f?'<i class="'+f+'"'+b+"></i>":"")+h+'</button><button type="button" class="'+e+'open" hidefocus="1" tabindex="-1">'+(c._menuBtnText?(f?"\xa0":"")+c._menuBtnText:"")+' <i class="'+e+'caret"></i></button></div>'},postRender:function(){var a=this,b=a.settings.onclick;return a.on("click",function(a){var c=a.target;if(a.control==this)for(;c;){if(a.aria&&"down"!=a.aria.key||"BUTTON"==c.nodeName&&c.className.indexOf("open")==-1)return a.stopImmediatePropagation(),void(b&&b.call(this,a));c=c.parentNode}}),delete a.settings.onclick,a._super()}})}),g("28",["x"],function(a){"use strict";return a.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"},isNative:function(){return!0}})}),g("29",["1u","2o","2n"],function(a,b,c){"use strict";return a.extend({Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(a){var c;this.activeTabId&&(c=this.getEl(this.activeTabId),b(c).removeClass(this.classPrefix+"active"),c.setAttribute("aria-selected","false")),this.activeTabId="t"+a,c=this.getEl("t"+a),c.setAttribute("aria-selected","true"),b(c).addClass(this.classPrefix+"active"),this.items()[a].show().fire("showtab"),this.reflow(),this.items().each(function(b,c){a!=c&&b.hide()})},renderHtml:function(){var a=this,b=a._layout,c="",d=a.classPrefix;return a.preRender(),b.preRender(a),a.items().each(function(b,e){var f=a._id+"-t"+e;b.aria("role","tabpanel"),b.aria("labelledby",f),c+='<div id="'+f+'" class="'+d+'tab" unselectable="on" role="tab" aria-controls="'+b._id+'" aria-selected="false" tabIndex="-1">'+a.encode(b.settings.title)+"</div>"}),'<div id="'+a._id+'" class="'+a.classes+'" hidefocus="1" tabindex="-1"><div id="'+a._id+'-head" class="'+d+'tabs" role="tablist">'+c+'</div><div id="'+a._id+'-body" class="'+a.bodyClasses+'">'+b.renderHtml(a)+"</div></div>"},postRender:function(){var a=this;a._super(),a.settings.activeTab=a.settings.activeTab||0,a.activateTab(a.settings.activeTab),this.on("click",function(b){var c=b.target.parentNode;if(c&&c.id==a._id+"-head")for(var d=c.childNodes.length;d--;)c.childNodes[d]==b.target&&a.activateTab(d)})},initLayoutRect:function(){var a,b,d,e=this;b=c.getSize(e.getEl("head")).width,b=b<0?0:b,d=0,e.items().each(function(a){b=Math.max(b,a.layoutRect().minW),d=Math.max(d,a.layoutRect().minH)}),e.items().each(function(a){a.settings.x=0,a.settings.y=0,a.settings.w=b,a.settings.h=d,a.layoutRect({x:0,y:0,w:b,h:d})});var f=c.getSize(e.getEl("head")).height;return e.settings.minWidth=b,e.settings.minHeight=d+f,a=e._super(),a.deltaH+=f,a.innerH=a.h-a.deltaH,a}})}),g("2a",["12","c","2n","15"],function(a,b,c,d){return d.extend({init:function(a){var b=this;b._super(a),b.classes.add("textbox"),a.multiline?b.classes.add("multiline"):(b.on("keydown",function(a){var c;13==a.keyCode&&(a.preventDefault(),b.parents().reverse().each(function(a){if(a.toJSON)return c=a,!1}),b.fire("submit",{data:c.toJSON()}))}),b.on("keyup",function(a){b.state.set("value",a.target.value)}))},repaint:function(){var b,c,d,e,f,g=this,h=0;b=g.getEl().style,c=g._layoutRect,f=g._lastRepaintRect||{};var i=a;return!g.settings.multiline&&i.all&&(!i.documentMode||i.documentMode<=8)&&(b.lineHeight=c.h-h+"px"),d=g.borderBox,e=d.left+d.right+8,h=d.top+d.bottom+(g.settings.multiline?8:0),c.x!==f.x&&(b.left=c.x+"px",f.x=c.x),c.y!==f.y&&(b.top=c.y+"px",f.y=c.y),c.w!==f.w&&(b.width=c.w-e+"px",f.w=c.w),c.h!==f.h&&(b.height=c.h-h+"px",f.h=c.h),g._lastRepaintRect=f,g.fire("repaint",{},!1),g},renderHtml:function(){var a,d,e=this,f=e.settings;return a={id:e._id,hidefocus:"1"},b.each(["rows","spellcheck","maxLength","size","readonly","min","max","step","list","pattern","placeholder","required","multiple"],function(b){a[b]=f[b]}),e.disabled()&&(a.disabled="disabled"),f.subtype&&(a.type=f.subtype),d=c.create(f.multiline?"textarea":"input",a),d.value=e.state.get("value"),d.className=e.classes,d.outerHTML},value:function(a){return arguments.length?(this.state.set("value",a),this):(this.state.get("rendered")&&this.state.set("value",this.getEl().value),this.state.get("value"))},postRender:function(){var a=this;a.getEl().value=a.state.get("value"),a._super(),a.$el.on("change",function(b){a.state.set("value",b.target.value),a.fire("change",b)})},bindStates:function(){var a=this;return a.state.on("change:value",function(b){a.getEl().value!=b.value&&(a.getEl().value=b.value)}),a.state.on("change:disabled",function(b){a.getEl().disabled=b.value}),a._super()},remove:function(){this.$el.off(),this._super()}})}),g("4",["b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","5","1f","1g","1h","1i","1j","1k","1l","1m","1n","1o","1p","1q","1r","1s","1t","1u","1v","1w","1x","1y","1z","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","15","2e"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha){var ia=function(){return{Selector:Y,Collection:h,ReflowQueue:T,Control:n,Factory:a,KeyboardNavigation:D,Container:m,DragHelper:o,Scrollable:W,Panel:O,Movable:M,Resizable:U,FloatPanel:v,Window:ha,MessageBox:L,Tooltip:fa,Widget:ga,Progress:R,Notification:N,Layout:F,AbsoluteLayout:c,Button:e,ButtonGroup:f,Checkbox:g,ComboBox:l,ColorBox:i,PanelButton:P,ColorButton:j,ColorPicker:k,Path:Q,ElementPath:q,FormItem:z,Form:x,FieldSet:r,FilePicker:s,FitLayout:t,FlexLayout:u,FlowLayout:w,FormatControls:y,GridLayout:A,Iframe:B,InfoBox:C,Label:E,Toolbar:ea,MenuBar:I,MenuButton:J,MenuItem:K,Throbber:da,Menu:H,ListBox:G,Radio:S,ResizeHandle:V,SelectBox:X,Slider:Z,Spacer:$,SplitButton:_,StackLayout:aa,TabPanel:ba,TextBox:ca,DropZone:p,BrowseButton:d}},ja=function(a){a.ui?b.each(ia(),function(b,c){a.ui[c]=b}):a.ui=ia()},ka=function(){b.each(ia(),function(b,c){a.add(c,b)})},la={appendTo:ja,registerToFactory:ka};return la}),g("0",["1","2","3","4","5"],function(a,b,c,d,e){return d.registerToFactory(),d.appendTo(a.tinymce?a.tinymce:{}),b.add("modern",function(a){return e.setup(a),c.get(a)}),function(){}}),d("0")()}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L27582

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:27582
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- content = node.innerHTML;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L29

Insecure DOM Manipulation (XSS) in error.js

CWE-79
File Location: installation/template/js/error.js:29
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- header.innerHTML = errorLocale[ref].header;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in passwordstrength.min.js

CWE-79
File Location: media/system/js/fields/passwordstrength.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- "use strict";var PasswordStrength;PasswordStrength=function(){function e(e){this.lowercase=e.lowercase||0,this.uppercase=e.uppercase||0,this.numbers=e.numbers||0,this.special=e.special||0,this.length=e.length||4}return e.prototype.getScore=function(e){for(var t=0,r=0,s=["lowercase","uppercase","numbers","special","length"],a=0,n=s.length;n>a;a++)this.hasOwnProperty(s[a])&&this[s[a]]>0&&(r+=1);return t+=this.calc(e,/[a-z]/g,this.lowercase,r),t+=this.calc(e,/[A-Z]/g,this.uppercase,r),t+=this.calc(e,/[0-9]/g,this.numbers,r),t+=this.calc(e,/[\$\!\#\?\=\;\:\*\-\_\€\%\&\(\)\`\´]/g,this.special,r),t+=1==r?e.length>this.length?100:100/this.length*e.length:e.length>this.length?100/r:100/r/this.length*e.length},e.prototype.calc=function(e,t,r,s){var a;return(a=e.match(t))&&a.length>r&&0!=r?100/s:a&&r>0?100/s/r*a.length:0},e}(),document.addEventListener("DOMContentLoaded",function(){for(var e=function(e){var t=e.getAttribute("data-min-length"),r=e.getAttribute("data-min-integers"),s=e.getAttribute("data-min-symbols"),a=e.getAttribute("data-min-uppercase"),n=e.getAttribute("data-min-lowercase"),i=document.querySelector(".progress-bar"),o=new PasswordStrength({lowercase:n||0,uppercase:a||0,numbers:r||0,special:s||0,length:t||4}).getScore(e.value),g=i.getAttribute("aria-describedby").replace(/^\D+/g,""),l=e.parentNode.parentNode.querySelector("#password-"+g);o>79&&(i.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated bg-warning"),l.innerHTML=Joomla.JText._("JFIELD_PASSWORD_INDICATE_COMPLETE")),o>64&&o<80&&(i.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated bg-warning"),l.innerHTML=Joomla.JText._("JFIELD_PASSWORD_INDICATE_INCOMPLETE")),o>50&&o<65&&(i.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated bg-warning"),l.innerHTML=Joomla.JText._("JFIELD_PASSWORD_INDICATE_INCOMPLETE")),o>40&&o<51&&(i.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated bg-warning"),l.innerHTML=Joomla.JText._("JFIELD_PASSWORD_INDICATE_INCOMPLETE")),o<41&&(i.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated bg-danger"),l.innerHTML=Joomla.JText._("JFIELD_PASSWORD_INDICATE_INCOMPLETE")),100===o&&i.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated bg-success"),i.style.width=o+"%",e.value.length||(i.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated"),l.innerHTML="",e.setAttribute("required",""))},t=document.querySelectorAll(".js-password-strength"),r=0,s=t.length;r<s;r++){var a="",n="";t[r].value.length||(a=" bg-danger",n=0);var i=document.createElement("div");i.setAttribute("class","progress");var o=document.createElement("div");o.setAttribute("class","progress-bar progress-bar-striped progress-bar-animated"+a),o.style.width=0+n,o.max=100,o.setAttribute("aria-describedby","password-"+r),i.appendChild(o);var g=document.createElement("div");g.setAttribute("class","text-xs-center"),g.setAttribute("id","password-"+r),t[r].parentNode.insertAdjacentElement("afterEnd",g),t[r].parentNode.insertAdjacentElement("afterEnd",i),t[r].value.length>0&&t[r].setAttribute("required",!0),t[r].addEventListener("keyup",function(t){e(t.target)})}t[0]&&document.formvalidator.setHandler("password-strength",function(e){var t=!1,r=document.querySelectorAll(".js-password-strength"),s=r[0].getAttribute("data-min-length"),a=r[0].getAttribute("data-min-integers"),n=r[0].getAttribute("data-min-symbols"),i=r[0].getAttribute("data-min-uppercase"),o=r[0].getAttribute("data-min-lowercase");return 100===new PasswordStrength({lowercase:o||0,uppercase:i||0,numbers:a||0,special:n||0,length:s||4}).getScore(e)&&(t=!0),t})});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L94

Insecure DOM Manipulation (XSS) in validate.js

CWE-79
File Location: media/system/js/fields/validate.js:94
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- elMsg.innerHTML = message ? message : Joomla.JText._('JLIB_FORM_FIELD_INVALID_VALUE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L25

Insecure DOM Manipulation (XSS) in webcomponents-hi-ce.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-ce.js:25
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- g(a)&&b.b(e);return a})}M&&m(Element.prototype,"attachShadow",function(b){return this.__CE_shadowRoot=b=M.call(this,b)});if(D&&D.get)a(Element.prototype,D);else if(E&&E.get)a(HTMLElement.prototype,E);else{var c=F.call(document,"div");b.v(function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return N.call(this,!0).innerHTML},set:function(b){var a="template"===this.localName?this.content:this;for(c.innerHTML=b;0<a.childNodes.length;)G.call(a,a.childNodes[0]);for(;0<c.childNodes.length;)y.call(a,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L110

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-sd-ce.js:110
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- sa.innerHTML=a;sa.firstChild;)b.appendChild(sa.firstChild)},configurable:!0}},Oc={shadowRoot:{get:function(){return this.__shady&&this.__shady.gb||null},configurable:!0}},Ta={activeElement:{get:function(){var a=lb&&lb.get?lb.get.call(document):E.R?void 0:document.activeElement;if(a&&a.nodeType){var b=!!G(this);if(this===document||b&&this.host!==a&&ca.call(this.host,a)){for(b=Z(a);b&&b!==this;)a=b.host,b=Z(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L37

Insecure DOM Manipulation (XSS) in webcomponents-lite.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-lite.js:37
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)Ta.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)ua.call(b,d.childNodes[0])}})})}x(Element.prototype,"setAttribute",function(b,c){if(1!==this.__CE_state)return Ub.call(this,b,c);var d=Ua.call(this,b);Ub.call(this,b,c);c=Ua.call(this,b);a.attributeChangedCallback(this,b,d,c,null)});x(Element.prototype,"setAttributeNS",function(b,c,d){if(1!==this.__CE_state)return Vb.call(this,b,c,d);var e=va.call(this,b,c);Vb.call(this,b,c,d);d=va.call(this,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L98

Insecure DOM Manipulation (XSS) in webcomponents-lite.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-lite.js:98
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- {get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(a){if(this.parentNode){h.body.innerHTML=a;for(a=document.createDocumentFragment();h.body.firstChild;)a.appendChild(h.body.firstChild);this.parentNode.replaceChild(a,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};n(a.prototype);r(a.prototype);a.V=function(b){b=b.querySelectorAll("template");for(var c=0,d=b.length,e;c<d&&(e=b[c]);c++)a.R(e)};
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-lite.min.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-lite.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";function t(){t=function(){},a.Symbol||(a.Symbol=c)}function e(){t();var o=a.Symbol.iterator;o||(o=a.Symbol.iterator=a.Symbol("iterator")),"function"!=typeof Array.prototype[o]&&s(Array.prototype,o,{configurable:!0,writable:!0,value:function(){return n(this)}}),e=function(){}}function n(t){var e=0;return o(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(t){return e(),t={next:t},t[a.Symbol.iterator]=function(){return this},t}function r(t){e();var o=t[Symbol.iterator];return o?o.call(t):n(t)}function i(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var a="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,s="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},c=function(){var t=0;return function(e){return"jscomp_symbol_"+(e||"")+t++}}();!function(){function t(){var t=this;this.s={},this.g=document.documentElement;var e=new u;e.rules=[],this.h=c.set(this.g,new c(e)),this.i=!1,this.b=this.a=null,ve(function(){t.c()})}function e(){this.customStyles=[],this.enqueued=!1}function n(){}function o(t){this.cache={},this.c=void 0===t?100:t}function s(){}function c(t,e,n,o,r){this.G=t||null,this.b=e||null,this.va=n||[],this.S=null,this.$=r||"",this.a=this.C=this.M=null}function l(){}function u(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function h(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Xt(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.sa&&(o.before=n(e.sa)),void 0!==e.sa&&(o.after=n(e.kb)),void 0!==e.replaceWith&&Zt(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(a=Xt(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(a)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&Zt(o,"remove",function(){var n=Xt(this);e.remove.call(this),n&&t.a(this)})}function d(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Xt(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.fa&&(e.prepend=o(n.fa)),void 0!==n.append&&(e.append=o(n.append))}function p(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new y(t,document)}function f(){var t=this;this.b=this.a=void 0,this.c=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function y(t,e){this.b=t,this.a=e,this.P=void 0,this.b.f(this.a),"loading"===this.a.readyState&&(this.P=new MutationObserver(this.f.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function m(){this.u=new Map,this.s=new Map,this.j=[],this.h=!1}function v(t,e,n){if(t!==Pn)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=v.prototype,t.H(e,n),t}function _(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=rt(t),t.__shady.lastChild=it(t),On(t);for(var e,n=t.__shady.childNodes=ct(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,Tn(e)}}function g(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.da=new Set}function b(t,e){Oe[Ee]=t,Oe[Ee+1]=e,2===(Ee+=2)&&(be?be(N):xe())}function w(){return void 0!==ge?function(){ge(N)}:E()}function E(){var t=setTimeout;return function(){return t(N,1)}}function N(){for(var t=0;t<Ee;t+=2)(0,Oe[t])(Oe[t+1]),Oe[t]=void 0,Oe[t+1]=void 0;Ee=0}function C(t,e){var n=this,o=new this.constructor(T);void 0===o[Ae]&&W(o);var r=n.o;if(r){var i=arguments[r-1];b(function(){return I(r,o,i,n.m)})}else P(n,o,t,e);return o}function S(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(T);return L(e,t),e}function T(){}function O(t){try{return t.then}catch(t){return De.error=t,De}}function x(t,e,n,o){try{t.call(e,n,o)}catch(t){return t}}function A(t,e,n){b(function(t){var o=!1,r=x(n,e,function(n){o||(o=!0,e!==n?L(t,n):k(t,n))},function(e){o||(o=!0,R(t,e))});!o&&r&&(o=!0,R(t,r))},t)}function D(t,e){1===e.o?k(t,e.m):2===e.o?R(t,e.m):P(e,void 0,function(e){return L(t,e)},function(e){return R(t,e)})}function M(t,e,n){e.constructor===t.constructor&&n===C&&e.constructor.resolve===S?D(t,e):n===De?(R(t,De.error),De.error=null):void 0===n?k(t,e):"function"==typeof n?A(t,e,n):k(t,e)}function L(t,e){if(t===e)R(t,new TypeError("You cannot resolve a promise with itself"));else{var n=typeof e;null===e||"object"!==n&&"function"!==n?k(t,e):M(t,e,O(e))}}function j(t){t.Ea&&t.Ea(t.m),H(t)}function k(t,e){void 0===t.o&&(t.m=e,t.o=1,0!==t.U.length&&b(H,t))}function R(t,e){void 0===t.o&&(t.o=2,t.m=e,b(j,t))}function P(t,e,n,o){var r=t.U,i=r.length;t.Ea=null,r[i]=e,r[i+1]=n,r[i+2]=o,0===i&&t.o&&b(H,t)}function H(t){var e=t.U,n=t.o;if(0!==e.length){for(var o,r,i=t.m,a=0;a<e.length;a+=3)o=e[a],r=e[a+n],o?I(n,o,r,i):r(i);t.U.length=0}}function F(){this.error=null}function I(t,e,n,o){var r="function"==typeof n;if(r){try{var i=n(o)}catch(t){Me.error=t,i=Me}if(i===Me){var a=!0,s=i.error;i.error=null}else var c=!0;if(e===i)return void R(e,new TypeError("A promises callback cannot return that same promise."))}else i=o,c=!0;void 0===e.o&&(r&&c?L(e,i):a?R(e,s):1===t?k(e,i):2===t&&R(e,i))}function q(t,e){try{e(function(e){L(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}function W(t){t[Ae]=Le++,t.o=void 0,t.m=void 0,t.U=[]}function B(t,e){this.fb=t,this.L=new t(T),this.L[Ae]||W(this.L),we(e)?(this.aa=this.length=e.length,this.m=Array(this.length),0===this.length?k(this.L,this.m):(this.length=this.length||0,this.eb(e),0===this.aa&&k(this.L,this.m))):R(this.L,Error("Array Methods must be provided an Array"))}function V(t){if(this[Ae]=Le++,this.m=this.o=void 0,this.U=[],T!==t){if("function"!=typeof t)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof V))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");q(this,t)}}function U(t){return t.__shady&&void 0!==t.__shady.firstChild}function G(t){return"ShadyRoot"===t.Xa}function K(t){if(t=t.getRootNode(),G(t))return t}function $(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function Y(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)$(t,n[o]);return t}function X(t,e){for(var n in e)t[n]=e[n]}function z(t){$e.push(t),Ge.textContent=Ke++}function J(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function Z(t){Ye||(Ye=!0,z(Q)),ze.push(t)}function Q(){Ye=!1;for(var t=!!ze.length;ze.length;)ze.shift()();return t}function tt(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function et(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function nt(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,a=r.length;i<a&&(n=r[i]);i++){t:{var s=n,c=t,l=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,h="<"+u,d=s.attributes,p=0;c=d[p];p++)h+=" "+c.name+'="'+c.value.replace(dn,tt)+'"';h+=">",s=fn[u]?h:h+nt(s,l)+"</"+u+">";break t;case Node.TEXT_NODE:s=s.data,s=c&&yn[c.localName]?s:s.replace(pn,tt);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}o+=s}return o}function ot(t){return mn.currentNode=t,mn.parentNode()}function rt(t){return mn.currentNode=t,mn.firstChild()}function it(t){return mn.currentNode=t,mn.lastChild()}function at(t){return mn.currentNode=t,mn.previousSibling()}function st(t){return mn.currentNode=t,mn.nextSibling()}function ct(t){var e=[];for(mn.currentNode=t,t=mn.firstChild();t;)e.push(t),t=mn.nextSibling();return e}function lt(t){return vn.currentNode=t,vn.parentNode()}function ut(t){return vn.currentNode=t,vn.firstChild()}function ht(t){return vn.currentNode=t,vn.lastChild()}function dt(t){return vn.currentNode=t,vn.previousSibling()}function pt(t){return vn.currentNode=t,vn.nextSibling()}function ft(t){var e=[];for(vn.currentNode=t,t=vn.firstChild();t;)e.push(t),t=vn.nextSibling();return e}function yt(t){return nt(t,function(t){return ct(t)})}function mt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function vt(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function _t(t){vt(t,En),vt(t,Nn),vt(t,Sn)}function gt(t,e,n){Tn(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function bt(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=n.__shady&&n.__shady.parentNode;if(void 0!==o&&o!==t||void 0===o&&ot(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;e.parentNode&&wt(e.parentNode,e);var r;if(r=o=K(t))t:{if(!e.__noInsertionPoint){var i;if("slot"===e.localName?i=[e]:e.querySelectorAll&&(i=e.querySelectorAll("slot")),i&&i.length){r=i;break t}}r=void 0}if((i=r)&&o.ab(i),o&&("slot"===t.localName||i)&&o.O(),U(t)){if(o=n,On(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,r=0;r<i.length;r++)gt(i[r],t,o);e.__shady=e.__shady||{},o=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=o,e.__shady.childNodes=o}else gt(e,t,o);if(Ct(t)){t.__shady.root.O();var a=!0}else t.__shady.root&&(a=!0)}return a||(a=G(t)?t.host:t,n?(n=Nt(n),Ze.call(a,e,n)):Je.call(a,e)),Tt(t,e),e}function wt(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=K(e);if(U(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling);var o=e.__shady.previousSibling,r=e.__shady.nextSibling;if(o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=r),r&&(r.__shady=r.__shady||{},r.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),Ct(t)){t.__shady.root.O();var i=!0}}return Et(e),n&&((r=t&&"slot"===t.localName)&&(i=!0),((o=n.hb(e))||r)&&n.O()),i||(i=G(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||i===ot(e))&&Qe.call(i,e)),Tt(t,null,e),e}function Et(t){if(t.__shady&&void 0!==t.__shady.wa)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)Et(e);t.__shady&&(t.__shady.wa=void 0)}function Nt(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady&&t.__shady.W)&&e.length?e[0]:Nt(t.nextSibling)),e}function Ct(t){return(t=t&&t.__shady&&t.__shady.root)&&t.Da()}function St(t,e){"slot"===e?(t=t.parentNode,Ct(t)&&t.__shady.root.O()):"slot"===t.localName&&"name"===e&&(e=K(t))&&(e.jb(t),e.O())}function Tt(t,e,n){(t=t.__shady&&t.__shady.Y)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.vb())}function Ot(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.wa;return void 0===e&&(e=G(t)?t:(e=t.parentNode)?Ot(e):t,un.call(document.documentElement,t)&&(t.__shady.wa=e)),e}}function xt(t,e,n){var o=[];return At(t.childNodes,e,n,o),o}function At(t,e,n,o){for(var r,i=0,a=t.length;i<a&&(r=t[i]);i++){var s;if(s=r.nodeType===Node.ELEMENT_NODE){var c=e,l=n,u=o,h=c(s=r);h&&u.push(s),l&&l(h)?s=h:(At(s.childNodes,c,l,u),s=void 0)}if(s)break}}function Dt(t){G(t=t.getRootNode())&&t.Ga()}function Mt(t,e,n){xn||(xn=window.ShadyCSS&&window.ShadyCSS.ScopingShim),xn&&"class"===e?xn.setElementClass(t,n):(tn.call(t,e,n),St(t,e))}function Lt(t,e){if(t.ownerDocument!==document)return on.call(document,t,e);var n=on.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=Lt(t[e],!0),n.appendChild(o)}return n}function jt(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function kt(t,e){if(!G)return t;t=jt(t,!0);for(var n,o,r,i,a=0;a<e.length;a++)if(n=e[a],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!G(r)||-1<i)return n}function Rt(t){function e(e,n){return e=new t(e,n),e.la=n&&!!n.composed,e}return X(e,t),e.prototype=t.prototype,e}function Pt(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Va);r++);}function Ht(t){var e=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var n=e.length-1;0<=n;n--){var o=e[n];if(Pt(t,o,"capture"),t.ma)return}Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});var r;for(n=0;n<e.length;n++){var i=(o=e[n]).__shady&&o.__shady.root;if((0===n||i&&i===r)&&(Pt(t,o,"bubble"),o!==window&&(r=o.getRootNode()),t.ma))break}}function Ft(t,e,n,o,r,i){for(var a=0;a<t.length;a++){var s=t[a],c=s.type,l=s.capture,u=s.once,h=s.passive;if(e===s.node&&n===c&&o===l&&r===u&&i===h)return a}return-1}function It(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var a=n&&n.na||this,s=e[An];if(s){if(-1<Ft(s,a,t,o,r,i))return}else e[An]=[];s=function(o){if(r&&this.removeEventListener(t,e,n),o.__target||Wt(o),a!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return a},configurable:!0})}if(o.composed||-1<o.composedPath().indexOf(a))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===a){var s="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(a,o);return a!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),s}},e[An].push({node:this,type:t,capture:o,once:r,passive:i,zb:s}),Ln[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(s)):(this instanceof Window?sn:rn).call(this,t,s,n)}}function qt(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var a=n&&n.na||this,s=void 0,c=null;try{c=e[An]}catch(t){}c&&-1<(r=Ft(c,a,t,o,r,i))&&(s=c.splice(r,1)[0].zb,c.length||(e[An]=void 0)),(this instanceof Window?cn:an).call(this,t,s||e,n),s&&Ln[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(s=t.indexOf(s))&&t.splice(s,1))}}function Wt(t){if(t.__target=t.target,t.Ba=t.relatedTarget,We.X){var e=Mn,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.Bb=n,$(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else $(t,Mn)}function Bt(t,e){return{index:t,Z:[],ca:e}}function Vt(t,e,n,o){var r=0,i=0,a=0,s=0,c=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(a=0;a<c;a++)if(t[a]!==n[a])break t;a=c}if(e==t.length&&o==n.length){s=t.length;for(var l=n.length,u=0;u<c-a&&Ut(t[--s],n[--l]);)u++;s=u}if(r+=a,i+=a,e-=s,o-=s,0==e-r&&0==o-i)return[];if(r==e){for(e=Bt(r,0);i<o;)e.Z.push(n[i++]);return[e]}if(i==o)return[Bt(r,e-r)];for(o=o-(a=i)+1,s=e-(c=r)+1,e=Array(o),l=0;l<o;l++)e[l]=Array(s),e[l][0]=l;for(l=0;l<s;l++)e[0][l]=l;for(l=1;l<o;l++)for(u=1;u<s;u++)if(t[c+u-1]===n[a+l-1])e[l][u]=e[l-1][u-1];else{var h=e[l-1][u]+1,d=e[l][u-1]+1;e[l][u]=h<d?h:d}for(c=e.length-1,a=e[0].length-1,o=e[c][a],t=[];0<c||0<a;)0==c?(t.push(2),a--):0==a?(t.push(3),c--):(s=e[c-1][a-1],l=e[c-1][a],u=e[c][a-1],(h=l<u?l<s?l:s:u<s?u:s)==s?(s==o?t.push(0):(t.push(1),o=s),c--,a--):h==l?(t.push(3),c--,o=l):(t.push(2),a--,o=u));for(t.reverse(),e=void 0,c=[],a=0;a<t.length;a++)switch(t[a]){case 0:e&&(c.push(e),e=void 0),r++,i++;break;case 1:e||(e=Bt(r,0)),e.ca++,r++,e.Z.push(n[i]),i++;break;case 2:e||(e=Bt(r,0)),e.ca++,r++;break;case 3:e||(e=Bt(r,0)),e.Z.push(n[i]),i++}return e&&c.push(e),c}function Ut(t,e){return t===e}function Gt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function Kt(t){return Dt(t),t.__shady&&t.__shady.assignedSlot||null}function $t(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function Yt(t){var e=Kn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Xt(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function zt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Jt(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)Jt(o,e,n);o=zt(t,r);continue}if("template"===i){o=zt(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)Jt(r,e,n)}o=o.firstChild?o.firstChild:zt(t,o)}}function Zt(t,e,n){t[e]=n}function Qt(t){var e=te,n=t=t.replace(Do.mb,"").replace(Do.port,""),o=new u;o.start=0,o.end=n.length;for(var r=o,i=0,a=n.length;i<a;i++)if("{"===n[i]){r.rules||(r.rules=[]);var s=r,c=s.rules[s.rules.length-1]||null;(r=new u).start=i+1,r.parent=s,r.previous=c,s.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function te(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=ee(n),n=n.replace(Do.Ma," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Ao.MEDIA_RULE:n.match(Do.rb)&&(t.type=Ao.ka,t.keyframesName=t.selector.split(Do.Ma).pop()):t.type=0===n.indexOf("--")?Ao.xa:Ao.STYLE_RULE),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)te(o,e);return t}function ee(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function ne(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var a,s=i.length;r<s&&(a=i[r]);r++)o=ne(a,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(Do.Ha,"").replace(Do.La,""),e=e.replace(Do.sb,"").replace(Do.xb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function oe(t){Lo=(!t||!t.shimcssproperties)&&(Mo||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function re(t,e){return t?("string"==typeof t&&(t=Qt(t)),e&&se(t,e),ne(t,Lo)):""}function ie(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Qt(t.textContent)),t.__cssRules||null}function ae(t){return!!t.parent&&t.parent.type===Ao.ka}function se(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===Ao.MEDIA_RULE){var a=t.selector.match(Ho);a&&(window.matchMedia(a[1]).matches||(r=!0))}if(i===Ao.STYLE_RULE?e(t):n&&i===Ao.ka?n(t):i===Ao.xa&&(r=!0),(t=t.rules)&&!r){r=0,i=t.length;for(var s;r<i&&(s=t[r]);r++)se(s,e,n,o)}}}function ce(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,le(r,n,o),r}function le(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Io?t.compareDocumentPosition(Io)===Node.DOCUMENT_POSITION_PRECEDING&&(Io=t):Io=t}function ue(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");t:{for(var o=0,r=n+3,i=t.length;r<i;r++)if("("===t[r])o++;else if(")"===t[r]&&0==--o)break t;r=-1}return o=t.substring(n+4,r),n=t.substring(0,n),t=ue(t.substring(r+1),e),-1===(r=o.indexOf(","))?e(n,o.trim(),"",t):e(n,o.substring(0,r).trim(),o.substring(r+1).trim(),t)}function he(t,e){Mo?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function de(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,$:n}}function pe(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i=r.getRootNode(),a=r,s=[];if(a.classList?s=Array.from(a.classList):a instanceof window.SVGElement&&a.hasAttribute("class")&&(s=a.getAttribute("class").split(/\s+/)),a=s,s=a.indexOf(nr.a),(a=-1<s?a[s+1]:"")&&i===r.ownerDocument)nr.b(r,a,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(i=de(i).is,a===i)for(r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+nr.a+")"),i=0;i<r.length;i++)nr.h(r[i],a);else a&&nr.b(r,a,!0),nr.b(r,i)}}}}function fe(t){(t=pr[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function ye(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function me(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,fr.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function ve(t){requestAnimationFrame(function(){mr?mr(t):(yr||(yr=new Promise(function(t){dr=t}),"complete"===document.readyState?dr():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&dr()})),yr.then(function(){t&&t()}))})}!function(){if(!function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}()){var t=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(t.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var e=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||e&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||e&&"function"!=typeof window.Event){var n=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},n)for(var o in n)window.Event[o]=n[o];window.Event.prototype=n.prototype}if(!window.MouseEvent||e&&"function"!=typeof window.MouseEvent){if(e=window.MouseEvent,window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},e)for(o in e)window.MouseEvent[o]=e[o];window.MouseEvent.prototype=e.prototype}Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t,e){for(var n,o=[].slice.call(arguments,1),r=0;r<o.length;r++)if(n=o[r])for(var i=t,a=n,s=Object.getOwnPropertyNames(a),c=0;c<s.length;c++)n=s[c],i[n]=a[n];return t})}(window.WebComponents),function(){function t(){}var e="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var t=Document.prototype.importNode;Document.prototype.importNode=function(){var e=t.apply(this,arguments);if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var n=this.createDocumentFragment();return n.appendChild(e),n}return e}}();var n=Node.prototype.cloneNode,o=Document.prototype.createElement,r=Document.prototype.importNode,i=function(){if(!e){var t=document.createElement("template"),n=document.createElement("template");return n.content.appendChild(document.createElement("div")),t.content.appendChild(n),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}();if(e){var a=document.implementation.createHTMLDocument("template"),s=!0,c=document.createElement("style");c.textContent="template{display:none;}";var l=document.head;l.insertBefore(c,l.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var u=!document.createElement("div").hasOwnProperty("innerHTML");t.R=function(e){if(!e.content){e.content=a.createDocumentFragment();for(var n;n=e.firstChild;)e.content.appendChild(n);if(u)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.a(this,e)},s)try{h(e),d(e)}catch(t){s=!1}t.V(e.content)}};var h=function(e){Object.defineProperty(e,"innerHTML",{get:function(){for(var t="",e=this.content.firstChild;e;e=e.nextSibling)t+=e.outerHTML||e.data.replace(p,f);return t},set:function(e){for(a.body.innerHTML=e,t.V(a);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;a.body.firstChild;)this.content.appendChild(a.body.firstChild)},configurable:!0})},d=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(a.body.innerHTML=t,t=document.createDocumentFragment();a.body.firstChild;)t.appendChild(a.body.firstChild);this.parentNode.replaceChild(t,this)},configurable:!0})};h(t.prototype),d(t.prototype),t.V=function(e){for(var n,o=0,r=(e=e.querySelectorAll("template")).length;o<r&&(n=e[o]);o++)t.R(n)},document.addEventListener("DOMContentLoaded",function(){t.V(document)}),Document.prototype.createElement=function(){var e=o.apply(this,arguments);return"template"===e.localName&&t.R(e),e};var p=/[&\u00A0<>]/g,f=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case" ":return"&nbsp;"}}}(e||i)&&(t.a=function(t,e){var o=n.call(t,!1);return this.R&&this.R(o),e&&(o.content.appendChild(n.call(t.content,!0)),this.ua(o.content,t.content)),o},t.prototype.cloneNode=function(e){return t.a(this,e)},t.ua=function(t,e){if(e.querySelectorAll){e=e.querySelectorAll("template");for(var n,o,r=0,i=(t=t.querySelectorAll("template")).length;r<i;r++)o=e[r],n=t[r],this.R&&this.R(o),n.parentNode.replaceChild(o.cloneNode(!0),n)}},Node.prototype.cloneNode=function(e){if(this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var o=this.ownerDocument.importNode(this,!0)}else o=n.call(this,e);return e&&t.ua(o,this),o},Document.prototype.importNode=function(e,n){if("template"===e.localName)return t.a(e,n);var o=r.call(this,e,n);return n&&t.ua(o,e),o},i&&(window.HTMLTemplateElement.prototype.cloneNode=function(e){return t.a(this,e)})),e&&(window.HTMLTemplateElement=t)}();var _e,ge,be,we=_e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},Ee=0,Ne="undefined"!=typeof window?window:void 0,Ce=Ne||{},Se=Ce.MutationObserver||Ce.WebKitMutationObserver,Te="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Oe=Array(1e3),xe="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?function(){return process.Ib(N)}:Se?function(){var t=0,e=new Se(N),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():Te?function(){var t=new MessageChannel;return t.port1.onmessage=N,function(){return t.port2.postMessage(0)}}():Ne||"function"!=typeof require?E():function(){try{var t=require("vertx");return ge=t.Kb||t.Jb,w()}catch(t){return E()}}(),Ae=Math.random().toString(36).substring(16),De=new F,Me=new F,Le=0;B.prototype.eb=function(t){for(var e=0;void 0===this.o&&e<t.length;e++)this.cb(t[e],e)},B.prototype.cb=function(t,e){var n=this.fb,o=n.resolve;o===S?(o=O(t))===C&&void 0!==t.o?this.qa(t.o,e,t.m):"function"!=typeof o?(this.aa--,this.m[e]=t):n===V?(n=new n(T),M(n,t,o),this.ra(n,e)):this.ra(new n(function(e){return e(t)}),e):this.ra(o(t),e)},B.prototype.qa=function(t,e,n){var o=this.L;void 0===o.o&&(this.aa--,2===t?R(o,n):this.m[e]=n),0===this.aa&&k(o,this.m)},B.prototype.ra=function(t,e){var n=this;P(t,void 0,function(t){return n.qa(1,e,t)},function(t){return n.qa(2,e,t)})},V.all=function(t){return new B(this,t).L},V.race=function(t){var e=this;return new e(we(t)?function(n,o){for(var r=t.length,i=0;i<r;i++)e.resolve(t[i]).then(n,o)}:function(t,e){return e(new TypeError("You must pass an array to race."))})},V.resolve=S,V.reject=function(t){var e=new this(T);return R(e,t),e},V.Gb=function(t){be=t},V.Fb=function(t){b=t},V.Cb=b,V.prototype={constructor:V,then:C,a:function(t){return this.then(null,t)}},window.Promise||(window.Promise=V,V.prototype.catch=V.prototype.a),function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!s(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){var e=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=e.length;n?l(e,function(e){return a(e,function(){0==--n&&t()})}):t()}function r(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function i(t){r(function(){return o(function(){return t&&t()})})}function a(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),v&&"style"===t.localName||t.addEventListener("error",n)}}function s(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function c(){var t=this;this.a={},this.b=0,this.f=new MutationObserver(function(e){return t.l(e)}),this.f.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function l(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var u="import"in document.createElement("link"),h=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return h||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(url\()([^)]*)(\))/g,p=/(@import[\s]+(?!url\())([^;]*)(;)/g,f=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,y={nb:function(t,e){if(t.href&&t.setAttribute("href",y.ga(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",y.ga(t.getAttribute("src"),e)),"style"===t.localName){var n=y.Na(t.textContent,e,d);t.textContent=y.Na(n,e,p)}},Na:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=y.ga(t,e)),n+"'"+t+"'"+r})},ga:function(t,e){if(void 0===y.oa){y.oa=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",y.oa="http://a/c%20d"===n.href}catch(t){}}return y.oa?new URL(t,e).href:((n=y.$a)||(n=document.implementation.createHTMLDocument("temp"),y.$a=n,n.za=n.createElement("base"),n.head.appendChild(n.za),n.ya=n.createElement("a")),n.za.href=e,n.ya.href=t,n.ya.href||t)}},m={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o),e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,m.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&0===t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(c.prototype.c=function(t){var e=this;l(t=t.querySelectorAll("link[rel=import]"),function(t){return e.h(t)})},c.prototype.h=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.import=o,this.g(t))}else this.b++,this.a[n]="pending",m.load(n,function(t,o){t=e.s(t,o||n),e.a[n]=t,e.b--,e.c(t),e.i()},function(){e.a[n]=null,e.b--,e.i()})},c.prototype.s=function(t,e){if(!t)return document.createDocumentFragment();v&&(t=t.replace(f,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=y.ga(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return l(n=t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){a(t),y.nb(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},c.prototype.i=function(){var t=this;if(!this.b){this.f.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.f.observe(document.head,{childList:!0,subtree:!0}),t.j()))};this.v(function(){n=!0,o()}),this.u(function(){e=!0,o()})}},c.prototype.flatten=function(t){var e=this;l(t=t.querySelectorAll("link[rel=import]"),function(t){var n=e.a[t.href];(t.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.import=t,e.flatten(n),t.appendChild(n))})},c.prototype.u=function(t){function e(r){if(r<o){var i=n[r],s=document.createElement("script");i.removeAttribute("import-dependency"),l(i.attributes,function(t){return s.setAttribute(t.name,t.value)}),h=s,i.parentNode.replaceChild(s,i),a(s,function(){h=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},c.prototype.v=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");l(e,function(e){if(a(e,function(){e.removeAttribute("import-dependency"),0==--o&&t()}),r&&e.parentNode!==document.head){var i=document.createElement(e.localName);for(i.__appliedElement=e,i.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(i,e.nextSibling),i=n(e);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(e,i),e.removeAttribute("type")}})}else t()},c.prototype.j=function(){var t=this;l(document.querySelectorAll("link[rel=import]"),function(e){return t.g(e)},!0)},c.prototype.g=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},c.prototype.l=function(t){var e=this;l(t,function(t){return l(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(s(t)?e.h(t):e.c(t))})})},u){var _=document.querySelectorAll("link[rel=import]");l(_,function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)}),_=function(t){s(t=t.target)&&(t.__loaded=!0)},document.addEventListener("load",_,!0),document.addEventListener("error",_,!0)}else{var g=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!g||g.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=s(this)?this:n(this);return t?t.href:g&&g.get?g.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new c})}i(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=i,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{}),window.WebComponents=window.WebComponents||{flags:{}};var je=document.querySelector('script[src*="webcomponents-lite.js"]'),ke=/wc-(.+)/,Re={};if(!Re.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(ke))&&(Re[e[1]]=t[1]||!0)}),je)for(var Pe,He=0;Pe=je.attributes[He];He++)"src"!==Pe.name&&(Re[Pe.name]=Pe.value||!0);if(Re.log&&Re.log.split){var Fe=Re.log.split(",");Re.log={},Fe.forEach(function(t){Re.log[t]=!0})}else Re.log={}}window.WebComponents.flags=Re;var Ie=Re.shadydom;Ie&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=Ie);var qe=Re.register||Re.ce;qe&&window.customElements&&(window.customElements.forcePolyfill=qe);var We=window.ShadyDOM||{};We.ob=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Be=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");We.X=!!(Be&&Be.configurable&&Be.get),We.Ka=We.force||!We.ob;var Ve=Element.prototype,Ue=Ve.matches||Ve.matchesSelector||Ve.mozMatchesSelector||Ve.msMatchesSelector||Ve.oMatchesSelector||Ve.webkitMatchesSelector,Ge=document.createTextNode(""),Ke=0,$e=[];new MutationObserver(function(){for(;$e.length;)try{$e.shift()()}catch(t){throw Ge.textContent=Ke++,t}}).observe(Ge,{characterData:!0});var Ye,Xe=!!document.contains,ze=[];Q.list=ze,g.prototype.vb=function(){var t=this;this.a||(this.a=!0,z(function(){t.b()}))},g.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.da.forEach(function(e){e(t)})}},g.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var Je=Element.prototype.appendChild,Ze=Element.prototype.insertBefore,Qe=Element.prototype.removeChild,tn=Element.prototype.setAttribute,en=Element.prototype.removeAttribute,nn=Element.prototype.cloneNode,on=Document.prototype.importNode,rn=Element.prototype.addEventListener,an=Element.prototype.removeEventListener,sn=Window.prototype.addEventListener,cn=Window.prototype.removeEventListener,ln=Element.prototype.dispatchEvent,un=Node.prototype.contains||HTMLElement.prototype.contains,hn=Object.freeze({appendChild:Je,insertBefore:Ze,removeChild:Qe,setAttribute:tn,removeAttribute:en,cloneNode:nn,importNode:on,addEventListener:rn,removeEventListener:an,Lb:sn,Mb:cn,dispatchEvent:ln,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll,contains:un}),dn=/[&\u00A0"]/g,pn=/[&\u00A0<>]/g,fn=et("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),yn=et("style script xmp iframe noembed noframes plaintext noscript".split(" ")),mn=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),vn=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),_n=Object.freeze({parentNode:ot,firstChild:rt,lastChild:it,previousSibling:at,nextSibling:st,childNodes:ct,parentElement:lt,firstElementChild:ut,lastElementChild:ht,previousElementSibling:dt,nextElementSibling:pt,children:ft,innerHTML:yt,textContent:mt}),gn=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),bn=document.implementation.createHTMLDocument("inert").createElement("div"),wn=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),En={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:lt(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:ot(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:st(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:at(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return pt(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return dt(this)},configurable:!0}},Nn={childNodes:{get:function(){if(U(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=ct(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:rt(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:it(this)},configurable:!0},textContent:{get:function(){if(U(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return mt(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return ut(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return ht(this)},configurable:!0},children:{get:function(){var t;return t=U(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):ft(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return U(this)?nt(t):yt(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(gn&&gn.set?gn.set.call(bn,t):bn.innerHTML=t;bn.firstChild;)e.appendChild(bn.firstChild)},configurable:!0}},Cn={shadowRoot:{get:function(){return this.__shady&&this.__shady.tb||null},configurable:!0}},Sn={activeElement:{get:function(){var t=wn&&wn.get?wn.get.call(document):We.X?void 0:document.activeElement;if(t&&t.nodeType){var e=!!G(this);if(this===document||e&&this.host!==t&&un.call(this.host,t)){for(e=K(t);e&&e!==this;)t=e.host,e=K(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},Tn=We.X?function(){}:function(t){t.__shady&&t.__shady.Ya||(t.__shady=t.__shady||{},t.__shady.Ya=!0,vt(t,En,!0))},On=We.X?function(){}:function(t){t.__shady&&t.__shady.Wa||(t.__shady=t.__shady||{},t.__shady.Wa=!0,vt(t,Nn,!0),vt(t,Cn,!0))},xn=null,An="__eventWrappers"+Date.now(),Dn={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Mn={get composed(){return!1!==this.isTrusted&&void 0===this.la&&(this.la=Dn[this.type]),this.la||!1},composedPath:function(){return this.Aa||(this.Aa=jt(this.__target,this.composed)),this.Aa},get target(){return kt(this.currentTarget,this.composedPath())},get relatedTarget(){return this.Ba?(this.Ca||(this.Ca=jt(this.Ba,!0)),kt(this.currentTarget,this.Ca)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ma=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ma=this.Va=!0}},Ln={focus:!0,blur:!0},jn=Rt(window.Event),kn=Rt(window.CustomEvent),Rn=Rt(window.MouseEvent),Pn={};v.prototype=Object.create(DocumentFragment.prototype),v.prototype.H=function(t,e){this.Xa="ShadyRoot",_(t),_(this),this.host=t,this.J=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.tb="closed"!==this.J?this:null,this.ba=!1,this.b=[],this.a={},this.c=[];for(var n=0,o=(e=ct(t)).length;n<o;n++)Qe.call(t,e[n])},v.prototype.O=function(){var t=this;this.ba||(this.ba=!0,Z(function(){return t.Ga()}))},v.prototype.N=function(){for(var t,e=this;e;)e.ba&&(t=e),e=e.ib();return t},v.prototype.ib=function(){var t=this.host.getRootNode();if(G(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.j(e))return t},v.prototype.Ga=function(){var t=this.N();t&&t._renderRoot()},v.prototype._renderRoot=function(){this.ba=!1,this.D(),this.v()},v.prototype.D=function(){this.f();for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.u(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.h(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.h(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.Da()&&n._renderRoot(),this.g(t.__shady.W,t.__shady.assignedNodes),n=t.__shady.Fa){for(var o=0;o<n.length;o++)n[o].__shady.pa=null;t.__shady.Fa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ta=!0)}t.__shady.ta&&(t.__shady.ta=!1,this.i(t))}},v.prototype.h=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.pa;t.__shady.pa=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ta=!0)},v.prototype.u=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.W=[],t.__shady.Fa=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.pa=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},v.prototype.g=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)if("slot"==n.localName){var r=n.__shady.assignedNodes;r&&r.length&&this.g(t,r)}else t.push(e[o])},v.prototype.i=function(t){ln.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.i(t.__shady.assignedSlot)},v.prototype.v=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.T(n===this?this.host:n,this.B(n))},v.prototype.B=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){var o=t[n];if(this.j(o)){o=o.__shady.W;for(var r=0;r<o.length;r++)e.push(o[r])}else e.push(o)}return e},v.prototype.j=function(t){return"slot"==t.localName},v.prototype.T=function(t,e){for(var n,o=ct(t),r=Vt(e,e.length,o,o.length),i=0,a=0;i<r.length&&(n=r[i]);i++){for(var s,c=0;c<n.Z.length&&(s=n.Z[c]);c++)ot(s)===t&&Qe.call(t,s),o.splice(n.index+a,1);a-=n.ca}for(i=0;i<r.length&&(n=r[i]);i++)for(a=o[n.index],c=n.index;c<n.index+n.ca;c++)s=e[c],Ze.call(t,s,a),o.splice(c,0,s)},v.prototype.ab=function(t){this.c.push.apply(this.c,[].concat(t instanceof Array?t:i(r(t))))},v.prototype.f=function(){this.c.length&&(this.I(this.c),this.c=[])},v.prototype.I=function(t){for(var e,n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},_(o),_(o.parentNode);var r=this.l(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.s(this.a[i])},v.prototype.l=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Za=e},v.prototype.s=function(t){return t.sort(function(t,e){t=Gt(t);for(var n=Gt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},v.prototype.hb=function(t){this.f();var e,n=this.a;for(e in n)for(var o=n[e],r=0;r<o.length;r++){var i=o[r];if(J(t,i)){o.splice(r,1);var a=this.b.indexOf(i);0<=a&&this.b.splice(a,1),r--,this.K(i),a=!0}}return a},v.prototype.jb=function(t){var e=t.Za,n=this.l(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.s(e))}},v.prototype.K=function(t){if(t=t.__shady.W)for(var e=0;e<t.length;e++){var n=t[e],o=ot(n);o&&Qe.call(o,n)}},v.prototype.Da=function(){return this.f(),!!this.b.length},v.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.na=this,this.host.addEventListener(t,e,n)},v.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.na=this,this.host.removeEventListener(t,e,n)},v.prototype.getElementById=function(t){return xt(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){vt(t,Nn,!0),vt(t,Sn,!0)}(v.prototype);var Hn={addEventListener:It.bind(window),removeEventListener:qt.bind(window)},Fn={addEventListener:It,removeEventListener:qt,appendChild:function(t){return bt(this,t)},insertBefore:function(t,e){return bt(this,t,e)},removeChild:function(t){return wt(this,t)},replaceChild:function(t,e){return bt(this,t,e),wt(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=nn.call(this,t);else if(e=nn.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return Ot(this)},contains:function(t){return J(this,t)},get isConnected(){var t=this.ownerDocument;if(Xe&&un.call(t,this)||t.documentElement&&un.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof v?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return Q(),ln.call(this,t)}},In={get assignedSlot(){return Kt(this)}},qn={querySelector:function(t){return xt(this,function(e){return Ue.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return xt(this,function(e){return Ue.call(e,t)})}},Wn={assignedNodes:function(t){if("slot"===this.localName)return Dt(this),this.__shady?(t&&t.flatten?this.__shady.W:this.__shady.assignedNodes)||[]:[]}},Bn=Y({setAttribute:function(t,e){Mt(this,t,e)},removeAttribute:function(t){en.call(this,t),St(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new v(Pn,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){Mt(this,"slot",t)},get assignedSlot(){return Kt(this)}},qn,Wn);Object.defineProperties(Bn,Cn);var Vn=Y({importNode:function(t,e){return Lt(t,e)},getElementById:function(t){return xt(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},qn);Object.defineProperties(Vn,{_activeElement:Sn.activeElement});var Un=HTMLElement.prototype.blur,Gn=Y({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():Un.call(this)}});We.Ka&&(window.ShadyDOM={inUse:We.Ka,patch:function(t){return t},isShadyRoot:G,enqueue:Z,flush:Q,settings:We,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.Y||(t.__shady.Y=new g),t.__shady.Y.da.add(e);var n=t.__shady.Y;return{bb:e,P:n,gb:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.P;e&&(e.da.delete(t.bb),e.da.size||(t.gb.__shady.Y=null))},nativeMethods:hn,nativeTree:_n},window.Event=jn,window.CustomEvent=kn,window.MouseEvent=Rn,function(){for(var t in Ln)window.addEventListener(t,function(t){t.__target||(Wt(t),Ht(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;$t(window.Node.prototype,Fn),$t(window.Window.prototype,Hn),$t(window.Text.prototype,In),$t(window.DocumentFragment.prototype,qn),$t(window.Element.prototype,Bn),$t(window.Document.prototype,Vn),window.HTMLSlotElement&&$t(window.HTMLSlotElement.prototype,Wn),$t(t.prototype,Gn),We.X&&(_t(window.Node.prototype),_t(window.Text.prototype),_t(window.DocumentFragment.prototype),_t(window.Element.prototype),_t(t.prototype),_t(window.Document.prototype),window.HTMLSlotElement&&_t(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=v);var Kn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));m.prototype.D=function(t,e){this.u.set(t,e),this.s.set(e.constructor,e)},m.prototype.c=function(t){return this.u.get(t)},m.prototype.B=function(t){return this.s.get(t)},m.prototype.v=function(t){this.h=!0,this.j.push(t)},m.prototype.l=function(t){var e=this;this.h&&Jt(t,function(t){return e.g(t)})},m.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},m.prototype.b=function(t){var e=[];for(Jt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},m.prototype.a=function(t){var e=[];for(Jt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},m.prototype.f=function(t,e){var n=this,o=(e=e||{}).yb||new Set,r=e.Oa||function(t){return n.i(t)},i=[];if(Jt(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{yb:i,Oa:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},m.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Xt(t)&&this.connectedCallback(t)}}},m.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},m.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},m.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},y.prototype.c=function(){this.P&&this.P.disconnect()},y.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.f(n[o])},f.prototype.resolve=function(t){if(this.a)throw Error("Already resolved.");this.a=t,this.b&&this.b(t)},p.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Yt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),a=o("disconnectedCallback"),s=o("adoptedCallback"),c=o("attributeChangedCallback"),l=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:a,adoptedCallback:s,attributeChangedCallback:c,observedAttributes:l,constructionStack:[]},this.a.D(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},p.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{Oa:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)this.a.i(i[a]);(r=this.h.get(r))&&r.resolve(void 0)}}},p.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},p.prototype.whenDefined=function(t){if(!Yt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.c:(e=new f,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.resolve(void 0),e.c)},p.prototype.l=function(t){this.i.c();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=p,p.prototype.define=p.prototype.define,p.prototype.get=p.prototype.get,p.prototype.whenDefined=p.prototype.whenDefined,p.prototype.polyfillWrapFlushCallback=p.prototype.l;var $n=window.Document.prototype.createElement,Yn=window.Document.prototype.createElementNS,Xn=window.Document.prototype.importNode,zn=window.Document.prototype.prepend,Jn=window.Document.prototype.append,Zn=window.DocumentFragment.prototype.prepend,Qn=window.DocumentFragment.prototype.append,to=window.Node.prototype.cloneNode,eo=window.Node.prototype.appendChild,no=window.Node.prototype.insertBefore,oo=window.Node.prototype.removeChild,ro=window.Node.prototype.replaceChild,io=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),ao=window.Element.prototype.attachShadow,so=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),co=window.Element.prototype.getAttribute,lo=window.Element.prototype.setAttribute,uo=window.Element.prototype.removeAttribute,ho=window.Element.prototype.getAttributeNS,po=window.Element.prototype.setAttributeNS,fo=window.Element.prototype.removeAttributeNS,yo=window.Element.prototype.insertAdjacentElement,mo=window.Element.prototype.prepend,vo=window.Element.prototype.append,_o=window.Element.prototype.before,go=window.Element.prototype.after,bo=window.Element.prototype.replaceWith,wo=window.Element.prototype.remove,Eo=window.HTMLElement,No=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Co=window.HTMLElement.prototype.insertAdjacentElement,So=new function(){},To=window.customElements;if(!To||To.forcePolyfill||"function"!=typeof To.define||"function"!=typeof To.get){var Oo=new m;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.B(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=$n.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===So)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=So,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=Eo.prototype,e}()}(Oo),function(t){Zt(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=$n.call(this,e),t.g(e),e}),Zt(Document.prototype,"importNode",function(e,n){return e=Xn.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),Zt(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=Yn.call(this,e,n),t.g(e),e}),d(t,Document.prototype,{fa:zn,append:Jn})}(Oo),d(Oo,DocumentFragment.prototype,{fa:Zn,append:Qn}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&Xt(this)){o=Array(i);for(var a=0;a<i;a++)o[a]=r[a]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}Zt(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=no.call(this,e,n),Xt(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Xt(e),n=no.call(this,e,n),o&&t.a(e),Xt(this)&&t.b(e),n}),Zt(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=eo.call(this,e),Xt(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Xt(e),o=eo.call(this,e),n&&t.a(e),Xt(this)&&t.b(e),o}),Zt(Node.prototype,"cloneNode",function(e){return e=to.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),Zt(Node.prototype,"removeChild",function(e){var n=Xt(e),o=oo.call(this,e);return n&&t.a(e),o}),Zt(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=ro.call(this,e,n),Xt(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=Xt(e);var r=ro.call(this,e,n),i=Xt(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),io&&io.get?e(Node.prototype,io):t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)oo.call(this,this.firstChild);eo.call(this,document.createTextNode(t))}})})}(Oo),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Xt(this)&&(r=[],Jt(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var a=r[i];1===a.__CE_state&&t.disconnectedCallback(a)}return this.ownerDocument.__CE_hasRegistry?t.f(this):t.l(this),e}})}function n(e,n){Zt(e,"insertAdjacentElement",function(e,o){var r=Xt(o);return e=n.call(this,e,o),r&&t.a(o),Xt(e)&&t.b(o),e})}if(ao&&Zt(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=ao.call(this,t)}),so&&so.get)e(Element.prototype,so);else if(No&&No.get)e(HTMLElement.prototype,No);else{var o=$n.call(document,"div");t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return to.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)oo.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)eo.call(e,o.childNodes[0])}})})}Zt(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return lo.call(this,e,n);var o=co.call(this,e);lo.call(this,e,n),n=co.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Zt(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return po.call(this,e,n,o);var r=ho.call(this,e,n);po.call(this,e,n,o),o=ho.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Zt(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return uo.call(this,e);var n=co.call(this,e);uo.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Zt(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return fo.call(this,e,n);var o=ho.call(this,e,n);fo.call(this,e,n);var r=ho.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),Co?n(HTMLElement.prototype,Co):yo?n(Element.prototype,yo):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),d(t,Element.prototype,{fa:mo,append:vo}),h(t,{sa:_o,kb:go,replaceWith:bo,remove:wo})}(Oo),document.__CE_hasRegistry=!0;var xo=new p(Oo);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:xo})}var Ao={STYLE_RULE:1,ka:7,MEDIA_RULE:4,xa:1e3},Do={mb:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,Ha:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,La:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,sb:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,xb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,rb:/^@[^\s]*keyframes/,Ma:/\s+/g},Mo=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var Lo=window.ShadyCSS.nativeCss;else window.ShadyCSS?(oe(window.ShadyCSS),window.ShadyCSS=void 0):oe(window.WebComponents&&window.WebComponents.flags);var jo=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ko=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Ro=/(--[\w-]+)\s*([:,;)]|$)/gi,Po=/(animation\s*:)|(animation-name\s*:)/,Ho=/@media\s(.*)/,Fo=/\{[^}]*\}/g,Io=null;l.prototype.b=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.j(t,e||"",n)},l.prototype.j=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.h(t,e,n),t="template"===t.localName?(t.content||t.Db).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.j(t[o],e,n)},l.prototype.h=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(tr);n?o&&(e=o.replace("style-scope","").replace(e,""),he(t,e)):he(t,(o?o+" ":"")+"style-scope "+e)}},l.prototype.c=function(t,e,n){var o=t.__cssBuild;return Mo||"shady"===o?e=re(e,n):(t=de(t),e=this.I(e,t.is,t.$,n)+"\n\n"),e.trim()},l.prototype.I=function(t,e,n,o){var r=this.f(e,n);e=this.i(e);var i=this;return re(t,function(t){t.c||(i.K(t,e,r),t.c=!0),o&&o(t,e,r)})},l.prototype.i=function(t){return t?Zo+t:""},l.prototype.f=function(t,e){return e?"[is="+t+"]":t},l.prototype.K=function(t,e,n){this.l(t,this.g,e,n)},l.prototype.l=function(t,e,n,o){t.selector=t.A=this.s(t,e,n,o)},l.prototype.s=function(t,e,n,o){var r=t.selector.split(Bo);if(!ae(t)){t=0;for(var i,a=r.length;t<a&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(Bo)},l.prototype.v=function(t){return t.replace(qo,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})},l.prototype.g=function(t,e,n){var o=this,r=!1;t=t.trim();var i=qo.test(t);return i&&(t=t.replace(qo,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=this.v(t)),t=t.replace(Yo,Go+" $1"),t=t.replace(Vo,function(t,i,a){return r||(t=o.D(a,i,e,n),r=r||t.stop,i=t.lb,a=t.value),i+a}),i&&(t=this.v(t)),t},l.prototype.D=function(t,e,n,o){var r=t.indexOf($o);if(0<=t.indexOf(Go)?t=this.H(t,o):0!==r&&(t=n?this.u(t,n):t),n=!1,0<=r&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(zo,function(t,e){return" > "+e}))}return t=t.replace(Jo,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,lb:e,stop:i}},l.prototype.u=function(t,e){return t=t.split(Qo),t[0]+=e,t.join(Qo)},l.prototype.H=function(t,e){var n=t.match(Xo);return(n=n&&n[2].trim()||"")?n[0].match(Uo)?t.replace(Xo,function(t,n,o){return e+o}):n.split(Uo)[0]===e?n:er:t.replace(Go,e)},l.prototype.J=function(t){t.selector=t.parsedSelector,this.B(t),this.l(t,this.N)},l.prototype.B=function(t){t.selector===Ko&&(t.selector="html")},l.prototype.N=function(t){return t.match($o)?this.g(t,Wo):this.u(t.trim(),Wo)},a.Object.defineProperties(l.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var qo=/:(nth[-\w]+)\(([^)]+)\)/,Wo=":not(.style-scope)",Bo=",",Vo=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Uo=/[[.:#*]/,Go=":host",Ko=":root",$o="::slotted",Yo=new RegExp("^("+$o+")"),Xo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,zo=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Jo=/(.*):dir\((?:(ltr|rtl))\)/,Zo=".",Qo=":",tr="class",er="should_not_match",nr=new l;c.get=function(t){return t?t.__styleInfo:null},c.set=function(t,e){return t.__styleInfo=e},c.prototype.c=function(){return this.G},c.prototype._getStyleRules=c.prototype.c;var or=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),rr=navigator.userAgent.match("Trident");s.prototype.J=function(t){var e=this,n={},o=[],r=0;se(t,function(t){e.c(t),t.index=r++,e.I(t.w.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},s.prototype.c=function(t){if(!t.w){var e={},n={};this.b(t,n)&&(e.F=n,t.rules=null),e.cssText=this.H(t),t.w=e}},s.prototype.b=function(t,e){var n=t.w;if(!n){n=t.parsedCssText;for(var o;t=jo.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.F)return Object.assign(e,n.F),!0},s.prototype.H=function(t){return this.N(t.parsedCssText)},s.prototype.N=function(t){return t.replace(Fo,"").replace(jo,"")},s.prototype.I=function(t,e){for(var n;n=Ro.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},s.prototype.ha=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},s.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=ue(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},s.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(ko.lastIndex=0,o=ko.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=n.substring(o);i=i.trim(),i=this.a(i,e)||i,n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},s.prototype.D=function(t,e){var n="";t.w||this.c(t),t.w.cssText&&(n=this.f(t.w.cssText,e)),t.cssText=n},s.prototype.B=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.Ja&&(t.Ja=Po.test(n)),t.Ja)if(null==t.ea){t.ea=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.ea.push(r))}else{for(r=0;r<t.ea.length;++r)o=e[t.ea[r]],n=o(n);o=n}t.cssText=o},s.prototype.T=function(t,e){var n={},o=this,r=[];return se(t,function(t){t.w||o.c(t);var i=t.A||t.parsedSelector;e&&t.w.F&&i&&or.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{F:n,key:r}},s.prototype.ja=function(t,e,n,o){if(e.w||this.c(e),e.w.F){var r=de(t);t=r.is,r=r.$,r=t?nr.f(t,r):"html";var i=e.parsedSelector,a=":host > *"===i||"html"===i,s=0===i.indexOf(":host")&&!a;"shady"===n&&(a=i===r+" > *."+r||-1!==i.indexOf("html"),s=!a&&0===i.indexOf(r)),"shadow"===n&&(a=":host > *"===i||"html"===i,s=s&&!a),(a||s)&&(n=r,s&&(Mo&&!e.A&&(e.A=nr.s(e,nr.g,nr.i(t),r)),n=e.A||r),o({wb:n,qb:s,Hb:a}))}},s.prototype.K=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return se(e,function(e){r.ja(t,e,i,function(i){or.call(t.Eb||t,i.wb)&&(i.qb?r.b(e,n):r.b(e,o))})},null,!0),{ub:o,pb:n}},s.prototype.ia=function(t,e,n){var o=this,r=de(t),i=nr.f(r.is,r.$),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])");r=c.get(t).G;var s=this.h(r,n);return nr.c(t,r,function(t){o.D(t,e),Mo||ae(t)||!t.cssText||(o.B(t,s),o.l(t,a,i,n))})},s.prototype.h=function(t,e){t=t.b;var n={};if(!Mo&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},s.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},s.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.A=t.A||t.selector,t.selector=t.A.replace(t.keyframesName,t.a)},s.prototype.l=function(t,e,n,o){t.A=t.A||t.selector,o="."+o;for(var r,i=t.A.split(","),a=0,s=i.length;a<s&&(r=i[a]);a++)i[a]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},s.prototype.u=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&he(t,r)},s.prototype.v=function(t,e,n,o){e=o?o.textContent||"":this.ia(t,e,n);var r=c.get(t),i=r.a;return i&&!Mo&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),Mo?r.a?(r.a.textContent=e,o=r.a):e&&(o=ce(e,n,t.shadowRoot,r.b)):o?o.parentNode||(rr&&-1<e.indexOf("@media")&&(o.textContent=e),le(o,null,r.b)):e&&(o=ce(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},s.prototype.s=function(t,e){var n=ie(t),o=this;t.textContent=re(n,function(t){var n=t.cssText=t.parsedCssText;t.w&&t.w.cssText&&(n=n.replace(Do.Ha,"").replace(Do.La,""),t.cssText=o.f(n,e))})},a.Object.defineProperties(s.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var ir=new s,ar={},sr=window.customElements;if(sr&&!Mo){var cr=sr.define;sr.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Io?Io.nextSibling:null)||r.firstChild),Io=o,ar[t]=o,cr.call(sr,t,e,n)}}if(o.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.F[r]!==e[r])return!1}return!0},o.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({F:e,styleElement:n,C:o}),r.length>this.c&&r.shift(),this.cache[t]=r},o.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!Mo){var lr=new MutationObserver(pe),ur=function(t){lr.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)ur(document);else{var hr=function(){ur(document.body)};window.HTMLImports?window.HTMLImports.whenReady(hr):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){hr(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else hr()})}n=function(){pe(lr.takeRecords())}}var dr,pr={},fr=Promise.resolve(),yr=null,mr=window.HTMLImports&&window.HTMLImports.whenReady||null,vr=null,_r=null;e.prototype.Ia=function(){!this.enqueued&&_r&&(this.enqueued=!0,ve(_r))},e.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.Ia())},e.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},e.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,vr&&vr(o),n.__shadyCSSCachedStyle=o)}}return t},e.prototype.addCustomStyle=e.prototype.b,e.prototype.getStyleForCustomStyle=e.prototype.a,e.prototype.processStyles=e.prototype.c,Object.defineProperties(e.prototype,{transformCallback:{get:function(){return vr},set:function(t){vr=t}},validateCallback:{get:function(){return _r},set:function(t){var e=!1;_r||(e=!0),_r=t,e&&this.Ia()}}});var gr=new o;t.prototype.B=function(){n()},t.prototype.K=function(t){return t+"-"+(this.s[t]=(this.s[t]||0)+1)},t.prototype.Sa=function(t){return ie(t)},t.prototype.Ua=function(t){return re(t)},t.prototype.J=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},t.prototype.ha=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},t.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,pr[e]=t;var o=this.ha(t),r=this.J(t);n={is:e,extends:n,Ab:o},Mo||nr.b(t.content,e),this.c();var i=ko.test(r)||jo.test(r);ko.lastIndex=0,jo.lastIndex=0,r=Qt(r),i&&Lo&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],Lo||(o=ir.J(t._styleAst)),o.length&&!Lo||(e=this.T(n,t._styleAst,Mo?t.content:null,ar[e]),t.a=e),t.c=o}},t.prototype.T=function(t,e,n,o){if((e=nr.c(t,e)).length)return ce(e,t.is,n,o)},t.prototype.ja=function(t){var e=de(t),n=e.is;e=e.$;var o=ar[n];if(n=pr[n])var r=n._styleAst,i=n.c;return c.set(t,new c(r,o,i,0,e))},t.prototype.H=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=fe)},t.prototype.I=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.v(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},t.prototype.c=function(){this.H(),this.I()},t.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(Lo?this.Qa(t):(this.u(this.g,this.h),this.D(t)),this.b.enqueued=!1,this.i&&!Lo&&this.styleDocument())}},t.prototype.styleElement=function(t,e){var n=de(t).is,o=c.get(t);if(o||(o=this.ja(t)),this.j(t)||(this.i=!0),e&&(o.S=o.S||{},Object.assign(o.S,e)),Lo){if(o.S){e=o.S;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=pr[n])||this.j(t))&&r&&r.a&&!ye(r)&&((ye(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=nr.c(t,o.G),me(r)),Mo&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=nr.c(t,o.G)),o.G=r._styleAst)}else this.u(t,o),o.va&&o.va.length&&this.N(t,o)},t.prototype.l=function(t){return(t=t.getRootNode().host)?c.get(t)?t:this.l(t):this.g},t.prototype.j=function(t){return t===this.g},t.prototype.N=function(t,e){var n=de(t).is,o=gr.fetch(n,e.M,e.va),r=o?o.styleElement:null,i=e.C;e.C=o&&o.C||this.K(n),r=ir.v(t,e.M,e.C,r),Mo||ir.u(t,e.C,i),o||gr.b(n,e.M,r,e.C)},t.prototype.u=function(t,e){var n=this.l(t),o=c.get(n);n=Object.create(o.M||null);var r=ir.K(t,e.G);t=ir.T(o.G,t).F,Object.assign(n,r.pb,t,r.ub),this.ia(n,e.S),ir.ha(n),e.M=n},t.prototype.ia=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},t.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},t.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},t.prototype.Qa=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.Pa(n)}},t.prototype.D=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&ir.s(n,this.h.M)}},t.prototype.v=function(t){var e=this,n=ie(t);se(n,function(t){Mo?nr.B(t):nr.J(t),Lo&&(e.c(),e.a&&e.a.transformRule(t))}),Lo?t.textContent=re(n):this.h.G.rules.push(n)},t.prototype.Pa=function(t){if(Lo&&this.a){var e=ie(t);this.c(),this.a.transformRules(e),t.textContent=re(e)}},t.prototype.getComputedStyleValue=function(t,e){var n;return Lo||(n=(c.get(t)||c.get(this.l(t))).M[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.prototype.Ta=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var o=t.getAttribute("class");if(o){o=o.split(/\s/);for(var r=0;r<o.length;r++)if(o[r]===nr.a){n=o[r+1];break}}}n&&e.push(nr.a,n),Lo||(n=c.get(t))&&n.C&&e.push(ir.g,n.C),he(t,e.join(" "))},t.prototype.Ra=function(t){return c.get(t)},t.prototype.flush=t.prototype.B,t.prototype.prepareTemplate=t.prototype.prepareTemplate,t.prototype.styleElement=t.prototype.styleElement,t.prototype.styleDocument=t.prototype.styleDocument,t.prototype.styleSubtree=t.prototype.styleSubtree,t.prototype.getComputedStyleValue=t.prototype.getComputedStyleValue,t.prototype.setElementClass=t.prototype.Ta,t.prototype._styleInfoForNode=t.prototype.Ra,t.prototype.transformCustomStyleForDocument=t.prototype.v,t.prototype.getStyleAst=t.prototype.Sa,t.prototype.styleAstToString=t.prototype.Ua,t.prototype.flushCustomStyles=t.prototype.f,Object.defineProperties(t.prototype,{nativeShadow:{get:function(){return Mo}},nativeCss:{get:function(){return Lo}}});var br=new t;if(window.ShadyCSS)var wr=window.ShadyCSS.ApplyShim,Er=window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={ScopingShim:br,prepareTemplate:function(t,e,n){br.f(),br.prepareTemplate(t,e,n)},styleSubtree:function(t,e){br.f(),br.styleSubtree(t,e)},styleElement:function(t){br.f(),br.styleElement(t)},styleDocument:function(t){br.f(),br.styleDocument(t)},getComputedStyleValue:function(t,e){return br.getComputedStyleValue(t,e)},nativeCss:Lo,nativeShadow:Mo},wr&&(window.ShadyCSS.ApplyShim=wr),Er&&(window.ShadyCSS.CustomStyleInterface=Er);var Nr=window.customElements,Cr=window.HTMLImports,Sr=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},Nr&&Nr.polyfillWrapFlushCallback){var Tr,Or=function(){if(Tr){Sr.V&&Sr.V(window.document);var t=Tr;return Tr=null,t(),!0}},xr=Cr.whenReady;Nr.polyfillWrapFlushCallback(function(t){Tr=t,xr(Or)}),Cr.whenReady=function(t){xr(function(){Or()?Cr.whenReady(t):t()})}}Cr.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var Ar=document.createElement("style");Ar.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Dr=document.querySelector("head");Dr.insertBefore(Ar,Dr.firstChild)}()}).call(this),function(){"use strict";function t(){t=function(){},a.Symbol||(a.Symbol=c)}function e(){t();var o=a.Symbol.iterator;o||(o=a.Symbol.iterator=a.Symbol("iterator")),"function"!=typeof Array.prototype[o]&&s(Array.prototype,o,{configurable:!0,writable:!0,value:function(){return n(this)}}),e=function(){}}function n(t){var e=0;return o(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(t){return e(),t={next:t},t[a.Symbol.iterator]=function(){return this},t}function r(t){e();var o=t[Symbol.iterator];return o?o.call(t):n(t)}function i(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var a="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,s="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},c=function(){var t=0;return function(e){return"jscomp_symbol_"+(e||"")+t++}}();!function(){function t(){var t=this;this.s={},this.g=document.documentElement;var e=new u;e.rules=[],this.h=c.set(this.g,new c(e)),this.i=!1,this.b=this.a=null,ve(function(){t.c()})}function e(){this.customStyles=[],this.enqueued=!1}function n(){}function o(t){this.cache={},this.c=void 0===t?100:t}function s(){}function c(t,e,n,o,r){this.G=t||null,this.b=e||null,this.va=n||[],this.S=null,this.$=r||"",this.a=this.C=this.M=null}function l(){}function u(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function h(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Xt(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.sa&&(o.before=n(e.sa)),void 0!==e.sa&&(o.after=n(e.kb)),void 0!==e.replaceWith&&Zt(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(a=Xt(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(a)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&Zt(o,"remove",function(){var n=Xt(this);e.remove.call(this),n&&t.a(this)})}function d(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Xt(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.fa&&(e.prepend=o(n.fa)),void 0!==n.append&&(e.append=o(n.append))}function p(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new y(t,document)}function f(){var t=this;this.b=this.a=void 0,this.c=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function y(t,e){this.b=t,this.a=e,this.P=void 0,this.b.f(this.a),"loading"===this.a.readyState&&(this.P=new MutationObserver(this.f.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function m(){this.u=new Map,this.s=new Map,this.j=[],this.h=!1}function v(t,e,n){if(t!==Pn)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=v.prototype,t.H(e,n),t}function _(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=rt(t),t.__shady.lastChild=it(t),On(t);for(var e,n=t.__shady.childNodes=ct(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,Tn(e)}}function g(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.da=new Set}function b(t,e){Oe[Ee]=t,Oe[Ee+1]=e,2===(Ee+=2)&&(be?be(N):xe())}function w(){return void 0!==ge?function(){ge(N)}:E()}function E(){var t=setTimeout;return function(){return t(N,1)}}function N(){for(var t=0;t<Ee;t+=2)(0,Oe[t])(Oe[t+1]),Oe[t]=void 0,Oe[t+1]=void 0;Ee=0}function C(t,e){var n=this,o=new this.constructor(T);void 0===o[Ae]&&W(o);var r=n.o;if(r){var i=arguments[r-1];b(function(){return I(r,o,i,n.m)})}else P(n,o,t,e);return o}function S(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(T);return L(e,t),e}function T(){}function O(t){try{return t.then}catch(t){return De.error=t,De}}function x(t,e,n,o){try{t.call(e,n,o)}catch(t){return t}}function A(t,e,n){b(function(t){var o=!1,r=x(n,e,function(n){o||(o=!0,e!==n?L(t,n):k(t,n))},function(e){o||(o=!0,R(t,e))});!o&&r&&(o=!0,R(t,r))},t)}function D(t,e){1===e.o?k(t,e.m):2===e.o?R(t,e.m):P(e,void 0,function(e){return L(t,e)},function(e){return R(t,e)})}function M(t,e,n){e.constructor===t.constructor&&n===C&&e.constructor.resolve===S?D(t,e):n===De?(R(t,De.error),De.error=null):void 0===n?k(t,e):"function"==typeof n?A(t,e,n):k(t,e)}function L(t,e){if(t===e)R(t,new TypeError("You cannot resolve a promise with itself"));else{var n=typeof e;null===e||"object"!==n&&"function"!==n?k(t,e):M(t,e,O(e))}}function j(t){t.Ea&&t.Ea(t.m),H(t)}function k(t,e){void 0===t.o&&(t.m=e,t.o=1,0!==t.U.length&&b(H,t))}function R(t,e){void 0===t.o&&(t.o=2,t.m=e,b(j,t))}function P(t,e,n,o){var r=t.U,i=r.length;t.Ea=null,r[i]=e,r[i+1]=n,r[i+2]=o,0===i&&t.o&&b(H,t)}function H(t){var e=t.U,n=t.o;if(0!==e.length){for(var o,r,i=t.m,a=0;a<e.length;a+=3)o=e[a],r=e[a+n],o?I(n,o,r,i):r(i);t.U.length=0}}function F(){this.error=null}function I(t,e,n,o){var r="function"==typeof n;if(r){try{var i=n(o)}catch(t){Me.error=t,i=Me}if(i===Me){var a=!0,s=i.error;i.error=null}else var c=!0;if(e===i)return void R(e,new TypeError("A promises callback cannot return that same promise."))}else i=o,c=!0;void 0===e.o&&(r&&c?L(e,i):a?R(e,s):1===t?k(e,i):2===t&&R(e,i))}function q(t,e){try{e(function(e){L(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}function W(t){t[Ae]=Le++,t.o=void 0,t.m=void 0,t.U=[]}function B(t,e){this.fb=t,this.L=new t(T),this.L[Ae]||W(this.L),we(e)?(this.aa=this.length=e.length,this.m=Array(this.length),0===this.length?k(this.L,this.m):(this.length=this.length||0,this.eb(e),0===this.aa&&k(this.L,this.m))):R(this.L,Error("Array Methods must be provided an Array"))}function V(t){if(this[Ae]=Le++,this.m=this.o=void 0,this.U=[],T!==t){if("function"!=typeof t)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof V))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");q(this,t)}}function U(t){return t.__shady&&void 0!==t.__shady.firstChild}function G(t){return"ShadyRoot"===t.Xa}function K(t){if(t=t.getRootNode(),G(t))return t}function $(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function Y(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)$(t,n[o]);return t}function X(t,e){for(var n in e)t[n]=e[n]}function z(t){$e.push(t),Ge.textContent=Ke++}function J(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function Z(t){Ye||(Ye=!0,z(Q)),ze.push(t)}function Q(){Ye=!1;for(var t=!!ze.length;ze.length;)ze.shift()();return t}function tt(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function et(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function nt(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,a=r.length;i<a&&(n=r[i]);i++){t:{var s=n,c=t,l=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,h="<"+u,d=s.attributes,p=0;c=d[p];p++)h+=" "+c.name+'="'+c.value.replace(dn,tt)+'"';h+=">",s=fn[u]?h:h+nt(s,l)+"</"+u+">";break t;case Node.TEXT_NODE:s=s.data,s=c&&yn[c.localName]?s:s.replace(pn,tt);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}o+=s}return o}function ot(t){return mn.currentNode=t,mn.parentNode()}function rt(t){return mn.currentNode=t,mn.firstChild()}function it(t){return mn.currentNode=t,mn.lastChild()}function at(t){return mn.currentNode=t,mn.previousSibling()}function st(t){return mn.currentNode=t,mn.nextSibling()}function ct(t){var e=[];for(mn.currentNode=t,t=mn.firstChild();t;)e.push(t),t=mn.nextSibling();return e}function lt(t){return vn.currentNode=t,vn.parentNode()}function ut(t){return vn.currentNode=t,vn.firstChild()}function ht(t){return vn.currentNode=t,vn.lastChild()}function dt(t){return vn.currentNode=t,vn.previousSibling()}function pt(t){return vn.currentNode=t,vn.nextSibling()}function ft(t){var e=[];for(vn.currentNode=t,t=vn.firstChild();t;)e.push(t),t=vn.nextSibling();return e}function yt(t){return nt(t,function(t){return ct(t)})}function mt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function vt(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function _t(t){vt(t,En),vt(t,Nn),vt(t,Sn)}function gt(t,e,n){Tn(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function bt(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=n.__shady&&n.__shady.parentNode;if(void 0!==o&&o!==t||void 0===o&&ot(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;e.parentNode&&wt(e.parentNode,e);var r;if(r=o=K(t))t:{if(!e.__noInsertionPoint){var i;if("slot"===e.localName?i=[e]:e.querySelectorAll&&(i=e.querySelectorAll("slot")),i&&i.length){r=i;break t}}r=void 0}if((i=r)&&o.ab(i),o&&("slot"===t.localName||i)&&o.O(),U(t)){if(o=n,On(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,r=0;r<i.length;r++)gt(i[r],t,o);e.__shady=e.__shady||{},o=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=o,e.__shady.childNodes=o}else gt(e,t,o);if(Ct(t)){t.__shady.root.O();var a=!0}else t.__shady.root&&(a=!0)}return a||(a=G(t)?t.host:t,n?(n=Nt(n),Ze.call(a,e,n)):Je.call(a,e)),Tt(t,e),e}function wt(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=K(e);if(U(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling);var o=e.__shady.previousSibling,r=e.__shady.nextSibling;if(o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=r),r&&(r.__shady=r.__shady||{},r.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),Ct(t)){t.__shady.root.O();var i=!0}}return Et(e),n&&((r=t&&"slot"===t.localName)&&(i=!0),((o=n.hb(e))||r)&&n.O()),i||(i=G(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||i===ot(e))&&Qe.call(i,e)),Tt(t,null,e),e}function Et(t){if(t.__shady&&void 0!==t.__shady.wa)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)Et(e);t.__shady&&(t.__shady.wa=void 0)}function Nt(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady&&t.__shady.W)&&e.length?e[0]:Nt(t.nextSibling)),e}function Ct(t){return(t=t&&t.__shady&&t.__shady.root)&&t.Da()}function St(t,e){"slot"===e?(t=t.parentNode,Ct(t)&&t.__shady.root.O()):"slot"===t.localName&&"name"===e&&(e=K(t))&&(e.jb(t),e.O())}function Tt(t,e,n){(t=t.__shady&&t.__shady.Y)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.vb())}function Ot(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.wa;return void 0===e&&(e=G(t)?t:(e=t.parentNode)?Ot(e):t,un.call(document.documentElement,t)&&(t.__shady.wa=e)),e}}function xt(t,e,n){var o=[];return At(t.childNodes,e,n,o),o}function At(t,e,n,o){for(var r,i=0,a=t.length;i<a&&(r=t[i]);i++){var s;if(s=r.nodeType===Node.ELEMENT_NODE){var c=e,l=n,u=o,h=c(s=r);h&&u.push(s),l&&l(h)?s=h:(At(s.childNodes,c,l,u),s=void 0)}if(s)break}}function Dt(t){G(t=t.getRootNode())&&t.Ga()}function Mt(t,e,n){xn||(xn=window.ShadyCSS&&window.ShadyCSS.ScopingShim),xn&&"class"===e?xn.setElementClass(t,n):(tn.call(t,e,n),St(t,e))}function Lt(t,e){if(t.ownerDocument!==document)return on.call(document,t,e);var n=on.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=Lt(t[e],!0),n.appendChild(o)}return n}function jt(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function kt(t,e){if(!G)return t;t=jt(t,!0);for(var n,o,r,i,a=0;a<e.length;a++)if(n=e[a],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!G(r)||-1<i)return n}function Rt(t){function e(e,n){return e=new t(e,n),e.la=n&&!!n.composed,e}return X(e,t),e.prototype=t.prototype,e}function Pt(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Va);r++);}function Ht(t){var e=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var n=e.length-1;0<=n;n--){var o=e[n];if(Pt(t,o,"capture"),t.ma)return}Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});var r;for(n=0;n<e.length;n++){var i=(o=e[n]).__shady&&o.__shady.root;if((0===n||i&&i===r)&&(Pt(t,o,"bubble"),o!==window&&(r=o.getRootNode()),t.ma))break}}function Ft(t,e,n,o,r,i){for(var a=0;a<t.length;a++){var s=t[a],c=s.type,l=s.capture,u=s.once,h=s.passive;if(e===s.node&&n===c&&o===l&&r===u&&i===h)return a}return-1}function It(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var a=n&&n.na||this,s=e[An];if(s){if(-1<Ft(s,a,t,o,r,i))return}else e[An]=[];s=function(o){if(r&&this.removeEventListener(t,e,n),o.__target||Wt(o),a!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return a},configurable:!0})}if(o.composed||-1<o.composedPath().indexOf(a))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===a){var s="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(a,o);return a!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),s}},e[An].push({node:this,type:t,capture:o,once:r,passive:i,zb:s}),Ln[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(s)):(this instanceof Window?sn:rn).call(this,t,s,n)}}function qt(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var a=n&&n.na||this,s=void 0,c=null;try{c=e[An]}catch(t){}c&&-1<(r=Ft(c,a,t,o,r,i))&&(s=c.splice(r,1)[0].zb,c.length||(e[An]=void 0)),(this instanceof Window?cn:an).call(this,t,s||e,n),s&&Ln[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(s=t.indexOf(s))&&t.splice(s,1))}}function Wt(t){if(t.__target=t.target,t.Ba=t.relatedTarget,We.X){var e=Mn,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.Bb=n,$(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else $(t,Mn)}function Bt(t,e){return{index:t,Z:[],ca:e}}function Vt(t,e,n,o){var r=0,i=0,a=0,s=0,c=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(a=0;a<c;a++)if(t[a]!==n[a])break t;a=c}if(e==t.length&&o==n.length){s=t.length;for(var l=n.length,u=0;u<c-a&&Ut(t[--s],n[--l]);)u++;s=u}if(r+=a,i+=a,e-=s,o-=s,0==e-r&&0==o-i)return[];if(r==e){for(e=Bt(r,0);i<o;)e.Z.push(n[i++]);return[e]}if(i==o)return[Bt(r,e-r)];for(o=o-(a=i)+1,s=e-(c=r)+1,e=Array(o),l=0;l<o;l++)e[l]=Array(s),e[l][0]=l;for(l=0;l<s;l++)e[0][l]=l;for(l=1;l<o;l++)for(u=1;u<s;u++)if(t[c+u-1]===n[a+l-1])e[l][u]=e[l-1][u-1];else{var h=e[l-1][u]+1,d=e[l][u-1]+1;e[l][u]=h<d?h:d}for(c=e.length-1,a=e[0].length-1,o=e[c][a],t=[];0<c||0<a;)0==c?(t.push(2),a--):0==a?(t.push(3),c--):(s=e[c-1][a-1],l=e[c-1][a],u=e[c][a-1],(h=l<u?l<s?l:s:u<s?u:s)==s?(s==o?t.push(0):(t.push(1),o=s),c--,a--):h==l?(t.push(3),c--,o=l):(t.push(2),a--,o=u));for(t.reverse(),e=void 0,c=[],a=0;a<t.length;a++)switch(t[a]){case 0:e&&(c.push(e),e=void 0),r++,i++;break;case 1:e||(e=Bt(r,0)),e.ca++,r++,e.Z.push(n[i]),i++;break;case 2:e||(e=Bt(r,0)),e.ca++,r++;break;case 3:e||(e=Bt(r,0)),e.Z.push(n[i]),i++}return e&&c.push(e),c}function Ut(t,e){return t===e}function Gt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function Kt(t){return Dt(t),t.__shady&&t.__shady.assignedSlot||null}function $t(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function Yt(t){var e=Kn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Xt(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function zt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Jt(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)Jt(o,e,n);o=zt(t,r);continue}if("template"===i){o=zt(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)Jt(r,e,n)}o=o.firstChild?o.firstChild:zt(t,o)}}function Zt(t,e,n){t[e]=n}function Qt(t){var e=te,n=t=t.replace(Do.mb,"").replace(Do.port,""),o=new u;o.start=0,o.end=n.length;for(var r=o,i=0,a=n.length;i<a;i++)if("{"===n[i]){r.rules||(r.rules=[]);var s=r,c=s.rules[s.rules.length-1]||null;(r=new u).start=i+1,r.parent=s,r.previous=c,s.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function te(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=ee(n),n=n.replace(Do.Ma," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Ao.MEDIA_RULE:n.match(Do.rb)&&(t.type=Ao.ka,t.keyframesName=t.selector.split(Do.Ma).pop()):t.type=0===n.indexOf("--")?Ao.xa:Ao.STYLE_RULE),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)te(o,e);return t}function ee(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function ne(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var a,s=i.length;r<s&&(a=i[r]);r++)o=ne(a,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(Do.Ha,"").replace(Do.La,""),e=e.replace(Do.sb,"").replace(Do.xb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function oe(t){Lo=(!t||!t.shimcssproperties)&&(Mo||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function re(t,e){return t?("string"==typeof t&&(t=Qt(t)),e&&se(t,e),ne(t,Lo)):""}function ie(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Qt(t.textContent)),t.__cssRules||null}function ae(t){return!!t.parent&&t.parent.type===Ao.ka}function se(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===Ao.MEDIA_RULE){var a=t.selector.match(Ho);a&&(window.matchMedia(a[1]).matches||(r=!0))}if(i===Ao.STYLE_RULE?e(t):n&&i===Ao.ka?n(t):i===Ao.xa&&(r=!0),(t=t.rules)&&!r){r=0,i=t.length;for(var s;r<i&&(s=t[r]);r++)se(s,e,n,o)}}}function ce(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,le(r,n,o),r}function le(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Io?t.compareDocumentPosition(Io)===Node.DOCUMENT_POSITION_PRECEDING&&(Io=t):Io=t}function ue(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");t:{for(var o=0,r=n+3,i=t.length;r<i;r++)if("("===t[r])o++;else if(")"===t[r]&&0==--o)break t;r=-1}return o=t.substring(n+4,r),n=t.substring(0,n),t=ue(t.substring(r+1),e),-1===(r=o.indexOf(","))?e(n,o.trim(),"",t):e(n,o.substring(0,r).trim(),o.substring(r+1).trim(),t)}function he(t,e){Mo?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function de(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,$:n}}function pe(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i=r.getRootNode(),a=r,s=[];if(a.classList?s=Array.from(a.classList):a instanceof window.SVGElement&&a.hasAttribute("class")&&(s=a.getAttribute("class").split(/\s+/)),a=s,s=a.indexOf(nr.a),(a=-1<s?a[s+1]:"")&&i===r.ownerDocument)nr.b(r,a,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(i=de(i).is,a===i)for(r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+nr.a+")"),i=0;i<r.length;i++)nr.h(r[i],a);else a&&nr.b(r,a,!0),nr.b(r,i)}}}}function fe(t){(t=pr[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function ye(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function me(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,fr.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function ve(t){requestAnimationFrame(function(){mr?mr(t):(yr||(yr=new Promise(function(t){dr=t}),"complete"===document.readyState?dr():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&dr()})),yr.then(function(){t&&t()}))})}!function(){if(!function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}()){var t=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(t.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var e=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||e&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||e&&"function"!=typeof window.Event){var n=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},n)for(var o in n)window.Event[o]=n[o];window.Event.prototype=n.prototype}if(!window.MouseEvent||e&&"function"!=typeof window.MouseEvent){if(e=window.MouseEvent,window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},e)for(o in e)window.MouseEvent[o]=e[o];window.MouseEvent.prototype=e.prototype}Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t,e){for(var n,o=[].slice.call(arguments,1),r=0;r<o.length;r++)if(n=o[r])for(var i=t,a=n,s=Object.getOwnPropertyNames(a),c=0;c<s.length;c++)n=s[c],i[n]=a[n];return t})}(window.WebComponents),function(){function t(){}var e="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var t=Document.prototype.importNode;Document.prototype.importNode=function(){var e=t.apply(this,arguments);if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var n=this.createDocumentFragment();return n.appendChild(e),n}return e}}();var n=Node.prototype.cloneNode,o=Document.prototype.createElement,r=Document.prototype.importNode,i=function(){if(!e){var t=document.createElement("template"),n=document.createElement("template");return n.content.appendChild(document.createElement("div")),t.content.appendChild(n),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}();if(e){var a=document.implementation.createHTMLDocument("template"),s=!0,c=document.createElement("style");c.textContent="template{display:none;}";var l=document.head;l.insertBefore(c,l.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var u=!document.createElement("div").hasOwnProperty("innerHTML");t.R=function(e){if(!e.content){e.content=a.createDocumentFragment();for(var n;n=e.firstChild;)e.content.appendChild(n);if(u)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.a(this,e)},s)try{h(e),d(e)}catch(t){s=!1}t.V(e.content)}};var h=function(e){Object.defineProperty(e,"innerHTML",{get:function(){for(var t="",e=this.content.firstChild;e;e=e.nextSibling)t+=e.outerHTML||e.data.replace(p,f);return t},set:function(e){for(a.body.innerHTML=e,t.V(a);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;a.body.firstChild;)this.content.appendChild(a.body.firstChild)},configurable:!0})},d=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(a.body.innerHTML=t,t=document.createDocumentFragment();a.body.firstChild;)t.appendChild(a.body.firstChild);this.parentNode.replaceChild(t,this)},configurable:!0})};h(t.prototype),d(t.prototype),t.V=function(e){for(var n,o=0,r=(e=e.querySelectorAll("template")).length;o<r&&(n=e[o]);o++)t.R(n)},document.addEventListener("DOMContentLoaded",function(){t.V(document)}),Document.prototype.createElement=function(){var e=o.apply(this,arguments);return"template"===e.localName&&t.R(e),e};var p=/[&\u00A0<>]/g,f=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case" ":return"&nbsp;"}}}(e||i)&&(t.a=function(t,e){var o=n.call(t,!1);return this.R&&this.R(o),e&&(o.content.appendChild(n.call(t.content,!0)),this.ua(o.content,t.content)),o},t.prototype.cloneNode=function(e){return t.a(this,e)},t.ua=function(t,e){if(e.querySelectorAll){e=e.querySelectorAll("template");for(var n,o,r=0,i=(t=t.querySelectorAll("template")).length;r<i;r++)o=e[r],n=t[r],this.R&&this.R(o),n.parentNode.replaceChild(o.cloneNode(!0),n)}},Node.prototype.cloneNode=function(e){if(this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var o=this.ownerDocument.importNode(this,!0)}else o=n.call(this,e);return e&&t.ua(o,this),o},Document.prototype.importNode=function(e,n){if("template"===e.localName)return t.a(e,n);var o=r.call(this,e,n);return n&&t.ua(o,e),o},i&&(window.HTMLTemplateElement.prototype.cloneNode=function(e){return t.a(this,e)})),e&&(window.HTMLTemplateElement=t)}();var _e,ge,be,we=_e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},Ee=0,Ne="undefined"!=typeof window?window:void 0,Ce=Ne||{},Se=Ce.MutationObserver||Ce.WebKitMutationObserver,Te="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Oe=Array(1e3),xe="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?function(){return process.Ib(N)}:Se?function(){var t=0,e=new Se(N),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():Te?function(){var t=new MessageChannel;return t.port1.onmessage=N,function(){return t.port2.postMessage(0)}}():Ne||"function"!=typeof require?E():function(){try{var t=require("vertx");return ge=t.Kb||t.Jb,w()}catch(t){return E()}}(),Ae=Math.random().toString(36).substring(16),De=new F,Me=new F,Le=0;B.prototype.eb=function(t){for(var e=0;void 0===this.o&&e<t.length;e++)this.cb(t[e],e)},B.prototype.cb=function(t,e){var n=this.fb,o=n.resolve;o===S?(o=O(t))===C&&void 0!==t.o?this.qa(t.o,e,t.m):"function"!=typeof o?(this.aa--,this.m[e]=t):n===V?(n=new n(T),M(n,t,o),this.ra(n,e)):this.ra(new n(function(e){return e(t)}),e):this.ra(o(t),e)},B.prototype.qa=function(t,e,n){var o=this.L;void 0===o.o&&(this.aa--,2===t?R(o,n):this.m[e]=n),0===this.aa&&k(o,this.m)},B.prototype.ra=function(t,e){var n=this;P(t,void 0,function(t){return n.qa(1,e,t)},function(t){return n.qa(2,e,t)})},V.all=function(t){return new B(this,t).L},V.race=function(t){var e=this;return new e(we(t)?function(n,o){for(var r=t.length,i=0;i<r;i++)e.resolve(t[i]).then(n,o)}:function(t,e){return e(new TypeError("You must pass an array to race."))})},V.resolve=S,V.reject=function(t){var e=new this(T);return R(e,t),e},V.Gb=function(t){be=t},V.Fb=function(t){b=t},V.Cb=b,V.prototype={constructor:V,then:C,a:function(t){return this.then(null,t)}},window.Promise||(window.Promise=V,V.prototype.catch=V.prototype.a),function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!s(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){var e=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=e.length;n?l(e,function(e){return a(e,function(){0==--n&&t()})}):t()}function r(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function i(t){r(function(){return o(function(){return t&&t()})})}function a(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),v&&"style"===t.localName||t.addEventListener("error",n)}}function s(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function c(){var t=this;this.a={},this.b=0,this.f=new MutationObserver(function(e){return t.l(e)}),this.f.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function l(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var u="import"in document.createElement("link"),h=null;0=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return h||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(url\()([^)]*)(\))/g,p=/(@import[\s]+(?!url\())([^;]*)(;)/g,f=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,y={nb:function(t,e){if(t.href&&t.setAttribute("href",y.ga(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",y.ga(t.getAttribute("src"),e)),"style"===t.localName){var n=y.Na(t.textContent,e,d);t.textContent=y.Na(n,e,p)}},Na:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=y.ga(t,e)),n+"'"+t+"'"+r})},ga:function(t,e){if(void 0===y.oa){y.oa=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",y.oa="http://a/c%20d"===n.href}catch(t){}}return y.oa?new URL(t,e).href:((n=y.$a)||(n=document.implementation.createHTMLDocument("temp"),y.$a=n,n.za=n.createElement("base"),n.head.appendChild(n.za),n.ya=n.createElement("a")),n.za.href=e,n.ya.href=t,n.ya.href||t)}},m={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o),e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,m.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&0===t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(c.prototype.c=function(t){var e=this;l(t=t.querySelectorAll("link[rel=import]"),function(t){return e.h(t)})},c.prototype.h=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.import=o,this.g(t))}else this.b++,this.a[n]="pending",m.load(n,function(t,o){t=e.s(t,o||n),e.a[n]=t,e.b--,e.c(t),e.i()},function(){e.a[n]=null,e.b--,e.i()})},c.prototype.s=function(t,e){if(!t)return document.createDocumentFragment();v&&(t=t.replace(f,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=y.ga(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return l(n=t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){a(t),y.nb(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},c.prototype.i=function(){var t=this;if(!this.b){this.f.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.f.observe(document.head,{childList:!0,subtree:!0}),t.j()))};this.v(function(){n=!0,o()}),this.u(function(){e=!0,o()})}},c.prototype.flatten=function(t){var e=this;l(t=t.querySelectorAll("link[rel=import]"),function(t){var n=e.a[t.href];(t.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.import=t,e.flatten(n),t.appendChild(n))})},c.prototype.u=function(t){function e(r){if(r<o){var i=n[r],s=document.createElement("script");i.removeAttribute("import-dependency"),l(i.attributes,function(t){return s.setAttribute(t.name,t.value)}),h=s,i.parentNode.replaceChild(s,i),a(s,function(){h=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},c.prototype.v=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");l(e,function(e){if(a(e,function(){e.removeAttribute("import-dependency"),0==--o&&t()}),r&&e.parentNode!==document.head){var i=document.createElement(e.localName);for(i.__appliedElement=e,i.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(i,e.nextSibling),i=n(e);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(e,i),e.removeAttribute("type")}})}else t()},c.prototype.j=function(){var t=this;l(document.querySelectorAll("link[rel=import]"),function(e){return t.g(e)},!0)},c.prototype.g=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},c.prototype.l=function(t){var e=this;l(t,function(t){return l(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(s(t)?e.h(t):e.c(t))})})},u){var _=document.querySelectorAll("link[rel=import]");l(_,function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)}),_=function(t){s(t=t.target)&&(t.__loaded=!0)},document.addEventListener("load",_,!0),document.addEventListener("error",_,!0)}else{var g=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!g||g.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=s(this)?this:n(this);return t?t.href:g&&g.get?g.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new c})}i(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=i,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{}),window.WebComponents=window.WebComponents||{flags:{}};var je=document.querySelector('script[src*="webcomponents-lite.js"]'),ke=/wc-(.+)/,Re={};if(!Re.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(ke))&&(Re[e[1]]=t[1]||!0)}),je)for(var Pe,He=0;Pe=je.attributes[He];He++)"src"!==Pe.name&&(Re[Pe.name]=Pe.value||!0);if(Re.log&&Re.log.split){var Fe=Re.log.split(",");Re.log={},Fe.forEach(function(t){Re.log[t]=!0})}else Re.log={}}window.WebComponents.flags=Re;var Ie=Re.shadydom;Ie&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=Ie);var qe=Re.register||Re.ce;qe&&window.customElements&&(window.customElements.forcePolyfill=qe);var We=window.ShadyDOM||{};We.ob=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Be=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");We.X=!!(Be&&Be.configurable&&Be.get),We.Ka=We.force||!We.ob;var Ve=Element.prototype,Ue=Ve.matches||Ve.matchesSelector||Ve.mozMatchesSelector||Ve.msMatchesSelector||Ve.oMatchesSelector||Ve.webkitMatchesSelector,Ge=document.createTextNode(""),Ke=0,$e=[];new MutationObserver(function(){for(;$e.length;)try{$e.shift()()}catch(t){throw Ge.textContent=Ke++,t}}).observe(Ge,{characterData:!0});var Ye,Xe=!!document.contains,ze=[];Q.list=ze,g.prototype.vb=function(){var t=this;this.a||(this.a=!0,z(function(){t.b()}))},g.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.da.forEach(function(e){e(t)})}},g.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var Je=Element.prototype.appendChild,Ze=Element.prototype.insertBefore,Qe=Element.prototype.removeChild,tn=Element.prototype.setAttribute,en=Element.prototype.removeAttribute,nn=Element.prototype.cloneNode,on=Document.prototype.importNode,rn=Element.prototype.addEventListener,an=Element.prototype.removeEventListener,sn=Window.prototype.addEventListener,cn=Window.prototype.removeEventListener,ln=Element.prototype.dispatchEvent,un=Node.prototype.contains||HTMLElement.prototype.contains,hn=Object.freeze({appendChild:Je,insertBefore:Ze,removeChild:Qe,setAttribute:tn,removeAttribute:en,cloneNode:nn,importNode:on,addEventListener:rn,removeEventListener:an,Lb:sn,Mb:cn,dispatchEvent:ln,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll,contains:un}),dn=/[&\u00A0"]/g,pn=/[&\u00A0<>]/g,fn=et("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),yn=et("style script xmp iframe noembed noframes plaintext noscript".split(" ")),mn=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),vn=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),_n=Object.freeze({parentNode:ot,firstChild:rt,lastChild:it,previousSibling:at,nextSibling:st,childNodes:ct,parentElement:lt,firstElementChild:ut,lastElementChild:ht,previousElementSibling:dt,nextElementSibling:pt,children:ft,innerHTML:yt,textContent:mt}),gn=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),bn=document.implementation.createHTMLDocument("inert").createElement("div"),wn=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),En={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:lt(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:ot(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:st(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:at(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return pt(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return dt(this)},configurable:!0}},Nn={childNodes:{get:function(){if(U(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=ct(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:rt(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:it(this)},configurable:!0},textContent:{get:function(){if(U(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return mt(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return ut(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return ht(this)},configurable:!0},children:{get:function(){var t;return t=U(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):ft(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return U(this)?nt(t):yt(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(gn&&gn.set?gn.set.call(bn,t):bn.innerHTML=t;bn.firstChild;)e.appendChild(bn.firstChild)},configurable:!0}},Cn={shadowRoot:{get:function(){return this.__shady&&this.__shady.tb||null},configurable:!0}},Sn={activeElement:{get:function(){var t=wn&&wn.get?wn.get.call(document):We.X?void 0:document.activeElement;if(t&&t.nodeType){var e=!!G(this);if(this===document||e&&this.host!==t&&un.call(this.host,t)){for(e=K(t);e&&e!==this;)t=e.host,e=K(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},Tn=We.X?function(){}:function(t){t.__shady&&t.__shady.Ya||(t.__shady=t.__shady||{},t.__shady.Ya=!0,vt(t,En,!0))},On=We.X?function(){}:function(t){t.__shady&&t.__shady.Wa||(t.__shady=t.__shady||{},t.__shady.Wa=!0,vt(t,Nn,!0),vt(t,Cn,!0))},xn=null,An="__eventWrappers"+Date.now(),Dn={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Mn={get composed(){return!1!==this.isTrusted&&void 0===this.la&&(this.la=Dn[this.type]),this.la||!1},composedPath:function(){return this.Aa||(this.Aa=jt(this.__target,this.composed)),this.Aa},get target(){return kt(this.currentTarget,this.composedPath())},get relatedTarget(){return this.Ba?(this.Ca||(this.Ca=jt(this.Ba,!0)),kt(this.currentTarget,this.Ca)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ma=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ma=this.Va=!0}},Ln={focus:!0,blur:!0},jn=Rt(window.Event),kn=Rt(window.CustomEvent),Rn=Rt(window.MouseEvent),Pn={};v.prototype=Object.create(DocumentFragment.prototype),v.prototype.H=function(t,e){this.Xa="ShadyRoot",_(t),_(this),this.host=t,this.J=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.tb="closed"!==this.J?this:null,this.ba=!1,this.b=[],this.a={},this.c=[];for(var n=0,o=(e=ct(t)).length;n<o;n++)Qe.call(t,e[n])},v.prototype.O=function(){var t=this;this.ba||(this.ba=!0,Z(function(){return t.Ga()}))},v.prototype.N=function(){for(var t,e=this;e;)e.ba&&(t=e),e=e.ib();return t},v.prototype.ib=function(){var t=this.host.getRootNode();if(G(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.j(e))return t},v.prototype.Ga=function(){var t=this.N();t&&t._renderRoot()},v.prototype._renderRoot=function(){this.ba=!1,this.D(),this.v()},v.prototype.D=function(){this.f();for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.u(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.h(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.h(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.Da()&&n._renderRoot(),this.g(t.__shady.W,t.__shady.assignedNodes),n=t.__shady.Fa){for(var o=0;o<n.length;o++)n[o].__shady.pa=null;t.__shady.Fa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ta=!0)}t.__shady.ta&&(t.__shady.ta=!1,this.i(t))}},v.prototype.h=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.pa;t.__shady.pa=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ta=!0)},v.prototype.u=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.W=[],t.__shady.Fa=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.pa=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},v.prototype.g=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)if("slot"==n.localName){var r=n.__shady.assignedNodes;r&&r.length&&this.g(t,r)}else t.push(e[o])},v.prototype.i=function(t){ln.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.i(t.__shady.assignedSlot)},v.prototype.v=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.T(n===this?this.host:n,this.B(n))},v.prototype.B=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){var o=t[n];if(this.j(o)){o=o.__shady.W;for(var r=0;r<o.length;r++)e.push(o[r])}else e.push(o)}return e},v.prototype.j=function(t){return"slot"==t.localName},v.prototype.T=function(t,e){for(var n,o=ct(t),r=Vt(e,e.length,o,o.length),i=0,a=0;i<r.length&&(n=r[i]);i++){for(var s,c=0;c<n.Z.length&&(s=n.Z[c]);c++)ot(s)===t&&Qe.call(t,s),o.splice(n.index+a,1);a-=n.ca}for(i=0;i<r.length&&(n=r[i]);i++)for(a=o[n.index],c=n.index;c<n.index+n.ca;c++)s=e[c],Ze.call(t,s,a),o.splice(c,0,s)},v.prototype.ab=function(t){this.c.push.apply(this.c,[].concat(t instanceof Array?t:i(r(t))))},v.prototype.f=function(){this.c.length&&(this.I(this.c),this.c=[])},v.prototype.I=function(t){for(var e,n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},_(o),_(o.parentNode);var r=this.l(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.s(this.a[i])},v.prototype.l=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Za=e},v.prototype.s=function(t){return t.sort(function(t,e){t=Gt(t);for(var n=Gt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},v.prototype.hb=function(t){this.f();var e,n=this.a;for(e in n)for(var o=n[e],r=0;r<o.length;r++){var i=o[r];if(J(t,i)){o.splice(r,1);var a=this.b.indexOf(i);0<=a&&this.b.splice(a,1),r--,this.K(i),a=!0}}return a},v.prototype.jb=function(t){var e=t.Za,n=this.l(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.s(e))}},v.prototype.K=function(t){if(t=t.__shady.W)for(var e=0;e<t.length;e++){var n=t[e],o=ot(n);o&&Qe.call(o,n)}},v.prototype.Da=function(){return this.f(),!!this.b.length},v.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.na=this,this.host.addEventListener(t,e,n)},v.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.na=this,this.host.removeEventListener(t,e,n)},v.prototype.getElementById=function(t){return xt(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){vt(t,Nn,!0),vt(t,Sn,!0)}(v.prototype);var Hn={addEventListener:It.bind(window),removeEventListener:qt.bind(window)},Fn={addEventListener:It,removeEventListener:qt,appendChild:function(t){return bt(this,t)},insertBefore:function(t,e){return bt(this,t,e)},removeChild:function(t){return wt(this,t)},replaceChild:function(t,e){return bt(this,t,e),wt(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=nn.call(this,t);else if(e=nn.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return Ot(this)},contains:function(t){return J(this,t)},get isConnected(){var t=this.ownerDocument;if(Xe&&un.call(t,this)||t.documentElement&&un.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof v?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return Q(),ln.call(this,t)}},In={get assignedSlot(){return Kt(this)}},qn={querySelector:function(t){return xt(this,function(e){return Ue.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return xt(this,function(e){return Ue.call(e,t)})}},Wn={assignedNodes:function(t){if("slot"===this.localName)return Dt(this),this.__shady?(t&&t.flatten?this.__shady.W:this.__shady.assignedNodes)||[]:[]}},Bn=Y({setAttribute:function(t,e){Mt(this,t,e)},removeAttribute:function(t){en.call(this,t),St(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new v(Pn,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){Mt(this,"slot",t)},get assignedSlot(){return Kt(this)}},qn,Wn);Object.defineProperties(Bn,Cn);var Vn=Y({importNode:function(t,e){return Lt(t,e)},getElementById:function(t){return xt(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},qn);Object.defineProperties(Vn,{_activeElement:Sn.activeElement});var Un=HTMLElement.prototype.blur,Gn=Y({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():Un.call(this)}});We.Ka&&(window.ShadyDOM={inUse:We.Ka,patch:function(t){return t},isShadyRoot:G,enqueue:Z,flush:Q,settings:We,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.Y||(t.__shady.Y=new g),t.__shady.Y.da.add(e);var n=t.__shady.Y;return{bb:e,P:n,gb:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.P;e&&(e.da.delete(t.bb),e.da.size||(t.gb.__shady.Y=null))},nativeMethods:hn,nativeTree:_n},window.Event=jn,window.CustomEvent=kn,window.MouseEvent=Rn,function(){for(var t in Ln)window.addEventListener(t,function(t){t.__target||(Wt(t),Ht(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;$t(window.Node.prototype,Fn),$t(window.Window.prototype,Hn),$t(window.Text.prototype,In),$t(window.DocumentFragment.prototype,qn),$t(window.Element.prototype,Bn),$t(window.Document.prototype,Vn),window.HTMLSlotElement&&$t(window.HTMLSlotElement.prototype,Wn),$t(t.prototype,Gn),We.X&&(_t(window.Node.prototype),_t(window.Text.prototype),_t(window.DocumentFragment.prototype),_t(window.Element.prototype),_t(t.prototype),_t(window.Document.prototype),window.HTMLSlotElement&&_t(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=v);var Kn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));m.prototype.D=function(t,e){this.u.set(t,e),this.s.set(e.constructor,e)},m.prototype.c=function(t){return this.u.get(t)},m.prototype.B=function(t){return this.s.get(t)},m.prototype.v=function(t){this.h=!0,this.j.push(t)},m.prototype.l=function(t){var e=this;this.h&&Jt(t,function(t){return e.g(t)})},m.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},m.prototype.b=function(t){var e=[];for(Jt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},m.prototype.a=function(t){var e=[];for(Jt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},m.prototype.f=function(t,e){var n=this,o=(e=e||{}).yb||new Set,r=e.Oa||function(t){return n.i(t)},i=[];if(Jt(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{yb:i,Oa:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},m.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Xt(t)&&this.connectedCallback(t)}}},m.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},m.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},m.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},y.prototype.c=function(){this.P&&this.P.disconnect()},y.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.f(n[o])},f.prototype.resolve=function(t){if(this.a)throw Error("Already resolved.");this.a=t,this.b&&this.b(t)},p.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Yt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),a=o("disconnectedCallback"),s=o("adoptedCallback"),c=o("attributeChangedCallback"),l=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:a,adoptedCallback:s,attributeChangedCallback:c,observedAttributes:l,constructionStack:[]},this.a.D(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},p.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{Oa:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)this.a.i(i[a]);(r=this.h.get(r))&&r.resolve(void 0)}}},p.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},p.prototype.whenDefined=function(t){if(!Yt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.c:(e=new f,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.resolve(void 0),e.c)},p.prototype.l=function(t){this.i.c();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=p,p.prototype.define=p.prototype.define,p.prototype.get=p.prototype.get,p.prototype.whenDefined=p.prototype.whenDefined,p.prototype.polyfillWrapFlushCallback=p.prototype.l;var $n=window.Document.prototype.createElement,Yn=window.Document.prototype.createElementNS,Xn=window.Document.prototype.importNode,zn=window.Document.prototype.prepend,Jn=window.Document.prototype.append,Zn=window.DocumentFragment.prototype.prepend,Qn=window.DocumentFragment.prototype.append,to=window.Node.prototype.cloneNode,eo=window.Node.prototype.appendChild,no=window.Node.prototype.insertBefore,oo=window.Node.prototype.removeChild,ro=window.Node.prototype.replaceChild,io=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),ao=window.Element.prototype.attachShadow,so=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),co=window.Element.prototype.getAttribute,lo=window.Element.prototype.setAttribute,uo=window.Element.prototype.removeAttribute,ho=window.Element.prototype.getAttributeNS,po=window.Element.prototype.setAttributeNS,fo=window.Element.prototype.removeAttributeNS,yo=window.Element.prototype.insertAdjacentElement,mo=window.Element.prototype.prepend,vo=window.Element.prototype.append,_o=window.Element.prototype.before,go=window.Element.prototype.after,bo=window.Element.prototype.replaceWith,wo=window.Element.prototype.remove,Eo=window.HTMLElement,No=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Co=window.HTMLElement.prototype.insertAdjacentElement,So=new function(){},To=window.customElements;if(!To||To.forcePolyfill||"function"!=typeof To.define||"function"!=typeof To.get){var Oo=new m;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.B(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=$n.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===So)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=So,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=Eo.prototype,e}()}(Oo),function(t){Zt(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=$n.call(this,e),t.g(e),e}),Zt(Document.prototype,"importNode",function(e,n){return e=Xn.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),Zt(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=Yn.call(this,e,n),t.g(e),e}),d(t,Document.prototype,{fa:zn,append:Jn})}(Oo),d(Oo,DocumentFragment.prototype,{fa:Zn,append:Qn}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&Xt(this)){o=Array(i);for(var a=0;a<i;a++)o[a]=r[a]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}Zt(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=no.call(this,e,n),Xt(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Xt(e),n=no.call(this,e,n),o&&t.a(e),Xt(this)&&t.b(e),n}),Zt(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=eo.call(this,e),Xt(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Xt(e),o=eo.call(this,e),n&&t.a(e),Xt(this)&&t.b(e),o}),Zt(Node.prototype,"cloneNode",function(e){return e=to.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),Zt(Node.prototype,"removeChild",function(e){var n=Xt(e),o=oo.call(this,e);return n&&t.a(e),o}),Zt(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=ro.call(this,e,n),Xt(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=Xt(e);var r=ro.call(this,e,n),i=Xt(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),io&&io.get?e(Node.prototype,io):t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)oo.call(this,this.firstChild);eo.call(this,document.createTextNode(t))}})})}(Oo),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Xt(this)&&(r=[],Jt(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var a=r[i];1===a.__CE_state&&t.disconnectedCallback(a)}return this.ownerDocument.__CE_hasRegistry?t.f(this):t.l(this),e}})}function n(e,n){Zt(e,"insertAdjacentElement",function(e,o){var r=Xt(o);return e=n.call(this,e,o),r&&t.a(o),Xt(e)&&t.b(o),e})}if(ao&&Zt(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=ao.call(this,t)}),so&&so.get)e(Element.prototype,so);else if(No&&No.get)e(HTMLElement.prototype,No);else{var o=$n.call(document,"div");t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return to.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)oo.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)eo.call(e,o.childNodes[0])}})})}Zt(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return lo.call(this,e,n);var o=co.call(this,e);lo.call(this,e,n),n=co.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Zt(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return po.call(this,e,n,o);var r=ho.call(this,e,n);po.call(this,e,n,o),o=ho.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Zt(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return uo.call(this,e);var n=co.call(this,e);uo.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Zt(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return fo.call(this,e,n);var o=ho.call(this,e,n);fo.call(this,e,n);var r=ho.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),Co?n(HTMLElement.prototype,Co):yo?n(Element.prototype,yo):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),d(t,Element.prototype,{fa:mo,append:vo}),h(t,{sa:_o,kb:go,replaceWith:bo,remove:wo})}(Oo),document.__CE_hasRegistry=!0;var xo=new p(Oo);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:xo})}var Ao={STYLE_RULE:1,ka:7,MEDIA_RULE:4,xa:1e3},Do={mb:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,Ha:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,La:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,sb:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,xb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,rb:/^@[^\s]*keyframes/,Ma:/\s+/g},Mo=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var Lo=window.ShadyCSS.nativeCss;else window.ShadyCSS?(oe(window.ShadyCSS),window.ShadyCSS=void 0):oe(window.WebComponents&&window.WebComponents.flags);var jo=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ko=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Ro=/(--[\w-]+)\s*([:,;)]|$)/gi,Po=/(animation\s*:)|(animation-name\s*:)/,Ho=/@media\s(.*)/,Fo=/\{[^}]*\}/g,Io=null;l.prototype.b=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.j(t,e||"",n)},l.prototype.j=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.h(t,e,n),t="template"===t.localName?(t.content||t.Db).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.j(t[o],e,n)},l.prototype.h=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(tr);n?o&&(e=o.replace("style-scope","").replace(e,""),he(t,e)):he(t,(o?o+" ":"")+"style-scope "+e)}},l.prototype.c=function(t,e,n){var o=t.__cssBuild;return Mo||"shady"===o?e=re(e,n):(t=de(t),e=this.I(e,t.is,t.$,n)+"\n\n"),e.trim()},l.prototype.I=function(t,e,n,o){var r=this.f(e,n);e=this.i(e);var i=this;return re(t,function(t){t.c||(i.K(t,e,r),t.c=!0),o&&o(t,e,r)})},l.prototype.i=function(t){return t?Zo+t:""},l.prototype.f=function(t,e){return e?"[is="+t+"]":t},l.prototype.K=function(t,e,n){this.l(t,this.g,e,n)},l.prototype.l=function(t,e,n,o){t.selector=t.A=this.s(t,e,n,o)},l.prototype.s=function(t,e,n,o){var r=t.selector.split(Bo);if(!ae(t)){t=0;for(var i,a=r.length;t<a&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(Bo)},l.prototype.v=function(t){return t.replace(qo,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})},l.prototype.g=function(t,e,n){var o=this,r=!1;t=t.trim();var i=qo.test(t);return i&&(t=t.replace(qo,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=this.v(t)),t=t.replace(Yo,Go+" $1"),t=t.replace(Vo,function(t,i,a){return r||(t=o.D(a,i,e,n),r=r||t.stop,i=t.lb,a=t.value),i+a}),i&&(t=this.v(t)),t},l.prototype.D=function(t,e,n,o){var r=t.indexOf($o);if(0<=t.indexOf(Go)?t=this.H(t,o):0!==r&&(t=n?this.u(t,n):t),n=!1,0<=r&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(zo,function(t,e){return" > "+e}))}return t=t.replace(Jo,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,lb:e,stop:i}},l.prototype.u=function(t,e){return t=t.split(Qo),t[0]+=e,t.join(Qo)},l.prototype.H=function(t,e){var n=t.match(Xo);return(n=n&&n[2].trim()||"")?n[0].match(Uo)?t.replace(Xo,function(t,n,o){return e+o}):n.split(Uo)[0]===e?n:er:t.replace(Go,e)},l.prototype.J=function(t){t.selector=t.parsedSelector,this.B(t),this.l(t,this.N)},l.prototype.B=function(t){t.selector===Ko&&(t.selector="html")},l.prototype.N=function(t){return t.match($o)?this.g(t,Wo):this.u(t.trim(),Wo)},a.Object.defineProperties(l.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var qo=/:(nth[-\w]+)\(([^)]+)\)/,Wo=":not(.style-scope)",Bo=",",Vo=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Uo=/[[.:#*]/,Go=":host",Ko=":root",$o="::slotted",Yo=new RegExp("^("+$o+")"),Xo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,zo=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Jo=/(.*):dir\((?:(ltr|rtl))\)/,Zo=".",Qo=":",tr="class",er="should_not_match",nr=new l;c.get=function(t){return t?t.__styleInfo:null},c.set=function(t,e){return t.__styleInfo=e},c.prototype.c=function(){return this.G},c.prototype._getStyleRules=c.prototype.c;var or=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),rr=navigator.userAgent.match("Trident");s.prototype.J=function(t){var e=this,n={},o=[],r=0;se(t,function(t){e.c(t),t.index=r++,e.I(t.w.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},s.prototype.c=function(t){if(!t.w){var e={},n={};this.b(t,n)&&(e.F=n,t.rules=null),e.cssText=this.H(t),t.w=e}},s.prototype.b=function(t,e){var n=t.w;if(!n){n=t.parsedCssText;for(var o;t=jo.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.F)return Object.assign(e,n.F),!0},s.prototype.H=function(t){return this.N(t.parsedCssText)},s.prototype.N=function(t){return t.replace(Fo,"").replace(jo,"")},s.prototype.I=function(t,e){for(var n;n=Ro.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},s.prototype.ha=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},s.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=ue(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},s.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(ko.lastIndex=0,o=ko.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=n.substring(o);i=i.trim(),i=this.a(i,e)||i,n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},s.prototype.D=function(t,e){var n="";t.w||this.c(t),t.w.cssText&&(n=this.f(t.w.cssText,e)),t.cssText=n},s.prototype.B=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.Ja&&(t.Ja=Po.test(n)),t.Ja)if(null==t.ea){t.ea=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.ea.push(r))}else{for(r=0;r<t.ea.length;++r)o=e[t.ea[r]],n=o(n);o=n}t.cssText=o},s.prototype.T=function(t,e){var n={},o=this,r=[];return se(t,function(t){t.w||o.c(t);var i=t.A||t.parsedSelector;e&&t.w.F&&i&&or.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{F:n,key:r}},s.prototype.ja=function(t,e,n,o){if(e.w||this.c(e),e.w.F){var r=de(t);t=r.is,r=r.$,r=t?nr.f(t,r):"html";var i=e.parsedSelector,a=":host > *"===i||"html"===i,s=0===i.indexOf(":host")&&!a;"shady"===n&&(a=i===r+" > *."+r||-1!==i.indexOf("html"),s=!a&&0===i.indexOf(r)),"shadow"===n&&(a=":host > *"===i||"html"===i,s=s&&!a),(a||s)&&(n=r,s&&(Mo&&!e.A&&(e.A=nr.s(e,nr.g,nr.i(t),r)),n=e.A||r),o({wb:n,qb:s,Hb:a}))}},s.prototype.K=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return se(e,function(e){r.ja(t,e,i,function(i){or.call(t.Eb||t,i.wb)&&(i.qb?r.b(e,n):r.b(e,o))})},null,!0),{ub:o,pb:n}},s.prototype.ia=function(t,e,n){var o=this,r=de(t),i=nr.f(r.is,r.$),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])");r=c.get(t).G;var s=this.h(r,n);return nr.c(t,r,function(t){o.D(t,e),Mo||ae(t)||!t.cssText||(o.B(t,s),o.l(t,a,i,n))})},s.prototype.h=function(t,e){t=t.b;var n={};if(!Mo&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},s.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},s.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.A=t.A||t.selector,t.selector=t.A.replace(t.keyframesName,t.a)},s.prototype.l=function(t,e,n,o){t.A=t.A||t.selector,o="."+o;for(var r,i=t.A.split(","),a=0,s=i.length;a<s&&(r=i[a]);a++)i[a]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},s.prototype.u=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&he(t,r)},s.prototype.v=function(t,e,n,o){e=o?o.textContent||"":this.ia(t,e,n);var r=c.get(t),i=r.a;return i&&!Mo&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),Mo?r.a?(r.a.textContent=e,o=r.a):e&&(o=ce(e,n,t.shadowRoot,r.b)):o?o.parentNode||(rr&&-1<e.indexOf("@media")&&(o.textContent=e),le(o,null,r.b)):e&&(o=ce(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},s.prototype.s=function(t,e){var n=ie(t),o=this;t.textContent=re(n,function(t){var n=t.cssText=t.parsedCssText;t.w&&t.w.cssText&&(n=n.replace(Do.Ha,"").replace(Do.La,""),t.cssText=o.f(n,e))})},a.Object.defineProperties(s.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var ir=new s,ar={},sr=window.customElements;if(sr&&!Mo){var cr=sr.define;sr.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Io?Io.nextSibling:null)||r.firstChild),Io=o,ar[t]=o,cr.call(sr,t,e,n)}}if(o.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.F[r]!==e[r])return!1}return!0},o.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({F:e,styleElement:n,C:o}),r.length>this.c&&r.shift(),this.cache[t]=r},o.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!Mo){var lr=new MutationObserver(pe),ur=function(t){lr.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)ur(document);else{var hr=function(){ur(document.body)};window.HTMLImports?window.HTMLImports.whenReady(hr):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){hr(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else hr()})}n=function(){pe(lr.takeRecords())}}var dr,pr={},fr=Promise.resolve(),yr=null,mr=window.HTMLImports&&window.HTMLImports.whenReady||null,vr=null,_r=null;e.prototype.Ia=function(){!this.enqueued&&_r&&(this.enqueued=!0,ve(_r))},e.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.Ia())},e.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},e.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,vr&&vr(o),n.__shadyCSSCachedStyle=o)}}return t},e.prototype.addCustomStyle=e.prototype.b,e.prototype.getStyleForCustomStyle=e.prototype.a,e.prototype.processStyles=e.prototype.c,Object.defineProperties(e.prototype,{transformCallback:{get:function(){return vr},set:function(t){vr=t}},validateCallback:{get:function(){return _r},set:function(t){var e=!1;_r||(e=!0),_r=t,e&&this.Ia()}}});var gr=new o;t.prototype.B=function(){n()},t.prototype.K=function(t){return t+"-"+(this.s[t]=(this.s[t]||0)+1)},t.prototype.Sa=function(t){return ie(t)},t.prototype.Ua=function(t){return re(t)},t.prototype.J=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},t.prototype.ha=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},t.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,pr[e]=t;var o=this.ha(t),r=this.J(t);n={is:e,extends:n,Ab:o},Mo||nr.b(t.content,e),this.c();var i=ko.test(r)||jo.test(r);ko.lastIndex=0,jo.lastIndex=0,r=Qt(r),i&&Lo&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],Lo||(o=ir.J(t._styleAst)),o.length&&!Lo||(e=this.T(n,t._styleAst,Mo?t.content:null,ar[e]),t.a=e),t.c=o}},t.prototype.T=function(t,e,n,o){if((e=nr.c(t,e)).length)return ce(e,t.is,n,o)},t.prototype.ja=function(t){var e=de(t),n=e.is;e=e.$;var o=ar[n];if(n=pr[n])var r=n._styleAst,i=n.c;return c.set(t,new c(r,o,i,0,e))},t.prototype.H=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=fe)},t.prototype.I=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.v(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},t.prototype.c=function(){this.H(),this.I()},t.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(Lo?this.Qa(t):(this.u(this.g,this.h),this.D(t)),this.b.enqueued=!1,this.i&&!Lo&&this.styleDocument())}},t.prototype.styleElement=function(t,e){var n=de(t).is,o=c.get(t);if(o||(o=this.ja(t)),this.j(t)||(this.i=!0),e&&(o.S=o.S||{},Object.assign(o.S,e)),Lo){if(o.S){e=o.S;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=pr[n])||this.j(t))&&r&&r.a&&!ye(r)&&((ye(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=nr.c(t,o.G),me(r)),Mo&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=nr.c(t,o.G)),o.G=r._styleAst)}else this.u(t,o),o.va&&o.va.length&&this.N(t,o)},t.prototype.l=function(t){return(t=t.getRootNode().host)?c.get(t)?t:this.l(t):this.g},t.prototype.j=function(t){return t===this.g},t.prototype.N=function(t,e){var n=de(t).is,o=gr.fetch(n,e.M,e.va),r=o?o.styleElement:null,i=e.C;e.C=o&&o.C||this.K(n),r=ir.v(t,e.M,e.C,r),Mo||ir.u(t,e.C,i),o||gr.b(n,e.M,r,e.C)},t.prototype.u=function(t,e){var n=this.l(t),o=c.get(n);n=Object.create(o.M||null);var r=ir.K(t,e.G);t=ir.T(o.G,t).F,Object.assign(n,r.pb,t,r.ub),this.ia(n,e.S),ir.ha(n),e.M=n},t.prototype.ia=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},t.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},t.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},t.prototype.Qa=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.Pa(n)}},t.prototype.D=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&ir.s(n,this.h.M)}},t.prototype.v=function(t){var e=this,n=ie(t);se(n,function(t){Mo?nr.B(t):nr.J(t),Lo&&(e.c(),e.a&&e.a.transformRule(t))}),Lo?t.textContent=re(n):this.h.G.rules.push(n)},t.prototype.Pa=function(t){if(Lo&&this.a){var e=ie(t);this.c(),this.a.transformRules(e),t.textContent=re(e)}},t.prototype.getComputedStyleValue=function(t,e){var n;return Lo||(n=(c.get(t)||c.get(this.l(t))).M[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.prototype.Ta=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var o=t.getAttribute("class");if(o){o=o.split(/\s/);for(var r=0;r<o.length;r++)if(o[r]===nr.a){n=o[r+1];break}}}n&&e.push(nr.a,n),Lo||(n=c.get(t))&&n.C&&e.push(ir.g,n.C),he(t,e.join(" "))},t.prototype.Ra=function(t){return c.get(t)},t.prototype.flush=t.prototype.B,t.prototype.prepareTemplate=t.prototype.prepareTemplate,t.prototype.styleElement=t.prototype.styleElement,t.prototype.styleDocument=t.prototype.styleDocument,t.prototype.styleSubtree=t.prototype.styleSubtree,t.prototype.getComputedStyleValue=t.prototype.getComputedStyleValue,t.prototype.setElementClass=t.prototype.Ta,t.prototype._styleInfoForNode=t.prototype.Ra,t.prototype.transformCustomStyleForDocument=t.prototype.v,t.prototype.getStyleAst=t.prototype.Sa,t.prototype.styleAstToString=t.prototype.Ua,t.prototype.flushCustomStyles=t.prototype.f,Object.defineProperties(t.prototype,{nativeShadow:{get:function(){return Mo}},nativeCss:{get:function(){return Lo}}});var br=new t;if(window.ShadyCSS)var wr=window.ShadyCSS.ApplyShim,Er=window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={ScopingShim:br,prepareTemplate:function(t,e,n){br.f(),br.prepareTemplate(t,e,n)},styleSubtree:function(t,e){br.f(),br.styleSubtree(t,e)},styleElement:function(t){br.f(),br.styleElement(t)},styleDocument:function(t){br.f(),br.styleDocument(t)},getComputedStyleValue:function(t,e){return br.getComputedStyleValue(t,e)},nativeCss:Lo,nativeShadow:Mo},wr&&(window.ShadyCSS.ApplyShim=wr),Er&&(window.ShadyCSS.CustomStyleInterface=Er);var Nr=window.customElements,Cr=window.HTMLImports,Sr=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},Nr&&Nr.polyfillWrapFlushCallback){var Tr,Or=function(){if(Tr){Sr.V&&Sr.V(window.document);var t=Tr;return Tr=null,t(),!0}},xr=Cr.whenReady;Nr.polyfillWrapFlushCallback(function(t){Tr=t,xr(Or)}),Cr.whenReady=function(t){xr(function(){Or()?Cr.whenReady(t):t()})}}Cr.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var Ar=document.createElement("style");Ar.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Dr=document.querySelector("head");Dr.insertBefore(Ar,Dr.firstChild)}()}.call(this),function(){"use strict";function t(){t=function(){},a.Symbol||(a.Symbol=c)}function e(){t();var o=a.Symbol.iterator;o||(o=a.Symbol.iterator=a.Symbol("iterator")),"function"!=typeof Array.prototype[o]&&s(Array.prototype,o,{configurable:!0,writable:!0,value:function(){return n(this)}}),e=function(){}}function n(t){var e=0;return o(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(t){return e(),t={next:t},t[a.Symbol.iterator]=function(){return this},t}function r(t){e();var o=t[Symbol.iterator];return o?o.call(t):n(t)}function i(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var a="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,s="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},c=function(){var t=0;return function(e){return"jscomp_symbol_"+(e||"")+t++}}();!function(){function t(){var t=this;this.s={},this.g=document.documentElement;var e=new u;e.rules=[],this.h=c.set(this.g,new c(e)),this.i=!1,this.b=this.a=null,ve(function(){t.c()})}function e(){this.customStyles=[],this.enqueued=!1}function n(){}function o(t){this.cache={},this.c=void 0===t?100:t}function s(){}function c(t,e,n,o,r){this.G=t||null,this.b=e||null,this.va=n||[],this.S=null,this.$=r||"",this.a=this.C=this.M=null}function l(){}function u(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function h(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Xt(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.sa&&(o.before=n(e.sa)),void 0!==e.sa&&(o.after=n(e.kb)),void 0!==e.replaceWith&&Zt(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(a=Xt(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(a)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&Zt(o,"remove",function(){var n=Xt(this);e.remove.call(this),n&&t.a(this)})}function d(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&Xt(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Xt(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.fa&&(e.prepend=o(n.fa)),void 0!==n.append&&(e.append=o(n.append))}function p(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new y(t,document)}function f(){var t=this;this.b=this.a=void 0,this.c=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function y(t,e){this.b=t,this.a=e,this.P=void 0,this.b.f(this.a),"loading"===this.a.readyState&&(this.P=new MutationObserver(this.f.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function m(){this.u=new Map,this.s=new Map,this.j=[],this.h=!1}function v(t,e,n){if(t!==Pn)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=v.prototype,t.H(e,n),t}function _(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=rt(t),t.__shady.lastChild=it(t),On(t);for(var e,n=t.__shady.childNodes=ct(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,Tn(e)}}function g(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.da=new Set}function b(t,e){Oe[Ee]=t,Oe[Ee+1]=e,2===(Ee+=2)&&(be?be(N):xe())}function w(){return void 0!==ge?function(){ge(N)}:E()}function E(){var t=setTimeout;return function(){return t(N,1)}}function N(){for(var t=0;t<Ee;t+=2)(0,Oe[t])(Oe[t+1]),Oe[t]=void 0,Oe[t+1]=void 0;Ee=0}function C(t,e){var n=this,o=new this.constructor(T);void 0===o[Ae]&&W(o);var r=n.o;if(r){var i=arguments[r-1];b(function(){return I(r,o,i,n.m)})}else P(n,o,t,e);return o}function S(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(T);return L(e,t),e}function T(){}function O(t){try{return t.then}catch(t){return De.error=t,De}}function x(t,e,n,o){try{t.call(e,n,o)}catch(t){return t}}function A(t,e,n){b(function(t){var o=!1,r=x(n,e,function(n){o||(o=!0,e!==n?L(t,n):k(t,n))},function(e){o||(o=!0,R(t,e))});!o&&r&&(o=!0,R(t,r))},t)}function D(t,e){1===e.o?k(t,e.m):2===e.o?R(t,e.m):P(e,void 0,function(e){return L(t,e)},function(e){return R(t,e)})}function M(t,e,n){e.constructor===t.constructor&&n===C&&e.constructor.resolve===S?D(t,e):n===De?(R(t,De.error),De.error=null):void 0===n?k(t,e):"function"==typeof n?A(t,e,n):k(t,e)}function L(t,e){if(t===e)R(t,new TypeError("You cannot resolve a promise with itself"));else{var n=typeof e;null===e||"object"!==n&&"function"!==n?k(t,e):M(t,e,O(e))}}function j(t){t.Ea&&t.Ea(t.m),H(t)}function k(t,e){void 0===t.o&&(t.m=e,t.o=1,0!==t.U.length&&b(H,t))}function R(t,e){void 0===t.o&&(t.o=2,t.m=e,b(j,t))}function P(t,e,n,o){var r=t.U,i=r.length;t.Ea=null,r[i]=e,r[i+1]=n,r[i+2]=o,0===i&&t.o&&b(H,t)}function H(t){var e=t.U,n=t.o;if(0!==e.length){for(var o,r,i=t.m,a=0;a<e.length;a+=3)o=e[a],r=e[a+n],o?I(n,o,r,i):r(i);t.U.length=0}}function F(){this.error=null}function I(t,e,n,o){var r="function"==typeof n;if(r){try{var i=n(o)}catch(t){Me.error=t,i=Me}if(i===Me){var a=!0,s=i.error;i.error=null}else var c=!0;if(e===i)return void R(e,new TypeError("A promises callback cannot return that same promise."))}else i=o,c=!0;void 0===e.o&&(r&&c?L(e,i):a?R(e,s):1===t?k(e,i):2===t&&R(e,i))}function q(t,e){try{e(function(e){L(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}function W(t){t[Ae]=Le++,t.o=void 0,t.m=void 0,t.U=[]}function B(t,e){this.fb=t,this.L=new t(T),this.L[Ae]||W(this.L),we(e)?(this.aa=this.length=e.length,this.m=Array(this.length),0===this.length?k(this.L,this.m):(this.length=this.length||0,this.eb(e),0===this.aa&&k(this.L,this.m))):R(this.L,Error("Array Methods must be provided an Array"))}function V(t){if(this[Ae]=Le++,this.m=this.o=void 0,this.U=[],T!==t){if("function"!=typeof t)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof V))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");q(this,t)}}function U(t){return t.__shady&&void 0!==t.__shady.firstChild}function G(t){return"ShadyRoot"===t.Xa}function K(t){if(t=t.getRootNode(),G(t))return t}function $(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function Y(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)$(t,n[o]);return t}function X(t,e){for(var n in e)t[n]=e[n]}function z(t){$e.push(t),Ge.textContent=Ke++}function J(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function Z(t){Ye||(Ye=!0,z(Q)),ze.push(t)}function Q(){Ye=!1;for(var t=!!ze.length;ze.length;)ze.shift()();return t}function tt(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function et(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function nt(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,a=r.length;i<a&&(n=r[i]);i++){t:{var s=n,c=t,l=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,h="<"+u,d=s.attributes,p=0;c=d[p];p++)h+=" "+c.name+'="'+c.value.replace(dn,tt)+'"';h+=">",s=fn[u]?h:h+nt(s,l)+"</"+u+">";break t;case Node.TEXT_NODE:s=s.data,s=c&&yn[c.localName]?s:s.replace(pn,tt);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}o+=s}return o}function ot(t){return mn.currentNode=t,mn.parentNode()}function rt(t){return mn.currentNode=t,mn.firstChild()}function it(t){return mn.currentNode=t,mn.lastChild()}function at(t){return mn.currentNode=t,mn.previousSibling()}function st(t){return mn.currentNode=t,mn.nextSibling()}function ct(t){var e=[];for(mn.currentNode=t,t=mn.firstChild();t;)e.push(t),t=mn.nextSibling();return e}function lt(t){return vn.currentNode=t,vn.parentNode()}function ut(t){return vn.currentNode=t,vn.firstChild()}function ht(t){return vn.currentNode=t,vn.lastChild()}function dt(t){return vn.currentNode=t,vn.previousSibling()}function pt(t){return vn.currentNode=t,vn.nextSibling()}function ft(t){var e=[];for(vn.currentNode=t,t=vn.firstChild();t;)e.push(t),t=vn.nextSibling();return e}function yt(t){return nt(t,function(t){return ct(t)})}function mt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function vt(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function _t(t){vt(t,En),vt(t,Nn),vt(t,Sn)}function gt(t,e,n){Tn(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function bt(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=n.__shady&&n.__shady.parentNode;if(void 0!==o&&o!==t||void 0===o&&ot(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;e.parentNode&&wt(e.parentNode,e);var r;if(r=o=K(t))t:{if(!e.__noInsertionPoint){var i;if("slot"===e.localName?i=[e]:e.querySelectorAll&&(i=e.querySelectorAll("slot")),i&&i.length){r=i;break t}}r=void 0}if((i=r)&&o.ab(i),o&&("slot"===t.localName||i)&&o.O(),U(t)){if(o=n,On(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,r=0;r<i.length;r++)gt(i[r],t,o);e.__shady=e.__shady||{},o=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=o,e.__shady.childNodes=o}else gt(e,t,o);if(Ct(t)){t.__shady.root.O();var a=!0}else t.__shady.root&&(a=!0)}return a||(a=G(t)?t.host:t,n?(n=Nt(n),Ze.call(a,e,n)):Je.call(a,e)),Tt(t,e),e}function wt(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=K(e);if(U(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling);var o=e.__shady.previousSibling,r=e.__shady.nextSibling;if(o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=r),r&&(r.__shady=r.__shady||{},r.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),Ct(t)){t.__shady.root.O();var i=!0}}return Et(e),n&&((r=t&&"slot"===t.localName)&&(i=!0),((o=n.hb(e))||r)&&n.O()),i||(i=G(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||i===ot(e))&&Qe.call(i,e)),Tt(t,null,e),e}function Et(t){if(t.__shady&&void 0!==t.__shady.wa)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)Et(e);t.__shady&&(t.__shady.wa=void 0)}function Nt(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady&&t.__shady.W)&&e.length?e[0]:Nt(t.nextSibling)),e}function Ct(t){return(t=t&&t.__shady&&t.__shady.root)&&t.Da()}function St(t,e){"slot"===e?(t=t.parentNode,Ct(t)&&t.__shady.root.O()):"slot"===t.localName&&"name"===e&&(e=K(t))&&(e.jb(t),e.O())}function Tt(t,e,n){(t=t.__shady&&t.__shady.Y)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.vb())}function Ot(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.wa;return void 0===e&&(e=G(t)?t:(e=t.parentNode)?Ot(e):t,un.call(document.documentElement,t)&&(t.__shady.wa=e)),e}}function xt(t,e,n){var o=[];return At(t.childNodes,e,n,o),o}function At(t,e,n,o){for(var r,i=0,a=t.length;i<a&&(r=t[i]);i++){var s;if(s=r.nodeType===Node.ELEMENT_NODE){var c=e,l=n,u=o,h=c(s=r);h&&u.push(s),l&&l(h)?s=h:(At(s.childNodes,c,l,u),s=void 0)}if(s)break}}function Dt(t){G(t=t.getRootNode())&&t.Ga()}function Mt(t,e,n){xn||(xn=window.ShadyCSS&&window.ShadyCSS.ScopingShim),xn&&"class"===e?xn.setElementClass(t,n):(tn.call(t,e,n),St(t,e))}function Lt(t,e){if(t.ownerDocument!==document)return on.call(document,t,e);var n=on.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=Lt(t[e],!0),n.appendChild(o)}return n}function jt(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function kt(t,e){if(!G)return t;t=jt(t,!0);for(var n,o,r,i,a=0;a<e.length;a++)if(n=e[a],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!G(r)||-1<i)return n}function Rt(t){function e(e,n){return e=new t(e,n),e.la=n&&!!n.composed,e}return X(e,t),e.prototype=t.prototype,e}function Pt(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Va);r++);}function Ht(t){var e=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var n=e.length-1;0<=n;n--){var o=e[n];if(Pt(t,o,"capture"),t.ma)return}Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});var r;for(n=0;n<e.length;n++){var i=(o=e[n]).__shady&&o.__shady.root;if((0===n||i&&i===r)&&(Pt(t,o,"bubble"),o!==window&&(r=o.getRootNode()),t.ma))break}}function Ft(t,e,n,o,r,i){for(var a=0;a<t.length;a++){var s=t[a],c=s.type,l=s.capture,u=s.once,h=s.passive;if(e===s.node&&n===c&&o===l&&r===u&&i===h)return a}return-1}function It(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var a=n&&n.na||this,s=e[An];if(s){if(-1<Ft(s,a,t,o,r,i))return}else e[An]=[];s=function(o){if(r&&this.removeEventListener(t,e,n),o.__target||Wt(o),a!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return a},configurable:!0})}if(o.composed||-1<o.composedPath().indexOf(a))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===a){var s="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(a,o);return a!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),s}},e[An].push({node:this,type:t,capture:o,once:r,passive:i,zb:s}),Ln[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(s)):(this instanceof Window?sn:rn).call(this,t,s,n)}}function qt(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var a=n&&n.na||this,s=void 0,c=null;try{c=e[An]}catch(t){}c&&-1<(r=Ft(c,a,t,o,r,i))&&(s=c.splice(r,1)[0].zb,c.length||(e[An]=void 0)),(this instanceof Window?cn:an).call(this,t,s||e,n),s&&Ln[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(s=t.indexOf(s))&&t.splice(s,1))}}function Wt(t){if(t.__target=t.target,t.Ba=t.relatedTarget,We.X){var e=Mn,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.Bb=n,$(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else $(t,Mn)}function Bt(t,e){return{index:t,Z:[],ca:e}}function Vt(t,e,n,o){var r=0,i=0,a=0,s=0,c=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(a=0;a<c;a++)if(t[a]!==n[a])break t;a=c}if(e==t.length&&o==n.length){s=t.length;for(var l=n.length,u=0;u<c-a&&Ut(t[--s],n[--l]);)u++;s=u}if(r+=a,i+=a,e-=s,o-=s,0==e-r&&0==o-i)return[];if(r==e){for(e=Bt(r,0);i<o;)e.Z.push(n[i++]);return[e]}if(i==o)return[Bt(r,e-r)];for(o=o-(a=i)+1,s=e-(c=r)+1,e=Array(o),l=0;l<o;l++)e[l]=Array(s),e[l][0]=l;for(l=0;l<s;l++)e[0][l]=l;for(l=1;l<o;l++)for(u=1;u<s;u++)if(t[c+u-1]===n[a+l-1])e[l][u]=e[l-1][u-1];else{var h=e[l-1][u]+1,d=e[l][u-1]+1;e[l][u]=h<d?h:d}for(c=e.length-1,a=e[0].length-1,o=e[c][a],t=[];0<c||0<a;)0==c?(t.push(2),a--):0==a?(t.push(3),c--):(s=e[c-1][a-1],l=e[c-1][a],u=e[c][a-1],(h=l<u?l<s?l:s:u<s?u:s)==s?(s==o?t.push(0):(t.push(1),o=s),c--,a--):h==l?(t.push(3),c--,o=l):(t.push(2),a--,o=u));for(t.reverse(),e=void 0,c=[],a=0;a<t.length;a++)switch(t[a]){case 0:e&&(c.push(e),e=void 0),r++,i++;break;case 1:e||(e=Bt(r,0)),e.ca++,r++,e.Z.push(n[i]),i++;break;case 2:e||(e=Bt(r,0)),e.ca++,r++;break;case 3:e||(e=Bt(r,0)),e.Z.push(n[i]),i++}return e&&c.push(e),c}function Ut(t,e){return t===e}function Gt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function Kt(t){return Dt(t),t.__shady&&t.__shady.assignedSlot||null}function $t(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function Yt(t){var e=Kn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Xt(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function zt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Jt(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)Jt(o,e,n);o=zt(t,r);continue}if("template"===i){o=zt(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)Jt(r,e,n)}o=o.firstChild?o.firstChild:zt(t,o)}}function Zt(t,e,n){t[e]=n}function Qt(t){var e=te,n=t=t.replace(Do.mb,"").replace(Do.port,""),o=new u;o.start=0,o.end=n.length;for(var r=o,i=0,a=n.length;i<a;i++)if("{"===n[i]){r.rules||(r.rules=[]);var s=r,c=s.rules[s.rules.length-1]||null;(r=new u).start=i+1,r.parent=s,r.previous=c,s.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function te(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=ee(n),n=n.replace(Do.Ma," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Ao.MEDIA_RULE:n.match(Do.rb)&&(t.type=Ao.ka,t.keyframesName=t.selector.split(Do.Ma).pop()):t.type=0===n.indexOf("--")?Ao.xa:Ao.STYLE_RULE),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)te(o,e);return t}function ee(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function ne(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var a,s=i.length;r<s&&(a=i[r]);r++)o=ne(a,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(Do.Ha,"").replace(Do.La,""),e=e.replace(Do.sb,"").replace(Do.xb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function oe(t){Lo=(!t||!t.shimcssproperties)&&(Mo||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function re(t,e){return t?("string"==typeof t&&(t=Qt(t)),e&&se(t,e),ne(t,Lo)):""}function ie(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Qt(t.textContent)),t.__cssRules||null}function ae(t){return!!t.parent&&t.parent.type===Ao.ka}function se(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===Ao.MEDIA_RULE){var a=t.selector.match(Ho);a&&(window.matchMedia(a[1]).matches||(r=!0))}if(i===Ao.STYLE_RULE?e(t):n&&i===Ao.ka?n(t):i===Ao.xa&&(r=!0),(t=t.rules)&&!r){r=0,i=t.length;for(var s;r<i&&(s=t[r]);r++)se(s,e,n,o)}}}function ce(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,le(r,n,o),r}function le(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Io?t.compareDocumentPosition(Io)===Node.DOCUMENT_POSITION_PRECEDING&&(Io=t):Io=t}function ue(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");t:{for(var o=0,r=n+3,i=t.length;r<i;r++)if("("===t[r])o++;else if(")"===t[r]&&0==--o)break t;r=-1}return o=t.substring(n+4,r),n=t.substring(0,n),t=ue(t.substring(r+1),e),-1===(r=o.indexOf(","))?e(n,o.trim(),"",t):e(n,o.substring(0,r).trim(),o.substring(r+1).trim(),t)}function he(t,e){Mo?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function de(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,$:n}}function pe(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i=r.getRootNode(),a=r,s=[];if(a.classList?s=Array.from(a.classList):a instanceof window.SVGElement&&a.hasAttribute("class")&&(s=a.getAttribute("class").split(/\s+/)),a=s,s=a.indexOf(nr.a),(a=-1<s?a[s+1]:"")&&i===r.ownerDocument)nr.b(r,a,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(i=de(i).is,a===i)for(r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+nr.a+")"),i=0;i<r.length;i++)nr.h(r[i],a);else a&&nr.b(r,a,!0),nr.b(r,i)}}}}function fe(t){(t=pr[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function ye(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function me(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,fr.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function ve(t){requestAnimationFrame(function(){mr?mr(t):(yr||(yr=new Promise(function(t){dr=t}),"complete"===document.readyState?dr():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&dr()})),yr.then(function(){t&&t()}))})}!function(){if(!function(){var t=document.createEvent("Event");return t.initEvent("foo",!0,!0),t.preventDefault(),t.defaultPrevented}()){var t=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(t.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var e=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||e&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||e&&"function"!=typeof window.Event){var n=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},n)for(var o in n)window.Event[o]=n[o];window.Event.prototype=n.prototype}if(!window.MouseEvent||e&&"function"!=typeof window.MouseEvent){if(e=window.MouseEvent,window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},e)for(o in e)window.MouseEvent[o]=e[o];window.MouseEvent.prototype=e.prototype}Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t,e){for(var n,o=[].slice.call(arguments,1),r=0;r<o.length;r++)if(n=o[r])for(var i=t,a=n,s=Object.getOwnPropertyNames(a),c=0;c<s.length;c++)n=s[c],i[n]=a[n];return t})}(window.WebComponents),function(){function t(){}var e="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var t=Document.prototype.importNode;Document.prototype.importNode=function(){var e=t.apply(this,arguments);if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var n=this.createDocumentFragment();return n.appendChild(e),n}return e}}();var n=Node.prototype.cloneNode,o=Document.prototype.createElement,r=Document.prototype.importNode,i=function(){if(!e){var t=document.createElement("template"),n=document.createElement("template");return n.content.appendChild(document.createElement("div")),t.content.appendChild(n),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}();if(e){var a=document.implementation.createHTMLDocument("template"),s=!0,c=document.createElement("style");c.textContent="template{display:none;}";var l=document.head;l.insertBefore(c,l.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var u=!document.createElement("div").hasOwnProperty("innerHTML");t.R=function(e){if(!e.content){e.content=a.createDocumentFragment();for(var n;n=e.firstChild;)e.content.appendChild(n);if(u)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.a(this,e)},s)try{h(e),d(e)}catch(t){s=!1}t.V(e.content)}};var h=function(e){Object.defineProperty(e,"innerHTML",{get:function(){for(var t="",e=this.content.firstChild;e;e=e.nextSibling)t+=e.outerHTML||e.data.replace(p,f);return t},set:function(e){for(a.body.innerHTML=e,t.V(a);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;a.body.firstChild;)this.content.appendChild(a.body.firstChild)},configurable:!0})},d=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(a.body.innerHTML=t,t=document.createDocumentFragment();a.body.firstChild;)t.appendChild(a.body.firstChild);this.parentNode.replaceChild(t,this)},configurable:!0})};h(t.prototype),d(t.prototype),t.V=function(e){for(var n,o=0,r=(e=e.querySelectorAll("template")).length;o<r&&(n=e[o]);o++)t.R(n)},document.addEventListener("DOMContentLoaded",function(){t.V(document)}),Document.prototype.createElement=function(){var e=o.apply(this,arguments);return"template"===e.localName&&t.R(e),e};var p=/[&\u00A0<>]/g,f=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case" ":return"&nbsp;"}}}(e||i)&&(t.a=function(t,e){var o=n.call(t,!1);return this.R&&this.R(o),e&&(o.content.appendChild(n.call(t.content,!0)),this.ua(o.content,t.content)),o},t.prototype.cloneNode=function(e){return t.a(this,e)},t.ua=function(t,e){if(e.querySelectorAll){e=e.querySelectorAll("template");for(var n,o,r=0,i=(t=t.querySelectorAll("template")).length;r<i;r++)o=e[r],n=t[r],this.R&&this.R(o),n.parentNode.replaceChild(o.cloneNode(!0),n)}},Node.prototype.cloneNode=function(e){if(this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var o=this.ownerDocument.importNode(this,!0)}else o=n.call(this,e);return e&&t.ua(o,this),o},Document.prototype.importNode=function(e,n){if("template"===e.localName)return t.a(e,n);var o=r.call(this,e,n);return n&&t.ua(o,e),o},i&&(window.HTMLTemplateElement.prototype.cloneNode=function(e){return t.a(this,e)})),e&&(window.HTMLTemplateElement=t)}();var _e,ge,be,we=_e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},Ee=0,Ne="undefined"!=typeof window?window:void 0,Ce=Ne||{},Se=Ce.MutationObserver||Ce.WebKitMutationObserver,Te="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Oe=Array(1e3),xe="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?function(){return process.Ib(N)}:Se?function(){var t=0,e=new Se(N),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():Te?function(){var t=new MessageChannel;return t.port1.onmessage=N,function(){return t.port2.postMessage(0)}}():Ne||"function"!=typeof require?E():function(){try{var t=require("vertx");return ge=t.Kb||t.Jb,w()}catch(t){return E()}}(),Ae=Math.random().toString(36).substring(16),De=new F,Me=new F,Le=0;B.prototype.eb=function(t){for(var e=0;void 0===this.o&&e<t.length;e++)this.cb(t[e],e)},B.prototype.cb=function(t,e){var n=this.fb,o=n.resolve;o===S?(o=O(t))===C&&void 0!==t.o?this.qa(t.o,e,t.m):"function"!=typeof o?(this.aa--,this.m[e]=t):n===V?(n=new n(T),M(n,t,o),this.ra(n,e)):this.ra(new n(function(e){return e(t)}),e):this.ra(o(t),e)},B.prototype.qa=function(t,e,n){var o=this.L;void 0===o.o&&(this.aa--,2===t?R(o,n):this.m[e]=n),0===this.aa&&k(o,this.m)},B.prototype.ra=function(t,e){var n=this;P(t,void 0,function(t){return n.qa(1,e,t)},function(t){return n.qa(2,e,t)})},V.all=function(t){return new B(this,t).L},V.race=function(t){var e=this;return new e(we(t)?function(n,o){for(var r=t.length,i=0;i<r;i++)e.resolve(t[i]).then(n,o)}:function(t,e){return e(new TypeError("You must pass an array to race."))})},V.resolve=S,V.reject=function(t){var e=new this(T);return R(e,t),e},V.Gb=function(t){be=t},V.Fb=function(t){b=t},V.Cb=b,V.prototype={constructor:V,then:C,a:function(t){return this.then(null,t)}},window.Promise||(window.Promise=V,V.prototype.catch=V.prototype.a),function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!s(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){var e=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=e.length;n?l(e,function(e){return a(e,function(){0==--n&&t()})}):t()}function r(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function i(t){r(function(){return o(function(){return t&&t()})})}function a(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),v&&"style"===t.localName||t.addEventListener("error",n)}}function s(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function c(){var t=this;this.a={},this.b=0,this.f=new MutationObserver(function(e){return t.l(e)}),this.f.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function l(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var u="import"in document.createElement("link"),h=null;0=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return h||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(url\()([^)]*)(\))/g,p=/(@import[\s]+(?!url\())([^;]*)(;)/g,f=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,y={nb:function(t,e){if(t.href&&t.setAttribute("href",y.ga(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",y.ga(t.getAttribute("src"),e)),"style"===t.localName){var n=y.Na(t.textContent,e,d);t.textContent=y.Na(n,e,p)}},Na:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=y.ga(t,e)),n+"'"+t+"'"+r})},ga:function(t,e){if(void 0===y.oa){y.oa=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",y.oa="http://a/c%20d"===n.href}catch(t){}}return y.oa?new URL(t,e).href:((n=y.$a)||(n=document.implementation.createHTMLDocument("temp"),y.$a=n,n.za=n.createElement("base"),n.head.appendChild(n.za),n.ya=n.createElement("a")),n.za.href=e,n.ya.href=t,n.ya.href||t)}},m={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o),e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,m.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&0===t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(c.prototype.c=function(t){var e=this;l(t=t.querySelectorAll("link[rel=import]"),function(t){return e.h(t)})},c.prototype.h=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.import=o,this.g(t))}else this.b++,this.a[n]="pending",m.load(n,function(t,o){t=e.s(t,o||n),e.a[n]=t,e.b--,e.c(t),e.i()},function(){e.a[n]=null,e.b--,e.i()})},c.prototype.s=function(t,e){if(!t)return document.createDocumentFragment();v&&(t=t.replace(f,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=y.ga(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return l(n=t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){a(t),y.nb(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},c.prototype.i=function(){var t=this;if(!this.b){this.f.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.f.observe(document.head,{childList:!0,subtree:!0}),t.j()))};this.v(function(){n=!0,o()}),this.u(function(){e=!0,o()})}},c.prototype.flatten=function(t){var e=this;l(t=t.querySelectorAll("link[rel=import]"),function(t){var n=e.a[t.href];(t.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.import=t,e.flatten(n),t.appendChild(n))})},c.prototype.u=function(t){function e(r){if(r<o){var i=n[r],s=document.createElement("script");i.removeAttribute("import-dependency"),l(i.attributes,function(t){return s.setAttribute(t.name,t.value)}),h=s,i.parentNode.replaceChild(s,i),a(s,function(){h=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},c.prototype.v=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");l(e,function(e){if(a(e,function(){e.removeAttribute("import-dependency"),0==--o&&t()}),r&&e.parentNode!==document.head){var i=document.createElement(e.localName);for(i.__appliedElement=e,i.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(i,e.nextSibling),i=n(e);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(e,i),e.removeAttribute("type")}})}else t()},c.prototype.j=function(){var t=this;l(document.querySelectorAll("link[rel=import]"),function(e){return t.g(e)},!0)},c.prototype.g=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},c.prototype.l=function(t){var e=this;l(t,function(t){return l(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(s(t)?e.h(t):e.c(t))})})},u){var _=document.querySelectorAll("link[rel=import]");l(_,function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)}),_=function(t){s(t=t.target)&&(t.__loaded=!0)},document.addEventListener("load",_,!0),document.addEventListener("error",_,!0)}else{var g=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!g||g.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=s(this)?this:n(this);return t?t.href:g&&g.get?g.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new c})}i(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=i,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{}),window.WebComponents=window.WebComponents||{flags:{}};var je=document.querySelector('script[src*="webcomponents-lite.js"]'),ke=/wc-(.+)/,Re={};if(!Re.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(ke))&&(Re[e[1]]=t[1]||!0)}),je)for(var Pe,He=0;Pe=je.attributes[He];He++)"src"!==Pe.name&&(Re[Pe.name]=Pe.value||!0);if(Re.log&&Re.log.split){var Fe=Re.log.split(",");Re.log={},Fe.forEach(function(t){Re.log[t]=!0})}else Re.log={}}window.WebComponents.flags=Re;var Ie=Re.shadydom;Ie&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=Ie);var qe=Re.register||Re.ce;qe&&window.customElements&&(window.customElements.forcePolyfill=qe);var We=window.ShadyDOM||{};We.ob=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Be=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");We.X=!!(Be&&Be.configurable&&Be.get),We.Ka=We.force||!We.ob;var Ve=Element.prototype,Ue=Ve.matches||Ve.matchesSelector||Ve.mozMatchesSelector||Ve.msMatchesSelector||Ve.oMatchesSelector||Ve.webkitMatchesSelector,Ge=document.createTextNode(""),Ke=0,$e=[];new MutationObserver(function(){for(;$e.length;)try{$e.shift()()}catch(t){throw Ge.textContent=Ke++,t}}).observe(Ge,{characterData:!0});var Ye,Xe=!!document.contains,ze=[];Q.list=ze,g.prototype.vb=function(){var t=this;this.a||(this.a=!0,z(function(){t.b()}))},g.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.da.forEach(function(e){e(t)})}},g.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var Je=Element.prototype.appendChild,Ze=Element.prototype.insertBefore,Qe=Element.prototype.removeChild,tn=Element.prototype.setAttribute,en=Element.prototype.removeAttribute,nn=Element.prototype.cloneNode,on=Document.prototype.importNode,rn=Element.prototype.addEventListener,an=Element.prototype.removeEventListener,sn=Window.prototype.addEventListener,cn=Window.prototype.removeEventListener,ln=Element.prototype.dispatchEvent,un=Node.prototype.contains||HTMLElement.prototype.contains,hn=Object.freeze({appendChild:Je,insertBefore:Ze,removeChild:Qe,setAttribute:tn,removeAttribute:en,cloneNode:nn,importNode:on,addEventListener:rn,removeEventListener:an,Lb:sn,Mb:cn,dispatchEvent:ln,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll,contains:un}),dn=/[&\u00A0"]/g,pn=/[&\u00A0<>]/g,fn=et("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),yn=et("style script xmp iframe noembed noframes plaintext noscript".split(" ")),mn=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),vn=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),_n=Object.freeze({parentNode:ot,firstChild:rt,lastChild:it,previousSibling:at,nextSibling:st,childNodes:ct,parentElement:lt,firstElementChild:ut,lastElementChild:ht,previousElementSibling:dt,nextElementSibling:pt,children:ft,innerHTML:yt,textContent:mt}),gn=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),bn=document.implementation.createHTMLDocument("inert").createElement("div"),wn=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),En={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:lt(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:ot(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:st(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:at(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return pt(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return dt(this)},configurable:!0}},Nn={childNodes:{get:function(){if(U(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=ct(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:rt(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:it(this)},configurable:!0},textContent:{get:function(){if(U(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return mt(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return ut(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return ht(this)},configurable:!0},children:{get:function(){var t;return t=U(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):ft(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return U(this)?nt(t):yt(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(gn&&gn.set?gn.set.call(bn,t):bn.innerHTML=t;bn.firstChild;)e.appendChild(bn.firstChild)},configurable:!0}},Cn={shadowRoot:{get:function(){return this.__shady&&this.__shady.tb||null},configurable:!0}},Sn={activeElement:{get:function(){var t=wn&&wn.get?wn.get.call(document):We.X?void 0:document.activeElement;if(t&&t.nodeType){var e=!!G(this);if(this===document||e&&this.host!==t&&un.call(this.host,t)){for(e=K(t);e&&e!==this;)t=e.host,e=K(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},Tn=We.X?function(){}:function(t){t.__shady&&t.__shady.Ya||(t.__shady=t.__shady||{},t.__shady.Ya=!0,vt(t,En,!0))},On=We.X?function(){}:function(t){t.__shady&&t.__shady.Wa||(t.__shady=t.__shady||{},t.__shady.Wa=!0,vt(t,Nn,!0),vt(t,Cn,!0))},xn=null,An="__eventWrappers"+Date.now(),Dn={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Mn={get composed(){return!1!==this.isTrusted&&void 0===this.la&&(this.la=Dn[this.type]),this.la||!1},composedPath:function(){return this.Aa||(this.Aa=jt(this.__target,this.composed)),this.Aa},get target(){return kt(this.currentTarget,this.composedPath())},get relatedTarget(){return this.Ba?(this.Ca||(this.Ca=jt(this.Ba,!0)),kt(this.currentTarget,this.Ca)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ma=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ma=this.Va=!0}},Ln={focus:!0,blur:!0},jn=Rt(window.Event),kn=Rt(window.CustomEvent),Rn=Rt(window.MouseEvent),Pn={};v.prototype=Object.create(DocumentFragment.prototype),v.prototype.H=function(t,e){this.Xa="ShadyRoot",_(t),_(this),this.host=t,this.J=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.tb="closed"!==this.J?this:null,this.ba=!1,this.b=[],this.a={},this.c=[];for(var n=0,o=(e=ct(t)).length;n<o;n++)Qe.call(t,e[n])},v.prototype.O=function(){var t=this;this.ba||(this.ba=!0,Z(function(){return t.Ga()}))},v.prototype.N=function(){for(var t,e=this;e;)e.ba&&(t=e),e=e.ib();return t},v.prototype.ib=function(){var t=this.host.getRootNode();if(G(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.j(e))return t},v.prototype.Ga=function(){var t=this.N();t&&t._renderRoot()},v.prototype._renderRoot=function(){this.ba=!1,this.D(),this.v()},v.prototype.D=function(){this.f();for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.u(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.h(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.h(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.Da()&&n._renderRoot(),this.g(t.__shady.W,t.__shady.assignedNodes),n=t.__shady.Fa){for(var o=0;o<n.length;o++)n[o].__shady.pa=null;t.__shady.Fa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ta=!0)}t.__shady.ta&&(t.__shady.ta=!1,this.i(t))}},v.prototype.h=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.pa;t.__shady.pa=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ta=!0)},v.prototype.u=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.W=[],t.__shady.Fa=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.pa=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},v.prototype.g=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)if("slot"==n.localName){var r=n.__shady.assignedNodes;r&&r.length&&this.g(t,r)}else t.push(e[o])},v.prototype.i=function(t){ln.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.i(t.__shady.assignedSlot)},v.prototype.v=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.T(n===this?this.host:n,this.B(n))},v.prototype.B=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){var o=t[n];if(this.j(o)){o=o.__shady.W;for(var r=0;r<o.length;r++)e.push(o[r])}else e.push(o)}return e},v.prototype.j=function(t){return"slot"==t.localName},v.prototype.T=function(t,e){for(var n,o=ct(t),r=Vt(e,e.length,o,o.length),i=0,a=0;i<r.length&&(n=r[i]);i++){for(var s,c=0;c<n.Z.length&&(s=n.Z[c]);c++)ot(s)===t&&Qe.call(t,s),o.splice(n.index+a,1);a-=n.ca}for(i=0;i<r.length&&(n=r[i]);i++)for(a=o[n.index],c=n.index;c<n.index+n.ca;c++)s=e[c],Ze.call(t,s,a),o.splice(c,0,s)},v.prototype.ab=function(t){this.c.push.apply(this.c,[].concat(t instanceof Array?t:i(r(t))))},v.prototype.f=function(){this.c.length&&(this.I(this.c),this.c=[])},v.prototype.I=function(t){for(var e,n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},_(o),_(o.parentNode);var r=this.l(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.s(this.a[i])},v.prototype.l=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Za=e},v.prototype.s=function(t){return t.sort(function(t,e){t=Gt(t);for(var n=Gt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},v.prototype.hb=function(t){this.f();var e,n=this.a;for(e in n)for(var o=n[e],r=0;r<o.length;r++){var i=o[r];if(J(t,i)){o.splice(r,1);var a=this.b.indexOf(i);0<=a&&this.b.splice(a,1),r--,this.K(i),a=!0}}return a},v.prototype.jb=function(t){var e=t.Za,n=this.l(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.s(e))}},v.prototype.K=function(t){if(t=t.__shady.W)for(var e=0;e<t.length;e++){var n=t[e],o=ot(n);o&&Qe.call(o,n)}},v.prototype.Da=function(){return this.f(),!!this.b.length},v.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.na=this,this.host.addEventListener(t,e,n)},v.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.na=this,this.host.removeEventListener(t,e,n)},v.prototype.getElementById=function(t){return xt(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){vt(t,Nn,!0),vt(t,Sn,!0)}(v.prototype);var Hn={addEventListener:It.bind(window),removeEventListener:qt.bind(window)},Fn={addEventListener:It,removeEventListener:qt,appendChild:function(t){return bt(this,t)},insertBefore:function(t,e){return bt(this,t,e)},removeChild:function(t){return wt(this,t)},replaceChild:function(t,e){return bt(this,t,e),wt(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=nn.call(this,t);else if(e=nn.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return Ot(this)},contains:function(t){return J(this,t)},get isConnected(){var t=this.ownerDocument;if(Xe&&un.call(t,this)||t.documentElement&&un.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof v?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return Q(),ln.call(this,t)}},In={get assignedSlot(){return Kt(this)}},qn={querySelector:function(t){return xt(this,function(e){return Ue.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return xt(this,function(e){return Ue.call(e,t)})}},Wn={assignedNodes:function(t){if("slot"===this.localName)return Dt(this),this.__shady?(t&&t.flatten?this.__shady.W:this.__shady.assignedNodes)||[]:[]}},Bn=Y({setAttribute:function(t,e){Mt(this,t,e)},removeAttribute:function(t){en.call(this,t),St(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new v(Pn,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){Mt(this,"slot",t)},get assignedSlot(){return Kt(this)}},qn,Wn);Object.defineProperties(Bn,Cn);var Vn=Y({importNode:function(t,e){return Lt(t,e)},getElementById:function(t){return xt(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},qn);Object.defineProperties(Vn,{_activeElement:Sn.activeElement});var Un=HTMLElement.prototype.blur,Gn=Y({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():Un.call(this)}});We.Ka&&(window.ShadyDOM={inUse:We.Ka,patch:function(t){return t},isShadyRoot:G,enqueue:Z,flush:Q,settings:We,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.Y||(t.__shady.Y=new g),t.__shady.Y.da.add(e);var n=t.__shady.Y;return{bb:e,P:n,gb:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.P;e&&(e.da.delete(t.bb),e.da.size||(t.gb.__shady.Y=null))},nativeMethods:hn,nativeTree:_n},window.Event=jn,window.CustomEvent=kn,window.MouseEvent=Rn,function(){for(var t in Ln)window.addEventListener(t,function(t){t.__target||(Wt(t),Ht(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;$t(window.Node.prototype,Fn),$t(window.Window.prototype,Hn),$t(window.Text.prototype,In),$t(window.DocumentFragment.prototype,qn),$t(window.Element.prototype,Bn),$t(window.Document.prototype,Vn),window.HTMLSlotElement&&$t(window.HTMLSlotElement.prototype,Wn),$t(t.prototype,Gn),We.X&&(_t(window.Node.prototype),_t(window.Text.prototype),_t(window.DocumentFragment.prototype),_t(window.Element.prototype),_t(t.prototype),_t(window.Document.prototype),window.HTMLSlotElement&&_t(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=v);var Kn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));m.prototype.D=function(t,e){this.u.set(t,e),this.s.set(e.constructor,e)},m.prototype.c=function(t){return this.u.get(t)},m.prototype.B=function(t){return this.s.get(t)},m.prototype.v=function(t){this.h=!0,this.j.push(t)},m.prototype.l=function(t){var e=this;this.h&&Jt(t,function(t){return e.g(t)})},m.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},m.prototype.b=function(t){var e=[];for(Jt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},m.prototype.a=function(t){var e=[];for(Jt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},m.prototype.f=function(t,e){var n=this,o=(e=e||{}).yb||new Set,r=e.Oa||function(t){return n.i(t)},i=[];if(Jt(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{yb:i,Oa:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},m.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Xt(t)&&this.connectedCallback(t)}}},m.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},m.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},m.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},y.prototype.c=function(){this.P&&this.P.disconnect()},y.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.f(n[o])},f.prototype.resolve=function(t){if(this.a)throw Error("Already resolved.");this.a=t,this.b&&this.b(t)},p.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Yt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),a=o("disconnectedCallback"),s=o("adoptedCallback"),c=o("attributeChangedCallback"),l=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:a,adoptedCallback:s,attributeChangedCallback:c,observedAttributes:l,constructionStack:[]},this.a.D(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},p.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{Oa:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)this.a.i(i[a]);(r=this.h.get(r))&&r.resolve(void 0)}}},p.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},p.prototype.whenDefined=function(t){if(!Yt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.c:(e=new f,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.resolve(void 0),e.c)},p.prototype.l=function(t){this.i.c();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=p,p.prototype.define=p.prototype.define,p.prototype.get=p.prototype.get,p.prototype.whenDefined=p.prototype.whenDefined,p.prototype.polyfillWrapFlushCallback=p.prototype.l;var $n=window.Document.prototype.createElement,Yn=window.Document.prototype.createElementNS,Xn=window.Document.prototype.importNode,zn=window.Document.prototype.prepend,Jn=window.Document.prototype.append,Zn=window.DocumentFragment.prototype.prepend,Qn=window.DocumentFragment.prototype.append,to=window.Node.prototype.cloneNode,eo=window.Node.prototype.appendChild,no=window.Node.prototype.insertBefore,oo=window.Node.prototype.removeChild,ro=window.Node.prototype.replaceChild,io=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),ao=window.Element.prototype.attachShadow,so=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),co=window.Element.prototype.getAttribute,lo=window.Element.prototype.setAttribute,uo=window.Element.prototype.removeAttribute,ho=window.Element.prototype.getAttributeNS,po=window.Element.prototype.setAttributeNS,fo=window.Element.prototype.removeAttributeNS,yo=window.Element.prototype.insertAdjacentElement,mo=window.Element.prototype.prepend,vo=window.Element.prototype.append,_o=window.Element.prototype.before,go=window.Element.prototype.after,bo=window.Element.prototype.replaceWith,wo=window.Element.prototype.remove,Eo=window.HTMLElement,No=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Co=window.HTMLElement.prototype.insertAdjacentElement,So=new function(){},To=window.customElements;if(!To||To.forcePolyfill||"function"!=typeof To.define||"function"!=typeof To.get){var Oo=new m;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.B(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=$n.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===So)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=So,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=Eo.prototype,e}()}(Oo),function(t){Zt(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=$n.call(this,e),t.g(e),e}),Zt(Document.prototype,"importNode",function(e,n){return e=Xn.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),Zt(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=Yn.call(this,e,n),t.g(e),e}),d(t,Document.prototype,{fa:zn,append:Jn})}(Oo),d(Oo,DocumentFragment.prototype,{fa:Zn,append:Qn}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&Xt(this)){o=Array(i);for(var a=0;a<i;a++)o[a]=r[a]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}Zt(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=no.call(this,e,n),Xt(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Xt(e),n=no.call(this,e,n),o&&t.a(e),Xt(this)&&t.b(e),n}),Zt(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=eo.call(this,e),Xt(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Xt(e),o=eo.call(this,e),n&&t.a(e),Xt(this)&&t.b(e),o}),Zt(Node.prototype,"cloneNode",function(e){return e=to.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),Zt(Node.prototype,"removeChild",function(e){var n=Xt(e),o=oo.call(this,e);return n&&t.a(e),o}),Zt(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=ro.call(this,e,n),Xt(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=Xt(e);var r=ro.call(this,e,n),i=Xt(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),io&&io.get?e(Node.prototype,io):t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)oo.call(this,this.firstChild);eo.call(this,document.createTextNode(t))}})})}(Oo),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Xt(this)&&(r=[],Jt(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var a=r[i];1===a.__CE_state&&t.disconnectedCallback(a)}return this.ownerDocument.__CE_hasRegistry?t.f(this):t.l(this),e}})}function n(e,n){Zt(e,"insertAdjacentElement",function(e,o){var r=Xt(o);return e=n.call(this,e,o),r&&t.a(o),Xt(e)&&t.b(o),e})}if(ao&&Zt(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=ao.call(this,t)}),so&&so.get)e(Element.prototype,so);else if(No&&No.get)e(HTMLElement.prototype,No);else{var o=$n.call(document,"div");t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return to.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)oo.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)eo.call(e,o.childNodes[0])}})})}Zt(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return lo.call(this,e,n);var o=co.call(this,e);lo.call(this,e,n),n=co.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Zt(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return po.call(this,e,n,o);var r=ho.call(this,e,n);po.call(this,e,n,o),o=ho.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Zt(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return uo.call(this,e);var n=co.call(this,e);uo.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Zt(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return fo.call(this,e,n);var o=ho.call(this,e,n);fo.call(this,e,n);var r=ho.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),Co?n(HTMLElement.prototype,Co):yo?n(Element.prototype,yo):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),d(t,Element.prototype,{fa:mo,append:vo}),h(t,{sa:_o,kb:go,replaceWith:bo,remove:wo})}(Oo),document.__CE_hasRegistry=!0;var xo=new p(Oo);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:xo})}var Ao={STYLE_RULE:1,ka:7,MEDIA_RULE:4,xa:1e3},Do={mb:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,Ha:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,La:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,sb:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,xb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,rb:/^@[^\s]*keyframes/,Ma:/\s+/g},Mo=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var Lo=window.ShadyCSS.nativeCss;else window.ShadyCSS?(oe(window.ShadyCSS),window.ShadyCSS=void 0):oe(window.WebComponents&&window.WebComponents.flags);var jo=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ko=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Ro=/(--[\w-]+)\s*([:,;)]|$)/gi,Po=/(animation\s*:)|(animation-name\s*:)/,Ho=/@media\s(.*)/,Fo=/\{[^}]*\}/g,Io=null;l.prototype.b=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.j(t,e||"",n)},l.prototype.j=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.h(t,e,n),t="template"===t.localName?(t.content||t.Db).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.j(t[o],e,n)},l.prototype.h=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(tr);n?o&&(e=o.replace("style-scope","").replace(e,""),he(t,e)):he(t,(o?o+" ":"")+"style-scope "+e)}},l.prototype.c=function(t,e,n){var o=t.__cssBuild;return Mo||"shady"===o?e=re(e,n):(t=de(t),e=this.I(e,t.is,t.$,n)+"\n\n"),e.trim()},l.prototype.I=function(t,e,n,o){var r=this.f(e,n);e=this.i(e);var i=this;return re(t,function(t){t.c||(i.K(t,e,r),t.c=!0),o&&o(t,e,r)})},l.prototype.i=function(t){return t?Zo+t:""},l.prototype.f=function(t,e){return e?"[is="+t+"]":t},l.prototype.K=function(t,e,n){this.l(t,this.g,e,n)},l.prototype.l=function(t,e,n,o){t.selector=t.A=this.s(t,e,n,o)},l.prototype.s=function(t,e,n,o){var r=t.selector.split(Bo);if(!ae(t)){t=0;for(var i,a=r.length;t<a&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(Bo)},l.prototype.v=function(t){return t.replace(qo,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})},l.prototype.g=function(t,e,n){var o=this,r=!1;t=t.trim();var i=qo.test(t);return i&&(t=t.replace(qo,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=this.v(t)),t=t.replace(Yo,Go+" $1"),t=t.replace(Vo,function(t,i,a){return r||(t=o.D(a,i,e,n),r=r||t.stop,i=t.lb,a=t.value),i+a}),i&&(t=this.v(t)),t},l.prototype.D=function(t,e,n,o){var r=t.indexOf($o);if(0<=t.indexOf(Go)?t=this.H(t,o):0!==r&&(t=n?this.u(t,n):t),n=!1,0<=r&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(zo,function(t,e){return" > "+e}))}return t=t.replace(Jo,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,lb:e,stop:i}},l.prototype.u=function(t,e){return t=t.split(Qo),t[0]+=e,t.join(Qo)},l.prototype.H=function(t,e){var n=t.match(Xo);return(n=n&&n[2].trim()||"")?n[0].match(Uo)?t.replace(Xo,function(t,n,o){return e+o}):n.split(Uo)[0]===e?n:er:t.replace(Go,e)},l.prototype.J=function(t){t.selector=t.parsedSelector,this.B(t),this.l(t,this.N)},l.prototype.B=function(t){t.selector===Ko&&(t.selector="html")},l.prototype.N=function(t){return t.match($o)?this.g(t,Wo):this.u(t.trim(),Wo)},a.Object.defineProperties(l.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var qo=/:(nth[-\w]+)\(([^)]+)\)/,Wo=":not(.style-scope)",Bo=",",Vo=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Uo=/[[.:#*]/,Go=":host",Ko=":root",$o="::slotted",Yo=new RegExp("^("+$o+")"),Xo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,zo=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Jo=/(.*):dir\((?:(ltr|rtl))\)/,Zo=".",Qo=":",tr="class",er="should_not_match",nr=new l;c.get=function(t){return t?t.__styleInfo:null},c.set=function(t,e){return t.__styleInfo=e},c.prototype.c=function(){return this.G},c.prototype._getStyleRules=c.prototype.c;var or=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),rr=navigator.userAgent.match("Trident");s.prototype.J=function(t){var e=this,n={},o=[],r=0;se(t,function(t){e.c(t),t.index=r++,e.I(t.w.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},s.prototype.c=function(t){if(!t.w){var e={},n={};this.b(t,n)&&(e.F=n,t.rules=null),e.cssText=this.H(t),t.w=e}},s.prototype.b=function(t,e){var n=t.w;if(!n){n=t.parsedCssText;for(var o;t=jo.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.F)return Object.assign(e,n.F),!0},s.prototype.H=function(t){return this.N(t.parsedCssText)},s.prototype.N=function(t){return t.replace(Fo,"").replace(jo,"")},s.prototype.I=function(t,e){for(var n;n=Ro.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},s.prototype.ha=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},s.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=ue(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},s.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(ko.lastIndex=0,o=ko.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=n.substring(o);i=i.trim(),i=this.a(i,e)||i,n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},s.prototype.D=function(t,e){var n="";t.w||this.c(t),t.w.cssText&&(n=this.f(t.w.cssText,e)),t.cssText=n},s.prototype.B=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.Ja&&(t.Ja=Po.test(n)),t.Ja)if(null==t.ea){t.ea=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.ea.push(r))}else{for(r=0;r<t.ea.length;++r)o=e[t.ea[r]],n=o(n);o=n}t.cssText=o},s.prototype.T=function(t,e){var n={},o=this,r=[];return se(t,function(t){t.w||o.c(t);var i=t.A||t.parsedSelector;e&&t.w.F&&i&&or.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{F:n,key:r}},s.prototype.ja=function(t,e,n,o){if(e.w||this.c(e),e.w.F){var r=de(t);t=r.is,r=r.$,r=t?nr.f(t,r):"html";var i=e.parsedSelector,a=":host > *"===i||"html"===i,s=0===i.indexOf(":host")&&!a;"shady"===n&&(a=i===r+" > *."+r||-1!==i.indexOf("html"),s=!a&&0===i.indexOf(r)),"shadow"===n&&(a=":host > *"===i||"html"===i,s=s&&!a),(a||s)&&(n=r,s&&(Mo&&!e.A&&(e.A=nr.s(e,nr.g,nr.i(t),r)),n=e.A||r),o({wb:n,qb:s,Hb:a}))}},s.prototype.K=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return se(e,function(e){r.ja(t,e,i,function(i){or.call(t.Eb||t,i.wb)&&(i.qb?r.b(e,n):r.b(e,o))})},null,!0),{ub:o,pb:n}},s.prototype.ia=function(t,e,n){var o=this,r=de(t),i=nr.f(r.is,r.$),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])");r=c.get(t).G;var s=this.h(r,n);return nr.c(t,r,function(t){o.D(t,e),Mo||ae(t)||!t.cssText||(o.B(t,s),o.l(t,a,i,n))})},s.prototype.h=function(t,e){t=t.b;var n={};if(!Mo&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},s.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},s.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.A=t.A||t.selector,t.selector=t.A.replace(t.keyframesName,t.a)},s.prototype.l=function(t,e,n,o){t.A=t.A||t.selector,o="."+o;for(var r,i=t.A.split(","),a=0,s=i.length;a<s&&(r=i[a]);a++)i[a]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},s.prototype.u=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&he(t,r)},s.prototype.v=function(t,e,n,o){e=o?o.textContent||"":this.ia(t,e,n);var r=c.get(t),i=r.a;return i&&!Mo&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),Mo?r.a?(r.a.textContent=e,o=r.a):e&&(o=ce(e,n,t.shadowRoot,r.b)):o?o.parentNode||(rr&&-1<e.indexOf("@media")&&(o.textContent=e),le(o,null,r.b)):e&&(o=ce(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},s.prototype.s=function(t,e){var n=ie(t),o=this;t.textContent=re(n,function(t){var n=t.cssText=t.parsedCssText;t.w&&t.w.cssText&&(n=n.replace(Do.Ha,"").replace(Do.La,""),t.cssText=o.f(n,e))})},a.Object.defineProperties(s.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var ir=new s,ar={},sr=window.customElements;if(sr&&!Mo){var cr=sr.define;sr.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Io?Io.nextSibling:null)||r.firstChild),Io=o,ar[t]=o,cr.call(sr,t,e,n)}}if(o.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.F[r]!==e[r])return!1}return!0},o.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({F:e,styleElement:n,C:o}),r.length>this.c&&r.shift(),this.cache[t]=r},o.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!Mo){var lr=new MutationObserver(pe),ur=function(t){lr.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)ur(document);else{var hr=function(){ur(document.body)};window.HTMLImports?window.HTMLImports.whenReady(hr):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){hr(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else hr()})}n=function(){pe(lr.takeRecords())}}var dr,pr={},fr=Promise.resolve(),yr=null,mr=window.HTMLImports&&window.HTMLImports.whenReady||null,vr=null,_r=null;e.prototype.Ia=function(){!this.enqueued&&_r&&(this.enqueued=!0,ve(_r))},e.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.Ia())},e.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},e.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,vr&&vr(o),n.__shadyCSSCachedStyle=o)}}return t},e.prototype.addCustomStyle=e.prototype.b,e.prototype.getStyleForCustomStyle=e.prototype.a,e.prototype.processStyles=e.prototype.c,Object.defineProperties(e.prototype,{transformCallback:{get:function(){return vr},set:function(t){vr=t}},validateCallback:{get:function(){return _r},set:function(t){var e=!1;_r||(e=!0),_r=t,e&&this.Ia()}}});var gr=new o;t.prototype.B=function(){n()},t.prototype.K=function(t){return t+"-"+(this.s[t]=(this.s[t]||0)+1)},t.prototype.Sa=function(t){return ie(t)},t.prototype.Ua=function(t){return re(t)},t.prototype.J=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},t.prototype.ha=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},t.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,pr[e]=t;var o=this.ha(t),r=this.J(t);n={is:e,extends:n,Ab:o},Mo||nr.b(t.content,e),this.c();var i=ko.test(r)||jo.test(r);ko.lastIndex=0,jo.lastIndex=0,r=Qt(r),i&&Lo&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],Lo||(o=ir.J(t._styleAst)),o.length&&!Lo||(e=this.T(n,t._styleAst,Mo?t.content:null,ar[e]),t.a=e),t.c=o}},t.prototype.T=function(t,e,n,o){if((e=nr.c(t,e)).length)return ce(e,t.is,n,o)},t.prototype.ja=function(t){var e=de(t),n=e.is;e=e.$;var o=ar[n];if(n=pr[n])var r=n._styleAst,i=n.c;return c.set(t,new c(r,o,i,0,e))},t.prototype.H=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=fe)},t.prototype.I=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.v(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},t.prototype.c=function(){this.H(),this.I()},t.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(Lo?this.Qa(t):(this.u(this.g,this.h),this.D(t)),this.b.enqueued=!1,this.i&&!Lo&&this.styleDocument())}},t.prototype.styleElement=function(t,e){var n=de(t).is,o=c.get(t);if(o||(o=this.ja(t)),this.j(t)||(this.i=!0),e&&(o.S=o.S||{},Object.assign(o.S,e)),Lo){if(o.S){e=o.S;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=pr[n])||this.j(t))&&r&&r.a&&!ye(r)&&((ye(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=nr.c(t,o.G),me(r)),Mo&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=nr.c(t,o.G)),o.G=r._styleAst)}else this.u(t,o),o.va&&o.va.length&&this.N(t,o)},t.prototype.l=function(t){return(t=t.getRootNode().host)?c.get(t)?t:this.l(t):this.g},t.prototype.j=function(t){return t===this.g},t.prototype.N=function(t,e){var n=de(t).is,o=gr.fetch(n,e.M,e.va),r=o?o.styleElement:null,i=e.C;e.C=o&&o.C||this.K(n),r=ir.v(t,e.M,e.C,r),Mo||ir.u(t,e.C,i),o||gr.b(n,e.M,r,e.C)},t.prototype.u=function(t,e){var n=this.l(t),o=c.get(n);n=Object.create(o.M||null);var r=ir.K(t,e.G);t=ir.T(o.G,t).F,Object.assign(n,r.pb,t,r.ub),this.ia(n,e.S),ir.ha(n),e.M=n},t.prototype.ia=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},t.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},t.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},t.prototype.Qa=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.Pa(n)}},t.prototype.D=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&ir.s(n,this.h.M)}},t.prototype.v=function(t){var e=this,n=ie(t);se(n,function(t){Mo?nr.B(t):nr.J(t),Lo&&(e.c(),e.a&&e.a.transformRule(t))}),Lo?t.textContent=re(n):this.h.G.rules.push(n)},t.prototype.Pa=function(t){if(Lo&&this.a){var e=ie(t);this.c(),this.a.transformRules(e),t.textContent=re(e)}},t.prototype.getComputedStyleValue=function(t,e){var n;return Lo||(n=(c.get(t)||c.get(this.l(t))).M[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.prototype.Ta=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var o=t.getAttribute("class");if(o){o=o.split(/\s/);for(var r=0;r<o.length;r++)if(o[r]===nr.a){n=o[r+1];break}}}n&&e.push(nr.a,n),Lo||(n=c.get(t))&&n.C&&e.push(ir.g,n.C),he(t,e.join(" "))},t.prototype.Ra=function(t){return c.get(t)},t.prototype.flush=t.prototype.B,t.prototype.prepareTemplate=t.prototype.prepareTemplate,t.prototype.styleElement=t.prototype.styleElement,t.prototype.styleDocument=t.prototype.styleDocument,t.prototype.styleSubtree=t.prototype.styleSubtree,t.prototype.getComputedStyleValue=t.prototype.getComputedStyleValue,t.prototype.setElementClass=t.prototype.Ta,t.prototype._styleInfoForNode=t.prototype.Ra,t.prototype.transformCustomStyleForDocument=t.prototype.v,t.prototype.getStyleAst=t.prototype.Sa,t.prototype.styleAstToString=t.prototype.Ua,t.prototype.flushCustomStyles=t.prototype.f,Object.defineProperties(t.prototype,{nativeShadow:{get:function(){return Mo}},nativeCss:{get:function(){return Lo}}});var br=new t;if(window.ShadyCSS)var wr=window.ShadyCSS.ApplyShim,Er=window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={ScopingShim:br,prepareTemplate:function(t,e,n){br.f(),br.prepareTemplate(t,e,n)},styleSubtree:function(t,e){br.f(),br.styleSubtree(t,e)},styleElement:function(t){br.f(),br.styleElement(t)},styleDocument:function(t){br.f(),br.styleDocument(t)},getComputedStyleValue:function(t,e){return br.getComputedStyleValue(t,e)},nativeCss:Lo,nativeShadow:Mo},wr&&(window.ShadyCSS.ApplyShim=wr),Er&&(window.ShadyCSS.CustomStyleInterface=Er);var Nr=window.customElements,Cr=window.HTMLImports,Sr=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},Nr&&Nr.polyfillWrapFlushCallback){var Tr,Or=function(){if(Tr){Sr.V&&Sr.V(window.document);var t=Tr;return Tr=null,t(),!0}},xr=Cr.whenReady;Nr.polyfillWrapFlushCallback(function(t){Tr=t,xr(Or)}),Cr.whenReady=function(t){xr(function(){Or()?Cr.whenReady(t):t()})}}Cr.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var Ar=document.createElement("style");Ar.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Dr=document.querySelector("head");Dr.insertBefore(Ar,Dr.firstChild)}()}.call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in searchtools.min.js

CWE-79
File Location: media/system/js/searchtools.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){"use strict";var t=function(t,e){this.element=t,this.options=Joomla.extend({formSelector:".js-stools-form",searchFieldSelector:".js-stools-field-search",clearBtnSelector:".js-stools-btn-clear",mainContainerSelector:".js-stools",searchBtnSelector:".js-stools-btn-search",filterBtnSelector:".js-stools-btn-filter",filterContainerSelector:".js-stools-container-filters",filtersHidden:!0,listBtnSelector:".js-stools-btn-list",listContainerSelector:".js-stools-container-list",listHidden:!0,orderColumnSelector:".js-stools-column-order",orderBtnSelector:".js-stools-btn-order",orderFieldSelector:".js-stools-field-order",orderFieldName:"list[fullordering]",limitFieldSelector:".js-stools-field-limit",defaultLimit:20,activeOrder:null,activeDirection:"ASC",clearListOptions:!1},e),this.theForm=document.querySelector(this.options.formSelector),this.filterButton=document.querySelector(this.options.formSelector+" "+this.options.filterBtnSelector),this.filterContainer=document.querySelector(this.options.formSelector+" "+this.options.filterContainerSelector)?document.querySelector(this.options.formSelector+" "+this.options.filterContainerSelector):"",this.filtersHidden=this.options.filtersHidden,this.listButton=document.querySelector(this.options.listBtnSelector),this.listContainer=document.querySelector(this.options.formSelector+" "+this.options.listContainerSelector),this.listHidden=this.options.listHidden,this.mainContainer=document.querySelector(this.options.mainContainerSelector),this.searchButton=document.querySelector(this.options.formSelector+" "+this.options.searchBtnSelector),this.searchField=document.querySelector(this.options.formSelector+" "+this.options.searchFieldSelector),this.searchString=null,this.clearButton=document.querySelector(this.options.clearBtnSelector),this.orderCols=Array.prototype.slice.call(document.querySelectorAll(this.options.formSelector+" "+this.options.orderColumnSelector)),this.orderField=document.querySelector(this.options.formSelector+" "+this.options.orderFieldSelector),this.limitField=document.querySelector(this.options.formSelector+" "+this.options.limitFieldSelector),this.activeColumn=null,this.activeDirection=this.options.activeDirection,this.activeOrder=this.options.activeOrder,this.activeLimit=null,this.clearListOptions=this.options.clearListOptions,this.init()};t.prototype={init:function(){var t=this;document.addEventListener||this.searchField.value===this.searchField.getAttribute("placeholder")&&(this.searchField.value=""),this.searchString=this.searchField.value,this.filterContainer&&this.filterContainer.classList.contains("js-stools-container-filters-visible")?(this.showFilters(),this.showList()):(this.hideFilters(),this.hideList()),t.filterButton&&t.filterButton.addEventListener("click",function(e){t.toggleFilters(),e.stopPropagation(),e.preventDefault()}),t.listButton&&t.listButton.addEventListener("click",function(e){t.toggleList(),e.stopPropagation(),e.preventDefault()}),t.getFilterFields()&&t.getFilterFields().forEach(function(e){t.checkFilter(e),e.addEventListener("change",function(){t.checkFilter(e)})}),t.clearButton&&t.clearButton.addEventListener("click",function(){t.clear()}),this.createOrderField(),t.orderCols.forEach(function(e){e.addEventListener("click",function(){var e=this.getAttribute("data-order"),i=this.getAttribute("data-direction"),r=e+" "+i;e.length&&(t.activeColumn=e,r!==t.activeOrder?(t.activeDirection=i,t.activeOrder=r,t.updateFieldValue(t.orderField,r)):t.toggleDirection(),t.theForm.submit())})}),t.checkActiveStatus(t),document.body.addEventListener("click",function(e){document.body.classList.contains("filters-shown")&&t.hideFilters()}),t.filterContainer.addEventListener("click",function(t){t.stopPropagation()},!0)},checkFilter:function(t){var e=this;""!==t.querySelector("option:checked").value?e.activeFilter(t,e):e.deactiveFilter(t,e)},clear:function(){var t=this;t.getFilterFields()&&t.getFilterFields().forEach(function(e){e.value="",t.checkFilter(e),window.jQuery&&jQuery.chosen&&jQuery(e).trigger("liszt:updated")}),t.clearListOptions&&(t.getListFields().forEach(function(e){e.value="",t.checkFilter(e),window.jQuery&&jQuery.chosen&&jQuery(e).trigger("liszt:updated")}),document.querySelector("#list_limit").value=t.options.defaultLimit,window.jQuery&&jQuery.chosen&&jQuery("#list_limit").trigger("liszt:updated")),t.theForm.submit()},checkActiveStatus:function(t){var e=t.mainContainer;[].slice.call(e.querySelectorAll(".js-stools-field-filter select")).forEach(function(e){if(e.classList.contains("active"))return t.filterButton.classList.remove("btn-secondary"),t.filterButton.classList.add("btn-primary"),""})},activeFilter:function(t,e){t.classList.add("active");var i="#"+t.getAttribute("id"),r=t.querySelector(i);r&&r.classList.add("active")},deactiveFilter:function(t,e){t.classList.remove("active");var i="#"+t.getAttribute("id"),r=t.querySelector(i);r&&r.classList.remove("active")},getFilterFields:function(){if(this.filterContainer)return Array.prototype.slice.call(this.filterContainer.querySelectorAll("select,input"))},getListFields:function(){return Array.prototype.slice.call(this.listContainer.querySelectorAll("select"))},hideContainer:function(t){t&&(t.classList.remove("js-filters-show"),document.body.classList.remove("filters-shown"))},showContainer:function(t){t.classList.add("js-filters-show"),document.body.classList.add("filters-shown")},toggleContainer:function(t){t.classList.contains("js-filters-show")?this.hideContainer(t):this.showContainer(t)},hideList:function(){this.hideContainer(this.filterContainer)},showList:function(){this.showContainer(this.filterContainer)},toggleList:function(){this.toggleContainer(this.filterContainer)},hideFilters:function(){this.hideContainer(this.filterContainer)},showFilters:function(){this.showContainer(this.filterContainer)},toggleFilters:function(){this.toggleContainer(this.filterContainer)},toggleDirection:function(){var t="ASC";"ASC"==this.activeDirection.toUpperCase()&&(t="DESC"),this.activeDirection=t,this.activeOrder=this.activeColumn+" "+t,this.updateFieldValue(this.orderField,this.activeOrder)},createOrderField:function(){var t=this;if(this.orderField.length||(this.orderField=createElement("<input>"),this.orderField.setAttribute("type","hidden"),this.orderField.setAttribute("id","js-stools-field-order"),this.orderField.setAttribute("class","js-stools-field-order"),this.orderField.setAttribute("name",t.options.orderFieldName),this.orderField.setAttribute("value",t.activeOrder+" "+this.activeDirection),this.theForm.innerHTML+=this.orderField),"select"==this.orderField.tagName.toLowerCase()){for(var e=this.orderField.options,i=0,r=e.length;r>i;i++){var o=e[i].getAttribute("data-order"),s=e[i].getAttribute("data-name"),n=e[i].getAttribute("data-direction");if(o&&o.length){o=o+" "+n;l=t.findOption(t.orderField,o);if(!l.length){var l;(l=document.createElement("option")).text=s,l.value=o,e[i].classList.contains("active")&&l.setAttribute("selected","selected"),t.orderFieldName.innerHTML+=l}}}window.jQuery&&jQuery.chosen&&jQuery(this.orderField).trigger("liszt:updated")}this.activeOrder=this.orderField.value},updateFieldValue:function(t,e){var i=t.getAttribute("type");if("hidden"===i||"text"===i)t.setAttribute("value",e);else if("select"===t.tagName.toLowerCase()){for(var r=t.options,o=0,s=r.length;s>o;o++)if(r[o].value==e)var n=r[o];if(n&&n.length)n.setAttribute("selected","selected");else{var l=document.createElement("option");l.text=name,l.value=e,l.setAttribute("selected","selected"),t.appendChild(l)}t.value=e,window.jQuery&&jQuery.chosen&&t.trigger("liszt:updated")}},findOption:function(t,e){for(var i=0,r=t.length;r>i;i++)if(t[i].value==e)return t[i]}},document.addEventListener("DOMContentLoaded",function(){if(Joomla.getOptions("searchtools")){var e=Joomla.getOptions("searchtools"),i=document.querySelector(e.selector);new t(i,e)}})}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L222

Insecure DOM Manipulation (XSS) in joomla-field-media.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-media.js:222
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2

Insecure DOM Manipulation (XSS) in awesomplete.min.js

CWE-79
File Location: media/vendor/awesomplete/js/awesomplete.min.js:2
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){function t(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}function e(t,e,i){for(var n in e){var s=e[n],r=t.input.getAttribute("data-"+n.toLowerCase());"number"==typeof s?t[n]=parseInt(r):!1===s?t[n]=null!==r:s instanceof Function?t[n]=null:t[n]=r,t[n]||0===t[n]||(t[n]=n in i?i[n]:s)}}function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function n(t,e){return o.call((e||document).querySelectorAll(t))}function s(){n("input.awesomplete").forEach(function(t){new r(t)})}var r=function(t,n){var s=this;this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),n=n||{},e(this,{minChars:2,maxItems:10,autoFirst:!1,data:r.DATA,filter:r.FILTER_CONTAINS,sort:!1!==n.sort&&r.SORT_BYLENGTH,item:r.ITEM,replace:r.REPLACE},n),this.index=-1,this.container=i.create("div",{className:"awesomplete",around:t}),this.ul=i.create("ul",{hidden:"hidden",inside:this.container}),this.status=i.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-relevant":"additions",inside:this.container}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;s.opened&&(13===e&&s.selected?(t.preventDefault(),s.select()):27===e?s.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),s[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),s.select(e,t.target))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||n.list||[],r.all.push(this)};r.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=i(t))&&t.children){var e=[];o.apply(t.children).forEach(function(t){if(!t.disabled){var i=t.textContent.trim(),n=t.value||i,s=t.label||i;""!==n&&e.push({label:s,value:n})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form);var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container),this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var e=r.all.indexOf(this);-1!==e&&r.all.splice(e,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var n=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:n,origin:e||t})&&(this.replace(n),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:n}))}},evaluate:function(){var e=this,i=this.input.value;i.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(n){return new t(e.data(n,i))}).filter(function(t){return e.filter(t,i)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(t){e.ul.appendChild(e.item(t,i))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},r.all=[],r.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},r.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},r.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},r.ITEM=function(t,e){return i.create("li",{innerHTML:""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>"),"aria-selected":"false"})},r.REPLACE=function(t){this.input.value=t.value},r.DATA=function(t){return t},Object.defineProperty(t.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),t.prototype.toString=t.prototype.valueOf=function(){return""+this.label};var o=Array.prototype.slice;i.create=function(t,e){var n=document.createElement(t);for(var s in e){var r=e[s];if("inside"===s)i(r).appendChild(n);else if("around"===s){var o=i(r);o.parentNode.insertBefore(n,o),n.appendChild(o)}else s in n?n[s]=r:n.setAttribute(s,r)}return n},i.bind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.addEventListener(e,n)})}},i.unbind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.removeEventListener(e,n)})}},i.fire=function(t,e,i){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0);for(var s in i)n[s]=i[s];return t.dispatchEvent(n)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof Document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s)),r.$=i,r.$$=n,"undefined"!=typeof self&&(self.Awesomplete=r),"object"==typeof module&&module.exports&&(module.exports=r)}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L214

Insecure DOM Manipulation (XSS) in merge.js

CWE-79
File Location: media/vendor/codemirror/addon/merge/merge.js:214
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- dv.lockButton.innerHTML = val ? "\u21db\u21da" : "\u21db&nbsp;&nbsp;\u21da";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in merge.min.js

CWE-79
File Location: media/vendor/codemirror/addon/merge/merge.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","diff_match_patch"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){this.mv=e,this.type=t,this.classes="left"==t?{chunk:"CodeMirror-merge-l-chunk",start:"CodeMirror-merge-l-chunk-start",end:"CodeMirror-merge-l-chunk-end",insert:"CodeMirror-merge-l-inserted",del:"CodeMirror-merge-l-deleted",connect:"CodeMirror-merge-l-connect"}:{chunk:"CodeMirror-merge-r-chunk",start:"CodeMirror-merge-r-chunk-start",end:"CodeMirror-merge-r-chunk-end",insert:"CodeMirror-merge-r-inserted",del:"CodeMirror-merge-r-deleted",connect:"CodeMirror-merge-r-connect"}}function i(t){t.diffOutOfDate&&(t.diff=C(t.orig.getValue(),t.edit.getValue(),t.mv.options.ignoreWhitespace),t.chunks=b(t.diff),t.diffOutOfDate=!1,e.signal(t.edit,"updateDiff",t.diff))}function r(e,t){if(e.diffOutOfDate)return e.lockScroll&&null==e.needsScrollSync&&(e.needsScrollSync=t),!1;if(e.needsScrollSync=null,!e.lockScroll)return!0;var i,r,o=+new Date;if(t?(i=e.edit,r=e.orig):(i=e.orig,r=e.edit),i.state.scrollSetBy==e&&(i.state.scrollSetAt||0)+250>o)return!1;var l=i.getScrollInfo();if("align"==e.mv.options.connect)v=l.top;else{var a,s,c=.5*l.clientHeight,h=l.top+c,f=i.lineAtHeight(h,"local"),g=function(e,t,i){for(var r,n,o,l,a=0;a<e.length;a++){var s=e[a],c=i?s.editFrom:s.origFrom,h=i?s.editTo:s.origTo;null==n&&(c>t?(n=s.editFrom,l=s.origFrom):h>t&&(n=s.editTo,l=s.origTo)),h<=t?(r=s.editTo,o=s.origTo):c<=t&&(r=s.editFrom,o=s.origFrom)}return{edit:{before:r,after:n},orig:{before:o,after:l}}}(e.chunks,f,t),d=n(i,t?g.edit:g.orig),u=n(r,t?g.orig:g.edit),m=(h-d.top)/(d.bot-d.top),v=u.top-c+m*(u.bot-u.top);if(v>l.top&&(s=l.top/c)<1)v=v*s+l.top*(1-s);else if((a=l.height-l.clientHeight-l.top)<c){var p=r.getScrollInfo();p.height-p.clientHeight-v>a&&(s=a/c)<1&&(v=v*s+(p.height-p.clientHeight-a)*(1-s))}}return r.scrollTo(l.left,v),r.state.scrollSetAt=o,r.state.scrollSetBy=e,!0}function n(e,t){var i=t.after;return null==i&&(i=e.lastLine()+1),{top:e.heightAtLine(t.before||0,"local"),bot:e.heightAtLine(i,"local")}}function o(e,t,i){e.lockScroll=t,t&&0!=i&&r(e,DIFF_INSERT)&&f(e),e.lockButton.innerHTML=t?"⇛⇚":"⇛&nbsp;&nbsp;⇚"}function l(e,t,i){for(var r=i.classLocation,n=0;n<r.length;n++)e.removeLineClass(t,r[n],i.chunk),e.removeLineClass(t,r[n],i.start),e.removeLineClass(t,r[n],i.end)}function a(t,i,r){for(var n=0;n<i.length;++n){var o=i[n];o instanceof e.TextMarker?o.clear():o.parent&&l(t,o,r)}i.length=0}function s(e,t,i,r,n){var o=e.getViewport();e.operation(function(){i.from==i.to||o.from-i.to>20||i.from-o.to>20?(a(e,i.marked,n),h(e,t,r,i.marked,o.from,o.to,n),i.from=o.from,i.to=o.to):(o.from<i.from&&(h(e,t,r,i.marked,o.from,i.from,n),i.from=o.from),o.to>i.to&&(h(e,t,r,i.marked,i.to,o.to,n),i.to=o.to))})}function c(e,t,i,r,n,o){for(var l=i.classLocation,a=e.getLineHandle(t),s=0;s<l.length;s++)r&&e.addLineClass(a,l[s],i.chunk),n&&e.addLineClass(a,l[s],i.start),o&&e.addLineClass(a,l[s],i.end);return a}function h(e,t,i,r,n,o,l){function a(t,i){for(var a=Math.max(n,t),s=Math.min(o,i),h=a;h<s;++h)r.push(c(e,h,l,!0,h==t,h==i-1));t==i&&a==i&&s==i&&(a?r.push(c(e,a-1,l,!1,!1,!0)):r.push(c(e,a,l,!1,!0,!1)))}for(var s=N(0,0),h=N(n,0),f=e.clipPos(N(o-1)),g=i==DIFF_DELETE?l.del:l.insert,d=0,u=!1,m=0;m<t.length;++m){var v=t[m],p=v[0],k=v[1];if(p==DIFF_EQUAL){var C=s.line+(T(t,m)?0:1);E(s,k);var b=s.line+(w(t,m)?1:0);b>C&&(u&&(a(d,C),u=!1),d=b)}else if(u=!0,p==i){var F=E(s,k,!0),y=function(e,t){return(e.line-t.line||e.ch-t.ch)>0?e:t}(h,s),S=function(e,t){return(e.line-t.line||e.ch-t.ch)<0?e:t}(f,F);(function(e,t){return e.line==t.line&&e.ch==t.ch})(y,S)||r.push(e.markText(y,S,{className:g})),s=F}}u&&a(d,s.line+1)}function f(e){if(e.showDifferences){if(e.svg){L(e.svg);var t=e.gap.offsetWidth;D(e.svg,"width",t,"height",e.gap.offsetHeight)}e.copyButtons&&L(e.copyButtons);for(var i=e.edit.getViewport(),r=e.orig.getViewport(),n=e.mv.wrap.getBoundingClientRect().top,o=n-e.edit.getScrollerElement().getBoundingClientRect().top+e.edit.getScrollInfo().top,l=n-e.orig.getScrollerElement().getBoundingClientRect().top+e.orig.getScrollInfo().top,a=0;a<e.chunks.length;a++){var s=e.chunks[a];s.editFrom<=i.to&&s.editTo>=i.from&&s.origFrom<=r.to&&s.origTo>=r.from&&function(e,t,i,r,n){var o="left"==e.type,l=e.orig.heightAtLine(t.origFrom,"local",!0)-i;if(e.svg){var a=l,s=e.edit.heightAtLine(t.editFrom,"local",!0)-r;if(o){f=a;a=s,s=f}var c=e.orig.heightAtLine(t.origTo,"local",!0)-i,h=e.edit.heightAtLine(t.editTo,"local",!0)-r;if(o){var f=c;c=h,h=f}var g=" C "+n/2+" "+s+" "+n/2+" "+a+" "+(n+2)+" "+a,d=" C "+n/2+" "+c+" "+n/2+" "+h+" -1 "+h;D(e.svg.appendChild(document.createElementNS(R,"path")),"d","M -1 "+s+g+" L "+(n+2)+" "+c+d+" z","class",e.classes.connect)}if(e.copyButtons){var u=e.copyButtons.appendChild(M("div","left"==e.type?"⇝":"⇜","CodeMirror-merge-copy")),m=e.mv.options.allowEditingOriginals;if(u.title=m?"Push to left":"Revert chunk",u.chunk=t,u.style.top=(t.origTo>t.origFrom?l:e.edit.heightAtLine(t.editFrom,"local")-r)+"px",m){var v=e.edit.heightAtLine(t.editFrom,"local")-r,p=e.copyButtons.appendChild(M("div","right"==e.type?"⇝":"⇜","CodeMirror-merge-copy-reverse"));p.title="Push to right",p.chunk={editFrom:t.origFrom,editTo:t.origTo,origFrom:t.editFrom,origTo:t.editTo},p.style.top=v+"px","right"==e.type?p.style.left="2px":p.style.right="2px"}}}(e,s,l,o,t)}}}function g(e,t){for(var i=0,r=0,n=0;n<t.length;n++){var o=t[n];if(o.editTo>e&&o.editFrom<=e)return null;if(o.editFrom>e)break;i=o.editTo,r=o.origTo}return r+(e-i)}function d(e,t,i){for(var r=e.state.trackAlignable,n=e.firstLine(),o=0,l=[],a=0;;a++){for(var s=t[a],c=s?i?s.origFrom:s.editFrom:1e9;o<r.alignable.length;o+=2){var h=r.alignable[o]+1;if(!(h<=n)){if(!(h<=c))break;l.push(h)}}if(!s)break;l.push(n=i?s.origTo:s.editTo)}return l}function u(e,t,i,r){var n=0,o=0,l=0,a=0;e:for(;;n++){var s=e[n],c=t[o];if(!s&&null==c)break;for(var h=s?s[0]:1e9,f=null==c?1e9:c;l<i.length;){var g=i[l];if(g.origFrom<=f&&g.origTo>f){o++,n--;continue e}if(g.editTo>h){if(g.editFrom<=h)continue e;break}a+=g.origTo-g.origFrom-(g.editTo-g.editFrom),l++}if(h==f-a)s[r]=f,o++;else if(h<f-a)s[r]=h+a;else{var d=[f-a,null,null];d[r]=f,e.splice(n,0,d),o++}}}function m(e,t){if(e.dealigned||t){if(!e.orig.curOp)return e.orig.operation(function(){m(e,t)});e.dealigned=!1;var r=e.mv.left==e?e.mv.right:e.mv.left;r&&(i(r),r.dealigned=!1);for(var n=function(e,t){var i=d(e.edit,e.chunks,!1),r=[];if(t)for(var n=0,o=0;n<t.chunks.length;n++){for(var l=t.chunks[n].editTo;o<i.length&&i[o]<l;)o++;o!=i.length&&i[o]==l||i.splice(o++,0,l)}for(n=0;n<i.length;n++)r.push([i[n],null,null]);return u(r,d(e.orig,e.chunks,!0),e.chunks,1),t&&u(r,d(t.orig,t.chunks,!0),t.chunks,2),r}(e,r),o=e.mv.aligners,l=0;l<o.length;l++)o[l].clear();o.length=0;var a=[e.edit,e.orig],s=[];r&&a.push(r.orig);for(l=0;l<a.length;l++)s.push(a[l].getScrollInfo().top);for(var c=0;c<n.length;c++)!function(e,t,i){for(var r=0,n=[],o=0;o<e.length;o++)if(null!=t[o]){var l=e[o].heightAtLine(t[o],"local");n[o]=l,r=Math.max(r,l)}for(o=0;o<e.length;o++)if(null!=t[o]){var a=r-n[o];a>1&&i.push(function(e,t,i){var r=!0;t>e.lastLine()&&(t--,r=!1);var n=document.createElement("div");return n.className="CodeMirror-merge-spacer",n.style.height=i+"px",n.style.minWidth="1px",e.addLineWidget(t,n,{height:i,above:r,mergeSpacer:!0,handleMouseEvents:!0})}(e[o],t[o],a))}}(a,n[c],o);for(l=0;l<a.length;l++)a[l].scrollTo(null,s[l])}}function v(e,t,i,r){if(!e.diffOutOfDate){var n=r.origTo>i.lastLine()?N(r.origFrom-1):N(r.origFrom,0),o=N(r.origTo,0),l=r.editTo>t.lastLine()?N(r.editFrom-1):N(r.editFrom,0),a=N(r.editTo,0),s=e.mv.options.revertChunk;s?s(e.mv,i,n,o,t,l,a):t.replaceRange(i.getRange(n,o),l,a)}}function p(t){var i=t.lockButton=M("div",null,"CodeMirror-merge-scrolllock");i.title="Toggle locked scrolling";var r=M("div",[i],"CodeMirror-merge-scrolllock-wrap");e.on(i,"click",function(){o(t,!t.lockScroll)});var n=[r];if(!1!==t.mv.options.revertButtons&&(t.copyButtons=M("div",null,"CodeMirror-merge-copybuttons-"+t.type),e.on(t.copyButtons,"click",function(e){var i=e.target||e.srcElement;i.chunk&&("CodeMirror-merge-copy-reverse"!=i.className?v(t,t.edit,t.orig,i.chunk):v(t,t.orig,t.edit,i.chunk))}),n.unshift(t.copyButtons)),"align"!=t.mv.options.connect){var l=document.createElementNS&&document.createElementNS(R,"svg");l&&!l.createSVGRect&&(l=null),t.svg=l,l&&n.push(l)}return t.gap=M("div",n,"CodeMirror-merge-gap")}function k(e){return"string"==typeof e?e:e.getValue()}function C(e,t,i){_||(_=new diff_match_patch);for(var r=_.diff_main(e,t),n=0;n<r.length;++n){var o=r[n];(i?/[^ \t]/.test(o[1]):o[1])?n&&r[n-1][0]==o[0]&&(r.splice(n--,1),r[n][1]+=o[1]):r.splice(n--,1)}return r}function b(e){for(var t=[],i=0,r=0,n=N(0,0),o=N(0,0),l=0;l<e.length;++l){var a=e[l],s=a[0];if(s==DIFF_EQUAL){var c=!T(e,l)||n.line<i||o.line<r?1:0,h=n.line+c,f=o.line+c;E(n,a[1],null,o);var g=w(e,l)?1:0,d=n.line+g,u=o.line+g;d>h&&(l&&t.push({origFrom:r,origTo:f,editFrom:i,editTo:h}),i=d,r=u)}else E(s==DIFF_INSERT?n:o,a[1])}return(i<=n.line||r<=o.line)&&t.push({origFrom:r,origTo:o.line+1,editFrom:i,editTo:n.line+1}),t}function w(e,t){if(t==e.length-1)return!0;var i=e[t+1][1];return!(1==i.length&&t<e.length-2||10!=i.charCodeAt(0))&&(t==e.length-2||((i=e[t+2][1]).length>1||t==e.length-3)&&10==i.charCodeAt(0))}function T(e,t){if(0==t)return!0;var i=e[t-1][1];return 10==i.charCodeAt(i.length-1)&&(1==t||10==(i=e[t-2][1]).charCodeAt(i.length-1))}function F(t,i,r){function n(){l.clear(),t.removeLineClass(i,"wrap","CodeMirror-merge-collapsed-line")}t.addLineClass(i,"wrap","CodeMirror-merge-collapsed-line");var o=document.createElement("span");o.className="CodeMirror-merge-collapsed-widget",o.title="Identical text collapsed. Click to expand.";var l=t.markText(N(i,0),N(r-1),{inclusiveLeft:!0,inclusiveRight:!0,replacedWith:o,clearOnEnter:!0});return e.on(o,"click",n),{mark:l,clear:n}}function y(e,t){function i(){for(var e=0;e<r.length;e++)r[e].clear()}for(var r=[],n=0;n<t.length;n++){var o=t[n],l=F(o.cm,o.line,o.line+e);r.push(l),l.mark.on("clear",i)}return r[0].mark}function S(e,t,i,r){for(var n=0;n<e.chunks.length;n++)for(var o=e.chunks[n],l=o.editFrom-t;l<o.editTo+t;l++){var a=l+i;a>=0&&a<r.length&&(r[a]=!1)}}function M(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),"string"==typeof t)n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild)}function D(e){for(var t=1;t<arguments.length;t+=2)e.setAttribute(arguments[t],arguments[t+1])}function A(e,t){t||(t={});for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function E(e,t,i,r){for(var n=i?N(e.line,e.ch):e,o=0;;){var l=t.indexOf("\n",o);if(-1==l)break;++n.line,r&&++r.line,o=l+1}return n.ch=(o?0:n.ch)+(t.length-o),r&&(r.ch=(o?0:r.ch)+(t.length-o)),n}function O(e){this.cm=e,this.alignable=[],this.height=e.doc.height;var t=this;e.on("markerAdded",function(e,i){if(i.collapsed){var r=i.find(1);null!=r&&t.set(r.line,j)}}),e.on("markerCleared",function(e,i,r,n){null!=n&&i.collapsed&&t.check(n,j,t.hasMarker)}),e.on("markerChanged",this.signal.bind(this)),e.on("lineWidgetAdded",function(e,i,r){i.mergeSpacer||(i.above?t.set(r-1,P):t.set(r,H))}),e.on("lineWidgetCleared",function(e,i,r){i.mergeSpacer||(i.above?t.check(r-1,P,t.hasWidgetBelow):t.check(r,H,t.hasWidget))}),e.on("lineWidgetChanged",this.signal.bind(this)),e.on("change",function(e,i){var r=i.from.line,n=i.to.line-i.from.line,o=i.text.length-1,l=r+o;(n||o)&&t.map(r,n,o),t.check(l,j,t.hasMarker),(n||o)&&t.check(i.from.line,j,t.hasMarker)}),e.on("viewportChange",function(){t.cm.doc.height!=t.height&&t.signal()})}function x(e,t,i){for(var r=e.length-1;r>=0;r--){var n=e[r],o=(i?n.origTo:n.editTo)-1;if(o<t)return o}}function B(e,t,i){for(var r=0;r<e.length;r++){var n=e[r],o=i?n.origFrom:n.editFrom;if(o>t)return o}}function I(t,r){var n=null,o=t.state.diffViews,l=t.getCursor().line;if(o)for(var a=0;a<o.length;a++){var s=o[a],c=t==s.orig;i(s);var h=r<0?x(s.chunks,l,c):B(s.chunks,l,c);null==h||null!=n&&!(r<0?h>n:h<n)||(n=h)}if(null==n)return e.Pass;t.setCursor(n,0)}var N=e.Pos,R="http://www.w3.org/2000/svg";t.prototype={constructor:t,init:function(t,i,r){this.edit=this.mv.edit,(this.edit.state.diffViews||(this.edit.state.diffViews=[])).push(this),this.orig=e(t,A({value:i,readOnly:!this.mv.options.allowEditingOriginals},A(r))),"align"==this.mv.options.connect&&(this.edit.state.trackAlignable||(this.edit.state.trackAlignable=new O(this.edit)),this.orig.state.trackAlignable=new O(this.orig)),this.orig.state.diffViews=[this];var n=r.chunkClassLocation||"background";"[object Array]"!=Object.prototype.toString.call(n)&&(n=[n]),this.classes.classLocation=n,this.diff=C(k(i),k(r.value),this.mv.options.ignoreWhitespace),this.chunks=b(this.diff),this.diffOutOfDate=this.dealigned=!1,this.needsScrollSync=null,this.showDifferences=!1!==r.showDifferences},registerEvents:function(t){this.forceUpdate=function(t){function n(e){W=!0,v=!1,"full"==e&&(t.svg&&L(t.svg),t.copyButtons&&L(t.copyButtons),a(t.edit,d.marked,t.classes),a(t.orig,u.marked,t.classes),d.from=d.to=u.from=u.to=0),i(t),t.showDifferences&&(s(t.edit,t.diff,d,DIFF_INSERT,t.classes),s(t.orig,t.diff,u,DIFF_DELETE,t.classes)),"align"==t.mv.options.connect&&m(t),f(t),null!=t.needsScrollSync&&r(t,t.needsScrollSync),W=!1}function o(e){W||(t.dealigned=!0,l(e))}function l(e){W||v||(clearTimeout(g),!0===e&&(v=!0),g=setTimeout(n,!0===e?20:250))}function c(e,i){t.diffOutOfDate||(t.diffOutOfDate=!0,d.from=d.to=u.from=u.to=0),o(i.text.length-1!=i.to.line-i.from.line)}function h(){t.diffOutOfDate=!0,t.dealigned=!0,n("full")}var g,d={from:0,to:0,marked:[]},u={from:0,to:0,marked:[]},v=!1;return t.edit.on("change",c),t.orig.on("change",c),t.edit.on("swapDoc",h),t.orig.on("swapDoc",h),"align"==t.mv.options.connect&&(e.on(t.edit.state.trackAlignable,"realign",o),e.on(t.orig.state.trackAlignable,"realign",o)),t.edit.on("viewportChange",function(){l(!1)}),t.orig.on("viewportChange",function(){l(!1)}),n(),n}(this),o(this,!0,!1),function(e,t){e.edit.on("scroll",function(){r(e,!0)&&f(e)}),e.orig.on("scroll",function(){r(e,!1)&&f(e),t&&r(t,!0)&&f(t)})}(this,t)},setShowDifferences:function(e){(e=!1!==e)!=this.showDifferences&&(this.showDifferences=e,this.forceUpdate("full"))}};var W=!1,V=e.MergeView=function(i,r){if(!(this instanceof V))return new V(i,r);this.options=r;var n=r.origLeft,o=null==r.origRight?r.orig:r.origRight,l=null!=n,a=null!=o,s=1+(l?1:0)+(a?1:0),c=[],h=this.left=null,d=this.right=null,u=this;if(l){h=this.left=new t(this,"left");var v=M("div",null,"CodeMirror-merge-pane CodeMirror-merge-left");c.push(v),c.push(p(h))}var k=M("div",null,"CodeMirror-merge-pane CodeMirror-merge-editor");if(c.push(k),a){d=this.right=new t(this,"right"),c.push(p(d));var C=M("div",null,"CodeMirror-merge-pane CodeMirror-merge-right");c.push(C)}(a?C:k).className+=" CodeMirror-merge-pane-rightmost",c.push(M("div",null,null,"height: 0; clear: both;"));var b=this.wrap=i.appendChild(M("div",c,"CodeMirror-merge CodeMirror-merge-"+s+"pane"));this.edit=e(k,A(r)),h&&h.init(v,n,r),d&&d.init(C,o,r),r.collapseIdentical&&this.editor().operation(function(){!function(e,t){"number"!=typeof t&&(t=2);for(var i=[],r=e.editor(),n=r.firstLine(),o=n,l=r.lastLine();o<=l;o++)i.push(!0);e.left&&S(e.left,t,n,i),e.right&&S(e.right,t,n,i);for(var a=0;a<i.length;a++)if(i[a]){for(var s=a+n,c=1;a<i.length-1&&i[a+1];a++,c++);if(c>t){var h=[{line:s,cm:r}];e.left&&h.push({line:g(s,e.left.chunks),cm:e.left.orig}),e.right&&h.push({line:g(s,e.right.chunks),cm:e.right.orig});var f=y(c,h);e.options.onCollapse&&e.options.onCollapse(e,s,c,f)}}}(u,r.collapseIdentical)}),"align"==r.connect&&(this.aligners=[],m(this.left||this.right,!0)),h&&h.registerEvents(d),d&&d.registerEvents(h);var w=function(){h&&f(h),d&&f(d)};e.on(window,"resize",w);var T=setInterval(function(){for(var t=b.parentNode;t&&t!=document.body;t=t.parentNode);t||(clearInterval(T),e.off(window,"resize",w))},5e3)};V.prototype={constructor:V,editor:function(){return this.edit},rightOriginal:function(){return this.right&&this.right.orig},leftOriginal:function(){return this.left&&this.left.orig},setShowDifferences:function(e){this.right&&this.right.setShowDifferences(e),this.left&&this.left.setShowDifferences(e)},rightChunks:function(){if(this.right)return i(this.right),this.right.chunks},leftChunks:function(){if(this.left)return i(this.left),this.left.chunks}};var _,H=1,P=2,j=4;O.prototype={signal:function(){e.signal(this,"realign"),this.height=this.cm.doc.height},set:function(e,t){for(var i=-1;i<this.alignable.length;i+=2){var r=this.alignable[i]-e;if(0==r){if((this.alignable[i+1]&t)==t)return;return this.alignable[i+1]|=t,void this.signal()}if(r>0)break}this.signal(),this.alignable.splice(i,0,e,t)},find:function(e){for(var t=0;t<this.alignable.length;t+=2)if(this.alignable[t]==e)return t;return-1},check:function(e,t,i){var r=this.find(e);if(-1!=r&&this.alignable[r+1]&t&&!i.call(this,e)){this.signal();var n=this.alignable[r+1]&~t;n?this.alignable[r+1]=n:this.alignable.splice(r,2)}},hasMarker:function(e){var t=this.cm.getLineHandle(e);if(t.markedSpans)for(var i=0;i<t.markedSpans.length;i++)if(t.markedSpans[i].mark.collapsed&&null!=t.markedSpans[i].to)return!0;return!1},hasWidget:function(e){var t=this.cm.getLineHandle(e);if(t.widgets)for(var i=0;i<t.widgets.length;i++)if(!t.widgets[i].above&&!t.widgets[i].mergeSpacer)return!0;return!1},hasWidgetBelow:function(e){if(e==this.cm.lastLine())return!1;var t=this.cm.getLineHandle(e+1);if(t.widgets)for(var i=0;i<t.widgets.length;i++)if(t.widgets[i].above&&!t.widgets[i].mergeSpacer)return!0;return!1},map:function(e,t,i){for(var r=i-t,n=e+t,o=-1,l=-1,a=0;a<this.alignable.length;a+=2){var s=this.alignable[a];s==e&&this.alignable[a+1]&P&&(o=a),s==n&&this.alignable[a+1]&P&&(l=a),s<=e||(s<n?this.alignable.splice(a--,2):this.alignable[a]+=r)}if(o>-1){var c=this.alignable[o+1];c==P?this.alignable.splice(o,2):this.alignable[o+1]=c&~P}l>-1&&i&&this.set(e+i,P)}},e.commands.goNextDiff=function(e){return I(e,1)},e.commands.goPrevDiff=function(e){return I(e,-1)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","diff_match_patch"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){this.mv=e,this.type=t,this.classes="left"==t?{chunk:"CodeMirror-merge-l-chunk",start:"CodeMirror-merge-l-chunk-start",end:"CodeMirror-merge-l-chunk-end",insert:"CodeMirror-merge-l-inserted",del:"CodeMirror-merge-l-deleted",connect:"CodeMirror-merge-l-connect"}:{chunk:"CodeMirror-merge-r-chunk",start:"CodeMirror-merge-r-chunk-start",end:"CodeMirror-merge-r-chunk-end",insert:"CodeMirror-merge-r-inserted",del:"CodeMirror-merge-r-deleted",connect:"CodeMirror-merge-r-connect"}}function i(t){t.diffOutOfDate&&(t.diff=C(t.orig.getValue(),t.edit.getValue(),t.mv.options.ignoreWhitespace),t.chunks=b(t.diff),t.diffOutOfDate=!1,e.signal(t.edit,"updateDiff",t.diff))}function r(e,t){if(e.diffOutOfDate)return e.lockScroll&&null==e.needsScrollSync&&(e.needsScrollSync=t),!1;if(e.needsScrollSync=null,!e.lockScroll)return!0;var i,r,o=+new Date;if(t?(i=e.edit,r=e.orig):(i=e.orig,r=e.edit),i.state.scrollSetBy==e&&(i.state.scrollSetAt||0)+250>o)return!1;var l=i.getScrollInfo();if("align"==e.mv.options.connect)v=l.top;else{var a,s,c=.5*l.clientHeight,h=l.top+c,f=i.lineAtHeight(h,"local"),g=function(e,t,i){for(var r,n,o,l,a=0;a<e.length;a++){var s=e[a],c=i?s.editFrom:s.origFrom,h=i?s.editTo:s.origTo;null==n&&(c>t?(n=s.editFrom,l=s.origFrom):h>t&&(n=s.editTo,l=s.origTo)),h<=t?(r=s.editTo,o=s.origTo):c<=t&&(r=s.editFrom,o=s.origFrom)}return{edit:{before:r,after:n},orig:{before:o,after:l}}}(e.chunks,f,t),d=n(i,t?g.edit:g.orig),u=n(r,t?g.orig:g.edit),m=(h-d.top)/(d.bot-d.top),v=u.top-c+m*(u.bot-u.top);if(v>l.top&&(s=l.top/c)<1)v=v*s+l.top*(1-s);else if((a=l.height-l.clientHeight-l.top)<c){var p=r.getScrollInfo();p.height-p.clientHeight-v>a&&(s=a/c)<1&&(v=v*s+(p.height-p.clientHeight-a)*(1-s))}}return r.scrollTo(l.left,v),r.state.scrollSetAt=o,r.state.scrollSetBy=e,!0}function n(e,t){var i=t.after;return null==i&&(i=e.lastLine()+1),{top:e.heightAtLine(t.before||0,"local"),bot:e.heightAtLine(i,"local")}}function o(e,t,i){e.lockScroll=t,t&&0!=i&&r(e,DIFF_INSERT)&&f(e),e.lockButton.innerHTML=t?"⇛⇚":"⇛&nbsp;&nbsp;⇚"}function l(e,t,i){for(var r=i.classLocation,n=0;n<r.length;n++)e.removeLineClass(t,r[n],i.chunk),e.removeLineClass(t,r[n],i.start),e.removeLineClass(t,r[n],i.end)}function a(t,i,r){for(var n=0;n<i.length;++n){var o=i[n];o instanceof e.TextMarker?o.clear():o.parent&&l(t,o,r)}i.length=0}function s(e,t,i,r,n){var o=e.getViewport();e.operation(function(){i.from==i.to||o.from-i.to>20||i.from-o.to>20?(a(e,i.marked,n),h(e,t,r,i.marked,o.from,o.to,n),i.from=o.from,i.to=o.to):(o.from<i.from&&(h(e,t,r,i.marked,o.from,i.from,n),i.from=o.from),o.to>i.to&&(h(e,t,r,i.marked,i.to,o.to,n),i.to=o.to))})}function c(e,t,i,r,n,o){for(var l=i.classLocation,a=e.getLineHandle(t),s=0;s<l.length;s++)r&&e.addLineClass(a,l[s],i.chunk),n&&e.addLineClass(a,l[s],i.start),o&&e.addLineClass(a,l[s],i.end);return a}function h(e,t,i,r,n,o,l){function a(t,i){for(var a=Math.max(n,t),s=Math.min(o,i),h=a;h<s;++h)r.push(c(e,h,l,!0,h==t,h==i-1));t==i&&a==i&&s==i&&(a?r.push(c(e,a-1,l,!1,!1,!0)):r.push(c(e,a,l,!1,!0,!1)))}for(var s=N(0,0),h=N(n,0),f=e.clipPos(N(o-1)),g=i==DIFF_DELETE?l.del:l.insert,d=0,u=!1,m=0;m<t.length;++m){var v=t[m],p=v[0],k=v[1];if(p==DIFF_EQUAL){var C=s.line+(T(t,m)?0:1);E(s,k);var b=s.line+(w(t,m)?1:0);b>C&&(u&&(a(d,C),u=!1),d=b)}else if(u=!0,p==i){var F=E(s,k,!0),y=function(e,t){return(e.line-t.line||e.ch-t.ch)>0?e:t}(h,s),S=function(e,t){return(e.line-t.line||e.ch-t.ch)<0?e:t}(f,F);(function(e,t){return e.line==t.line&&e.ch==t.ch})(y,S)||r.push(e.markText(y,S,{className:g})),s=F}}u&&a(d,s.line+1)}function f(e){if(e.showDifferences){if(e.svg){L(e.svg);var t=e.gap.offsetWidth;D(e.svg,"width",t,"height",e.gap.offsetHeight)}e.copyButtons&&L(e.copyButtons);for(var i=e.edit.getViewport(),r=e.orig.getViewport(),n=e.mv.wrap.getBoundingClientRect().top,o=n-e.edit.getScrollerElement().getBoundingClientRect().top+e.edit.getScrollInfo().top,l=n-e.orig.getScrollerElement().getBoundingClientRect().top+e.orig.getScrollInfo().top,a=0;a<e.chunks.length;a++){var s=e.chunks[a];s.editFrom<=i.to&&s.editTo>=i.from&&s.origFrom<=r.to&&s.origTo>=r.from&&function(e,t,i,r,n){var o="left"==e.type,l=e.orig.heightAtLine(t.origFrom,"local",!0)-i;if(e.svg){var a=l,s=e.edit.heightAtLine(t.editFrom,"local",!0)-r;o&&(f=a,a=s,s=f);var c=e.orig.heightAtLine(t.origTo,"local",!0)-i,h=e.edit.heightAtLine(t.editTo,"local",!0)-r;if(o){var f=c;c=h,h=f}var g=" C "+n/2+" "+s+" "+n/2+" "+a+" "+(n+2)+" "+a,d=" C "+n/2+" "+c+" "+n/2+" "+h+" -1 "+h;D(e.svg.appendChild(document.createElementNS(R,"path")),"d","M -1 "+s+g+" L "+(n+2)+" "+c+d+" z","class",e.classes.connect)}if(e.copyButtons){var u=e.copyButtons.appendChild(M("div","left"==e.type?"⇝":"⇜","CodeMirror-merge-copy")),m=e.mv.options.allowEditingOriginals;if(u.title=m?"Push to left":"Revert chunk",u.chunk=t,u.style.top=(t.origTo>t.origFrom?l:e.edit.heightAtLine(t.editFrom,"local")-r)+"px",m){var v=e.edit.heightAtLine(t.editFrom,"local")-r,p=e.copyButtons.appendChild(M("div","right"==e.type?"⇝":"⇜","CodeMirror-merge-copy-reverse"));p.title="Push to right",p.chunk={editFrom:t.origFrom,editTo:t.origTo,origFrom:t.editFrom,origTo:t.editTo},p.style.top=v+"px","right"==e.type?p.style.left="2px":p.style.right="2px"}}}(e,s,l,o,t)}}}function g(e,t){for(var i=0,r=0,n=0;n<t.length;n++){var o=t[n];if(o.editTo>e&&o.editFrom<=e)return null;if(o.editFrom>e)break;i=o.editTo,r=o.origTo}return r+(e-i)}function d(e,t,i){for(var r=e.state.trackAlignable,n=e.firstLine(),o=0,l=[],a=0;;a++){for(var s=t[a],c=s?i?s.origFrom:s.editFrom:1e9;o<r.alignable.length;o+=2){var h=r.alignable[o]+1;if(!(h<=n)){if(!(h<=c))break;l.push(h)}}if(!s)break;l.push(n=i?s.origTo:s.editTo)}return l}function u(e,t,i,r){var n=0,o=0,l=0,a=0;e:for(;;n++){var s=e[n],c=t[o];if(!s&&null==c)break;for(var h=s?s[0]:1e9,f=null==c?1e9:c;l<i.length;){var g=i[l];if(g.origFrom<=f&&g.origTo>f){o++,n--;continue e}if(g.editTo>h){if(g.editFrom<=h)continue e;break}a+=g.origTo-g.origFrom-(g.editTo-g.editFrom),l++}if(h==f-a)s[r]=f,o++;else if(h<f-a)s[r]=h+a;else{var d=[f-a,null,null];d[r]=f,e.splice(n,0,d),o++}}}function m(e,t){if(e.dealigned||t){if(!e.orig.curOp)return e.orig.operation(function(){m(e,t)});e.dealigned=!1;var r=e.mv.left==e?e.mv.right:e.mv.left;r&&(i(r),r.dealigned=!1);for(var n=function(e,t){var i=d(e.edit,e.chunks,!1),r=[];if(t)for(var n=0,o=0;n<t.chunks.length;n++){for(var l=t.chunks[n].editTo;o<i.length&&i[o]<l;)o++;o!=i.length&&i[o]==l||i.splice(o++,0,l)}for(n=0;n<i.length;n++)r.push([i[n],null,null]);return u(r,d(e.orig,e.chunks,!0),e.chunks,1),t&&u(r,d(t.orig,t.chunks,!0),t.chunks,2),r}(e,r),o=e.mv.aligners,l=0;l<o.length;l++)o[l].clear();o.length=0;var a=[e.edit,e.orig],s=[];for(r&&a.push(r.orig),l=0;l<a.length;l++)s.push(a[l].getScrollInfo().top);for(var c=0;c<n.length;c++)!function(e,t,i){for(var r=0,n=[],o=0;o<e.length;o++)if(null!=t[o]){var l=e[o].heightAtLine(t[o],"local");n[o]=l,r=Math.max(r,l)}for(o=0;o<e.length;o++)if(null!=t[o]){var a=r-n[o];a>1&&i.push(function(e,t,i){var r=!0;t>e.lastLine()&&(t--,r=!1);var n=document.createElement("div");return n.className="CodeMirror-merge-spacer",n.style.height=i+"px",n.style.minWidth="1px",e.addLineWidget(t,n,{height:i,above:r,mergeSpacer:!0,handleMouseEvents:!0})}(e[o],t[o],a))}}(a,n[c],o);for(l=0;l<a.length;l++)a[l].scrollTo(null,s[l])}}function v(e,t,i,r){if(!e.diffOutOfDate){var n=r.origTo>i.lastLine()?N(r.origFrom-1):N(r.origFrom,0),o=N(r.origTo,0),l=r.editTo>t.lastLine()?N(r.editFrom-1):N(r.editFrom,0),a=N(r.editTo,0),s=e.mv.options.revertChunk;s?s(e.mv,i,n,o,t,l,a):t.replaceRange(i.getRange(n,o),l,a)}}function p(t){var i=t.lockButton=M("div",null,"CodeMirror-merge-scrolllock");i.title="Toggle locked scrolling";var r=M("div",[i],"CodeMirror-merge-scrolllock-wrap");e.on(i,"click",function(){o(t,!t.lockScroll)});var n=[r];if(!1!==t.mv.options.revertButtons&&(t.copyButtons=M("div",null,"CodeMirror-merge-copybuttons-"+t.type),e.on(t.copyButtons,"click",function(e){var i=e.target||e.srcElement;i.chunk&&("CodeMirror-merge-copy-reverse"!=i.className?v(t,t.edit,t.orig,i.chunk):v(t,t.orig,t.edit,i.chunk))}),n.unshift(t.copyButtons)),"align"!=t.mv.options.connect){var l=document.createElementNS&&document.createElementNS(R,"svg");l&&!l.createSVGRect&&(l=null),t.svg=l,l&&n.push(l)}return t.gap=M("div",n,"CodeMirror-merge-gap")}function k(e){return"string"==typeof e?e:e.getValue()}function C(e,t,i){_||(_=new diff_match_patch);for(var r=_.diff_main(e,t),n=0;n<r.length;++n){var o=r[n];(i?/[^ \t]/.test(o[1]):o[1])?n&&r[n-1][0]==o[0]&&(r.splice(n--,1),r[n][1]+=o[1]):r.splice(n--,1)}return r}function b(e){for(var t=[],i=0,r=0,n=N(0,0),o=N(0,0),l=0;l<e.length;++l){var a=e[l],s=a[0];if(s==DIFF_EQUAL){var c=!T(e,l)||n.line<i||o.line<r?1:0,h=n.line+c,f=o.line+c;E(n,a[1],null,o);var g=w(e,l)?1:0,d=n.line+g,u=o.line+g;d>h&&(l&&t.push({origFrom:r,origTo:f,editFrom:i,editTo:h}),i=d,r=u)}else E(s==DIFF_INSERT?n:o,a[1])}return(i<=n.line||r<=o.line)&&t.push({origFrom:r,origTo:o.line+1,editFrom:i,editTo:n.line+1}),t}function w(e,t){if(t==e.length-1)return!0;var i=e[t+1][1];return!(1==i.length&&t<e.length-2||10!=i.charCodeAt(0))&&(t==e.length-2||((i=e[t+2][1]).length>1||t==e.length-3)&&10==i.charCodeAt(0))}function T(e,t){if(0==t)return!0;var i=e[t-1][1];return 10==i.charCodeAt(i.length-1)&&(1==t||10==(i=e[t-2][1]).charCodeAt(i.length-1))}function F(t,i,r){function n(){l.clear(),t.removeLineClass(i,"wrap","CodeMirror-merge-collapsed-line")}t.addLineClass(i,"wrap","CodeMirror-merge-collapsed-line");var o=document.createElement("span");o.className="CodeMirror-merge-collapsed-widget",o.title="Identical text collapsed. Click to expand.";var l=t.markText(N(i,0),N(r-1),{inclusiveLeft:!0,inclusiveRight:!0,replacedWith:o,clearOnEnter:!0});return e.on(o,"click",n),{mark:l,clear:n}}function y(e,t){function i(){for(var e=0;e<r.length;e++)r[e].clear()}for(var r=[],n=0;n<t.length;n++){var o=t[n],l=F(o.cm,o.line,o.line+e);r.push(l),l.mark.on("clear",i)}return r[0].mark}function S(e,t,i,r){for(var n=0;n<e.chunks.length;n++)for(var o=e.chunks[n],l=o.editFrom-t;l<o.editTo+t;l++){var a=l+i;a>=0&&a<r.length&&(r[a]=!1)}}function M(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),"string"==typeof t)n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild)}function D(e){for(var t=1;t<arguments.length;t+=2)e.setAttribute(arguments[t],arguments[t+1])}function A(e,t){t||(t={});for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function E(e,t,i,r){for(var n=i?N(e.line,e.ch):e,o=0;;){var l=t.indexOf("\n",o);if(-1==l)break;++n.line,r&&++r.line,o=l+1}return n.ch=(o?0:n.ch)+(t.length-o),r&&(r.ch=(o?0:r.ch)+(t.length-o)),n}function O(e){this.cm=e,this.alignable=[],this.height=e.doc.height;var t=this;e.on("markerAdded",function(e,i){if(i.collapsed){var r=i.find(1);null!=r&&t.set(r.line,j)}}),e.on("markerCleared",function(e,i,r,n){null!=n&&i.collapsed&&t.check(n,j,t.hasMarker)}),e.on("markerChanged",this.signal.bind(this)),e.on("lineWidgetAdded",function(e,i,r){i.mergeSpacer||(i.above?t.set(r-1,P):t.set(r,H))}),e.on("lineWidgetCleared",function(e,i,r){i.mergeSpacer||(i.above?t.check(r-1,P,t.hasWidgetBelow):t.check(r,H,t.hasWidget))}),e.on("lineWidgetChanged",this.signal.bind(this)),e.on("change",function(e,i){var r=i.from.line,n=i.to.line-i.from.line,o=i.text.length-1,l=r+o;(n||o)&&t.map(r,n,o),t.check(l,j,t.hasMarker),(n||o)&&t.check(i.from.line,j,t.hasMarker)}),e.on("viewportChange",function(){t.cm.doc.height!=t.height&&t.signal()})}function x(e,t,i){for(var r=e.length-1;r>=0;r--){var n=e[r],o=(i?n.origTo:n.editTo)-1;if(o<t)return o}}function B(e,t,i){for(var r=0;r<e.length;r++){var n=e[r],o=i?n.origFrom:n.editFrom;if(o>t)return o}}function I(t,r){var n=null,o=t.state.diffViews,l=t.getCursor().line;if(o)for(var a=0;a<o.length;a++){var s=o[a],c=t==s.orig;i(s);var h=r<0?x(s.chunks,l,c):B(s.chunks,l,c);null==h||null!=n&&!(r<0?h>n:h<n)||(n=h)}if(null==n)return e.Pass;t.setCursor(n,0)}var N=e.Pos,R="http://www.w3.org/2000/svg";t.prototype={constructor:t,init:function(t,i,r){this.edit=this.mv.edit,(this.edit.state.diffViews||(this.edit.state.diffViews=[])).push(this),this.orig=e(t,A({value:i,readOnly:!this.mv.options.allowEditingOriginals},A(r))),"align"==this.mv.options.connect&&(this.edit.state.trackAlignable||(this.edit.state.trackAlignable=new O(this.edit)),this.orig.state.trackAlignable=new O(this.orig)),this.orig.state.diffViews=[this];var n=r.chunkClassLocation||"background";"[object Array]"!=Object.prototype.toString.call(n)&&(n=[n]),this.classes.classLocation=n,this.diff=C(k(i),k(r.value),this.mv.options.ignoreWhitespace),this.chunks=b(this.diff),this.diffOutOfDate=this.dealigned=!1,this.needsScrollSync=null,this.showDifferences=!1!==r.showDifferences},registerEvents:function(t){this.forceUpdate=function(t){function n(e){W=!0,v=!1,"full"==e&&(t.svg&&L(t.svg),t.copyButtons&&L(t.copyButtons),a(t.edit,d.marked,t.classes),a(t.orig,u.marked,t.classes),d.from=d.to=u.from=u.to=0),i(t),t.showDifferences&&(s(t.edit,t.diff,d,DIFF_INSERT,t.classes),s(t.orig,t.diff,u,DIFF_DELETE,t.classes)),"align"==t.mv.options.connect&&m(t),f(t),null!=t.needsScrollSync&&r(t,t.needsScrollSync),W=!1}function o(e){W||(t.dealigned=!0,l(e))}function l(e){W||v||(clearTimeout(g),!0===e&&(v=!0),g=setTimeout(n,!0===e?20:250))}function c(e,i){t.diffOutOfDate||(t.diffOutOfDate=!0,d.from=d.to=u.from=u.to=0),o(i.text.length-1!=i.to.line-i.from.line)}function h(){t.diffOutOfDate=!0,t.dealigned=!0,n("full")}var g,d={from:0,to:0,marked:[]},u={from:0,to:0,marked:[]},v=!1;return t.edit.on("change",c),t.orig.on("change",c),t.edit.on("swapDoc",h),t.orig.on("swapDoc",h),"align"==t.mv.options.connect&&(e.on(t.edit.state.trackAlignable,"realign",o),e.on(t.orig.state.trackAlignable,"realign",o)),t.edit.on("viewportChange",function(){l(!1)}),t.orig.on("viewportChange",function(){l(!1)}),n(),n}(this),o(this,!0,!1),function(e,t){e.edit.on("scroll",function(){r(e,!0)&&f(e)}),e.orig.on("scroll",function(){r(e,!1)&&f(e),t&&r(t,!0)&&f(t)})}(this,t)},setShowDifferences:function(e){(e=!1!==e)!=this.showDifferences&&(this.showDifferences=e,this.forceUpdate("full"))}};var W=!1,V=e.MergeView=function(i,r){if(!(this instanceof V))return new V(i,r);this.options=r;var n=r.origLeft,o=null==r.origRight?r.orig:r.origRight,l=null!=n,a=null!=o,s=1+(l?1:0)+(a?1:0),c=[],h=this.left=null,d=this.right=null,u=this;if(l){h=this.left=new t(this,"left");var v=M("div",null,"CodeMirror-merge-pane CodeMirror-merge-left");c.push(v),c.push(p(h))}var k=M("div",null,"CodeMirror-merge-pane CodeMirror-merge-editor");if(c.push(k),a){d=this.right=new t(this,"right"),c.push(p(d));var C=M("div",null,"CodeMirror-merge-pane CodeMirror-merge-right");c.push(C)}(a?C:k).className+=" CodeMirror-merge-pane-rightmost",c.push(M("div",null,null,"height: 0; clear: both;"));var b=this.wrap=i.appendChild(M("div",c,"CodeMirror-merge CodeMirror-merge-"+s+"pane"));this.edit=e(k,A(r)),h&&h.init(v,n,r),d&&d.init(C,o,r),r.collapseIdentical&&this.editor().operation(function(){!function(e,t){"number"!=typeof t&&(t=2);for(var i=[],r=e.editor(),n=r.firstLine(),o=n,l=r.lastLine();o<=l;o++)i.push(!0);e.left&&S(e.left,t,n,i),e.right&&S(e.right,t,n,i);for(var a=0;a<i.length;a++)if(i[a]){for(var s=a+n,c=1;a<i.length-1&&i[a+1];a++,c++);if(c>t){var h=[{line:s,cm:r}];e.left&&h.push({line:g(s,e.left.chunks),cm:e.left.orig}),e.right&&h.push({line:g(s,e.right.chunks),cm:e.right.orig});var f=y(c,h);e.options.onCollapse&&e.options.onCollapse(e,s,c,f)}}}(u,r.collapseIdentical)}),"align"==r.connect&&(this.aligners=[],m(this.left||this.right,!0)),h&&h.registerEvents(d),d&&d.registerEvents(h);var w=function(){h&&f(h),d&&f(d)};e.on(window,"resize",w);var T=setInterval(function(){for(var t=b.parentNode;t&&t!=document.body;t=t.parentNode);t||(clearInterval(T),e.off(window,"resize",w))},5e3)};V.prototype={constructor:V,editor:function(){return this.edit},rightOriginal:function(){return this.right&&this.right.orig},leftOriginal:function(){return this.left&&this.left.orig},setShowDifferences:function(e){this.right&&this.right.setShowDifferences(e),this.left&&this.left.setShowDifferences(e)},rightChunks:function(){if(this.right)return i(this.right),this.right.chunks},leftChunks:function(){if(this.left)return i(this.left),this.left.chunks}};var _,H=1,P=2,j=4;O.prototype={signal:function(){e.signal(this,"realign"),this.height=this.cm.doc.height},set:function(e,t){for(var i=-1;i<this.alignable.length;i+=2){var r=this.alignable[i]-e;if(0==r){if((this.alignable[i+1]&t)==t)return;return this.alignable[i+1]|=t,void this.signal()}if(r>0)break}this.signal(),this.alignable.splice(i,0,e,t)},find:function(e){for(var t=0;t<this.alignable.length;t+=2)if(this.alignable[t]==e)return t;return-1},check:function(e,t,i){var r=this.find(e);if(-1!=r&&this.alignable[r+1]&t&&!i.call(this,e)){this.signal();var n=this.alignable[r+1]&~t;n?this.alignable[r+1]=n:this.alignable.splice(r,2)}},hasMarker:function(e){var t=this.cm.getLineHandle(e);if(t.markedSpans)for(var i=0;i<t.markedSpans.length;i++)if(t.markedSpans[i].mark.collapsed&&null!=t.markedSpans[i].to)return!0;return!1},hasWidget:function(e){var t=this.cm.getLineHandle(e);if(t.widgets)for(var i=0;i<t.widgets.length;i++)if(!t.widgets[i].above&&!t.widgets[i].mergeSpacer)return!0;return!1},hasWidgetBelow:function(e){if(e==this.cm.lastLine())return!1;var t=this.cm.getLineHandle(e+1);if(t.widgets)for(var i=0;i<t.widgets.length;i++)if(t.widgets[i].above&&!t.widgets[i].mergeSpacer)return!0;return!1},map:function(e,t,i){for(var r=i-t,n=e+t,o=-1,l=-1,a=0;a<this.alignable.length;a+=2){var s=this.alignable[a];s==e&&this.alignable[a+1]&P&&(o=a),s==n&&this.alignable[a+1]&P&&(l=a),s<=e||(s<n?this.alignable.splice(a--,2):this.alignable[a]+=r)}if(o>-1){var c=this.alignable[o+1];c==P?this.alignable.splice(o,2):this.alignable[o+1]=c&~P}l>-1&&i&&this.set(e+i,P)}},e.commands.goNextDiff=function(e){return I(e,1)},e.commands.goPrevDiff=function(e){return I(e,-1)}});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1635

Insecure DOM Manipulation (XSS) in cropper.js

CWE-79
File Location: media/vendor/cropperjs/js/cropper.js:1635
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- element.innerHTML = data.html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L22

Insecure DOM Manipulation (XSS) in joomla-alert-es5.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert-es5.js:22
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- var a = document.createElement('style');a.id = 'joomla-alert-stylesheet', a.innerHTML = 'joomla-alert{padding:.5rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;display:block;opacity:0;transition:opacity .15s linear}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{position:relative;top:-.5rem;right:-1.25rem;padding:.5rem 1.25rem;color:inherit}joomla-alert .joomla-alert--close{font-size:1.5rem;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{background:0 0;border:0;float:right;color:#000;opacity:.5}joomla-alert .joomla-alert--close:focus,joomla-alert .joomla-alert--close:hover,joomla-alert .joomla-alert-button--close:focus,joomla-alert .joomla-alert-button--close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.75}joomla-alert button.joomla-alert-button--close{font-size:100%;line-height:1.15;cursor:pointer;padding-top:.75rem;background:0 0;border:0;-webkit-appearance:none}joomla-alert.joomla-alert--show{opacity:1}joomla-alert[level=success]{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}joomla-alert[level=success] hr{border-top-color:#c1e2b3}joomla-alert[level=success] .alert-link{color:#2b542c}joomla-alert[level=info]{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}joomla-alert[level=info] hr{border-top-color:#a6d5ec}joomla-alert[level=info] .alert-link{color:#245269}joomla-alert[level=warning]{background-color:#fcf8e3;border-color:#faf2cc;color:#8a6d3b}joomla-alert[level=warning] hr{border-top-color:#f7ecb5}joomla-alert[level=warning] .alert-link{color:#66512c}joomla-alert[level=danger]{background-color:#f2dede;border-color:#ebcccc;color:#a94442}joomla-alert[level=danger] hr{border-top-color:#e4b9b9}joomla-alert[level=danger] .alert-link{color:#843534}', document.head.appendChild(a);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-alert-es5.min.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert-es5.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function e(t,o,r){function l(a,i){if(!o[a]){if(!t[a]){var s="function"==typeof require&&require;if(!i&&s)return s(a,!0);if(n)return n(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=o[a]={exports:{}};t[a][0].call(u.exports,function(e){var o=t[a][1][e];return l(o||e)},u,u.exports,e,t,o,r)}return o[a].exports}for(var n="function"==typeof require&&require,a=0;a<r.length;a++)l(r[a]);return l}({1:[function(e,t,o){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=(void 0===t?"undefined":a(t))&&"function"!=typeof t?e:t}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="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},i=function(){function e(e,t){for(var o,r=0;r<t.length;r++)(o=t[r]).enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}();!function(){if(!document.getElementById("joomla-alert-stylesheet")){var e=document.createElement("style");e.id="joomla-alert-stylesheet",e.innerHTML="joomla-alert{padding:.5rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;display:block;opacity:0;transition:opacity .15s linear}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{position:relative;top:-.5rem;right:-1.25rem;padding:.5rem 1.25rem;color:inherit}joomla-alert .joomla-alert--close{font-size:1.5rem;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{background:0 0;border:0;float:right;color:#000;opacity:.5}joomla-alert .joomla-alert--close:focus,joomla-alert .joomla-alert--close:hover,joomla-alert .joomla-alert-button--close:focus,joomla-alert .joomla-alert-button--close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.75}joomla-alert button.joomla-alert-button--close{font-size:100%;line-height:1.15;cursor:pointer;padding-top:.75rem;background:0 0;border:0;-webkit-appearance:none}joomla-alert.joomla-alert--show{opacity:1}joomla-alert[level=success]{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}joomla-alert[level=success] hr{border-top-color:#c1e2b3}joomla-alert[level=success] .alert-link{color:#2b542c}joomla-alert[level=info]{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}joomla-alert[level=info] hr{border-top-color:#a6d5ec}joomla-alert[level=info] .alert-link{color:#245269}joomla-alert[level=warning]{background-color:#fcf8e3;border-color:#faf2cc;color:#8a6d3b}joomla-alert[level=warning] hr{border-top-color:#f7ecb5}joomla-alert[level=warning] .alert-link{color:#66512c}joomla-alert[level=danger]{background-color:#f2dede;border-color:#ebcccc;color:#a94442}joomla-alert[level=danger] hr{border-top-color:#e4b9b9}joomla-alert[level=danger] .alert-link{color:#843534}",document.head.appendChild(e)}}();var s=function(e){function t(){return r(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return n(t,HTMLElement),i(t,[{key:"level",get:function(){return this.getAttribute("level")||"info"},set:function(e){return this.setAttribute("level",e)}},{key:"dismiss",get:function(){return this.getAttribute("dismiss")}},{key:"acknowledge",get:function(){return this.getAttribute("acknowledge")}},{key:"href",get:function(){return this.getAttribute("href")}}],[{key:"observedAttributes",get:function(){return["level","dismiss","acknowledge","href"]}}]),i(t,[{key:"connectedCallback",value:function(){this.setAttribute("role","alert"),this.classList.add("joomla-alert--show"),this.level&&-1!==["info","warning","danger","success"].indexOf(this.level)||this.setAttribute("level","info"),(this.hasAttribute("dismiss")||this.hasAttribute("acknowledge")||this.hasAttribute("href")&&""!==this.getAttribute("href")&&!this.querySelector("button.joomla-alert--close")&&!this.querySelector("button.joomla-alert-button--close"))&&this.appendCloseButton(),this.dispatchCustomEvent("joomla.alert.show");var e=this.querySelector("button.joomla-alert--close")||this.querySelector("button.joomla-alert-button--close");e&&e.focus()}},{key:"disconnectedCallback",value:function(){this.removeEventListener("joomla.alert.show",this),this.removeEventListener("joomla.alert.close",this),this.removeEventListener("joomla.alert.closed",this),this.firstChild.tagName&&"button"===this.firstChild.tagName.toLowerCase()&&this.firstChild.removeEventListener("click",this)}},{key:"attributeChangedCallback",value:function(e,t,o){"level"===e?(!o||o&&-1===["info","warning","danger","success"].indexOf(o))&&(this.level="info"):"dismiss"===e||"acknowledge"===e?o&&"true"!==o?this.removeCloseButton():this.appendCloseButton():"href"===e&&(o&&""!==o?!this.querySelector("button.joomla-alert-button--close")&&this.appendCloseButton():this.removeCloseButton())}},{key:"close",value:function(){this.dispatchCustomEvent("joomla.alert.close"),this.addEventListener("transitionend",function(){this.dispatchCustomEvent("joomla.alert.closed"),this.parentNode.removeChild(this)},!1),this.classList.remove("joomla-alert--show")}},{key:"dispatchCustomEvent",value:function(e){var t=new CustomEvent(e);t.relatedTarget=this,this.dispatchEvent(t),this.removeEventListener(e,this)}},{key:"appendCloseButton",value:function(){if(!this.querySelector("button.joomla-alert--close")&&!this.querySelector("button.joomla-alert-button--close")){var e=this,t=document.createElement("button");this.hasAttribute("dismiss")?(t.classList.add("joomla-alert--close"),t.innerHTML='<span aria-hidden="true">&times;</span>',t.setAttribute("aria-label",this.getText("JCLOSE","Close"))):(t.classList.add("joomla-alert-button--close"),t.innerHTML=this.hasAttribute("acknowledge")?this.getText("JOK","ok"):this.getText("JOPEN","Open")),this.firstChild?this.insertBefore(t,this.firstChild):this.appendChild(t),t&&(this.href?t.addEventListener("click",function(){e.dispatchCustomEvent("joomla.alert.buttonClicked"),window.location.href=e.href,e.close()}):t.addEventListener("click",function(){e.dispatchCustomEvent("joomla.alert.buttonClicked"),e.getAttribute("data-callback")?(window[e.getAttribute("data-callback")](),e.close()):e.close()})),this.hasAttribute("auto-dismiss")&&setTimeout(function(){e.dispatchCustomEvent("joomla.alert.buttonClicked"),e.hasAttribute("data-callback")?window[e.getAttribute("data-callback")]():e.close()},parseInt(e.getAttribute("auto-dismiss"))?e.getAttribute("auto-dismiss"):3e3)}}},{key:"removeCloseButton",value:function(){var e=this.querySelector("button");e&&(e.removeEventListener("click",this),e.parentNode.removeChild(e))}},{key:"getText",value:function(e,t){return window.Joomla&&Joomla.JText&&Joomla.JText._&&"function"==typeof Joomla.JText._&&Joomla.JText._(e)?Joomla.JText._(e):t}}]),t}();customElements.define("joomla-alert",s)},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L123

Insecure DOM Manipulation (XSS) in joomla-alert.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert.js:123
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- closeButton.innerHTML = this.getText('JOPEN', 'Open');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-alert.min.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){`joomla-alert{padding:.5rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;display:block;opacity:0;transition:opacity .15s linear}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{position:relative;top:-.5rem;right:-1.25rem;padding:.5rem 1.25rem;color:inherit}joomla-alert .joomla-alert--close{font-size:1.5rem;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{background:0 0;border:0;float:right;color:#000;opacity:.5}joomla-alert .joomla-alert--close:focus,joomla-alert .joomla-alert--close:hover,joomla-alert .joomla-alert-button--close:focus,joomla-alert .joomla-alert-button--close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.75}joomla-alert button.joomla-alert-button--close{font-size:100%;line-height:1.15;cursor:pointer;padding-top:.75rem;background:0 0;border:0;-webkit-appearance:none}joomla-alert.joomla-alert--show{opacity:1}joomla-alert[level=success]{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}joomla-alert[level=success] hr{border-top-color:#c1e2b3}joomla-alert[level=success] .alert-link{color:#2b542c}joomla-alert[level=info]{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}joomla-alert[level=info] hr{border-top-color:#a6d5ec}joomla-alert[level=info] .alert-link{color:#245269}joomla-alert[level=warning]{background-color:#fcf8e3;border-color:#faf2cc;color:#8a6d3b}joomla-alert[level=warning] hr{border-top-color:#f7ecb5}joomla-alert[level=warning] .alert-link{color:#66512c}joomla-alert[level=danger]{background-color:#f2dede;border-color:#ebcccc;color:#a94442}joomla-alert[level=danger] hr{border-top-color:#e4b9b9}joomla-alert[level=danger] .alert-link{color:#843534}`;if(!document.getElementById("joomla-alert-stylesheet")){const e=document.createElement("style");e.id="joomla-alert-stylesheet",e.innerHTML="joomla-alert{padding:.5rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;display:block;opacity:0;transition:opacity .15s linear}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{position:relative;top:-.5rem;right:-1.25rem;padding:.5rem 1.25rem;color:inherit}joomla-alert .joomla-alert--close{font-size:1.5rem;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{background:0 0;border:0;float:right;color:#000;opacity:.5}joomla-alert .joomla-alert--close:focus,joomla-alert .joomla-alert--close:hover,joomla-alert .joomla-alert-button--close:focus,joomla-alert .joomla-alert-button--close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.75}joomla-alert button.joomla-alert-button--close{font-size:100%;line-height:1.15;cursor:pointer;padding-top:.75rem;background:0 0;border:0;-webkit-appearance:none}joomla-alert.joomla-alert--show{opacity:1}joomla-alert[level=success]{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}joomla-alert[level=success] hr{border-top-color:#c1e2b3}joomla-alert[level=success] .alert-link{color:#2b542c}joomla-alert[level=info]{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}joomla-alert[level=info] hr{border-top-color:#a6d5ec}joomla-alert[level=info] .alert-link{color:#245269}joomla-alert[level=warning]{background-color:#fcf8e3;border-color:#faf2cc;color:#8a6d3b}joomla-alert[level=warning] hr{border-top-color:#f7ecb5}joomla-alert[level=warning] .alert-link{color:#66512c}joomla-alert[level=danger]{background-color:#f2dede;border-color:#ebcccc;color:#a94442}joomla-alert[level=danger] hr{border-top-color:#e4b9b9}joomla-alert[level=danger] .alert-link{color:#843534}",document.head.appendChild(e)}}();class AlertElement extends HTMLElement{static get observedAttributes(){return["level","dismiss","acknowledge","href"]}get level(){return this.getAttribute("level")||"info"}set level(e){return this.setAttribute("level",e)}get dismiss(){return this.getAttribute("dismiss")}get acknowledge(){return this.getAttribute("acknowledge")}get href(){return this.getAttribute("href")}constructor(){super()}connectedCallback(){this.setAttribute("role","alert"),this.classList.add("joomla-alert--show"),this.level&&-1!==["info","warning","danger","success"].indexOf(this.level)||this.setAttribute("level","info"),(this.hasAttribute("dismiss")||this.hasAttribute("acknowledge")||this.hasAttribute("href")&&""!==this.getAttribute("href")&&!this.querySelector("button.joomla-alert--close")&&!this.querySelector("button.joomla-alert-button--close"))&&this.appendCloseButton(),this.dispatchCustomEvent("joomla.alert.show");let e=this.querySelector("button.joomla-alert--close")||this.querySelector("button.joomla-alert-button--close");e&&e.focus()}disconnectedCallback(){this.removeEventListener("joomla.alert.show",this),this.removeEventListener("joomla.alert.close",this),this.removeEventListener("joomla.alert.closed",this),this.firstChild.tagName&&"button"===this.firstChild.tagName.toLowerCase()&&this.firstChild.removeEventListener("click",this)}attributeChangedCallback(e,o,t){switch(e){case"level":(!t||t&&-1===["info","warning","danger","success"].indexOf(t))&&(this.level="info");break;case"dismiss":case"acknowledge":t&&"true"!==t?this.removeCloseButton():this.appendCloseButton();break;case"href":t&&""!==t?this.querySelector("button.joomla-alert-button--close")||this.appendCloseButton():this.removeCloseButton()}}close(){this.dispatchCustomEvent("joomla.alert.close"),this.addEventListener("transitionend",function(){this.dispatchCustomEvent("joomla.alert.closed"),this.parentNode.removeChild(this)},!1),this.classList.remove("joomla-alert--show")}dispatchCustomEvent(e){let o=new CustomEvent(e);o.relatedTarget=this,this.dispatchEvent(o),this.removeEventListener(e,this)}appendCloseButton(){if(this.querySelector("button.joomla-alert--close")||this.querySelector("button.joomla-alert-button--close"))return;let e=this,o=document.createElement("button");this.hasAttribute("dismiss")?(o.classList.add("joomla-alert--close"),o.innerHTML='<span aria-hidden="true">&times;</span>',o.setAttribute("aria-label",this.getText("JCLOSE","Close"))):(o.classList.add("joomla-alert-button--close"),this.hasAttribute("acknowledge")?o.innerHTML=this.getText("JOK","ok"):o.innerHTML=this.getText("JOPEN","Open")),this.firstChild?this.insertBefore(o,this.firstChild):this.appendChild(o),o&&(this.href?o.addEventListener("click",function(){e.dispatchCustomEvent("joomla.alert.buttonClicked"),window.location.href=e.href,e.close()}):o.addEventListener("click",function(){e.dispatchCustomEvent("joomla.alert.buttonClicked"),e.getAttribute("data-callback")?(window[e.getAttribute("data-callback")](),e.close()):e.close()})),this.hasAttribute("auto-dismiss")&&setTimeout(function(){e.dispatchCustomEvent("joomla.alert.buttonClicked"),e.hasAttribute("data-callback")?window[e.getAttribute("data-callback")]():e.close()},parseInt(e.getAttribute("auto-dismiss"))?e.getAttribute("auto-dismiss"):3e3)}removeCloseButton(){let e=this.querySelector("button");e&&(e.removeEventListener("click",this),e.parentNode.removeChild(e))}getText(e,o){return window.Joomla&&Joomla.JText&&Joomla.JText._&&"function"==typeof Joomla.JText._&&Joomla.JText._(e)?Joomla.JText._(e):o}}customElements.define("joomla-alert",AlertElement);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L90

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.js

CWE-79
File Location: media/vendor/joomla-custom-elements/polyfills/webcomponents-hi-sd-ce.js:90
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.a[c]="pending",z.load(c,function(a,d){a=b.m(a,d||c);b.a[c]=a;b.b--;b.c(a);b.i()},function(){b.a[c]=null;b.b--;b.i()})};k.prototype.m=function(a,b){if(!a)return document.createDocumentFragment();y&&(a=a.replace(x,function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=q.la(c.getAttribute("href"),
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-hi.min.js

CWE-79
File Location: media/vendor/joomla-custom-elements/polyfills/webcomponents-hi.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";!function(e){function t(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}function n(e){if(d)return e.ownerDocument!==document?e.ownerDocument:null;var t=e.__importDoc;if(!t&&e.parentNode){if("function"==typeof(t=e.parentNode).closest)t=t.closest("link[rel=import]");else for(;!a(t)&&(t=t.parentNode););e.__importDoc=t}return t}function o(e){var t=document.querySelectorAll("link[rel=import]:not(import-dependency)"),n=t.length;n?u(t,function(t){return c(t,function(){--n||e()})}):e()}function r(e){function t(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",t),e())}document.addEventListener("readystatechange",t),t()}function i(e){r(function(){return o(function(){return e&&e()})})}function c(e,t){if(e.__loaded)t&&t();else if("script"===e.localName&&!e.src||"style"===e.localName&&!e.firstChild)e.__loaded=!0,t&&t();else{var n=function(o){e.removeEventListener(o.type,n),e.__loaded=!0,t&&t()};e.addEventListener("load",n),b&&"style"===e.localName||e.addEventListener("error",n)}}function a(e){return e.nodeType===Node.ELEMENT_NODE&&"link"===e.localName&&"import"===e.rel}function l(){var e=this;this.a={},this.b=0,this.g=new MutationObserver(function(t){return e.B(t)}),this.g.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function u(e,t,n){var o=e?e.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)t(e[n],n)}var d="import"in document.createElement("link"),s=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return s||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var p=/(^\/)|(^#)|(^[\w-\d]*:)/,f=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,h=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,y={w:function(e,t){if(e.href&&e.setAttribute("href",y.h(e.getAttribute("href"),t)),e.src&&e.setAttribute("src",y.h(e.getAttribute("src"),t)),"style"===e.localName){var n=y.s(e.textContent,t,f);e.textContent=y.s(n,t,m)}},s:function(e,t,n){return e.replace(n,function(e,n,o,r){return e=o.replace(/["']/g,""),t&&(e=y.u(e,t)),n+"'"+e+"'"+r})},h:function(e,t){return e&&p.test(e)?e:y.u(e,t)},u:function(e,t){if(void 0===y.f){y.f=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",y.f="http://a/c%20d"===n.href}catch(e){}}return y.f?new URL(e,t).href:((n=y.v)||(n=document.implementation.createHTMLDocument("temp"),y.v=n,n.j=n.createElement("base"),n.head.appendChild(n.j),n.i=n.createElement("a")),n.j.href=t,n.i.href=e,n.i.href||e)}},v={async:!0,load:function(e,t,n){if(e)if(e.match(/^data:/)){var o=(e=e.split(","))[1],o=-1<e[0].indexOf(";base64")?atob(o):decodeURIComponent(o);t(o)}else{var r=new XMLHttpRequest;r.open("GET",e,v.async),r.onload=function(){var e=r.responseURL||r.getResponseHeader("Location");e&&!e.indexOf("/")&&(e=(location.origin||location.protocol+"//"+location.host)+e);var o=r.response||r.responseText;304===r.status||!r.status||200<=r.status&&300>r.status?t(o,e):n(o)},r.send()}else n("error: href must be specified")}},b=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){return t.m(e)})},l.prototype.m=function(e){var t=this,n=e.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(e.import=o,this.l(e))}else this.b++,this.a[n]="pending",v.load(n,function(e,o){e=t.C(e,o||n),t.a[n]=e,t.b--,t.c(e),t.o()},function(){t.a[n]=null,t.b--,t.o()})},l.prototype.C=function(e,t){if(!e)return document.createDocumentFragment();b&&(e=e.replace(h,function(e,t,n){return-1===e.indexOf("type=")?t+" type=import-disable "+n:e}));var n=document.createElement("template");if(n.innerHTML=e,n.content)e=n.content;else for(e=document.createDocumentFragment();n.firstChild;)e.appendChild(n.firstChild);(n=e.querySelector("base"))&&(t=y.h(n.getAttribute("href"),t),n.removeAttribute("href"));var o=0;return u(e.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(e){c(e),y.w(e,t),e.setAttribute("import-dependency",""),"script"===e.localName&&!e.src&&e.textContent&&(e.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(e.textContent+"\n//# sourceURL="+t+(o?"-"+o:"")+".js\n")),e.textContent="",o++)}),e},l.prototype.o=function(){var e=this;if(!this.b){this.g.disconnect(),this.flatten(document);var t=!1,n=!1,o=function(){n&&t&&(e.c(document),e.b||(e.g.observe(document.head,{childList:!0,subtree:!0}),e.A()))};this.F(function(){n=!0,o()}),this.D(function(){t=!0,o()})}},l.prototype.flatten=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){var n=t.a[e.href];(e.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t.a[e.href]=e,e.readyState="loading",e.import=e,t.flatten(n),e.appendChild(n))})},l.prototype.D=function(e){function t(r){if(r<o){var i=n[r],a=document.createElement("script");i.removeAttribute("import-dependency"),u(i.attributes,function(e){return a.setAttribute(e.name,e.value)}),s=a,i.parentNode.replaceChild(a,i),c(a,function(){s=null,t(r+1)})}else e()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;t(0)},l.prototype.F=function(e){var t=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=t.length;if(o){var r=b&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");u(t,function(t){if(c(t,function(){t.removeAttribute("import-dependency"),--o||e()}),r&&t.parentNode!==document.head){var i=document.createElement(t.localName);for(i.__appliedElement=t,i.setAttribute("type","import-placeholder"),t.parentNode.insertBefore(i,t.nextSibling),i=n(t);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(t,i),t.removeAttribute("type")}})}else e()},l.prototype.A=function(){var e=this;u(document.querySelectorAll("link[rel=import]"),function(t){return e.l(t)},!0)},l.prototype.l=function(e){e.__loaded||(e.__loaded=!0,e.import&&(e.import.readyState="complete"),e.dispatchEvent(t(e.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.B=function(e){var t=this;u(e,function(e){return u(e.addedNodes,function(e){e&&e.nodeType===Node.ELEMENT_NODE&&(a(e)?t.m(e):t.c(e))})})},d){u(document.querySelectorAll("link[rel=import]"),function(e){e.import&&"loading"===e.import.readyState||(e.__loaded=!0)});var g=function(e){a(e=e.target)&&(e.__loaded=!0)};document.addEventListener("load",g,!0),document.addEventListener("error",g,!0)}else{var E=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!E||E.configurable?Node:Element).prototype,"baseURI",{get:function(){var e=a(this)?this:n(this);return e?e.href:E&&E.get?E.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(t("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),e.useNative=d,e.whenReady=i,e.importForElement=n}(window.HTMLImports=window.HTMLImports||{}),function(){var e=window.customElements,t=window.HTMLImports;if(window.WebComponents=window.WebComponents||{},e&&e.polyfillWrapFlushCallback){var n,o=function(){if(n){var e=n;return n=null,e(),!0}},r=t.whenReady;e.polyfillWrapFlushCallback(function(e){n=e,r(o)}),t.whenReady=function(e){r(function(){o()?t.whenReady(e):e()})}}t.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})}();var e=document.createElement("style");e.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var t=document.querySelector("head");t.insertBefore(e,t.firstChild)}).call(self);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-sd-ce.min.js

CWE-79
File Location: media/vendor/joomla-custom-elements/polyfills/webcomponents-sd-ce.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";var t="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;!function(){function e(){var t=this;this.m={},this.g=document.documentElement;var e=new l;e.rules=[],this.h=s.set(this.g,new s(e)),this.i=!1,this.b=this.a=null,Ut(function(){t.c()})}function n(){this.customStyles=[],this.enqueued=!1}function o(){}function r(t){this.cache={},this.c=void 0===t?100:t}function i(){}function s(t,e,n,o,r){this.D=t||null,this.b=e||null,this.ia=n||[],this.L=null,this.T=r||"",this.a=this.w=this.H=null}function a(){}function l(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function h(t,e){var n=Element.prototype;n.before=function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),e.Qa.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},n.after=function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),e.Pa.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},n.replaceWith=function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];var r=o.filter(function(t){return t instanceof Node&&Et(t)}),i=Et(this);e.Za.apply(this,o);for(var s=0;s<r.length;s++)t.a(r[s]);if(i)for(t.a(this),r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},n.remove=function(){var n=Et(this);e.remove.call(this),n&&t.a(this)}}function c(t,e,n){e.prepend=function(e){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),n.xa.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},e.append=function(e){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),n.append.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)}}function u(t){this.f=!1,this.a=t,this.h=new Map,this.g=function(t){return t()},this.b=!1,this.c=[],this.i=new p(t,document)}function d(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function p(t,e){this.b=t,this.a=e,this.K=void 0,this.b.c(this.a),"loading"===this.a.readyState&&(this.K=new MutationObserver(this.f.bind(this)),this.K.observe(this.a,{childList:!0,subtree:!0}))}function f(){this.m=new Map,this.l=new Map,this.i=[],this.h=!1}function y(t,e,n){if(t!==Pe)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=y.prototype,t.B(e,n),t}function _(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=M(t),t.__shady.lastChild=L(t),Oe(t);for(var e,n=t.__shady.childNodes=R(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,xe(e)}}function m(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.W=new Set}function v(t){return t.__shady&&void 0!==t.__shady.firstChild}function g(t){return"ShadyRoot"===t.Ga}function b(t){if(t=t.getRootNode(),g(t))return t}function w(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function E(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)w(t,n[o]);return t}function S(t,e){for(var n in e)t[n]=e[n]}function N(t){Yt.push(t),Xt.textContent=Jt++}function C(t){Zt||(Zt=!0,N(T)),Qt.push(t)}function T(){Zt=!1;for(var t=!!Qt.length;Qt.length;)Qt.shift()();return t}function x(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function O(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function A(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,s=r.length;i<s&&(n=r[i]);i++){var a;t:{var l;l=t;var h=e;switch((a=n).nodeType){case Node.ELEMENT_NODE:for(var c=a.localName,u="<"+c,d=a.attributes,p=0;l=d[p];p++)u+=" "+l.name+'="'+l.value.replace(pe,x)+'"';u+=">",a=ye[c]?u:u+A(a,h)+"</"+c+">";break t;case Node.TEXT_NODE:a=a.data,a=l&&_e[l.localName]?a:a.replace(fe,x);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}o+=a}return o}function D(t){return me.currentNode=t,me.parentNode()}function M(t){return me.currentNode=t,me.firstChild()}function L(t){return me.currentNode=t,me.lastChild()}function j(t){return me.currentNode=t,me.previousSibling()}function k(t){return me.currentNode=t,me.nextSibling()}function R(t){var e=[];for(me.currentNode=t,t=me.firstChild();t;)e.push(t),t=me.nextSibling();return e}function P(t){return ve.currentNode=t,ve.parentNode()}function H(t){return ve.currentNode=t,ve.firstChild()}function I(t){return ve.currentNode=t,ve.lastChild()}function F(t){return ve.currentNode=t,ve.previousSibling()}function V(t){return ve.currentNode=t,ve.nextSibling()}function W(t){var e=[];for(ve.currentNode=t,t=ve.firstChild();t;)e.push(t),t=ve.nextSibling();return e}function B(t){return A(t,function(t){return R(t)})}function q(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function U(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function G(t){U(t,Se),U(t,Ne),U(t,Te)}function $(t,e,n){xe(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function z(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n&&(void 0!==(i=n.__shady&&n.__shady.parentNode)&&i!==t||void 0===i&&D(n)!==t))throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");if(n===e)return e;e.parentNode&&K(e.parentNode,e);var o,r,i=b(t);if(r=i)t:{if(!e.__noInsertionPoint){var s;if("slot"===e.localName?s=[e]:e.querySelectorAll&&(s=e.querySelectorAll("slot")),s&&s.length){r=s;break t}}r=void 0}if(s=r,i&&("slot"===t.localName||s)&&i.J(),v(t)){if(r=n,Oe(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var a=e.childNodes,l=0;l<a.length;l++)$(a[l],t,r);e.__shady=e.__shady||{},r=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=r,e.__shady.childNodes=r}else $(e,t,r);Y(t)?(t.__shady.root.J(),o=!0):t.__shady.root&&(o=!0)}return o||(o=g(t)?t.host:t,n?(n=J(n),ee.call(o,e,n)):te.call(o,e)),Q(t,e),s&&i.Ja(s),e}function K(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n,o,r=b(e);if(v(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling),o=e.__shady.previousSibling;var i=e.__shady.nextSibling;o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=i),i&&(i.__shady=i.__shady||{},i.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),Y(t)&&(t.__shady.root.J(),n=!0)}return X(e),r&&((i=t&&"slot"===t.localName)&&(n=!0),((o=r.Ma(e))||i)&&r.J()),n||(n=g(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||n===D(e))&&ne.call(n,e)),Q(t,null,e),e}function X(t){if(t.__shady&&void 0!==t.__shady.ja)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)X(e);t.__shady&&(t.__shady.ja=void 0)}function J(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady.O)&&e.length?e[0]:J(t.nextSibling)),e}function Y(t){return(t=t&&t.__shady&&t.__shady.root)&&t.oa()}function Z(t,e){"slot"===e?(t=t.parentNode,Y(t)&&t.__shady.root.J()):"slot"===t.localName&&"name"===e&&(e=b(t))&&(e.Oa(t),e.J())}function Q(t,e,n){(t=t.__shady&&t.__shady.R)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.ab())}function tt(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.ja;return void 0===e&&(e=g(t)?t:(e=t.parentNode)?tt(e):t,document.documentElement.contains(t)&&(t.__shady.ja=e)),e}}function et(t,e,n){var o=[];return nt(t.childNodes,e,n,o),o}function nt(t,e,n,o){for(var r,i=0,s=t.length;i<s&&(r=t[i]);i++){var a;if(a=r.nodeType===Node.ELEMENT_NODE){var l=e,h=n,c=o,u=l(a=r);u&&c.push(a),h&&h(u)?a=u:(nt(a.childNodes,l,h,c),a=void 0)}if(a)break}}function ot(t){g(t=t.getRootNode())&&t.qa()}function rt(t,e,n){Ae||(Ae=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Ae&&"class"===e?Ae.setElementClass(t,n):(oe.call(t,e,n),Z(t,e))}function it(t,e){if(t.ownerDocument!==document)return se.call(document,t,e);var n=se.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=it(t[e],!0),n.appendChild(o)}return n}function st(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function at(t,e){if(!g)return t;t=st(t,!0);for(var n,o,r,i,s=0;s<e.length;s++)if(n=e[s],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!g(r)||-1<i)return n}function lt(t){function e(e,n){return e=new t(e,n),e.da=n&&!!n.composed,e}return S(e,t),e.prototype=t.prototype,e}function ht(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Ea);r++);}function ct(t){var e,n=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return e},configurable:!0});for(r=n.length-1;0<=r;r--)if(e=n[r],ht(t,e,"capture"),t.ea)return;Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});for(var o,r=0;r<n.length;r++){var i=(e=n[r]).__shady&&e.__shady.root;if((!r||i&&i===o)&&(ht(t,e,"bubble"),e!==window&&(o=e.getRootNode()),t.ea))break}}function ut(t,e,n,o,r,i){for(var s=0;s<t.length;s++){var a=t[s],l=a.type,h=a.capture,c=a.once,u=a.passive;if(e===a.node&&n===l&&o===h&&r===c&&i===u)return s}return-1}function dt(t,e,n){if(e){var o,r,i;"object"==typeof n?(o=!!n.capture,r=!!n.once,i=!!n.passive):(o=!!n,i=r=!1);var s=n&&n.fa||this,a=e.U;if(a){if(-1<ut(a,s,t,o,r,i))return}else e.U=[];a=function(o){r&&this.removeEventListener(t,e,n),o.__target||ft(o);var i;if(s!==this&&(i=Object.getOwnPropertyDescriptor(o,"currentTarget"),Object.defineProperty(o,"currentTarget",{get:function(){return s},configurable:!0})),o.composed||-1<o.composedPath().indexOf(s))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===s){var a="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(s,o);return s!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),a}},e.U.push({node:this,type:t,capture:o,once:r,passive:i,eb:a}),Le[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(a)):(this instanceof Window?he:ae).call(this,t,a,n)}}function pt(t,e,n){if(e){var o,r,i;"object"==typeof n?(o=!!n.capture,r=!!n.once,i=!!n.passive):(o=!!n,i=r=!1);var s,a=n&&n.fa||this,l=void 0;s=null;try{s=e.U}catch(t){}s&&-1<(r=ut(s,a,t,o,r,i))&&(l=s.splice(r,1)[0].eb,s.length||(e.U=void 0)),(this instanceof Window?ce:le).call(this,t,l||e,n),l&&Le[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(l=t.indexOf(l))&&t.splice(l,1))}}function ft(t){if(t.__target=t.target,t.ma=t.relatedTarget,Gt.P){var e=Me,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.gb=n,w(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else w(t,Me)}function yt(t,e){return{index:t,S:[],V:e}}function _t(t,e,n,o){var r=0,i=0,s=0,a=0,l=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(s=0;s<l;s++)if(t[s]!==n[s])break t;s=l}if(e==t.length&&o==n.length){for(var a=t.length,h=n.length,c=0;c<l-s&&mt(t[--a],n[--h]);)c++;a=c}if(r+=s,i+=s,e-=a,o-=a,!(e-r||o-i))return[];if(r==e){for(e=yt(r,0);i<o;)e.S.push(n[i++]);return[e]}if(i==o)return[yt(r,e-r)];for(o=o-(s=i)+1,a=e-(l=r)+1,e=Array(o),h=0;h<o;h++)e[h]=Array(a),e[h][0]=h;for(h=0;h<a;h++)e[0][h]=h;for(h=1;h<o;h++)for(c=1;c<a;c++)if(t[l+c-1]===n[s+h-1])e[h][c]=e[h-1][c-1];else{var u=e[h-1][c]+1,d=e[h][c-1]+1;e[h][c]=u<d?u:d}for(l=e.length-1,s=e[0].length-1,o=e[l][s],t=[];0<l||0<s;)l?s?(a=e[l-1][s-1],h=e[l-1][s],c=e[l][s-1],(u=h<c?h<a?h:a:c<a?c:a)==a?(a==o?t.push(0):(t.push(1),o=a),l--,s--):u==h?(t.push(3),l--,o=h):(t.push(2),s--,o=c)):(t.push(3),l--):(t.push(2),s--);for(t.reverse(),e=void 0,l=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(l.push(e),e=void 0),r++,i++;break;case 1:e||(e=yt(r,0)),e.V++,r++,e.S.push(n[i]),i++;break;case 2:e||(e=yt(r,0)),e.V++,r++;break;case 3:e||(e=yt(r,0)),e.S.push(n[i]),i++}return e&&l.push(e),l}function mt(t,e){return t===e}function vt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function gt(t){return ot(t),t.__shady&&t.__shady.assignedSlot||null}function bt(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function wt(t){var e=$e.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Et(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function St(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function Nt(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)Nt(o,e,n);o=St(t,r);continue}if("template"===i){o=St(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)Nt(r,e,n)}o=o.firstChild?o.firstChild:St(t,o)}}function Ct(t,e,n){t[e]=n}function Tt(t){var e=xt,n=t=t.replace(An.Sa,"").replace(An.port,""),o=new l;o.start=0,o.end=n.length;for(var r=o,i=0,s=n.length;i<s;i++)if("{"===n[i]){r.rules||(r.rules=[]);var a=r,h=a.rules[a.rules.length-1]||null;(r=new l).start=i+1,r.parent=a,r.previous=h,a.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function xt(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=Ot(n),n=n.replace(An.wa," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=!n.indexOf("@"),t.atRule?n.indexOf("@media")?n.match(An.Wa)&&(t.type=On.ca,t.keyframesName=t.selector.split(An.wa).pop()):t.type=On.MEDIA_RULE:t.type=n.indexOf("--")?On.STYLE_RULE:On.ka),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)xt(o,e);return t}function Ot(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function At(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var s,a=i.length;r<a&&(s=i[r]);r++)o=At(s,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(An.ra,"").replace(An.va,""),e=e.replace(An.Xa,"").replace(An.cb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function Dt(t){xn=(!t||!t.shimcssproperties)&&(Dn||!(navigator.userAgent.match("AppleWebKit/601")||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function Mt(t,e){return t?("string"==typeof t&&(t=Tt(t)),e&&kt(t,e),At(t,xn)):""}function Lt(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Tt(t.textContent)),t.__cssRules||null}function jt(t){return!!t.parent&&t.parent.type===On.ca}function kt(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===On.MEDIA_RULE){var s=t.selector.match(Rn);s&&(window.matchMedia(s[1]).matches||(r=!0))}if(i===On.STYLE_RULE?e(t):n&&i===On.ca?n(t):i===On.ka&&(r=!0),(t=t.rules)&&!r)for(var a,r=0,i=t.length;r<i&&(a=t[r]);r++)kt(a,e,n,o)}}function Rt(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,Pt(r,n,o),r}function Pt(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Hn?t.compareDocumentPosition(Hn)===Node.DOCUMENT_POSITION_PRECEDING&&(Hn=t):Hn=t}function Ht(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");var o;t:{var r=0;o=n+3;for(var i=t.length;o<i;o++)if("("===t[o])r++;else if(")"===t[o]&&!--r)break t;o=-1}return r=t.substring(n+4,o),n=t.substring(0,n),t=Ht(t.substring(o+1),e),-1===(o=r.indexOf(","))?e(n,r.trim(),"",t):e(n,r.substring(0,o).trim(),r.substring(o+1).trim(),t)}function It(t,e){Dn?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function Ft(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,T:n}}function Vt(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i,s=r.getRootNode(),a=[];(i=r).classList?a=Array.from(i.classList):i instanceof window.SVGElement&&i.hasAttribute("class")&&(a=i.getAttribute("class").split(/\s+/)),(i=-1<(a=(i=a).indexOf(to.c))?i[a+1]:"")&&s===r.ownerDocument?to.a(r,i,!0):s.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(s=s.host)&&(s=Ft(s).is,i!==s&&(i&&to.a(r,i,!0),to.a(r,s)))}}}}function Wt(t){(t=uo[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Bt(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function qt(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,po.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function Ut(t){requestAnimationFrame(function(){yo?yo(t):(fo||(fo=new Promise(function(t){co=t}),"complete"===document.readyState?co():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&co()})),fo.then(function(){t&&t()}))})}var Gt=window.ShadyDOM||{};Gt.Ta=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var $t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Gt.P=!!($t&&$t.configurable&&$t.get),Gt.ua=Gt.force||!Gt.Ta;var zt=Element.prototype,Kt=zt.matches||zt.matchesSelector||zt.mozMatchesSelector||zt.msMatchesSelector||zt.oMatchesSelector||zt.webkitMatchesSelector,Xt=document.createTextNode(""),Jt=0,Yt=[];new MutationObserver(function(){for(;Yt.length;)try{Yt.shift()()}catch(t){throw Xt.textContent=Jt++,t}}).observe(Xt,{characterData:!0});var Zt,Qt=[];T.list=Qt,m.prototype.ab=function(){var t=this;this.a||(this.a=!0,N(function(){t.b()}))},m.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.W.forEach(function(e){e(t)})}},m.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var te=Element.prototype.appendChild,ee=Element.prototype.insertBefore,ne=Element.prototype.removeChild,oe=Element.prototype.setAttribute,re=Element.prototype.removeAttribute,ie=Element.prototype.cloneNode,se=Document.prototype.importNode,ae=Element.prototype.addEventListener,le=Element.prototype.removeEventListener,he=Window.prototype.addEventListener,ce=Window.prototype.removeEventListener,ue=Element.prototype.dispatchEvent,de=Object.freeze({appendChild:te,insertBefore:ee,removeChild:ne,setAttribute:oe,removeAttribute:re,cloneNode:ie,importNode:se,addEventListener:ae,removeEventListener:le,kb:he,lb:ce,dispatchEvent:ue,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll}),pe=/[&\u00A0"]/g,fe=/[&\u00A0<>]/g,ye=O("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),_e=O("style script xmp iframe noembed noframes plaintext noscript".split(" ")),me=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),ve=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),ge=Object.freeze({parentNode:D,firstChild:M,lastChild:L,previousSibling:j,nextSibling:k,childNodes:R,parentElement:P,firstElementChild:H,lastElementChild:I,previousElementSibling:F,nextElementSibling:V,children:W,innerHTML:B,textContent:q}),be=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),we=document.implementation.createHTMLDocument("inert").createElement("div"),Ee=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Se={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:P(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:D(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:k(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:j(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return V(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return F(this)},configurable:!0}},Ne={childNodes:{get:function(){var t;if(v(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var e=this.firstChild;e;e=e.nextSibling)this.__shady.childNodes.push(e)}t=this.__shady.childNodes}else t=R(this);return t.item=function(e){return t[e]},t},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:M(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:L(this)},configurable:!0},textContent:{get:function(){if(v(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return q(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return H(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return I(this)},configurable:!0},children:{get:function(){var t;return t=v(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):W(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return v(this)?A(t):B(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(be&&be.set?be.set.call(we,t):we.innerHTML=t;we.firstChild;)e.appendChild(we.firstChild)},configurable:!0}},Ce={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ya||null},configurable:!0}},Te={activeElement:{get:function(){var t;if((t=Ee&&Ee.get?Ee.get.call(document):Gt.P?void 0:document.activeElement)&&t.nodeType){var e=!!g(this);if(this===document||e&&this.host!==t&&this.host.contains(t)){for(e=b(t);e&&e!==this;)t=e.host,e=b(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},xe=Gt.P?function(){}:function(t){t.__shady&&t.__shady.Ha||(t.__shady=t.__shady||{},t.__shady.Ha=!0,U(t,Se,!0))},Oe=Gt.P?function(){}:function(t){t.__shady&&t.__shady.Fa||(t.__shady=t.__shady||{},t.__shady.Fa=!0,U(t,Ne,!0),U(t,Ce,!0))},Ae=null,De={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Me={get composed(){return!1!==this.isTrusted&&void 0===this.da&&(this.da=De[this.type]),this.da||!1},composedPath:function(){return this.la||(this.la=st(this.__target,this.composed)),this.la},get target(){return at(this.currentTarget,this.composedPath())},get relatedTarget(){return this.ma?(this.na||(this.na=st(this.ma,!0)),at(this.currentTarget,this.na)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ea=this.Ea=!0}},Le={focus:!0,blur:!0},je=lt(window.Event),ke=lt(window.CustomEvent),Re=lt(window.MouseEvent),Pe={};y.prototype=Object.create(DocumentFragment.prototype),y.prototype.B=function(t,e){this.Ga="ShadyRoot",_(t),_(this),this.host=t,this.I=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.Ya="closed"!==this.I?this:null,this.N=!1,this.b=[],this.a=null;for(var n=0,o=(e=R(t)).length;n<o;n++)ne.call(t,e[n])},y.prototype.J=function(){var t=this;this.N||(this.N=!0,C(function(){return t.qa()}))},y.prototype.A=function(){for(var t=this,e=this;e;)e.N&&(t=e),e=e.Na();return t},y.prototype.Na=function(){var t=this.host.getRootNode();if(g(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.h(e))return t},y.prototype.qa=function(){this.N&&this.A()._renderRoot()},y.prototype._renderRoot=function(){this.N=!1,this.u(),this.m()},y.prototype.u=function(){for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.l(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.f(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.f(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.oa()&&n._renderRoot(),this.c(t.__shady.O,t.__shady.assignedNodes),n=t.__shady.pa){for(var o=0;o<n.length;o++)n[o].__shady.ga=null;t.__shady.pa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ha=!0)}t.__shady.ha&&(t.__shady.ha=!1,this.g(t))}},y.prototype.f=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.ga;t.__shady.ga=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ha=!0)},y.prototype.l=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.O=[],t.__shady.pa=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.ga=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},y.prototype.c=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)"slot"==n.localName?this.c(t,n.__shady.assignedNodes):t.push(e[o])},y.prototype.g=function(t){ue.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.g(t.__shady.assignedSlot)},y.prototype.m=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.G(n===this?this.host:n,this.o(n))},y.prototype.o=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){o=t[n];if(this.h(o))for(var o=o.__shady.O,r=0;r<o.length;r++)e.push(o[r]);else e.push(o)}return e},y.prototype.h=function(t){return"slot"==t.localName},y.prototype.G=function(t,e){for(var n,o=R(t),r=_t(e,e.length,o,o.length),i=0,s=0;i<r.length&&(n=r[i]);i++){for(var a,l=0;l<n.S.length&&(a=n.S[l]);l++)D(a)===t&&ne.call(t,a),o.splice(n.index+s,1);s-=n.V}for(i=0;i<r.length&&(n=r[i]);i++)for(s=o[n.index],l=n.index;l<n.index+n.V;l++)a=e[l],ee.call(t,a,s),o.splice(l,0,a)},y.prototype.Ja=function(t){var e;this.a=this.a||{},this.b=this.b||[];for(var n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},_(o),_(o.parentNode);var r=this.i(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.j(this.a[i])},y.prototype.i=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ia=e},y.prototype.j=function(t){return t.sort(function(t,e){t=vt(t);for(var n=vt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},y.prototype.Ma=function(t){var e;this.a=this.a||{},this.b=this.b||[];var n,o=this.a;for(n in o)for(var r=o[n],i=0;i<r.length;i++){var s,a=r[i];t:{for(s=a;s;){if(s==t){s=!0;break t}s=s.parentNode}s=void 0}s&&(r.splice(i,1),0<=(e=this.b.indexOf(a))&&this.b.splice(e,1),i--,this.F(a),e=!0)}return e},y.prototype.Oa=function(t){var e=t.Ia,n=this.i(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.j(e))}},y.prototype.F=function(t){if(t=t.__shady.O)for(var e=0;e<t.length;e++){var n=t[e],o=D(n);o&&ne.call(o,n)}},y.prototype.oa=function(){return!!this.b.length},y.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.addEventListener(t,e,n)},y.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.removeEventListener(t,e,n)},y.prototype.getElementById=function(t){return et(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){U(t,Ne,!0),U(t,Te,!0)}(y.prototype);var He={addEventListener:dt.bind(window),removeEventListener:pt.bind(window)},Ie={addEventListener:dt,removeEventListener:pt,appendChild:function(t){return z(this,t)},insertBefore:function(t,e){return z(this,t,e)},removeChild:function(t){return K(this,t)},replaceChild:function(t,e){return z(this,t,e),K(this,e),t},cloneNode:function(t){var e;if("template"==this.localName)e=ie.call(this,t);else if(e=ie.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return tt(this)},get isConnected(){var t=this.ownerDocument;if(t&&t.contains&&t.contains(this)||(t=t.documentElement)&&t.contains&&t.contains(this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof y?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return T(),ue.call(this,t)}},Fe={get assignedSlot(){return gt(this)}},Ve={querySelector:function(t){return et(this,function(e){return Kt.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return et(this,function(e){return Kt.call(e,t)})}},We={assignedNodes:function(t){if("slot"===this.localName)return ot(this),this.__shady?(t&&t.flatten?this.__shady.O:this.__shady.assignedNodes)||[]:[]}},Be=E({setAttribute:function(t,e){rt(this,t,e)},removeAttribute:function(t){re.call(this,t),Z(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new y(Pe,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){rt(this,"slot",t)},get assignedSlot(){return gt(this)}},Ve,We);Object.defineProperties(Be,Ce);var qe=E({importNode:function(t,e){return it(t,e)},getElementById:function(t){return et(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},Ve);Object.defineProperties(qe,{_activeElement:Te.activeElement});var Ue=HTMLElement.prototype.blur,Ge=E({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():Ue.call(this)}});Gt.ua&&(window.ShadyDOM={inUse:Gt.ua,patch:function(t){return t},isShadyRoot:g,enqueue:C,flush:T,settings:Gt,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.R||(t.__shady.R=new m),t.__shady.R.W.add(e);var n=t.__shady.R;return{Ka:e,K:n,La:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.K;e&&(e.W.delete(t.Ka),e.W.size||(t.La.__shady.R=null))},nativeMethods:de,nativeTree:ge},window.Event=je,window.CustomEvent=ke,window.MouseEvent=Re,function(){for(var t in Le)window.addEventListener(t,function(t){t.__target||(ft(t),ct(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;bt(window.Node.prototype,Ie),bt(window.Window.prototype,He),bt(window.Text.prototype,Fe),bt(window.DocumentFragment.prototype,Ve),bt(window.Element.prototype,Be),bt(window.Document.prototype,qe),window.HTMLSlotElement&&bt(window.HTMLSlotElement.prototype,We),bt(t.prototype,Ge),Gt.P&&(G(window.Node.prototype),G(window.Text.prototype),G(window.DocumentFragment.prototype),G(window.Element.prototype),G(t.prototype),G(window.Document.prototype),window.HTMLSlotElement&&G(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=y);var $e=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));f.prototype.B=function(t,e){this.m.set(t,e),this.l.set(e.constructor,e)},f.prototype.f=function(t){return this.m.get(t)},f.prototype.A=function(t){return this.l.get(t)},f.prototype.o=function(t){this.h=!0,this.i.push(t)},f.prototype.j=function(t){var e=this;this.h&&Nt(t,function(t){return e.g(t)})},f.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.i.length;e++)this.i[e](t)}},f.prototype.b=function(t){var e=[];for(Nt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.u(n)}},f.prototype.a=function(t){var e=[];for(Nt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},f.prototype.c=function(t,e){var n=this,o=[];if(Nt(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var r=t.import;r instanceof Node&&"complete"===r.readyState?(r.__CE_isImportDocument=!0,r.__CE_hasRegistry=!0):t.addEventListener("load",function(){var o=t.import;o.__CE_documentLoadHandled||(o.__CE_documentLoadHandled=!0,o.__CE_isImportDocument=!0,o.__CE_hasRegistry=!0,e.delete(o),n.c(o,e))})}else o.push(t)},e=e||new Set),this.h)for(t=0;t<o.length;t++)this.g(o[t]);for(t=0;t<o.length;t++)this.u(o[t])},f.prototype.u=function(t){if(void 0===t.__CE_state){var e=this.f(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Et(t)&&this.connectedCallback(t)}}},f.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},f.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},f.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},p.prototype.c=function(){this.K&&this.K.disconnect()},p.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.c(n[o])},d.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},u.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!wt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.f(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.f)throw Error("A custom element is already being defined.");this.f=!0;var o,r,i,s,a;try{var l=function(t){var e=h[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},h=e.prototype;if(!(h instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");o=l("connectedCallback"),r=l("disconnectedCallback"),i=l("adoptedCallback"),s=l("attributeChangedCallback"),a=e.observedAttributes||[]}catch(t){return}finally{this.f=!1}this.a.B(t,{localName:t,constructor:e,connectedCallback:o,disconnectedCallback:r,adoptedCallback:i,attributeChangedCallback:s,observedAttributes:a,constructionStack:[]}),this.c.push(t),this.b||(this.b=!0,this.g(function(){return n.j()}))},u.prototype.j=function(){if(!1!==this.b)for(this.b=!1,this.a.c(document);0<this.c.length;){var t=this.c.shift();(t=this.h.get(t))&&t.c()}},u.prototype.get=function(t){if(t=this.a.f(t))return t.constructor},u.prototype.whenDefined=function(t){if(!wt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new d,this.h.set(t,e),this.a.f(t)&&-1===this.c.indexOf(t)&&e.c(),e.f)},u.prototype.l=function(t){this.i.c();var e=this.g;this.g=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=u,u.prototype.define=u.prototype.define,u.prototype.get=u.prototype.get,u.prototype.whenDefined=u.prototype.whenDefined,u.prototype.polyfillWrapFlushCallback=u.prototype.l;var ze=window.Document.prototype.createElement,Ke=window.Document.prototype.createElementNS,Xe=window.Document.prototype.importNode,Je=window.Document.prototype.prepend,Ye=window.Document.prototype.append,Ze=window.Node.prototype.cloneNode,Qe=window.Node.prototype.appendChild,tn=window.Node.prototype.insertBefore,en=window.Node.prototype.removeChild,nn=window.Node.prototype.replaceChild,on=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),rn=window.Element.prototype.attachShadow,sn=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),an=window.Element.prototype.getAttribute,ln=window.Element.prototype.setAttribute,hn=window.Element.prototype.removeAttribute,cn=window.Element.prototype.getAttributeNS,un=window.Element.prototype.setAttributeNS,dn=window.Element.prototype.removeAttributeNS,pn=window.Element.prototype.insertAdjacentElement,fn=window.Element.prototype.prepend,yn=window.Element.prototype.append,_n=window.Element.prototype.before,mn=window.Element.prototype.after,vn=window.Element.prototype.replaceWith,gn=window.Element.prototype.remove,bn=window.HTMLElement,wn=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),En=window.HTMLElement.prototype.insertAdjacentElement,Sn=new function(){},Nn=window.customElements;if(!Nn||Nn.forcePolyfill||"function"!=typeof Nn.define||"function"!=typeof Nn.get){var Cn=new f;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.A(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(!o.length)return o=ze.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===Sn)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=Sn,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=bn.prototype,e}()}(Cn),function(t){Ct(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.f(e);if(n)return new n.constructor}return e=ze.call(this,e),t.g(e),e}),Ct(Document.prototype,"importNode",function(e,n){return e=Xe.call(this,e,n),this.__CE_hasRegistry?t.c(e):t.j(e),e}),Ct(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.f(n);if(o)return new o.constructor}return e=Ke.call(this,e,n),t.g(e),e}),c(t,Document.prototype,{xa:Je,append:Ye})}(Cn),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{if(i=void 0,this.firstChild){var o=this.childNodes,r=o.length;if(0<r&&Et(this))for(var i=Array(r),s=0;s<r;s++)i[s]=o[s]}if(n.set.call(this,e),i)for(e=0;e<i.length;e++)t.a(i[e])}}})}Ct(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=tn.call(this,e,n),Et(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Et(e),n=tn.call(this,e,n),o&&t.a(e),Et(this)&&t.b(e),n}),Ct(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=Qe.call(this,e),Et(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Et(e),o=Qe.call(this,e),n&&t.a(e),Et(this)&&t.b(e),o}),Ct(Node.prototype,"cloneNode",function(e){return e=Ze.call(this,e),this.ownerDocument.__CE_hasRegistry?t.c(e):t.j(e),e}),Ct(Node.prototype,"removeChild",function(e){var n=Et(e),o=en.call(this,e);return n&&t.a(e),o}),Ct(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){if(o=Array.prototype.slice.apply(e.childNodes),e=nn.call(this,e,n),Et(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}var o=Et(e),r=nn.call(this,e,n),i=Et(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),on&&on.get?e(Node.prototype,on):t.o(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)en.call(this,this.firstChild);Qe.call(this,document.createTextNode(t))}})})}(Cn),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Et(this)&&(r=[],Nt(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var s=r[i];1===s.__CE_state&&t.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?t.c(this):t.j(this),e}})}function n(e,n){Ct(e,"insertAdjacentElement",function(e,o){var r=Et(o);return e=n.call(this,e,o),r&&t.a(o),Et(e)&&t.b(o),e})}if(rn?Ct(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=rn.call(this,t)}):console.warn("Custom Elements: `Element#attachShadow` was not patched."),sn&&sn.get)e(Element.prototype,sn);else if(wn&&wn.get)e(HTMLElement.prototype,wn);else{var o=ze.call(document,"div");t.o(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return Ze.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)en.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)Qe.call(e,o.childNodes[0])}})})}Ct(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return ln.call(this,e,n);var o=an.call(this,e);ln.call(this,e,n),n=an.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Ct(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return un.call(this,e,n,o);var r=cn.call(this,e,n);un.call(this,e,n,o),o=cn.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Ct(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return hn.call(this,e);var n=an.call(this,e);hn.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Ct(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return dn.call(this,e,n);var o=cn.call(this,e,n);dn.call(this,e,n);var r=cn.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),En?n(HTMLElement.prototype,En):pn?n(Element.prototype,pn):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),c(t,Element.prototype,{xa:fn,append:yn}),h(t,{Qa:_n,Pa:mn,Za:vn,remove:gn})}(Cn),document.__CE_hasRegistry=!0;var Tn=new u(Cn);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Tn})}var xn,On={STYLE_RULE:1,ca:7,MEDIA_RULE:4,ka:1e3},An={Sa:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,ra:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,va:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Xa:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,cb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Wa:/^@[^\s]*keyframes/,wa:/\s+/g},Dn=!(window.ShadyDOM&&window.ShadyDOM.inUse);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?xn=window.ShadyCSS.nativeCss:window.ShadyCSS?(Dt(window.ShadyCSS),window.ShadyCSS=void 0):Dt(window.WebComponents&&window.WebComponents.flags);var Mn=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Ln=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,jn=/(--[\w-]+)\s*([:,;)]|$)/gi,kn=/(animation\s*:)|(animation-name\s*:)/,Rn=/@media\s(.*)/,Pn=/\{[^}]*\}/g,Hn=null;a.prototype.a=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.i(t,e||"",n)},a.prototype.i=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.u(t,e,n),t="template"===t.localName?(t.content||t.hb).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.i(t[o],e,n)},a.prototype.u=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(Zn);n?o&&(e=o.replace("style-scope","").replace(e,""),It(t,e)):It(t,(o?o+" ":"")+"style-scope "+e)}},a.prototype.b=function(t,e,n){var o=t.__cssBuild;return Dn||"shady"===o?e=Mt(e,n):(t=Ft(t),e=this.F(e,t.is,t.T,n)+"\n\n"),e.trim()},a.prototype.F=function(t,e,n,o){var r=this.f(e,n);e=this.h(e);var i=this;return Mt(t,function(t){t.c||(i.M(t,e,r),t.c=!0),o&&o(t,e,r)})},a.prototype.h=function(t){return t?Jn+t:""},a.prototype.f=function(t,e){return e?"[is="+t+"]":t},a.prototype.M=function(t,e,n){this.j(t,this.g,e,n)},a.prototype.j=function(t,e,n,o){t.selector=t.v=this.l(t,e,n,o)},a.prototype.l=function(t,e,n,o){var r=t.selector.split(Vn);if(!jt(t)){t=0;for(var i,s=r.length;t<s&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(Vn)},a.prototype.g=function(t,e,n){var o=this,r=!1;return t=t.trim(),t=t.replace(In,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=t.replace($n,qn+" $1"),t=t.replace(Wn,function(t,i,s){return r||(t=o.A(s,i,e,n),r=r||t.stop,i=t.Ra,s=t.value),i+s})},a.prototype.A=function(t,e,n,o){var r=t.indexOf(Gn);0<=t.indexOf(qn)?t=this.I(t,o):0!==r&&(t=n?this.m(t,n):t),n=!1,0<=r&&(e="",n=!0);var i;return n&&(i=!0,n&&(t=t.replace(Kn,function(t,e){return" > "+e}))),t=t.replace(Xn,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,Ra:e,stop:i}},a.prototype.m=function(t,e){return t=t.split(Yn),t[0]+=e,t.join(Yn)},a.prototype.I=function(t,e){var n=t.match(zn);return(n=n&&n[2].trim()||"")?n[0].match(Bn)?t.replace(zn,function(t,n,o){return e+o}):n.split(Bn)[0]===e?n:Qn:t.replace(qn,e)},a.prototype.G=function(t){t.selector=t.parsedSelector,this.o(t),this.j(t,this.B)},a.prototype.o=function(t){t.selector===Un&&(t.selector="html")},a.prototype.B=function(t){return t.match(Gn)?this.g(t,Fn):this.m(t.trim(),Fn)},t.Object.defineProperties(a.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var In=/:(nth[-\w]+)\(([^)]+)\)/,Fn=":not(.style-scope)",Vn=",",Wn=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Bn=/[[.:#*]/,qn=":host",Un=":root",Gn="::slotted",$n=new RegExp("^("+Gn+")"),zn=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Kn=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Xn=/(.*):dir\((?:(ltr|rtl))\)/,Jn=".",Yn=":",Zn="class",Qn="should_not_match",to=new a;s.get=function(t){return t?t.__styleInfo:null},s.set=function(t,e){return t.__styleInfo=e},s.prototype.c=function(){return this.D},s.prototype._getStyleRules=s.prototype.c;var eo=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),no=navigator.userAgent.match("Trident");i.prototype.M=function(t){var e=this,n={},o=[],r=0;kt(t,function(t){e.c(t),t.index=r++,e.G(t.s.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},i.prototype.c=function(t){if(!t.s){var e={},n={};this.b(t,n)&&(e.C=n,t.rules=null),e.cssText=this.F(t),t.s=e}},i.prototype.b=function(t,e){if(!(o=t.s)){for(var n,o=t.parsedCssText;t=Mn.exec(o);)"inherit"===(n=(t[2]||t[3]).trim())&&"unset"===n||(e[t[1].trim()]=n),n=!0;return n}if(o.C)return Object.assign(e,o.C),!0},i.prototype.F=function(t){return this.I(t.parsedCssText)},i.prototype.I=function(t){return t.replace(Pn,"").replace(Mn,"")},i.prototype.G=function(t,e){for(var n;n=jn.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},i.prototype.$=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},i.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=Ht(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},i.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(Ln.lastIndex=0,o=Ln.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=(i=n.substring(o)).trim(),i=this.a(i,e)||i;n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},i.prototype.B=function(t,e){var n="";t.s||this.c(t),t.s.cssText&&(n=this.f(t.s.cssText,e)),t.cssText=n},i.prototype.A=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.ta&&(t.ta=kn.test(n)),t.ta)if(null==t.X){t.X=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.X.push(r))}else{for(r=0;r<t.X.length;++r)o=e[t.X[r]],n=o(n);o=n}t.cssText=o},i.prototype.Z=function(t,e){var n={},o=this,r=[];return kt(t,function(t){t.s||o.c(t);var i=t.v||t.parsedSelector;e&&t.s.C&&i&&eo.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{C:n,key:r}},i.prototype.ba=function(t,e,n,o){if(e.s||this.c(e),e.s.C){t=(r=Ft(t)).is;var r=r.T,r=t?to.f(t,r):"html",i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(s=i===r+" > *."+r||-1!==i.indexOf("html"),a=!s&&0===i.indexOf(r)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=r,a&&(Dn&&!e.v&&(e.v=to.l(e,to.g,to.h(t),r)),n=e.v||r),o({bb:n,Va:a,jb:s}))}},i.prototype.Y=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return kt(e,function(e){r.ba(t,e,i,function(i){eo.call(t.ib||t,i.bb)&&(i.Va?r.b(e,n):r.b(e,o))})},null,!0),{$a:o,Ua:n}},i.prototype.aa=function(t,e,n){var o=this,r=Ft(t),i=to.f(r.is,r.T),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),r=s.get(t).D,l=this.h(r,n);return to.b(t,r,function(t){o.B(t,e),Dn||jt(t)||!t.cssText||(o.A(t,l),o.l(t,a,i,n))})},i.prototype.h=function(t,e){t=t.b;var n={};if(!Dn&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},i.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},i.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.v=t.v||t.selector,t.selector=t.v.replace(t.keyframesName,t.a)},i.prototype.l=function(t,e,n,o){t.v=t.v||t.selector,o="."+o;for(var r,i=t.v.split(","),s=0,a=i.length;s<a&&(r=i[s]);s++)i[s]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},i.prototype.o=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&It(t,r)},i.prototype.u=function(t,e,n,o){e=o?o.textContent||"":this.aa(t,e,n);var r=s.get(t),i=r.a;return i&&!Dn&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),Dn?r.a?(r.a.textContent=e,o=r.a):e&&(o=Rt(e,n,t.shadowRoot,r.b)):o?o.parentNode||(no&&-1<e.indexOf("@media")&&(o.textContent=e),Pt(o,null,r.b)):e&&(o=Rt(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},i.prototype.m=function(t,e){var n=Lt(t),o=this;t.textContent=Mt(n,function(t){var n=t.cssText=t.parsedCssText;t.s&&t.s.cssText&&(n=n.replace(An.ra,"").replace(An.va,""),t.cssText=o.f(n,e))})},t.Object.defineProperties(i.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var oo=new i,ro={},io=window.customElements;if(io&&!Dn){var so=io.define;io.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Hn?Hn.nextSibling:null)||r.firstChild),Hn=o,ro[t]=o,so.call(io,t,e,n)}}if(r.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.C[r]!==e[r])return!1}return!0},r.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({C:e,styleElement:n,w:o}),r.length>this.c&&r.shift(),this.cache[t]=r},r.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!Dn){var ao=new MutationObserver(Vt),lo=function(t){ao.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)lo(document);else{var ho=function(){lo(document.body)};window.HTMLImports?window.HTMLImports.whenReady(ho):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){ho(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else ho()})}o=function(){Vt(ao.takeRecords())}}var co,uo={},po=Promise.resolve(),fo=null,yo=window.HTMLImports&&window.HTMLImports.whenReady||null,_o=null,mo=null;n.prototype.sa=function(){!this.enqueued&&mo&&(this.enqueued=!0,Ut(mo))},n.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.sa())},n.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},n.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,_o&&_o(o),n.__shadyCSSCachedStyle=o)}}return t},n.prototype.addCustomStyle=n.prototype.b,n.prototype.getStyleForCustomStyle=n.prototype.a,n.prototype.processStyles=n.prototype.c,Object.defineProperties(n.prototype,{transformCallback:{get:function(){return _o},set:function(t){_o=t}},validateCallback:{get:function(){return mo},set:function(t){var e=!1;mo||(e=!0),mo=t,e&&this.sa()}}});var vo=new r;e.prototype.A=function(){o()},e.prototype.Y=function(t){return t+"-"+(this.m[t]=(this.m[t]||0)+1)},e.prototype.Ba=function(t){return Lt(t)},e.prototype.Da=function(t){return Mt(t)},e.prototype.M=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},e.prototype.$=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},e.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,uo[e]=t;var o=this.$(t),r=this.M(t);n={is:e,extends:n,fb:o},Dn||to.a(t.content,e),this.c();var i=Ln.test(r)||Mn.test(r);Ln.lastIndex=0,Mn.lastIndex=0,r=Tt(r),i&&xn&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],xn||(o=oo.M(t._styleAst)),o.length&&!xn||(e=this.Z(n,t._styleAst,Dn?t.content:null,ro[e]),t.a=e),t.c=o}},e.prototype.Z=function(t,e,n,o){if((e=to.b(t,e)).length)return Rt(e,t.is,n,o)},e.prototype.ba=function(t){var e,n,o=(r=Ft(t)).is,r=r.T,i=ro[o];return(o=uo[o])&&(e=o._styleAst,n=o.c),s.set(t,new s(e,i,n,0,r))},e.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=Wt)},e.prototype.G=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.u(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},e.prototype.c=function(){this.F(),this.G()},e.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(xn?this.za(t):(this.o(this.g,this.h),this.B(t)),this.b.enqueued=!1,this.i&&!xn&&this.styleDocument())}},e.prototype.styleElement=function(t,e){var n=Ft(t).is,o=s.get(t);if(o||(o=this.ba(t)),this.j(t)||(this.i=!0),e&&(o.L=o.L||{},Object.assign(o.L,e)),xn){if(o.L){e=o.L;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=uo[n])||this.j(t))&&r&&r.a&&!Bt(r)&&((Bt(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=to.b(t,o.D),qt(r)),Dn&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=to.b(t,o.D)),o.D=r._styleAst)}else this.o(t,o),o.ia&&o.ia.length&&this.I(t,o)},e.prototype.l=function(t){return(t=t.getRootNode().host)?s.get(t)?t:this.l(t):this.g},e.prototype.j=function(t){return t===this.g},e.prototype.I=function(t,e){var n=Ft(t).is,o=vo.fetch(n,e.H,e.ia),r=o?o.styleElement:null,i=e.w;e.w=o&&o.w||this.Y(n),r=oo.u(t,e.H,e.w,r),Dn||oo.o(t,e.w,i),o||vo.b(n,e.H,r,e.w)},e.prototype.o=function(t,e){var n=this.l(t),o=s.get(n),n=Object.create(o.H||null),r=oo.Y(t,e.D);t=oo.Z(o.D,t).C,Object.assign(n,r.Ua,t,r.$a),this.aa(n,e.L),oo.$(n),e.H=n},e.prototype.aa=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},e.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},e.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},e.prototype.za=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.ya(n)}},e.prototype.B=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&oo.m(n,this.h.H)}},e.prototype.u=function(t){var e=this,n=Lt(t);kt(n,function(t){Dn?to.o(t):to.G(t),xn&&(e.c(),e.a&&e.a.transformRule(t))}),xn?t.textContent=Mt(n):this.h.D.rules.push(n)},e.prototype.ya=function(t){if(xn&&this.a){var e=Lt(t);this.c(),this.a.transformRules(e),t.textContent=Mt(e)}},e.prototype.getComputedStyleValue=function(t,e){var n;return xn||(n=(s.get(t)||s.get(this.l(t))).H[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},e.prototype.Ca=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)&&(o=t.getAttribute("class")))for(var o=o.split(/\s/),r=0;r<o.length;r++)if(o[r]===to.c){n=o[r+1];break}n&&e.push(to.c,n),xn||(n=s.get(t))&&n.w&&e.push(oo.g,n.w),It(t,e.join(" "))},e.prototype.Aa=function(t){return s.get(t)},e.prototype.flush=e.prototype.A,e.prototype.prepareTemplate=e.prototype.prepareTemplate,e.prototype.styleElement=e.prototype.styleElement,e.prototype.styleDocument=e.prototype.styleDocument,e.prototype.styleSubtree=e.prototype.styleSubtree,e.prototype.getComputedStyleValue=e.prototype.getComputedStyleValue,e.prototype.setElementClass=e.prototype.Ca,e.prototype._styleInfoForNode=e.prototype.Aa,e.prototype.transformCustomStyleForDocument=e.prototype.u,e.prototype.getStyleAst=e.prototype.Ba,e.prototype.styleAstToString=e.prototype.Da,e.prototype.flushCustomStyles=e.prototype.f,Object.defineProperties(e.prototype,{nativeShadow:{get:function(){return Dn}},nativeCss:{get:function(){return xn}}});var go,bo,wo=new e;window.ShadyCSS&&(go=window.ShadyCSS.ApplyShim,bo=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:wo,prepareTemplate:function(t,e,n){wo.f(),wo.prepareTemplate(t,e,n)},styleSubtree:function(t,e){wo.f(),wo.styleSubtree(t,e)},styleElement:function(t){wo.f(),wo.styleElement(t)},styleDocument:function(t){wo.f(),wo.styleDocument(t)},getComputedStyleValue:function(t,e){return wo.getComputedStyleValue(t,e)},nativeCss:xn,nativeShadow:Dn},go&&(window.ShadyCSS.ApplyShim=go),bo&&(window.ShadyCSS.CustomStyleInterface=bo),function(){function t(){requestAnimationFrame(function(){window.WebComponents.ready=!0,window.document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}function e(){t(),n.removeEventListener("readystatechange",e)}var n=window.document;window.WebComponents=window.WebComponents||{},"loading"!==n.readyState?t():n.addEventListener("readystatechange",e)}()}()}).call(self);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1210

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:1210
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- fullscreenBtn.innerHTML = '<button type="button" aria-controls="' + t.id + '" title="' + fullscreenTitle + '" aria-label="' + fullscreenTitle + '" tabindex="0"></button>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1476

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:1476
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- play.innerHTML = '<button type="button" aria-controls="' + t.id + '" title="' + playTitle + '" aria-label="' + pauseTitle + '" tabindex="0"></button>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3821

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/table/plugin.js:3821
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- return elm.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi, '-').replace(/<[^>]+>/g, '').length === 0;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L5093

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/mobile/theme.js:5093
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2131

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.js:2131
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- elm.innerHTML = children;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L5305

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:5305
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self[i].innerHTML = value;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L24085

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:24085
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- doc.body.innerHTML = content;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L34109

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:34109
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- textBlock.innerHTML = '<br data-mce-bogus="1">';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L8

Insecure DOM Manipulation (XSS) in tinymce.min.js

CWE-79
File Location: media/vendor/tinymce/tinymce.min.js:8
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- var b=f.owner(a).dom();return a.dom()===b.activeElement},k=function(a){var c=void 0!==a?a.dom():g;return b.from(c.activeElement).map(d.fromDom)},l=function(b){var d=f.owner(b),g=k(d).filter(function(d){return e.closest(d,a.curry(c.eq,b))});g.fold(function(){h(b)},a.noop)},m=function(a){return k(f.owner(a)).filter(function(b){return a.dom().contains(b.dom())})};return{hasFocus:j,focus:h,blur:i,active:k,search:m,focusInside:l}}),g("2g",["23","2f","3q","1t","p","3p","3r","f","26"],function(a,b,c,d,e,f,g,h,i){var j=function(a,b){return a.dom.getParent(b,function(b){return"true"===a.dom.getContentEditable(b)})},k=function(b){return b.collapsed?a.from(h.getNode(b.startContainer,b.startOffset)).map(d.fromDom):a.none()},l=function(c,d){return k(d).bind(function(d){return g.isTableSection(d)?a.some(d):b.contains(c,d)===!1?a.some(c):a.none()})},m=function(a,b){l(d.fromDom(a.getBody()),b).bind(function(a){return f.firstPositionIn(a.dom())}).fold(function(){a.selection.normalize()},function(b){a.selection.setRng(b.toRange())})},n=function(a){if(a.setActive)try{a.setActive()}catch(b){a.focus()}else a.focus()},o=function(a){return c.hasFocus(a)||c.search(a).isSome()},p=function(a){return a.iframeElement&&c.hasFocus(d.fromDom(a.iframeElement))},q=function(a){var b=a.getBody();return b&&o(d.fromDom(b))},r=function(a){return a.inline?q(a):p(a)},s=function(a){var b,c=a.selection,d=a.settings.content_editable,f=a.getBody(),g=c.getRng();return a.quirks.refreshContentEditable(),b=j(a,c.getNode()),a.$.contains(f,b)?(n(b),m(a,g),void t(a)):(void 0!==a.bookmark&&r(a)===!1&&i.getRng(a).each(function(b){a.selection.setRng(b),g=b}),d||(e.opera||n(f),a.getWin().focus()),(e.gecko||d)&&(n(f),m(a,g)),void t(a))},t=function(a){a.editorManager.setActive(a)},u=function(a,b){a.removed||(b?t(a):s(a))};return{focus:u,hasFocus:r}}),g("2h",["2b"],function(a){var b=function(a){for(var b=0,c=0,d=a;d&&d.nodeType;)b+=d.offsetLeft||0,c+=d.offsetTop||0,d=d.offsetParent;return{x:b,y:c}},c=function(a,b,c){var d={elm:b,alignToTop:c};return a.fire("scrollIntoView",d),d.isDefaultPrevented()},d=function(d,e,f){var g,h,i,j,k=d.dom,l=k.getRoot(),m=0;if(!c(d,e,f)&&a.isElement(e)){if(f===!1&&(m=e.offsetHeight),"BODY"!==l.nodeName){var n=d.selection.getScrollContainer();if(n)return g=b(e).y-b(n).y+m,j=n.clientHeight,i=n.scrollTop,void((g<i||g+25>i+j)&&(n.scrollTop=g<i?g:g-j+25))}h=k.getViewPort(d.getWin()),g=k.getPos(e).y+m,i=h.y,j=h.h,(g<h.y||g+25>i+j)&&d.getWin().scrollTo(0,g<i?g:g-j+25)}};return{scrollIntoView:d}}),g("2i",["1i"],function(a){var b=function(b,c){return a.map(c,function(a){var c=b.fire("GetSelectionRange",{range:a});return c.range!==a?c.range:a})};return{processRanges:b}}),g("53",["4o","1t","4f","5u","4g","3k"],function(a,b,c,d,e,f){var g=function(a,c){return b.fromDom(a.dom().cloneNode(c))},h=function(a){return g(a,!1)},i=function(a){return g(a,!0)},j=function(c,d){var e=b.fromTag(d),f=a.clone(c);return a.setAll(e,f),e},k=function(a,b){var c=j(a,b),e=f.children(i(a));return d.append(c,e),c},l=function(a,b){var g=j(a,b);c.before(a,g);var h=f.children(a);return d.append(g,h),e.remove(a),g};return{shallow:h,shallowAs:j,deep:i,copy:k,mutate:l}}),g("54",["5c","2d","5z"],function(a,b,c){var d=function(a){return b.one(a)},e=function(c,d,e){return a.ancestor(c,function(a){return b.is(a,d)},e)},f=function(c,d){return a.sibling(c,function(a){return b.is(a,d)})},g=function(c,d){return a.child(c,function(a){return b.is(a,d)})},h=function(a,c){return b.one(c,a)},i=function(a,d,f){return c(b.is,e,a,d,f)};return{first:d,ancestor:e,sibling:f,child:g,descendant:h,closest:i}}),g("55",["1","2f","3k"],function(a,b,c){var d=function(a){return a.slice(0,-1)},e=function(a,e,f){return b.contains(e,a)?d(c.parents(a,function(a){return f(a)||b.eq(a,e)})):[]},f=function(b,c){return e(b,c,a.constant(!1))},g=function(a,b){return[a].concat(f(a,b))};return{parentsUntil:e,parents:f,parentsAndSelf:g}}),g("56",["1i","1","23","5b","2f","1t","3l","3k","2b"],function(a,b,c,d,e,f,g,h,i){var j=function(a){var b=a.startContainer,d=a.startOffset;return i.isText(b)?0===d?c.some(f.fromDom(b)):c.none():c.from(b.childNodes[d]).map(f.fromDom)},k=function(a){var b=a.endContainer,d=a.endOffset;return i.isText(b)?d===b.data.length?c.some(f.fromDom(b)):c.none():c.from(b.childNodes[d-1]).map(f.fromDom)},l=function(a){return h.firstChild(a).fold(b.constant([a]),function(b){return[a].concat(l(b))})},m=function(a){return h.lastChild(a).fold(b.constant([a]),function(b){return"br"===g.name(b)?h.prevSibling(b).map(function(b){return[a].concat(m(b))}).getOr([]):[a].concat(m(b))})},n=function(c,f){return d.liftN([j(f),k(f)],function(d,f){var g=a.find(l(c),b.curry(e.eq,d)),h=a.find(m(c),b.curry(e.eq,f));return g.isSome()&&h.isSome()}).getOr(!1)};return{hasAllContentsSelected:n}}),g("57",["1i","23","45","2f","4f","5u","53","1t","4o","4i"],function(a,b,c,d,e,f,g,h,i,j){var k=c.immutable("element","width","rows"),l=c.immutable("element","cells"),m=c.immutable("x","y"),n=function(a,b){var c=parseInt(i.get(a,b),10);return isNaN(c)?1:c},o=function(a,b,c,d,e){for(var f=n(e,"rowspan"),h=n(e,"colspan"),i=a.rows(),j=c;j<c+f;j++){i[j]||(i[j]=l(g.deep(d),[]));for(var k=b;k<b+h;k++){var m=i[j].cells();m[k]=j==c&&k==b?e:g.shallow(e)}}},p=function(a,b,c){var d=a.rows(),e=d[c]?d[c].cells():[];return!!e[b]},q=function(a,b,c){for(;p(a,b,c);)b++;return b},r=function(b){return a.foldl(b,function(a,b){return b.cells().length>a?b.cells().length:a},0)},s=function(a,c){for(var e=a.rows(),f=0;f<e.length;f++)for(var g=e[f].cells(),h=0;h<g.length;h++)if(d.eq(g[h],c))return b.some(m(h,f));return b.none()},t=function(a,b,c,d,e){for(var f=[],g=a.rows(),h=c;h<=e;h++){var i=g[h].cells(),j=b<d?i.slice(b,d+1):i.slice(d,b+1);f.push(l(g[h].element(),j))}return f},u=function(a,b,c){var d=b.x(),e=b.y(),f=c.x(),g=c.y(),h=e<g?t(a,d,e,f,g):t(a,d,g,f,e);return k(a.element(),r(h),h)},v=function(a,b){var c=g.shallow(a.element()),d=h.fromTag("tbody");return f.append(d,b),e.append(c,d),c},w=function(b){return a.map(b.rows(),function(b){var c=a.map(b.cells(),function(a){var b=g.deep(a);return i.remove(b,"colspan"),i.remove(b,"rowspan"),b}),d=g.shallow(b.element());return f.append(d,c),d})},x=function(b){var c=k(g.shallow(b),0,[]);return a.each(j.descendants(b,"tr"),function(b,d){a.each(j.descendants(b,"td,th"),function(a,e){o(c,q(c,e,d),d,b,a)})}),k(c.element(),r(c.rows()),c.rows())},y=function(a){return v(a,w(a))},z=function(a,b,c){return s(a,b).bind(function(b){return s(a,c).map(function(c){return u(a,b,c)})})};return{fromDom:x,toDom:y,subsection:z}}),g("2k",["1i","1t","f"],function(a,b,c){var d=function(a){for(var b=[],c=0;c<a.rangeCount;c++)b.push(a.getRangeAt(c));return b},e=function(d){return a.bind(d,function(a){var d=c.getSelectedNode(a);return d?[b.fromDom(d)]:[]})},f=function(a){return d(a).length>1};return{getRanges:d,getSelectedNodes:e,hasMultipleRanges:f}}),g("58",["1i","1t","4i","3r","2k"],function(a,b,c,d,e){var f=function(b){return a.filter(e.getSelectedNodes(b),d.isTableCell)},g=function(a){var b=c.descendants(a,"td[data-mce-selected],th[data-mce-selected]");return b},h=function(a,b){var c=g(b),d=f(a);return c.length>0?c:d},i=function(a){return h(e.getRanges(a.selection.getSel()),b.fromDom(a.getBody()))};return{getCellsFromRanges:f,getCellsFromElement:g,getCellsFromElementOrRanges:h,getCellsFromEditor:i}}),g("3s",["1i","1","2f","4f","53","1t","4v","3l","54","3k","3r","55","56","57","58"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=function(b){return a.find(b,function(a){return"ul"===h.name(a)||"ol"===h.name(a)})},q=function(c,d){return a.find(c,function(a){return"li"===h.name(a)&&m.hasAllContentsSelected(a,d)}).fold(b.constant([]),function(a){return p(c).map(function(a){return[f.fromTag("li"),f.fromTag(h.name(a))]}).getOr([])})},r=function(b,c){var e=a.foldl(c,function(a,b){return d.append(b,a),b},b);return c.length>0?g.fromElements([e]):e},s=function(a){return k.isListItem(a)?j.parent(a).filter(k.isList).fold(b.constant([]),function(b){return[a,b]}):k.isList(a)?[a]:[]},t=function(b,c){var d=f.fromDom(c.commonAncestorContainer),g=l.parentsAndSelf(d,b),h=a.filter(g,function(a){return k.isInline(a)||k.isHeading(a)}),i=q(g,c),j=h.concat(i.length?i:s(d));return a.map(j,e.shallow)},u=function(){return g.fromElements([])},v=function(a,b){return r(f.fromDom(b.cloneContents()),t(a,b))},w=function(a,d){return i.ancestor(d,"table",b.curry(c.eq,a))},x=function(a,b){return w(a,b[0]).bind(function(a){var c=b[0],d=b[b.length-1],e=n.fromDom(a);return n.subsection(e,c,d).map(function(a){return g.fromElements([n.toDom(a)])})}).getOrThunk(u)},y=function(a,b){return b.length>0&&b[0].collapsed?u():v(a,b[0])},z=function(a,b){var c=o.getCellsFromElementOrRanges(b,a);return c.length>0?x(a,c):y(a,b)};return{read:z}}),g("2j",["1t","2i","3s","2k","2c"],function(a,b,c,d,e){var f=function(f,g){var h,i,j,k=f.selection.getRng(),l=f.dom.create("body"),m=f.selection.getSel(),n=b.processRanges(f,d.getRanges(m));return g=g||{},h=i="",g.get=!0,g.format=g.format||"html",g.selection=!0,g=f.fire("BeforeGetContent",g),g.isDefaultPrevented()?(f.fire("GetContent",g),g.content):"text"===g.format?f.selection.isCollapsed()?"":e.trim(k.text||(m.toString?m.toString():"")):(k.cloneContents?(j=g.contextual?c.read(a.fromDom(f.getBody()),n).dom():k.cloneContents(),j&&l.appendChild(j)):void 0!==k.item||void 0!==k.htmlText?(l.innerHTML="<br>"+(k.item?k.item(0).outerHTML:k.htmlText),l.removeChild(l.firstChild)):l.innerHTML=k.toString(),/^\s/.test(l.innerHTML)&&(h=" "),/\s+$/.test(l.innerHTML)&&(i=" "),g.getInner=!0,g.content=f.selection.isCollapsed()?"":h+f.selection.serializer.serialize(l,g)+i,f.fire("GetContent",g),g.content)};return{getContent:f}}),g("2l",[],function(){var a=function(a,b,c){var d,e,f,g=a.selection.getRng(),h=a.getDoc();if(c=c||{format:"html"},c.set=!0,c.selection=!0,c.content=b,!c.no_events&&(c=a.fire("BeforeSetContent",c),c.isDefaultPrevented()))return void a.fire("SetContent",c);if(b=c.content,g.insertNode){b+='<span id="__caret">_</span>',g.startContainer==h&&g.endContainer==h?h.body.innerHTML=b:(g.deleteContents(),0===h.body.childNodes.length?h.body.innerHTML=b:g.createContextualFragment?g.insertNode(g.createContextualFragment(b)):(e=h.createDocumentFragment(),f=h.createElement("div"),e.appendChild(f),f.outerHTML=b,g.insertNode(e))),d=a.dom.get("__caret"),g=h.createRange(),g.setStartBefore(d),g.setEndBefore(d),a.selection.setRng(g),a.dom.remove("__caret");try{a.selection.setRng(g)}catch(a){}}else g.item&&(h.execCommand("Delete",!1,null),g=a.getRng()),/^\s+/.test(b)?(g.pasteHTML('<span id="__mce_tmp">_</span>'+b),a.dom.remove("__mce_tmp")):g.pasteHTML(b);c.no_events||a.fire("SetContent",c)};return{setContent:a}}),g("h",["2f","1t","2g","p","2a","a","b","f","2h","k","2i","2j","2k","26","2l","1e"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=p.each,r=p.trim,s=function(c){return!(!c||!c.ownerDocument)&&a.contains(b.fromDom(c.ownerDocument),b.fromDom(c))},t=function(a){return!!a&&(!!a.select||s(a.startContainer)&&s(a.endContainer))},u=function(a,b,c,d){var e=this;e.dom=a,e.win=b,e.serializer=c,e.editor=d,e.bookmarkManager=new f(e),e.controlSelection=new g(e,d)};return u.prototype={setCursorLocation:function(a,b){var c=this,d=c.dom.createRng();a?(d.setStart(a,b),d.setEnd(a,b),c.setRng(d),c.collapse(!1)):(c._moveEndPoint(d,c.editor.getBody(),!0),c.setRng(d))},getContent:function(a){return l.getContent(this.editor,a)},setContent:function(a,b){o.setContent(this.editor,a,b)},getStart:function(a){var b,c=this,d=c.getRng();return b=d.startContainer,1==b.nodeType&&b.hasChildNodes()&&(a&&d.collapsed||(b=b.childNodes[Math.min(b.childNodes.length-1,d.startOffset)])),b&&3==b.nodeType?b.parentNode:b},getEnd:function(a){var b,c,d=this,e=d.getRng();return b=e.endContainer,c=e.endOffset,1==b.nodeType&&b.hasChildNodes()&&(a&&e.collapsed||(b=b.childNodes[c>0?c-1:c])),b&&3==b.nodeType?b.parentNode:b},getBookmark:function(a,b){return this.bookmarkManager.getBookmark(a,b)},moveToBookmark:function(a){return this.bookmarkManager.moveToBookmark(a)},select:function(a,b){var c,d=this,e=d.dom,f=e.createRng();if(a){if(!b&&d.controlSelection.controlSelect(a))return;c=e.nodeIndex(a),f.setStart(a.parentNode,c),f.setEnd(a.parentNode,c+1),b&&(d._moveEndPoint(f,a,!0),d._moveEndPoint(f,a)),d.setRng(f)}return a},isCollapsed:function(){var a=this,b=a.getRng(),c=a.getSel();return!(!b||b.item)&&(b.compareEndPoints?0===b.compareEndPoints("StartToEnd",b):!c||b.collapsed)},collapse:function(a){var b=this,c=b.getRng();c.collapse(!!a),b.setRng(c)},getSel:function(){var a=this.win;return a.getSelection?a.getSelection():a.document.selection},getRng:function(a){var b,d,e,f,g=this,h=function(a,b,c){try{return b.compareBoundaryPoints(a,c)}catch(a){return-1}};if(!g.win)return null;if(f=g.win.document,"undefined"==typeof f||null===f)return null;if(void 0!==g.editor.bookmark&&c.hasFocus(g.editor)===!1){var i=n.getRng(g.editor);if(i.isSome())return i.getOr(f.createRange())}try{(b=g.getSel())&&(d=b.rangeCount>0?b.getRangeAt(0):b.createRange?b.createRange():f.createRange())}catch(a){}return d=k.processRanges(g.editor,[d])[0],d||(d=f.createRange?f.createRange():f.body.createTextRange()),d.setStart&&9===d.startContainer.nodeType&&d.collapsed&&(e=g.dom.getRoot(),d.setStart(e,0),d.setEnd(e,0)),g.selectedRange&&g.explicitRange&&(0===h(d.START_TO_START,d,g.selectedRange)&&0===h(d.END_TO_END,d,g.selectedRange)?d=g.explicitRange:(g.selectedRange=null,g.explicitRange=null)),d},setRng:function(a,b){var c,e,f,g=this;if(t(a))if(a.select){g.explicitRange=null;try{a.select()}catch(a){}}else{if(c=g.getSel(),f=g.editor.fire("SetSelectionRange",{range:a,forward:b}),a=f.range,c){g.explicitRange=a;try{c.removeAllRanges(),c.addRange(a)}catch(a){}b===!1&&c.extend&&(c.collapse(a.endContainer,a.endOffset),c.extend(a.startContainer,a.startOffset)),g.selectedRange=c.rangeCount>0?c.getRangeAt(0):null}a.collapsed||a.startContainer!==a.endContainer||!c.setBaseAndExtent||d.ie||a.endOffset-a.startOffset<2&&a.startContainer.hasChildNodes()&&(e=a.startContainer.childNodes[a.startOffset],e&&"IMG"===e.tagName&&(c.setBaseAndExtent(a.startContainer,a.startOffset,a.endContainer,a.endOffset),c.anchorNode===a.startContainer&&c.focusNode===a.endContainer||c.setBaseAndExtent(e,0,e,1))),g.editor.fire("AfterSetSelectionRange",{range:a,forward:b})}},setNode:function(a){var b=this;return b.setContent(b.dom.getOuterHTML(a)),a},getNode:function(){var a,b,c,d,e,f=this,g=f.getRng(),h=f.dom.getRoot(),i=function(a,b){for(var c=a;a&&3===a.nodeType&&0===a.length;)a=b?a.nextSibling:a.previousSibling;return a||c};return g?(b=g.startContainer,c=g.endContainer,d=g.startOffset,e=g.endOffset,a=g.commonAncestorContainer,!g.collapsed&&(b==c&&e-d<2&&b.hasChildNodes()&&(a=b.childNodes[d]),3===b.nodeType&&3===c.nodeType&&(b=b.length===d?i(b.nextSibling,!0):b.parentNode,c=0===e?i(c.previousSibling,!1):c.parentNode,b&&b===c))?b:a&&3==a.nodeType?a.parentNode:a):h},getSelectedBlocks:function(a,b){var c,d,e=this,f=e.dom,g=[];if(d=f.getRoot(),a=f.getParent(a||e.getStart(),f.isBlock),b=f.getParent(b||e.getEnd(),f.isBlock),a&&a!=d&&g.push(a),a&&b&&a!=b){c=a;for(var h=new j(a,d);(c=h.next())&&c!=b;)f.isBlock(c)&&g.push(c)}return b&&a!=b&&b!=d&&g.push(b),g},isForward:function(){var a,b,c=this.dom,d=this.getSel();return!(d&&d.anchorNode&&d.focusNode)||(a=c.createRng(),a.setStart(d.anchorNode,d.anchorOffset),a.collapse(!0),b=c.createRng(),b.setStart(d.focusNode,d.focusOffset),b.collapse(!0),a.compareBoundaryPoints(a.START_TO_START,b)<=0)},normalize:function(){var a=this,b=a.getRng();return new h(a.dom).normalize(b)&&!m.hasMultipleRanges(a.getSel())&&a.setRng(b,a.isForward()),b},selectorChanged:function(a,b){var c,d=this;return d.selectorChangedData||(d.selectorChangedData={},c={},d.editor.on("NodeChange",function(a){var b=a.element,e=d.dom,f=e.getParents(b,null,e.getRoot()),g={};q(d.selectorChangedData,function(a,b){q(f,function(d){if(e.is(d,b))return c[b]||(q(a,function(a){a(!0,{node:d,selector:b,parents:f})}),c[b]=a),g[b]=a,!1})}),q(c,function(a,d){g[d]||(delete c[d],q(a,function(a){a(!1,{node:b,selector:d,parents:f})}))})})),d.selectorChangedData[a]||(d.selectorChangedData[a]=[]),d.selectorChangedData[a].push(b),d},getScrollContainer:function(){for(var a,b=this.dom.getRoot();b&&"BODY"!=b.nodeName;){if(b.scrollHeight>b.clientHeight){a=b;break}b=b.parentNode}return a},scrollIntoView:function(a,b){i.scrollIntoView(this.editor,a,b)},placeCaretAt:function(a,b){this.setRng(h.getCaretRangeFromPoint(a,b,this.editor.getDoc()))},_moveEndPoint:function(a,b,c){var e=b,f=new j(b,e),g=this.dom.schema.getNonEmptyElements();do{if(3==b.nodeType&&0!==r(b.nodeValue).length)return void(c?a.setStart(b,0):a.setEnd(b,b.nodeValue.length));if(g[b.nodeName]&&!/^(TD|TH)$/.test(b.nodeName))return void(c?a.setStartBefore(b):"BR"==b.nodeName?a.setEndBefore(b):a.setEndAfter(b));if(d.ie&&d.ie<11&&this.dom.isBlock(b)&&this.dom.isEmpty(b))return void(c?a.setStart(b,0):a.setEnd(b,0))}while(b=c?f.next():f.prev());"BODY"==e.nodeName&&(c?a.setStart(e,0):a.setEnd(e,e.childNodes.length))},getBoundingClientRect:function(){var a=this.getRng();return a.collapsed?e.fromRangeStart(a).getClientRects()[0]:a.getBoundingClientRect()},destroy:function(){this.win=null,this.controlSelection.destroy()}},u}),g("u",[],function(){var a=/^[ \t\r\n]*$/,b={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},c=function(a,b,c){var d,e,f=c?"lastChild":"firstChild",g=c?"prev":"next";if(a[f])return a[f];if(a!==b){if(d=a[g])return d;for(e=a.parent;e&&e!==b;e=e.parent)if(d=e[g])return d}},d=function(a,b){this.name=a,this.type=b,1===b&&(this.attributes=[],this.attributes.map={})};return d.prototype={replace:function(a){var b=this;return a.parent&&a.remove(),b.insert(a,b),b.remove(),b},attr:function(a,b){var c,d,e,f=this;if("string"!=typeof a){for(d in a)f.attr(d,a[d]);return f}if(c=f.attributes){if(b!==e){if(null===b){if(a in c.map)for(delete c.map[a],d=c.length;d--;)if(c[d].name===a)return c=c.splice(d,1),f;return f}if(a in c.map){for(d=c.length;d--;)if(c[d].name===a){c[d].value=b;break}}else c.push({name:a,value:b});return c.map[a]=b,f}return c.map[a]}},clone:function(){var a,b,c,e,f,g=this,h=new d(g.name,g.type);if(c=g.attributes){for(f=[],f.map={},a=0,b=c.length;a<b;a++)e=c[a],"id"!==e.name&&(f[f.length]={name:e.name,value:e.value},f.map[e.name]=e.value);h.attributes=f}return h.value=g.value,h.shortEnded=g.shortEnded,h},wrap:function(a){var b=this;return b.parent.insert(a,b),a.append(b),b},unwrap:function(){var a,b,c=this;for(a=c.firstChild;a;)b=a.next,c.insert(a,c,!0),a=b;c.remove()},remove:function(){var a=this,b=a.parent,c=a.next,d=a.prev;return b&&(b.firstChild===a?(b.firstChild=c,c&&(c.prev=null)):d.next=c,b.lastChild===a?(b.lastChild=d,d&&(d.next=null)):c.prev=d,a.parent=a.next=a.prev=null),a},append:function(a){var b,c=this;return a.parent&&a.remove(),b=c.lastChild,b?(b.next=a,a.prev=b,c.lastChild=a):c.lastChild=c.firstChild=a,a.parent=c,a},insert:function(a,b,c){var d;return a.parent&&a.remove(),d=b.parent||this,c?(b===d.firstChild?d.firstChild=a:b.prev.next=a,a.prev=b.prev,a.next=b,b.prev=a):(b===d.lastChild?d.lastChild=a:b.next.prev=a,a.next=b.next,a.prev=b,b.next=a),a.parent=d,a},getAll:function(a){var b,d=this,e=[];for(b=d.firstChild;b;b=c(b,d))b.name===a&&e.push(b);return e},empty:function(){var a,b,d,e=this;if(e.firstChild){for(a=[],d=e.firstChild;d;d=c(d,e))a.push(d);for(b=a.length;b--;)d=a[b],d.parent=d.firstChild=d.lastChild=d.next=d.prev=null}return e.firstChild=e.lastChild=null,e},isEmpty:function(b,d,e){var f,g,h=this,i=h.firstChild;if(d=d||{},i)do{if(1===i.type){if(i.attributes.map["data-mce-bogus"])continue;if(b[i.name])return!1;for(f=i.attributes.length;f--;)if(g=i.attributes[f].name,"name"===g||0===g.indexOf("data-mce-bookmark"))return!1}if(8===i.type)return!1;if(3===i.type&&!a.test(i.value))return!1;if(3===i.type&&i.parent&&d[i.parent.name]&&a.test(i.value))return!1;if(e&&e(i))return!1}while(i=c(i,h));return!0},walk:function(a){return c(this,null,a)}},d.create=function(a,c){var e,f;if(e=new d(a,b[a]||1),c)for(f in c)e.attr(f,c[f]);return e},d}),g("v",["w","t","1e"],function(a,b,c){var d=c.each,e=function(a){return 0===a.indexOf("data-")||0===a.indexOf("aria-")},f=function(a){return a.replace(/<!--|-->/g,"")},g=function(a,b,c){var d,e,f,g,h=1;for(g=a.getShortEndedElements(),f=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g,f.lastIndex=d=c;e=f.exec(b);){if(d=f.lastIndex,"/"===e[1])h--;else if(!e[1]){if(e[2]in g)continue;h++}if(0===h)break}return d},h=function(h,i){var j=this,k=function(){};h=h||{},j.schema=i=i||new a,h.fix_self_closing!==!1&&(h.fix_self_closing=!0),d("comment cdata text start end pi doctype".split(" "),function(a){a&&(j[a]=h[a]||k)}),j.parse=function(a){var d,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M=this,N=0,O=[],P=0,Q=b.decode,R=c.makeMap("src,href,data,background,formaction,poster"),S=/((java|vb)script|mhtml):/i,T=/^data:/i,U=function(a){var b,c;for(b=O.length;b--&&O[b].name!==a;);if(b>=0){for(c=O.length-1;c>=b;c--)a=O[c],a.valid&&M.end(a.name);O.length=b}},V=function(a,b,c,d,f){var g,i,j=/[\s\u0000-\u001F]+/g;if(b=b.toLowerCase(),c=b in s?b:Q(c||d||f||""),u&&!p&&e(b)===!1){if(g=z[b],!g&&A){for(i=A.length;i--&&(g=A[i],!g.pattern.test(b)););i===-1&&(g=null)}if(!g)return;if(g.validValues&&!(c in g.validValues))return}if(R[b]&&!h.allow_script_urls){var k=c.replace(j,"");try{k=decodeURIComponent(k)}catch(a){k=unescape(k)}if(S.test(k))return;if(!h.allow_html_data_urls&&T.test(k)&&!/^data:image\//i.test(k))return}p&&(b in R||0===b.indexOf("on"))||(l.map[b]=c,l.push({name:b,value:c}))};for(H=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),I=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,r=i.getShortEndedElements(),G=h.self_closing_elements||i.getSelfClosingElements(),s=i.getBoolAttrs(),u=h.validate,q=h.remove_internals,L=h.fix_self_closing,J=i.getSpecialElements(),E=a+">";d=H.exec(E);){if(N<d.index&&M.text(Q(a.substr(N,d.index-N))),j=d[6])j=j.toLowerCase(),":"===j.charAt(0)&&(j=j.substr(1)),U(j);else if(j=d[7]){if(d.index+d[0].length>a.length){M.text(Q(a.substr(d.index))),N=d.index+d[0].length;continue}if(j=j.toLowerCase(),":"===j.charAt(0)&&(j=j.substr(1)),t=j in r,L&&G[j]&&O.length>0&&O[O.length-1].name===j&&U(j),!u||(v=i.getElementRule(j))){if(w=!0,u&&(z=v.attributes,A=v.attributePatterns),(y=d[8])?(p=y.indexOf("data-mce-type")!==-1,p&&q&&(w=!1),l=[],l.map={},y.replace(I,V)):(l=[],l.map={}),u&&!p){if(B=v.attributesRequired,C=v.attributesDefault,D=v.attributesForced,F=v.removeEmptyAttrs,F&&!l.length&&(w=!1),D)for(m=D.length;m--;)x=D[m],o=x.name,K=x.value,"{$uid}"===K&&(K="mce_"+P++),l.map[o]=K,l.push({name:o,value:K});if(C)for(m=C.length;m--;)x=C[m],o=x.name,o in l.map||(K=x.value,"{$uid}"===K&&(K="mce_"+P++),l.map[o]=K,l.push({name:o,value:K}));if(B){for(m=B.length;m--&&!(B[m]in l.map););m===-1&&(w=!1)}if(x=l.map["data-mce-bogus"]){if("all"===x){N=g(i,a,H.lastIndex),H.lastIndex=N;continue}w=!1}}w&&M.start(j,l,t)}else w=!1;if(k=J[j]){k.lastIndex=N=d.index+d[0].length,(d=k.exec(a))?(w&&(n=a.substr(N,d.index-N)),N=d.index+d[0].length):(n=a.substr(N),N=a.length),w&&(n.length>0&&M.text(n,!0),M.end(j)),H.lastIndex=N;continue}t||(y&&y.indexOf("/")==y.length-1?w&&M.end(j):O.push({name:j,valid:w}))}else(j=d[1])?(">"===j.charAt(0)&&(j=" "+j),h.allow_conditional_comments||"[if"!==j.substr(0,3).toLowerCase()||(j=" "+j),M.comment(j)):(j=d[2])?M.cdata(f(j)):(j=d[3])?M.doctype(j):(j=d[4])&&M.pi(j,d[5]);N=d.index+d[0].length}for(N<a.length&&M.text(Q(a.substr(N))),m=O.length-1;m>=0;m--)j=O[m],j.valid&&M.end(j.name)}};return h.findEndTag=g,h}),g("s",["u","w","v","1e"],function(a,b,c,d){var e=d.makeMap,f=d.each,g=d.explode,h=d.extend,i=function(b,c){b.padd_empty_with_br?c.empty().append(new a("br","1")).shortEnded=!0:c.empty().append(new a("#text","3")).value="\xa0"},j=function(a,b){return a&&a.firstChild===a.lastChild&&a.firstChild.name===b},k=function(a,b){var c=a.getElementRule(b.name);return c&&c.paddEmpty},l=function(a,b,c,d){return d.isEmpty(b,c,function(b){return k(a,b)})};return function(k,m){var n=this,o={},p=[],q={},r={};k=k||{},k.validate=!("validate"in k)||k.validate,k.root_name=k.root_name||"body",n.schema=m=m||new b;var s=function(b){var c,d,f,g,h,i,k,o,p,q,r,s,t,u,v,w;for(s=e("tr,td,th,tbody,thead,tfoot,table"),q=m.getNonEmptyElements(),r=m.getWhiteSpaceElements(),t=m.getTextBlockElements(),u=m.getSpecialElements(),c=0;c<b.length;c++)if(d=b[c],d.parent&&!d.fixed)if(t[d.name]&&"li"==d.parent.name){for(v=d.next;v&&t[v.name];)v.name="li",v.fixed=!0,d.parent.insert(v,d.parent),v=v.next;d.unwrap(d)}else{for(g=[d],f=d.parent;f&&!m.isValidChild(f.name,d.name)&&!s[f.name];f=f.parent)g.push(f);if(f&&g.length>1){for(g.reverse(),h=i=n.filterNode(g[0].clone()),p=0;p<g.length-1;p++){for(m.isValidChild(i.name,g[p].name)?(k=n.filterNode(g[p].clone()),i.append(k)):k=i,o=g[p].firstChild;o&&o!=g[p+1];)w=o.next,k.append(o),o=w;i=k}l(m,q,r,h)?f.insert(d,g[0],!0):(f.insert(h,g[0],!0),f.insert(d,h)),f=g[0],(l(m,q,r,f)||j(f,"br"))&&f.empty().remove()}else if(d.parent){if("li"===d.name){if(v=d.prev,v&&("ul"===v.name||"ul"===v.name)){v.append(d);continue}if(v=d.next,v&&("ul"===v.name||"ul"===v.name)){v.insert(d,v.firstChild,!0);continue}d.wrap(n.filterNode(new a("ul",1)));continue}m.isValidChild(d.parent.name,"div")&&m.isValidChild("div",d.name)?d.wrap(n.filterNode(new a("div",1))):u[d.name]?d.empty().remove():d.unwrap()}}};n.filterNode=function(a){var b,c,d;c in o&&(d=q[c],d?d.push(a):q[c]=[a]),b=p.length;for(;b--;)c=p[b].name,c in a.attributes.map&&(d=r[c],d?d.push(a):r[c]=[a]);return a},n.addNodeFilter=function(a,b){f(g(a),function(a){var c=o[a];c||(o[a]=c=[]),c.push(b)})},n.addAttributeFilter=function(a,b){f(g(a),function(a){var c;for(c=0;c<p.length;c++)if(p[c].name===a)return void p[c].callbacks.push(b);p.push({name:a,callbacks:[b]})})},n.parse=function(b,d){var f,g,j,n,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K=[];d=d||{},q={},r={},A=h(e("script,style,head,html,body,title,meta,param"),m.getBlockElements()),I=m.getNonEmptyElements(),H=m.children,z=k.validate,J="forced_root_block"in d?d.forced_root_block:k.forced_root_block,G=m.getWhiteSpaceElements(),B=/^[ \t\r\n]+/,D=/[ \t\r\n]+$/,E=/[ \t\r\n]+/g,F=/^[ \t\r\n]+$/;var L=function(){var a,b,c=g.firstChild,d=function(a){a&&(c=a.firstChild,c&&3==c.type&&(c.value=c.value.replace(B,"")),c=a.lastChild,c&&3==c.type&&(c.value=c.value.replace(D,"")))};if(m.isValidChild(g.name,J.toLowerCase())){for(;c;)a=c.next,3==c.type||1==c.type&&"p"!==c.name&&!A[c.name]&&!c.attr("data-mce-type")?b?b.append(c):(b=M(J,1),b.attr(k.forced_root_block_attrs),g.insert(b,c),b.append(c)):(d(b),b=null),c=a;d(b)}},M=function(b,c){var d,e=new a(b,c);return b in o&&(d=q[b],d?d.push(e):q[b]=[e]),e},N=function(a){var b,c,d,e,f=m.getBlockElements();for(b=a.prev;b&&3===b.type;){if(d=b.value.replace(D,""),d.length>0)return void(b.value=d);if(c=b.next){if(3==c.type&&c.value.length){b=b.prev;continue}if(!f[c.name]&&"script"!=c.name&&"style"!=c.name){b=b.prev;continue}}e=b.prev,b.remove(),b=e}},O=function(a){var b,c={};for(b in a)"li"!==b&&"p"!=b&&(c[b]=a[b]);return c};if(f=new c({validate:z,allow_script_urls:k.allow_script_urls,allow_conditional_comments:k.allow_conditional_comments,self_closing_elements:O(m.getSelfClosingElements()),cdata:function(a){j.append(M("#cdata",4)).value=a},text:function(a,b){var c;C||(a=a.replace(E," "),j.lastChild&&A[j.lastChild.name]&&(a=a.replace(B,""))),0!==a.length&&(c=M("#text",3),c.raw=!!b,j.append(c).value=a)},comment:function(a){j.append(M("#comment",8)).value=a},pi:function(a,b){j.append(M(a,7)).value=b,N(j)},doctype:function(a){var b;b=j.append(M("#doctype",10)),b.value=a,N(j)},start:function(a,b,c){var d,e,f,g,h;if(f=z?m.getElementRule(a):{}){for(d=M(f.outputName||a,1),d.attributes=b,d.shortEnded=c,j.append(d),h=H[j.name],h&&H[d.name]&&!h[d.name]&&K.push(d),e=p.length;e--;)g=p[e].name,g in b.map&&(x=r[g],x?x.push(d):r[g]=[d]);A[a]&&N(d),c||(j=d),!C&&G[a]&&(C=!0)}},end:function(a){var b,c,d,e,f;if(c=z?m.getElementRule(a):{}){if(A[a]&&!C){if(b=j.firstChild,b&&3===b.type)if(d=b.value.replace(B,""),d.length>0)b.value=d,b=b.next;else for(e=b.next,b.remove(),b=e;b&&3===b.type;)d=b.value,e=b.next,(0===d.length||F.test(d))&&(b.remove(),b=e),b=e;if(b=j.lastChild,b&&3===b.type)if(d=b.value.replace(D,""),d.length>0)b.value=d,b=b.prev;else for(e=b.prev,b.remove(),b=e;b&&3===b.type;)d=b.value,e=b.prev,(0===d.length||F.test(d))&&(b.remove(),b=e),b=e}if(C&&G[a]&&(C=!1),(c.removeEmpty||c.paddEmpty)&&l(m,I,G,j))if(c.paddEmpty)i(k,j);else if(!j.attributes.map.name&&!j.attributes.map.id)return f=j.parent,A[j.name]?j.empty().remove():j.unwrap(),void(j=f);j=j.parent}}},m),g=j=new a(d.context||k.root_name,11),f.parse(b),z&&K.length&&(d.context?d.invalid=!0:s(K)),J&&("body"==g.name||d.isRootContent)&&L(),!d.invalid){for(y in q){for(x=o[y],n=q[y],v=n.length;v--;)n[v].parent||n.splice(v,1);for(t=0,u=x.length;t<u;t++)x[t](n,y,d)}for(t=0,u=p.length;t<u;t++)if(x=p[t],x.name in r){for(n=r[x.name],v=n.length;v--;)n[v].parent||n.splice(v,1);for(v=0,w=x.callbacks.length;v<w;v++)x.callbacks[v](n,x.name,d)}}return g},k.remove_trailing_brs&&n.addNodeFilter("br",function(b){var c,d,e,f,g,j,n,o,p=b.length,q=h({},m.getBlockElements()),r=m.getNonEmptyElements(),s=m.getNonEmptyElements();for(q.body=1,c=0;c<p;c++)if(d=b[c],e=d.parent,q[d.parent.name]&&d===e.lastChild){for(g=d.prev;g;){if(j=g.name,"span"!==j||"bookmark"!==g.attr("data-mce-type")){if("br"!==j)break;if("br"===j){d=null;break}}g=g.prev}d&&(d.remove(),l(m,r,s,e)&&(n=m.getElementRule(e.name),n&&(n.removeEmpty?e.remove():n.paddEmpty&&i(k,e))))}else{for(f=d;e&&e.firstChild===f&&e.lastChild===f&&(f=e,!q[e.name]);)e=e.parent;f===e&&k.padd_empty_with_br!==!0&&(o=new a("#text",3),o.value="\xa0",d.replace(o))}}),n.addAttributeFilter("href",function(a){var b,c=a.length,e=function(a){var b=a.split(" ").filter(function(a){return a.length>0});return b.concat(["noopener"]).sort().join(" ")},f=function(a){var b=a?d.trim(a):"";return/\b(noopener)\b/g.test(b)?b:e(b)};if(!k.allow_unsafe_link_target)for(;c--;)b=a[c],"a"===b.name&&"_blank"===b.attr("target")&&b.attr("rel",f(b.attr("rel")))}),k.allow_html_in_named_anchor||n.addAttributeFilter("id,name",function(a){for(var b,c,d,e,f=a.length;f--;)if(e=a[f],"a"===e.name&&e.firstChild&&!e.attr("href")){d=e.parent,b=e.lastChild;do c=b.prev,d.insert(b,e),b=c;while(b)}}),k.fix_list_elements&&n.addNodeFilter("ul,ol",function(b){for(var c,d,e=b.length;e--;)if(c=b[e],d=c.parent,"ul"===d.name||"ol"===d.name)if(c.prev&&"li"===c.prev.name)c.prev.append(c);else{var f=new a("li",1);f.attr("style","list-style-type: none"),c.wrap(f)}}),k.validate&&m.getValidClasses()&&n.addAttributeFilter("class",function(a){for(var b,c,d,e,f,g,h,i=a.length,j=m.getValidClasses();i--;){for(b=a[i],c=b.attr("class").split(" "),f="",d=0;d<c.length;d++)e=c[d],h=!1,g=j["*"],g&&g[e]&&(h=!0),g=j[b.name],!h&&g&&g[e]&&(h=!0),h&&(f&&(f+=" "),f+=e);f.length||(f=null),b.attr("class",f)}})}}),g("z",["t","1e"],function(a,b){var c=b.makeMap;return function(b){var d,e,f,g,h,i=[];return b=b||{},d=b.indent,e=c(b.indent_before||""),f=c(b.indent_after||""),g=a.getEncodeFunc(b.entity_encoding||"raw",b.entities),h="html"==b.element_format,{start:function(a,b,c){var j,k,l,m;if(d&&e[a]&&i.length>0&&(m=i[i.length-1],m.length>0&&"\n"!==m&&i.push("\n")),i.push("<",a),b)for(j=0,k=b.length;j<k;j++)l=b[j],i.push(" ",l.name,'="',g(l.value,!0),'"');!c||h?i[i.length]=">":i[i.length]=" />",c&&d&&f[a]&&i.length>0&&(m=i[i.length-1],m.length>0&&"\n"!==m&&i.push("\n"))},end:function(a){var b;i.push("</",a,">"),d&&f[a]&&i.length>0&&(b=i[i.length-1],b.length>0&&"\n"!==b&&i.push("\n"))},text:function(a,b){a.length>0&&(i[i.length]=b?a:g(a))},cdata:function(a){i.push("<![CDATA[",a,"]]>")},comment:function(a){i.push("<!--",a,"-->");
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L220

Insecure DOM Manipulation (XSS) in field-media.js

CWE-79
File Location: build/webcomponents/js/field-media/field-media.js:220
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = '<span class="field-media-preview-icon fa fa-picture-o"></span>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L95

Insecure DOM Manipulation (XSS) in field-user.js

CWE-79
File Location: build/webcomponents/js/field-user/field-user.js:95
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.modalBody.innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L240

Insecure DOM Manipulation (XSS) in sidebyside.js

CWE-79
File Location: media/com_associations/js/sidebyside.js:240
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.getElementById('select-change-text').innerHTML = document.getElementById('select-change').getAttribute('data-change');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in overrider.min.js

CWE-79
File Location: media/com_languages/js/overrider.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- Joomla.overrider={states:{refreshing:!1,refreshed:!1,counter:0,searchstring:"",searchtype:"value"}},Joomla.overrider.refreshCache=function(){this.states.refreshing=!0;var e=this,s=document.getElementById("refresh-status");s.classList.add("show"),Joomla.request({url:"index.php?option=com_languages&task=strings.refresh&format=json",method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(t){t.error&&t.message&&alert(t.message),t.messages&&Joomla.renderMessages(t.messages),s.classList.remove("show"),e.states.refreshing=!1},onError:function(e){alert(Joomla.JText._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),s.classList.remove("show")}})},Joomla.overrider.searchStrings=function(e){var s=this,t=document.getElementById("jform_searchstring"),r=document.getElementById("jform_searchtype"),a=document.getElementById("overrider-spinner"),o=document.getElementById("overrider-spinner-btn"),n=document.getElementById("more-results"),i=document.getElementById("results-container");if(!this.states.refreshing){if(!e){this.states.searchstring=t.value,this.states.searchtype=null!==r?r.value:"value";for(var l=document.querySelectorAll(".language-results"),d=0,c=l.length;d<c;d++)l[d].parentNode.removeChild(l[d])}if(this.states.searchstring){if(e)o.classList.add("show");else{n.classList.remove("show");for(var m=document.querySelectorAll("#results-container div.language-results"),d=0,c=m.length;d<c;d++)m[d].parentNode.removeChild(m[d]);i.classList.add("show"),a.classList.add("show")}Joomla.request({url:"index.php?option=com_languages&task=strings.search&format=json&searchstring="+s.states.searchstring+"&searchtype="+s.states.searchtype+"&more="+e,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(e){(e=JSON.parse(e)).error&&e.message&&alert(e.message),e.messages&&Joomla.renderMessages(e.messages),e.data&&(e.data.results&&s.insertResults(e.data.results),e.data.more&&(s.states.more=e.data.more,n.classList.add("show"))),o.classList.remove("show"),a.classList.remove("show")},onError:function(e){alert(Joomla.JText._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),n.classList.remove("show"),i.classList.remove("show")}})}else t.classList.add("invalid")}},Joomla.overrider.insertResults=function(e){var s=this;this.states.counter=this.states.counter+1;var t=document.createElement("div");if(t.setAttribute("id","language-results"+s.states.counter),t.classList.add("language-results"),t.classList.add("list-group"),t.classList.add("mb-2"),t.classList.add("show"),e.forEach(function(e,r){var a=document.createElement("a");a.setAttribute("onclick","Joomla.overrider.selectString("+s.states.counter+r+");"),a.setAttribute("href","#"),a.classList.add("list-group-item"),a.classList.add("list-group-item-action"),a.classList.add("flex-column"),a.classList.add("align-items-start");var o=document.createElement("div");o.setAttribute("id","override_key"+s.states.counter+r),o.setAttribute("title",e.file),o.classList.add("result-key"),o.innerHTML=e.constant;var n=document.createElement("div");n.setAttribute("id","override_string"+s.states.counter+r),n.classList.add("result-string"),n.innerHTML=e.string,a.appendChild(o),a.appendChild(n),t.appendChild(a)}),!e.length){var r=document.createElement("div");r.innerHTML=Joomla.JText._("COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS"),t.appendChild(r)}var a=document.getElementById("more-results");a&&a.parentNode.insertBefore(t,a)},Joomla.overrider.selectString=function(e){document.getElementById("jform_key").value=document.getElementById("override_key"+e).innerHTML,document.getElementById("jform_override").value=document.getElementById("override_string"+e).innerHTML};
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L17

Insecure DOM Manipulation (XSS) in cms.js

CWE-79
File Location: media/system/js/cms.js:17
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.getElementById('container-collapse').innerHTML = '<div class="collapse fade" id="collapse-' + name + '"><iframe class="iframe" src="' + url + '" height="' + height + '" width="100%"></iframe></div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L696

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:696
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- cell.innerHTML = " ";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L987

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:987
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this._nav_month.getElementsByTagName('span')[0].innerHTML = this.params.debug ? month + ' ' + JoomlaCalLocale.months[month] : JoomlaCalLocale.months[month];
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L101

Insecure DOM Manipulation (XSS) in passwordstrength.js

CWE-79
File Location: media/system/js/fields/passwordstrength.js:101
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- label.innerHTML = Joomla.JText._('JFIELD_PASSWORD_INDICATE_INCOMPLETE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in validate.min.js

CWE-79
File Location: media/system/js/fields/validate.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- var JFormValidator=function(){"use strict";var e,t,a,r=function(t,a,r){r=""===r||r,e[t]={enabled:r,exec:a}},s=function(e,t,a){"button"!==t.tagName.toLowerCase()&&"undefined"!==t.value&&(!1===e?n(t,a):i(t))},i=function(e){var t=e.form.querySelector('label[for="'+e.id+'"]');if(e.classList.contains("required")||e.getAttribute("required")){var a;t&&(a=t.querySelector("span.form-control-feedback"))}e.classList.remove("form-control-danger"),e.classList.add("form-control-success"),e.parentNode.classList.remove("has-danger"),e.parentNode.classList.add("has-success"),e.setAttribute("aria-invalid","false"),a&&a.parentNode.removeChild(a),t&&t.classList.remove("invalid")},n=function(e,t){var a=e.form.querySelector('label[for="'+e.id+'"]');e.classList.remove("form-control-success"),e.classList.add("form-control-danger"),e.classList.add("invalid"),e.parentNode.classList.remove("has-success"),e.parentNode.classList.add("has-danger"),e.setAttribute("aria-invalid","true");var r,s=e.getAttribute("data-validation-text");if(a&&(r=a.querySelector("span.form-control-feedback")),!r){var i=document.createElement("span");i.classList.add("form-control-feedback"),i.innerHTML=t&&"checkbox"===t?s||Joomla.JText._("JLIB_FORM_FIELD_REQUIRED_CHECK"):t&&"value"===t?s||Joomla.JText._("JLIB_FORM_FIELD_REQUIRED_VALUE"):s||Joomla.JText._("JLIB_FORM_FIELD_INVALID_VALUE"),a&&a.appendChild(i)}a&&a.classList.add("invalid")},o=function(e){var t,a=e.form.querySelector('label[for="'+e.id+'"]');a&&(t=a.querySelector("span.form-control-feedback")),e.classList.remove("form-control-danger"),e.classList.remove("form-control-success"),e.classList.remove("invalid"),e.classList.add("valid"),e.parentNode.classList.remove("has-danger"),e.parentNode.classList.remove("has-success"),t&&a&&a.removeChild(t),a&&a.classList.remove("invalid")},l=function(t){var a,r;if("disabled"===t.getAttribute("disabled")||"none"===t.getAttribute("display"))return s(!0,t),!0;if(t.getAttribute("required")||t.classList.contains("required"))if("fieldset"===(a=t.tagName.toLowerCase())&&(t.classList.contains("radio")||t.classList.contains("checkboxes"))){if(!t.querySelector("input:checked").length)return s(!1,t,"checkbox"),!1}else{if("checkbox"===t.getAttribute("type")&&0!==!t.checked.length||"select"===a&&!t.value.length)return s(!1,t,"checkbox"),!1;if(!t.value||t.classList.contains("placeholder"))return s(!1,t,"value"),!1}return r=t.getAttribute("class")&&t.getAttribute("class").match(/validate-([a-zA-Z0-9\_\-]+)/)?t.getAttribute("class").match(/validate-([a-zA-Z0-9\_\-]+)/)[1]:"",t.getAttribute("pattern")&&""!=t.getAttribute("pattern")?t.value.length?(c=new RegExp("^"+t.getAttribute("pattern")+"$").test(t.value),s(c,t,"empty"),c):(s(!1,t),!1):""===r?(s(!0,t),!0):r&&"none"!==r&&e[r]&&t.value&&!0!==e[r].exec(t.value,t)?(s(!1,t,"value"),!1):(s(!0,t),!0)},c=function(e){var t,r,s,i,n=!0,o=[];for(s=0,i=(t=e.querySelectorAll("input, textarea, select, button")).length;s<i;s++)!1===l(t[s])&&(n=!1,o.push(t[s]));for(var c in a)a.hasOwnProperty(c)&&!0!==a[validator].exec()&&(n=!1);return function(e,t){for(var a=0,r=e.length;a<r;++a)t(e[a],a)}(a,function(e,t){!0!==t.exec()&&(n=!1)}),!n&&o.length>0&&(r={error:[e.getAttribute("data-validation-text")?e.getAttribute("data-validation-text"):Joomla.JText._("JLIB_FORM_CONTAINS_INVALID_FIELDS")]},Joomla.renderMessages(r)),n},u=function(e){for(var a,r=[],s=0,i=(a=e.querySelectorAll("input, textarea, select, button, fieldset")).length;s<i;s++){var n=a[s],u=n.tagName.toLowerCase();["input","textarea","select","fieldset"].indexOf(u)>-1&&n.classList.contains("required")&&(n.setAttribute("required",""),n.setAttribute("aria-required","true")),"input"!==u&&"button"!==u||"submit"!==n.getAttribute("type")&&"image"!==n.getAttribute("type")?"button"===u||"input"===u&&"button"===n.getAttribute("type")||(n.classList.contains("required")&&n.setAttribute("aria-required",!0),"fieldset"!==u&&(n.addEventListener("blur",function(){return l(this)}),n.addEventListener("focus",function(){return o(this)}),n.classList.contains("validate-email")&&t&&n.setAttribute("type","email")),r.push(n)):n.classList.contains("validate")&&n.addEventListener("click",function(){return c(e)})}};return function(){e={},a=a||{},t=function(){var e=document.createElement("input");return e.setAttribute("type","email"),"text"!==e.type}(),r("username",function(e,t){return!new RegExp("[<|>|\"|'|%|;|(|)|&]","i").test(e)}),r("password",function(e,t){return/^\S[\S ]{2,98}\S$/.test(e)}),r("numeric",function(e,t){return/^(\d|-)?(\d|,)*\.?\d*$/.test(e)}),r("email",function(e,t){return e=punycode.toASCII(e),/^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e)});for(var s=document.querySelectorAll("form"),i=0,n=s.length;i<n;i++)s[i].classList.contains("form-validate")&&u(s[i])}(),{isValid:c,validate:l,setHandler:r,attachToForm:u,custom:a}};document.formvalidator=null,document.addEventListener("DOMContentLoaded",function(){document.formvalidator=new JFormValidator});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L36

Insecure DOM Manipulation (XSS) in caption.js

CWE-79
File Location: media/system/js/legacy/caption.js:36
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- pEl.innerHTML = caption;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L92

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-sd-ce.js:92
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=p.$(c.getAttribute("href"),b),c.removeAttribute("href");c=a.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-field-user-es5.min.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-user-es5.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function t(e,i,n){function o(u,s){if(!i[u]){if(!e[u]){var l="function"==typeof require&&require;if(!s&&l)return l(u,!0);if(r)return r(u,!0);var a=new Error("Cannot find module '"+u+"'");throw a.code="MODULE_NOT_FOUND",a}var c=i[u]={exports:{}};e[u][0].call(c.exports,function(t){var i=e[u][1][t];return o(i||t)},c,c.exports,t,e,i,n)}return i[u].exports}for(var r="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":u(e))&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":u(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i,n=0;n<e.length;n++)(i=e[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),l=function(t){function e(){return n(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return r(e,HTMLElement),s(e,[{key:"connectedCallback",value:function(){if(this.modal=this.querySelector(this.modalClass),this.modalBody=this.querySelector(".modal-body"),this.input=this.querySelector(this.inputId),this.inputName=this.querySelector(this.inputNameClass),this.buttonSelect=this.querySelector(this.buttonSelectClass),this.modalClose=this.modalClose.bind(this),this.setValue=this.setValue.bind(this),this.buttonSelect){this.buttonSelect.addEventListener("click",this.modalOpen.bind(this)),this.modal.addEventListener("hide",this.removeIframe.bind(this));var t,e=this.input.getAttribute("data-onchange");e&&(t=new Function(e),this.input.addEventListener("change",t.bind(this.input)))}}},{key:"disconnectedCallback",value:function(){this.buttonSelect.removeEventListener("click",this),this.modal.removeEventListener("hide",this)}},{key:"modalOpen",value:function(){var t=this;this.removeIframe();var e=document.createElement("iframe");e.setAttribute("name","field-user-modal"),e.src=this.url.replace("{field-user-id}",this.input.getAttribute("id")),e.setAttribute("width",this.modalWidth),e.setAttribute("height",this.modalHeight),this.modalBody.appendChild(e),window.jQuery(this.modal).modal("show");var i=this.modalBody.querySelector("iframe");i.addEventListener("load",function(){var e=i.contentWindow.document;[].slice.call(e.querySelectorAll(".button-select")).forEach(function(e){e.addEventListener("click",function(e){t.setValue(e.target.getAttribute("data-user-value"),e.target.getAttribute("data-user-name")),t.modalClose()})})})}},{key:"modalClose",value:function(){window.jQuery(this.modal).modal("hide"),this.modalBody.innerHTML=""}},{key:"removeIframe",value:function(){this.modalBody.innerHTML=""}},{key:"setValue",value:function(t,e){this.input.setAttribute("value",t),this.inputName.setAttribute("value",e||t)}},{key:"url",get:function(){return this.getAttribute("url")},set:function(t){this.setAttribute("url",t)}},{key:"modalClass",get:function(){return this.getAttribute("modal")},set:function(t){this.setAttribute("modal",t)}},{key:"modalWidth",get:function(){return this.getAttribute("modal-width")},set:function(t){this.setAttribute("modal-width",t)}},{key:"modalHeight",get:function(){return this.getAttribute("modal-height")},set:function(t){this.setAttribute("modal-height",t)}},{key:"inputId",get:function(){return this.getAttribute("input")},set:function(t){this.setAttribute("input",t)}},{key:"inputNameClass",get:function(){return this.getAttribute("input-name")},set:function(t){this.setAttribute("input-name",t)}},{key:"buttonSelectClass",get:function(){return this.getAttribute("button-select")},set:function(t){this.setAttribute("button-select",t)}}],[{key:"observedAttributes",get:function(){return["url","modal-class","modal-width","modal-height","input","input-name","button-select"]}}]),e}();customElements.define("joomla-field-user",l)},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L272

Insecure DOM Manipulation (XSS) in awesomplete.js

CWE-79
File Location: media/vendor/awesomplete/js/awesomplete.js:272
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.ul.innerHTML = "";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3509

Insecure DOM Manipulation (XSS) in cropper.common.js

CWE-79
File Location: media/vendor/cropperjs/js/cropper.common.js:3509
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- template.innerHTML = TEMPLATE;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.min.js

CWE-79
File Location: media/vendor/joomla-custom-elements/polyfills/webcomponents-hi-sd-ce.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";var t="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;!function(){function e(){var t=this;this.m={},this.g=document.documentElement;var e=new l;e.rules=[],this.h=s.set(this.g,new s(e)),this.i=!1,this.b=this.a=null,Wt(function(){t.c()})}function n(){this.customStyles=[],this.enqueued=!1}function o(){}function r(t){this.cache={},this.c=void 0===t?100:t}function i(){}function s(t,e,n,o,r){this.D=t||null,this.b=e||null,this.ja=n||[],this.L=null,this.T=r||"",this.a=this.w=this.H=null}function a(){}function l(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function c(t,e){var n=Element.prototype;n.before=function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),e.Xa.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},n.after=function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),e.Wa.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},n.replaceWith=function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];var r=o.filter(function(t){return t instanceof Node&&Et(t)}),i=Et(this);e.hb.apply(this,o);for(var s=0;s<r.length;s++)t.a(r[s]);if(i)for(t.a(this),r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},n.remove=function(){var n=Et(this);e.remove.call(this),n&&t.a(this)}}function u(t,e,n){e.prepend=function(e){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),n.Ba.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)},e.append=function(e){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=o.filter(function(t){return t instanceof Node&&Et(t)}),n.append.apply(this,o);for(var i=0;i<r.length;i++)t.a(r[i]);if(Et(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&t.b(i)}}function h(t){this.f=!1,this.a=t,this.h=new Map,this.g=function(t){return t()},this.b=!1,this.c=[],this.i=new p(t,document)}function d(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function p(t,e){this.b=t,this.a=e,this.K=void 0,this.b.c(this.a),"loading"===this.a.readyState&&(this.K=new MutationObserver(this.f.bind(this)),this.K.observe(this.a,{childList:!0,subtree:!0}))}function f(){this.m=new Map,this.l=new Map,this.i=[],this.h=!1}function y(t,e,n){if(t!==Pe)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=y.prototype,t.B(e,n),t}function m(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=L(t),t.__shady.lastChild=M(t),Oe(t);for(var e,n=t.__shady.childNodes=j(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,xe(e)}}function _(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.W=new Set}function v(t){return t.__shady&&void 0!==t.__shady.firstChild}function g(t){return"ShadyRoot"===t.Ma}function b(t){if(t=t.getRootNode(),g(t))return t}function w(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function E(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)w(t,n[o]);return t}function N(t,e){for(var n in e)t[n]=e[n]}function S(t){Yt.push(t),Kt.textContent=Jt++}function C(t){Zt||(Zt=!0,S(T)),Qt.push(t)}function T(){Zt=!1;for(var t=!!Qt.length;Qt.length;)Qt.shift()();return t}function x(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function O(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function A(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,s=r.length;i<s&&(n=r[i]);i++){var a;t:{var l;l=t;var c=e;switch((a=n).nodeType){case Node.ELEMENT_NODE:for(var u=a.localName,h="<"+u,d=a.attributes,p=0;l=d[p];p++)h+=" "+l.name+'="'+l.value.replace(pe,x)+'"';h+=">",a=ye[u]?h:h+A(a,c)+"</"+u+">";break t;case Node.TEXT_NODE:a=a.data,a=l&&me[l.localName]?a:a.replace(fe,x);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}o+=a}return o}function D(t){return _e.currentNode=t,_e.parentNode()}function L(t){return _e.currentNode=t,_e.firstChild()}function M(t){return _e.currentNode=t,_e.lastChild()}function k(t){return _e.currentNode=t,_e.previousSibling()}function R(t){return _e.currentNode=t,_e.nextSibling()}function j(t){var e=[];for(_e.currentNode=t,t=_e.firstChild();t;)e.push(t),t=_e.nextSibling();return e}function P(t){return ve.currentNode=t,ve.parentNode()}function H(t){return ve.currentNode=t,ve.firstChild()}function I(t){return ve.currentNode=t,ve.lastChild()}function F(t){return ve.currentNode=t,ve.previousSibling()}function q(t){return ve.currentNode=t,ve.nextSibling()}function V(t){var e=[];for(ve.currentNode=t,t=ve.firstChild();t;)e.push(t),t=ve.nextSibling();return e}function B(t){return A(t,function(t){return j(t)})}function U(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function W(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function G(t){W(t,Ne),W(t,Se),W(t,Te)}function $(t,e,n){xe(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function z(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n&&(void 0!==(i=n.__shady&&n.__shady.parentNode)&&i!==t||void 0===i&&D(n)!==t))throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");if(n===e)return e;e.parentNode&&X(e.parentNode,e);var o,r,i=b(t);if(r=i)t:{if(!e.__noInsertionPoint){var s;if("slot"===e.localName?s=[e]:e.querySelectorAll&&(s=e.querySelectorAll("slot")),s&&s.length){r=s;break t}}r=void 0}if(s=r,i&&("slot"===t.localName||s)&&i.J(),v(t)){if(r=n,Oe(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var a=e.childNodes,l=0;l<a.length;l++)$(a[l],t,r);e.__shady=e.__shady||{},r=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=r,e.__shady.childNodes=r}else $(e,t,r);Y(t)?(t.__shady.root.J(),o=!0):t.__shady.root&&(o=!0)}return o||(o=g(t)?t.host:t,n?(n=J(n),ee.call(o,e,n)):te.call(o,e)),Q(t,e),s&&i.Qa(s),e}function X(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n,o,r=b(e);if(v(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling),o=e.__shady.previousSibling;var i=e.__shady.nextSibling;o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=i),i&&(i.__shady=i.__shady||{},i.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),Y(t)&&(t.__shady.root.J(),n=!0)}return K(e),r&&((i=t&&"slot"===t.localName)&&(n=!0),((o=r.Ta(e))||i)&&r.J()),n||(n=g(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||n===D(e))&&ne.call(n,e)),Q(t,null,e),e}function K(t){if(t.__shady&&void 0!==t.__shady.ka)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)K(e);t.__shady&&(t.__shady.ka=void 0)}function J(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady.O)&&e.length?e[0]:J(t.nextSibling)),e}function Y(t){return(t=t&&t.__shady&&t.__shady.root)&&t.sa()}function Z(t,e){"slot"===e?(t=t.parentNode,Y(t)&&t.__shady.root.J()):"slot"===t.localName&&"name"===e&&(e=b(t))&&(e.Va(t),e.J())}function Q(t,e,n){(t=t.__shady&&t.__shady.R)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.jb())}function tt(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.ka;return void 0===e&&(e=g(t)?t:(e=t.parentNode)?tt(e):t,document.documentElement.contains(t)&&(t.__shady.ka=e)),e}}function et(t,e,n){var o=[];return nt(t.childNodes,e,n,o),o}function nt(t,e,n,o){for(var r,i=0,s=t.length;i<s&&(r=t[i]);i++){var a;if(a=r.nodeType===Node.ELEMENT_NODE){var l=e,c=n,u=o,h=l(a=r);h&&u.push(a),c&&c(h)?a=h:(nt(a.childNodes,l,c,u),a=void 0)}if(a)break}}function ot(t){g(t=t.getRootNode())&&t.ua()}function rt(t,e,n){Ae||(Ae=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Ae&&"class"===e?Ae.setElementClass(t,n):(oe.call(t,e,n),Z(t,e))}function it(t,e){if(t.ownerDocument!==document)return se.call(document,t,e);var n=se.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=it(t[e],!0),n.appendChild(o)}return n}function st(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function at(t,e){if(!g)return t;t=st(t,!0);for(var n,o,r,i,s=0;s<e.length;s++)if(n=e[s],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!g(r)||-1<i)return n}function lt(t){function e(e,n){return e=new t(e,n),e.da=n&&!!n.composed,e}return N(e,t),e.prototype=t.prototype,e}function ct(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Ka);r++);}function ut(t){var e,n=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return e},configurable:!0});for(r=n.length-1;0<=r;r--)if(e=n[r],ct(t,e,"capture"),t.ea)return;Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});for(var o,r=0;r<n.length;r++){var i=(e=n[r]).__shady&&e.__shady.root;if((!r||i&&i===o)&&(ct(t,e,"bubble"),e!==window&&(o=e.getRootNode()),t.ea))break}}function ht(t,e,n,o,r,i){for(var s=0;s<t.length;s++){var a=t[s],l=a.type,c=a.capture,u=a.once,h=a.passive;if(e===a.node&&n===l&&o===c&&r===u&&i===h)return s}return-1}function dt(t,e,n){if(e){var o,r,i;"object"==typeof n?(o=!!n.capture,r=!!n.once,i=!!n.passive):(o=!!n,i=r=!1);var s=n&&n.fa||this,a=e.U;if(a){if(-1<ht(a,s,t,o,r,i))return}else e.U=[];a=function(o){r&&this.removeEventListener(t,e,n),o.__target||ft(o);var i;if(s!==this&&(i=Object.getOwnPropertyDescriptor(o,"currentTarget"),Object.defineProperty(o,"currentTarget",{get:function(){return s},configurable:!0})),o.composed||-1<o.composedPath().indexOf(s))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===s){var a="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(s,o);return s!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),a}},e.U.push({node:this,type:t,capture:o,once:r,passive:i,mb:a}),Me[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(a)):(this instanceof Window?ce:ae).call(this,t,a,n)}}function pt(t,e,n){if(e){var o,r,i;"object"==typeof n?(o=!!n.capture,r=!!n.once,i=!!n.passive):(o=!!n,i=r=!1);var s,a=n&&n.fa||this,l=void 0;s=null;try{s=e.U}catch(t){}s&&-1<(r=ht(s,a,t,o,r,i))&&(l=s.splice(r,1)[0].mb,s.length||(e.U=void 0)),(this instanceof Window?ue:le).call(this,t,l||e,n),l&&Me[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(l=t.indexOf(l))&&t.splice(l,1))}}function ft(t){if(t.__target=t.target,t.qa=t.relatedTarget,Gt.P){var e=Le,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.ob=n,w(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else w(t,Le)}function yt(t,e){return{index:t,S:[],V:e}}function mt(t,e,n,o){var r=0,i=0,s=0,a=0,l=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(s=0;s<l;s++)if(t[s]!==n[s])break t;s=l}if(e==t.length&&o==n.length){for(var a=t.length,c=n.length,u=0;u<l-s&&_t(t[--a],n[--c]);)u++;a=u}if(r+=s,i+=s,e-=a,o-=a,!(e-r||o-i))return[];if(r==e){for(e=yt(r,0);i<o;)e.S.push(n[i++]);return[e]}if(i==o)return[yt(r,e-r)];for(o=o-(s=i)+1,a=e-(l=r)+1,e=Array(o),c=0;c<o;c++)e[c]=Array(a),e[c][0]=c;for(c=0;c<a;c++)e[0][c]=c;for(c=1;c<o;c++)for(u=1;u<a;u++)if(t[l+u-1]===n[s+c-1])e[c][u]=e[c-1][u-1];else{var h=e[c-1][u]+1,d=e[c][u-1]+1;e[c][u]=h<d?h:d}for(l=e.length-1,s=e[0].length-1,o=e[l][s],t=[];0<l||0<s;)l?s?(a=e[l-1][s-1],c=e[l-1][s],u=e[l][s-1],(h=c<u?c<a?c:a:u<a?u:a)==a?(a==o?t.push(0):(t.push(1),o=a),l--,s--):h==c?(t.push(3),l--,o=c):(t.push(2),s--,o=u)):(t.push(3),l--):(t.push(2),s--);for(t.reverse(),e=void 0,l=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(l.push(e),e=void 0),r++,i++;break;case 1:e||(e=yt(r,0)),e.V++,r++,e.S.push(n[i]),i++;break;case 2:e||(e=yt(r,0)),e.V++,r++;break;case 3:e||(e=yt(r,0)),e.S.push(n[i]),i++}return e&&l.push(e),l}function _t(t,e){return t===e}function vt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function gt(t){return ot(t),t.__shady&&t.__shady.assignedSlot||null}function bt(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function wt(t){var e=$e.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Et(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Nt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function St(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)St(o,e,n);o=Nt(t,r);continue}if("template"===i){o=Nt(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)St(r,e,n)}o=o.firstChild?o.firstChild:Nt(t,o)}}function Ct(t,e,n){t[e]=n}function Tt(t){var e=xt,n=t=t.replace(An.Za,"").replace(An.port,""),o=new l;o.start=0,o.end=n.length;for(var r=o,i=0,s=n.length;i<s;i++)if("{"===n[i]){r.rules||(r.rules=[]);var a=r,c=a.rules[a.rules.length-1]||null;(r=new l).start=i+1,r.parent=a,r.previous=c,a.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function xt(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=Ot(n),n=n.replace(An.Aa," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=!n.indexOf("@"),t.atRule?n.indexOf("@media")?n.match(An.eb)&&(t.type=On.ca,t.keyframesName=t.selector.split(An.Aa).pop()):t.type=On.MEDIA_RULE:t.type=n.indexOf("--")?On.STYLE_RULE:On.ma),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)xt(o,e);return t}function Ot(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function At(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var s,a=i.length;r<a&&(s=i[r]);r++)o=At(s,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(An.va,"").replace(An.za,""),e=e.replace(An.fb,"").replace(An.lb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function Dt(t){xn=(!t||!t.shimcssproperties)&&(Dn||!(navigator.userAgent.match("AppleWebKit/601")||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function Lt(t,e){return t?("string"==typeof t&&(t=Tt(t)),e&&Rt(t,e),At(t,xn)):""}function Mt(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Tt(t.textContent)),t.__cssRules||null}function kt(t){return!!t.parent&&t.parent.type===On.ca}function Rt(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===On.MEDIA_RULE){var s=t.selector.match(jn);s&&(window.matchMedia(s[1]).matches||(r=!0))}if(i===On.STYLE_RULE?e(t):n&&i===On.ca?n(t):i===On.ma&&(r=!0),(t=t.rules)&&!r)for(var a,r=0,i=t.length;r<i&&(a=t[r]);r++)Rt(a,e,n,o)}}function jt(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,Pt(r,n,o),r}function Pt(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Hn?t.compareDocumentPosition(Hn)===Node.DOCUMENT_POSITION_PRECEDING&&(Hn=t):Hn=t}function Ht(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");var o;t:{var r=0;o=n+3;for(var i=t.length;o<i;o++)if("("===t[o])r++;else if(")"===t[o]&&!--r)break t;o=-1}return r=t.substring(n+4,o),n=t.substring(0,n),t=Ht(t.substring(o+1),e),-1===(o=r.indexOf(","))?e(n,r.trim(),"",t):e(n,r.substring(0,o).trim(),r.substring(o+1).trim(),t)}function It(t,e){Dn?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function Ft(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,T:n}}function qt(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i,s=r.getRootNode(),a=[];(i=r).classList?a=Array.from(i.classList):i instanceof window.SVGElement&&i.hasAttribute("class")&&(a=i.getAttribute("class").split(/\s+/)),(i=-1<(a=(i=a).indexOf(to.c))?i[a+1]:"")&&s===r.ownerDocument?to.a(r,i,!0):s.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(s=s.host)&&(s=Ft(s).is,i!==s&&(i&&to.a(r,i,!0),to.a(r,s)))}}}}function Vt(t){(t=ho[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Bt(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function Ut(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,po.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function Wt(t){requestAnimationFrame(function(){yo?yo(t):(fo||(fo=new Promise(function(t){uo=t}),"complete"===document.readyState?uo():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&uo()})),fo.then(function(){t&&t()}))})}!function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!a(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){var e=document.querySelectorAll("link[rel=import]:not(import-dependency)"),n=e.length;n?c(e,function(e){return s(e,function(){--n||t()})}):t()}function r(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function i(t){r(function(){return o(function(){return t&&t()})})}function s(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),v&&"style"===t.localName||t.addEventListener("error",n)}}function a(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function l(){var t=this;this.a={},this.b=0,this.f=new MutationObserver(function(e){return t.l(e)}),this.f.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function c(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var u="import"in document.createElement("link"),h=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return h||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(^\/)|(^#)|(^[\w-\d]*:)/,p=/(url\()([^)]*)(\))/g,f=/(@import[\s]+(?!url\())([^;]*)(;)/g,y=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,m={$a:function(t,e){if(t.href&&t.setAttribute("href",m.la(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",m.la(t.getAttribute("src"),e)),"style"===t.localName){var n=m.Ca(t.textContent,e,p);t.textContent=m.Ca(n,e,f)}},Ca:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=m.Da(t,e)),n+"'"+t+"'"+r})},la:function(t,e){return t&&d.test(t)?t:m.Da(t,e)},Da:function(t,e){if(void 0===m.ga){m.ga=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",m.ga="http://a/c%20d"===n.href}catch(t){}}return m.ga?new URL(t,e).href:((n=m.Pa)||(n=document.implementation.createHTMLDocument("temp"),m.Pa=n,n.oa=n.createElement("base"),n.head.appendChild(n.oa),n.na=n.createElement("a")),n.oa.href=e,n.na.href=t,n.na.href||t)}},_={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1],o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o);e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,_.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&!t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||!r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(t){var e=this;c(t=t.querySelectorAll("link[rel=import]"),function(t){return e.h(t)})},l.prototype.h=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.import=o,this.g(t))}else this.b++,this.a[n]="pending",_.load(n,function(t,o){t=e.m(t,o||n),e.a[n]=t,e.b--,e.c(t),e.i()},function(){e.a[n]=null,e.b--,e.i()})},l.prototype.m=function(t,e){if(!t)return document.createDocumentFragment();v&&(t=t.replace(y,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=m.la(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return c(n=t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){s(t),m.$a(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},l.prototype.i=function(){var t=this;if(!this.b){this.f.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.f.observe(document.head,{childList:!0,subtree:!0}),t.j()))};this.s(function(){n=!0,o()}),this.o(function(){e=!0,o()})}},l.prototype.flatten=function(t){var e=this;c(t=t.querySelectorAll("link[rel=import]"),function(t){var n=e.a[t.href];(t.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.import=t,e.flatten(n),t.appendChild(n))})},l.prototype.o=function(t){function e(r){if(r<o){var i=n[r],a=document.createElement("script");i.removeAttribute("import-dependency"),c(i.attributes,function(t){return a.setAttribute(t.name,t.value)}),h=a,i.parentNode.replaceChild(a,i),s(a,function(){h=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},l.prototype.s=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");c(e,function(e){if(s(e,function(){e.removeAttribute("import-dependency"),--o||t()}),r&&e.parentNode!==document.head){var i=document.createElement(e.localName);for(i.__appliedElement=e,i.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(i,e.nextSibling),i=n(e);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(e,i),e.removeAttribute("type")}})}else t()},l.prototype.j=function(){var t=this;c(document.querySelectorAll("link[rel=import]"),function(e){return t.g(e)},!0)},l.prototype.g=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.l=function(t){var e=this;c(t,function(t){return c(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(a(t)?e.h(t):e.c(t))})})},u){var g=document.querySelectorAll("link[rel=import]");c(g,function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)}),g=function(t){a(t=t.target)&&(t.__loaded=!0)},document.addEventListener("load",g,!0),document.addEventListener("error",g,!0)}else{var b=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!b||b.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=a(this)?this:n(this);return t?t.href:b&&b.get?b.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=i,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var Gt=window.ShadyDOM||{};Gt.ab=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var $t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Gt.P=!!($t&&$t.configurable&&$t.get),Gt.ya=Gt.force||!Gt.ab;var zt=Element.prototype,Xt=zt.matches||zt.matchesSelector||zt.mozMatchesSelector||zt.msMatchesSelector||zt.oMatchesSelector||zt.webkitMatchesSelector,Kt=document.createTextNode(""),Jt=0,Yt=[];new MutationObserver(function(){for(;Yt.length;)try{Yt.shift()()}catch(t){throw Kt.textContent=Jt++,t}}).observe(Kt,{characterData:!0});var Zt,Qt=[];T.list=Qt,_.prototype.jb=function(){var t=this;this.a||(this.a=!0,S(function(){t.b()}))},_.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.W.forEach(function(e){e(t)})}},_.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var te=Element.prototype.appendChild,ee=Element.prototype.insertBefore,ne=Element.prototype.removeChild,oe=Element.prototype.setAttribute,re=Element.prototype.removeAttribute,ie=Element.prototype.cloneNode,se=Document.prototype.importNode,ae=Element.prototype.addEventListener,le=Element.prototype.removeEventListener,ce=Window.prototype.addEventListener,ue=Window.prototype.removeEventListener,he=Element.prototype.dispatchEvent,de=Object.freeze({appendChild:te,insertBefore:ee,removeChild:ne,setAttribute:oe,removeAttribute:re,cloneNode:ie,importNode:se,addEventListener:ae,removeEventListener:le,sb:ce,tb:ue,dispatchEvent:he,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll}),pe=/[&\u00A0"]/g,fe=/[&\u00A0<>]/g,ye=O("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),me=O("style script xmp iframe noembed noframes plaintext noscript".split(" ")),_e=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),ve=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),ge=Object.freeze({parentNode:D,firstChild:L,lastChild:M,previousSibling:k,nextSibling:R,childNodes:j,parentElement:P,firstElementChild:H,lastElementChild:I,previousElementSibling:F,nextElementSibling:q,children:V,innerHTML:B,textContent:U}),be=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),we=document.implementation.createHTMLDocument("inert").createElement("div"),Ee=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Ne={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:P(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:D(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:R(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:k(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return q(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return F(this)},configurable:!0}},Se={childNodes:{get:function(){var t;if(v(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var e=this.firstChild;e;e=e.nextSibling)this.__shady.childNodes.push(e)}t=this.__shady.childNodes}else t=j(this);return t.item=function(e){return t[e]},t},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:L(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:M(this)},configurable:!0},textContent:{get:function(){if(v(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return U(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return H(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return I(this)},configurable:!0},children:{get:function(){var t;return t=v(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):V(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return v(this)?A(t):B(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(be&&be.set?be.set.call(we,t):we.innerHTML=t;we.firstChild;)e.appendChild(we.firstChild)},configurable:!0}},Ce={shadowRoot:{get:function(){return this.__shady&&this.__shady.gb||null},configurable:!0}},Te={activeElement:{get:function(){var t;if((t=Ee&&Ee.get?Ee.get.call(document):Gt.P?void 0:document.activeElement)&&t.nodeType){var e=!!g(this);if(this===document||e&&this.host!==t&&this.host.contains(t)){for(e=b(t);e&&e!==this;)t=e.host,e=b(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},xe=Gt.P?function(){}:function(t){t.__shady&&t.__shady.Na||(t.__shady=t.__shady||{},t.__shady.Na=!0,W(t,Ne,!0))},Oe=Gt.P?function(){}:function(t){t.__shady&&t.__shady.La||(t.__shady=t.__shady||{},t.__shady.La=!0,W(t,Se,!0),W(t,Ce,!0))},Ae=null,De={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Le={get composed(){return!1!==this.isTrusted&&void 0===this.da&&(this.da=De[this.type]),this.da||!1},composedPath:function(){return this.pa||(this.pa=st(this.__target,this.composed)),this.pa},get target(){return at(this.currentTarget,this.composedPath())},get relatedTarget(){return this.qa?(this.ra||(this.ra=st(this.qa,!0)),at(this.currentTarget,this.ra)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ea=this.Ka=!0}},Me={focus:!0,blur:!0},ke=lt(window.Event),Re=lt(window.CustomEvent),je=lt(window.MouseEvent),Pe={};y.prototype=Object.create(DocumentFragment.prototype),y.prototype.B=function(t,e){this.Ma="ShadyRoot",m(t),m(this),this.host=t,this.I=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.gb="closed"!==this.I?this:null,this.N=!1,this.b=[],this.a=null;for(var n=0,o=(e=j(t)).length;n<o;n++)ne.call(t,e[n])},y.prototype.J=function(){var t=this;this.N||(this.N=!0,C(function(){return t.ua()}))},y.prototype.A=function(){for(var t=this,e=this;e;)e.N&&(t=e),e=e.Ua();return t},y.prototype.Ua=function(){var t=this.host.getRootNode();if(g(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.h(e))return t},y.prototype.ua=function(){this.N&&this.A()._renderRoot()},y.prototype._renderRoot=function(){this.N=!1,this.s(),this.m()},y.prototype.s=function(){for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.l(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.f(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.f(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.sa()&&n._renderRoot(),this.c(t.__shady.O,t.__shady.assignedNodes),n=t.__shady.ta){for(var o=0;o<n.length;o++)n[o].__shady.ha=null;t.__shady.ta=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ia=!0)}t.__shady.ia&&(t.__shady.ia=!1,this.g(t))}},y.prototype.f=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.ha;t.__shady.ha=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ia=!0)},y.prototype.l=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.O=[],t.__shady.ta=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.ha=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},y.prototype.c=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)"slot"==n.localName?this.c(t,n.__shady.assignedNodes):t.push(e[o])},y.prototype.g=function(t){he.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.g(t.__shady.assignedSlot)},y.prototype.m=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.G(n===this?this.host:n,this.o(n))},y.prototype.o=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){o=t[n];if(this.h(o))for(var o=o.__shady.O,r=0;r<o.length;r++)e.push(o[r]);else e.push(o)}return e},y.prototype.h=function(t){return"slot"==t.localName},y.prototype.G=function(t,e){for(var n,o=j(t),r=mt(e,e.length,o,o.length),i=0,s=0;i<r.length&&(n=r[i]);i++){for(var a,l=0;l<n.S.length&&(a=n.S[l]);l++)D(a)===t&&ne.call(t,a),o.splice(n.index+s,1);s-=n.V}for(i=0;i<r.length&&(n=r[i]);i++)for(s=o[n.index],l=n.index;l<n.index+n.V;l++)a=e[l],ee.call(t,a,s),o.splice(l,0,a)},y.prototype.Qa=function(t){var e;this.a=this.a||{},this.b=this.b||[];for(var n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},m(o),m(o.parentNode);var r=this.i(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.j(this.a[i])},y.prototype.i=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Oa=e},y.prototype.j=function(t){return t.sort(function(t,e){t=vt(t);for(var n=vt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},y.prototype.Ta=function(t){var e;this.a=this.a||{},this.b=this.b||[];var n,o=this.a;for(n in o)for(var r=o[n],i=0;i<r.length;i++){var s,a=r[i];t:{for(s=a;s;){if(s==t){s=!0;break t}s=s.parentNode}s=void 0}s&&(r.splice(i,1),0<=(e=this.b.indexOf(a))&&this.b.splice(e,1),i--,this.F(a),e=!0)}return e},y.prototype.Va=function(t){var e=t.Oa,n=this.i(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.j(e))}},y.prototype.F=function(t){if(t=t.__shady.O)for(var e=0;e<t.length;e++){var n=t[e],o=D(n);o&&ne.call(o,n)}},y.prototype.sa=function(){return!!this.b.length},y.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.addEventListener(t,e,n)},y.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.removeEventListener(t,e,n)},y.prototype.getElementById=function(t){return et(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){W(t,Se,!0),W(t,Te,!0)}(y.prototype);var He={addEventListener:dt.bind(window),removeEventListener:pt.bind(window)},Ie={addEventListener:dt,removeEventListener:pt,appendChild:function(t){return z(this,t)},insertBefore:function(t,e){return z(this,t,e)},removeChild:function(t){return X(this,t)},replaceChild:function(t,e){return z(this,t,e),X(this,e),t},cloneNode:function(t){var e;if("template"==this.localName)e=ie.call(this,t);else if(e=ie.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return tt(this)},get isConnected(){var t=this.ownerDocument;if(t&&t.contains&&t.contains(this)||(t=t.documentElement)&&t.contains&&t.contains(this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof y?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return T(),he.call(this,t)}},Fe={get assignedSlot(){return gt(this)}},qe={querySelector:function(t){return et(this,function(e){return Xt.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return et(this,function(e){return Xt.call(e,t)})}},Ve={assignedNodes:function(t){if("slot"===this.localName)return ot(this),this.__shady?(t&&t.flatten?this.__shady.O:this.__shady.assignedNodes)||[]:[]}},Be=E({setAttribute:function(t,e){rt(this,t,e)},removeAttribute:function(t){re.call(this,t),Z(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new y(Pe,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){rt(this,"slot",t)},get assignedSlot(){return gt(this)}},qe,Ve);Object.defineProperties(Be,Ce);var Ue=E({importNode:function(t,e){return it(t,e)},getElementById:function(t){return et(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},qe);Object.defineProperties(Ue,{_activeElement:Te.activeElement});var We=HTMLElement.prototype.blur,Ge=E({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():We.call(this)}});Gt.ya&&(window.ShadyDOM={inUse:Gt.ya,patch:function(t){return t},isShadyRoot:g,enqueue:C,flush:T,settings:Gt,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.R||(t.__shady.R=new _),t.__shady.R.W.add(e);var n=t.__shady.R;return{Ra:e,K:n,Sa:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.K;e&&(e.W.delete(t.Ra),e.W.size||(t.Sa.__shady.R=null))},nativeMethods:de,nativeTree:ge},window.Event=ke,window.CustomEvent=Re,window.MouseEvent=je,function(){for(var t in Me)window.addEventListener(t,function(t){t.__target||(ft(t),ut(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;bt(window.Node.prototype,Ie),bt(window.Window.prototype,He),bt(window.Text.prototype,Fe),bt(window.DocumentFragment.prototype,qe),bt(window.Element.prototype,Be),bt(window.Document.prototype,Ue),window.HTMLSlotElement&&bt(window.HTMLSlotElement.prototype,Ve),bt(t.prototype,Ge),Gt.P&&(G(window.Node.prototype),G(window.Text.prototype),G(window.DocumentFragment.prototype),G(window.Element.prototype),G(t.prototype),G(window.Document.prototype),window.HTMLSlotElement&&G(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=y);var $e=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));f.prototype.B=function(t,e){this.m.set(t,e),this.l.set(e.constructor,e)},f.prototype.f=function(t){return this.m.get(t)},f.prototype.A=function(t){return this.l.get(t)},f.prototype.o=function(t){this.h=!0,this.i.push(t)},f.prototype.j=function(t){var e=this;this.h&&St(t,function(t){return e.g(t)})},f.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.i.length;e++)this.i[e](t)}},f.prototype.b=function(t){var e=[];for(St(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.s(n)}},f.prototype.a=function(t){var e=[];for(St(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},f.prototype.c=function(t,e){var n=this,o=[];if(St(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var r=t.import;r instanceof Node&&"complete"===r.readyState?(r.__CE_isImportDocument=!0,r.__CE_hasRegistry=!0):t.addEventListener("load",function(){var o=t.import;o.__CE_documentLoadHandled||(o.__CE_documentLoadHandled=!0,o.__CE_isImportDocument=!0,o.__CE_hasRegistry=!0,e.delete(o),n.c(o,e))})}else o.push(t)},e=e||new Set),this.h)for(t=0;t<o.length;t++)this.g(o[t]);for(t=0;t<o.length;t++)this.s(o[t])},f.prototype.s=function(t){if(void 0===t.__CE_state){var e=this.f(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Et(t)&&this.connectedCallback(t)}}},f.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},f.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},f.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},p.prototype.c=function(){this.K&&this.K.disconnect()},p.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.c(n[o])},d.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},h.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!wt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.f(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.f)throw Error("A custom element is already being defined.");this.f=!0;var o,r,i,s,a;try{var l=function(t){var e=c[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},c=e.prototype;if(!(c instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");o=l("connectedCallback"),r=l("disconnectedCallback"),i=l("adoptedCallback"),s=l("attributeChangedCallback"),a=e.observedAttributes||[]}catch(t){return}finally{this.f=!1}this.a.B(t,{localName:t,constructor:e,connectedCallback:o,disconnectedCallback:r,adoptedCallback:i,attributeChangedCallback:s,observedAttributes:a,constructionStack:[]}),this.c.push(t),this.b||(this.b=!0,this.g(function(){return n.j()}))},h.prototype.j=function(){if(!1!==this.b)for(this.b=!1,this.a.c(document);0<this.c.length;){var t=this.c.shift();(t=this.h.get(t))&&t.c()}},h.prototype.get=function(t){if(t=this.a.f(t))return t.constructor},h.prototype.whenDefined=function(t){if(!wt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new d,this.h.set(t,e),this.a.f(t)&&-1===this.c.indexOf(t)&&e.c(),e.f)},h.prototype.l=function(t){this.i.c();var e=this.g;this.g=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=h,h.prototype.define=h.prototype.define,h.prototype.get=h.prototype.get,h.prototype.whenDefined=h.prototype.whenDefined,h.prototype.polyfillWrapFlushCallback=h.prototype.l;var ze=window.Document.prototype.createElement,Xe=window.Document.prototype.createElementNS,Ke=window.Document.prototype.importNode,Je=window.Document.prototype.prepend,Ye=window.Document.prototype.append,Ze=window.Node.prototype.cloneNode,Qe=window.Node.prototype.appendChild,tn=window.Node.prototype.insertBefore,en=window.Node.prototype.removeChild,nn=window.Node.prototype.replaceChild,on=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),rn=window.Element.prototype.attachShadow,sn=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),an=window.Element.prototype.getAttribute,ln=window.Element.prototype.setAttribute,cn=window.Element.prototype.removeAttribute,un=window.Element.prototype.getAttributeNS,hn=window.Element.prototype.setAttributeNS,dn=window.Element.prototype.removeAttributeNS,pn=window.Element.prototype.insertAdjacentElement,fn=window.Element.prototype.prepend,yn=window.Element.prototype.append,mn=window.Element.prototype.before,_n=window.Element.prototype.after,vn=window.Element.prototype.replaceWith,gn=window.Element.prototype.remove,bn=window.HTMLElement,wn=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),En=window.HTMLElement.prototype.insertAdjacentElement,Nn=new function(){},Sn=window.customElements;if(!Sn||Sn.forcePolyfill||"function"!=typeof Sn.define||"function"!=typeof Sn.get){var Cn=new f;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.A(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(!o.length)return o=ze.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===Nn)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=Nn,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=bn.prototype,e}()}(Cn),function(t){Ct(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.f(e);if(n)return new n.constructor}return e=ze.call(this,e),t.g(e),e}),Ct(Document.prototype,"importNode",function(e,n){return e=Ke.call(this,e,n),this.__CE_hasRegistry?t.c(e):t.j(e),e}),Ct(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.f(n);if(o)return new o.constructor}return e=Xe.call(this,e,n),t.g(e),e}),u(t,Document.prototype,{Ba:Je,append:Ye})}(Cn),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{if(i=void 0,this.firstChild){var o=this.childNodes,r=o.length;if(0<r&&Et(this))for(var i=Array(r),s=0;s<r;s++)i[s]=o[s]}if(n.set.call(this,e),i)for(e=0;e<i.length;e++)t.a(i[e])}}})}Ct(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=tn.call(this,e,n),Et(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Et(e),n=tn.call(this,e,n),o&&t.a(e),Et(this)&&t.b(e),n}),Ct(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=Qe.call(this,e),Et(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Et(e),o=Qe.call(this,e),n&&t.a(e),Et(this)&&t.b(e),o}),Ct(Node.prototype,"cloneNode",function(e){return e=Ze.call(this,e),this.ownerDocument.__CE_hasRegistry?t.c(e):t.j(e),e}),Ct(Node.prototype,"removeChild",function(e){var n=Et(e),o=en.call(this,e);return n&&t.a(e),o}),Ct(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){if(o=Array.prototype.slice.apply(e.childNodes),e=nn.call(this,e,n),Et(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}var o=Et(e),r=nn.call(this,e,n),i=Et(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),on&&on.get?e(Node.prototype,on):t.o(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)en.call(this,this.firstChild);Qe.call(this,document.createTextNode(t))}})})}(Cn),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Et(this)&&(r=[],St(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var s=r[i];1===s.__CE_state&&t.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?t.c(this):t.j(this),e}})}function n(e,n){Ct(e,"insertAdjacentElement",function(e,o){var r=Et(o);return e=n.call(this,e,o),r&&t.a(o),Et(e)&&t.b(o),e})}if(rn?Ct(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=rn.call(this,t)}):console.warn("Custom Elements: `Element#attachShadow` was not patched."),sn&&sn.get)e(Element.prototype,sn);else if(wn&&wn.get)e(HTMLElement.prototype,wn);else{var o=ze.call(document,"div");t.o(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return Ze.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)en.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)Qe.call(e,o.childNodes[0])}})})}Ct(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return ln.call(this,e,n);var o=an.call(this,e);ln.call(this,e,n),n=an.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Ct(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return hn.call(this,e,n,o);var r=un.call(this,e,n);hn.call(this,e,n,o),o=un.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Ct(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return cn.call(this,e);var n=an.call(this,e);cn.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Ct(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return dn.call(this,e,n);var o=un.call(this,e,n);dn.call(this,e,n);var r=un.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),En?n(HTMLElement.prototype,En):pn?n(Element.prototype,pn):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),u(t,Element.prototype,{Ba:fn,append:yn}),c(t,{Xa:mn,Wa:_n,hb:vn,remove:gn})}(Cn),document.__CE_hasRegistry=!0;var Tn=new h(Cn);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Tn})}var xn,On={STYLE_RULE:1,ca:7,MEDIA_RULE:4,ma:1e3},An={Za:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,va:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,za:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,fb:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,lb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,eb:/^@[^\s]*keyframes/,Aa:/\s+/g},Dn=!(window.ShadyDOM&&window.ShadyDOM.inUse);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?xn=window.ShadyCSS.nativeCss:window.ShadyCSS?(Dt(window.ShadyCSS),window.ShadyCSS=void 0):Dt(window.WebComponents&&window.WebComponents.flags);var Ln=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Mn=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,kn=/(--[\w-]+)\s*([:,;)]|$)/gi,Rn=/(animation\s*:)|(animation-name\s*:)/,jn=/@media\s(.*)/,Pn=/\{[^}]*\}/g,Hn=null;a.prototype.a=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.i(t,e||"",n)},a.prototype.i=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.s(t,e,n),t="template"===t.localName?(t.content||t.pb).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.i(t[o],e,n)},a.prototype.s=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(Zn);n?o&&(e=o.replace("style-scope","").replace(e,""),It(t,e)):It(t,(o?o+" ":"")+"style-scope "+e)}},a.prototype.b=function(t,e,n){var o=t.__cssBuild;return Dn||"shady"===o?e=Lt(e,n):(t=Ft(t),e=this.F(e,t.is,t.T,n)+"\n\n"),e.trim()},a.prototype.F=function(t,e,n,o){var r=this.f(e,n);e=this.h(e);var i=this;return Lt(t,function(t){t.c||(i.M(t,e,r),t.c=!0),o&&o(t,e,r)})},a.prototype.h=function(t){return t?Jn+t:""},a.prototype.f=function(t,e){return e?"[is="+t+"]":t},a.prototype.M=function(t,e,n){this.j(t,this.g,e,n)},a.prototype.j=function(t,e,n,o){t.selector=t.v=this.l(t,e,n,o)},a.prototype.l=function(t,e,n,o){var r=t.selector.split(qn);if(!kt(t)){t=0;for(var i,s=r.length;t<s&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(qn)},a.prototype.g=function(t,e,n){var o=this,r=!1;return t=t.trim(),t=t.replace(In,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=t.replace($n,Un+" $1"),t=t.replace(Vn,function(t,i,s){return r||(t=o.A(s,i,e,n),r=r||t.stop,i=t.Ya,s=t.value),i+s})},a.prototype.A=function(t,e,n,o){var r=t.indexOf(Gn);0<=t.indexOf(Un)?t=this.I(t,o):0!==r&&(t=n?this.m(t,n):t),n=!1,0<=r&&(e="",n=!0);var i;return n&&(i=!0,n&&(t=t.replace(Xn,function(t,e){return" > "+e}))),t=t.replace(Kn,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,Ya:e,stop:i}},a.prototype.m=function(t,e){return t=t.split(Yn),t[0]+=e,t.join(Yn)},a.prototype.I=function(t,e){var n=t.match(zn);return(n=n&&n[2].trim()||"")?n[0].match(Bn)?t.replace(zn,function(t,n,o){return e+o}):n.split(Bn)[0]===e?n:Qn:t.replace(Un,e)},a.prototype.G=function(t){t.selector=t.parsedSelector,this.o(t),this.j(t,this.B)},a.prototype.o=function(t){t.selector===Wn&&(t.selector="html")},a.prototype.B=function(t){return t.match(Gn)?this.g(t,Fn):this.m(t.trim(),Fn)},t.Object.defineProperties(a.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var In=/:(nth[-\w]+)\(([^)]+)\)/,Fn=":not(.style-scope)",qn=",",Vn=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Bn=/[[.:#*]/,Un=":host",Wn=":root",Gn="::slotted",$n=new RegExp("^("+Gn+")"),zn=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Xn=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Kn=/(.*):dir\((?:(ltr|rtl))\)/,Jn=".",Yn=":",Zn="class",Qn="should_not_match",to=new a;s.get=function(t){return t?t.__styleInfo:null},s.set=function(t,e){return t.__styleInfo=e},s.prototype.c=function(){return this.D},s.prototype._getStyleRules=s.prototype.c;var eo=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),no=navigator.userAgent.match("Trident");i.prototype.M=function(t){var e=this,n={},o=[],r=0;Rt(t,function(t){e.c(t),t.index=r++,e.G(t.u.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},i.prototype.c=function(t){if(!t.u){var e={},n={};this.b(t,n)&&(e.C=n,t.rules=null),e.cssText=this.F(t),t.u=e}},i.prototype.b=function(t,e){if(!(o=t.u)){for(var n,o=t.parsedCssText;t=Ln.exec(o);)"inherit"===(n=(t[2]||t[3]).trim())&&"unset"===n||(e[t[1].trim()]=n),n=!0;return n}if(o.C)return Object.assign(e,o.C),!0},i.prototype.F=function(t){return this.I(t.parsedCssText)},i.prototype.I=function(t){return t.replace(Pn,"").replace(Ln,"")},i.prototype.G=function(t,e){for(var n;n=kn.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},i.prototype.$=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},i.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=Ht(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},i.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(Mn.lastIndex=0,o=Mn.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=(i=n.substring(o)).trim(),i=this.a(i,e)||i;n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},i.prototype.B=function(t,e){var n="";t.u||this.c(t),t.u.cssText&&(n=this.f(t.u.cssText,e)),t.cssText=n},i.prototype.A=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.xa&&(t.xa=Rn.test(n)),t.xa)if(null==t.X){t.X=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.X.push(r))}else{for(r=0;r<t.X.length;++r)o=e[t.X[r]],n=o(n);o=n}t.cssText=o},i.prototype.Z=function(t,e){var n={},o=this,r=[];return Rt(t,function(t){t.u||o.c(t);var i=t.v||t.parsedSelector;e&&t.u.C&&i&&eo.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{C:n,key:r}},i.prototype.ba=function(t,e,n,o){if(e.u||this.c(e),e.u.C){t=(r=Ft(t)).is;var r=r.T,r=t?to.f(t,r):"html",i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(s=i===r+" > *."+r||-1!==i.indexOf("html"),a=!s&&0===i.indexOf(r)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=r,a&&(Dn&&!e.v&&(e.v=to.l(e,to.g,to.h(t),r)),n=e.v||r),o({kb:n,cb:a,rb:s}))}},i.prototype.Y=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return Rt(e,function(e){r.ba(t,e,i,function(i){eo.call(t.qb||t,i.kb)&&(i.cb?r.b(e,n):r.b(e,o))})},null,!0),{ib:o,bb:n}},i.prototype.aa=function(t,e,n){var o=this,r=Ft(t),i=to.f(r.is,r.T),a=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),r=s.get(t).D,l=this.h(r,n);return to.b(t,r,function(t){o.B(t,e),Dn||kt(t)||!t.cssText||(o.A(t,l),o.l(t,a,i,n))})},i.prototype.h=function(t,e){t=t.b;var n={};if(!Dn&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},i.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},i.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.v=t.v||t.selector,t.selector=t.v.replace(t.keyframesName,t.a)},i.prototype.l=function(t,e,n,o){t.v=t.v||t.selector,o="."+o;for(var r,i=t.v.split(","),s=0,a=i.length;s<a&&(r=i[s]);s++)i[s]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},i.prototype.o=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&It(t,r)},i.prototype.s=function(t,e,n,o){e=o?o.textContent||"":this.aa(t,e,n);var r=s.get(t),i=r.a;return i&&!Dn&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),Dn?r.a?(r.a.textContent=e,o=r.a):e&&(o=jt(e,n,t.shadowRoot,r.b)):o?o.parentNode||(no&&-1<e.indexOf("@media")&&(o.textContent=e),Pt(o,null,r.b)):e&&(o=jt(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},i.prototype.m=function(t,e){var n=Mt(t),o=this;t.textContent=Lt(n,function(t){var n=t.cssText=t.parsedCssText;t.u&&t.u.cssText&&(n=n.replace(An.va,"").replace(An.za,""),t.cssText=o.f(n,e))})},t.Object.defineProperties(i.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var oo=new i,ro={},io=window.customElements;if(io&&!Dn){var so=io.define;io.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Hn?Hn.nextSibling:null)||r.firstChild),Hn=o,ro[t]=o,so.call(io,t,e,n)}}if(r.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.C[r]!==e[r])return!1}return!0},r.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({C:e,styleElement:n,w:o}),r.length>this.c&&r.shift(),this.cache[t]=r},r.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!Dn){var ao=new MutationObserver(qt),lo=function(t){ao.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)lo(document);else{var co=function(){lo(document.body)};window.HTMLImports?window.HTMLImports.whenReady(co):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){co(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else co()})}o=function(){qt(ao.takeRecords())}}var uo,ho={},po=Promise.resolve(),fo=null,yo=window.HTMLImports&&window.HTMLImports.whenReady||null,mo=null,_o=null;n.prototype.wa=function(){!this.enqueued&&_o&&(this.enqueued=!0,Wt(_o))},n.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.wa())},n.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},n.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,mo&&mo(o),n.__shadyCSSCachedStyle=o)}}return t},n.prototype.addCustomStyle=n.prototype.b,n.prototype.getStyleForCustomStyle=n.prototype.a,n.prototype.processStyles=n.prototype.c,Object.defineProperties(n.prototype,{transformCallback:{get:function(){return mo},set:function(t){mo=t}},validateCallback:{get:function(){return _o},set:function(t){var e=!1;_o||(e=!0),_o=t,e&&this.wa()}}});var vo=new r;e.prototype.A=function(){o()},e.prototype.Y=function(t){return t+"-"+(this.m[t]=(this.m[t]||0)+1)},e.prototype.Ha=function(t){return Mt(t)},e.prototype.Ja=function(t){return Lt(t)},e.prototype.M=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},e.prototype.$=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},e.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,ho[e]=t;var o=this.$(t),r=this.M(t);n={is:e,extends:n,nb:o},Dn||to.a(t.content,e),this.c();var i=Mn.test(r)||Ln.test(r);Mn.lastIndex=0,Ln.lastIndex=0,r=Tt(r),i&&xn&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],xn||(o=oo.M(t._styleAst)),o.length&&!xn||(e=this.Z(n,t._styleAst,Dn?t.content:null,ro[e]),t.a=e),t.c=o}},e.prototype.Z=function(t,e,n,o){if((e=to.b(t,e)).length)return jt(e,t.is,n,o)},e.prototype.ba=function(t){var e,n,o=(r=Ft(t)).is,r=r.T,i=ro[o];return(o=ho[o])&&(e=o._styleAst,n=o.c),s.set(t,new s(e,i,n,0,r))},e.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=Vt)},e.prototype.G=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.s(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},e.prototype.c=function(){this.F(),this.G()},e.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(xn?this.Fa(t):(this.o(this.g,this.h),this.B(t)),this.b.enqueued=!1,this.i&&!xn&&this.styleDocument())}},e.prototype.styleElement=function(t,e){var n=Ft(t).is,o=s.get(t);if(o||(o=this.ba(t)),this.j(t)||(this.i=!0),e&&(o.L=o.L||{},Object.assign(o.L,e)),xn){if(o.L){e=o.L;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=ho[n])||this.j(t))&&r&&r.a&&!Bt(r)&&((Bt(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=to.b(t,o.D),Ut(r)),Dn&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=to.b(t,o.D)),o.D=r._styleAst)}else this.o(t,o),o.ja&&o.ja.length&&this.I(t,o)},e.prototype.l=function(t){return(t=t.getRootNode().host)?s.get(t)?t:this.l(t):this.g},e.prototype.j=function(t){return t===this.g},e.prototype.I=function(t,e){var n=Ft(t).is,o=vo.fetch(n,e.H,e.ja),r=o?o.styleElement:null,i=e.w;e.w=o&&o.w||this.Y(n),r=oo.s(t,e.H,e.w,r),Dn||oo.o(t,e.w,i),o||vo.b(n,e.H,r,e.w)},e.prototype.o=function(t,e){var n=this.l(t),o=s.get(n),n=Object.create(o.H||null),r=oo.Y(t,e.D);t=oo.Z(o.D,t).C,Object.assign(n,r.bb,t,r.ib),this.aa(n,e.L),oo.$(n),e.H=n},e.prototype.aa=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},e.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},e.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},e.prototype.Fa=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.Ea(n)}},e.prototype.B=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&oo.m(n,this.h.H)}},e.prototype.s=function(t){var e=this,n=Mt(t);Rt(n,function(t){Dn?to.o(t):to.G(t),xn&&(e.c(),e.a&&e.a.transformRule(t))}),xn?t.textContent=Lt(n):this.h.D.rules.push(n)},e.prototype.Ea=function(t){if(xn&&this.a){var e=Mt(t);this.c(),this.a.transformRules(e),t.textContent=Lt(e)}},e.prototype.getComputedStyleValue=function(t,e){var n;return xn||(n=(s.get(t)||s.get(this.l(t))).H[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},e.prototype.Ia=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)&&(o=t.getAttribute("class")))for(var o=o.split(/\s/),r=0;r<o.length;r++)if(o[r]===to.c){n=o[r+1];break}n&&e.push(to.c,n),xn||(n=s.get(t))&&n.w&&e.push(oo.g,n.w),It(t,e.join(" "))},e.prototype.Ga=function(t){return s.get(t)},e.prototype.flush=e.prototype.A,e.prototype.prepareTemplate=e.prototype.prepareTemplate,e.prototype.styleElement=e.prototype.styleElement,e.prototype.styleDocument=e.prototype.styleDocument,e.prototype.styleSubtree=e.prototype.styleSubtree,e.prototype.getComputedStyleValue=e.prototype.getComputedStyleValue,e.prototype.setElementClass=e.prototype.Ia,e.prototype._styleInfoForNode=e.prototype.Ga,e.prototype.transformCustomStyleForDocument=e.prototype.s,e.prototype.getStyleAst=e.prototype.Ha,e.prototype.styleAstToString=e.prototype.Ja,e.prototype.flushCustomStyles=e.prototype.f,Object.defineProperties(e.prototype,{nativeShadow:{get:function(){return Dn}},nativeCss:{get:function(){return xn}}});var go,bo,wo=new e;window.ShadyCSS&&(go=window.ShadyCSS.ApplyShim,bo=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:wo,prepareTemplate:function(t,e,n){wo.f(),wo.prepareTemplate(t,e,n)},styleSubtree:function(t,e){wo.f(),wo.styleSubtree(t,e)},styleElement:function(t){wo.f(),wo.styleElement(t)},styleDocument:function(t){wo.f(),wo.styleDocument(t)},getComputedStyleValue:function(t,e){return wo.getComputedStyleValue(t,e)},nativeCss:xn,nativeShadow:Dn},go&&(window.ShadyCSS.ApplyShim=go),bo&&(window.ShadyCSS.CustomStyleInterface=bo),function(){var t=window.customElements,e=window.HTMLImports;if(window.WebComponents=window.WebComponents||{},t&&t.polyfillWrapFlushCallback){var n,o=function(){if(n){var t=n;return n=null,t(),!0}},r=e.whenReady;t.polyfillWrapFlushCallback(function(t){n=t,r(o)}),e.whenReady=function(t){r(function(){o()?e.whenReady(t):t()})}}e.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})}(),function(){var t=document.createElement("style");t.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var e=document.querySelector("head");e.insertBefore(t,e.firstChild)}()}()}).call(self);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1326

Insecure DOM Manipulation (XSS) in jquery.js

CWE-79
File Location: media/vendor/jquery/js/jquery.js:1326
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- el.innerHTML = "<a href='' disabled='disabled'></a>" +
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2749

Insecure DOM Manipulation (XSS) in jquery.js

CWE-79
File Location: media/vendor/jquery/js/jquery.js:2749
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- el.innerHTML = "<a href='#'></a>";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2762

Insecure DOM Manipulation (XSS) in jquery.js

CWE-79
File Location: media/vendor/jquery/js/jquery.js:2762
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- el.innerHTML = "<input/>";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2122

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2122
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- controls.querySelector('.' + t.options.classPrefix + 'time').innerHTML += t.options.timeAndDurationSeparator + '<span class="' + t.options.classPrefix + 'duration">' + ((0, _time.secondsToTimeCode)(t.options.duration, t.options.alwaysShowHours, t.options.showTimecodeFrameCount, t.options.framesPerSecond, t.options.secondsDecimalLength) + '</span>');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2264

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2264
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- player.captions.innerHTML = '<div class="' + t.options.classPrefix + 'captions-position ' + t.options.classPrefix + 'captions-position-hover"' + attr + '>' + ('<span class="' + t.options.classPrefix + 'captions-text"></span>') + '</div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L7930

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:7930
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- el.innerHTML = '<a href="' + (0, _general.escapeHTML)(url) + '">x</a>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L422

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/codesample/plugin.js:422
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- env.element.innerHTML = env.highlightedCode;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in plugin.min.js

CWE-79
File Location: media/vendor/tinymce/plugins/template/plugin.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};h("5",tinymce.util.Tools.resolve),g("1",["5"],function(a){return a("tinymce.PluginManager")}),h("c",Array),h("d",Error),g("6",["c","d"],function(a,b){var c=function(){},d=function(a,b){return function(){return a(b.apply(null,arguments))}},e=function(a){return function(){return a}},f=function(a){return a},g=function(a,b){return a===b},h=function(b){for(var c=new a(arguments.length-1),d=1;d<arguments.length;d++)c[d-1]=arguments[d];return function(){for(var d=new a(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];var f=c.concat(d);return b.apply(null,f)}},i=function(a){return function(){return!a.apply(null,arguments)}},j=function(a){return function(){throw new b(a)}},k=function(a){return a()},l=function(a){a()},m=e(!1),n=e(!0);return{noop:c,compose:d,constant:e,identity:f,tripleEquals:g,curry:h,not:i,die:j,apply:k,call:l,never:m,always:n}}),g("8",["5"],function(a){return a("tinymce.util.Tools")}),g("e",["5"],function(a){return a("tinymce.util.XHR")}),g("f",["5"],function(a){return a("tinymce.dom.DOMUtils")}),g("9",["f"],function(a){var b=function(a){return a.getParam("template_cdate_classes","cdate")},c=function(a){return a.getParam("template_mdate_classes","mdate")},d=function(a){return a.getParam("template_selected_content_classes","selcontent")},e=function(a){return a.getParam("template_preview_replace_values")},f=function(a){return a.getParam("template_replace_values")},g=function(a){return a.templates},h=function(a){return a.getParam("template_cdate_format",a.getLang("template.cdate_format"))},i=function(a){return a.getParam("template_mdate_format",a.getLang("template.mdate_format"))},j=function(a){return a.getParam("template_popup_width",600)},k=function(b){return Math.min(a.DOM.getViewPort().h,b.getParam("template_popup_height",500))};return{getCreationDateClasses:b,getModificationDateClasses:c,getSelectedContentClasses:d,getPreviewReplaceValues:e,getTemplateReplaceValues:f,getTemplates:g,getCdateFormat:h,getMdateFormat:i,getDialogWidth:j,getDialogHeight:k}}),g("a",[],function(){var a=function(a,b){if(a=""+a,a.length<b)for(var c=0;c<b-a.length;c++)a="0"+a;return a},b=function(b,c,d){var e="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),g="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),h="January February March April May June July August September October November December".split(" ");return d=d||new Date,c=c.replace("%D","%m/%d/%Y"),c=c.replace("%r","%I:%M:%S %p"),c=c.replace("%Y",""+d.getFullYear()),c=c.replace("%y",""+d.getYear()),c=c.replace("%m",a(d.getMonth()+1,2)),c=c.replace("%d",a(d.getDate(),2)),c=c.replace("%H",""+a(d.getHours(),2)),c=c.replace("%M",""+a(d.getMinutes(),2)),c=c.replace("%S",""+a(d.getSeconds(),2)),c=c.replace("%I",""+((d.getHours()+11)%12+1)),c=c.replace("%p",""+(d.getHours()<12?"AM":"PM")),c=c.replace("%B",""+b.translate(h[d.getMonth()])),c=c.replace("%b",""+b.translate(g[d.getMonth()])),c=c.replace("%A",""+b.translate(f[d.getDay()])),c=c.replace("%a",""+b.translate(e[d.getDay()])),c=c.replace("%%","%")};return{getDateTime:b}}),g("7",["8","e","9","a"],function(a,b,c,d){var e=function(a,d){return function(){var e=c.getTemplates(a);return"function"==typeof e?void e(d):void("string"==typeof e?b.send({url:e,success:function(a){d(JSON.parse(a))}}):d(e))}},f=function(b,c,d){return a.each(d,function(a,b){"function"==typeof a&&(a=a(b)),c=c.replace(new RegExp("\\{\\$"+b+"\\}","g"),a)}),c},g=function(b,d){var e=b.dom,f=c.getTemplateReplaceValues(b);a.each(e.select("*",d),function(b){a.each(f,function(a,c){e.hasClass(b,c)&&"function"==typeof f[c]&&f[c](b)})})},h=function(a,b){return new RegExp("\\b"+b+"\\b","g").test(a.className)},i=function(b,e,i){var j,k,l=b.dom,m=b.selection.getContent();i=f(b,i,c.getTemplateReplaceValues(b)),j=l.create("div",null,i),k=l.select(".mceTmpl",j),k&&k.length>0&&(j=l.create("div",null),j.appendChild(k[0].cloneNode(!0))),a.each(l.select("*",j),function(a){h(a,c.getCreationDateClasses(b).replace(/\s+/g,"|"))&&(a.innerHTML=d.getDateTime(b,c.getCdateFormat(b))),h(a,c.getModificationDateClasses(b).replace(/\s+/g,"|"))&&(a.innerHTML=d.getDateTime(b,c.getMdateFormat(b))),h(a,c.getSelectedContentClasses(b).replace(/\s+/g,"|"))&&(a.innerHTML=m)}),g(b,j),b.execCommand("mceInsertContent",!1,j.innerHTML),b.addVisual()};return{createTemplateList:e,replaceTemplateValues:f,replaceVals:g,insertTemplate:i}}),g("2",["6","7"],function(a,b){var c=function(c){c.addCommand("mceInsertTemplate",a.curry(b.insertTemplate,c))};return{register:c}}),g("3",["8","9","a","7"],function(a,b,c,d){var e=function(e){e.on("PreProcess",function(f){var g=e.dom,h=b.getMdateFormat(e);a.each(g.select("div",f.node),function(b){g.hasClass(b,"mceTmpl")&&(a.each(g.select("*",b),function(a){g.hasClass(a,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(a.innerHTML=c.getDateTime(e,h))}),d.replaceVals(e,b))})})};return{setup:e}}),g("b",["f","8","e","9","7"],function(a,b,c,d,e){var f=function(a,c,f){if(f.indexOf("<html>")===-1){var g="";b.each(a.contentCSS,function(b){g+='<link type="text/css" rel="stylesheet" href="'+a.documentBaseURI.toAbsolute(b)+'">'});var h=a.settings.body_class||"";h.indexOf("=")!==-1&&(h=a.getParam("body_class","","hash"),h=h[a.id]||""),f="<!DOCTYPE html><html><head>"+g+'</head><body class="'+h+'">'+f+"</body></html>"}f=e.replaceTemplateValues(a,f,d.getPreviewReplaceValues(a));var i=c.find("iframe")[0].getEl().contentWindow.document;i.open(),i.write(f),i.close()},g=function(a,g){var h,i,j=[];if(!g||0===g.length){var k=a.translate("No templates defined.");return void a.notificationManager.open({text:k,type:"info"})}b.each(g,function(a){j.push({selected:!j.length,text:a.title,value:{url:a.url,content:a.content,description:a.description}})});var l=function(b){var d=b.control.value();d.url?c.send({url:d.url,success:function(b){i=b,f(a,h,i)}}):(i=d.content,f(a,h,i)),h.find("#description")[0].text(b.control.value().description)};h=a.windowManager.open({title:"Insert template",layout:"flex",direction:"column",align:"stretch",padding:15,spacing:10,items:[{type:"form",flex:0,padding:0,items:[{type:"container",label:"Templates",items:{type:"listbox",label:"Templates",name:"template",values:j,onselect:l}}]},{type:"label",name:"description",label:"Description",text:"\xa0"},{type:"iframe",flex:1,border:1}],onsubmit:function(){e.insertTemplate(a,!1,i)},minWidth:d.getDialogWidth(a),minHeight:d.getDialogHeight(a)}),h.find("listbox")[0].fire("select")};return{open:g}}),g("4",["7","b"],function(a,b){var c=function(a){return function(c){b.open(a,c)}},d=function(b){b.addButton("template",{title:"Insert template",onclick:a.createTemplateList(b.settings,c(b))}),b.addMenuItem("template",{text:"Template",onclick:a.createTemplateList(b.settings,c(b)),icon:"template",context:"insert"})};return{register:d}}),g("0",["1","2","3","4"],function(a,b,c,d){return a.add("template",function(a){d.register(a),b.register(a),c.setup(a)}),function(){}}),d("0")()}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L846

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/visualchars/plugin.js:846
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1708

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:1708
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- elm.innerHTML = children;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L17186

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:17186
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl('body').innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L7409

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.js:7409
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl().lastChild.innerHTML = self.encode(e.value);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L9972

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:9972
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- target.innerHTML = '<br>' + html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L17623

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:17623
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- if (keyCode === 8 && selection.isCollapsed() && selection.getStart().innerHTML === ZWSP) {
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L28259

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:28259
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- value = parentNode == rootNode ? rootNode.innerHTML : dom.getOuterHTML(parentNode);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L38739

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:38739
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- 'var ed = window.parent.tinymce.get("' + editor.id + '");document.write(ed.iframeHTML);' +
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L56

Insecure DOM Manipulation (XSS) in error.js

CWE-79
File Location: installation/template/js/error.js:56
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- text1.innerHTML = errorLocale[key].text1.replace('{{phpversion}}', phpVersion);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in jupdatecheck.min.js

CWE-79
File Location: media/plg_quickicon_joomlaupdate/js/jupdatecheck.min.js:1
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){"use strict";var e=function(){if(Joomla.getOptions("js-joomla-update")){var e=Joomla.getOptions("js-joomla-update");Joomla.request({url:e.ajaxUrl+"&eid=700&cache_timeout=3600",method:"GET",data:"",perform:!0,onSuccess:function(o,n){var t=document.getElementById("plg_quickicon_joomlaupdate"),a=t.querySelectorAll("span.j-links-link"),l=JSON.parse(o);if(l instanceof Array)if(0===l.length){t.classList.add("success");for(var r=0,s=a.length;r<s;r++)a[r].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE")}else{if(l.shift().version!=e.version){var i={message:[Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND_MESSAGE").replace("%s",l.length)+'<button class="btn btn-primary" onclick="document.location=\''+e.url+"'\">"+Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND_BUTOON")+"</button>"],error:["info"]};Joomla.renderMessages(i),window.scrollTo(0,0),t.classList.add("danger");for(var r=0,s=a.length;r<s;r++)a[r].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND").replace("%s",l.length)}else for(var r=0,s=a.length;r<s;r++)a[r].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE")}else{t.classList.add("danger");for(var r=0,s=a.length;r<s;r++)a[r].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_ERROR")}},onError:function(e){var o=document.getElementById("plg_quickicon_joomlaupdate"),n=o.querySelectorAll("span.j-links-link");o.classList.add("danger");for(var t=0,a=n.length;t<a;t++)n[t].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_ERROR")}})}};document.addEventListener("DOMContentLoaded",function(){setTimeout(e,2e3)})}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in core.min.js

CWE-79
File Location: media/system/js/core.min.js:1
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- Joomla=window.Joomla||{},Joomla.editors=Joomla.editors||{},Joomla.editors.instances=Joomla.editors.instances||{},function(e,t){"use strict";e.submitform=function(e,o,n){o||(o=t.getElementById("adminForm")),e&&(o.task.value=e),o.noValidate=!n,n?o.hasAttribute("novalidate")&&o.removeAttribute("novalidate"):o.setAttribute("novalidate","");var r=t.createElement("input");r.style.display="none",r.type="submit",o.appendChild(r).click(),o.removeChild(r)},e.submitbutton=function(o){var n=t.querySelectorAll("form.form-validate");if(n.length>0)for(var r=0,s=n.length;r<s;r++){var a=o.split("."),i=n[r].getAttribute("data-cancel-task");i||(i=a[0]+".cancel"),(o==i||t.formvalidator.isValid(n[r]))&&e.submitform(o,n[r])}else e.submitform(o)},e.JText={strings:{},_:function(t,o){var n=e.getOptions("joomla.jtext");return n&&(this.load(n),e.loadOptions({"joomla.jtext":null})),o=void 0===o?"":o,t=t.toUpperCase(),void 0!==this.strings[t]?this.strings[t]:o},load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this.strings[t.toUpperCase()]=e[t]);return this}},e.optionsStorage=e.optionsStorage||null,e.getOptions=function(t,o){return e.optionsStorage||e.loadOptions(),void 0!==e.optionsStorage[t]?e.optionsStorage[t]:o},e.loadOptions=function(o){if(!o){for(var n,r,s,a=t.querySelectorAll(".joomla-script-options.new"),i=0,l=0,c=a.length;l<c;l++)n=(r=a[l]).text||r.textContent,(s=JSON.parse(n))&&(e.loadOptions(s),i++),r.className=r.className.replace(" new"," loaded");if(i)return}if(e.optionsStorage){if(o)for(var d in o)o.hasOwnProperty(d)&&(e.optionsStorage[d]=o[d])}else e.optionsStorage=o||{}},e.replaceTokens=function(e){if(/^[0-9A-F]{32}$/i.test(e)){var o,n,r,s=t.getElementsByTagName("input");for(o=0,r=s.length;o<r;o++)"hidden"==(n=s[o]).type&&"1"==n.value&&32==n.name.length&&(n.name=e)}},e.isEmail=function(e){return/^[\w.!#$%&‚Äô*+\/=?^`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9-]{2,})+$/i.test(e)},e.checkAll=function(e,t){if(!e.form)return!1;t=t||"cb";var o,n,r,s=0;for(o=0,r=e.form.elements.length;o<r;o++)(n=e.form.elements[o]).type==e.type&&0===n.id.indexOf(t)&&(n.checked=e.checked,s+=n.checked?1:0);return e.form.boxchecked&&(e.form.boxchecked.value=s),!0},e.renderMessages=function(o,n,r,s){var a,i,l,c,d,m,u,f;a=void 0===n||n&&"#system-message-container"===n?t.getElementById("system-message-container"):t.querySelector(n),(void 0===r||r&&!1===r)&&e.removeMessages(a);for(i in o)if(o.hasOwnProperty(i)){if(l=o[i],"object"==typeof window.customElements&&"function"==typeof window.customElements.get("joomla-alert"))c=t.createElement("joomla-alert"),["notice","message","error"].indexOf(i)>-1?(f="notice"===i?"info":i,f="message"===i?"success":f,f="error"===i?"danger":f):f="info",c.setAttribute("level",f),c.setAttribute("dismiss","true"),s&&parseInt(s)>0&&c.setAttribute("autodismiss",s);else{c=t.createElement("div"),["notice","message","error"].indexOf(i)>-1?(f="notice"===i?"info":i,f="message"===i?"success":f,f="error"===i?"danger":f):f="info",c.className="alert "+f;var p=t.createElement("button");p.setAttribute("type","button"),p.setAttribute("data-dismiss","alert"),p.className="close",p.innerHTML="×",c.appendChild(p)}for(void 0!==e.JText._(i)&&((d=t.createElement("h4")).className="alert-heading",d.innerHTML=e.JText._(i)?e.JText._(i):i,c.appendChild(d)),m=l.length-1;m>=0;m--)(u=t.createElement("div")).innerHTML=l[m],c.appendChild(u);a.appendChild(c),"object"!=typeof window.customElements&&"function"!=typeof window.customElements.get("joomla-alert")&&s&&parseInt(s)>0&&setTimeout(function(){e.removeMessages(a)},s)}},e.removeMessages=function(e){var o;if(o=e||t.getElementById("system-message-container"),"object"==typeof window.customElements&&window.customElements.get("joomla-alert")){var n=o.querySelectorAll("joomla-alert");if(n.length)for(var r=0,s=n.length;r<s;r++)n[r].close()}else{for(;o.firstChild;)o.removeChild(o.firstChild);o.style.display="none",o.offsetHeight,o.style.display=""}},e.ajaxErrorsMessages=function(t,o,n){var r={};if("parsererror"===o){for(var s=t.responseText.trim(),a=[],i=s.length-1;i>=0;i--)a.unshift(["&#",s[i].charCodeAt(),";"].join(""));s=a.join(""),r.error=[e.JText._("JLIB_JS_AJAX_ERROR_PARSE").replace("%s",s)]}else"nocontent"===o?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_NO_CONTENT")]:"timeout"===o?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_TIMEOUT")]:"abort"===o?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_CONNECTION_ABORT")]:t.responseJSON&&t.responseJSON.message?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)+" <em>"+t.responseJSON.message+"</em>"]:t.statusText?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)+" <em>"+t.statusText+"</em>"]:r.error=[e.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)];return r},e.isChecked=function(e,o){if(void 0===o&&(o=t.getElementById("adminForm")),o.boxchecked.value=e?parseInt(o.boxchecked.value)+1:parseInt(o.boxchecked.value)-1,o.elements["checkall-toggle"]){var n,r,s,a=!0;for(n=0,s=o.elements.length;n<s;n++)if("checkbox"==(r=o.elements[n]).type&&"checkall-toggle"!=r.name&&!r.checked){a=!1;break}o.elements["checkall-toggle"].checked=a}},e.tableOrdering=function(o,n,r,s){void 0===s&&(s=t.getElementById("adminForm")),s.filter_order.value=o,s.filter_order_Dir.value=n,e.submitform(r,s)},window.getSelectedValue=function(e,o){var n=t[e][o],r=n.selectedIndex;return null!==r&&r>-1?n.options[r].value:null},window.listItemTask=function(t,o){return e.listItemTask(t,o)},e.listItemTask=function(e,o){var n,r=t.adminForm,s=0,a=r[e];if(!a)return!1;for(;;){if(!(n=r["cb"+s]))break;n.checked=!1,s++}return a.checked=!0,r.boxchecked.value=1,window.submitform(o),!1},window.submitbutton=function(t){e.submitbutton(t)},window.submitform=function(t){e.submitform(t)},window.saveorder=function(e,t){window.checkAll_button(e,t)},window.checkAll_button=function(o,n){n=n||"saveorder";var r,s;for(r=0;r<=o;r++){if(!(s=t.adminForm["cb"+r]))return void alert("You cannot change the order of items, as an item in the list is `Checked Out`");s.checked=!0}e.submitform(n)},e.loadingLayer=function(o,n){if(o=o||"show",n=n||t.body,"load"===o){var r=(e.getOptions("system.paths")||{}).root||"",s=t.createElement("div");s.id="loading-logo",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%",s.style.opacity="0.8",s.style.filter="alpha(opacity=80)",s.style.overflow="hidden",s.style["z-index"]="10000",s.style.display="none",s.style["background-color"]="#fff",s.style["background-image"]='url("'+r+'/media/system/images/ajax-loader.gif")',s.style["background-position"]="center",s.style["background-repeat"]="no-repeat",s.style["background-attachment"]="fixed",n.appendChild(s)}else t.getElementById("loading-logo")||e.loadingLayer("load",n),t.getElementById("loading-logo").style.display="show"==o?"block":"none";return t.getElementById("loading-logo")},e.extend=function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},e.request=function(t){t=e.extend({url:"",method:"GET",data:null,perform:!0},t);try{var o=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");if(o.open(t.method,t.url,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("X-Ajax-Engine","Joomla!"),"GET"!==t.method){var n=e.getOptions("csrf.token","");n&&o.setRequestHeader("X-CSRF-Token",n),t.headers&&t.headers["Content-Type"]||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(t.headers)for(var r in t.headers)t.headers.hasOwnProperty(r)&&o.setRequestHeader(r,t.headers[r]);if(o.onreadystatechange=function(){4===o.readyState&&(200===o.status?t.onSuccess&&t.onSuccess.call(window,o.responseText,o):t.onError&&t.onError.call(window,o))},t.perform){if(t.onBefore&&!1===t.onBefore.call(window,o))return o;o.send(t.data)}}catch(e){return window.console&&console.log(e),!1}return o},e.localStorageEnabled=function(){var e="joomla-cms";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},e.WebComponents=function(){var o,n=[];e.getOptions&&"function"==typeof e.getOptions&&(o=e.getOptions("webcomponents",{}));var r=function(){try{return new Function("(a = 0) => a"),!0}catch(e){return!1}},s=function(e){var o,n,s;for(n in e)e.hasOwnProperty(n)&&"fullPolyfill"!==n&&(e[n].match(/\.js/g)&&(o=t.createElement("script"),r()?o.src=e[n]:(e[n].match(/\.min\.js/g)?s=e[n].replace(/\.min\.js/g,"-es5.min.js"):e[n].match(/\.js/g)&&(s=e[n].replace(/\.js/g,"-es5.js")),o.src=s)),o&&t.head.appendChild(o))};if(!function(e){return!(!e.hasOwnProperty("fullPolyfill")||!0!==e.fullPolyfill)}(o)?window.customElements&&!window.customElements.forcePolyfill||n.push("ce"):("import"in t.createElement("link")||n.push("hi"),(!("attachShadow"in Element.prototype&&"getRootNode"in Element.prototype)||window.ShadyDOM&&window.ShadyDOM.force)&&n.push("sd"),window.customElements&&!window.customElements.forcePolyfill||n.push("ce"),"content"in t.createElement("template")&&window.Promise&&Array.from&&t.createDocumentFragment().cloneNode()instanceof DocumentFragment||(n=["lite"])),n.length){var a="core.min.js",i=t.querySelector('script[src*="'+a+'"]');if(i||(a="core.js",i=t.querySelector('script[src*="'+a+'"]')),!i)throw new Error("core(.min).js is not registered correctly!");var l=t.createElement("script"),c="media/system/js/polyfills/webcomponents/webcomponents-"+n.join("-")+".min.js",d=i.src.match(/\?.*/)[0],m=e.getOptions("system.paths");if(!m)throw new Error("core(.min).js is not registered correctly!");l.src=m.rootFull+c+(d||""),t.head.appendChild(l),t.addEventListener("WebComponentsReady",function(){s(o)})}else{var u=function(){requestAnimationFrame(function(){t.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0})),s(o)})};"loading"!==t.readyState?u():t.addEventListener("readystatechange",function e(){u(),t.removeEventListener("readystatechange",e)})}}}(Joomla,document),function(e,t){"use strict";t.Event||(t.Event={},t.Event.dispatch=function(t,o,n){"string"==typeof t&&(n=o,o=t,t=e),n=n||{};var r=new CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0});t.dispatchEvent(r)},t.Event.listenOnce=function(e,t,o){var n=function(r){return e.removeEventListener(t,n),o.call(e,r)};e.addEventListener(t,n)})}(window,Joomla),document.addEventListener("DOMContentLoaded",function(){Joomla.WebComponents()});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L611

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:611
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- cell.innerHTML = "<a " + classes + " style='display:inline;padding:2px 6px;cursor:pointer;text-decoration:none;' unselectable='on'>" + text + "</a>";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L289

Insecure DOM Manipulation (XSS) in chosen.js

CWE-79
File Location: media/system/js/legacy/chosen.js:289
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- option_el.innerHTML = option.search_text;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L23

Insecure DOM Manipulation (XSS) in webcomponents-ce.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-ce.js:23
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- return a})}O&&u(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=O.call(this,a)});if(P&&P.get)a(Element.prototype,P);else if(W&&W.get)a(HTMLElement.prototype,W);else{var c=H.call(document,"div");w(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return I.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(c.innerHTML=a;0<b.childNodes.length;)L.call(b,b.childNodes[0]);for(;0<c.childNodes.length;)J.call(b,c.childNodes[0])}})})}u(Element.prototype,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-hi-ce.min.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-ce.min.js:1
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";!function(){function t(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(c(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.A&&(o.before=n(e.A)),void 0!==e.A&&(o.after=n(e.H)),void 0!==e.replaceWith&&u(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(a=c(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(a)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&u(o,"remove",function(){var n=c(this);e.remove.call(this),n&&t.a(this)})}function e(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(c(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.s&&(e.prepend=o(n.s)),void 0!==n.append&&(e.append=o(n.append))}function n(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new r(t,document)}function o(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function r(t,e){this.c=t,this.a=e,this.b=void 0,this.c.f(this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.g.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function i(){this.o=new Map,this.m=new Map,this.j=[],this.h=!1}function a(t){var e=p.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function c(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function l(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function s(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)s(o,e,n);o=l(t,r);continue}if("template"===i){o=l(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)s(r,e,n)}o=o.firstChild?o.firstChild:l(t,o)}}function u(t,e,n){t[e]=n}!function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!c(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){var e=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=e.length;n?s(e,function(e){return a(e,function(){0==--n&&t()})}):t()}function r(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function i(t){r(function(){return o(function(){return t&&t()})})}function a(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),b&&"style"===t.localName||t.addEventListener("error",n)}}function c(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function l(){var t=this;this.a={},this.b=0,this.f=new MutationObserver(function(e){return t.l(e)}),this.f.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function s(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var u="import"in document.createElement("link"),p=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return p||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(url\()([^)]*)(\))/g,f=/(@import[\s]+(?!url\())([^;]*)(;)/g,h=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,m={J:function(t,e){if(t.href&&t.setAttribute("href",m.u(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",m.u(t.getAttribute("src"),e)),"style"===t.localName){var n=m.D(t.textContent,e,d);t.textContent=m.D(n,e,f)}},D:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=m.u(t,e)),n+"'"+t+"'"+r})},u:function(t,e){if(void 0===m.w){m.w=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",m.w="http://a/c%20d"===n.href}catch(t){}}return m.w?new URL(t,e).href:((n=m.G)||(n=document.implementation.createHTMLDocument("temp"),m.G=n,n.C=n.createElement("base"),n.head.appendChild(n.C),n.B=n.createElement("a")),n.C.href=e,n.B.href=t,n.B.href||t)}},y={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o),e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,y.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&0===t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},b=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(t){var e=this;s(t.querySelectorAll("link[rel=import]"),function(t){return e.h(t)})},l.prototype.h=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.import=o,this.g(t))}else this.b++,this.a[n]="pending",y.load(n,function(t,o){t=e.m(t,o||n),e.a[n]=t,e.b--,e.c(t),e.i()},function(){e.a[n]=null,e.b--,e.i()})},l.prototype.m=function(t,e){if(!t)return document.createDocumentFragment();b&&(t=t.replace(h,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=m.u(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return s(t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){a(t),m.J(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},l.prototype.i=function(){var t=this;if(!this.b){this.f.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.f.observe(document.head,{childList:!0,subtree:!0}),t.j()))};this.v(function(){n=!0,o()}),this.o(function(){e=!0,o()})}},l.prototype.flatten=function(t){var e=this;s(t.querySelectorAll("link[rel=import]"),function(t){var n=e.a[t.href];(t.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.import=t,e.flatten(n),t.appendChild(n))})},l.prototype.o=function(t){function e(r){if(r<o){var i=n[r],c=document.createElement("script");i.removeAttribute("import-dependency"),s(i.attributes,function(t){return c.setAttribute(t.name,t.value)}),p=c,i.parentNode.replaceChild(c,i),a(c,function(){p=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},l.prototype.v=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=b&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");s(e,function(e){if(a(e,function(){e.removeAttribute("import-dependency"),0==--o&&t()}),r&&e.parentNode!==document.head){var i=document.createElement(e.localName);for(i.__appliedElement=e,i.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(i,e.nextSibling),i=n(e);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(e,i),e.removeAttribute("type")}})}else t()},l.prototype.j=function(){var t=this;s(document.querySelectorAll("link[rel=import]"),function(e){return t.g(e)},!0)},l.prototype.g=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.l=function(t){var e=this;s(t,function(t){return s(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(c(t)?e.h(t):e.c(t))})})},u){s(document.querySelectorAll("link[rel=import]"),function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)});var v=function(t){c(t=t.target)&&(t.__loaded=!0)};document.addEventListener("load",v,!0),document.addEventListener("error",v,!0)}else{var w=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!w||w.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=c(this)?this:n(this);return t?t.href:w&&w.get?w.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=i,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var p=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));i.prototype.L=function(t,e){this.o.set(t,e),this.m.set(e.constructor,e)},i.prototype.c=function(t){return this.o.get(t)},i.prototype.K=function(t){return this.m.get(t)},i.prototype.v=function(t){this.h=!0,this.j.push(t)},i.prototype.l=function(t){var e=this;this.h&&s(t,function(t){return e.g(t)})},i.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},i.prototype.b=function(t){var e=[];for(s(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},i.prototype.a=function(t){var e=[];for(s(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},i.prototype.f=function(t,e){var n=this,o=(e=e||{}).M||new Set,r=e.F||function(t){return n.i(t)},i=[];if(s(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{M:i,F:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},i.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}c(t)&&this.connectedCallback(t)}}},i.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},i.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},i.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},r.prototype.f=function(){this.b&&this.b.disconnect()},r.prototype.g=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.f(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.c.f(n[o])},o.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},n.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!a(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),c=o("disconnectedCallback"),l=o("adoptedCallback"),s=o("attributeChangedCallback"),u=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:c,adoptedCallback:l,attributeChangedCallback:s,observedAttributes:u,constructionStack:[]},this.a.L(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},n.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{F:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)this.a.i(i[a]);(r=this.h.get(r))&&r.c()}}},n.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},n.prototype.whenDefined=function(t){if(!a(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new o,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.c(),e.f)},n.prototype.l=function(t){this.i.f();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=n,n.prototype.define=n.prototype.define,n.prototype.get=n.prototype.get,n.prototype.whenDefined=n.prototype.whenDefined,n.prototype.polyfillWrapFlushCallback=n.prototype.l;var d=window.Document.prototype.createElement,f=window.Document.prototype.createElementNS,h=window.Document.prototype.importNode,m=window.Document.prototype.prepend,y=window.Document.prototype.append,b=window.DocumentFragment.prototype.prepend,v=window.DocumentFragment.prototype.append,w=window.Node.prototype.cloneNode,g=window.Node.prototype.appendChild,E=window.Node.prototype.insertBefore,_=window.Node.prototype.removeChild,C=window.Node.prototype.replaceChild,N=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),A=window.Element.prototype.attachShadow,k=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),S=window.Element.prototype.getAttribute,D=window.Element.prototype.setAttribute,L=window.Element.prototype.removeAttribute,T=window.Element.prototype.getAttributeNS,M=window.Element.prototype.setAttributeNS,j=window.Element.prototype.removeAttributeNS,O=window.Element.prototype.insertAdjacentElement,R=window.Element.prototype.prepend,x=window.Element.prototype.append,H=window.Element.prototype.before,F=window.Element.prototype.after,q=window.Element.prototype.replaceWith,I=window.Element.prototype.remove,P=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),U=window.HTMLElement.prototype.insertAdjacentElement,B=new function(){},G=window.customElements;G&&!G.forcePolyfill&&"function"==typeof G.define&&"function"==typeof G.get||(G=new i,function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.K(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=d.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===B)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=B,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=P.prototype,e}()}(G),function(t){u(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=d.call(this,e),t.g(e),e}),u(Document.prototype,"importNode",function(e,n){return e=h.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),u(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=f.call(this,e,n),t.g(e),e}),e(t,Document.prototype,{s:m,append:y})}(G),e(G,DocumentFragment.prototype,{s:b,append:v}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&c(this)){o=Array(i);for(var a=0;a<i;a++)o[a]=r[a]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}u(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=E.call(this,e,n),c(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=c(e),n=E.call(this,e,n),o&&t.a(e),c(this)&&t.b(e),n}),u(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=g.call(this,e),c(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=c(e),o=g.call(this,e),n&&t.a(e),c(this)&&t.b(e),o}),u(Node.prototype,"cloneNode",function(e){return e=w.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),u(Node.prototype,"removeChild",function(e){var n=c(e),o=_.call(this,e);return n&&t.a(e),o}),u(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=C.call(this,e,n),c(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=c(e);var r=C.call(this,e,n),i=c(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),N&&N.get?e(Node.prototype,N):t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)_.call(this,this.firstChild);g.call(this,document.createTextNode(t))}})})}(G),function(n){function o(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;if(c(this)&&(r=[],s(this,function(t){t!==o&&r.push(t)})),e.set.call(this,t),r)for(var i=0;i<r.length;i++){var a=r[i];1===a.__CE_state&&n.disconnectedCallback(a)}return this.ownerDocument.__CE_hasRegistry?n.f(this):n.l(this),t}})}function r(t,e){u(t,"insertAdjacentElement",function(t,o){var r=c(o);return t=e.call(this,t,o),r&&n.a(o),c(t)&&n.b(o),t})}if(A&&u(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=A.call(this,t)}),k&&k.get)o(Element.prototype,k);else if(W&&W.get)o(HTMLElement.prototype,W);else{var i=d.call(document,"div");n.v(function(t){o(t,{enumerable:!0,configurable:!0,get:function(){return w.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(i.innerHTML=t;0<e.childNodes.length;)_.call(e,e.childNodes[0]);for(;0<i.childNodes.length;)g.call(e,i.childNodes[0])}})})}u(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return D.call(this,t,e);var o=S.call(this,t);D.call(this,t,e),e=S.call(this,t),n.attributeChangedCallback(this,t,o,e,null)}),u(Element.prototype,"setAttributeNS",function(t,e,o){if(1!==this.__CE_state)return M.call(this,t,e,o);var r=T.call(this,t,e);M.call(this,t,e,o),o=T.call(this,t,e),n.attributeChangedCallback(this,e,r,o,t)}),u(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return L.call(this,t);var e=S.call(this,t);L.call(this,t),null!==e&&n.attributeChangedCallback(this,t,e,null,null)}),u(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return j.call(this,t,e);var o=T.call(this,t,e);j.call(this,t,e);var r=T.call(this,t,e);o!==r&&n.attributeChangedCallback(this,e,o,r,t)}),U?r(HTMLElement.prototype,U):O?r(Element.prototype,O):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),e(n,Element.prototype,{s:R,append:x}),t(n,{A:H,H:F,replaceWith:q,remove:I})}(G),document.__CE_hasRegistry=!0,b=new n(G),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:b})),b=window.customElements;var z=window.HTMLImports,J=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},b&&b.polyfillWrapFlushCallback){var K,X=function(){if(K){J.I&&J.I(window.document);var t=K;return K=null,t(),!0}},$=z.whenReady;b.polyfillWrapFlushCallback(function(t){K=t,$(X)}),z.whenReady=function(t){$(function(){X()?z.whenReady(t):t()})}}z.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}),(b=document.createElement("style")).textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n",(v=document.querySelector("head")).insertBefore(b,v.firstChild)}()}).call(this),function(){"use strict";!function(){function t(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(c(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.A&&(o.before=n(e.A)),void 0!==e.A&&(o.after=n(e.H)),void 0!==e.replaceWith&&u(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(a=c(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(a)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&u(o,"remove",function(){var n=c(this);e.remove.call(this),n&&t.a(this)})}function e(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(c(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.s&&(e.prepend=o(n.s)),void 0!==n.append&&(e.append=o(n.append))}function n(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new r(t,document)}function o(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function r(t,e){this.c=t,this.a=e,this.b=void 0,this.c.f(this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.g.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function i(){this.o=new Map,this.m=new Map,this.j=[],this.h=!1}function a(t){var e=p.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function c(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function l(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function s(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)s(o,e,n);o=l(t,r);continue}if("template"===i){o=l(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)s(r,e,n)}o=o.firstChild?o.firstChild:l(t,o)}}function u(t,e,n){t[e]=n}!function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!c(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){var e=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=e.length;n?s(e,function(e){return a(e,function(){0==--n&&t()})}):t()}function r(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function i(t){r(function(){return o(function(){return t&&t()})})}function a(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),b&&"style"===t.localName||t.addEventListener("error",n)}}function c(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function l(){var t=this;this.a={},this.b=0,this.f=new MutationObserver(function(e){return t.l(e)}),this.f.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function s(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var u="import"in document.createElement("link"),p=null;0=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return p||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(url\()([^)]*)(\))/g,f=/(@import[\s]+(?!url\())([^;]*)(;)/g,h=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,m={J:function(t,e){if(t.href&&t.setAttribute("href",m.u(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",m.u(t.getAttribute("src"),e)),"style"===t.localName){var n=m.D(t.textContent,e,d);t.textContent=m.D(n,e,f)}},D:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=m.u(t,e)),n+"'"+t+"'"+r})},u:function(t,e){if(void 0===m.w){m.w=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",m.w="http://a/c%20d"===n.href}catch(t){}}return m.w?new URL(t,e).href:((n=m.G)||(n=document.implementation.createHTMLDocument("temp"),m.G=n,n.C=n.createElement("base"),n.head.appendChild(n.C),n.B=n.createElement("a")),n.C.href=e,n.B.href=t,n.B.href||t)}},y={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o),e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,y.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&0===t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},b=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(t){var e=this;s(t.querySelectorAll("link[rel=import]"),function(t){return e.h(t)})},l.prototype.h=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.import=o,this.g(t))}else this.b++,this.a[n]="pending",y.load(n,function(t,o){t=e.m(t,o||n),e.a[n]=t,e.b--,e.c(t),e.i()},function(){e.a[n]=null,e.b--,e.i()})},l.prototype.m=function(t,e){if(!t)return document.createDocumentFragment();b&&(t=t.replace(h,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=m.u(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return s(t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){a(t),m.J(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},l.prototype.i=function(){var t=this;if(!this.b){this.f.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.f.observe(document.head,{childList:!0,subtree:!0}),t.j()))};this.v(function(){n=!0,o()}),this.o(function(){e=!0,o()})}},l.prototype.flatten=function(t){var e=this;s(t.querySelectorAll("link[rel=import]"),function(t){var n=e.a[t.href];(t.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.import=t,e.flatten(n),t.appendChild(n))})},l.prototype.o=function(t){function e(r){if(r<o){var i=n[r],c=document.createElement("script");i.removeAttribute("import-dependency"),s(i.attributes,function(t){return c.setAttribute(t.name,t.value)}),p=c,i.parentNode.replaceChild(c,i),a(c,function(){p=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},l.prototype.v=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=b&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");s(e,function(e){if(a(e,function(){e.removeAttribute("import-dependency"),0==--o&&t()}),r&&e.parentNode!==document.head){var i=document.createElement(e.localName);for(i.__appliedElement=e,i.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(i,e.nextSibling),i=n(e);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(e,i),e.removeAttribute("type")}})}else t()},l.prototype.j=function(){var t=this;s(document.querySelectorAll("link[rel=import]"),function(e){return t.g(e)},!0)},l.prototype.g=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.l=function(t){var e=this;s(t,function(t){return s(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(c(t)?e.h(t):e.c(t))})})},u){s(document.querySelectorAll("link[rel=import]"),function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)});var v=function(t){c(t=t.target)&&(t.__loaded=!0)};document.addEventListener("load",v,!0),document.addEventListener("error",v,!0)}else{var w=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!w||w.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=c(this)?this:n(this);return t?t.href:w&&w.get?w.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=i,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var p=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));i.prototype.L=function(t,e){this.o.set(t,e),this.m.set(e.constructor,e)},i.prototype.c=function(t){return this.o.get(t)},i.prototype.K=function(t){return this.m.get(t)},i.prototype.v=function(t){this.h=!0,this.j.push(t)},i.prototype.l=function(t){var e=this;this.h&&s(t,function(t){return e.g(t)})},i.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},i.prototype.b=function(t){var e=[];for(s(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},i.prototype.a=function(t){var e=[];for(s(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},i.prototype.f=function(t,e){var n=this,o=(e=e||{}).M||new Set,r=e.F||function(t){return n.i(t)},i=[];if(s(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{M:i,F:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},i.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}c(t)&&this.connectedCallback(t)}}},i.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},i.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},i.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},r.prototype.f=function(){this.b&&this.b.disconnect()},r.prototype.g=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.f(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.c.f(n[o])},o.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},n.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!a(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),c=o("disconnectedCallback"),l=o("adoptedCallback"),s=o("attributeChangedCallback"),u=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:c,adoptedCallback:l,attributeChangedCallback:s,observedAttributes:u,constructionStack:[]},this.a.L(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},n.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{F:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)this.a.i(i[a]);(r=this.h.get(r))&&r.c()}}},n.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},n.prototype.whenDefined=function(t){if(!a(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new o,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.c(),e.f)},n.prototype.l=function(t){this.i.f();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=n,n.prototype.define=n.prototype.define,n.prototype.get=n.prototype.get,n.prototype.whenDefined=n.prototype.whenDefined,n.prototype.polyfillWrapFlushCallback=n.prototype.l;var d=window.Document.prototype.createElement,f=window.Document.prototype.createElementNS,h=window.Document.prototype.importNode,m=window.Document.prototype.prepend,y=window.Document.prototype.append,b=window.DocumentFragment.prototype.prepend,v=window.DocumentFragment.prototype.append,w=window.Node.prototype.cloneNode,g=window.Node.prototype.appendChild,E=window.Node.prototype.insertBefore,_=window.Node.prototype.removeChild,C=window.Node.prototype.replaceChild,N=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),A=window.Element.prototype.attachShadow,k=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),S=window.Element.prototype.getAttribute,D=window.Element.prototype.setAttribute,L=window.Element.prototype.removeAttribute,T=window.Element.prototype.getAttributeNS,M=window.Element.prototype.setAttributeNS,j=window.Element.prototype.removeAttributeNS,O=window.Element.prototype.insertAdjacentElement,R=window.Element.prototype.prepend,x=window.Element.prototype.append,H=window.Element.prototype.before,F=window.Element.prototype.after,q=window.Element.prototype.replaceWith,I=window.Element.prototype.remove,P=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),U=window.HTMLElement.prototype.insertAdjacentElement,B=new function(){},G=window.customElements;G&&!G.forcePolyfill&&"function"==typeof G.define&&"function"==typeof G.get||(G=new i,function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.K(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=d.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===B)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=B,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=P.prototype,e}()}(G),function(t){u(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=d.call(this,e),t.g(e),e}),u(Document.prototype,"importNode",function(e,n){return e=h.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),u(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=f.call(this,e,n),t.g(e),e}),e(t,Document.prototype,{s:m,append:y})}(G),e(G,DocumentFragment.prototype,{s:b,append:v}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&c(this)){o=Array(i);for(var a=0;a<i;a++)o[a]=r[a]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}u(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=E.call(this,e,n),c(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=c(e),n=E.call(this,e,n),o&&t.a(e),c(this)&&t.b(e),n}),u(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=g.call(this,e),c(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=c(e),o=g.call(this,e),n&&t.a(e),c(this)&&t.b(e),o}),u(Node.prototype,"cloneNode",function(e){return e=w.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),u(Node.prototype,"removeChild",function(e){var n=c(e),o=_.call(this,e);return n&&t.a(e),o}),u(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=C.call(this,e,n),c(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=c(e);var r=C.call(this,e,n),i=c(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),N&&N.get?e(Node.prototype,N):t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)_.call(this,this.firstChild);g.call(this,document.createTextNode(t))}})})}(G),function(n){function o(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;if(c(this)&&(r=[],s(this,function(t){t!==o&&r.push(t)})),e.set.call(this,t),r)for(var i=0;i<r.length;i++){var a=r[i];1===a.__CE_state&&n.disconnectedCallback(a)}return this.ownerDocument.__CE_hasRegistry?n.f(this):n.l(this),t}})}function r(t,e){u(t,"insertAdjacentElement",function(t,o){var r=c(o);return t=e.call(this,t,o),r&&n.a(o),c(t)&&n.b(o),t})}if(A&&u(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=A.call(this,t)}),k&&k.get)o(Element.prototype,k);else if(W&&W.get)o(HTMLElement.prototype,W);else{var i=d.call(document,"div");n.v(function(t){o(t,{enumerable:!0,configurable:!0,get:function(){return w.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(i.innerHTML=t;0<e.childNodes.length;)_.call(e,e.childNodes[0]);for(;0<i.childNodes.length;)g.call(e,i.childNodes[0])}})})}u(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return D.call(this,t,e);var o=S.call(this,t);D.call(this,t,e),e=S.call(this,t),n.attributeChangedCallback(this,t,o,e,null)}),u(Element.prototype,"setAttributeNS",function(t,e,o){if(1!==this.__CE_state)return M.call(this,t,e,o);var r=T.call(this,t,e);M.call(this,t,e,o),o=T.call(this,t,e),n.attributeChangedCallback(this,e,r,o,t)}),u(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return L.call(this,t);var e=S.call(this,t);L.call(this,t),null!==e&&n.attributeChangedCallback(this,t,e,null,null)}),u(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return j.call(this,t,e);var o=T.call(this,t,e);j.call(this,t,e);var r=T.call(this,t,e);o!==r&&n.attributeChangedCallback(this,e,o,r,t)}),U?r(HTMLElement.prototype,U):O?r(Element.prototype,O):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),e(n,Element.prototype,{s:R,append:x}),t(n,{A:H,H:F,replaceWith:q,remove:I})}(G),document.__CE_hasRegistry=!0,b=new n(G),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:b})),b=window.customElements;var z=window.HTMLImports,J=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},b&&b.polyfillWrapFlushCallback){var K,X=function(){if(K){J.I&&J.I(window.document);var t=K;return K=null,t(),!0}},$=z.whenReady;b.polyfillWrapFlushCallback(function(t){K=t,$(X)}),z.whenReady=function(t){$(function(){X()?z.whenReady(t):t()})}}z.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}),(b=document.createElement("style")).textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n",(v=document.querySelector("head")).insertBefore(b,v.firstChild)}()}.call(this),function(){"use strict";!function(){function t(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(c(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.A&&(o.before=n(e.A)),void 0!==e.A&&(o.after=n(e.H)),void 0!==e.replaceWith&&u(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(a=c(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(a)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&u(o,"remove",function(){var n=c(this);e.remove.call(this),n&&t.a(this)})}function e(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var l=o[a];if(l instanceof Element&&c(l)&&i.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(c(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.s&&(e.prepend=o(n.s)),void 0!==n.append&&(e.append=o(n.append))}function n(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new r(t,document)}function o(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function r(t,e){this.c=t,this.a=e,this.b=void 0,this.c.f(this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.g.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function i(){this.o=new Map,this.m=new Map,this.j=[],this.h=!1}function a(t){var e=p.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function c(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function l(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function s(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)s(o,e,n);o=l(t,r);continue}if("template"===i){o=l(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)s(r,e,n)}o=o.firstChild?o.firstChild:l(t,o)}}function u(t,e,n){t[e]=n}!function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!c(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){var e=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=e.length;n?s(e,function(e){return a(e,function(){0==--n&&t()})}):t()}function r(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function i(t){r(function(){return o(function(){return t&&t()})})}function a(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),b&&"style"===t.localName||t.addEventListener("error",n)}}function c(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function l(){var t=this;this.a={},this.b=0,this.f=new MutationObserver(function(e){return t.l(e)}),this.f.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function s(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var u="import"in document.createElement("link"),p=null;0=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return p||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(url\()([^)]*)(\))/g,f=/(@import[\s]+(?!url\())([^;]*)(;)/g,h=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,m={J:function(t,e){if(t.href&&t.setAttribute("href",m.u(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",m.u(t.getAttribute("src"),e)),"style"===t.localName){var n=m.D(t.textContent,e,d);t.textContent=m.D(n,e,f)}},D:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=m.u(t,e)),n+"'"+t+"'"+r})},u:function(t,e){if(void 0===m.w){m.w=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",m.w="http://a/c%20d"===n.href}catch(t){}}return m.w?new URL(t,e).href:((n=m.G)||(n=document.implementation.createHTMLDocument("temp"),m.G=n,n.C=n.createElement("base"),n.head.appendChild(n.C),n.B=n.createElement("a")),n.C.href=e,n.B.href=t,n.B.href||t)}},y={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o),e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,y.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&0===t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},b=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(t){var e=this;s(t.querySelectorAll("link[rel=import]"),function(t){return e.h(t)})},l.prototype.h=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.import=o,this.g(t))}else this.b++,this.a[n]="pending",y.load(n,function(t,o){t=e.m(t,o||n),e.a[n]=t,e.b--,e.c(t),e.i()},function(){e.a[n]=null,e.b--,e.i()})},l.prototype.m=function(t,e){if(!t)return document.createDocumentFragment();b&&(t=t.replace(h,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=m.u(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return s(t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){a(t),m.J(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},l.prototype.i=function(){var t=this;if(!this.b){this.f.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.f.observe(document.head,{childList:!0,subtree:!0}),t.j()))};this.v(function(){n=!0,o()}),this.o(function(){e=!0,o()})}},l.prototype.flatten=function(t){var e=this;s(t.querySelectorAll("link[rel=import]"),function(t){var n=e.a[t.href];(t.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.import=t,e.flatten(n),t.appendChild(n))})},l.prototype.o=function(t){function e(r){if(r<o){var i=n[r],c=document.createElement("script");i.removeAttribute("import-dependency"),s(i.attributes,function(t){return c.setAttribute(t.name,t.value)}),p=c,i.parentNode.replaceChild(c,i),a(c,function(){p=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},l.prototype.v=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=b&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");s(e,function(e){if(a(e,function(){e.removeAttribute("import-dependency"),0==--o&&t()}),r&&e.parentNode!==document.head){var i=document.createElement(e.localName);for(i.__appliedElement=e,i.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(i,e.nextSibling),i=n(e);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(e,i),e.removeAttribute("type")}})}else t()},l.prototype.j=function(){var t=this;s(document.querySelectorAll("link[rel=import]"),function(e){return t.g(e)},!0)},l.prototype.g=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.l=function(t){var e=this;s(t,function(t){return s(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(c(t)?e.h(t):e.c(t))})})},u){s(document.querySelectorAll("link[rel=import]"),function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)});var v=function(t){c(t=t.target)&&(t.__loaded=!0)};document.addEventListener("load",v,!0),document.addEventListener("error",v,!0)}else{var w=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!w||w.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=c(this)?this:n(this);return t?t.href:w&&w.get?w.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=i,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var p=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));i.prototype.L=function(t,e){this.o.set(t,e),this.m.set(e.constructor,e)},i.prototype.c=function(t){return this.o.get(t)},i.prototype.K=function(t){return this.m.get(t)},i.prototype.v=function(t){this.h=!0,this.j.push(t)},i.prototype.l=function(t){var e=this;this.h&&s(t,function(t){return e.g(t)})},i.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},i.prototype.b=function(t){var e=[];for(s(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},i.prototype.a=function(t){var e=[];for(s(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},i.prototype.f=function(t,e){var n=this,o=(e=e||{}).M||new Set,r=e.F||function(t){return n.i(t)},i=[];if(s(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{M:i,F:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},i.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}c(t)&&this.connectedCallback(t)}}},i.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},i.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},i.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},r.prototype.f=function(){this.b&&this.b.disconnect()},r.prototype.g=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.f(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.c.f(n[o])},o.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},n.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!a(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),c=o("disconnectedCallback"),l=o("adoptedCallback"),s=o("attributeChangedCallback"),u=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:c,adoptedCallback:l,attributeChangedCallback:s,observedAttributes:u,constructionStack:[]},this.a.L(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},n.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{F:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)this.a.i(i[a]);(r=this.h.get(r))&&r.c()}}},n.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},n.prototype.whenDefined=function(t){if(!a(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new o,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.c(),e.f)},n.prototype.l=function(t){this.i.f();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=n,n.prototype.define=n.prototype.define,n.prototype.get=n.prototype.get,n.prototype.whenDefined=n.prototype.whenDefined,n.prototype.polyfillWrapFlushCallback=n.prototype.l;var d=window.Document.prototype.createElement,f=window.Document.prototype.createElementNS,h=window.Document.prototype.importNode,m=window.Document.prototype.prepend,y=window.Document.prototype.append,b=window.DocumentFragment.prototype.prepend,v=window.DocumentFragment.prototype.append,w=window.Node.prototype.cloneNode,g=window.Node.prototype.appendChild,E=window.Node.prototype.insertBefore,_=window.Node.prototype.removeChild,C=window.Node.prototype.replaceChild,N=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),A=window.Element.prototype.attachShadow,k=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),S=window.Element.prototype.getAttribute,D=window.Element.prototype.setAttribute,L=window.Element.prototype.removeAttribute,T=window.Element.prototype.getAttributeNS,M=window.Element.prototype.setAttributeNS,j=window.Element.prototype.removeAttributeNS,O=window.Element.prototype.insertAdjacentElement,R=window.Element.prototype.prepend,x=window.Element.prototype.append,H=window.Element.prototype.before,F=window.Element.prototype.after,q=window.Element.prototype.replaceWith,I=window.Element.prototype.remove,P=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),U=window.HTMLElement.prototype.insertAdjacentElement,B=new function(){},G=window.customElements;G&&!G.forcePolyfill&&"function"==typeof G.define&&"function"==typeof G.get||(G=new i,function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.K(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=d.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===B)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=B,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=P.prototype,e}()}(G),function(t){u(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=d.call(this,e),t.g(e),e}),u(Document.prototype,"importNode",function(e,n){return e=h.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),u(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=f.call(this,e,n),t.g(e),e}),e(t,Document.prototype,{s:m,append:y})}(G),e(G,DocumentFragment.prototype,{s:b,append:v}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&c(this)){o=Array(i);for(var a=0;a<i;a++)o[a]=r[a]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}u(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=E.call(this,e,n),c(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=c(e),n=E.call(this,e,n),o&&t.a(e),c(this)&&t.b(e),n}),u(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=g.call(this,e),c(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=c(e),o=g.call(this,e),n&&t.a(e),c(this)&&t.b(e),o}),u(Node.prototype,"cloneNode",function(e){return e=w.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),u(Node.prototype,"removeChild",function(e){var n=c(e),o=_.call(this,e);return n&&t.a(e),o}),u(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=C.call(this,e,n),c(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=c(e);var r=C.call(this,e,n),i=c(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),N&&N.get?e(Node.prototype,N):t.v(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)_.call(this,this.firstChild);g.call(this,document.createTextNode(t))}})})}(G),function(n){function o(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;if(c(this)&&(r=[],s(this,function(t){t!==o&&r.push(t)})),e.set.call(this,t),r)for(var i=0;i<r.length;i++){var a=r[i];1===a.__CE_state&&n.disconnectedCallback(a)}return this.ownerDocument.__CE_hasRegistry?n.f(this):n.l(this),t}})}function r(t,e){u(t,"insertAdjacentElement",function(t,o){var r=c(o);return t=e.call(this,t,o),r&&n.a(o),c(t)&&n.b(o),t})}if(A&&u(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=A.call(this,t)}),k&&k.get)o(Element.prototype,k);else if(W&&W.get)o(HTMLElement.prototype,W);else{var i=d.call(document,"div");n.v(function(t){o(t,{enumerable:!0,configurable:!0,get:function(){return w.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(i.innerHTML=t;0<e.childNodes.length;)_.call(e,e.childNodes[0]);for(;0<i.childNodes.length;)g.call(e,i.childNodes[0])}})})}u(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return D.call(this,t,e);var o=S.call(this,t);D.call(this,t,e),e=S.call(this,t),n.attributeChangedCallback(this,t,o,e,null)}),u(Element.prototype,"setAttributeNS",function(t,e,o){if(1!==this.__CE_state)return M.call(this,t,e,o);var r=T.call(this,t,e);M.call(this,t,e,o),o=T.call(this,t,e),n.attributeChangedCallback(this,e,r,o,t)}),u(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return L.call(this,t);var e=S.call(this,t);L.call(this,t),null!==e&&n.attributeChangedCallback(this,t,e,null,null)}),u(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return j.call(this,t,e);var o=T.call(this,t,e);j.call(this,t,e);var r=T.call(this,t,e);o!==r&&n.attributeChangedCallback(this,e,o,r,t)}),U?r(HTMLElement.prototype,U):O?r(Element.prototype,O):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),e(n,Element.prototype,{s:R,append:x}),t(n,{A:H,H:F,replaceWith:q,remove:I})}(G),document.__CE_hasRegistry=!0,b=new n(G),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:b})),b=window.customElements;var z=window.HTMLImports,J=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},b&&b.polyfillWrapFlushCallback){var K,X=function(){if(K){J.I&&J.I(window.document);var t=K;return K=null,t(),!0}},$=z.whenReady;b.polyfillWrapFlushCallback(function(t){K=t,$(X)}),z.whenReady=function(t){$(function(){X()?z.whenReady(t):t()})}}z.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}),(b=document.createElement("style")).textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n",(v=document.querySelector("head")).insertBefore(b,v.firstChild)}()}.call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-hi.min.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi.min.js:1
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";!function(){!function(e){function t(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}function n(e){if(d)return e.ownerDocument!==document?e.ownerDocument:null;var t=e.__importDoc;if(!t&&e.parentNode){if("function"==typeof(t=e.parentNode).closest)t=t.closest("link[rel=import]");else for(;!a(t)&&(t=t.parentNode););e.__importDoc=t}return t}function o(e){var t=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=t.length;n?u(t,function(t){return c(t,function(){0==--n&&e()})}):e()}function r(e){function t(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",t),e())}document.addEventListener("readystatechange",t),t()}function i(e){r(function(){return o(function(){return e&&e()})})}function c(e,t){if(e.__loaded)t&&t();else if("script"===e.localName&&!e.src||"style"===e.localName&&!e.firstChild)e.__loaded=!0,t&&t();else{var n=function(o){e.removeEventListener(o.type,n),e.__loaded=!0,t&&t()};e.addEventListener("load",n),v&&"style"===e.localName||e.addEventListener("error",n)}}function a(e){return e.nodeType===Node.ELEMENT_NODE&&"link"===e.localName&&"import"===e.rel}function l(){var e=this;this.a={},this.b=0,this.h=new MutationObserver(function(t){return e.B(t)}),this.h.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function u(e,t,n){var o=e?e.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)t(e[n],n)}var d="import"in document.createElement("link"),s=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return s||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var p=/(url\()([^)]*)(\))/g,f=/(@import[\s]+(?!url\())([^;]*)(;)/g,m=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,h={w:function(e,t){if(e.href&&e.setAttribute("href",h.f(e.getAttribute("href"),t)),e.src&&e.setAttribute("src",h.f(e.getAttribute("src"),t)),"style"===e.localName){var n=h.s(e.textContent,t,p);e.textContent=h.s(n,t,f)}},s:function(e,t,n){return e.replace(n,function(e,n,o,r){return e=o.replace(/["']/g,""),t&&(e=h.f(e,t)),n+"'"+e+"'"+r})},f:function(e,t){if(void 0===h.g){h.g=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",h.g="http://a/c%20d"===n.href}catch(e){}}return h.g?new URL(e,t).href:((n=h.u)||(n=document.implementation.createHTMLDocument("temp"),h.u=n,n.j=n.createElement("base"),n.head.appendChild(n.j),n.i=n.createElement("a")),n.j.href=t,n.i.href=e,n.i.href||e)}},y={async:!0,load:function(e,t,n){if(e)if(e.match(/^data:/)){var o=(e=e.split(","))[1];o=-1<e[0].indexOf(";base64")?atob(o):decodeURIComponent(o),t(o)}else{var r=new XMLHttpRequest;r.open("GET",e,y.async),r.onload=function(){var e=r.responseURL||r.getResponseHeader("Location");e&&0===e.indexOf("/")&&(e=(location.origin||location.protocol+"//"+location.host)+e);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?t(o,e):n(o)},r.send()}else n("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){return t.m(e)})},l.prototype.m=function(e){var t=this,n=e.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(e.import=o,this.l(e))}else this.b++,this.a[n]="pending",y.load(n,function(e,o){e=t.C(e,o||n),t.a[n]=e,t.b--,t.c(e),t.o()},function(){t.a[n]=null,t.b--,t.o()})},l.prototype.C=function(e,t){if(!e)return document.createDocumentFragment();v&&(e=e.replace(m,function(e,t,n){return-1===e.indexOf("type=")?t+" type=import-disable "+n:e}));var n=document.createElement("template");if(n.innerHTML=e,n.content)e=n.content;else for(e=document.createDocumentFragment();n.firstChild;)e.appendChild(n.firstChild);(n=e.querySelector("base"))&&(t=h.f(n.getAttribute("href"),t),n.removeAttribute("href"));var o=0;return u(e.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(e){c(e),h.w(e,t),e.setAttribute("import-dependency",""),"script"===e.localName&&!e.src&&e.textContent&&(e.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(e.textContent+"\n//# sourceURL="+t+(o?"-"+o:"")+".js\n")),e.textContent="",o++)}),e},l.prototype.o=function(){var e=this;if(!this.b){this.h.disconnect(),this.flatten(document);var t=!1,n=!1,o=function(){n&&t&&(e.c(document),e.b||(e.h.observe(document.head,{childList:!0,subtree:!0}),e.A()))};this.F(function(){n=!0,o()}),this.D(function(){t=!0,o()})}},l.prototype.flatten=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){var n=t.a[e.href];(e.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t.a[e.href]=e,e.readyState="loading",e.import=e,t.flatten(n),e.appendChild(n))})},l.prototype.D=function(e){function t(r){if(r<o){var i=n[r],a=document.createElement("script");i.removeAttribute("import-dependency"),u(i.attributes,function(e){return a.setAttribute(e.name,e.value)}),s=a,i.parentNode.replaceChild(a,i),c(a,function(){s=null,t(r+1)})}else e()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;t(0)},l.prototype.F=function(e){var t=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=t.length;if(o){var r=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");u(t,function(t){if(c(t,function(){t.removeAttribute("import-dependency"),0==--o&&e()}),r&&t.parentNode!==document.head){var i=document.createElement(t.localName);for(i.__appliedElement=t,i.setAttribute("type","import-placeholder"),t.parentNode.insertBefore(i,t.nextSibling),i=n(t);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(t,i),t.removeAttribute("type")}})}else e()},l.prototype.A=function(){var e=this;u(document.querySelectorAll("link[rel=import]"),function(t){return e.l(t)},!0)},l.prototype.l=function(e){e.__loaded||(e.__loaded=!0,e.import&&(e.import.readyState="complete"),e.dispatchEvent(t(e.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.B=function(e){var t=this;u(e,function(e){return u(e.addedNodes,function(e){e&&e.nodeType===Node.ELEMENT_NODE&&(a(e)?t.m(e):t.c(e))})})},d){u(document.querySelectorAll("link[rel=import]"),function(e){e.import&&"loading"===e.import.readyState||(e.__loaded=!0)});var b=function(e){a(e=e.target)&&(e.__loaded=!0)};document.addEventListener("load",b,!0),document.addEventListener("error",b,!0)}else{var g=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!g||g.configurable?Node:Element).prototype,"baseURI",{get:function(){var e=a(this)?this:n(this);return e?e.href:g&&g.get?g.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(t("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),e.useNative=d,e.whenReady=i,e.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var e=window.customElements,t=window.HTMLImports,n=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},e&&e.polyfillWrapFlushCallback){var o,r=function(){if(o){n.v&&n.v(window.document);var e=o;return o=null,e(),!0}},i=t.whenReady;e.polyfillWrapFlushCallback(function(e){o=e,i(r)}),t.whenReady=function(e){i(function(){r()?t.whenReady(e):e()})}}t.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}),(e=document.createElement("style")).textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var c=document.querySelector("head");c.insertBefore(e,c.firstChild)}()}).call(this),function(){"use strict";!function(){!function(e){function t(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}function n(e){if(d)return e.ownerDocument!==document?e.ownerDocument:null;var t=e.__importDoc;if(!t&&e.parentNode){if("function"==typeof(t=e.parentNode).closest)t=t.closest("link[rel=import]");else for(;!a(t)&&(t=t.parentNode););e.__importDoc=t}return t}function o(e){var t=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=t.length;n?u(t,function(t){return c(t,function(){0==--n&&e()})}):e()}function r(e){function t(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",t),e())}document.addEventListener("readystatechange",t),t()}function i(e){r(function(){return o(function(){return e&&e()})})}function c(e,t){if(e.__loaded)t&&t();else if("script"===e.localName&&!e.src||"style"===e.localName&&!e.firstChild)e.__loaded=!0,t&&t();else{var n=function(o){e.removeEventListener(o.type,n),e.__loaded=!0,t&&t()};e.addEventListener("load",n),v&&"style"===e.localName||e.addEventListener("error",n)}}function a(e){return e.nodeType===Node.ELEMENT_NODE&&"link"===e.localName&&"import"===e.rel}function l(){var e=this;this.a={},this.b=0,this.h=new MutationObserver(function(t){return e.B(t)}),this.h.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function u(e,t,n){var o=e?e.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)t(e[n],n)}var d="import"in document.createElement("link"),s=null;0=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return s||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var p=/(url\()([^)]*)(\))/g,f=/(@import[\s]+(?!url\())([^;]*)(;)/g,m=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,h={w:function(e,t){if(e.href&&e.setAttribute("href",h.f(e.getAttribute("href"),t)),e.src&&e.setAttribute("src",h.f(e.getAttribute("src"),t)),"style"===e.localName){var n=h.s(e.textContent,t,p);e.textContent=h.s(n,t,f)}},s:function(e,t,n){return e.replace(n,function(e,n,o,r){return e=o.replace(/["']/g,""),t&&(e=h.f(e,t)),n+"'"+e+"'"+r})},f:function(e,t){if(void 0===h.g){h.g=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",h.g="http://a/c%20d"===n.href}catch(e){}}return h.g?new URL(e,t).href:((n=h.u)||(n=document.implementation.createHTMLDocument("temp"),h.u=n,n.j=n.createElement("base"),n.head.appendChild(n.j),n.i=n.createElement("a")),n.j.href=t,n.i.href=e,n.i.href||e)}},y={async:!0,load:function(e,t,n){if(e)if(e.match(/^data:/)){var o=(e=e.split(","))[1];o=-1<e[0].indexOf(";base64")?atob(o):decodeURIComponent(o),t(o)}else{var r=new XMLHttpRequest;r.open("GET",e,y.async),r.onload=function(){var e=r.responseURL||r.getResponseHeader("Location");e&&0===e.indexOf("/")&&(e=(location.origin||location.protocol+"//"+location.host)+e);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?t(o,e):n(o)},r.send()}else n("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){return t.m(e)})},l.prototype.m=function(e){var t=this,n=e.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(e.import=o,this.l(e))}else this.b++,this.a[n]="pending",y.load(n,function(e,o){e=t.C(e,o||n),t.a[n]=e,t.b--,t.c(e),t.o()},function(){t.a[n]=null,t.b--,t.o()})},l.prototype.C=function(e,t){if(!e)return document.createDocumentFragment();v&&(e=e.replace(m,function(e,t,n){return-1===e.indexOf("type=")?t+" type=import-disable "+n:e}));var n=document.createElement("template");if(n.innerHTML=e,n.content)e=n.content;else for(e=document.createDocumentFragment();n.firstChild;)e.appendChild(n.firstChild);(n=e.querySelector("base"))&&(t=h.f(n.getAttribute("href"),t),n.removeAttribute("href"));var o=0;return u(e.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(e){c(e),h.w(e,t),e.setAttribute("import-dependency",""),"script"===e.localName&&!e.src&&e.textContent&&(e.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(e.textContent+"\n//# sourceURL="+t+(o?"-"+o:"")+".js\n")),e.textContent="",o++)}),e},l.prototype.o=function(){var e=this;if(!this.b){this.h.disconnect(),this.flatten(document);var t=!1,n=!1,o=function(){n&&t&&(e.c(document),e.b||(e.h.observe(document.head,{childList:!0,subtree:!0}),e.A()))};this.F(function(){n=!0,o()}),this.D(function(){t=!0,o()})}},l.prototype.flatten=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){var n=t.a[e.href];(e.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t.a[e.href]=e,e.readyState="loading",e.import=e,t.flatten(n),e.appendChild(n))})},l.prototype.D=function(e){function t(r){if(r<o){var i=n[r],a=document.createElement("script");i.removeAttribute("import-dependency"),u(i.attributes,function(e){return a.setAttribute(e.name,e.value)}),s=a,i.parentNode.replaceChild(a,i),c(a,function(){s=null,t(r+1)})}else e()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;t(0)},l.prototype.F=function(e){var t=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=t.length;if(o){var r=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");u(t,function(t){if(c(t,function(){t.removeAttribute("import-dependency"),0==--o&&e()}),r&&t.parentNode!==document.head){var i=document.createElement(t.localName);for(i.__appliedElement=t,i.setAttribute("type","import-placeholder"),t.parentNode.insertBefore(i,t.nextSibling),i=n(t);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(t,i),t.removeAttribute("type")}})}else e()},l.prototype.A=function(){var e=this;u(document.querySelectorAll("link[rel=import]"),function(t){return e.l(t)},!0)},l.prototype.l=function(e){e.__loaded||(e.__loaded=!0,e.import&&(e.import.readyState="complete"),e.dispatchEvent(t(e.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.B=function(e){var t=this;u(e,function(e){return u(e.addedNodes,function(e){e&&e.nodeType===Node.ELEMENT_NODE&&(a(e)?t.m(e):t.c(e))})})},d){u(document.querySelectorAll("link[rel=import]"),function(e){e.import&&"loading"===e.import.readyState||(e.__loaded=!0)});var b=function(e){a(e=e.target)&&(e.__loaded=!0)};document.addEventListener("load",b,!0),document.addEventListener("error",b,!0)}else{var g=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!g||g.configurable?Node:Element).prototype,"baseURI",{get:function(){var e=a(this)?this:n(this);return e?e.href:g&&g.get?g.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(t("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),e.useNative=d,e.whenReady=i,e.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var e=window.customElements,t=window.HTMLImports,n=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},e&&e.polyfillWrapFlushCallback){var o,r=function(){if(o){n.v&&n.v(window.document);var e=o;return o=null,e(),!0}},i=t.whenReady;e.polyfillWrapFlushCallback(function(e){o=e,i(r)}),t.whenReady=function(e){i(function(){r()?t.whenReady(e):e()})}}t.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}),(e=document.createElement("style")).textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var c=document.querySelector("head");c.insertBefore(e,c.firstChild)}()}.call(this),function(){"use strict";!function(){!function(e){function t(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}function n(e){if(d)return e.ownerDocument!==document?e.ownerDocument:null;var t=e.__importDoc;if(!t&&e.parentNode){if("function"==typeof(t=e.parentNode).closest)t=t.closest("link[rel=import]");else for(;!a(t)&&(t=t.parentNode););e.__importDoc=t}return t}function o(e){var t=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=t.length;n?u(t,function(t){return c(t,function(){0==--n&&e()})}):e()}function r(e){function t(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",t),e())}document.addEventListener("readystatechange",t),t()}function i(e){r(function(){return o(function(){return e&&e()})})}function c(e,t){if(e.__loaded)t&&t();else if("script"===e.localName&&!e.src||"style"===e.localName&&!e.firstChild)e.__loaded=!0,t&&t();else{var n=function(o){e.removeEventListener(o.type,n),e.__loaded=!0,t&&t()};e.addEventListener("load",n),v&&"style"===e.localName||e.addEventListener("error",n)}}function a(e){return e.nodeType===Node.ELEMENT_NODE&&"link"===e.localName&&"import"===e.rel}function l(){var e=this;this.a={},this.b=0,this.h=new MutationObserver(function(t){return e.B(t)}),this.h.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function u(e,t,n){var o=e?e.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)t(e[n],n)}var d="import"in document.createElement("link"),s=null;0=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return s||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var p=/(url\()([^)]*)(\))/g,f=/(@import[\s]+(?!url\())([^;]*)(;)/g,m=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,h={w:function(e,t){if(e.href&&e.setAttribute("href",h.f(e.getAttribute("href"),t)),e.src&&e.setAttribute("src",h.f(e.getAttribute("src"),t)),"style"===e.localName){var n=h.s(e.textContent,t,p);e.textContent=h.s(n,t,f)}},s:function(e,t,n){return e.replace(n,function(e,n,o,r){return e=o.replace(/["']/g,""),t&&(e=h.f(e,t)),n+"'"+e+"'"+r})},f:function(e,t){if(void 0===h.g){h.g=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",h.g="http://a/c%20d"===n.href}catch(e){}}return h.g?new URL(e,t).href:((n=h.u)||(n=document.implementation.createHTMLDocument("temp"),h.u=n,n.j=n.createElement("base"),n.head.appendChild(n.j),n.i=n.createElement("a")),n.j.href=t,n.i.href=e,n.i.href||e)}},y={async:!0,load:function(e,t,n){if(e)if(e.match(/^data:/)){var o=(e=e.split(","))[1];o=-1<e[0].indexOf(";base64")?atob(o):decodeURIComponent(o),t(o)}else{var r=new XMLHttpRequest;r.open("GET",e,y.async),r.onload=function(){var e=r.responseURL||r.getResponseHeader("Location");e&&0===e.indexOf("/")&&(e=(location.origin||location.protocol+"//"+location.host)+e);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?t(o,e):n(o)},r.send()}else n("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(l.prototype.c=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){return t.m(e)})},l.prototype.m=function(e){var t=this,n=e.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(e.import=o,this.l(e))}else this.b++,this.a[n]="pending",y.load(n,function(e,o){e=t.C(e,o||n),t.a[n]=e,t.b--,t.c(e),t.o()},function(){t.a[n]=null,t.b--,t.o()})},l.prototype.C=function(e,t){if(!e)return document.createDocumentFragment();v&&(e=e.replace(m,function(e,t,n){return-1===e.indexOf("type=")?t+" type=import-disable "+n:e}));var n=document.createElement("template");if(n.innerHTML=e,n.content)e=n.content;else for(e=document.createDocumentFragment();n.firstChild;)e.appendChild(n.firstChild);(n=e.querySelector("base"))&&(t=h.f(n.getAttribute("href"),t),n.removeAttribute("href"));var o=0;return u(e.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(e){c(e),h.w(e,t),e.setAttribute("import-dependency",""),"script"===e.localName&&!e.src&&e.textContent&&(e.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(e.textContent+"\n//# sourceURL="+t+(o?"-"+o:"")+".js\n")),e.textContent="",o++)}),e},l.prototype.o=function(){var e=this;if(!this.b){this.h.disconnect(),this.flatten(document);var t=!1,n=!1,o=function(){n&&t&&(e.c(document),e.b||(e.h.observe(document.head,{childList:!0,subtree:!0}),e.A()))};this.F(function(){n=!0,o()}),this.D(function(){t=!0,o()})}},l.prototype.flatten=function(e){var t=this;u(e.querySelectorAll("link[rel=import]"),function(e){var n=t.a[e.href];(e.import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t.a[e.href]=e,e.readyState="loading",e.import=e,t.flatten(n),e.appendChild(n))})},l.prototype.D=function(e){function t(r){if(r<o){var i=n[r],a=document.createElement("script");i.removeAttribute("import-dependency"),u(i.attributes,function(e){return a.setAttribute(e.name,e.value)}),s=a,i.parentNode.replaceChild(a,i),c(a,function(){s=null,t(r+1)})}else e()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;t(0)},l.prototype.F=function(e){var t=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=t.length;if(o){var r=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");u(t,function(t){if(c(t,function(){t.removeAttribute("import-dependency"),0==--o&&e()}),r&&t.parentNode!==document.head){var i=document.createElement(t.localName);for(i.__appliedElement=t,i.setAttribute("type","import-placeholder"),t.parentNode.insertBefore(i,t.nextSibling),i=n(t);i&&n(i);)i=n(i);i.parentNode!==document.head&&(i=null),document.head.insertBefore(t,i),t.removeAttribute("type")}})}else e()},l.prototype.A=function(){var e=this;u(document.querySelectorAll("link[rel=import]"),function(t){return e.l(t)},!0)},l.prototype.l=function(e){e.__loaded||(e.__loaded=!0,e.import&&(e.import.readyState="complete"),e.dispatchEvent(t(e.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},l.prototype.B=function(e){var t=this;u(e,function(e){return u(e.addedNodes,function(e){e&&e.nodeType===Node.ELEMENT_NODE&&(a(e)?t.m(e):t.c(e))})})},d){u(document.querySelectorAll("link[rel=import]"),function(e){e.import&&"loading"===e.import.readyState||(e.__loaded=!0)});var b=function(e){a(e=e.target)&&(e.__loaded=!0)};document.addEventListener("load",b,!0),document.addEventListener("error",b,!0)}else{var g=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!g||g.configurable?Node:Element).prototype,"baseURI",{get:function(){var e=a(this)?this:n(this);return e?e.href:g&&g.get?g.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),r(function(){return new l})}i(function(){return document.dispatchEvent(t("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),e.useNative=d,e.whenReady=i,e.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var e=window.customElements,t=window.HTMLImports,n=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},e&&e.polyfillWrapFlushCallback){var o,r=function(){if(o){n.v&&n.v(window.document);var e=o;return o=null,e(),!0}},i=t.whenReady;e.polyfillWrapFlushCallback(function(e){o=e,i(r)}),t.whenReady=function(e){i(function(){r()?t.whenReady(e):e()})}}t.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}),(e=document.createElement("style")).textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var c=document.querySelector("head");c.insertBefore(e,c.firstChild)}()}.call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-sd-ce.min.js

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-sd-ce.min.js:1
Security Score:
72 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";function t(){t=function(){},s.Symbol||(s.Symbol=l)}function e(){t();var o=s.Symbol.iterator;o||(o=s.Symbol.iterator=s.Symbol("iterator")),"function"!=typeof Array.prototype[o]&&a(Array.prototype,o,{configurable:!0,writable:!0,value:function(){return n(this)}}),e=function(){}}function n(t){var e=0;return o(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(t){return e(),t={next:t},t[s.Symbol.iterator]=function(){return this},t}function r(t){e();var o=t[Symbol.iterator];return o?o.call(t):n(t)}function i(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var s="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,a="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},l=function(){var t=0;return function(e){return"jscomp_symbol_"+(e||"")+t++}}();!function(){function t(){var t=this;this.m={},this.g=document.documentElement;var e=new h;e.rules=[],this.h=l.set(this.g,new l(e)),this.i=!1,this.b=this.a=null,Kt(function(){t.c()})}function e(){this.customStyles=[],this.enqueued=!1}function n(){}function o(t){this.cache={},this.c=void 0===t?100:t}function a(){}function l(t,e,n,o,r){this.D=t||null,this.b=e||null,this.ja=n||[],this.N=null,this.U=r||"",this.a=this.A=this.J=null}function c(){}function h(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function u(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Ct(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.ha&&(o.before=n(e.ha)),void 0!==e.ha&&(o.after=n(e.Qa)),void 0!==e.replaceWith&&Ot(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(s=Ct(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(s)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&Ot(o,"remove",function(){var n=Ct(this);e.remove.call(this),n&&t.a(this)})}function d(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Ct(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.Z&&(e.prepend=o(n.Z)),void 0!==n.append&&(e.append=o(n.append))}function p(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new y(t,document)}function f(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function y(t,e){this.b=t,this.a=e,this.M=void 0,this.b.f(this.a),"loading"===this.a.readyState&&(this.M=new MutationObserver(this.f.bind(this)),this.M.observe(this.a,{childList:!0,subtree:!0}))}function _(){this.o=new Map,this.m=new Map,this.j=[],this.h=!1}function m(t,e,n){if(t!==Ue)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=m.prototype,t.F(e,n),t}function v(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=k(t),t.__shady.lastChild=R(t),Re(t);for(var e,n=t.__shady.childNodes=H(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,ke(e)}}function g(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.X=new Set}function b(t){return t.__shady&&void 0!==t.__shady.firstChild}function w(t){return"ShadyRoot"===t.Ha}function E(t){if(t=t.getRootNode(),w(t))return t}function S(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function N(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)S(t,n[o]);return t}function C(t,e){for(var n in e)t[n]=e[n]}function T(t){ne.push(t),te.textContent=ee++}function x(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function O(t){oe||(oe=!0,T(D)),ie.push(t)}function D(){oe=!1;for(var t=!!ie.length;ie.length;)ie.shift()();return t}function A(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function M(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function L(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,s=r.length;i<s&&(n=r[i]);i++){t:{var a=n,l=t,c=e;switch(a.nodeType){case Node.ELEMENT_NODE:for(var h=a.localName,u="<"+h,d=a.attributes,p=0;l=d[p];p++)u+=" "+l.name+'="'+l.value.replace(be,A)+'"';u+=">",a=Ee[h]?u:u+L(a,c)+"</"+h+">";break t;case Node.TEXT_NODE:a=a.data,a=l&&Se[l.localName]?a:a.replace(we,A);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}o+=a}return o}function j(t){return Ne.currentNode=t,Ne.parentNode()}function k(t){return Ne.currentNode=t,Ne.firstChild()}function R(t){return Ne.currentNode=t,Ne.lastChild()}function P(t){return Ne.currentNode=t,Ne.previousSibling()}function F(t){return Ne.currentNode=t,Ne.nextSibling()}function H(t){var e=[];for(Ne.currentNode=t,t=Ne.firstChild();t;)e.push(t),t=Ne.nextSibling();return e}function I(t){return Ce.currentNode=t,Ce.parentNode()}function V(t){return Ce.currentNode=t,Ce.firstChild()}function W(t){return Ce.currentNode=t,Ce.lastChild()}function B(t){return Ce.currentNode=t,Ce.previousSibling()}function q(t){return Ce.currentNode=t,Ce.nextSibling()}function U(t){var e=[];for(Ce.currentNode=t,t=Ce.firstChild();t;)e.push(t),t=Ce.nextSibling();return e}function G(t){return L(t,function(t){return H(t)})}function $(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function K(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function z(t){K(t,Ae),K(t,Me),K(t,je)}function J(t,e,n){ke(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function X(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=n.__shady&&n.__shady.parentNode;if(void 0!==o&&o!==t||void 0===o&&j(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;e.parentNode&&Y(e.parentNode,e);var r;if(r=o=E(t))t:{if(!e.__noInsertionPoint){var i;if("slot"===e.localName?i=[e]:e.querySelectorAll&&(i=e.querySelectorAll("slot")),i&&i.length){r=i;break t}}r=void 0}if((i=r)&&o.Ka(i),o&&("slot"===t.localName||i)&&o.L(),b(t)){if(o=n,Re(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,r=0;r<i.length;r++)J(i[r],t,o);e.__shady=e.__shady||{},o=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=o,e.__shady.childNodes=o}else J(e,t,o);if(tt(t)){t.__shady.root.L();var s=!0}else t.__shady.root&&(s=!0)}return s||(s=w(t)?t.host:t,n?(n=Q(n),ae.call(s,e,n)):se.call(s,e)),nt(t,e),e}function Y(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=E(e);if(b(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling);var o=e.__shady.previousSibling,r=e.__shady.nextSibling;if(o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=r),r&&(r.__shady=r.__shady||{},r.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),tt(t)){t.__shady.root.L();var i=!0}}return Z(e),n&&((r=t&&"slot"===t.localName)&&(i=!0),((o=n.Na(e))||r)&&n.L()),i||(i=w(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||i===j(e))&&le.call(i,e)),nt(t,null,e),e}function Z(t){if(t.__shady&&void 0!==t.__shady.ka)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)Z(e);t.__shady&&(t.__shady.ka=void 0)}function Q(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady&&t.__shady.P)&&e.length?e[0]:Q(t.nextSibling)),e}function tt(t){return(t=t&&t.__shady&&t.__shady.root)&&t.pa()}function et(t,e){"slot"===e?(t=t.parentNode,tt(t)&&t.__shady.root.L()):"slot"===t.localName&&"name"===e&&(e=E(t))&&(e.Pa(t),e.L())}function nt(t,e,n){(t=t.__shady&&t.__shady.S)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.$a())}function ot(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.ka;return void 0===e&&(e=w(t)?t:(e=t.parentNode)?ot(e):t,ve.call(document.documentElement,t)&&(t.__shady.ka=e)),e}}function rt(t,e,n){var o=[];return it(t.childNodes,e,n,o),o}function it(t,e,n,o){for(var r,i=0,s=t.length;i<s&&(r=t[i]);i++){var a;if(a=r.nodeType===Node.ELEMENT_NODE){var l=e,c=n,h=o,u=l(a=r);u&&h.push(a),c&&c(u)?a=u:(it(a.childNodes,l,c,h),a=void 0)}if(a)break}}function st(t){w(t=t.getRootNode())&&t.ra()}function at(t,e,n){Pe||(Pe=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Pe&&"class"===e?Pe.setElementClass(t,n):(ce.call(t,e,n),et(t,e))}function lt(t,e){if(t.ownerDocument!==document)return de.call(document,t,e);var n=de.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=lt(t[e],!0),n.appendChild(o)}return n}function ct(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function ht(t,e){if(!w)return t;t=ct(t,!0);for(var n,o,r,i,s=0;s<e.length;s++)if(n=e[s],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!w(r)||-1<i)return n}function ut(t){function e(e,n){return e=new t(e,n),e.da=n&&!!n.composed,e}return C(e,t),e.prototype=t.prototype,e}function dt(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Fa);r++);}function pt(t){var e=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var n=e.length-1;0<=n;n--){var o=e[n];if(dt(t,o,"capture"),t.ea)return}Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});var r;for(n=0;n<e.length;n++){var i=(o=e[n]).__shady&&o.__shady.root;if((0===n||i&&i===r)&&(dt(t,o,"bubble"),o!==window&&(r=o.getRootNode()),t.ea))break}}function ft(t,e,n,o,r,i){for(var s=0;s<t.length;s++){var a=t[s],l=a.type,c=a.capture,h=a.once,u=a.passive;if(e===a.node&&n===l&&o===c&&r===h&&i===u)return s}return-1}function yt(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var s=n&&n.fa||this,a=e[Fe];if(a){if(-1<ft(a,s,t,o,r,i))return}else e[Fe]=[];a=function(o){if(r&&this.removeEventListener(t,e,n),o.__target||mt(o),s!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return s},configurable:!0})}if(o.composed||-1<o.composedPath().indexOf(s))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===s){var a="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(s,o);return s!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),a}},e[Fe].push({node:this,type:t,capture:o,once:r,passive:i,eb:a}),Ve[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(a)):(this instanceof Window?ye:pe).call(this,t,a,n)}}function _t(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var s=n&&n.fa||this,a=void 0,l=null;try{l=e[Fe]}catch(t){}l&&-1<(r=ft(l,s,t,o,r,i))&&(a=l.splice(r,1)[0].eb,l.length||(e[Fe]=void 0)),(this instanceof Window?_e:fe).call(this,t,a||e,n),a&&Ve[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(a=t.indexOf(a))&&t.splice(a,1))}}function mt(t){if(t.__target=t.target,t.na=t.relatedTarget,Xt.R){var e=Ie,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.gb=n,S(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else S(t,Ie)}function vt(t,e){return{index:t,T:[],W:e}}function gt(t,e,n,o){var r=0,i=0,s=0,a=0,l=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(s=0;s<l;s++)if(t[s]!==n[s])break t;s=l}if(e==t.length&&o==n.length){a=t.length;for(var c=n.length,h=0;h<l-s&&bt(t[--a],n[--c]);)h++;a=h}if(r+=s,i+=s,e-=a,o-=a,0==e-r&&0==o-i)return[];if(r==e){for(e=vt(r,0);i<o;)e.T.push(n[i++]);return[e]}if(i==o)return[vt(r,e-r)];for(o=o-(s=i)+1,a=e-(l=r)+1,e=Array(o),c=0;c<o;c++)e[c]=Array(a),e[c][0]=c;for(c=0;c<a;c++)e[0][c]=c;for(c=1;c<o;c++)for(h=1;h<a;h++)if(t[l+h-1]===n[s+c-1])e[c][h]=e[c-1][h-1];else{var u=e[c-1][h]+1,d=e[c][h-1]+1;e[c][h]=u<d?u:d}for(l=e.length-1,s=e[0].length-1,o=e[l][s],t=[];0<l||0<s;)0==l?(t.push(2),s--):0==s?(t.push(3),l--):(a=e[l-1][s-1],c=e[l-1][s],h=e[l][s-1],(u=c<h?c<a?c:a:h<a?h:a)==a?(a==o?t.push(0):(t.push(1),o=a),l--,s--):u==c?(t.push(3),l--,o=c):(t.push(2),s--,o=h));for(t.reverse(),e=void 0,l=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(l.push(e),e=void 0),r++,i++;break;case 1:e||(e=vt(r,0)),e.W++,r++,e.T.push(n[i]),i++;break;case 2:e||(e=vt(r,0)),e.W++,r++;break;case 3:e||(e=vt(r,0)),e.T.push(n[i]),i++}return e&&l.push(e),l}function bt(t,e){return t===e}function wt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function Et(t){return st(t),t.__shady&&t.__shady.assignedSlot||null}function St(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function Nt(t){var e=tn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Ct(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Tt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function xt(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)xt(o,e,n);o=Tt(t,r);continue}if("template"===i){o=Tt(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)xt(r,e,n)}o=o.firstChild?o.firstChild:Tt(t,o)}}function Ot(t,e,n){t[e]=n}function Dt(t){var e=At,n=t=t.replace(Hn.Sa,"").replace(Hn.port,""),o=new h;o.start=0,o.end=n.length;for(var r=o,i=0,s=n.length;i<s;i++)if("{"===n[i]){r.rules||(r.rules=[]);var a=r,l=a.rules[a.rules.length-1]||null;(r=new h).start=i+1,r.parent=a,r.previous=l,a.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function At(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=Mt(n),n=n.replace(Hn.xa," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Fn.MEDIA_RULE:n.match(Hn.Wa)&&(t.type=Fn.ca,t.keyframesName=t.selector.split(Hn.xa).pop()):t.type=0===n.indexOf("--")?Fn.la:Fn.STYLE_RULE),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)At(o,e);return t}function Mt(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function Lt(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var s,a=i.length;r<a&&(s=i[r]);r++)o=Lt(s,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(Hn.sa,"").replace(Hn.wa,""),e=e.replace(Hn.Xa,"").replace(Hn.bb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function jt(t){Vn=(!t||!t.shimcssproperties)&&(In||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function kt(t,e){return t?("string"==typeof t&&(t=Dt(t)),e&&Ft(t,e),Lt(t,Vn)):""}function Rt(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Dt(t.textContent)),t.__cssRules||null}function Pt(t){return!!t.parent&&t.parent.type===Fn.ca}function Ft(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===Fn.MEDIA_RULE){var s=t.selector.match(Gn);s&&(window.matchMedia(s[1]).matches||(r=!0))}if(i===Fn.STYLE_RULE?e(t):n&&i===Fn.ca?n(t):i===Fn.la&&(r=!0),(t=t.rules)&&!r){r=0,i=t.length;for(var a;r<i&&(a=t[r]);r++)Ft(a,e,n,o)}}}function Ht(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,It(r,n,o),r}function It(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Kn?t.compareDocumentPosition(Kn)===Node.DOCUMENT_POSITION_PRECEDING&&(Kn=t):Kn=t}function Vt(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");t:{for(var o=0,r=n+3,i=t.length;r<i;r++)if("("===t[r])o++;else if(")"===t[r]&&0==--o)break t;r=-1}return o=t.substring(n+4,r),n=t.substring(0,n),t=Vt(t.substring(r+1),e),-1===(r=o.indexOf(","))?e(n,o.trim(),"",t):e(n,o.substring(0,r).trim(),o.substring(r+1).trim(),t)}function Wt(t,e){In?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function Bt(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,U:n}}function qt(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i=r.getRootNode(),s=r,a=[];if(s.classList?a=Array.from(s.classList):s instanceof window.SVGElement&&s.hasAttribute("class")&&(a=s.getAttribute("class").split(/\s+/)),s=a,a=s.indexOf(ho.a),(s=-1<a?s[a+1]:"")&&i===r.ownerDocument)ho.b(r,s,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(i=Bt(i).is,s===i)for(r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+ho.a+")"),i=0;i<r.length;i++)ho.h(r[i],s);else s&&ho.b(r,s,!0),ho.b(r,i)}}}}function Ut(t){(t=Eo[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Gt(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function $t(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,So.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function Kt(t){requestAnimationFrame(function(){Co?Co(t):(No||(No=new Promise(function(t){wo=t}),"complete"===document.readyState?wo():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&wo()})),No.then(function(){t&&t()}))})}function zt(){requestAnimationFrame(function(){window.WebComponents.ready=!0,window.document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}function Jt(){zt(),Lo.removeEventListener("readystatechange",Jt)}var Xt=window.ShadyDOM||{};Xt.Ta=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Yt=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Xt.R=!!(Yt&&Yt.configurable&&Yt.get),Xt.va=Xt.force||!Xt.Ta;var Zt=Element.prototype,Qt=Zt.matches||Zt.matchesSelector||Zt.mozMatchesSelector||Zt.msMatchesSelector||Zt.oMatchesSelector||Zt.webkitMatchesSelector,te=document.createTextNode(""),ee=0,ne=[];new MutationObserver(function(){for(;ne.length;)try{ne.shift()()}catch(t){throw te.textContent=ee++,t}}).observe(te,{characterData:!0});var oe,re=!!document.contains,ie=[];D.list=ie,g.prototype.$a=function(){var t=this;this.a||(this.a=!0,T(function(){t.b()}))},g.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.X.forEach(function(e){e(t)})}},g.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var se=Element.prototype.appendChild,ae=Element.prototype.insertBefore,le=Element.prototype.removeChild,ce=Element.prototype.setAttribute,he=Element.prototype.removeAttribute,ue=Element.prototype.cloneNode,de=Document.prototype.importNode,pe=Element.prototype.addEventListener,fe=Element.prototype.removeEventListener,ye=Window.prototype.addEventListener,_e=Window.prototype.removeEventListener,me=Element.prototype.dispatchEvent,ve=Node.prototype.contains||HTMLElement.prototype.contains,ge=Object.freeze({appendChild:se,insertBefore:ae,removeChild:le,setAttribute:ce,removeAttribute:he,cloneNode:ue,importNode:de,addEventListener:pe,removeEventListener:fe,kb:ye,lb:_e,dispatchEvent:me,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll,contains:ve}),be=/[&\u00A0"]/g,we=/[&\u00A0<>]/g,Ee=M("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Se=M("style script xmp iframe noembed noframes plaintext noscript".split(" ")),Ne=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Ce=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Te=Object.freeze({parentNode:j,firstChild:k,lastChild:R,previousSibling:P,nextSibling:F,childNodes:H,parentElement:I,firstElementChild:V,lastElementChild:W,previousElementSibling:B,nextElementSibling:q,children:U,innerHTML:G,textContent:$}),xe=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),Oe=document.implementation.createHTMLDocument("inert").createElement("div"),De=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Ae={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:I(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:j(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:F(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:P(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return q(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return B(this)},configurable:!0}},Me={childNodes:{get:function(){if(b(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=H(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:k(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:R(this)},configurable:!0},textContent:{get:function(){if(b(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return $(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return V(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return W(this)},configurable:!0},children:{get:function(){var t;return t=b(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):U(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return b(this)?L(t):G(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(xe&&xe.set?xe.set.call(Oe,t):Oe.innerHTML=t;Oe.firstChild;)e.appendChild(Oe.firstChild)},configurable:!0}},Le={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ya||null},configurable:!0}},je={activeElement:{get:function(){var t=De&&De.get?De.get.call(document):Xt.R?void 0:document.activeElement;if(t&&t.nodeType){var e=!!w(this);if(this===document||e&&this.host!==t&&ve.call(this.host,t)){for(e=E(t);e&&e!==this;)t=e.host,e=E(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},ke=Xt.R?function(){}:function(t){t.__shady&&t.__shady.Ia||(t.__shady=t.__shady||{},t.__shady.Ia=!0,K(t,Ae,!0))},Re=Xt.R?function(){}:function(t){t.__shady&&t.__shady.Ga||(t.__shady=t.__shady||{},t.__shady.Ga=!0,K(t,Me,!0),K(t,Le,!0))},Pe=null,Fe="__eventWrappers"+Date.now(),He={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Ie={get composed(){return!1!==this.isTrusted&&void 0===this.da&&(this.da=He[this.type]),this.da||!1},composedPath:function(){return this.ma||(this.ma=ct(this.__target,this.composed)),this.ma},get target(){return ht(this.currentTarget,this.composedPath())},get relatedTarget(){return this.na?(this.oa||(this.oa=ct(this.na,!0)),ht(this.currentTarget,this.oa)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ea=this.Fa=!0}},Ve={focus:!0,blur:!0},We=ut(window.Event),Be=ut(window.CustomEvent),qe=ut(window.MouseEvent),Ue={};m.prototype=Object.create(DocumentFragment.prototype),m.prototype.F=function(t,e){this.Ha="ShadyRoot",v(t),v(this),this.host=t,this.H=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.Ya="closed"!==this.H?this:null,this.V=!1,this.b=[],this.a={},this.c=[];for(var n=0,o=(e=H(t)).length;n<o;n++)le.call(t,e[n])},m.prototype.L=function(){var t=this;this.V||(this.V=!0,O(function(){return t.ra()}))},m.prototype.K=function(){for(var t,e=this;e;)e.V&&(t=e),e=e.Oa();return t},m.prototype.Oa=function(){var t=this.host.getRootNode();if(w(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.j(e))return t},m.prototype.ra=function(){var t=this.K();t&&t._renderRoot()},m.prototype._renderRoot=function(){this.V=!1,this.B(),this.u()},m.prototype.B=function(){this.f();for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.o(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.h(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.h(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.pa()&&n._renderRoot(),this.g(t.__shady.P,t.__shady.assignedNodes),n=t.__shady.qa){for(var o=0;o<n.length;o++)n[o].__shady.ga=null;t.__shady.qa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ia=!0)}t.__shady.ia&&(t.__shady.ia=!1,this.i(t))}},m.prototype.h=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.ga;t.__shady.ga=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ia=!0)},m.prototype.o=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.P=[],t.__shady.qa=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.ga=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},m.prototype.g=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)if("slot"==n.localName){var r=n.__shady.assignedNodes;r&&r.length&&this.g(t,r)}else t.push(e[o])},m.prototype.i=function(t){me.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.i(t.__shady.assignedSlot)},m.prototype.u=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.O(n===this?this.host:n,this.w(n))},m.prototype.w=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){var o=t[n];if(this.j(o)){o=o.__shady.P;for(var r=0;r<o.length;r++)e.push(o[r])}else e.push(o)}return e},m.prototype.j=function(t){return"slot"==t.localName},m.prototype.O=function(t,e){for(var n,o=H(t),r=gt(e,e.length,o,o.length),i=0,s=0;i<r.length&&(n=r[i]);i++){for(var a,l=0;l<n.T.length&&(a=n.T[l]);l++)j(a)===t&&le.call(t,a),o.splice(n.index+s,1);s-=n.W}for(i=0;i<r.length&&(n=r[i]);i++)for(s=o[n.index],l=n.index;l<n.index+n.W;l++)a=e[l],ae.call(t,a,s),o.splice(l,0,a)},m.prototype.Ka=function(t){this.c.push.apply(this.c,[].concat(t instanceof Array?t:i(r(t))))},m.prototype.f=function(){this.c.length&&(this.G(this.c),this.c=[])},m.prototype.G=function(t){for(var e,n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},v(o),v(o.parentNode);var r=this.l(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.m(this.a[i])},m.prototype.l=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ja=e},m.prototype.m=function(t){return t.sort(function(t,e){t=wt(t);for(var n=wt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},m.prototype.Na=function(t){this.f();var e,n=this.a;for(e in n)for(var o=n[e],r=0;r<o.length;r++){var i=o[r];if(x(t,i)){o.splice(r,1);var s=this.b.indexOf(i);0<=s&&this.b.splice(s,1),r--,this.I(i),s=!0}}return s},m.prototype.Pa=function(t){var e=t.Ja,n=this.l(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.m(e))}},m.prototype.I=function(t){if(t=t.__shady.P)for(var e=0;e<t.length;e++){var n=t[e],o=j(n);o&&le.call(o,n)}},m.prototype.pa=function(){return this.f(),!!this.b.length},m.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.addEventListener(t,e,n)},m.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.removeEventListener(t,e,n)},m.prototype.getElementById=function(t){return rt(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){K(t,Me,!0),K(t,je,!0)}(m.prototype);var Ge={addEventListener:yt.bind(window),removeEventListener:_t.bind(window)},$e={addEventListener:yt,removeEventListener:_t,appendChild:function(t){return X(this,t)},insertBefore:function(t,e){return X(this,t,e)},removeChild:function(t){return Y(this,t)},replaceChild:function(t,e){return X(this,t,e),Y(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=ue.call(this,t);else if(e=ue.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return ot(this)},contains:function(t){return x(this,t)},get isConnected(){var t=this.ownerDocument;if(re&&ve.call(t,this)||t.documentElement&&ve.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof m?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return D(),me.call(this,t)}},Ke={get assignedSlot(){return Et(this)}},ze={querySelector:function(t){return rt(this,function(e){return Qt.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return rt(this,function(e){return Qt.call(e,t)})}},Je={assignedNodes:function(t){if("slot"===this.localName)return st(this),this.__shady?(t&&t.flatten?this.__shady.P:this.__shady.assignedNodes)||[]:[]}},Xe=N({setAttribute:function(t,e){at(this,t,e)},removeAttribute:function(t){he.call(this,t),et(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new m(Ue,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){at(this,"slot",t)},get assignedSlot(){return Et(this)}},ze,Je);Object.defineProperties(Xe,Le);var Ye=N({importNode:function(t,e){return lt(t,e)},getElementById:function(t){return rt(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},ze);Object.defineProperties(Ye,{_activeElement:je.activeElement});var Ze=HTMLElement.prototype.blur,Qe=N({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():Ze.call(this)}});Xt.va&&(window.ShadyDOM={inUse:Xt.va,patch:function(t){return t},isShadyRoot:w,enqueue:O,flush:D,settings:Xt,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.S||(t.__shady.S=new g),t.__shady.S.X.add(e);var n=t.__shady.S;return{La:e,M:n,Ma:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.M;e&&(e.X.delete(t.La),e.X.size||(t.Ma.__shady.S=null))},nativeMethods:ge,nativeTree:Te},window.Event=We,window.CustomEvent=Be,window.MouseEvent=qe,function(){for(var t in Ve)window.addEventListener(t,function(t){t.__target||(mt(t),pt(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;St(window.Node.prototype,$e),St(window.Window.prototype,Ge),St(window.Text.prototype,Ke),St(window.DocumentFragment.prototype,ze),St(window.Element.prototype,Xe),St(window.Document.prototype,Ye),window.HTMLSlotElement&&St(window.HTMLSlotElement.prototype,Je),St(t.prototype,Qe),Xt.R&&(z(window.Node.prototype),z(window.Text.prototype),z(window.DocumentFragment.prototype),z(window.Element.prototype),z(t.prototype),z(window.Document.prototype),window.HTMLSlotElement&&z(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=m);var tn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));_.prototype.B=function(t,e){this.o.set(t,e),this.m.set(e.constructor,e)},_.prototype.c=function(t){return this.o.get(t)},_.prototype.w=function(t){return this.m.get(t)},_.prototype.u=function(t){this.h=!0,this.j.push(t)},_.prototype.l=function(t){var e=this;this.h&&xt(t,function(t){return e.g(t)})},_.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},_.prototype.b=function(t){var e=[];for(xt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},_.prototype.a=function(t){var e=[];for(xt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},_.prototype.f=function(t,e){var n=this,o=(e=e||{}).cb||new Set,r=e.ya||function(t){return n.i(t)},i=[];if(xt(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{cb:i,ya:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},_.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Ct(t)&&this.connectedCallback(t)}}},_.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},_.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},_.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},y.prototype.c=function(){this.M&&this.M.disconnect()},y.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.f(n[o])},f.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},p.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Nt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),s=o("disconnectedCallback"),a=o("adoptedCallback"),l=o("attributeChangedCallback"),c=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:s,adoptedCallback:a,attributeChangedCallback:l,observedAttributes:c,constructionStack:[]},this.a.B(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},p.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{ya:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var s=0;s<i.length;s++)this.a.i(i[s]);(r=this.h.get(r))&&r.c()}}},p.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},p.prototype.whenDefined=function(t){if(!Nt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new f,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.c(),e.f)},p.prototype.l=function(t){this.i.c();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=p,p.prototype.define=p.prototype.define,p.prototype.get=p.prototype.get,p.prototype.whenDefined=p.prototype.whenDefined,p.prototype.polyfillWrapFlushCallback=p.prototype.l;var en=window.Document.prototype.createElement,nn=window.Document.prototype.createElementNS,on=window.Document.prototype.importNode,rn=window.Document.prototype.prepend,sn=window.Document.prototype.append,an=window.DocumentFragment.prototype.prepend,ln=window.DocumentFragment.prototype.append,cn=window.Node.prototype.cloneNode,hn=window.Node.prototype.appendChild,un=window.Node.prototype.insertBefore,dn=window.Node.prototype.removeChild,pn=window.Node.prototype.replaceChild,fn=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),yn=window.Element.prototype.attachShadow,_n=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),mn=window.Element.prototype.getAttribute,vn=window.Element.prototype.setAttribute,gn=window.Element.prototype.removeAttribute,bn=window.Element.prototype.getAttributeNS,wn=window.Element.prototype.setAttributeNS,En=window.Element.prototype.removeAttributeNS,Sn=window.Element.prototype.insertAdjacentElement,Nn=window.Element.prototype.prepend,Cn=window.Element.prototype.append,Tn=window.Element.prototype.before,xn=window.Element.prototype.after,On=window.Element.prototype.replaceWith,Dn=window.Element.prototype.remove,An=window.HTMLElement,Mn=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Ln=window.HTMLElement.prototype.insertAdjacentElement,jn=new function(){},kn=window.customElements;if(!kn||kn.forcePolyfill||"function"!=typeof kn.define||"function"!=typeof kn.get){var Rn=new _;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.w(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=en.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===jn)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=jn,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=An.prototype,e}()}(Rn),function(t){Ot(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=en.call(this,e),t.g(e),e}),Ot(Document.prototype,"importNode",function(e,n){return e=on.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),Ot(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=nn.call(this,e,n),t.g(e),e}),d(t,Document.prototype,{Z:rn,append:sn})}(Rn),d(Rn,DocumentFragment.prototype,{Z:an,append:ln}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&Ct(this)){o=Array(i);for(var s=0;s<i;s++)o[s]=r[s]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}Ot(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=un.call(this,e,n),Ct(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Ct(e),n=un.call(this,e,n),o&&t.a(e),Ct(this)&&t.b(e),n}),Ot(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=hn.call(this,e),Ct(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Ct(e),o=hn.call(this,e),n&&t.a(e),Ct(this)&&t.b(e),o}),Ot(Node.prototype,"cloneNode",function(e){return e=cn.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),Ot(Node.prototype,"removeChild",function(e){var n=Ct(e),o=dn.call(this,e);return n&&t.a(e),o}),Ot(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=pn.call(this,e,n),Ct(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=Ct(e);var r=pn.call(this,e,n),i=Ct(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),fn&&fn.get?e(Node.prototype,fn):t.u(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)dn.call(this,this.firstChild);hn.call(this,document.createTextNode(t))}})})}(Rn),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Ct(this)&&(r=[],xt(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var s=r[i];1===s.__CE_state&&t.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?t.f(this):t.l(this),e}})}function n(e,n){Ot(e,"insertAdjacentElement",function(e,o){var r=Ct(o);return e=n.call(this,e,o),r&&t.a(o),Ct(e)&&t.b(o),e})}if(yn&&Ot(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=yn.call(this,t)}),_n&&_n.get)e(Element.prototype,_n);else if(Mn&&Mn.get)e(HTMLElement.prototype,Mn);else{var o=en.call(document,"div");t.u(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return cn.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)dn.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)hn.call(e,o.childNodes[0])}})})}Ot(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return vn.call(this,e,n);var o=mn.call(this,e);vn.call(this,e,n),n=mn.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Ot(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return wn.call(this,e,n,o);var r=bn.call(this,e,n);wn.call(this,e,n,o),o=bn.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Ot(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return gn.call(this,e);var n=mn.call(this,e);gn.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Ot(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return En.call(this,e,n);var o=bn.call(this,e,n);En.call(this,e,n);var r=bn.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),Ln?n(HTMLElement.prototype,Ln):Sn?n(Element.prototype,Sn):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),d(t,Element.prototype,{Z:Nn,append:Cn}),u(t,{ha:Tn,Qa:xn,replaceWith:On,remove:Dn})}(Rn),document.__CE_hasRegistry=!0;var Pn=new p(Rn);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Pn})}var Fn={STYLE_RULE:1,ca:7,MEDIA_RULE:4,la:1e3},Hn={Sa:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,sa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,wa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Xa:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,bb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Wa:/^@[^\s]*keyframes/,xa:/\s+/g},In=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var Vn=window.ShadyCSS.nativeCss;else window.ShadyCSS?(jt(window.ShadyCSS),window.ShadyCSS=void 0):jt(window.WebComponents&&window.WebComponents.flags);var Wn=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Bn=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qn=/(--[\w-]+)\s*([:,;)]|$)/gi,Un=/(animation\s*:)|(animation-name\s*:)/,Gn=/@media\s(.*)/,$n=/\{[^}]*\}/g,Kn=null;c.prototype.b=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.j(t,e||"",n)},c.prototype.j=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.h(t,e,n),t="template"===t.localName?(t.content||t.hb).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.j(t[o],e,n)},c.prototype.h=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(lo);n?o&&(e=o.replace("style-scope","").replace(e,""),Wt(t,e)):Wt(t,(o?o+" ":"")+"style-scope "+e)}},c.prototype.c=function(t,e,n){var o=t.__cssBuild;return In||"shady"===o?e=kt(e,n):(t=Bt(t),e=this.G(e,t.is,t.U,n)+"\n\n"),e.trim()},c.prototype.G=function(t,e,n,o){var r=this.f(e,n);e=this.i(e);var i=this;return kt(t,function(t){t.c||(i.I(t,e,r),t.c=!0),o&&o(t,e,r)})},c.prototype.i=function(t){return t?so+t:""},c.prototype.f=function(t,e){return e?"[is="+t+"]":t},c.prototype.I=function(t,e,n){this.l(t,this.g,e,n)},c.prototype.l=function(t,e,n,o){t.selector=t.v=this.m(t,e,n,o)},c.prototype.m=function(t,e,n,o){var r=t.selector.split(Xn);if(!Pt(t)){t=0;for(var i,s=r.length;t<s&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(Xn)},c.prototype.u=function(t){return t.replace(zn,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})},c.prototype.g=function(t,e,n){var o=this,r=!1;t=t.trim();var i=zn.test(t);return i&&(t=t.replace(zn,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=this.u(t)),t=t.replace(no,Qn+" $1"),t=t.replace(Yn,function(t,i,s){return r||(t=o.B(s,i,e,n),r=r||t.stop,i=t.Ra,s=t.value),i+s}),i&&(t=this.u(t)),t},c.prototype.B=function(t,e,n,o){var r=t.indexOf(eo);if(0<=t.indexOf(Qn)?t=this.F(t,o):0!==r&&(t=n?this.o(t,n):t),n=!1,0<=r&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(ro,function(t,e){return" > "+e}))}return t=t.replace(io,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,Ra:e,stop:i}},c.prototype.o=function(t,e){return t=t.split(ao),t[0]+=e,t.join(ao)},c.prototype.F=function(t,e){var n=t.match(oo);return(n=n&&n[2].trim()||"")?n[0].match(Zn)?t.replace(oo,function(t,n,o){return e+o}):n.split(Zn)[0]===e?n:co:t.replace(Qn,e)},c.prototype.H=function(t){t.selector=t.parsedSelector,this.w(t),this.l(t,this.K)},c.prototype.w=function(t){t.selector===to&&(t.selector="html")},c.prototype.K=function(t){return t.match(eo)?this.g(t,Jn):this.o(t.trim(),Jn)},s.Object.defineProperties(c.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var zn=/:(nth[-\w]+)\(([^)]+)\)/,Jn=":not(.style-scope)",Xn=",",Yn=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Zn=/[[.:#*]/,Qn=":host",to=":root",eo="::slotted",no=new RegExp("^("+eo+")"),oo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ro=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,io=/(.*):dir\((?:(ltr|rtl))\)/,so=".",ao=":",lo="class",co="should_not_match",ho=new c;l.get=function(t){return t?t.__styleInfo:null},l.set=function(t,e){return t.__styleInfo=e},l.prototype.c=function(){return this.D},l.prototype._getStyleRules=l.prototype.c;var uo=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),po=navigator.userAgent.match("Trident");a.prototype.H=function(t){var e=this,n={},o=[],r=0;Ft(t,function(t){e.c(t),t.index=r++,e.G(t.s.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},a.prototype.c=function(t){if(!t.s){var e={},n={};this.b(t,n)&&(e.C=n,t.rules=null),e.cssText=this.F(t),t.s=e}},a.prototype.b=function(t,e){var n=t.s;if(!n){n=t.parsedCssText;for(var o;t=Wn.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.C)return Object.assign(e,n.C),!0},a.prototype.F=function(t){return this.K(t.parsedCssText)},a.prototype.K=function(t){return t.replace($n,"").replace(Wn,"")},a.prototype.G=function(t,e){for(var n;n=qn.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},a.prototype.$=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},a.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=Vt(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},a.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(Bn.lastIndex=0,o=Bn.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=n.substring(o);i=i.trim(),i=this.a(i,e)||i,n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},a.prototype.B=function(t,e){var n="";t.s||this.c(t),t.s.cssText&&(n=this.f(t.s.cssText,e)),t.cssText=n},a.prototype.w=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.ua&&(t.ua=Un.test(n)),t.ua)if(null==t.Y){t.Y=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.Y.push(r))}else{for(r=0;r<t.Y.length;++r)o=e[t.Y[r]],n=o(n);o=n}t.cssText=o},a.prototype.O=function(t,e){var n={},o=this,r=[];return Ft(t,function(t){t.s||o.c(t);var i=t.v||t.parsedSelector;e&&t.s.C&&i&&uo.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{C:n,key:r}},a.prototype.ba=function(t,e,n,o){if(e.s||this.c(e),e.s.C){var r=Bt(t);t=r.is,r=r.U,r=t?ho.f(t,r):"html";var i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(s=i===r+" > *."+r||-1!==i.indexOf("html"),a=!s&&0===i.indexOf(r)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=r,a&&(In&&!e.v&&(e.v=ho.m(e,ho.g,ho.i(t),r)),n=e.v||r),o({ab:n,Va:a,jb:s}))}},a.prototype.I=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return Ft(e,function(e){r.ba(t,e,i,function(i){uo.call(t.ib||t,i.ab)&&(i.Va?r.b(e,n):r.b(e,o))})},null,!0),{Za:o,Ua:n}},a.prototype.aa=function(t,e,n){var o=this,r=Bt(t),i=ho.f(r.is,r.U),s=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])");r=l.get(t).D;var a=this.h(r,n);return ho.c(t,r,function(t){o.B(t,e),In||Pt(t)||!t.cssText||(o.w(t,a),o.l(t,s,i,n))})},a.prototype.h=function(t,e){t=t.b;var n={};if(!In&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},a.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},a.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.v=t.v||t.selector,t.selector=t.v.replace(t.keyframesName,t.a)},a.prototype.l=function(t,e,n,o){t.v=t.v||t.selector,o="."+o;for(var r,i=t.v.split(","),s=0,a=i.length;s<a&&(r=i[s]);s++)i[s]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},a.prototype.o=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&Wt(t,r)},a.prototype.u=function(t,e,n,o){e=o?o.textContent||"":this.aa(t,e,n);var r=l.get(t),i=r.a;return i&&!In&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),In?r.a?(r.a.textContent=e,o=r.a):e&&(o=Ht(e,n,t.shadowRoot,r.b)):o?o.parentNode||(po&&-1<e.indexOf("@media")&&(o.textContent=e),It(o,null,r.b)):e&&(o=Ht(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},a.prototype.m=function(t,e){var n=Rt(t),o=this;t.textContent=kt(n,function(t){var n=t.cssText=t.parsedCssText;t.s&&t.s.cssText&&(n=n.replace(Hn.sa,"").replace(Hn.wa,""),t.cssText=o.f(n,e))})},s.Object.defineProperties(a.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var fo=new a,yo={},_o=window.customElements;if(_o&&!In){var mo=_o.define;_o.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Kn?Kn.nextSibling:null)||r.firstChild),Kn=o,yo[t]=o,mo.call(_o,t,e,n)}}if(o.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.C[r]!==e[r])return!1}return!0},o.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({C:e,styleElement:n,A:o}),r.length>this.c&&r.shift(),this.cache[t]=r},o.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!In){var vo=new MutationObserver(qt),go=function(t){vo.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)go(document);else{var bo=function(){go(document.body)};window.HTMLImports?window.HTMLImports.whenReady(bo):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){bo(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else bo()})}n=function(){qt(vo.takeRecords())}}var wo,Eo={},So=Promise.resolve(),No=null,Co=window.HTMLImports&&window.HTMLImports.whenReady||null,To=null,xo=null;e.prototype.ta=function(){!this.enqueued&&xo&&(this.enqueued=!0,Kt(xo))},e.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.ta())},e.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},e.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,To&&To(o),n.__shadyCSSCachedStyle=o)}}return t},e.prototype.addCustomStyle=e.prototype.b,e.prototype.getStyleForCustomStyle=e.prototype.a,e.prototype.processStyles=e.prototype.c,Object.defineProperties(e.prototype,{transformCallback:{get:function(){return To},set:function(t){To=t}},validateCallback:{get:function(){return xo},set:function(t){var e=!1;xo||(e=!0),xo=t,e&&this.ta()}}});var Oo=new o;t.prototype.w=function(){n()},t.prototype.I=function(t){return t+"-"+(this.m[t]=(this.m[t]||0)+1)},t.prototype.Ca=function(t){return Rt(t)},t.prototype.Ea=function(t){return kt(t)},t.prototype.H=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},t.prototype.$=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},t.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,Eo[e]=t;var o=this.$(t),r=this.H(t);n={is:e,extends:n,fb:o},In||ho.b(t.content,e),this.c();var i=Bn.test(r)||Wn.test(r);Bn.lastIndex=0,Wn.lastIndex=0,r=Dt(r),i&&Vn&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],Vn||(o=fo.H(t._styleAst)),o.length&&!Vn||(e=this.O(n,t._styleAst,In?t.content:null,yo[e]),t.a=e),t.c=o}},t.prototype.O=function(t,e,n,o){if((e=ho.c(t,e)).length)return Ht(e,t.is,n,o)},t.prototype.ba=function(t){var e=Bt(t),n=e.is;e=e.U;var o=yo[n];if(n=Eo[n])var r=n._styleAst,i=n.c;return l.set(t,new l(r,o,i,0,e))},t.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=Ut)},t.prototype.G=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.u(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},t.prototype.c=function(){this.F(),this.G()},t.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(Vn?this.Aa(t):(this.o(this.g,this.h),this.B(t)),this.b.enqueued=!1,this.i&&!Vn&&this.styleDocument())}},t.prototype.styleElement=function(t,e){var n=Bt(t).is,o=l.get(t);if(o||(o=this.ba(t)),this.j(t)||(this.i=!0),e&&(o.N=o.N||{},Object.assign(o.N,e)),Vn){if(o.N){e=o.N;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=Eo[n])||this.j(t))&&r&&r.a&&!Gt(r)&&((Gt(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=ho.c(t,o.D),$t(r)),In&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=ho.c(t,o.D)),o.D=r._styleAst)}else this.o(t,o),o.ja&&o.ja.length&&this.K(t,o)},t.prototype.l=function(t){return(t=t.getRootNode().host)?l.get(t)?t:this.l(t):this.g},t.prototype.j=function(t){return t===this.g},t.prototype.K=function(t,e){var n=Bt(t).is,o=Oo.fetch(n,e.J,e.ja),r=o?o.styleElement:null,i=e.A;e.A=o&&o.A||this.I(n),r=fo.u(t,e.J,e.A,r),In||fo.o(t,e.A,i),o||Oo.b(n,e.J,r,e.A)},t.prototype.o=function(t,e){var n=this.l(t),o=l.get(n);n=Object.create(o.J||null);var r=fo.I(t,e.D);t=fo.O(o.D,t).C,Object.assign(n,r.Ua,t,r.Za),this.aa(n,e.N),fo.$(n),e.J=n},t.prototype.aa=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},t.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},t.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},t.prototype.Aa=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.za(n)}},t.prototype.B=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&fo.m(n,this.h.J)}},t.prototype.u=function(t){var e=this,n=Rt(t);Ft(n,function(t){In?ho.w(t):ho.H(t),Vn&&(e.c(),e.a&&e.a.transformRule(t))}),Vn?t.textContent=kt(n):this.h.D.rules.push(n)},t.prototype.za=function(t){if(Vn&&this.a){var e=Rt(t);this.c(),this.a.transformRules(e),t.textContent=kt(e)}},t.prototype.getComputedStyleValue=function(t,e){var n;return Vn||(n=(l.get(t)||l.get(this.l(t))).J[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.prototype.Da=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var o=t.getAttribute("class");if(o){o=o.split(/\s/);for(var r=0;r<o.length;r++)if(o[r]===ho.a){n=o[r+1];break}}}n&&e.push(ho.a,n),Vn||(n=l.get(t))&&n.A&&e.push(fo.g,n.A),Wt(t,e.join(" "))},t.prototype.Ba=function(t){return l.get(t)},t.prototype.flush=t.prototype.w,t.prototype.prepareTemplate=t.prototype.prepareTemplate,t.prototype.styleElement=t.prototype.styleElement,t.prototype.styleDocument=t.prototype.styleDocument,t.prototype.styleSubtree=t.prototype.styleSubtree,t.prototype.getComputedStyleValue=t.prototype.getComputedStyleValue,t.prototype.setElementClass=t.prototype.Da,t.prototype._styleInfoForNode=t.prototype.Ba,t.prototype.transformCustomStyleForDocument=t.prototype.u,t.prototype.getStyleAst=t.prototype.Ca,t.prototype.styleAstToString=t.prototype.Ea,t.prototype.flushCustomStyles=t.prototype.f,Object.defineProperties(t.prototype,{nativeShadow:{get:function(){return In}},nativeCss:{get:function(){return Vn}}});var Do=new t;if(window.ShadyCSS)var Ao=window.ShadyCSS.ApplyShim,Mo=window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={ScopingShim:Do,prepareTemplate:function(t,e,n){Do.f(),Do.prepareTemplate(t,e,n)},styleSubtree:function(t,e){Do.f(),Do.styleSubtree(t,e)},styleElement:function(t){Do.f(),Do.styleElement(t)},styleDocument:function(t){Do.f(),Do.styleDocument(t)},getComputedStyleValue:function(t,e){return Do.getComputedStyleValue(t,e)},nativeCss:Vn,nativeShadow:In},Ao&&(window.ShadyCSS.ApplyShim=Ao),Mo&&(window.ShadyCSS.CustomStyleInterface=Mo);var Lo=window.document;window.WebComponents=window.WebComponents||{},"loading"!==Lo.readyState?zt():Lo.addEventListener("readystatechange",Jt)}()}).call(this),function(){"use strict";function t(){t=function(){},s.Symbol||(s.Symbol=l)}function e(){t();var o=s.Symbol.iterator;o||(o=s.Symbol.iterator=s.Symbol("iterator")),"function"!=typeof Array.prototype[o]&&a(Array.prototype,o,{configurable:!0,writable:!0,value:function(){return n(this)}}),e=function(){}}function n(t){var e=0;return o(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(t){return e(),t={next:t},t[s.Symbol.iterator]=function(){return this},t}function r(t){e();var o=t[Symbol.iterator];return o?o.call(t):n(t)}function i(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var s="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,a="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},l=function(){var t=0;return function(e){return"jscomp_symbol_"+(e||"")+t++}}();!function(){function t(){var t=this;this.m={},this.g=document.documentElement;var e=new h;e.rules=[],this.h=l.set(this.g,new l(e)),this.i=!1,this.b=this.a=null,Kt(function(){t.c()})}function e(){this.customStyles=[],this.enqueued=!1}function n(){}function o(t){this.cache={},this.c=void 0===t?100:t}function a(){}function l(t,e,n,o,r){this.D=t||null,this.b=e||null,this.ja=n||[],this.N=null,this.U=r||"",this.a=this.A=this.J=null}function c(){}function h(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function u(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Ct(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.ha&&(o.before=n(e.ha)),void 0!==e.ha&&(o.after=n(e.Qa)),void 0!==e.replaceWith&&Ot(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(s=Ct(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(s)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&Ot(o,"remove",function(){var n=Ct(this);e.remove.call(this),n&&t.a(this)})}function d(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Ct(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.Z&&(e.prepend=o(n.Z)),void 0!==n.append&&(e.append=o(n.append))}function p(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new y(t,document)}function f(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function y(t,e){this.b=t,this.a=e,this.M=void 0,this.b.f(this.a),"loading"===this.a.readyState&&(this.M=new MutationObserver(this.f.bind(this)),this.M.observe(this.a,{childList:!0,subtree:!0}))}function _(){this.o=new Map,this.m=new Map,this.j=[],this.h=!1}function m(t,e,n){if(t!==Ue)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=m.prototype,t.F(e,n),t}function v(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=k(t),t.__shady.lastChild=R(t),Re(t);for(var e,n=t.__shady.childNodes=H(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,ke(e)}}function g(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.X=new Set}function b(t){return t.__shady&&void 0!==t.__shady.firstChild}function w(t){return"ShadyRoot"===t.Ha}function E(t){if(t=t.getRootNode(),w(t))return t}function S(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function N(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)S(t,n[o]);return t}function C(t,e){for(var n in e)t[n]=e[n]}function T(t){ne.push(t),te.textContent=ee++}function x(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function O(t){oe||(oe=!0,T(D)),ie.push(t)}function D(){oe=!1;for(var t=!!ie.length;ie.length;)ie.shift()();return t}function A(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function M(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function L(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,s=r.length;i<s&&(n=r[i]);i++){t:{var a=n,l=t,c=e;switch(a.nodeType){case Node.ELEMENT_NODE:for(var h=a.localName,u="<"+h,d=a.attributes,p=0;l=d[p];p++)u+=" "+l.name+'="'+l.value.replace(be,A)+'"';u+=">",a=Ee[h]?u:u+L(a,c)+"</"+h+">";break t;case Node.TEXT_NODE:a=a.data,a=l&&Se[l.localName]?a:a.replace(we,A);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}o+=a}return o}function j(t){return Ne.currentNode=t,Ne.parentNode()}function k(t){return Ne.currentNode=t,Ne.firstChild()}function R(t){return Ne.currentNode=t,Ne.lastChild()}function P(t){return Ne.currentNode=t,Ne.previousSibling()}function F(t){return Ne.currentNode=t,Ne.nextSibling()}function H(t){var e=[];for(Ne.currentNode=t,t=Ne.firstChild();t;)e.push(t),t=Ne.nextSibling();return e}function I(t){return Ce.currentNode=t,Ce.parentNode()}function V(t){return Ce.currentNode=t,Ce.firstChild()}function W(t){return Ce.currentNode=t,Ce.lastChild()}function B(t){return Ce.currentNode=t,Ce.previousSibling()}function q(t){return Ce.currentNode=t,Ce.nextSibling()}function U(t){var e=[];for(Ce.currentNode=t,t=Ce.firstChild();t;)e.push(t),t=Ce.nextSibling();return e}function G(t){return L(t,function(t){return H(t)})}function $(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function K(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function z(t){K(t,Ae),K(t,Me),K(t,je)}function J(t,e,n){ke(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function X(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=n.__shady&&n.__shady.parentNode;if(void 0!==o&&o!==t||void 0===o&&j(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;e.parentNode&&Y(e.parentNode,e);var r;if(r=o=E(t))t:{if(!e.__noInsertionPoint){var i;if("slot"===e.localName?i=[e]:e.querySelectorAll&&(i=e.querySelectorAll("slot")),i&&i.length){r=i;break t}}r=void 0}if((i=r)&&o.Ka(i),o&&("slot"===t.localName||i)&&o.L(),b(t)){if(o=n,Re(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,r=0;r<i.length;r++)J(i[r],t,o);e.__shady=e.__shady||{},o=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=o,e.__shady.childNodes=o}else J(e,t,o);if(tt(t)){t.__shady.root.L();var s=!0}else t.__shady.root&&(s=!0)}return s||(s=w(t)?t.host:t,n?(n=Q(n),ae.call(s,e,n)):se.call(s,e)),nt(t,e),e}function Y(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=E(e);if(b(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling);var o=e.__shady.previousSibling,r=e.__shady.nextSibling;if(o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=r),r&&(r.__shady=r.__shady||{},r.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),tt(t)){t.__shady.root.L();var i=!0}}return Z(e),n&&((r=t&&"slot"===t.localName)&&(i=!0),((o=n.Na(e))||r)&&n.L()),i||(i=w(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||i===j(e))&&le.call(i,e)),nt(t,null,e),e}function Z(t){if(t.__shady&&void 0!==t.__shady.ka)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)Z(e);t.__shady&&(t.__shady.ka=void 0)}function Q(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady&&t.__shady.P)&&e.length?e[0]:Q(t.nextSibling)),e}function tt(t){return(t=t&&t.__shady&&t.__shady.root)&&t.pa()}function et(t,e){"slot"===e?(t=t.parentNode,tt(t)&&t.__shady.root.L()):"slot"===t.localName&&"name"===e&&(e=E(t))&&(e.Pa(t),e.L())}function nt(t,e,n){(t=t.__shady&&t.__shady.S)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.$a())}function ot(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.ka;return void 0===e&&(e=w(t)?t:(e=t.parentNode)?ot(e):t,ve.call(document.documentElement,t)&&(t.__shady.ka=e)),e}}function rt(t,e,n){var o=[];return it(t.childNodes,e,n,o),o}function it(t,e,n,o){for(var r,i=0,s=t.length;i<s&&(r=t[i]);i++){var a;if(a=r.nodeType===Node.ELEMENT_NODE){var l=e,c=n,h=o,u=l(a=r);u&&h.push(a),c&&c(u)?a=u:(it(a.childNodes,l,c,h),a=void 0)}if(a)break}}function st(t){w(t=t.getRootNode())&&t.ra()}function at(t,e,n){Pe||(Pe=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Pe&&"class"===e?Pe.setElementClass(t,n):(ce.call(t,e,n),et(t,e))}function lt(t,e){if(t.ownerDocument!==document)return de.call(document,t,e);var n=de.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=lt(t[e],!0),n.appendChild(o)}return n}function ct(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function ht(t,e){if(!w)return t;t=ct(t,!0);for(var n,o,r,i,s=0;s<e.length;s++)if(n=e[s],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!w(r)||-1<i)return n}function ut(t){function e(e,n){return e=new t(e,n),e.da=n&&!!n.composed,e}return C(e,t),e.prototype=t.prototype,e}function dt(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Fa);r++);}function pt(t){var e=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var n=e.length-1;0<=n;n--){var o=e[n];if(dt(t,o,"capture"),t.ea)return}Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});var r;for(n=0;n<e.length;n++){var i=(o=e[n]).__shady&&o.__shady.root;if((0===n||i&&i===r)&&(dt(t,o,"bubble"),o!==window&&(r=o.getRootNode()),t.ea))break}}function ft(t,e,n,o,r,i){for(var s=0;s<t.length;s++){var a=t[s],l=a.type,c=a.capture,h=a.once,u=a.passive;if(e===a.node&&n===l&&o===c&&r===h&&i===u)return s}return-1}function yt(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var s=n&&n.fa||this,a=e[Fe];if(a){if(-1<ft(a,s,t,o,r,i))return}else e[Fe]=[];a=function(o){if(r&&this.removeEventListener(t,e,n),o.__target||mt(o),s!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return s},configurable:!0})}if(o.composed||-1<o.composedPath().indexOf(s))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===s){var a="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(s,o);return s!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),a}},e[Fe].push({node:this,type:t,capture:o,once:r,passive:i,eb:a}),Ve[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(a)):(this instanceof Window?ye:pe).call(this,t,a,n)}}function _t(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var s=n&&n.fa||this,a=void 0,l=null;try{l=e[Fe]}catch(t){}l&&-1<(r=ft(l,s,t,o,r,i))&&(a=l.splice(r,1)[0].eb,l.length||(e[Fe]=void 0)),(this instanceof Window?_e:fe).call(this,t,a||e,n),a&&Ve[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(a=t.indexOf(a))&&t.splice(a,1))}}function mt(t){if(t.__target=t.target,t.na=t.relatedTarget,Xt.R){var e=Ie,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.gb=n,S(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else S(t,Ie)}function vt(t,e){return{index:t,T:[],W:e}}function gt(t,e,n,o){var r=0,i=0,s=0,a=0,l=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(s=0;s<l;s++)if(t[s]!==n[s])break t;s=l}if(e==t.length&&o==n.length){a=t.length;for(var c=n.length,h=0;h<l-s&&bt(t[--a],n[--c]);)h++;a=h}if(r+=s,i+=s,e-=a,o-=a,0==e-r&&0==o-i)return[];if(r==e){for(e=vt(r,0);i<o;)e.T.push(n[i++]);return[e]}if(i==o)return[vt(r,e-r)];for(o=o-(s=i)+1,a=e-(l=r)+1,e=Array(o),c=0;c<o;c++)e[c]=Array(a),e[c][0]=c;for(c=0;c<a;c++)e[0][c]=c;for(c=1;c<o;c++)for(h=1;h<a;h++)if(t[l+h-1]===n[s+c-1])e[c][h]=e[c-1][h-1];else{var u=e[c-1][h]+1,d=e[c][h-1]+1;e[c][h]=u<d?u:d}for(l=e.length-1,s=e[0].length-1,o=e[l][s],t=[];0<l||0<s;)0==l?(t.push(2),s--):0==s?(t.push(3),l--):(a=e[l-1][s-1],c=e[l-1][s],h=e[l][s-1],(u=c<h?c<a?c:a:h<a?h:a)==a?(a==o?t.push(0):(t.push(1),o=a),l--,s--):u==c?(t.push(3),l--,o=c):(t.push(2),s--,o=h));for(t.reverse(),e=void 0,l=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(l.push(e),e=void 0),r++,i++;break;case 1:e||(e=vt(r,0)),e.W++,r++,e.T.push(n[i]),i++;break;case 2:e||(e=vt(r,0)),e.W++,r++;break;case 3:e||(e=vt(r,0)),e.T.push(n[i]),i++}return e&&l.push(e),l}function bt(t,e){return t===e}function wt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function Et(t){return st(t),t.__shady&&t.__shady.assignedSlot||null}function St(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function Nt(t){var e=tn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Ct(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Tt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function xt(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)xt(o,e,n);o=Tt(t,r);continue}if("template"===i){o=Tt(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)xt(r,e,n)}o=o.firstChild?o.firstChild:Tt(t,o)}}function Ot(t,e,n){t[e]=n}function Dt(t){var e=At,n=t=t.replace(Hn.Sa,"").replace(Hn.port,""),o=new h;o.start=0,o.end=n.length;for(var r=o,i=0,s=n.length;i<s;i++)if("{"===n[i]){r.rules||(r.rules=[]);var a=r,l=a.rules[a.rules.length-1]||null;(r=new h).start=i+1,r.parent=a,r.previous=l,a.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function At(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=Mt(n),n=n.replace(Hn.xa," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Fn.MEDIA_RULE:n.match(Hn.Wa)&&(t.type=Fn.ca,t.keyframesName=t.selector.split(Hn.xa).pop()):t.type=0===n.indexOf("--")?Fn.la:Fn.STYLE_RULE),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)At(o,e);return t}function Mt(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function Lt(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var s,a=i.length;r<a&&(s=i[r]);r++)o=Lt(s,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(Hn.sa,"").replace(Hn.wa,""),e=e.replace(Hn.Xa,"").replace(Hn.bb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function jt(t){Vn=(!t||!t.shimcssproperties)&&(In||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function kt(t,e){return t?("string"==typeof t&&(t=Dt(t)),e&&Ft(t,e),Lt(t,Vn)):""}function Rt(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Dt(t.textContent)),t.__cssRules||null}function Pt(t){return!!t.parent&&t.parent.type===Fn.ca}function Ft(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===Fn.MEDIA_RULE){var s=t.selector.match(Gn);s&&(window.matchMedia(s[1]).matches||(r=!0))}if(i===Fn.STYLE_RULE?e(t):n&&i===Fn.ca?n(t):i===Fn.la&&(r=!0),(t=t.rules)&&!r){r=0,i=t.length;for(var a;r<i&&(a=t[r]);r++)Ft(a,e,n,o)}}}function Ht(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,It(r,n,o),r}function It(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Kn?t.compareDocumentPosition(Kn)===Node.DOCUMENT_POSITION_PRECEDING&&(Kn=t):Kn=t}function Vt(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");t:{for(var o=0,r=n+3,i=t.length;r<i;r++)if("("===t[r])o++;else if(")"===t[r]&&0==--o)break t;r=-1}return o=t.substring(n+4,r),n=t.substring(0,n),t=Vt(t.substring(r+1),e),-1===(r=o.indexOf(","))?e(n,o.trim(),"",t):e(n,o.substring(0,r).trim(),o.substring(r+1).trim(),t)}function Wt(t,e){In?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function Bt(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,U:n}}function qt(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i=r.getRootNode(),s=r,a=[];if(s.classList?a=Array.from(s.classList):s instanceof window.SVGElement&&s.hasAttribute("class")&&(a=s.getAttribute("class").split(/\s+/)),s=a,a=s.indexOf(ho.a),(s=-1<a?s[a+1]:"")&&i===r.ownerDocument)ho.b(r,s,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(i=Bt(i).is,s===i)for(r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+ho.a+")"),i=0;i<r.length;i++)ho.h(r[i],s);else s&&ho.b(r,s,!0),ho.b(r,i)}}}}function Ut(t){(t=Eo[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Gt(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function $t(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,So.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function Kt(t){requestAnimationFrame(function(){Co?Co(t):(No||(No=new Promise(function(t){wo=t}),"complete"===document.readyState?wo():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&wo()})),No.then(function(){t&&t()}))})}function zt(){requestAnimationFrame(function(){window.WebComponents.ready=!0,window.document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}function Jt(){zt(),Lo.removeEventListener("readystatechange",Jt)}var Xt=window.ShadyDOM||{};Xt.Ta=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Yt=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Xt.R=!!(Yt&&Yt.configurable&&Yt.get),Xt.va=Xt.force||!Xt.Ta;var Zt=Element.prototype,Qt=Zt.matches||Zt.matchesSelector||Zt.mozMatchesSelector||Zt.msMatchesSelector||Zt.oMatchesSelector||Zt.webkitMatchesSelector,te=document.createTextNode(""),ee=0,ne=[];new MutationObserver(function(){for(;ne.length;)try{ne.shift()()}catch(t){throw te.textContent=ee++,t}}).observe(te,{characterData:!0});var oe,re=!!document.contains,ie=[];D.list=ie,g.prototype.$a=function(){var t=this;this.a||(this.a=!0,T(function(){t.b()}))},g.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.X.forEach(function(e){e(t)})}},g.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var se=Element.prototype.appendChild,ae=Element.prototype.insertBefore,le=Element.prototype.removeChild,ce=Element.prototype.setAttribute,he=Element.prototype.removeAttribute,ue=Element.prototype.cloneNode,de=Document.prototype.importNode,pe=Element.prototype.addEventListener,fe=Element.prototype.removeEventListener,ye=Window.prototype.addEventListener,_e=Window.prototype.removeEventListener,me=Element.prototype.dispatchEvent,ve=Node.prototype.contains||HTMLElement.prototype.contains,ge=Object.freeze({appendChild:se,insertBefore:ae,removeChild:le,setAttribute:ce,removeAttribute:he,cloneNode:ue,importNode:de,addEventListener:pe,removeEventListener:fe,kb:ye,lb:_e,dispatchEvent:me,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll,contains:ve}),be=/[&\u00A0"]/g,we=/[&\u00A0<>]/g,Ee=M("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Se=M("style script xmp iframe noembed noframes plaintext noscript".split(" ")),Ne=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Ce=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Te=Object.freeze({parentNode:j,firstChild:k,lastChild:R,previousSibling:P,nextSibling:F,childNodes:H,parentElement:I,firstElementChild:V,lastElementChild:W,previousElementSibling:B,nextElementSibling:q,children:U,innerHTML:G,textContent:$}),xe=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),Oe=document.implementation.createHTMLDocument("inert").createElement("div"),De=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Ae={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:I(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:j(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:F(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:P(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return q(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return B(this)},configurable:!0}},Me={childNodes:{get:function(){if(b(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=H(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:k(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:R(this)},configurable:!0},textContent:{get:function(){if(b(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return $(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return V(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return W(this)},configurable:!0},children:{get:function(){var t;return t=b(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):U(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return b(this)?L(t):G(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(xe&&xe.set?xe.set.call(Oe,t):Oe.innerHTML=t;Oe.firstChild;)e.appendChild(Oe.firstChild)},configurable:!0}},Le={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ya||null},configurable:!0}},je={activeElement:{get:function(){var t=De&&De.get?De.get.call(document):Xt.R?void 0:document.activeElement;if(t&&t.nodeType){var e=!!w(this);if(this===document||e&&this.host!==t&&ve.call(this.host,t)){for(e=E(t);e&&e!==this;)t=e.host,e=E(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},ke=Xt.R?function(){}:function(t){t.__shady&&t.__shady.Ia||(t.__shady=t.__shady||{},t.__shady.Ia=!0,K(t,Ae,!0))},Re=Xt.R?function(){}:function(t){t.__shady&&t.__shady.Ga||(t.__shady=t.__shady||{},t.__shady.Ga=!0,K(t,Me,!0),K(t,Le,!0))},Pe=null,Fe="__eventWrappers"+Date.now(),He={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Ie={get composed(){return!1!==this.isTrusted&&void 0===this.da&&(this.da=He[this.type]),this.da||!1},composedPath:function(){return this.ma||(this.ma=ct(this.__target,this.composed)),this.ma},get target(){return ht(this.currentTarget,this.composedPath())},get relatedTarget(){return this.na?(this.oa||(this.oa=ct(this.na,!0)),ht(this.currentTarget,this.oa)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ea=this.Fa=!0}},Ve={focus:!0,blur:!0},We=ut(window.Event),Be=ut(window.CustomEvent),qe=ut(window.MouseEvent),Ue={};m.prototype=Object.create(DocumentFragment.prototype),m.prototype.F=function(t,e){this.Ha="ShadyRoot",v(t),v(this),this.host=t,this.H=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.Ya="closed"!==this.H?this:null,this.V=!1,this.b=[],this.a={},this.c=[];for(var n=0,o=(e=H(t)).length;n<o;n++)le.call(t,e[n])},m.prototype.L=function(){var t=this;this.V||(this.V=!0,O(function(){return t.ra()}))},m.prototype.K=function(){for(var t,e=this;e;)e.V&&(t=e),e=e.Oa();return t},m.prototype.Oa=function(){var t=this.host.getRootNode();if(w(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.j(e))return t},m.prototype.ra=function(){var t=this.K();t&&t._renderRoot()},m.prototype._renderRoot=function(){this.V=!1,this.B(),this.u()},m.prototype.B=function(){this.f();for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.o(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.h(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.h(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.pa()&&n._renderRoot(),this.g(t.__shady.P,t.__shady.assignedNodes),n=t.__shady.qa){for(var o=0;o<n.length;o++)n[o].__shady.ga=null;t.__shady.qa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ia=!0)}t.__shady.ia&&(t.__shady.ia=!1,this.i(t))}},m.prototype.h=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.ga;t.__shady.ga=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ia=!0)},m.prototype.o=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.P=[],t.__shady.qa=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.ga=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},m.prototype.g=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)if("slot"==n.localName){var r=n.__shady.assignedNodes;r&&r.length&&this.g(t,r)}else t.push(e[o])},m.prototype.i=function(t){me.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.i(t.__shady.assignedSlot)},m.prototype.u=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.O(n===this?this.host:n,this.w(n))},m.prototype.w=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){var o=t[n];if(this.j(o)){o=o.__shady.P;for(var r=0;r<o.length;r++)e.push(o[r])}else e.push(o)}return e},m.prototype.j=function(t){return"slot"==t.localName},m.prototype.O=function(t,e){for(var n,o=H(t),r=gt(e,e.length,o,o.length),i=0,s=0;i<r.length&&(n=r[i]);i++){for(var a,l=0;l<n.T.length&&(a=n.T[l]);l++)j(a)===t&&le.call(t,a),o.splice(n.index+s,1);s-=n.W}for(i=0;i<r.length&&(n=r[i]);i++)for(s=o[n.index],l=n.index;l<n.index+n.W;l++)a=e[l],ae.call(t,a,s),o.splice(l,0,a)},m.prototype.Ka=function(t){this.c.push.apply(this.c,[].concat(t instanceof Array?t:i(r(t))))},m.prototype.f=function(){this.c.length&&(this.G(this.c),this.c=[])},m.prototype.G=function(t){for(var e,n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},v(o),v(o.parentNode);var r=this.l(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.m(this.a[i])},m.prototype.l=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ja=e},m.prototype.m=function(t){return t.sort(function(t,e){t=wt(t);for(var n=wt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},m.prototype.Na=function(t){this.f();var e,n=this.a;for(e in n)for(var o=n[e],r=0;r<o.length;r++){var i=o[r];if(x(t,i)){o.splice(r,1);var s=this.b.indexOf(i);0<=s&&this.b.splice(s,1),r--,this.I(i),s=!0}}return s},m.prototype.Pa=function(t){var e=t.Ja,n=this.l(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.m(e))}},m.prototype.I=function(t){if(t=t.__shady.P)for(var e=0;e<t.length;e++){var n=t[e],o=j(n);o&&le.call(o,n)}},m.prototype.pa=function(){return this.f(),!!this.b.length},m.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.addEventListener(t,e,n)},m.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.removeEventListener(t,e,n)},m.prototype.getElementById=function(t){return rt(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){K(t,Me,!0),K(t,je,!0)}(m.prototype);var Ge={addEventListener:yt.bind(window),removeEventListener:_t.bind(window)},$e={addEventListener:yt,removeEventListener:_t,appendChild:function(t){return X(this,t)},insertBefore:function(t,e){return X(this,t,e)},removeChild:function(t){return Y(this,t)},replaceChild:function(t,e){return X(this,t,e),Y(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=ue.call(this,t);else if(e=ue.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return ot(this)},contains:function(t){return x(this,t)},get isConnected(){var t=this.ownerDocument;if(re&&ve.call(t,this)||t.documentElement&&ve.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof m?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return D(),me.call(this,t)}},Ke={get assignedSlot(){return Et(this)}},ze={querySelector:function(t){return rt(this,function(e){return Qt.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return rt(this,function(e){return Qt.call(e,t)})}},Je={assignedNodes:function(t){if("slot"===this.localName)return st(this),this.__shady?(t&&t.flatten?this.__shady.P:this.__shady.assignedNodes)||[]:[]}},Xe=N({setAttribute:function(t,e){at(this,t,e)},removeAttribute:function(t){he.call(this,t),et(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new m(Ue,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){at(this,"slot",t)},get assignedSlot(){return Et(this)}},ze,Je);Object.defineProperties(Xe,Le);var Ye=N({importNode:function(t,e){return lt(t,e)},getElementById:function(t){return rt(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},ze);Object.defineProperties(Ye,{_activeElement:je.activeElement});var Ze=HTMLElement.prototype.blur,Qe=N({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():Ze.call(this)}});Xt.va&&(window.ShadyDOM={inUse:Xt.va,patch:function(t){return t},isShadyRoot:w,enqueue:O,flush:D,settings:Xt,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.S||(t.__shady.S=new g),t.__shady.S.X.add(e);var n=t.__shady.S;return{La:e,M:n,Ma:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.M;e&&(e.X.delete(t.La),e.X.size||(t.Ma.__shady.S=null))},nativeMethods:ge,nativeTree:Te},window.Event=We,window.CustomEvent=Be,window.MouseEvent=qe,function(){for(var t in Ve)window.addEventListener(t,function(t){t.__target||(mt(t),pt(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;St(window.Node.prototype,$e),St(window.Window.prototype,Ge),St(window.Text.prototype,Ke),St(window.DocumentFragment.prototype,ze),St(window.Element.prototype,Xe),St(window.Document.prototype,Ye),window.HTMLSlotElement&&St(window.HTMLSlotElement.prototype,Je),St(t.prototype,Qe),Xt.R&&(z(window.Node.prototype),z(window.Text.prototype),z(window.DocumentFragment.prototype),z(window.Element.prototype),z(t.prototype),z(window.Document.prototype),window.HTMLSlotElement&&z(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=m);var tn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));_.prototype.B=function(t,e){this.o.set(t,e),this.m.set(e.constructor,e)},_.prototype.c=function(t){return this.o.get(t)},_.prototype.w=function(t){return this.m.get(t)},_.prototype.u=function(t){this.h=!0,this.j.push(t)},_.prototype.l=function(t){var e=this;this.h&&xt(t,function(t){return e.g(t)})},_.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},_.prototype.b=function(t){var e=[];for(xt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},_.prototype.a=function(t){var e=[];for(xt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},_.prototype.f=function(t,e){var n=this,o=(e=e||{}).cb||new Set,r=e.ya||function(t){return n.i(t)},i=[];if(xt(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{cb:i,ya:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},_.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Ct(t)&&this.connectedCallback(t)}}},_.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},_.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},_.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},y.prototype.c=function(){this.M&&this.M.disconnect()},y.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.f(n[o])},f.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},p.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Nt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),s=o("disconnectedCallback"),a=o("adoptedCallback"),l=o("attributeChangedCallback"),c=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:s,adoptedCallback:a,attributeChangedCallback:l,observedAttributes:c,constructionStack:[]},this.a.B(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},p.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{ya:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var s=0;s<i.length;s++)this.a.i(i[s]);(r=this.h.get(r))&&r.c()}}},p.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},p.prototype.whenDefined=function(t){if(!Nt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new f,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.c(),e.f)},p.prototype.l=function(t){this.i.c();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=p,p.prototype.define=p.prototype.define,p.prototype.get=p.prototype.get,p.prototype.whenDefined=p.prototype.whenDefined,p.prototype.polyfillWrapFlushCallback=p.prototype.l;var en=window.Document.prototype.createElement,nn=window.Document.prototype.createElementNS,on=window.Document.prototype.importNode,rn=window.Document.prototype.prepend,sn=window.Document.prototype.append,an=window.DocumentFragment.prototype.prepend,ln=window.DocumentFragment.prototype.append,cn=window.Node.prototype.cloneNode,hn=window.Node.prototype.appendChild,un=window.Node.prototype.insertBefore,dn=window.Node.prototype.removeChild,pn=window.Node.prototype.replaceChild,fn=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),yn=window.Element.prototype.attachShadow,_n=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),mn=window.Element.prototype.getAttribute,vn=window.Element.prototype.setAttribute,gn=window.Element.prototype.removeAttribute,bn=window.Element.prototype.getAttributeNS,wn=window.Element.prototype.setAttributeNS,En=window.Element.prototype.removeAttributeNS,Sn=window.Element.prototype.insertAdjacentElement,Nn=window.Element.prototype.prepend,Cn=window.Element.prototype.append,Tn=window.Element.prototype.before,xn=window.Element.prototype.after,On=window.Element.prototype.replaceWith,Dn=window.Element.prototype.remove,An=window.HTMLElement,Mn=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Ln=window.HTMLElement.prototype.insertAdjacentElement,jn=new function(){},kn=window.customElements;if(!kn||kn.forcePolyfill||"function"!=typeof kn.define||"function"!=typeof kn.get){var Rn=new _;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.w(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=en.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===jn)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=jn,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=An.prototype,e}()}(Rn),function(t){Ot(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=en.call(this,e),t.g(e),e}),Ot(Document.prototype,"importNode",function(e,n){return e=on.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),Ot(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=nn.call(this,e,n),t.g(e),e}),d(t,Document.prototype,{Z:rn,append:sn})}(Rn),d(Rn,DocumentFragment.prototype,{Z:an,append:ln}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&Ct(this)){o=Array(i);for(var s=0;s<i;s++)o[s]=r[s]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}Ot(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=un.call(this,e,n),Ct(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Ct(e),n=un.call(this,e,n),o&&t.a(e),Ct(this)&&t.b(e),n}),Ot(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=hn.call(this,e),Ct(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Ct(e),o=hn.call(this,e),n&&t.a(e),Ct(this)&&t.b(e),o}),Ot(Node.prototype,"cloneNode",function(e){return e=cn.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),Ot(Node.prototype,"removeChild",function(e){var n=Ct(e),o=dn.call(this,e);return n&&t.a(e),o}),Ot(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=pn.call(this,e,n),Ct(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=Ct(e);var r=pn.call(this,e,n),i=Ct(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),fn&&fn.get?e(Node.prototype,fn):t.u(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)dn.call(this,this.firstChild);hn.call(this,document.createTextNode(t))}})})}(Rn),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Ct(this)&&(r=[],xt(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var s=r[i];1===s.__CE_state&&t.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?t.f(this):t.l(this),e}})}function n(e,n){Ot(e,"insertAdjacentElement",function(e,o){var r=Ct(o);return e=n.call(this,e,o),r&&t.a(o),Ct(e)&&t.b(o),e})}if(yn&&Ot(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=yn.call(this,t)}),_n&&_n.get)e(Element.prototype,_n);else if(Mn&&Mn.get)e(HTMLElement.prototype,Mn);else{var o=en.call(document,"div");t.u(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return cn.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)dn.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)hn.call(e,o.childNodes[0])}})})}Ot(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return vn.call(this,e,n);var o=mn.call(this,e);vn.call(this,e,n),n=mn.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Ot(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return wn.call(this,e,n,o);var r=bn.call(this,e,n);wn.call(this,e,n,o),o=bn.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Ot(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return gn.call(this,e);var n=mn.call(this,e);gn.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Ot(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return En.call(this,e,n);var o=bn.call(this,e,n);En.call(this,e,n);var r=bn.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),Ln?n(HTMLElement.prototype,Ln):Sn?n(Element.prototype,Sn):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),d(t,Element.prototype,{Z:Nn,append:Cn}),u(t,{ha:Tn,Qa:xn,replaceWith:On,remove:Dn})}(Rn),document.__CE_hasRegistry=!0;var Pn=new p(Rn);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Pn})}var Fn={STYLE_RULE:1,ca:7,MEDIA_RULE:4,la:1e3},Hn={Sa:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,sa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,wa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Xa:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,bb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Wa:/^@[^\s]*keyframes/,xa:/\s+/g},In=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var Vn=window.ShadyCSS.nativeCss;else window.ShadyCSS?(jt(window.ShadyCSS),window.ShadyCSS=void 0):jt(window.WebComponents&&window.WebComponents.flags);var Wn=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Bn=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qn=/(--[\w-]+)\s*([:,;)]|$)/gi,Un=/(animation\s*:)|(animation-name\s*:)/,Gn=/@media\s(.*)/,$n=/\{[^}]*\}/g,Kn=null;c.prototype.b=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.j(t,e||"",n)},c.prototype.j=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.h(t,e,n),t="template"===t.localName?(t.content||t.hb).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.j(t[o],e,n)},c.prototype.h=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(lo);n?o&&(e=o.replace("style-scope","").replace(e,""),Wt(t,e)):Wt(t,(o?o+" ":"")+"style-scope "+e)}},c.prototype.c=function(t,e,n){var o=t.__cssBuild;return In||"shady"===o?e=kt(e,n):(t=Bt(t),e=this.G(e,t.is,t.U,n)+"\n\n"),e.trim()},c.prototype.G=function(t,e,n,o){var r=this.f(e,n);e=this.i(e);var i=this;return kt(t,function(t){t.c||(i.I(t,e,r),t.c=!0),o&&o(t,e,r)})},c.prototype.i=function(t){return t?so+t:""},c.prototype.f=function(t,e){return e?"[is="+t+"]":t},c.prototype.I=function(t,e,n){this.l(t,this.g,e,n)},c.prototype.l=function(t,e,n,o){t.selector=t.v=this.m(t,e,n,o)},c.prototype.m=function(t,e,n,o){var r=t.selector.split(Xn);if(!Pt(t)){t=0;for(var i,s=r.length;t<s&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(Xn)},c.prototype.u=function(t){return t.replace(zn,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})},c.prototype.g=function(t,e,n){var o=this,r=!1;t=t.trim();var i=zn.test(t);return i&&(t=t.replace(zn,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=this.u(t)),t=t.replace(no,Qn+" $1"),t=t.replace(Yn,function(t,i,s){return r||(t=o.B(s,i,e,n),r=r||t.stop,i=t.Ra,s=t.value),i+s}),i&&(t=this.u(t)),t},c.prototype.B=function(t,e,n,o){var r=t.indexOf(eo);if(0<=t.indexOf(Qn)?t=this.F(t,o):0!==r&&(t=n?this.o(t,n):t),n=!1,0<=r&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(ro,function(t,e){return" > "+e}))}return t=t.replace(io,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,Ra:e,stop:i}},c.prototype.o=function(t,e){return t=t.split(ao),t[0]+=e,t.join(ao)},c.prototype.F=function(t,e){var n=t.match(oo);return(n=n&&n[2].trim()||"")?n[0].match(Zn)?t.replace(oo,function(t,n,o){return e+o}):n.split(Zn)[0]===e?n:co:t.replace(Qn,e)},c.prototype.H=function(t){t.selector=t.parsedSelector,this.w(t),this.l(t,this.K)},c.prototype.w=function(t){t.selector===to&&(t.selector="html")},c.prototype.K=function(t){return t.match(eo)?this.g(t,Jn):this.o(t.trim(),Jn)},s.Object.defineProperties(c.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var zn=/:(nth[-\w]+)\(([^)]+)\)/,Jn=":not(.style-scope)",Xn=",",Yn=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Zn=/[[.:#*]/,Qn=":host",to=":root",eo="::slotted",no=new RegExp("^("+eo+")"),oo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ro=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,io=/(.*):dir\((?:(ltr|rtl))\)/,so=".",ao=":",lo="class",co="should_not_match",ho=new c;l.get=function(t){return t?t.__styleInfo:null},l.set=function(t,e){return t.__styleInfo=e},l.prototype.c=function(){return this.D},l.prototype._getStyleRules=l.prototype.c;var uo=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),po=navigator.userAgent.match("Trident");a.prototype.H=function(t){var e=this,n={},o=[],r=0;Ft(t,function(t){e.c(t),t.index=r++,e.G(t.s.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},a.prototype.c=function(t){if(!t.s){var e={},n={};this.b(t,n)&&(e.C=n,t.rules=null),e.cssText=this.F(t),t.s=e}},a.prototype.b=function(t,e){var n=t.s;if(!n){n=t.parsedCssText;for(var o;t=Wn.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.C)return Object.assign(e,n.C),!0},a.prototype.F=function(t){return this.K(t.parsedCssText)},a.prototype.K=function(t){return t.replace($n,"").replace(Wn,"")},a.prototype.G=function(t,e){for(var n;n=qn.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},a.prototype.$=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},a.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=Vt(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},a.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(Bn.lastIndex=0,o=Bn.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=n.substring(o);i=i.trim(),i=this.a(i,e)||i,n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},a.prototype.B=function(t,e){var n="";t.s||this.c(t),t.s.cssText&&(n=this.f(t.s.cssText,e)),t.cssText=n},a.prototype.w=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.ua&&(t.ua=Un.test(n)),t.ua)if(null==t.Y){t.Y=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.Y.push(r))}else{for(r=0;r<t.Y.length;++r)o=e[t.Y[r]],n=o(n);o=n}t.cssText=o},a.prototype.O=function(t,e){var n={},o=this,r=[];return Ft(t,function(t){t.s||o.c(t);var i=t.v||t.parsedSelector;e&&t.s.C&&i&&uo.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{C:n,key:r}},a.prototype.ba=function(t,e,n,o){if(e.s||this.c(e),e.s.C){var r=Bt(t);t=r.is,r=r.U,r=t?ho.f(t,r):"html";var i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(s=i===r+" > *."+r||-1!==i.indexOf("html"),a=!s&&0===i.indexOf(r)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=r,a&&(In&&!e.v&&(e.v=ho.m(e,ho.g,ho.i(t),r)),n=e.v||r),o({ab:n,Va:a,jb:s}))}},a.prototype.I=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return Ft(e,function(e){r.ba(t,e,i,function(i){uo.call(t.ib||t,i.ab)&&(i.Va?r.b(e,n):r.b(e,o))})},null,!0),{Za:o,Ua:n}},a.prototype.aa=function(t,e,n){var o=this,r=Bt(t),i=ho.f(r.is,r.U),s=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])");r=l.get(t).D;var a=this.h(r,n);return ho.c(t,r,function(t){o.B(t,e),In||Pt(t)||!t.cssText||(o.w(t,a),o.l(t,s,i,n))})},a.prototype.h=function(t,e){t=t.b;var n={};if(!In&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},a.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},a.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.v=t.v||t.selector,t.selector=t.v.replace(t.keyframesName,t.a)},a.prototype.l=function(t,e,n,o){t.v=t.v||t.selector,o="."+o;for(var r,i=t.v.split(","),s=0,a=i.length;s<a&&(r=i[s]);s++)i[s]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},a.prototype.o=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&Wt(t,r)},a.prototype.u=function(t,e,n,o){e=o?o.textContent||"":this.aa(t,e,n);var r=l.get(t),i=r.a;return i&&!In&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),In?r.a?(r.a.textContent=e,o=r.a):e&&(o=Ht(e,n,t.shadowRoot,r.b)):o?o.parentNode||(po&&-1<e.indexOf("@media")&&(o.textContent=e),It(o,null,r.b)):e&&(o=Ht(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},a.prototype.m=function(t,e){var n=Rt(t),o=this;t.textContent=kt(n,function(t){var n=t.cssText=t.parsedCssText;t.s&&t.s.cssText&&(n=n.replace(Hn.sa,"").replace(Hn.wa,""),t.cssText=o.f(n,e))})},s.Object.defineProperties(a.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var fo=new a,yo={},_o=window.customElements;if(_o&&!In){var mo=_o.define;_o.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Kn?Kn.nextSibling:null)||r.firstChild),Kn=o,yo[t]=o,mo.call(_o,t,e,n)}}if(o.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.C[r]!==e[r])return!1}return!0},o.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({C:e,styleElement:n,A:o}),r.length>this.c&&r.shift(),this.cache[t]=r},o.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!In){var vo=new MutationObserver(qt),go=function(t){vo.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)go(document);else{var bo=function(){go(document.body)};window.HTMLImports?window.HTMLImports.whenReady(bo):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){bo(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else bo()})}n=function(){qt(vo.takeRecords())}}var wo,Eo={},So=Promise.resolve(),No=null,Co=window.HTMLImports&&window.HTMLImports.whenReady||null,To=null,xo=null;e.prototype.ta=function(){!this.enqueued&&xo&&(this.enqueued=!0,Kt(xo))},e.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.ta())},e.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},e.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,To&&To(o),n.__shadyCSSCachedStyle=o)}}return t},e.prototype.addCustomStyle=e.prototype.b,e.prototype.getStyleForCustomStyle=e.prototype.a,e.prototype.processStyles=e.prototype.c,Object.defineProperties(e.prototype,{transformCallback:{get:function(){return To},set:function(t){To=t}},validateCallback:{get:function(){return xo},set:function(t){var e=!1;xo||(e=!0),xo=t,e&&this.ta()}}});var Oo=new o;t.prototype.w=function(){n()},t.prototype.I=function(t){return t+"-"+(this.m[t]=(this.m[t]||0)+1)},t.prototype.Ca=function(t){return Rt(t)},t.prototype.Ea=function(t){return kt(t)},t.prototype.H=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},t.prototype.$=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},t.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,Eo[e]=t;var o=this.$(t),r=this.H(t);n={is:e,extends:n,fb:o},In||ho.b(t.content,e),this.c();var i=Bn.test(r)||Wn.test(r);Bn.lastIndex=0,Wn.lastIndex=0,r=Dt(r),i&&Vn&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],Vn||(o=fo.H(t._styleAst)),o.length&&!Vn||(e=this.O(n,t._styleAst,In?t.content:null,yo[e]),t.a=e),t.c=o}},t.prototype.O=function(t,e,n,o){if((e=ho.c(t,e)).length)return Ht(e,t.is,n,o)},t.prototype.ba=function(t){var e=Bt(t),n=e.is;e=e.U;var o=yo[n];if(n=Eo[n])var r=n._styleAst,i=n.c;return l.set(t,new l(r,o,i,0,e))},t.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=Ut)},t.prototype.G=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.u(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},t.prototype.c=function(){this.F(),this.G()},t.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(Vn?this.Aa(t):(this.o(this.g,this.h),this.B(t)),this.b.enqueued=!1,this.i&&!Vn&&this.styleDocument())}},t.prototype.styleElement=function(t,e){var n=Bt(t).is,o=l.get(t);if(o||(o=this.ba(t)),this.j(t)||(this.i=!0),e&&(o.N=o.N||{},Object.assign(o.N,e)),Vn){if(o.N){e=o.N;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=Eo[n])||this.j(t))&&r&&r.a&&!Gt(r)&&((Gt(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=ho.c(t,o.D),$t(r)),In&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=ho.c(t,o.D)),o.D=r._styleAst)}else this.o(t,o),o.ja&&o.ja.length&&this.K(t,o)},t.prototype.l=function(t){return(t=t.getRootNode().host)?l.get(t)?t:this.l(t):this.g},t.prototype.j=function(t){return t===this.g},t.prototype.K=function(t,e){var n=Bt(t).is,o=Oo.fetch(n,e.J,e.ja),r=o?o.styleElement:null,i=e.A;e.A=o&&o.A||this.I(n),r=fo.u(t,e.J,e.A,r),In||fo.o(t,e.A,i),o||Oo.b(n,e.J,r,e.A)},t.prototype.o=function(t,e){var n=this.l(t),o=l.get(n);n=Object.create(o.J||null);var r=fo.I(t,e.D);t=fo.O(o.D,t).C,Object.assign(n,r.Ua,t,r.Za),this.aa(n,e.N),fo.$(n),e.J=n},t.prototype.aa=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},t.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},t.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},t.prototype.Aa=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.za(n)}},t.prototype.B=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&fo.m(n,this.h.J)}},t.prototype.u=function(t){var e=this,n=Rt(t);Ft(n,function(t){In?ho.w(t):ho.H(t),Vn&&(e.c(),e.a&&e.a.transformRule(t))}),Vn?t.textContent=kt(n):this.h.D.rules.push(n)},t.prototype.za=function(t){if(Vn&&this.a){var e=Rt(t);this.c(),this.a.transformRules(e),t.textContent=kt(e)}},t.prototype.getComputedStyleValue=function(t,e){var n;return Vn||(n=(l.get(t)||l.get(this.l(t))).J[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.prototype.Da=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var o=t.getAttribute("class");if(o){o=o.split(/\s/);for(var r=0;r<o.length;r++)if(o[r]===ho.a){n=o[r+1];break}}}n&&e.push(ho.a,n),Vn||(n=l.get(t))&&n.A&&e.push(fo.g,n.A),Wt(t,e.join(" "))},t.prototype.Ba=function(t){return l.get(t)},t.prototype.flush=t.prototype.w,t.prototype.prepareTemplate=t.prototype.prepareTemplate,t.prototype.styleElement=t.prototype.styleElement,t.prototype.styleDocument=t.prototype.styleDocument,t.prototype.styleSubtree=t.prototype.styleSubtree,t.prototype.getComputedStyleValue=t.prototype.getComputedStyleValue,t.prototype.setElementClass=t.prototype.Da,t.prototype._styleInfoForNode=t.prototype.Ba,t.prototype.transformCustomStyleForDocument=t.prototype.u,t.prototype.getStyleAst=t.prototype.Ca,t.prototype.styleAstToString=t.prototype.Ea,t.prototype.flushCustomStyles=t.prototype.f,Object.defineProperties(t.prototype,{nativeShadow:{get:function(){return In}},nativeCss:{get:function(){return Vn}}});var Do=new t;if(window.ShadyCSS)var Ao=window.ShadyCSS.ApplyShim,Mo=window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={ScopingShim:Do,prepareTemplate:function(t,e,n){Do.f(),Do.prepareTemplate(t,e,n)},styleSubtree:function(t,e){Do.f(),Do.styleSubtree(t,e)},styleElement:function(t){Do.f(),Do.styleElement(t)},styleDocument:function(t){Do.f(),Do.styleDocument(t)},getComputedStyleValue:function(t,e){return Do.getComputedStyleValue(t,e)},nativeCss:Vn,nativeShadow:In},Ao&&(window.ShadyCSS.ApplyShim=Ao),Mo&&(window.ShadyCSS.CustomStyleInterface=Mo);var Lo=window.document;window.WebComponents=window.WebComponents||{},"loading"!==Lo.readyState?zt():Lo.addEventListener("readystatechange",Jt)}()}.call(this),function(){"use strict";function t(){t=function(){},s.Symbol||(s.Symbol=l)}function e(){t();var o=s.Symbol.iterator;o||(o=s.Symbol.iterator=s.Symbol("iterator")),"function"!=typeof Array.prototype[o]&&a(Array.prototype,o,{configurable:!0,writable:!0,value:function(){return n(this)}}),e=function(){}}function n(t){var e=0;return o(function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}})}function o(t){return e(),t={next:t},t[s.Symbol.iterator]=function(){return this},t}function r(t){e();var o=t[Symbol.iterator];return o?o.call(t):n(t)}function i(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var s="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,a="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},l=function(){var t=0;return function(e){return"jscomp_symbol_"+(e||"")+t++}}();!function(){function t(){var t=this;this.m={},this.g=document.documentElement;var e=new h;e.rules=[],this.h=l.set(this.g,new l(e)),this.i=!1,this.b=this.a=null,Kt(function(){t.c()})}function e(){this.customStyles=[],this.enqueued=!1}function n(){}function o(t){this.cache={},this.c=void 0===t?100:t}function a(){}function l(t,e,n,o,r){this.D=t||null,this.b=e||null,this.ja=n||[],this.N=null,this.U=r||"",this.a=this.A=this.J=null}function c(){}function h(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function u(t,e){function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Ct(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}var o=Element.prototype;void 0!==e.ha&&(o.before=n(e.ha)),void 0!==e.ha&&(o.after=n(e.Qa)),void 0!==e.replaceWith&&Ot(o,"replaceWith",function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(s=Ct(this),e.replaceWith.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(s)for(t.a(this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}),void 0!==e.remove&&Ot(o,"remove",function(){var n=Ct(this);e.remove.call(this),n&&t.a(this)})}function d(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],s=0;s<o.length;s++){var a=o[s];if(a instanceof Element&&Ct(a)&&i.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(e.apply(this,o),o=0;o<i.length;o++)t.a(i[o]);if(Ct(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&t.b(i)}}void 0!==n.Z&&(e.prepend=o(n.Z)),void 0!==n.append&&(e.append=o(n.append))}function p(t){this.c=!1,this.a=t,this.h=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.i=new y(t,document)}function f(){var t=this;this.b=this.a=void 0,this.f=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function y(t,e){this.b=t,this.a=e,this.M=void 0,this.b.f(this.a),"loading"===this.a.readyState&&(this.M=new MutationObserver(this.f.bind(this)),this.M.observe(this.a,{childList:!0,subtree:!0}))}function _(){this.o=new Map,this.m=new Map,this.j=[],this.h=!1}function m(t,e,n){if(t!==Ue)throw new TypeError("Illegal constructor");return t=document.createDocumentFragment(),t.__proto__=m.prototype,t.F(e,n),t}function v(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=k(t),t.__shady.lastChild=R(t),Re(t);for(var e,n=t.__shady.childNodes=H(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,ke(e)}}function g(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.X=new Set}function b(t){return t.__shady&&void 0!==t.__shady.firstChild}function w(t){return"ShadyRoot"===t.Ha}function E(t){if(t=t.getRootNode(),w(t))return t}function S(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function N(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)S(t,n[o]);return t}function C(t,e){for(var n in e)t[n]=e[n]}function T(t){ne.push(t),te.textContent=ee++}function x(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function O(t){oe||(oe=!0,T(D)),ie.push(t)}function D(){oe=!1;for(var t=!!ie.length;ie.length;)ie.shift()();return t}function A(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function M(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function L(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,s=r.length;i<s&&(n=r[i]);i++){t:{var a=n,l=t,c=e;switch(a.nodeType){case Node.ELEMENT_NODE:for(var h=a.localName,u="<"+h,d=a.attributes,p=0;l=d[p];p++)u+=" "+l.name+'="'+l.value.replace(be,A)+'"';u+=">",a=Ee[h]?u:u+L(a,c)+"</"+h+">";break t;case Node.TEXT_NODE:a=a.data,a=l&&Se[l.localName]?a:a.replace(we,A);break t;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break t;default:throw window.console.error(a),Error("not implemented")}}o+=a}return o}function j(t){return Ne.currentNode=t,Ne.parentNode()}function k(t){return Ne.currentNode=t,Ne.firstChild()}function R(t){return Ne.currentNode=t,Ne.lastChild()}function P(t){return Ne.currentNode=t,Ne.previousSibling()}function F(t){return Ne.currentNode=t,Ne.nextSibling()}function H(t){var e=[];for(Ne.currentNode=t,t=Ne.firstChild();t;)e.push(t),t=Ne.nextSibling();return e}function I(t){return Ce.currentNode=t,Ce.parentNode()}function V(t){return Ce.currentNode=t,Ce.firstChild()}function W(t){return Ce.currentNode=t,Ce.lastChild()}function B(t){return Ce.currentNode=t,Ce.previousSibling()}function q(t){return Ce.currentNode=t,Ce.nextSibling()}function U(t){var e=[];for(Ce.currentNode=t,t=Ce.firstChild();t;)e.push(t),t=Ce.nextSibling();return e}function G(t){return L(t,function(t){return H(t)})}function $(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}}function K(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function z(t){K(t,Ae),K(t,Me),K(t,je)}function J(t,e,n){ke(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function X(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=n.__shady&&n.__shady.parentNode;if(void 0!==o&&o!==t||void 0===o&&j(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;e.parentNode&&Y(e.parentNode,e);var r;if(r=o=E(t))t:{if(!e.__noInsertionPoint){var i;if("slot"===e.localName?i=[e]:e.querySelectorAll&&(i=e.querySelectorAll("slot")),i&&i.length){r=i;break t}}r=void 0}if((i=r)&&o.Ka(i),o&&("slot"===t.localName||i)&&o.L(),b(t)){if(o=n,Re(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,r=0;r<i.length;r++)J(i[r],t,o);e.__shady=e.__shady||{},o=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=o,e.__shady.childNodes=o}else J(e,t,o);if(tt(t)){t.__shady.root.L();var s=!0}else t.__shady.root&&(s=!0)}return s||(s=w(t)?t.host:t,n?(n=Q(n),ae.call(s,e,n)):se.call(s,e)),nt(t,e),e}function Y(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=E(e);if(b(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling);var o=e.__shady.previousSibling,r=e.__shady.nextSibling;if(o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=r),r&&(r.__shady=r.__shady||{},r.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),tt(t)){t.__shady.root.L();var i=!0}}return Z(e),n&&((r=t&&"slot"===t.localName)&&(i=!0),((o=n.Na(e))||r)&&n.L()),i||(i=w(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||i===j(e))&&le.call(i,e)),nt(t,null,e),e}function Z(t){if(t.__shady&&void 0!==t.__shady.ka)for(var e,n=t.childNodes,o=0,r=n.length;o<r&&(e=n[o]);o++)Z(e);t.__shady&&(t.__shady.ka=void 0)}function Q(t){var e=t;return t&&"slot"===t.localName&&(e=(e=t.__shady&&t.__shady.P)&&e.length?e[0]:Q(t.nextSibling)),e}function tt(t){return(t=t&&t.__shady&&t.__shady.root)&&t.pa()}function et(t,e){"slot"===e?(t=t.parentNode,tt(t)&&t.__shady.root.L()):"slot"===t.localName&&"name"===e&&(e=E(t))&&(e.Pa(t),e.L())}function nt(t,e,n){(t=t.__shady&&t.__shady.S)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),t.$a())}function ot(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var e=t.__shady.ka;return void 0===e&&(e=w(t)?t:(e=t.parentNode)?ot(e):t,ve.call(document.documentElement,t)&&(t.__shady.ka=e)),e}}function rt(t,e,n){var o=[];return it(t.childNodes,e,n,o),o}function it(t,e,n,o){for(var r,i=0,s=t.length;i<s&&(r=t[i]);i++){var a;if(a=r.nodeType===Node.ELEMENT_NODE){var l=e,c=n,h=o,u=l(a=r);u&&h.push(a),c&&c(u)?a=u:(it(a.childNodes,l,c,h),a=void 0)}if(a)break}}function st(t){w(t=t.getRootNode())&&t.ra()}function at(t,e,n){Pe||(Pe=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Pe&&"class"===e?Pe.setElementClass(t,n):(ce.call(t,e,n),et(t,e))}function lt(t,e){if(t.ownerDocument!==document)return de.call(document,t,e);var n=de.call(document,t,!1);if(e){t=t.childNodes,e=0;for(var o;e<t.length;e++)o=lt(t[e],!0),n.appendChild(o)}return n}function ct(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function ht(t,e){if(!w)return t;t=ct(t,!0);for(var n,o,r,i,s=0;s<e.length;s++)if(n=e[s],(r=n===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!w(r)||-1<i)return n}function ut(t){function e(e,n){return e=new t(e,n),e.da=n&&!!n.composed,e}return C(e,t),e.prototype=t.prototype,e}function dt(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&t.target!==t.relatedTarget&&(o.call(e,t),!t.Fa);r++);}function pt(t){var e=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return o},configurable:!0});for(var n=e.length-1;0<=n;n--){var o=e[n];if(dt(t,o,"capture"),t.ea)return}Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}});var r;for(n=0;n<e.length;n++){var i=(o=e[n]).__shady&&o.__shady.root;if((0===n||i&&i===r)&&(dt(t,o,"bubble"),o!==window&&(r=o.getRootNode()),t.ea))break}}function ft(t,e,n,o,r,i){for(var s=0;s<t.length;s++){var a=t[s],l=a.type,c=a.capture,h=a.once,u=a.passive;if(e===a.node&&n===l&&o===c&&r===h&&i===u)return s}return-1}function yt(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var s=n&&n.fa||this,a=e[Fe];if(a){if(-1<ft(a,s,t,o,r,i))return}else e[Fe]=[];a=function(o){if(r&&this.removeEventListener(t,e,n),o.__target||mt(o),s!==this){var i=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return s},configurable:!0})}if(o.composed||-1<o.composedPath().indexOf(s))if(o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===s){var a="object"==typeof e&&e.handleEvent?e.handleEvent(o):e.call(s,o);return s!==this&&(i?(Object.defineProperty(o,"currentTarget",i),i=null):delete o.currentTarget),a}},e[Fe].push({node:this,type:t,capture:o,once:r,passive:i,eb:a}),Ve[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][o?"capture":"bubble"].push(a)):(this instanceof Window?ye:pe).call(this,t,a,n)}}function _t(t,e,n){if(e){if("object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var s=n&&n.fa||this,a=void 0,l=null;try{l=e[Fe]}catch(t){}l&&-1<(r=ft(l,s,t,o,r,i))&&(a=l.splice(r,1)[0].eb,l.length||(e[Fe]=void 0)),(this instanceof Window?_e:fe).call(this,t,a||e,n),a&&Ve[t]&&this.__handlers&&this.__handlers[t]&&(t=this.__handlers[t][o?"capture":"bubble"],-1<(a=t.indexOf(a))&&t.splice(a,1))}}function mt(t){if(t.__target=t.target,t.na=t.relatedTarget,Xt.R){var e=Ie,n=Object.getPrototypeOf(t);if(!n.hasOwnProperty("__patchProto")){var o=Object.create(n);o.gb=n,S(o,e),n.__patchProto=o}t.__proto__=n.__patchProto}else S(t,Ie)}function vt(t,e){return{index:t,T:[],W:e}}function gt(t,e,n,o){var r=0,i=0,s=0,a=0,l=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(s=0;s<l;s++)if(t[s]!==n[s])break t;s=l}if(e==t.length&&o==n.length){a=t.length;for(var c=n.length,h=0;h<l-s&&bt(t[--a],n[--c]);)h++;a=h}if(r+=s,i+=s,e-=a,o-=a,0==e-r&&0==o-i)return[];if(r==e){for(e=vt(r,0);i<o;)e.T.push(n[i++]);return[e]}if(i==o)return[vt(r,e-r)];for(o=o-(s=i)+1,a=e-(l=r)+1,e=Array(o),c=0;c<o;c++)e[c]=Array(a),e[c][0]=c;for(c=0;c<a;c++)e[0][c]=c;for(c=1;c<o;c++)for(h=1;h<a;h++)if(t[l+h-1]===n[s+c-1])e[c][h]=e[c-1][h-1];else{var u=e[c-1][h]+1,d=e[c][h-1]+1;e[c][h]=u<d?u:d}for(l=e.length-1,s=e[0].length-1,o=e[l][s],t=[];0<l||0<s;)0==l?(t.push(2),s--):0==s?(t.push(3),l--):(a=e[l-1][s-1],c=e[l-1][s],h=e[l][s-1],(u=c<h?c<a?c:a:h<a?h:a)==a?(a==o?t.push(0):(t.push(1),o=a),l--,s--):u==c?(t.push(3),l--,o=c):(t.push(2),s--,o=h));for(t.reverse(),e=void 0,l=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(l.push(e),e=void 0),r++,i++;break;case 1:e||(e=vt(r,0)),e.W++,r++,e.T.push(n[i]),i++;break;case 2:e||(e=vt(r,0)),e.W++,r++;break;case 3:e||(e=vt(r,0)),e.T.push(n[i]),i++}return e&&l.push(e),l}function bt(t,e){return t===e}function wt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function Et(t){return st(t),t.__shady&&t.__shady.assignedSlot||null}function St(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}function Nt(t){var e=tn.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function Ct(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function Tt(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function xt(t,e,n){n=n||new Set;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)xt(o,e,n);o=Tt(t,r);continue}if("template"===i){o=Tt(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)xt(r,e,n)}o=o.firstChild?o.firstChild:Tt(t,o)}}function Ot(t,e,n){t[e]=n}function Dt(t){var e=At,n=t=t.replace(Hn.Sa,"").replace(Hn.port,""),o=new h;o.start=0,o.end=n.length;for(var r=o,i=0,s=n.length;i<s;i++)if("{"===n[i]){r.rules||(r.rules=[]);var a=r,l=a.rules[a.rules.length-1]||null;(r=new h).start=i+1,r.parent=a,r.previous=l,a.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function At(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1),n=Mt(n),n=n.replace(Hn.xa," "),n=n.substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=Fn.MEDIA_RULE:n.match(Hn.Wa)&&(t.type=Fn.ca,t.keyframesName=t.selector.split(Hn.xa).pop()):t.type=0===n.indexOf("--")?Fn.la:Fn.STYLE_RULE),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)At(o,e);return t}function Mt(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}function Lt(t,e,n){n=void 0===n?"":n;var o="";if(t.cssText||t.rules){var r,i=t.rules;if((r=i)&&(r=i[0],r=!(r&&r.selector&&0===r.selector.indexOf("--"))),r){r=0;for(var s,a=i.length;r<a&&(s=i[r]);r++)o=Lt(s,e,o)}else e?e=t.cssText:(e=t.cssText,e=e.replace(Hn.sa,"").replace(Hn.wa,""),e=e.replace(Hn.Xa,"").replace(Hn.bb,"")),(o=e.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(n+=t.selector+" {\n"),n+=o,t.selector&&(n+="}\n\n")),n}function jt(t){Vn=(!t||!t.shimcssproperties)&&(In||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}function kt(t,e){return t?("string"==typeof t&&(t=Dt(t)),e&&Ft(t,e),Lt(t,Vn)):""}function Rt(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Dt(t.textContent)),t.__cssRules||null}function Pt(t){return!!t.parent&&t.parent.type===Fn.ca}function Ft(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===Fn.MEDIA_RULE){var s=t.selector.match(Gn);s&&(window.matchMedia(s[1]).matches||(r=!0))}if(i===Fn.STYLE_RULE?e(t):n&&i===Fn.ca?n(t):i===Fn.la&&(r=!0),(t=t.rules)&&!r){r=0,i=t.length;for(var a;r<i&&(a=t[r]);r++)Ft(a,e,n,o)}}}function Ht(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,It(r,n,o),r}function It(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Kn?t.compareDocumentPosition(Kn)===Node.DOCUMENT_POSITION_PRECEDING&&(Kn=t):Kn=t}function Vt(t,e){var n=t.indexOf("var(");if(-1===n)return e(t,"","","");t:{for(var o=0,r=n+3,i=t.length;r<i;r++)if("("===t[r])o++;else if(")"===t[r]&&0==--o)break t;r=-1}return o=t.substring(n+4,r),n=t.substring(0,n),t=Vt(t.substring(r+1),e),-1===(r=o.indexOf(","))?e(n,o.trim(),"",t):e(n,o.substring(0,r).trim(),o.substring(r+1).trim(),t)}function Wt(t,e){In?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function Bt(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,U:n}}function qt(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i=r.getRootNode(),s=r,a=[];if(s.classList?a=Array.from(s.classList):s instanceof window.SVGElement&&s.hasAttribute("class")&&(a=s.getAttribute("class").split(/\s+/)),s=a,a=s.indexOf(ho.a),(s=-1<a?s[a+1]:"")&&i===r.ownerDocument)ho.b(r,s,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(i=Bt(i).is,s===i)for(r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+ho.a+")"),i=0;i<r.length;i++)ho.h(r[i],s);else s&&ho.b(r,s,!0),ho.b(r,i)}}}}function Ut(t){(t=Eo[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Gt(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}function $t(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.b||(t.b=!0,So.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.b=!1}))}function Kt(t){requestAnimationFrame(function(){Co?Co(t):(No||(No=new Promise(function(t){wo=t}),"complete"===document.readyState?wo():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&wo()})),No.then(function(){t&&t()}))})}function zt(){requestAnimationFrame(function(){window.WebComponents.ready=!0,window.document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}function Jt(){zt(),Lo.removeEventListener("readystatechange",Jt)}var Xt=window.ShadyDOM||{};Xt.Ta=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Yt=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Xt.R=!!(Yt&&Yt.configurable&&Yt.get),Xt.va=Xt.force||!Xt.Ta;var Zt=Element.prototype,Qt=Zt.matches||Zt.matchesSelector||Zt.mozMatchesSelector||Zt.msMatchesSelector||Zt.oMatchesSelector||Zt.webkitMatchesSelector,te=document.createTextNode(""),ee=0,ne=[];new MutationObserver(function(){for(;ne.length;)try{ne.shift()()}catch(t){throw te.textContent=ee++,t}}).observe(te,{characterData:!0});var oe,re=!!document.contains,ie=[];D.list=ie,g.prototype.$a=function(){var t=this;this.a||(this.a=!0,T(function(){t.b()}))},g.prototype.b=function(){if(this.a){this.a=!1;var t=this.takeRecords();t.length&&this.X.forEach(function(e){e(t)})}},g.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var se=Element.prototype.appendChild,ae=Element.prototype.insertBefore,le=Element.prototype.removeChild,ce=Element.prototype.setAttribute,he=Element.prototype.removeAttribute,ue=Element.prototype.cloneNode,de=Document.prototype.importNode,pe=Element.prototype.addEventListener,fe=Element.prototype.removeEventListener,ye=Window.prototype.addEventListener,_e=Window.prototype.removeEventListener,me=Element.prototype.dispatchEvent,ve=Node.prototype.contains||HTMLElement.prototype.contains,ge=Object.freeze({appendChild:se,insertBefore:ae,removeChild:le,setAttribute:ce,removeAttribute:he,cloneNode:ue,importNode:de,addEventListener:pe,removeEventListener:fe,kb:ye,lb:_e,dispatchEvent:me,querySelector:Element.prototype.querySelector,querySelectorAll:Element.prototype.querySelectorAll,contains:ve}),be=/[&\u00A0"]/g,we=/[&\u00A0<>]/g,Ee=M("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Se=M("style script xmp iframe noembed noframes plaintext noscript".split(" ")),Ne=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Ce=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Te=Object.freeze({parentNode:j,firstChild:k,lastChild:R,previousSibling:P,nextSibling:F,childNodes:H,parentElement:I,firstElementChild:V,lastElementChild:W,previousElementSibling:B,nextElementSibling:q,children:U,innerHTML:G,textContent:$}),xe=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),Oe=document.implementation.createHTMLDocument("inert").createElement("div"),De=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Ae={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:I(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:j(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:F(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:P(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return q(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return B(this)},configurable:!0}},Me={childNodes:{get:function(){if(b(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=H(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:k(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:R(this)},configurable:!0},textContent:{get:function(){if(b(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return $(this)},set:function(t){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return V(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return W(this)},configurable:!0},children:{get:function(){var t;return t=b(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):U(this),t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return b(this)?L(t):G(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);for(xe&&xe.set?xe.set.call(Oe,t):Oe.innerHTML=t;Oe.firstChild;)e.appendChild(Oe.firstChild)},configurable:!0}},Le={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ya||null},configurable:!0}},je={activeElement:{get:function(){var t=De&&De.get?De.get.call(document):Xt.R?void 0:document.activeElement;if(t&&t.nodeType){var e=!!w(this);if(this===document||e&&this.host!==t&&ve.call(this.host,t)){for(e=E(t);e&&e!==this;)t=e.host,e=E(t);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}},ke=Xt.R?function(){}:function(t){t.__shady&&t.__shady.Ia||(t.__shady=t.__shady||{},t.__shady.Ia=!0,K(t,Ae,!0))},Re=Xt.R?function(){}:function(t){t.__shady&&t.__shady.Ga||(t.__shady=t.__shady||{},t.__shady.Ga=!0,K(t,Me,!0),K(t,Le,!0))},Pe=null,Fe="__eventWrappers"+Date.now(),He={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Ie={get composed(){return!1!==this.isTrusted&&void 0===this.da&&(this.da=He[this.type]),this.da||!1},composedPath:function(){return this.ma||(this.ma=ct(this.__target,this.composed)),this.ma},get target(){return ht(this.currentTarget,this.composedPath())},get relatedTarget(){return this.na?(this.oa||(this.oa=ct(this.na,!0)),ht(this.currentTarget,this.oa)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ea=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ea=this.Fa=!0}},Ve={focus:!0,blur:!0},We=ut(window.Event),Be=ut(window.CustomEvent),qe=ut(window.MouseEvent),Ue={};m.prototype=Object.create(DocumentFragment.prototype),m.prototype.F=function(t,e){this.Ha="ShadyRoot",v(t),v(this),this.host=t,this.H=e&&e.mode,t.__shady=t.__shady||{},t.__shady.root=this,t.__shady.Ya="closed"!==this.H?this:null,this.V=!1,this.b=[],this.a={},this.c=[];for(var n=0,o=(e=H(t)).length;n<o;n++)le.call(t,e[n])},m.prototype.L=function(){var t=this;this.V||(this.V=!0,O(function(){return t.ra()}))},m.prototype.K=function(){for(var t,e=this;e;)e.V&&(t=e),e=e.Oa();return t},m.prototype.Oa=function(){var t=this.host.getRootNode();if(w(t))for(var e,n=this.host.childNodes,o=0;o<n.length;o++)if(e=n[o],this.j(e))return t},m.prototype.ra=function(){var t=this.K();t&&t._renderRoot()},m.prototype._renderRoot=function(){this.V=!1,this.B(),this.u()},m.prototype.B=function(){this.f();for(var t,e=0;e<this.b.length;e++)t=this.b[e],this.o(t);for(t=this.host.firstChild;t;t=t.nextSibling)this.h(t);for(e=0;e<this.b.length;e++){if(!(t=this.b[e]).__shady.assignedNodes.length)for(var n=t.firstChild;n;n=n.nextSibling)this.h(n,t);if(n=t.parentNode,(n=n.__shady&&n.__shady.root)&&n.pa()&&n._renderRoot(),this.g(t.__shady.P,t.__shady.assignedNodes),n=t.__shady.qa){for(var o=0;o<n.length;o++)n[o].__shady.ga=null;t.__shady.qa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.ia=!0)}t.__shady.ia&&(t.__shady.ia=!1,this.i(t))}},m.prototype.h=function(t,e){t.__shady=t.__shady||{};var n=t.__shady.ga;t.__shady.ga=null,e||(e=(e=this.a[t.slot||"__catchall"])&&e[0]),e?(e.__shady.assignedNodes.push(t),t.__shady.assignedSlot=e):t.__shady.assignedSlot=void 0,n!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.ia=!0)},m.prototype.o=function(t){var e=t.__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.P=[],t.__shady.qa=e)for(var n=0;n<e.length;n++){var o=e[n];o.__shady.ga=o.__shady.assignedSlot,o.__shady.assignedSlot===t&&(o.__shady.assignedSlot=null)}},m.prototype.g=function(t,e){for(var n,o=0;o<e.length&&(n=e[o]);o++)if("slot"==n.localName){var r=n.__shady.assignedNodes;r&&r.length&&this.g(t,r)}else t.push(e[o])},m.prototype.i=function(t){me.call(t,new Event("slotchange")),t.__shady.assignedSlot&&this.i(t.__shady.assignedSlot)},m.prototype.u=function(){for(var t=this.b,e=[],n=0;n<t.length;n++){var o=t[n].parentNode;o.__shady&&o.__shady.root||!(0>e.indexOf(o))||e.push(o)}for(t=0;t<e.length;t++)n=e[t],this.O(n===this?this.host:n,this.w(n))},m.prototype.w=function(t){var e=[];t=t.childNodes;for(var n=0;n<t.length;n++){var o=t[n];if(this.j(o)){o=o.__shady.P;for(var r=0;r<o.length;r++)e.push(o[r])}else e.push(o)}return e},m.prototype.j=function(t){return"slot"==t.localName},m.prototype.O=function(t,e){for(var n,o=H(t),r=gt(e,e.length,o,o.length),i=0,s=0;i<r.length&&(n=r[i]);i++){for(var a,l=0;l<n.T.length&&(a=n.T[l]);l++)j(a)===t&&le.call(t,a),o.splice(n.index+s,1);s-=n.W}for(i=0;i<r.length&&(n=r[i]);i++)for(s=o[n.index],l=n.index;l<n.index+n.W;l++)a=e[l],ae.call(t,a,s),o.splice(l,0,a)},m.prototype.Ka=function(t){this.c.push.apply(this.c,[].concat(t instanceof Array?t:i(r(t))))},m.prototype.f=function(){this.c.length&&(this.G(this.c),this.c=[])},m.prototype.G=function(t){for(var e,n=0;n<t.length;n++){var o=t[n];o.__shady=o.__shady||{},v(o),v(o.parentNode);var r=this.l(o);this.a[r]?(e=e||{},e[r]=!0,this.a[r].push(o)):this.a[r]=[o],this.b.push(o)}if(e)for(var i in e)this.a[i]=this.m(this.a[i])},m.prototype.l=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ja=e},m.prototype.m=function(t){return t.sort(function(t,e){t=wt(t);for(var n=wt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})},m.prototype.Na=function(t){this.f();var e,n=this.a;for(e in n)for(var o=n[e],r=0;r<o.length;r++){var i=o[r];if(x(t,i)){o.splice(r,1);var s=this.b.indexOf(i);0<=s&&this.b.splice(s,1),r--,this.I(i),s=!0}}return s},m.prototype.Pa=function(t){var e=t.Ja,n=this.l(t);if(n!==e){var o=(e=this.a[e]).indexOf(t);0<=o&&e.splice(o,1),(e=this.a[n]||(this.a[n]=[])).push(t),1<e.length&&(this.a[n]=this.m(e))}},m.prototype.I=function(t){if(t=t.__shady.P)for(var e=0;e<t.length;e++){var n=t[e],o=j(n);o&&le.call(o,n)}},m.prototype.pa=function(){return this.f(),!!this.b.length},m.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.addEventListener(t,e,n)},m.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.fa=this,this.host.removeEventListener(t,e,n)},m.prototype.getElementById=function(t){return rt(this,function(e){return e.id==t},function(t){return!!t})[0]||null},function(t){K(t,Me,!0),K(t,je,!0)}(m.prototype);var Ge={addEventListener:yt.bind(window),removeEventListener:_t.bind(window)},$e={addEventListener:yt,removeEventListener:_t,appendChild:function(t){return X(this,t)},insertBefore:function(t,e){return X(this,t,e)},removeChild:function(t){return Y(this,t)},replaceChild:function(t,e){return X(this,t,e),Y(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=ue.call(this,t);else if(e=ue.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return ot(this)},contains:function(t){return x(this,t)},get isConnected(){var t=this.ownerDocument;if(re&&ve.call(t,this)||t.documentElement&&ve.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof m?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return D(),me.call(this,t)}},Ke={get assignedSlot(){return Et(this)}},ze={querySelector:function(t){return rt(this,function(e){return Qt.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return rt(this,function(e){return Qt.call(e,t)})}},Je={assignedNodes:function(t){if("slot"===this.localName)return st(this),this.__shady?(t&&t.flatten?this.__shady.P:this.__shady.assignedNodes)||[]:[]}},Xe=N({setAttribute:function(t,e){at(this,t,e)},removeAttribute:function(t){he.call(this,t),et(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new m(Ue,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){at(this,"slot",t)},get assignedSlot(){return Et(this)}},ze,Je);Object.defineProperties(Xe,Le);var Ye=N({importNode:function(t,e){return lt(t,e)},getElementById:function(t){return rt(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},ze);Object.defineProperties(Ye,{_activeElement:je.activeElement});var Ze=HTMLElement.prototype.blur,Qe=N({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():Ze.call(this)}});Xt.va&&(window.ShadyDOM={inUse:Xt.va,patch:function(t){return t},isShadyRoot:w,enqueue:O,flush:D,settings:Xt,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.S||(t.__shady.S=new g),t.__shady.S.X.add(e);var n=t.__shady.S;return{La:e,M:n,Ma:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.M;e&&(e.X.delete(t.La),e.X.size||(t.Ma.__shady.S=null))},nativeMethods:ge,nativeTree:Te},window.Event=We,window.CustomEvent=Be,window.MouseEvent=qe,function(){for(var t in Ve)window.addEventListener(t,function(t){t.__target||(mt(t),pt(t))},!0)}(),function(){var t=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;St(window.Node.prototype,$e),St(window.Window.prototype,Ge),St(window.Text.prototype,Ke),St(window.DocumentFragment.prototype,ze),St(window.Element.prototype,Xe),St(window.Document.prototype,Ye),window.HTMLSlotElement&&St(window.HTMLSlotElement.prototype,Je),St(t.prototype,Qe),Xt.R&&(z(window.Node.prototype),z(window.Text.prototype),z(window.DocumentFragment.prototype),z(window.Element.prototype),z(t.prototype),z(window.Document.prototype),window.HTMLSlotElement&&z(window.HTMLSlotElement.prototype))}(),window.ShadowRoot=m);var tn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));_.prototype.B=function(t,e){this.o.set(t,e),this.m.set(e.constructor,e)},_.prototype.c=function(t){return this.o.get(t)},_.prototype.w=function(t){return this.m.get(t)},_.prototype.u=function(t){this.h=!0,this.j.push(t)},_.prototype.l=function(t){var e=this;this.h&&xt(t,function(t){return e.g(t)})},_.prototype.g=function(t){if(this.h&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.j.length;e++)this.j[e](t)}},_.prototype.b=function(t){var e=[];for(xt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state?this.connectedCallback(n):this.i(n)}},_.prototype.a=function(t){var e=[];for(xt(t,function(t){return e.push(t)}),t=0;t<e.length;t++){var n=e[t];1===n.__CE_state&&this.disconnectedCallback(n)}},_.prototype.f=function(t,e){var n=this,o=(e=e||{}).cb||new Set,r=e.ya||function(t){return n.i(t)},i=[];if(xt(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var e=t.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):t.addEventListener("load",function(){var e=t.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0,e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0;var i=new Set(o);i.delete(e),n.f(e,{cb:i,ya:r})}})}else i.push(t)},o),this.h)for(t=0;t<i.length;t++)this.g(i[t]);for(t=0;t<i.length;t++)r(i[t])},_.prototype.i=function(t){if(void 0===t.__CE_state){var e=this.c(t.localName);if(e){e.constructionStack.push(t);var n=e.constructor;try{try{if(new n!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,n=0;n<e.length;n++){var o=e[n],r=t.getAttribute(o);null!==r&&this.attributeChangedCallback(t,o,null,r,null)}Ct(t)&&this.connectedCallback(t)}}},_.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},_.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},_.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},y.prototype.c=function(){this.M&&this.M.disconnect()},y.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.c(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)this.b.f(n[o])},f.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0,this.b&&this.b(void 0)},p.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Nt(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.c(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),s=o("disconnectedCallback"),a=o("adoptedCallback"),l=o("attributeChangedCallback"),c=e.observedAttributes||[]}catch(t){return}finally{this.c=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:s,adoptedCallback:a,attributeChangedCallback:l,observedAttributes:c,constructionStack:[]},this.a.B(t,e),this.g.push(e),this.b||(this.b=!0,this.f(function(){return n.j()}))},p.prototype.j=function(){var t=this;if(!1!==this.b){this.b=!1;for(var e=this.g,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(this.a.f(document,{ya:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.a.c(r)&&n.push(e)}}}),r=0;r<n.length;r++)this.a.i(n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var s=0;s<i.length;s++)this.a.i(i[s]);(r=this.h.get(r))&&r.c()}}},p.prototype.get=function(t){if(t=this.a.c(t))return t.constructor},p.prototype.whenDefined=function(t){if(!Nt(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.h.get(t);return e?e.f:(e=new f,this.h.set(t,e),this.a.c(t)&&!this.g.some(function(e){return e.localName===t})&&e.c(),e.f)},p.prototype.l=function(t){this.i.c();var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=p,p.prototype.define=p.prototype.define,p.prototype.get=p.prototype.get,p.prototype.whenDefined=p.prototype.whenDefined,p.prototype.polyfillWrapFlushCallback=p.prototype.l;var en=window.Document.prototype.createElement,nn=window.Document.prototype.createElementNS,on=window.Document.prototype.importNode,rn=window.Document.prototype.prepend,sn=window.Document.prototype.append,an=window.DocumentFragment.prototype.prepend,ln=window.DocumentFragment.prototype.append,cn=window.Node.prototype.cloneNode,hn=window.Node.prototype.appendChild,un=window.Node.prototype.insertBefore,dn=window.Node.prototype.removeChild,pn=window.Node.prototype.replaceChild,fn=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),yn=window.Element.prototype.attachShadow,_n=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),mn=window.Element.prototype.getAttribute,vn=window.Element.prototype.setAttribute,gn=window.Element.prototype.removeAttribute,bn=window.Element.prototype.getAttributeNS,wn=window.Element.prototype.setAttributeNS,En=window.Element.prototype.removeAttributeNS,Sn=window.Element.prototype.insertAdjacentElement,Nn=window.Element.prototype.prepend,Cn=window.Element.prototype.append,Tn=window.Element.prototype.before,xn=window.Element.prototype.after,On=window.Element.prototype.replaceWith,Dn=window.Element.prototype.remove,An=window.HTMLElement,Mn=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Ln=window.HTMLElement.prototype.insertAdjacentElement,jn=new function(){},kn=window.customElements;if(!kn||kn.forcePolyfill||"function"!=typeof kn.define||"function"!=typeof kn.get){var Rn=new _;!function(t){window.HTMLElement=function(){function e(){var e=this.constructor,n=t.w(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=en.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.g(o),o;var r=o[n=o.length-1];if(r===jn)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=jn,Object.setPrototypeOf(r,e.prototype),t.g(r),r}return e.prototype=An.prototype,e}()}(Rn),function(t){Ot(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.c(e);if(n)return new n.constructor}return e=en.call(this,e),t.g(e),e}),Ot(Document.prototype,"importNode",function(e,n){return e=on.call(this,e,n),this.__CE_hasRegistry?t.f(e):t.l(e),e}),Ot(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.c(n);if(o)return new o.constructor}return e=nn.call(this,e,n),t.g(e),e}),d(t,Document.prototype,{Z:rn,append:sn})}(Rn),d(Rn,DocumentFragment.prototype,{Z:an,append:ln}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&Ct(this)){o=Array(i);for(var s=0;s<i;s++)o[s]=r[s]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)t.a(o[e])}}})}Ot(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=un.call(this,e,n),Ct(this))for(n=0;n<o.length;n++)t.b(o[n]);return e}return o=Ct(e),n=un.call(this,e,n),o&&t.a(e),Ct(this)&&t.b(e),n}),Ot(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=hn.call(this,e),Ct(this))for(var o=0;o<n.length;o++)t.b(n[o]);return e}return n=Ct(e),o=hn.call(this,e),n&&t.a(e),Ct(this)&&t.b(e),o}),Ot(Node.prototype,"cloneNode",function(e){return e=cn.call(this,e),this.ownerDocument.__CE_hasRegistry?t.f(e):t.l(e),e}),Ot(Node.prototype,"removeChild",function(e){var n=Ct(e),o=dn.call(this,e);return n&&t.a(e),o}),Ot(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=pn.call(this,e,n),Ct(this))for(t.a(n),n=0;n<o.length;n++)t.b(o[n]);return e}o=Ct(e);var r=pn.call(this,e,n),i=Ct(this);return i&&t.a(n),o&&t.a(e),i&&t.b(e),r}),fn&&fn.get?e(Node.prototype,fn):t.u(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)dn.call(this,this.firstChild);hn.call(this,document.createTextNode(t))}})})}(Rn),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(Ct(this)&&(r=[],xt(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var s=r[i];1===s.__CE_state&&t.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?t.f(this):t.l(this),e}})}function n(e,n){Ot(e,"insertAdjacentElement",function(e,o){var r=Ct(o);return e=n.call(this,e,o),r&&t.a(o),Ct(e)&&t.b(o),e})}if(yn&&Ot(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=yn.call(this,t)}),_n&&_n.get)e(Element.prototype,_n);else if(Mn&&Mn.get)e(HTMLElement.prototype,Mn);else{var o=en.call(document,"div");t.u(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return cn.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(o.innerHTML=t;0<e.childNodes.length;)dn.call(e,e.childNodes[0]);for(;0<o.childNodes.length;)hn.call(e,o.childNodes[0])}})})}Ot(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return vn.call(this,e,n);var o=mn.call(this,e);vn.call(this,e,n),n=mn.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),Ot(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return wn.call(this,e,n,o);var r=bn.call(this,e,n);wn.call(this,e,n,o),o=bn.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),Ot(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return gn.call(this,e);var n=mn.call(this,e);gn.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),Ot(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return En.call(this,e,n);var o=bn.call(this,e,n);En.call(this,e,n);var r=bn.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),Ln?n(HTMLElement.prototype,Ln):Sn?n(Element.prototype,Sn):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),d(t,Element.prototype,{Z:Nn,append:Cn}),u(t,{ha:Tn,Qa:xn,replaceWith:On,remove:Dn})}(Rn),document.__CE_hasRegistry=!0;var Pn=new p(Rn);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Pn})}var Fn={STYLE_RULE:1,ca:7,MEDIA_RULE:4,la:1e3},Hn={Sa:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,sa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,wa:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Xa:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,bb:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Wa:/^@[^\s]*keyframes/,xa:/\s+/g},In=!(window.ShadyDOM&&window.ShadyDOM.inUse);if(window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss)var Vn=window.ShadyCSS.nativeCss;else window.ShadyCSS?(jt(window.ShadyCSS),window.ShadyCSS=void 0):jt(window.WebComponents&&window.WebComponents.flags);var Wn=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Bn=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qn=/(--[\w-]+)\s*([:,;)]|$)/gi,Un=/(animation\s*:)|(animation-name\s*:)/,Gn=/@media\s(.*)/,$n=/\{[^}]*\}/g,Kn=null;c.prototype.b=function(t,e,n){t.__styleScoped?t.__styleScoped=null:this.j(t,e||"",n)},c.prototype.j=function(t,e,n){if(t.nodeType===Node.ELEMENT_NODE&&this.h(t,e,n),t="template"===t.localName?(t.content||t.hb).childNodes:t.children||t.childNodes)for(var o=0;o<t.length;o++)this.j(t[o],e,n)},c.prototype.h=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(lo);n?o&&(e=o.replace("style-scope","").replace(e,""),Wt(t,e)):Wt(t,(o?o+" ":"")+"style-scope "+e)}},c.prototype.c=function(t,e,n){var o=t.__cssBuild;return In||"shady"===o?e=kt(e,n):(t=Bt(t),e=this.G(e,t.is,t.U,n)+"\n\n"),e.trim()},c.prototype.G=function(t,e,n,o){var r=this.f(e,n);e=this.i(e);var i=this;return kt(t,function(t){t.c||(i.I(t,e,r),t.c=!0),o&&o(t,e,r)})},c.prototype.i=function(t){return t?so+t:""},c.prototype.f=function(t,e){return e?"[is="+t+"]":t},c.prototype.I=function(t,e,n){this.l(t,this.g,e,n)},c.prototype.l=function(t,e,n,o){t.selector=t.v=this.m(t,e,n,o)},c.prototype.m=function(t,e,n,o){var r=t.selector.split(Xn);if(!Pt(t)){t=0;for(var i,s=r.length;t<s&&(i=r[t]);t++)r[t]=e.call(this,i,n,o)}return r.join(Xn)},c.prototype.u=function(t){return t.replace(zn,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})},c.prototype.g=function(t,e,n){var o=this,r=!1;t=t.trim();var i=zn.test(t);return i&&(t=t.replace(zn,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}),t=this.u(t)),t=t.replace(no,Qn+" $1"),t=t.replace(Yn,function(t,i,s){return r||(t=o.B(s,i,e,n),r=r||t.stop,i=t.Ra,s=t.value),i+s}),i&&(t=this.u(t)),t},c.prototype.B=function(t,e,n,o){var r=t.indexOf(eo);if(0<=t.indexOf(Qn)?t=this.F(t,o):0!==r&&(t=n?this.o(t,n):t),n=!1,0<=r&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(ro,function(t,e){return" > "+e}))}return t=t.replace(io,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),{value:t,Ra:e,stop:i}},c.prototype.o=function(t,e){return t=t.split(ao),t[0]+=e,t.join(ao)},c.prototype.F=function(t,e){var n=t.match(oo);return(n=n&&n[2].trim()||"")?n[0].match(Zn)?t.replace(oo,function(t,n,o){return e+o}):n.split(Zn)[0]===e?n:co:t.replace(Qn,e)},c.prototype.H=function(t){t.selector=t.parsedSelector,this.w(t),this.l(t,this.K)},c.prototype.w=function(t){t.selector===to&&(t.selector="html")},c.prototype.K=function(t){return t.match(eo)?this.g(t,Jn):this.o(t.trim(),Jn)},s.Object.defineProperties(c.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var zn=/:(nth[-\w]+)\(([^)]+)\)/,Jn=":not(.style-scope)",Xn=",",Yn=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Zn=/[[.:#*]/,Qn=":host",to=":root",eo="::slotted",no=new RegExp("^("+eo+")"),oo=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ro=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,io=/(.*):dir\((?:(ltr|rtl))\)/,so=".",ao=":",lo="class",co="should_not_match",ho=new c;l.get=function(t){return t?t.__styleInfo:null},l.set=function(t,e){return t.__styleInfo=e},l.prototype.c=function(){return this.D},l.prototype._getStyleRules=l.prototype.c;var uo=function(t){return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}(window.Element.prototype),po=navigator.userAgent.match("Trident");a.prototype.H=function(t){var e=this,n={},o=[],r=0;Ft(t,function(t){e.c(t),t.index=r++,e.G(t.s.cssText,n)},function(t){o.push(t)}),t.b=o,t=[];for(var i in n)t.push(i);return t},a.prototype.c=function(t){if(!t.s){var e={},n={};this.b(t,n)&&(e.C=n,t.rules=null),e.cssText=this.F(t),t.s=e}},a.prototype.b=function(t,e){var n=t.s;if(!n){n=t.parsedCssText;for(var o;t=Wn.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.C)return Object.assign(e,n.C),!0},a.prototype.F=function(t){return this.K(t.parsedCssText)},a.prototype.K=function(t){return t.replace($n,"").replace(Wn,"")},a.prototype.G=function(t,e){for(var n;n=qn.exec(t);){var o=n[1];":"!==n[2]&&(e[o]=!0)}},a.prototype.$=function(t){for(var e,n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++)e=n[o],t[e]=this.a(t[e],t)},a.prototype.a=function(t,e){if(t)if(0<=t.indexOf(";"))t=this.f(t,e);else{var n=this;t=Vt(t,function(t,o,r,i){return o?((o=n.a(e[o],e))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=n.a(e[r]||r,e)||r,t+(o||"")+i):t+i})}return t&&t.trim()||""},a.prototype.f=function(t,e){t=t.split(";");for(var n,o,r=0;r<t.length;r++)if(n=t[r]){if(Bn.lastIndex=0,o=Bn.exec(n))n=this.a(e[o[1]],e);else if(-1!==(o=n.indexOf(":"))){var i=n.substring(o);i=i.trim(),i=this.a(i,e)||i,n=n.substring(0,o)+i}t[r]=n&&n.lastIndexOf(";")===n.length-1?n.slice(0,-1):n||""}return t.join(";")},a.prototype.B=function(t,e){var n="";t.s||this.c(t),t.s.cssText&&(n=this.f(t.s.cssText,e)),t.cssText=n},a.prototype.w=function(t,e){var n=t.cssText,o=t.cssText;if(null==t.ua&&(t.ua=Un.test(n)),t.ua)if(null==t.Y){t.Y=[];for(var r in e)o=e[r],o=o(n),n!==o&&(n=o,t.Y.push(r))}else{for(r=0;r<t.Y.length;++r)o=e[t.Y[r]],n=o(n);o=n}t.cssText=o},a.prototype.O=function(t,e){var n={},o=this,r=[];return Ft(t,function(t){t.s||o.c(t);var i=t.v||t.parsedSelector;e&&t.s.C&&i&&uo.call(e,i)&&(o.b(t,n),t=t.index,i=parseInt(t/32,10),r[i]=(r[i]||0)|1<<t%32)},null,!0),{C:n,key:r}},a.prototype.ba=function(t,e,n,o){if(e.s||this.c(e),e.s.C){var r=Bt(t);t=r.is,r=r.U,r=t?ho.f(t,r):"html";var i=e.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(s=i===r+" > *."+r||-1!==i.indexOf("html"),a=!s&&0===i.indexOf(r)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=r,a&&(In&&!e.v&&(e.v=ho.m(e,ho.g,ho.i(t),r)),n=e.v||r),o({ab:n,Va:a,jb:s}))}},a.prototype.I=function(t,e){var n={},o={},r=this,i=e&&e.__cssBuild;return Ft(e,function(e){r.ba(t,e,i,function(i){uo.call(t.ib||t,i.ab)&&(i.Va?r.b(e,n):r.b(e,o))})},null,!0),{Za:o,Ua:n}},a.prototype.aa=function(t,e,n){var o=this,r=Bt(t),i=ho.f(r.is,r.U),s=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])");r=l.get(t).D;var a=this.h(r,n);return ho.c(t,r,function(t){o.B(t,e),In||Pt(t)||!t.cssText||(o.w(t,a),o.l(t,s,i,n))})},a.prototype.h=function(t,e){t=t.b;var n={};if(!In&&t)for(var o=0,r=t[o];o<t.length;r=t[++o])this.j(r,e),n[r.keyframesName]=this.i(r);return n},a.prototype.i=function(t){return function(e){return e.replace(t.f,t.a)}},a.prototype.j=function(t,e){t.f=new RegExp(t.keyframesName,"g"),t.a=t.keyframesName+"-"+e,t.v=t.v||t.selector,t.selector=t.v.replace(t.keyframesName,t.a)},a.prototype.l=function(t,e,n,o){t.v=t.v||t.selector,o="."+o;for(var r,i=t.v.split(","),s=0,a=i.length;s<a&&(r=i[s]);s++)i[s]=r.match(e)?r.replace(n,o):o+" "+r;t.selector=i.join(",")},a.prototype.o=function(t,e,n){var o=t.getAttribute("class")||"",r=o;n&&(r=o.replace(new RegExp("\\s*x-scope\\s*"+n+"\\s*","g")," ")),o!==(r+=(r?" ":"")+"x-scope "+e)&&Wt(t,r)},a.prototype.u=function(t,e,n,o){e=o?o.textContent||"":this.aa(t,e,n);var r=l.get(t),i=r.a;return i&&!In&&i!==o&&(i._useCount--,0>=i._useCount&&i.parentNode&&i.parentNode.removeChild(i)),In?r.a?(r.a.textContent=e,o=r.a):e&&(o=Ht(e,n,t.shadowRoot,r.b)):o?o.parentNode||(po&&-1<e.indexOf("@media")&&(o.textContent=e),It(o,null,r.b)):e&&(o=Ht(e,n,null,r.b)),o&&(o._useCount=o._useCount||0,r.a!=o&&o._useCount++,r.a=o),o},a.prototype.m=function(t,e){var n=Rt(t),o=this;t.textContent=kt(n,function(t){var n=t.cssText=t.parsedCssText;t.s&&t.s.cssText&&(n=n.replace(Hn.sa,"").replace(Hn.wa,""),t.cssText=o.f(n,e))})},s.Object.defineProperties(a.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var fo=new a,yo={},_o=window.customElements;if(_o&&!In){var mo=_o.define;_o.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Kn?Kn.nextSibling:null)||r.firstChild),Kn=o,yo[t]=o,mo.call(_o,t,e,n)}}if(o.prototype.a=function(t,e,n){for(var o=0;o<n.length;o++){var r=n[o];if(t.C[r]!==e[r])return!1}return!0},o.prototype.b=function(t,e,n,o){var r=this.cache[t]||[];r.push({C:e,styleElement:n,A:o}),r.length>this.c&&r.shift(),this.cache[t]=r},o.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r=t[o];if(this.a(r,e,n))return r}},!In){var vo=new MutationObserver(qt),go=function(t){vo.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)go(document);else{var bo=function(){go(document.body)};window.HTMLImports?window.HTMLImports.whenReady(bo):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){bo(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else bo()})}n=function(){qt(vo.takeRecords())}}var wo,Eo={},So=Promise.resolve(),No=null,Co=window.HTMLImports&&window.HTMLImports.whenReady||null,To=null,xo=null;e.prototype.ta=function(){!this.enqueued&&xo&&(this.enqueued=!0,Kt(xo))},e.prototype.b=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),this.ta())},e.prototype.a=function(t){return t.__shadyCSSCachedStyle?t.__shadyCSSCachedStyle:t.getStyle?t.getStyle():t},e.prototype.c=function(){for(var t=this.customStyles,e=0;e<t.length;e++){var n=t[e];if(!n.__shadyCSSCachedStyle){var o=this.a(n);o&&(o=o.__appliedElement||o,To&&To(o),n.__shadyCSSCachedStyle=o)}}return t},e.prototype.addCustomStyle=e.prototype.b,e.prototype.getStyleForCustomStyle=e.prototype.a,e.prototype.processStyles=e.prototype.c,Object.defineProperties(e.prototype,{transformCallback:{get:function(){return To},set:function(t){To=t}},validateCallback:{get:function(){return xo},set:function(t){var e=!1;xo||(e=!0),xo=t,e&&this.ta()}}});var Oo=new o;t.prototype.w=function(){n()},t.prototype.I=function(t){return t+"-"+(this.m[t]=(this.m[t]||0)+1)},t.prototype.Ca=function(t){return Rt(t)},t.prototype.Ea=function(t){return kt(t)},t.prototype.H=function(t){t=t.content.querySelectorAll("style");for(var e=[],n=0;n<t.length;n++){var o=t[n];e.push(o.textContent),o.parentNode.removeChild(o)}return e.join("").trim()},t.prototype.$=function(t){return(t=t.content.querySelector("style"))?t.getAttribute("css-build")||"":""},t.prototype.prepareTemplate=function(t,e,n){if(!t.f){t.f=!0,t.name=e,t.extends=n,Eo[e]=t;var o=this.$(t),r=this.H(t);n={is:e,extends:n,fb:o},In||ho.b(t.content,e),this.c();var i=Bn.test(r)||Wn.test(r);Bn.lastIndex=0,Wn.lastIndex=0,r=Dt(r),i&&Vn&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.g=o,o=[],Vn||(o=fo.H(t._styleAst)),o.length&&!Vn||(e=this.O(n,t._styleAst,In?t.content:null,yo[e]),t.a=e),t.c=o}},t.prototype.O=function(t,e,n,o){if((e=ho.c(t,e)).length)return Ht(e,t.is,n,o)},t.prototype.ba=function(t){var e=Bt(t),n=e.is;e=e.U;var o=yo[n];if(n=Eo[n])var r=n._styleAst,i=n.c;return l.set(t,new l(r,o,i,0,e))},t.prototype.F=function(){!this.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.a=window.ShadyCSS.ApplyShim,this.a.invalidCallback=Ut)},t.prototype.G=function(){var t=this;!this.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.b=window.ShadyCSS.CustomStyleInterface,this.b.transformCallback=function(e){t.u(e)},this.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.i)&&t.f()})})},t.prototype.c=function(){this.F(),this.G()},t.prototype.f=function(){if(this.c(),this.b){var t=this.b.processStyles();this.b.enqueued&&(Vn?this.Aa(t):(this.o(this.g,this.h),this.B(t)),this.b.enqueued=!1,this.i&&!Vn&&this.styleDocument())}},t.prototype.styleElement=function(t,e){var n=Bt(t).is,o=l.get(t);if(o||(o=this.ba(t)),this.j(t)||(this.i=!0),e&&(o.N=o.N||{},Object.assign(o.N,e)),Vn){if(o.N){e=o.N;for(var r in e)null===r?t.style.removeProperty(r):t.style.setProperty(r,e[r])}((r=Eo[n])||this.j(t))&&r&&r.a&&!Gt(r)&&((Gt(r)||r._applyShimValidatingVersion!==r._applyShimNextVersion)&&(this.c(),this.a&&this.a.transformRules(r._styleAst,n),r.a.textContent=ho.c(t,o.D),$t(r)),In&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=ho.c(t,o.D)),o.D=r._styleAst)}else this.o(t,o),o.ja&&o.ja.length&&this.K(t,o)},t.prototype.l=function(t){return(t=t.getRootNode().host)?l.get(t)?t:this.l(t):this.g},t.prototype.j=function(t){return t===this.g},t.prototype.K=function(t,e){var n=Bt(t).is,o=Oo.fetch(n,e.J,e.ja),r=o?o.styleElement:null,i=e.A;e.A=o&&o.A||this.I(n),r=fo.u(t,e.J,e.A,r),In||fo.o(t,e.A,i),o||Oo.b(n,e.J,r,e.A)},t.prototype.o=function(t,e){var n=this.l(t),o=l.get(n);n=Object.create(o.J||null);var r=fo.I(t,e.D);t=fo.O(o.D,t).C,Object.assign(n,r.Ua,t,r.Za),this.aa(n,e.N),fo.$(n),e.J=n},t.prototype.aa=function(t,e){for(var n in e){var o=e[n];(o||0===o)&&(t[n]=o)}},t.prototype.styleDocument=function(t){this.styleSubtree(this.g,t)},t.prototype.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||this.j(t))&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},t.prototype.Aa=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&this.za(n)}},t.prototype.B=function(t){for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);n&&fo.m(n,this.h.J)}},t.prototype.u=function(t){var e=this,n=Rt(t);Ft(n,function(t){In?ho.w(t):ho.H(t),Vn&&(e.c(),e.a&&e.a.transformRule(t))}),Vn?t.textContent=kt(n):this.h.D.rules.push(n)},t.prototype.za=function(t){if(Vn&&this.a){var e=Rt(t);this.c(),this.a.transformRules(e),t.textContent=kt(e)}},t.prototype.getComputedStyleValue=function(t,e){var n;return Vn||(n=(l.get(t)||l.get(this.l(t))).J[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.prototype.Da=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var o=t.getAttribute("class");if(o){o=o.split(/\s/);for(var r=0;r<o.length;r++)if(o[r]===ho.a){n=o[r+1];break}}}n&&e.push(ho.a,n),Vn||(n=l.get(t))&&n.A&&e.push(fo.g,n.A),Wt(t,e.join(" "))},t.prototype.Ba=function(t){return l.get(t)},t.prototype.flush=t.prototype.w,t.prototype.prepareTemplate=t.prototype.prepareTemplate,t.prototype.styleElement=t.prototype.styleElement,t.prototype.styleDocument=t.prototype.styleDocument,t.prototype.styleSubtree=t.prototype.styleSubtree,t.prototype.getComputedStyleValue=t.prototype.getComputedStyleValue,t.prototype.setElementClass=t.prototype.Da,t.prototype._styleInfoForNode=t.prototype.Ba,t.prototype.transformCustomStyleForDocument=t.prototype.u,t.prototype.getStyleAst=t.prototype.Ca,t.prototype.styleAstToString=t.prototype.Ea,t.prototype.flushCustomStyles=t.prototype.f,Object.defineProperties(t.prototype,{nativeShadow:{get:function(){return In}},nativeCss:{get:function(){return Vn}}});var Do=new t;if(window.ShadyCSS)var Ao=window.ShadyCSS.ApplyShim,Mo=window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={ScopingShim:Do,prepareTemplate:function(t,e,n){Do.f(),Do.prepareTemplate(t,e,n)},styleSubtree:function(t,e){Do.f(),Do.styleSubtree(t,e)},styleElement:function(t){Do.f(),Do.styleElement(t)},styleDocument:function(t){Do.f(),Do.styleDocument(t)},getComputedStyleValue:function(t,e){return Do.getComputedStyleValue(t,e)},nativeCss:Vn,nativeShadow:In},Ao&&(window.ShadyCSS.ApplyShim=Ao),Mo&&(window.ShadyCSS.CustomStyleInterface=Mo);var Lo=window.document;window.WebComponents=window.WebComponents||{},"loading"!==Lo.readyState?zt():Lo.addEventListener("readystatechange",Jt)}()}.call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output