!function(){"use strict";var e=!1,t=[],n=!1;function o(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}function d(){window.customElements&&customElements.polyfillWrapFlushCallback&&customElements.polyfillWrapFlushCallback(function(e){m=e,n&&m()})}function r(){window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(window.document),e=!0,c().then(o)}function c(){n=!1;var e=t.map(function(e){return e instanceof Function?e():e});return t=[],Promise.all(e).then(function(){n=!0,m&&m()}).catch(function(e){console.error(e)})}window.WebComponents=window.WebComponents||{},window.WebComponents.ready=window.WebComponents.ready||!1,window.WebComponents.waitFor=window.WebComponents.waitFor||function(n){n&&(t.push(n),e&&c())},window.WebComponents._batchCustomElements=d;var i="webcomponents-loader.js",a=[];(!("attachShadow"in Element.prototype&&"getRootNode"in Element.prototype)||window.ShadyDOM&&window.ShadyDOM.force)&&a.push("sd"),(!window.customElements||window.customElements.forcePolyfill)&&a.push("ce");var s=function(){var e=document.createElement("template");if(!("content"in e)||!(e.content.cloneNode()instanceof DocumentFragment))return!0;var t=document.createElement("template");t.content.appendChild(document.createElement("div")),e.content.appendChild(t);var n=e.cloneNode(!0);return 0===n.content.childNodes.length||0===n.content.firstChild.content.childNodes.length}();if(window.Promise&&Array.from&&window.URL&&window.Symbol&&!s||(a=["sd-ce-pf"]),a.length){var l,w,m,u,p=(w={createHTML:l=function(e){return e},createScript:l,createScriptURL:l},window.trustedTypes&&window.trustedTypes.createPolicy("webcomponents-loader",w)||w),b="bundles/webcomponents-"+a.join("-")+".js";if(window.WebComponents.root)u=window.WebComponents.root+b,window.trustedTypes&&window.trustedTypes.isScriptURL(window.WebComponents.root)&&(u=p.createScriptURL(u));else{var f=document.querySelector('script[src*="'+i+'"]');u=p.createScriptURL(f.src.replace(i,b))}var h=document.createElement("script");h.src=u,"loading"===document.readyState?(h.setAttribute("onload",p.createScript("window.WebComponents._batchCustomElements()")),document.write(p.createHTML(h.outerHTML)),document.addEventListener("DOMContentLoaded",r)):(h.addEventListener("load",function(){d(),r()}),h.addEventListener("error",function(){throw Error("Could not load polyfill bundle"+u)}),document.head.appendChild(h))}else"complete"===document.readyState?(e=!0,o()):(window.addEventListener("load",r),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",r),r()}))}();