Use rollup to bundle before passing to closure

Something seems seriously busted with closure's module ordering, where
flag parsing setting polyfill settings happens _after_ the polyfills
have parsed their settings.
This commit is contained in:
Daniel Freedman
2017-02-28 20:31:44 -08:00
parent 05a4781fee
commit f13227f424
11 changed files with 582 additions and 674 deletions

View File

@@ -52,7 +52,7 @@ function closurify(sourceName, fileName) {
fileName = sourceName;
}
const options = {
const closureOptions = {
new_type_inf: true,
compilation_level: 'SIMPLE',
language_in: 'ES6_STRICT',
@@ -60,8 +60,6 @@ function closurify(sourceName, fileName) {
output_wrapper: '(function(){\n%output%\n}).call(self)',
assume_function_wrapper: true,
js_output_file: `${fileName}.js`,
entry_point: `/entrypoints/${sourceName}-index.js`,
dependency_mode: 'STRICT',
warning_level: 'VERBOSE',
rewrite_polyfills: false,
externs: [
@@ -72,21 +70,19 @@ function closurify(sourceName, fileName) {
]
};
const sources = [
'entrypoints/*.js',
'src/*.js',
'bower_components/webcomponents-platform/*.js',
'bower_components/template/*.js',
'bower_components/es6-promise/dist/es6-promise.auto.min.js',
'bower_components/html-imports/src/*.js',
'bower_components/shadydom/src/*.js',
'bower_components/custom-elements/src/**/*.js',
'bower_components/shadycss/{entrypoints,src}/*.js'
];
const rollupOptions = {
entry: `entrypoints/${sourceName}-index.js`,
format: 'iife',
moduleName: 'webcomponents',
sourceMap: true,
context: 'window'
};
return gulp.src(sources)
return rollup(rollupOptions)
.pipe(source(`${sourceName}-index.js`, 'entrypoints'))
.pipe(buffer())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(closure(options))
.pipe(closure(closureOptions))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('.'))
}

View File

@@ -7,59 +7,6 @@
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';(function(a){function b(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var l=document.createEvent("CustomEvent");l.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return l}function f(a){if(u)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!n(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=document.querySelectorAll("link[rel=import]:not(import-dependency)"),
c=b.length;if(c)for(var l=0,e=b.length,f;l<e&&(f=b[l]);l++)r(f,function(){0===--c&&a()});else a()}function c(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",b)}}function e(a){c(function(){return d(function(){return a&&a()})})}function r(a,b){if(a.__loaded)b&&b();else if("script"!==a.localName||a.src){var c=function(e){a.removeEventListener(e.type,
c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);A&&"style"===a.localName||a.addEventListener("error",c)}else a.__loaded=!0,b&&b()}function n(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.documents={};this.inflight=0;this.dynamicImportsMO=new MutationObserver(function(b){return a.handleMutations(b)});c(function(){a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0});a.loadImports(document)})}var u="import"in document.createElement("link"),
x=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return x||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var P=/(^\/)|(^#)|(^[\w-\d]*:)/,Q=/(url\()([^)]*)(\))/g,R=/(@import[\s]+(?!url\())([^;]*)(;)/g,S=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,m={fixUrls:function(a,b){a.href&&a.setAttribute("href",m.replaceAttrUrl(a.getAttribute("href"),b));a.src&&a.setAttribute("src",m.replaceAttrUrl(a.getAttribute("src"),
b));"style"===a.localName&&m.resolveUrlsInStyle(a,b)},fixUrlsInTemplates:function(a,b){a=a.querySelectorAll("template");for(var c=0;c<a.length;c++)m.fixUrlsInTemplate(a[c],b)},fixUrlsInTemplate:function(a,b){a=a.content||a;for(var c=a.querySelectorAll("style, [src], [style]"),e=0;e<c.length;e++){var f=c[e];"style"==f.localName?m.resolveUrlsInStyle(f,b):m.fixUrlAttributes(f,b)}m.fixUrlsInTemplates(a,b)},fixUrlAttributes:function(a,b){for(var c=["src","style"],e=0,f;e<c.length&&(f=c[e]);e++){var d=
a.attributes[f],l=d&&d.value;l&&0>l.search(/({{|\[\[)/)&&(d.value="style"===f?m.resolveUrlsInCssText(l,b):m.replaceAttrUrl(l,b))}},resolveUrlsInStyle:function(a,b){a.textContent=m.resolveUrlsInCssText(a.textContent,b)},resolveUrlsInCssText:function(a,b){a=m.replaceUrls(a,b,Q);return a=m.replaceUrls(a,b,R)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,e,f){a=e.replace(/["']/g,"");b&&(a=m.resolveUrl(a,b));return c+"'"+a+"'"+f})},replaceAttrUrl:function(a,b){return a&&P.test(a)?a:m.resolveUrl(a,
b)},resolveUrl:function(a,b){if(void 0===m.__workingURL){m.__workingURL=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";m.__workingURL="http://a/c%20d"===c.href}catch(da){}}if(m.__workingURL)return(new URL(a,b)).href;c=m.__tempDoc;c||(c=document.implementation.createHTMLDocument("temp"),m.__tempDoc=c,c.__base=c.createElement("base"),c.head.appendChild(c.__base),c.__anchor=c.createElement("a"));c.__base.href=b;c.__anchor.href=a;return c.__anchor.href||a}},H={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=
a.split(",");var e=a[1],e=-1<a[0].indexOf(";base64")?atob(e):decodeURIComponent(e);b(e)}else{var f=new XMLHttpRequest;f.open("GET",a,H.async);f.onload=function(){var a=f.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var e=f.response||f.responseText;304===f.status||0===f.status||200<=f.status&&300>f.status?b(e,a):c(e)};f.send()}else c("error: href must be specified")}},A=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);
k.prototype.loadImports=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b<c;b++)this.loadImport(a[b])};k.prototype.loadImport=function(a){var b=this,c=a.href;if(void 0!==this.documents[c]){var e=this.documents[c];e&&e.__loaded&&(a.import=e,this.fireEventIfNeeded(a))}else this.inflight++,this.documents[c]="pending",H.load(c,function(a,e){a=b.makeDocument(a,e||c);b.documents[c]=a;b.inflight--;b.loadImports(a);b.processImportsIfLoadingDone()},function(){b.documents[c]=null;
b.inflight--;b.processImportsIfLoadingDone()})};k.prototype.makeDocument=function(a,b){if(!a)return document.createDocumentFragment();A&&(a=a.replace(S,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=m.replaceAttrUrl(c.getAttribute("href"),b),c.removeAttribute("href");for(var 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"]'),e=0,f=0,d=c.length,l;f<d&&(l=c[f]);f++)r(l),m.fixUrls(l,b),l.setAttribute("import-dependency",""),"script"===l.localName&&!l.src&&l.textContent&&(l.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(l.textContent+("\n//# sourceURL="+
b+(e?"-"+e:"")+".js\n"))),l.textContent="",e++);m.fixUrlsInTemplates(a,b);return a};k.prototype.processImportsIfLoadingDone=function(){var a=this;if(!this.inflight){this.dynamicImportsMO.disconnect();this.flatten(document);var b=!1,c=!1,e=function(){c&&b&&(a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),a.fireEvents())};this.waitForStyles(function(){c=!0;e()});this.runScripts(function(){b=!0;e()})}};k.prototype.flatten=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=
{},c=0,e=a.length;c<e&&(b.n=a[c]);b={n:b.n},c++){var f=this.documents[b.n.href];(b.n.import=f)&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[b.n.href]=b.n,b.n.readyState="loading",b.n.import=b.n,Object.defineProperty(b.n,"baseURI",{get:function(a){return function(){return a.n.href}}(b),configurable:!0,enumerable:!0}),this.flatten(f),b.n.appendChild(f))}};k.prototype.runScripts=function(a){function b(f){if(f<e){var d=c[f],l=document.createElement("script");d.removeAttribute("import-dependency");
for(var n=0,k=d.attributes.length;n<k;n++)l.setAttribute(d.attributes[n].name,d.attributes[n].value);x=l;d.parentNode.replaceChild(l,d);r(l,function(){x=null;b(f+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),e=c.length;b(0)};k.prototype.waitForStyles=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),c=b.length;if(c)for(var e=A&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]"),
d={},l=0,n=b.length;l<n&&(d.s=b[l]);d={s:d.s},l++){if(r(d.s,function(b){return function(){b.s.removeAttribute("import-dependency");0===--c&&a()}}(d)),e&&d.s.parentNode!==document.head){var k=document.createElement(d.s.localName);k.__appliedElement=d.s;k.setAttribute("type","import-placeholder");d.s.parentNode.insertBefore(k,d.s.nextSibling);for(k=f(d.s);k&&f(k);)k=f(k);k.parentNode!==document.head&&(k=null);document.head.insertBefore(d.s,k);d.s.removeAttribute("type")}}else a()};k.prototype.fireEvents=
function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.fireEventIfNeeded(c)};k.prototype.fireEventIfNeeded=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(b(a.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.handleMutations=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var e=0;e<c.addedNodes.length;e++){var f=c.addedNodes[e];f&&f.nodeType===Node.ELEMENT_NODE&&
(n(f)?this.loadImport(f):this.loadImports(f))}}};if(u){for(var v=document.querySelectorAll("link[rel=import]"),B=0,T=v.length,y;B<T&&(y=v[B]);B++)y.import&&"loading"===y.import.readyState||(y.__loaded=!0);v=function(a){a=a.target;n(a)&&(a.__loaded=!0)};document.addEventListener("load",v,!0);document.addEventListener("error",v,!0)}else new k;e(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=u;a.whenReady=e;a.importForElement=f})(window.HTMLImports=
window.HTMLImports||{});var g={},h=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function p(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function q(a,b,f){f=void 0===f?new Set:f;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var c=d;b(c);var e=c.localName;if("link"===e&&"import"===c.getAttribute("rel")){d=c.import;if(d instanceof Node&&!f.has(d))for(f.add(d),d=d.firstChild;d;d=d.nextSibling)q(d,b,f);d=p(a,c);continue}else if("template"===e){d=p(a,c);continue}if(c=c.__CE_shadowRoot)for(c=c.firstChild;c;c=c.nextSibling)q(c,b,f)}d=d.firstChild?d.firstChild:p(a,d)}}
g.isValidCustomElementName=function(a){var b=h.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a};g.isConnected=function(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))};g.walkDeepDescendantElements=q;g.setPropertyUnchecked=function(a,b,f){a[b]=f};var t={default:{custom:1,failed:2}};var w={};function z(){this._localNameToDefinition=new Map;this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}z.prototype.setDefinition=function(a,b){this._localNameToDefinition.set(a,b);this._constructorToDefinition.set(b.constructor,b)};z.prototype.localNameToDefinition=function(a){return this._localNameToDefinition.get(a)};z.prototype.constructorToDefinition=function(a){return this._constructorToDefinition.get(a)};z.prototype.addPatch=function(a){this._hasPatches=!0;this._patches.push(a)};
z.prototype.patchTree=function(a){var b=this;this._hasPatches&&g.walkDeepDescendantElements(a,function(a){return b.patch(a)})};z.prototype.patch=function(a){if(this._hasPatches&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this._patches.length;b++)this._patches[b](a)}};z.prototype.connectTree=function(a){var b=[];g.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var f=b[a];f.__CE_state===t.default.custom?this.connectedCallback(f):this.upgradeElement(f)}};
z.prototype.disconnectTree=function(a){var b=[];g.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var f=b[a];f.__CE_state===t.default.custom&&this.disconnectedCallback(f)}};
z.prototype.patchAndUpgradeTree=function(a,b){b=void 0===b?new Set:b;var f=this,d=[];g.walkDeepDescendantElements(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var c=a.import;c instanceof Node&&"complete"===c.readyState?(c.__CE_isImportDocument=!0,c.__CE_hasRegistry=!0):a.addEventListener("load",function(){var c=a.import;c.__CE_documentLoadHandled||(c.__CE_documentLoadHandled=!0,c.__CE_isImportDocument=!0,c.__CE_hasRegistry=!0,new Set(b),b.delete(c),f.patchAndUpgradeTree(c,
b))})}else d.push(a)},b);if(this._hasPatches)for(a=0;a<d.length;a++)this.patch(d[a]);for(a=0;a<d.length;a++)this.upgradeElement(d[a])};
z.prototype.upgradeElement=function(a){if(void 0===a.__CE_state){var b=this.localNameToDefinition(a.localName);if(b){b.constructionStack.push(a);var f=b.constructor;try{try{if(new f!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(e){throw a.__CE_state=t.default.failed,e;}a.__CE_state=t.default.custom;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,f=0;f<b.length;f++){var d=b[f],c=a.getAttribute(d);
null!==c&&this.attributeChangedCallback(a,d,null,c,null)}g.isConnected(a)&&this.connectedCallback(a)}}};z.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};z.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
z.prototype.attributeChangedCallback=function(a,b,f,d,c){var e=a.__CE_definition;e.attributeChangedCallback&&-1<e.observedAttributes.indexOf(b)&&e.attributeChangedCallback.call(a,b,f,d,c)};w.default=z;var C={};function D(a,b){this._internals=a;this._document=b;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}D.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};
D.prototype._handleMutations=function(a){var b=this._document.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var f=a[b].addedNodes,d=0;d<f.length;d++)this._internals.patchAndUpgradeTree(f[d])};C.default=D;var E={};function F(){var a=this;this._resolve=this._value=void 0;this._promise=new Promise(function(b){a._resolve=b;a._value&&b(a._value)})}F.prototype.resolve=function(a){if(this._value)throw Error("Already resolved.");this._value=a;this._resolve&&this._resolve(a)};F.prototype.toPromise=function(){return this._promise};E.default=F;var G={};function I(a){this._elementDefinitionIsRunning=!1;this._internals=a;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=!1;this._unflushedLocalNames=[];this._documentConstructionObserver=new C.default(a,document)}
I.prototype.define=function(a,b){var f=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!g.isValidCustomElementName(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this._internals.localNameToDefinition(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var d,c,e,r,
n;try{var k=function(a){var b=u[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},u=b.prototype;if(!(u instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");d=k("connectedCallback");c=k("disconnectedCallback");e=k("adoptedCallback");r=k("attributeChangedCallback");n=b.observedAttributes||[]}catch(x){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(a,{localName:a,
constructor:b,connectedCallback:d,disconnectedCallback:c,adoptedCallback:e,attributeChangedCallback:r,observedAttributes:n,constructionStack:[]});this._unflushedLocalNames.push(a);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return f._flush()}))};
I.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var a=this._unflushedLocalNames.shift();(a=this._whenDefinedDeferred.get(a))&&a.resolve(void 0)}};I.prototype.get=function(a){if(a=this._internals.localNameToDefinition(a))return a.constructor};
I.prototype.whenDefined=function(a){if(!g.isValidCustomElementName(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this._whenDefinedDeferred.get(a);if(b)return b.toPromise();b=new E.default;this._whenDefinedDeferred.set(a,b);this._internals.localNameToDefinition(a)&&-1===this._unflushedLocalNames.indexOf(a)&&b.resolve(void 0);return b.toPromise()};
I.prototype.polyfillWrapFlushCallback=function(a){this._documentConstructionObserver.disconnect();var b=this._flushCallback;this._flushCallback=function(f){return a(function(){return b(f)})}};window.CustomElementRegistry=I;I.prototype.define=I.prototype.define;I.prototype.get=I.prototype.get;I.prototype.whenDefined=I.prototype.whenDefined;I.prototype.polyfillWrapFlushCallback=I.prototype.polyfillWrapFlushCallback;G.default=I;var J={},K={Document_createElement:window.Document.prototype.createElement,Document_createElementNS:window.Document.prototype.createElementNS,Document_importNode:window.Document.prototype.importNode,Document_prepend:window.Document.prototype.prepend,Document_append:window.Document.prototype.append,Node_cloneNode:window.Node.prototype.cloneNode,Node_appendChild:window.Node.prototype.appendChild,Node_insertBefore:window.Node.prototype.insertBefore,Node_removeChild:window.Node.prototype.removeChild,
Node_replaceChild:window.Node.prototype.replaceChild,Node_textContent:Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Element_attachShadow:window.Element.prototype.attachShadow,Element_innerHTML:Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Element_getAttribute:window.Element.prototype.getAttribute,Element_setAttribute:window.Element.prototype.setAttribute,Element_removeAttribute:window.Element.prototype.removeAttribute,Element_getAttributeNS:window.Element.prototype.getAttributeNS,
Element_setAttributeNS:window.Element.prototype.setAttributeNS,Element_removeAttributeNS:window.Element.prototype.removeAttributeNS,Element_insertAdjacentElement:window.Element.prototype.insertAdjacentElement,Element_prepend:window.Element.prototype.prepend,Element_append:window.Element.prototype.append,Element_before:window.Element.prototype.before,Element_after:window.Element.prototype.after,Element_replaceWith:window.Element.prototype.replaceWith,Element_remove:window.Element.prototype.remove,
HTMLElement:window.HTMLElement,HTMLElement_innerHTML:Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),HTMLElement_insertAdjacentElement:window.HTMLElement.prototype.insertAdjacentElement};J.default=K;var L={},M=new function(){};L.default=M;var N={default:function(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.constructorToDefinition(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var c=d.constructionStack;if(0===c.length)return c=J.default.Document_createElement.call(document,d.localName),Object.setPrototypeOf(c,b.prototype),c.__CE_state=t.default.custom,c.__CE_definition=d,a.patch(c),c;var d=c.length-1,e=c[d];if(e===L.default)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
c[d]=L.default;Object.setPrototypeOf(e,b.prototype);a.patch(e);return e}b.prototype=J.default.HTMLElement.prototype;return b}()}};var O={default:function(a,b,f){b.prepend=function(b){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=c.filter(function(a){return a instanceof Node&&g.isConnected(a)});f.prepend.apply(this,c);for(var d=0;d<e.length;d++)a.disconnectTree(e[d]);if(g.isConnected(this))for(e=0;e<c.length;e++)d=c[e],d instanceof Element&&a.connectTree(d)};b.append=function(b){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=c.filter(function(a){return a instanceof Node&&g.isConnected(a)});f.append.apply(this,
c);for(var d=0;d<e.length;d++)a.disconnectTree(e[d]);if(g.isConnected(this))for(e=0;e<c.length;e++)d=c[e],d instanceof Element&&a.connectTree(d)}}};var U={default:function(a){g.setPropertyUnchecked(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var f=a.localNameToDefinition(b);if(f)return new f.constructor}b=J.default.Document_createElement.call(this,b);a.patch(b);return b});g.setPropertyUnchecked(Document.prototype,"importNode",function(b,f){b=J.default.Document_importNode.call(this,b,f);this.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});g.setPropertyUnchecked(Document.prototype,"createElementNS",
function(b,f){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.localNameToDefinition(f);if(d)return new d.constructor}b=J.default.Document_createElementNS.call(this,b,f);a.patch(b);return b});O.default(a,Document.prototype,{prepend:J.default.Document_prepend,append:J.default.Document_append})}};var V={default:function(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var f=this.childNodes,n=f.length;if(0<n&&g.isConnected(this))for(var c=Array(n),k=0;k<n;k++)c[k]=f[k]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.disconnectTree(c[b])}}})}g.setPropertyUnchecked(Node.prototype,"insertBefore",function(b,d){if(b instanceof DocumentFragment){var c=
Array.prototype.slice.apply(b.childNodes);b=J.default.Node_insertBefore.call(this,b,d);if(g.isConnected(this))for(d=0;d<c.length;d++)a.connectTree(c[d]);return b}c=g.isConnected(b);d=J.default.Node_insertBefore.call(this,b,d);c&&a.disconnectTree(b);g.isConnected(this)&&a.connectTree(b);return d});g.setPropertyUnchecked(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var d=Array.prototype.slice.apply(b.childNodes);b=J.default.Node_appendChild.call(this,b);if(g.isConnected(this))for(var c=
0;c<d.length;c++)a.connectTree(d[c]);return b}d=g.isConnected(b);c=J.default.Node_appendChild.call(this,b);d&&a.disconnectTree(b);g.isConnected(this)&&a.connectTree(b);return c});g.setPropertyUnchecked(Node.prototype,"cloneNode",function(b){b=J.default.Node_cloneNode.call(this,b);this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});g.setPropertyUnchecked(Node.prototype,"removeChild",function(b){var d=g.isConnected(b),c=J.default.Node_removeChild.call(this,b);d&&a.disconnectTree(b);
return c});g.setPropertyUnchecked(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=J.default.Node_replaceChild.call(this,b,d);if(g.isConnected(this))for(a.disconnectTree(d),d=0;d<c.length;d++)a.connectTree(c[d]);return b}var c=g.isConnected(b),e=J.default.Node_replaceChild.call(this,b,d),f=g.isConnected(this);f&&a.disconnectTree(d);c&&a.disconnectTree(b);f&&a.connectTree(b);return e});J.default.Node_textContent&&J.default.Node_textContent.get?
b(Node.prototype,J.default.Node_textContent):a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)J.default.Node_removeChild.call(this,this.firstChild);J.default.Node_appendChild.call(this,document.createTextNode(a))}})})}};var aa={default:function(a,b,f){b.before=function(b){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=c.filter(function(a){return a instanceof Node&&g.isConnected(a)});f.before.apply(this,c);for(var d=0;d<e.length;d++)a.disconnectTree(e[d]);if(g.isConnected(this))for(e=0;e<c.length;e++)d=c[e],d instanceof Element&&a.connectTree(d)};b.after=function(b){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=c.filter(function(a){return a instanceof Node&&g.isConnected(a)});f.after.apply(this,
c);for(var d=0;d<e.length;d++)a.disconnectTree(e[d]);if(g.isConnected(this))for(e=0;e<c.length;e++)d=c[e],d instanceof Element&&a.connectTree(d)};b.replaceWith=function(b){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];var e=c.filter(function(a){return a instanceof Node&&g.isConnected(a)}),d=g.isConnected(this);f.replaceWith.apply(this,c);for(var n=0;n<e.length;n++)a.disconnectTree(e[n]);if(d)for(a.disconnectTree(this),e=0;e<c.length;e++)d=c[e],d instanceof Element&&a.connectTree(d)};
b.remove=function(){var b=g.isConnected(this);f.remove.call(this);b&&a.disconnectTree(this)}}};var ba={default:function(a){function b(b,e){Object.defineProperty(b,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(b){var c=this,d=void 0;g.isConnected(this)&&(d=[],g.walkDeepDescendantElements(this,function(a){a!==c&&d.push(a)}));e.set.call(this,b);if(d)for(var f=0;f<d.length;f++){var r=d[f];r.__CE_state===t.default.custom&&a.disconnectedCallback(r)}this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(this):a.patchTree(this);return b}})}function f(b,d){g.setPropertyUnchecked(b,
"insertAdjacentElement",function(b,c){var e=g.isConnected(c);b=d.call(this,b,c);e&&a.disconnectTree(c);g.isConnected(b)&&a.connectTree(c);return b})}J.default.Element_attachShadow?g.setPropertyUnchecked(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=J.default.Element_attachShadow.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(J.default.Element_innerHTML&&J.default.Element_innerHTML.get)b(Element.prototype,J.default.Element_innerHTML);
else if(J.default.HTMLElement_innerHTML&&J.default.HTMLElement_innerHTML.get)b(HTMLElement.prototype,J.default.HTMLElement_innerHTML);else{var d=J.default.Document_createElement.call(document,"div");a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return J.default.Node_cloneNode.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)J.default.Node_removeChild.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)J.default.Node_appendChild.call(b,
d.childNodes[0])}})})}g.setPropertyUnchecked(Element.prototype,"setAttribute",function(b,d){if(this.__CE_state!==t.default.custom)return J.default.Element_setAttribute.call(this,b,d);var c=J.default.Element_getAttribute.call(this,b);J.default.Element_setAttribute.call(this,b,d);d=J.default.Element_getAttribute.call(this,b);c!==d&&a.attributeChangedCallback(this,b,c,d,null)});g.setPropertyUnchecked(Element.prototype,"setAttributeNS",function(b,d,f){if(this.__CE_state!==t.default.custom)return J.default.Element_setAttributeNS.call(this,
b,d,f);var c=J.default.Element_getAttributeNS.call(this,b,d);J.default.Element_setAttributeNS.call(this,b,d,f);f=J.default.Element_getAttributeNS.call(this,b,d);c!==f&&a.attributeChangedCallback(this,d,c,f,b)});g.setPropertyUnchecked(Element.prototype,"removeAttribute",function(b){if(this.__CE_state!==t.default.custom)return J.default.Element_removeAttribute.call(this,b);var c=J.default.Element_getAttribute.call(this,b);J.default.Element_removeAttribute.call(this,b);null!==c&&a.attributeChangedCallback(this,
b,c,null,null)});g.setPropertyUnchecked(Element.prototype,"removeAttributeNS",function(b,d){if(this.__CE_state!==t.default.custom)return J.default.Element_removeAttributeNS.call(this,b,d);var c=J.default.Element_getAttributeNS.call(this,b,d);J.default.Element_removeAttributeNS.call(this,b,d);var e=J.default.Element_getAttributeNS.call(this,b,d);c!==e&&a.attributeChangedCallback(this,d,c,e,b)});J.default.HTMLElement_insertAdjacentElement?f(HTMLElement.prototype,J.default.HTMLElement_insertAdjacentElement):
J.default.Element_insertAdjacentElement?f(Element.prototype,J.default.Element_insertAdjacentElement):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");O.default(a,Element.prototype,{prepend:J.default.Element_prepend,append:J.default.Element_append});aa.default(a,Element.prototype,{before:J.default.Element_before,after:J.default.Element_after,replaceWith:J.default.Element_replaceWith,remove:J.default.Element_remove})}};var W=window.customElements;if(!W||W.forcePolyfill||"function"!=typeof W.define||"function"!=typeof W.get){var X=new w.default;N.default(X);U.default(X);V.default(X);ba.default(X);document.__CE_hasRegistry=!0;var ca=new G.default(X);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ca})};/*
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -67,8 +14,6 @@ J.default.Element_insertAdjacentElement?f(Element.prototype,J.default.Element_in
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){if(customElements&&customElements.polyfillWrapFlushCallback){var a=function(){if(b){var a=b;b=null;a();return!0}},b,f=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(d){b=d;f(a)});HTMLImports.whenReady=function(b){f(function(){a()?HTMLImports.whenReady(b):b()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);var Y=document.createElement("style");Y.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Z=document.querySelector("head");Z.insertBefore(Y,Z.firstChild);/*
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -77,7 +22,56 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';(function(){function V(b){function a(a,e){Object.defineProperty(a,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(a){var f=this,d=void 0;h(this)&&(d=[],t(this,function(b){b!==f&&d.push(b)}));e.set.call(this,a);if(d)for(var c=0;c<d.length;c++){var g=d[c];1===g.__CE_state&&b.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?b.patchAndUpgradeTree(this):b.patchTree(this);return a}})}function d(a,e){p(a,"insertAdjacentElement",function(a,f){var d=h(f);
a=e.call(this,a,f);d&&b.disconnectTree(f);h(a)&&b.connectTree(f);return a})}I?p(Element.prototype,"attachShadow",function(b){return this.__CE_shadowRoot=b=I.call(this,b)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(v&&v.get)a(Element.prototype,v);else if(w&&w.get)a(HTMLElement.prototype,w);else{var c=z.call(document,"div");b.addPatch(function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return J.call(this,!0).innerHTML},set:function(b){var a="template"===this.localName?
this.content:this;for(c.innerHTML=b;0<a.childNodes.length;)C.call(a,a.childNodes[0]);for(;0<c.childNodes.length;)y.call(a,c.childNodes[0])}})})}p(Element.prototype,"setAttribute",function(a,e){if(1!==this.__CE_state)return K.call(this,a,e);var f=D.call(this,a);K.call(this,a,e);e=D.call(this,a);f!==e&&b.attributeChangedCallback(this,a,f,e,null)});p(Element.prototype,"setAttributeNS",function(a,e,d){if(1!==this.__CE_state)return L.call(this,a,e,d);var f=x.call(this,a,e);L.call(this,a,e,d);d=x.call(this,
a,e);f!==d&&b.attributeChangedCallback(this,e,f,d,a)});p(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return M.call(this,a);var d=D.call(this,a);M.call(this,a);null!==d&&b.attributeChangedCallback(this,a,d,null,null)});p(Element.prototype,"removeAttributeNS",function(a,d){if(1!==this.__CE_state)return N.call(this,a,d);var f=x.call(this,a,d);N.call(this,a,d);var c=x.call(this,a,d);f!==c&&b.attributeChangedCallback(this,d,f,c,a)});O?d(HTMLElement.prototype,O):P?d(Element.prototype,
P):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");Q(b,Element.prototype,{prepend:W,append:X});Y(b,Element.prototype,{before:Z,after:aa,replaceWith:ba,remove:ca})}function Y(b,a,d){a.before=function(a){for(var f=[],c=0;c<arguments.length;++c)f[c-0]=arguments[c];c=f.filter(function(b){return b instanceof Node&&h(b)});d.before.apply(this,f);for(var g=0;g<c.length;g++)b.disconnectTree(c[g]);if(h(this))for(c=0;c<f.length;c++)g=f[c],g instanceof Element&&b.connectTree(g)};
a.after=function(a){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=c.filter(function(b){return b instanceof Node&&h(b)});d.after.apply(this,c);for(var g=0;g<e.length;g++)b.disconnectTree(e[g]);if(h(this))for(e=0;e<c.length;e++)g=c[e],g instanceof Element&&b.connectTree(g)};a.replaceWith=function(a){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];var e=c.filter(function(b){return b instanceof Node&&h(b)}),g=h(this);d.replaceWith.apply(this,c);for(var u=0;u<e.length;u++)b.disconnectTree(e[u]);
if(g)for(b.disconnectTree(this),e=0;e<c.length;e++)g=c[e],g instanceof Element&&b.connectTree(g)};a.remove=function(){var a=h(this);d.remove.call(this);a&&b.disconnectTree(this)}}function da(b){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else{var d=void 0;if(this.firstChild){var f=this.childNodes,u=f.length;if(0<u&&h(this))for(var d=Array(u),n=0;n<u;n++)d[n]=f[n]}c.set.call(this,
a);if(d)for(a=0;a<d.length;a++)b.disconnectTree(d[a])}}})}p(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var d=Array.prototype.slice.apply(a.childNodes);a=R.call(this,a,c);if(h(this))for(c=0;c<d.length;c++)b.connectTree(d[c]);return a}d=h(a);c=R.call(this,a,c);d&&b.disconnectTree(a);h(this)&&b.connectTree(a);return c});p(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=y.call(this,a);if(h(this))for(var d=
0;d<c.length;d++)b.connectTree(c[d]);return a}c=h(a);d=y.call(this,a);c&&b.disconnectTree(a);h(this)&&b.connectTree(a);return d});p(Node.prototype,"cloneNode",function(a){a=J.call(this,a);this.ownerDocument.__CE_hasRegistry?b.patchAndUpgradeTree(a):b.patchTree(a);return a});p(Node.prototype,"removeChild",function(a){var c=h(a),d=C.call(this,a);c&&b.disconnectTree(a);return d});p(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var d=Array.prototype.slice.apply(a.childNodes);
a=S.call(this,a,c);if(h(this))for(b.disconnectTree(c),c=0;c<d.length;c++)b.connectTree(d[c]);return a}var d=h(a),e=S.call(this,a,c),g=h(this);g&&b.disconnectTree(c);d&&b.disconnectTree(a);g&&b.connectTree(a);return e});E&&E.get?a(Node.prototype,E):b.addPatch(function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)C.call(this,this.firstChild);y.call(this,
document.createTextNode(a))}})})}function ea(b){p(Document.prototype,"createElement",function(a){if(this.__CE_hasRegistry){var d=b.localNameToDefinition(a);if(d)return new d.constructor}a=z.call(this,a);b.patch(a);return a});p(Document.prototype,"importNode",function(a,d){a=fa.call(this,a,d);this.__CE_hasRegistry?b.patchAndUpgradeTree(a):b.patchTree(a);return a});p(Document.prototype,"createElementNS",function(a,d){if(this.__CE_hasRegistry&&(null===a||"http://www.w3.org/1999/xhtml"===a)){var c=b.localNameToDefinition(d);
if(c)return new c.constructor}a=ga.call(this,a,d);b.patch(a);return a});Q(b,Document.prototype,{prepend:ha,append:ia})}function Q(b,a,d){a.prepend=function(a){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=c.filter(function(a){return a instanceof Node&&h(a)});d.prepend.apply(this,c);for(var g=0;g<e.length;g++)b.disconnectTree(e[g]);if(h(this))for(e=0;e<c.length;e++)g=c[e],g instanceof Element&&b.connectTree(g)};a.append=function(a){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];
e=c.filter(function(a){return a instanceof Node&&h(a)});d.append.apply(this,c);for(var g=0;g<e.length;g++)b.disconnectTree(e[g]);if(h(this))for(e=0;e<c.length;e++)g=c[e],g instanceof Element&&b.connectTree(g)}}function ja(b){window.HTMLElement=function(){function a(){var a=this.constructor,c=b.constructorToDefinition(a);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var f=c.constructionStack;if(0===f.length)return f=z.call(document,c.localName),
Object.setPrototypeOf(f,a.prototype),f.__CE_state=1,f.__CE_definition=c,b.patch(f),f;var c=f.length-1,e=f[c];if(e===T)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");f[c]=T;Object.setPrototypeOf(e,a.prototype);b.patch(e);return e}a.prototype=ka.prototype;return a}()}function m(b){this._elementDefinitionIsRunning=!1;this._internals=b;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=
!1;this._unflushedLocalNames=[];this._documentConstructionObserver=new F(b,document)}function G(){var b=this;this._resolve=this._value=void 0;this._promise=new Promise(function(a){b._resolve=a;b._value&&a(b._value)})}function F(b,a){this._internals=b;this._document=a;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,
subtree:!0}))}function q(){this._localNameToDefinition=new Map;this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}function U(b){var a=la.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}function h(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&&b instanceof ShadowRoot?b.host:void 0);return!(!b||!(b.__CE_isImportDocument||b instanceof Document))}function H(b,a){for(;a&&
a!==b&&!a.nextSibling;)a=a.parentNode;return a&&a!==b?a.nextSibling:null}function t(b,a,d){d=void 0===d?new Set:d;for(var c=b;c;){if(c.nodeType===Node.ELEMENT_NODE){var f=c;a(f);var e=f.localName;if("link"===e&&"import"===f.getAttribute("rel")){c=f.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)t(c,a,d);c=H(b,f);continue}else if("template"===e){c=H(b,f);continue}if(f=f.__CE_shadowRoot)for(f=f.firstChild;f;f=f.nextSibling)t(f,a,d)}c=c.firstChild?c.firstChild:H(b,
c)}}function p(b,a,d){b[a]=d}(function(b){function a(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function d(a){if(m)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!h(b)&&(b=b.parentNode););a.__importDoc=b}return b}function c(a){var b=
document.querySelectorAll("link[rel=import]:not(import-dependency)"),c=b.length;if(c)for(var l=0,d=b.length,e;l<d&&(e=b[l]);l++)g(e,function(){0===--c&&a()});else a()}function f(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",b)}}function e(a){f(function(){return c(function(){return a&&a()})})}function g(a,b){if(a.__loaded)b&&b();else if("script"!==
a.localName||a.src){var c=function(l){a.removeEventListener(l.type,c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);v&&"style"===a.localName||a.addEventListener("error",c)}else a.__loaded=!0,b&&b()}function h(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function n(){var a=this;this.documents={};this.inflight=0;this.dynamicImportsMO=new MutationObserver(function(b){return a.handleMutations(b)});f(function(){a.dynamicImportsMO.observe(document.head,{childList:!0,
subtree:!0});a.loadImports(document)})}var m="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 q=/(^\/)|(^#)|(^[\w-\d]*:)/,r=/(url\()([^)]*)(\))/g,t=/(@import[\s]+(?!url\())([^;]*)(;)/g,y=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,k={fixUrls:function(a,b){a.href&&a.setAttribute("href",
k.replaceAttrUrl(a.getAttribute("href"),b));a.src&&a.setAttribute("src",k.replaceAttrUrl(a.getAttribute("src"),b));"style"===a.localName&&k.resolveUrlsInStyle(a,b)},fixUrlsInTemplates:function(a,b){a=a.querySelectorAll("template");for(var c=0;c<a.length;c++)k.fixUrlsInTemplate(a[c],b)},fixUrlsInTemplate:function(a,b){a=a.content||a;for(var c=a.querySelectorAll("style, [src], [style]"),d=0;d<c.length;d++){var e=c[d];"style"==e.localName?k.resolveUrlsInStyle(e,b):k.fixUrlAttributes(e,b)}k.fixUrlsInTemplates(a,
b)},fixUrlAttributes:function(a,b){for(var c=["src","style"],d=0,e;d<c.length&&(e=c[d]);d++){var l=a.attributes[e],f=l&&l.value;f&&0>f.search(/({{|\[\[)/)&&(l.value="style"===e?k.resolveUrlsInCssText(f,b):k.replaceAttrUrl(f,b))}},resolveUrlsInStyle:function(a,b){a.textContent=k.resolveUrlsInCssText(a.textContent,b)},resolveUrlsInCssText:function(a,b){a=k.replaceUrls(a,b,r);return a=k.replaceUrls(a,b,t)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=
k.resolveUrl(a,b));return c+"'"+a+"'"+e})},replaceAttrUrl:function(a,b){return a&&q.test(a)?a:k.resolveUrl(a,b)},resolveUrl:function(a,b){if(void 0===k.__workingURL){k.__workingURL=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";k.__workingURL="http://a/c%20d"===c.href}catch(na){}}if(k.__workingURL)return(new URL(a,b)).href;c=k.__tempDoc;c||(c=document.implementation.createHTMLDocument("temp"),k.__tempDoc=c,c.__base=c.createElement("base"),c.head.appendChild(c.__base),c.__anchor=c.createElement("a"));
c.__base.href=b;c.__anchor.href=a;return c.__anchor.href||a}},x={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1],d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,x.async);e.onload=function(){var a=e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||200<=e.status&&300>e.status?b(d,
a):c(d)};e.send()}else c("error: href must be specified")}},v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);n.prototype.loadImports=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b<c;b++)this.loadImport(a[b])};n.prototype.loadImport=function(a){var b=this,c=a.href;if(void 0!==this.documents[c]){var d=this.documents[c];d&&d.__loaded&&(a.import=d,this.fireEventIfNeeded(a))}else this.inflight++,this.documents[c]="pending",x.load(c,function(a,
d){a=b.makeDocument(a,d||c);b.documents[c]=a;b.inflight--;b.loadImports(a);b.processImportsIfLoadingDone()},function(){b.documents[c]=null;b.inflight--;b.processImportsIfLoadingDone()})};n.prototype.makeDocument=function(a,b){if(!a)return document.createDocumentFragment();v&&(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=k.replaceAttrUrl(c.getAttribute("href"),b),c.removeAttribute("href");for(var 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"]'),d=0,e=0,f=c.length,l;e<f&&(l=c[e]);e++)g(l),k.fixUrls(l,b),l.setAttribute("import-dependency",""),"script"===l.localName&&!l.src&&l.textContent&&
(l.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(l.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n"))),l.textContent="",d++);k.fixUrlsInTemplates(a,b);return a};n.prototype.processImportsIfLoadingDone=function(){var a=this;if(!this.inflight){this.dynamicImportsMO.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),a.fireEvents())};this.waitForStyles(function(){c=!0;d()});this.runScripts(function(){b=
!0;d()})}};n.prototype.flatten=function(a){a=a.querySelectorAll("link[rel=import]");for(var b={},c=0,d=a.length;c<d&&(b.n=a[c]);b={n:b.n},c++){var e=this.documents[b.n.href];(b.n.import=e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[b.n.href]=b.n,b.n.readyState="loading",b.n.import=b.n,Object.defineProperty(b.n,"baseURI",{get:function(a){return function(){return a.n.href}}(b),configurable:!0,enumerable:!0}),this.flatten(e),b.n.appendChild(e))}};n.prototype.runScripts=function(a){function b(e){if(e<
d){var f=c[e],l=document.createElement("script");f.removeAttribute("import-dependency");for(var h=0,k=f.attributes.length;h<k;h++)l.setAttribute(f.attributes[h].name,f.attributes[h].value);p=l;f.parentNode.replaceChild(l,f);g(l,function(){p=null;b(e+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};n.prototype.waitForStyles=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),c=b.length;if(c)for(var e=
v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]"),f={},l=0,h=b.length;l<h&&(f.s=b[l]);f={s:f.s},l++){if(g(f.s,function(b){return function(){b.s.removeAttribute("import-dependency");0===--c&&a()}}(f)),e&&f.s.parentNode!==document.head){var k=document.createElement(f.s.localName);k.__appliedElement=f.s;k.setAttribute("type","import-placeholder");f.s.parentNode.insertBefore(k,f.s.nextSibling);for(k=d(f.s);k&&d(k);)k=d(k);k.parentNode!==document.head&&(k=null);document.head.insertBefore(f.s,
k);f.s.removeAttribute("type")}}else a()};n.prototype.fireEvents=function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.fireEventIfNeeded(c)};n.prototype.fireEventIfNeeded=function(b){b.__loaded||(b.__loaded=!0,b.import&&(b.import.readyState="complete"),b.dispatchEvent(a(b.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};n.prototype.handleMutations=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var d=0;d<
c.addedNodes.length;d++){var e=c.addedNodes[d];e&&e.nodeType===Node.ELEMENT_NODE&&(h(e)?this.loadImport(e):this.loadImports(e))}}};if(m){for(var A=document.querySelectorAll("link[rel=import]"),w=0,z=A.length,B;w<z&&(B=A[w]);w++)B.import&&"loading"===B.import.readyState||(B.__loaded=!0);A=function(a){a=a.target;h(a)&&(a.__loaded=!0)};document.addEventListener("load",A,!0);document.addEventListener("error",A,!0)}else new n;e(function(){return document.dispatchEvent(a("HTMLImportsLoaded",{cancelable:!0,
bubbles:!0,detail:void 0}))});b.useNative=m;b.whenReady=e;b.importForElement=d})(window.HTMLImports=window.HTMLImports||{});var la=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));q.prototype.setDefinition=function(b,a){this._localNameToDefinition.set(b,a);this._constructorToDefinition.set(a.constructor,a)};q.prototype.localNameToDefinition=function(b){return this._localNameToDefinition.get(b)};q.prototype.constructorToDefinition=
function(b){return this._constructorToDefinition.get(b)};q.prototype.addPatch=function(b){this._hasPatches=!0;this._patches.push(b)};q.prototype.patchTree=function(b){var a=this;this._hasPatches&&t(b,function(b){return a.patch(b)})};q.prototype.patch=function(b){if(this._hasPatches&&!b.__CE_patched){b.__CE_patched=!0;for(var a=0;a<this._patches.length;a++)this._patches[a](b)}};q.prototype.connectTree=function(b){var a=[];t(b,function(b){return a.push(b)});for(b=0;b<a.length;b++){var d=a[b];1===d.__CE_state?
this.connectedCallback(d):this.upgradeElement(d)}};q.prototype.disconnectTree=function(b){var a=[];t(b,function(b){return a.push(b)});for(b=0;b<a.length;b++){var d=a[b];1===d.__CE_state&&this.disconnectedCallback(d)}};q.prototype.patchAndUpgradeTree=function(b,a){a=void 0===a?new Set:a;var d=this,c=[];t(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var e=b.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):b.addEventListener("load",
function(){var c=b.import;c.__CE_documentLoadHandled||(c.__CE_documentLoadHandled=!0,c.__CE_isImportDocument=!0,c.__CE_hasRegistry=!0,new Set(a),a.delete(c),d.patchAndUpgradeTree(c,a))})}else c.push(b)},a);if(this._hasPatches)for(b=0;b<c.length;b++)this.patch(c[b]);for(b=0;b<c.length;b++)this.upgradeElement(c[b])};q.prototype.upgradeElement=function(b){if(void 0===b.__CE_state){var a=this.localNameToDefinition(b.localName);if(a){a.constructionStack.push(b);var d=a.constructor;try{try{if(new d!==b)throw Error("The custom element constructor did not produce the element being upgraded.");
}finally{a.constructionStack.pop()}}catch(e){throw b.__CE_state=2,e;}b.__CE_state=1;b.__CE_definition=a;if(a.attributeChangedCallback)for(a=a.observedAttributes,d=0;d<a.length;d++){var c=a[d],f=b.getAttribute(c);null!==f&&this.attributeChangedCallback(b,c,null,f,null)}h(b)&&this.connectedCallback(b)}}};q.prototype.connectedCallback=function(b){var a=b.__CE_definition;a.connectedCallback&&a.connectedCallback.call(b)};q.prototype.disconnectedCallback=function(b){var a=b.__CE_definition;a.disconnectedCallback&&
a.disconnectedCallback.call(b)};q.prototype.attributeChangedCallback=function(b,a,d,c,f){var e=b.__CE_definition;e.attributeChangedCallback&&-1<e.observedAttributes.indexOf(a)&&e.attributeChangedCallback.call(b,a,d,c,f)};F.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};F.prototype._handleMutations=function(b){var a=this._document.readyState;"interactive"!==a&&"complete"!==a||this.disconnect();for(a=0;a<b.length;a++)for(var d=b[a].addedNodes,c=0;c<d.length;c++)this._internals.patchAndUpgradeTree(d[c])};
G.prototype.resolve=function(b){if(this._value)throw Error("Already resolved.");this._value=b;this._resolve&&this._resolve(b)};G.prototype.toPromise=function(){return this._promise};m.prototype.define=function(b,a){var d=this;if(!(a instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!U(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(this._internals.localNameToDefinition(b))throw Error("A custom element with name '"+b+"' has already been defined.");
if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var c,f,e,g,h;try{var n=function(a){var b=m[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},m=a.prototype;if(!(m instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");c=n("connectedCallback");f=n("disconnectedCallback");e=n("adoptedCallback");g=n("attributeChangedCallback");
h=a.observedAttributes||[]}catch(ma){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(b,{localName:b,constructor:a,connectedCallback:c,disconnectedCallback:f,adoptedCallback:e,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this._unflushedLocalNames.push(b);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return d._flush()}))};m.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<
this._unflushedLocalNames.length;){var b=this._unflushedLocalNames.shift();(b=this._whenDefinedDeferred.get(b))&&b.resolve(void 0)}};m.prototype.get=function(b){if(b=this._internals.localNameToDefinition(b))return b.constructor};m.prototype.whenDefined=function(b){if(!U(b))return Promise.reject(new SyntaxError("'"+b+"' is not a valid custom element name."));var a=this._whenDefinedDeferred.get(b);if(a)return a.toPromise();a=new G;this._whenDefinedDeferred.set(b,a);this._internals.localNameToDefinition(b)&&
-1===this._unflushedLocalNames.indexOf(b)&&a.resolve(void 0);return a.toPromise()};m.prototype.polyfillWrapFlushCallback=function(b){this._documentConstructionObserver.disconnect();var a=this._flushCallback;this._flushCallback=function(d){return b(function(){return a(d)})}};window.CustomElementRegistry=m;m.prototype.define=m.prototype.define;m.prototype.get=m.prototype.get;m.prototype.whenDefined=m.prototype.whenDefined;m.prototype.polyfillWrapFlushCallback=m.prototype.polyfillWrapFlushCallback;var z=
window.Document.prototype.createElement,ga=window.Document.prototype.createElementNS,fa=window.Document.prototype.importNode,ha=window.Document.prototype.prepend,ia=window.Document.prototype.append,J=window.Node.prototype.cloneNode,y=window.Node.prototype.appendChild,R=window.Node.prototype.insertBefore,C=window.Node.prototype.removeChild,S=window.Node.prototype.replaceChild,E=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),I=window.Element.prototype.attachShadow,v=Object.getOwnPropertyDescriptor(window.Element.prototype,
"innerHTML"),D=window.Element.prototype.getAttribute,K=window.Element.prototype.setAttribute,M=window.Element.prototype.removeAttribute,x=window.Element.prototype.getAttributeNS,L=window.Element.prototype.setAttributeNS,N=window.Element.prototype.removeAttributeNS,P=window.Element.prototype.insertAdjacentElement,W=window.Element.prototype.prepend,X=window.Element.prototype.append,Z=window.Element.prototype.before,aa=window.Element.prototype.after,ba=window.Element.prototype.replaceWith,ca=window.Element.prototype.remove,
ka=window.HTMLElement,w=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),O=window.HTMLElement.prototype.insertAdjacentElement,T=new function(){},r=window.customElements;if(!r||r.forcePolyfill||"function"!=typeof r.define||"function"!=typeof r.get)r=new q,ja(r),ea(r),da(r),V(r),document.__CE_hasRegistry=!0,r=new m(r),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:r});(function(){if(customElements&&customElements.polyfillWrapFlushCallback){var b=
function(){if(a){var b=a;a=null;b();return!0}},a,d=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(c){a=c;d(b)});HTMLImports.whenReady=function(a){d(function(){b()?HTMLImports.whenReady(a):a()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);(function(){var b=document.createElement("style");b.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";
var a=document.querySelector("head");a.insertBefore(b,a.firstChild)})(window.WebComponents)})();
}).call(self)
//# sourceMappingURL=webcomponents-hi-ce.js.map

File diff suppressed because one or more lines are too long

View File

@@ -7,60 +7,20 @@
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';var aa={scope:{},getGlobal:function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}};aa.global=aa.getGlobal(this);
(function(a){function b(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function c(a){if(l)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!h(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=document.querySelectorAll("link[rel=import]:not(import-dependency)"),
c=b.length;if(c)for(var d=0,e=b.length,f;d<e&&(f=b[d]);d++)g(f,function(){0===--c&&a()});else a()}function e(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",b)}}function f(a){e(function(){return d(function(){return a&&a()})})}function g(a,b){if(a.__loaded)b&&b();else if("script"!==a.localName||a.src){var c=function(d){a.removeEventListener(d.type,
c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);Aa&&"style"===a.localName||a.addEventListener("error",c)}else a.__loaded=!0,b&&b()}function h(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.documents={};this.inflight=0;this.dynamicImportsMO=new MutationObserver(function(b){return a.handleMutations(b)});e(function(){a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0});a.loadImports(document)})}var l="import"in document.createElement("link"),
v=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return v||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var N=/(^\/)|(^#)|(^[\w-\d]*:)/,pa=/(url\()([^)]*)(\))/g,uc=/(@import[\s]+(?!url\())([^;]*)(;)/g,vc=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,y={fixUrls:function(a,b){a.href&&a.setAttribute("href",y.replaceAttrUrl(a.getAttribute("href"),b));a.src&&a.setAttribute("src",y.replaceAttrUrl(a.getAttribute("src"),
b));"style"===a.localName&&y.resolveUrlsInStyle(a,b)},fixUrlsInTemplates:function(a,b){a=a.querySelectorAll("template");for(var c=0;c<a.length;c++)y.fixUrlsInTemplate(a[c],b)},fixUrlsInTemplate:function(a,b){a=a.content||a;for(var c=a.querySelectorAll("style, [src], [style]"),d=0;d<c.length;d++){var e=c[d];"style"==e.localName?y.resolveUrlsInStyle(e,b):y.fixUrlAttributes(e,b)}y.fixUrlsInTemplates(a,b)},fixUrlAttributes:function(a,b){for(var c=["src","style"],d=0,e;d<c.length&&(e=c[d]);d++){var f=
a.attributes[e],g=f&&f.value;g&&0>g.search(/({{|\[\[)/)&&(f.value="style"===e?y.resolveUrlsInCssText(g,b):y.replaceAttrUrl(g,b))}},resolveUrlsInStyle:function(a,b){a.textContent=y.resolveUrlsInCssText(a.textContent,b)},resolveUrlsInCssText:function(a,b){a=y.replaceUrls(a,b,pa);return a=y.replaceUrls(a,b,uc)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=y.resolveUrl(a,b));return c+"'"+a+"'"+e})},replaceAttrUrl:function(a,b){return a&&N.test(a)?a:y.resolveUrl(a,
b)},resolveUrl:function(a,b){if(void 0===y.__workingURL){y.__workingURL=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";y.__workingURL="http://a/c%20d"===c.href}catch(vd){}}if(y.__workingURL)return(new URL(a,b)).href;c=y.__tempDoc;c||(c=document.implementation.createHTMLDocument("temp"),y.__tempDoc=c,c.__base=c.createElement("base"),c.head.appendChild(c.__base),c.__anchor=c.createElement("a"));c.__base.href=b;c.__anchor.href=a;return c.__anchor.href||a}},lb={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=
a.split(",");var d=a[1],d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,lb.async);e.onload=function(){var a=e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},Aa=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);
k.prototype.loadImports=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b<c;b++)this.loadImport(a[b])};k.prototype.loadImport=function(a){var b=this,c=a.href;if(void 0!==this.documents[c]){var d=this.documents[c];d&&d.__loaded&&(a.import=d,this.fireEventIfNeeded(a))}else this.inflight++,this.documents[c]="pending",lb.load(c,function(a,d){a=b.makeDocument(a,d||c);b.documents[c]=a;b.inflight--;b.loadImports(a);b.processImportsIfLoadingDone()},function(){b.documents[c]=null;
b.inflight--;b.processImportsIfLoadingDone()})};k.prototype.makeDocument=function(a,b){if(!a)return document.createDocumentFragment();Aa&&(a=a.replace(vc,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=y.replaceAttrUrl(c.getAttribute("href"),b),c.removeAttribute("href");for(var 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"]'),d=0,e=0,f=c.length,h;e<f&&(h=c[e]);e++)g(h),y.fixUrls(h,b),h.setAttribute("import-dependency",""),"script"===h.localName&&!h.src&&h.textContent&&(h.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(h.textContent+("\n//# sourceURL="+
b+(d?"-"+d:"")+".js\n"))),h.textContent="",d++);y.fixUrlsInTemplates(a,b);return a};k.prototype.processImportsIfLoadingDone=function(){var a=this;if(!this.inflight){this.dynamicImportsMO.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),a.fireEvents())};this.waitForStyles(function(){c=!0;d()});this.runScripts(function(){b=!0;d()})}};k.prototype.flatten=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=
{},c=0,d=a.length;c<d&&(b.n=a[c]);b={n:b.n},c++){var e=this.documents[b.n.href];(b.n.import=e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[b.n.href]=b.n,b.n.readyState="loading",b.n.import=b.n,Object.defineProperty(b.n,"baseURI",{get:function(a){return function(){return a.n.href}}(b),configurable:!0,enumerable:!0}),this.flatten(e),b.n.appendChild(e))}};k.prototype.runScripts=function(a){function b(e){if(e<d){var f=c[e],h=document.createElement("script");f.removeAttribute("import-dependency");
for(var k=0,l=f.attributes.length;k<l;k++)h.setAttribute(f.attributes[k].name,f.attributes[k].value);v=h;f.parentNode.replaceChild(h,f);g(h,function(){v=null;b(e+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};k.prototype.waitForStyles=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),d=b.length;if(d)for(var e=Aa&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]"),
f={},h=0,k=b.length;h<k&&(f.s=b[h]);f={s:f.s},h++){if(g(f.s,function(b){return function(){b.s.removeAttribute("import-dependency");0===--d&&a()}}(f)),e&&f.s.parentNode!==document.head){var l=document.createElement(f.s.localName);l.__appliedElement=f.s;l.setAttribute("type","import-placeholder");f.s.parentNode.insertBefore(l,f.s.nextSibling);for(l=c(f.s);l&&c(l);)l=c(l);l.parentNode!==document.head&&(l=null);document.head.insertBefore(f.s,l);f.s.removeAttribute("type")}}else a()};k.prototype.fireEvents=
function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.fireEventIfNeeded(c)};k.prototype.fireEventIfNeeded=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(b(a.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.handleMutations=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];e&&e.nodeType===Node.ELEMENT_NODE&&
(h(e)?this.loadImport(e):this.loadImports(e))}}};if(l){for(var ga=document.querySelectorAll("link[rel=import]"),Ba=0,wc=ga.length,qa;Ba<wc&&(qa=ga[Ba]);Ba++)qa.import&&"loading"===qa.import.readyState||(qa.__loaded=!0);ga=function(a){a=a.target;h(a)&&(a.__loaded=!0)};document.addEventListener("load",ga,!0);document.addEventListener("error",ga,!0)}else new k;f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=l;a.whenReady=f;a.importForElement=
c})(window.HTMLImports=window.HTMLImports||{});var m={},ba=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function ca(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function da(a,b,c){c=void 0===c?new Set:c;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)da(d,b,c);d=ca(a,e);continue}else if("template"===f){d=ca(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)da(e,b,c)}d=d.firstChild?d.firstChild:ca(a,d)}}
m.isValidCustomElementName=function(a){var b=ba.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a};m.isConnected=function(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))};m.walkDeepDescendantElements=da;m.setPropertyUnchecked=function(a,b,c){a[b]=c};var n={default:{custom:1,failed:2}};var ea={};function p(){this._localNameToDefinition=new Map;this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}p.prototype.setDefinition=function(a,b){this._localNameToDefinition.set(a,b);this._constructorToDefinition.set(b.constructor,b)};p.prototype.localNameToDefinition=function(a){return this._localNameToDefinition.get(a)};p.prototype.constructorToDefinition=function(a){return this._constructorToDefinition.get(a)};p.prototype.addPatch=function(a){this._hasPatches=!0;this._patches.push(a)};
p.prototype.patchTree=function(a){var b=this;this._hasPatches&&m.walkDeepDescendantElements(a,function(a){return b.patch(a)})};p.prototype.patch=function(a){if(this._hasPatches&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this._patches.length;b++)this._patches[b](a)}};p.prototype.connectTree=function(a){var b=[];m.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];c.__CE_state===n.default.custom?this.connectedCallback(c):this.upgradeElement(c)}};
p.prototype.disconnectTree=function(a){var b=[];m.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];c.__CE_state===n.default.custom&&this.disconnectedCallback(c)}};
p.prototype.patchAndUpgradeTree=function(a,b){b=void 0===b?new Set:b;var c=this,d=[];m.walkDeepDescendantElements(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,new Set(b),b.delete(d),c.patchAndUpgradeTree(d,
b))})}else d.push(a)},b);if(this._hasPatches)for(a=0;a<d.length;a++)this.patch(d[a]);for(a=0;a<d.length;a++)this.upgradeElement(d[a])};
p.prototype.upgradeElement=function(a){if(void 0===a.__CE_state){var b=this.localNameToDefinition(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=n.default.failed,f;}a.__CE_state=n.default.custom;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);
null!==e&&this.attributeChangedCallback(a,d,null,e,null)}m.isConnected(a)&&this.connectedCallback(a)}}};p.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};p.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
p.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,c,d,e)};ea.default=p;var fa={};function ha(a,b){this._internals=a;this._document=b;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}ha.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};
ha.prototype._handleMutations=function(a){var b=this._document.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this._internals.patchAndUpgradeTree(c[d])};fa.default=ha;var ia={};function ja(){var a=this;this._resolve=this._value=void 0;this._promise=new Promise(function(b){a._resolve=b;a._value&&b(a._value)})}ja.prototype.resolve=function(a){if(this._value)throw Error("Already resolved.");this._value=a;this._resolve&&this._resolve(a)};ja.prototype.toPromise=function(){return this._promise};ia.default=ja;var ka={};function q(a){this._elementDefinitionIsRunning=!1;this._internals=a;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=!1;this._unflushedLocalNames=[];this._documentConstructionObserver=new fa.default(a,document)}
q.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!m.isValidCustomElementName(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this._internals.localNameToDefinition(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var d,e,f,g,
h;try{var k=function(a){var b=l[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},l=b.prototype;if(!(l instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");d=k("connectedCallback");e=k("disconnectedCallback");f=k("adoptedCallback");g=k("attributeChangedCallback");h=b.observedAttributes||[]}catch(v){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(a,{localName:a,
constructor:b,connectedCallback:d,disconnectedCallback:e,adoptedCallback:f,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this._unflushedLocalNames.push(a);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return c._flush()}))};
q.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var a=this._unflushedLocalNames.shift();(a=this._whenDefinedDeferred.get(a))&&a.resolve(void 0)}};q.prototype.get=function(a){if(a=this._internals.localNameToDefinition(a))return a.constructor};
q.prototype.whenDefined=function(a){if(!m.isValidCustomElementName(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this._whenDefinedDeferred.get(a);if(b)return b.toPromise();b=new ia.default;this._whenDefinedDeferred.set(a,b);this._internals.localNameToDefinition(a)&&-1===this._unflushedLocalNames.indexOf(a)&&b.resolve(void 0);return b.toPromise()};
q.prototype.polyfillWrapFlushCallback=function(a){this._documentConstructionObserver.disconnect();var b=this._flushCallback;this._flushCallback=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=q;q.prototype.define=q.prototype.define;q.prototype.get=q.prototype.get;q.prototype.whenDefined=q.prototype.whenDefined;q.prototype.polyfillWrapFlushCallback=q.prototype.polyfillWrapFlushCallback;ka.default=q;var r={},la={Document_createElement:window.Document.prototype.createElement,Document_createElementNS:window.Document.prototype.createElementNS,Document_importNode:window.Document.prototype.importNode,Document_prepend:window.Document.prototype.prepend,Document_append:window.Document.prototype.append,Node_cloneNode:window.Node.prototype.cloneNode,Node_appendChild:window.Node.prototype.appendChild,Node_insertBefore:window.Node.prototype.insertBefore,Node_removeChild:window.Node.prototype.removeChild,
Node_replaceChild:window.Node.prototype.replaceChild,Node_textContent:Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Element_attachShadow:window.Element.prototype.attachShadow,Element_innerHTML:Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Element_getAttribute:window.Element.prototype.getAttribute,Element_setAttribute:window.Element.prototype.setAttribute,Element_removeAttribute:window.Element.prototype.removeAttribute,Element_getAttributeNS:window.Element.prototype.getAttributeNS,
Element_setAttributeNS:window.Element.prototype.setAttributeNS,Element_removeAttributeNS:window.Element.prototype.removeAttributeNS,Element_insertAdjacentElement:window.Element.prototype.insertAdjacentElement,Element_prepend:window.Element.prototype.prepend,Element_append:window.Element.prototype.append,Element_before:window.Element.prototype.before,Element_after:window.Element.prototype.after,Element_replaceWith:window.Element.prototype.replaceWith,Element_remove:window.Element.prototype.remove,
HTMLElement:window.HTMLElement,HTMLElement_innerHTML:Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),HTMLElement_insertAdjacentElement:window.HTMLElement.prototype.insertAdjacentElement};r.default=la;var ma={},na=new function(){};ma.default=na;var oa={default:function(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.constructorToDefinition(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=r.default.Document_createElement.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=n.default.custom,e.__CE_definition=d,a.patch(e),e;var d=e.length-1,f=e[d];if(f===ma.default)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
e[d]=ma.default;Object.setPrototypeOf(f,b.prototype);a.patch(f);return f}b.prototype=r.default.HTMLElement.prototype;return b}()}};var ra={default:function(a,b,c){b.prepend=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.prepend.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.append=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.append.apply(this,
d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)}}};var sa={default:function(a){m.setPropertyUnchecked(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var c=a.localNameToDefinition(b);if(c)return new c.constructor}b=r.default.Document_createElement.call(this,b);a.patch(b);return b});m.setPropertyUnchecked(Document.prototype,"importNode",function(b,c){b=r.default.Document_importNode.call(this,b,c);this.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});m.setPropertyUnchecked(Document.prototype,"createElementNS",
function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.localNameToDefinition(c);if(d)return new d.constructor}b=r.default.Document_createElementNS.call(this,b,c);a.patch(b);return b});ra.default(a,Document.prototype,{prepend:r.default.Document_prepend,append:r.default.Document_append})}};var ta={default:function(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&m.isConnected(this))for(var c=Array(h),k=0;k<h;k++)c[k]=e[k]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.disconnectTree(c[b])}}})}m.setPropertyUnchecked(Node.prototype,"insertBefore",function(b,d){if(b instanceof DocumentFragment){var c=
Array.prototype.slice.apply(b.childNodes);b=r.default.Node_insertBefore.call(this,b,d);if(m.isConnected(this))for(d=0;d<c.length;d++)a.connectTree(c[d]);return b}c=m.isConnected(b);d=r.default.Node_insertBefore.call(this,b,d);c&&a.disconnectTree(b);m.isConnected(this)&&a.connectTree(b);return d});m.setPropertyUnchecked(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=r.default.Node_appendChild.call(this,b);if(m.isConnected(this))for(var e=
0;e<c.length;e++)a.connectTree(c[e]);return b}c=m.isConnected(b);e=r.default.Node_appendChild.call(this,b);c&&a.disconnectTree(b);m.isConnected(this)&&a.connectTree(b);return e});m.setPropertyUnchecked(Node.prototype,"cloneNode",function(b){b=r.default.Node_cloneNode.call(this,b);this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});m.setPropertyUnchecked(Node.prototype,"removeChild",function(b){var c=m.isConnected(b),e=r.default.Node_removeChild.call(this,b);c&&a.disconnectTree(b);
return e});m.setPropertyUnchecked(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=r.default.Node_replaceChild.call(this,b,d);if(m.isConnected(this))for(a.disconnectTree(d),d=0;d<c.length;d++)a.connectTree(c[d]);return b}var c=m.isConnected(b),f=r.default.Node_replaceChild.call(this,b,d),g=m.isConnected(this);g&&a.disconnectTree(d);c&&a.disconnectTree(b);g&&a.connectTree(b);return f});r.default.Node_textContent&&r.default.Node_textContent.get?
b(Node.prototype,r.default.Node_textContent):a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)r.default.Node_removeChild.call(this,this.firstChild);r.default.Node_appendChild.call(this,document.createTextNode(a))}})})}};var ua={default:function(a,b,c){b.before=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.before.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.after=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.after.apply(this,
d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.replaceWith=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];var f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)}),g=m.isConnected(this);c.replaceWith.apply(this,d);for(var h=0;h<f.length;h++)a.disconnectTree(f[h]);if(g)for(a.disconnectTree(this),f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};
b.remove=function(){var b=m.isConnected(this);c.remove.call(this);b&&a.disconnectTree(this)}}};var va={default:function(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;m.isConnected(this)&&(e=[],m.walkDeepDescendantElements(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];g.__CE_state===n.default.custom&&a.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(this):a.patchTree(this);return b}})}function c(b,c){m.setPropertyUnchecked(b,
"insertAdjacentElement",function(b,d){var e=m.isConnected(d);b=c.call(this,b,d);e&&a.disconnectTree(d);m.isConnected(b)&&a.connectTree(d);return b})}r.default.Element_attachShadow?m.setPropertyUnchecked(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=r.default.Element_attachShadow.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(r.default.Element_innerHTML&&r.default.Element_innerHTML.get)b(Element.prototype,r.default.Element_innerHTML);
else if(r.default.HTMLElement_innerHTML&&r.default.HTMLElement_innerHTML.get)b(HTMLElement.prototype,r.default.HTMLElement_innerHTML);else{var d=r.default.Document_createElement.call(document,"div");a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return r.default.Node_cloneNode.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)r.default.Node_removeChild.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)r.default.Node_appendChild.call(b,
d.childNodes[0])}})})}m.setPropertyUnchecked(Element.prototype,"setAttribute",function(b,c){if(this.__CE_state!==n.default.custom)return r.default.Element_setAttribute.call(this,b,c);var d=r.default.Element_getAttribute.call(this,b);r.default.Element_setAttribute.call(this,b,c);c=r.default.Element_getAttribute.call(this,b);d!==c&&a.attributeChangedCallback(this,b,d,c,null)});m.setPropertyUnchecked(Element.prototype,"setAttributeNS",function(b,c,d){if(this.__CE_state!==n.default.custom)return r.default.Element_setAttributeNS.call(this,
b,c,d);var e=r.default.Element_getAttributeNS.call(this,b,c);r.default.Element_setAttributeNS.call(this,b,c,d);d=r.default.Element_getAttributeNS.call(this,b,c);e!==d&&a.attributeChangedCallback(this,c,e,d,b)});m.setPropertyUnchecked(Element.prototype,"removeAttribute",function(b){if(this.__CE_state!==n.default.custom)return r.default.Element_removeAttribute.call(this,b);var c=r.default.Element_getAttribute.call(this,b);r.default.Element_removeAttribute.call(this,b);null!==c&&a.attributeChangedCallback(this,
b,c,null,null)});m.setPropertyUnchecked(Element.prototype,"removeAttributeNS",function(b,c){if(this.__CE_state!==n.default.custom)return r.default.Element_removeAttributeNS.call(this,b,c);var d=r.default.Element_getAttributeNS.call(this,b,c);r.default.Element_removeAttributeNS.call(this,b,c);var e=r.default.Element_getAttributeNS.call(this,b,c);d!==e&&a.attributeChangedCallback(this,c,d,e,b)});r.default.HTMLElement_insertAdjacentElement?c(HTMLElement.prototype,r.default.HTMLElement_insertAdjacentElement):
r.default.Element_insertAdjacentElement?c(Element.prototype,r.default.Element_insertAdjacentElement):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");ra.default(a,Element.prototype,{prepend:r.default.Element_prepend,append:r.default.Element_append});ua.default(a,Element.prototype,{before:r.default.Element_before,after:r.default.Element_after,replaceWith:r.default.Element_replaceWith,remove:r.default.Element_remove})}};var wa=window.customElements;if(!wa||wa.forcePolyfill||"function"!=typeof wa.define||"function"!=typeof wa.get){var xa=new ea.default;oa.default(xa);sa.default(xa);ta.default(xa);va.default(xa);document.__CE_hasRegistry=!0;var ya=new ka.default(xa);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ya})};/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -69,151 +29,164 @@ r.default.Element_insertAdjacentElement?c(Element.prototype,r.default.Element_in
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){if(customElements&&customElements.polyfillWrapFlushCallback){var a=function(){if(b){var a=b;b=null;a();return!0}},b,c=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(d){b=d;c(a)});HTMLImports.whenReady=function(b){c(function(){a()?HTMLImports.whenReady(b):b()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);var za=document.createElement("style");za.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Ca=document.querySelector("head");Ca.insertBefore(za,Ca.firstChild);/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var t={},u=window.ShadyDOM||{};u.hasNativeShadowDOM=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Da=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");u.hasDescriptors=!!(Da&&Da.configurable&&Da.get);u.inUse=u.force||!u.hasNativeShadowDOM;function Ea(a){return"ShadyRoot"===a.__localName}var w=Element.prototype,Fa=w.matches||w.matchesSelector||w.mozMatchesSelector||w.msMatchesSelector||w.oMatchesSelector||w.webkitMatchesSelector;
function Ga(a,b){if(a&&b)for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length&&(e=c[d]);d++){var f=e,g=a,h=Object.getOwnPropertyDescriptor(b,f);h&&Object.defineProperty(g,f,h)}return a||b}var Ha=document.createTextNode(""),Ia=0,Ja=[];(new MutationObserver(function(){for(;Ja.length;)try{Ja.shift()()}catch(a){throw Ha.textContent=Ia++,a;}})).observe(Ha,{characterData:!0});t.settings=u;t.isShadyRoot=Ea;t.ownerShadyRootForNode=function(a){a=a.getRootNode();if(Ea(a))return a};
t.matchesSelector=function(a,b){return Fa.call(a,b)};t.extend=Ga;t.extendAll=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(d=0;d<c.length;d++)Ga(a,c[d]);return a};t.mixin=function(a,b){for(var c in b)a[c]=b[c];return a};t.patchPrototype=function(a,b){var c=Object.getPrototypeOf(a);if(!c.hasOwnProperty("__patchProto")){var d=Object.create(c);d.__sourceProto=c;Ga(d,b);c.__patchProto=d}a.__proto__=c.__patchProto};t.microtask=function(a){Ja.push(a);Ha.textContent=Ia++};var Ka={},La=[],Ma;function Na(){Ma=!1;for(var a=!!La.length;La.length;)La.shift()();return a}Na.list=La;Ka.enqueue=function(a){Ma||(Ma=!0,t.microtask(Na));La.push(a)};Ka.flush=Na;var Oa={};function Pa(){this._scheduled=!1;this.addedNodes=[];this.removedNodes=[];this.callbacks=new Set}Pa.prototype.schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,t.microtask(function(){a.flush()}))};Pa.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var a=this.takeRecords();a.length&&this.callbacks.forEach(function(b){b(a)})}};
Pa.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};Oa.observeChildren=function(a,b){a.__shady=a.__shady||{};a.__shady.observer||(a.__shady.observer=new Pa);a.__shady.observer.callbacks.add(b);var c=a.__shady.observer;return{_callback:b,_observer:c,_node:a,takeRecords:function(){return c.takeRecords()}}};
Oa.unobserveChildren=function(a){var b=a&&a._observer;b&&(b.callbacks.delete(a._callback),b.callbacks.size||(a._node.__shady.observer=null))};Oa.filterMutations=function(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})};var x={},Qa=Element.prototype.insertBefore,Ra=Element.prototype.removeChild,Sa=Element.prototype.setAttribute,Ta=Element.prototype.removeAttribute,Ua=Element.prototype.cloneNode,Va=Document.prototype.importNode,Wa=Element.prototype.addEventListener,Xa=Element.prototype.removeEventListener;x.appendChild=Element.prototype.appendChild;x.insertBefore=Qa;x.removeChild=Ra;x.setAttribute=Sa;x.removeAttribute=Ta;x.cloneNode=Ua;x.importNode=Va;x.addEventListener=Wa;x.removeEventListener=Xa;var Ya={},Za=/[&\u00A0"]/g,$a=/[&\u00A0<>]/g;function ab(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function bb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var cb=bb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),db=bb("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function eb(a,b,c){switch(a.nodeType){case Node.ELEMENT_NODE:b=a.localName;for(var d="<"+b,e=a.attributes,f=0,g;g=e[f];f++)d+=" "+g.name+'="'+g.value.replace(Za,ab)+'"';d+=">";return cb[b]?d:d+fb(a,c)+"</"+b+">";case Node.TEXT_NODE:return a=a.data,b&&db[b.localName]?a:a.replace($a,ab);case Node.COMMENT_NODE:return"\x3c!--"+a.data+"--\x3e";default:throw window.console.error(a),Error("not implemented");}}
function fb(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g;e<f&&(g=d[e]);e++)c+=eb(g,a,b);return c}Ya.getOuterHTML=eb;Ya.getInnerHTML=fb;var z={},A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function gb(a){var b=[];A.currentNode=a;for(a=A.firstChild();a;)b.push(a),a=A.nextSibling();return b}z.parentNode=function(a){A.currentNode=a;return A.parentNode()};z.firstChild=function(a){A.currentNode=a;return A.firstChild()};z.lastChild=function(a){A.currentNode=a;return A.lastChild()};z.previousSibling=function(a){A.currentNode=a;return A.previousSibling()};
z.nextSibling=function(a){A.currentNode=a;return A.nextSibling()};z.childNodes=gb;z.parentElement=function(a){B.currentNode=a;return B.parentNode()};z.firstElementChild=function(a){B.currentNode=a;return B.firstChild()};z.lastElementChild=function(a){B.currentNode=a;return B.lastChild()};z.previousElementSibling=function(a){B.currentNode=a;return B.previousSibling()};z.nextElementSibling=function(a){B.currentNode=a;return B.nextSibling()};
z.children=function(a){var b=[];B.currentNode=a;for(a=B.firstChild();a;)b.push(a),a=B.nextSibling();return b};z.innerHTML=function(a){return Ya.getInnerHTML(a,function(a){return gb(a)})};z.textContent=function(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b};var C={};function hb(a,b){return a.__shady&&a.__shady[b]}C.getProperty=hb;C.hasProperty=function(a,b){return void 0!==hb(a,b)};var D={};function ib(a){return{get:function(){var b=C.getProperty(this,a);return void 0!==b?b:z[a](this)},configurable:!0}}
var jb=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),kb=document.implementation.createHTMLDocument("inert").createElement("div"),mb=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),nb={parentElement:ib("parentElement"),parentNode:ib("parentNode"),nextSibling:ib("nextSibling"),previousSibling:ib("previousSibling"),className:{get:function(){return this.getAttribute("class")},set:function(a){this.setAttribute("class",
a)},configurable:!0},nextElementSibling:{get:function(){if(C.hasProperty(this,"nextSibling")){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return z.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(C.hasProperty(this,"previousSibling")){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return z.previousElementSibling(this)},configurable:!0}},ob={childNodes:{get:function(){if(C.hasProperty(this,
"firstChild")){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}return this.__shady.childNodes}return z.childNodes(this)},configurable:!0},firstChild:ib("firstChild"),lastChild:ib("lastChild"),textContent:{get:function(){if(C.hasProperty(this,"firstChild")){for(var a=[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return z.textContent(this)},set:function(a){if(this.nodeType!==
Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);a&&this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(C.hasProperty(this,"firstChild")){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return z.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(C.hasProperty(this,"lastChild")){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=
a.previousSibling;return a}return z.lastElementChild(this)},configurable:!0},children:{get:function(){return C.hasProperty(this,"firstChild")?Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):z.children(this)},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return C.hasProperty(this,"firstChild")?Ya.getInnerHTML(a):z.innerHTML(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);
for(jb&&jb.set?jb.set.call(kb,a):kb.innerHTML=a;kb.firstChild;)b.appendChild(kb.firstChild)},configurable:!0}},pb={shadowRoot:{get:function(){return this.shadyRoot},set:function(a){this.shadyRoot=a},configurable:!0}},qb={activeElement:{get:function(){var a;a=mb&&mb.get?mb.get.call(document):t.settings.hasDescriptors?void 0:document.activeElement;if(a&&a.nodeType){var b=!!t.isShadyRoot(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=t.ownerShadyRootForNode(a);b&&b!==this;)a=
b.host,b=t.ownerShadyRootForNode(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}};function E(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Could not define",d,"on",a)}}
var rb=t.settings.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__outsideAccessors||(a.__shady=a.__shady||{},a.__shady.__outsideAccessors=!0,E(a,nb,!0))},sb=t.settings.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__insideAccessors||(a.__shady=a.__shady||{},a.__shady.__insideAccessors=!0,E(a,ob,!0),E(a,pb,!0))};D.ShadowRootAccessor=pb;D.ActiveElementAccessor=qb;D.patchAccessors=function(a){E(a,nb);E(a,ob);E(a,qb)};
D.patchShadowRootAccessors=function(a){E(a,ob,!0);E(a,qb,!0)};D.patchOutsideElementAccessors=rb;D.patchInsideElementAccessors=sb;var F={};
function tb(a,b,c){D.patchOutsideElementAccessors(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild=a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=
null}F.recordInsertBefore=function(a,b,c){D.patchInsideElementAccessors(b);b.__shady=b.__shady||{};C.hasProperty(b,"firstChild")&&(b.__shady.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var d=a.childNodes,e=0;e<d.length;e++)tb(d[e],b,c);a.__shady=a.__shady||{};b=C.hasProperty(a,"firstChild")?null:void 0;a.__shady.firstChild=a.__shady.lastChild=b;a.__shady.childNodes=b}else tb(a,b,c)};
F.recordRemoveChild=function(a,b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var c=a.__shady.previousSibling,d=a.__shady.nextSibling;c&&(c.__shady=c.__shady||{},c.__shady.nextSibling=d);d&&(d.__shady=d.__shady||{},d.__shady.previousSibling=c);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;C.hasProperty(b,"childNodes")&&(b.__shady.childNodes=
null)};F.recordChildNodes=function(a){if(!C.hasProperty(a,"firstChild")){a.__shady=a.__shady||{};a.__shady.firstChild=z.firstChild(a);a.__shady.lastChild=z.lastChild(a);D.patchInsideElementAccessors(a);for(var b=a.__shady.childNodes=z.childNodes(a),c=0,d;c<b.length&&(d=b[c]);c++)d.__shady=d.__shady||{},d.__shady.parentNode=a,d.__shady.nextSibling=b[c+1]||null,d.__shady.previousSibling=b[c-1]||null,D.patchOutsideElementAccessors(d)}};var G={};
function ub(a){var b=C.hasProperty(a,"parentNode")&&C.getProperty(a,"parentNode"),c,d=t.ownerShadyRootForNode(a);if(b||d){c=vb(a);b&&F.recordRemoveChild(a,b);var e;if(e=d){var f;e=d._insertionPoints;for(var g=0;g<e.length;g++){var h=e[g],k;a:{for(k=h;k;){if(k==a){k=!0;break a}k=k.parentNode}k=void 0}if(k)for(h=h.assignedNodes({flatten:!0}),k=0;k<h.length;k++){f=!0;var l=h[k],v=z.parentNode(l);v&&x.removeChild.call(v,l)}}e=f}f=e;b=b&&d&&b.localName===d.getInsertionPointTag();if(f||b)d._skipUpdateInsertionPoints=!1,
wb(d)}xb(a);return c}function yb(a,b,c){if(a=a.__shady&&a.__shady.observer)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.schedule()}function zb(a){if(a&&a.nodeType){var b=a.__ownerShadyRoot;void 0===b&&(b=t.isShadyRoot(a)?a:(b=a.parentNode)?zb(b):a,document.documentElement.contains(a)&&(a.__ownerShadyRoot=b));return b}}
function Ab(a,b,c){var d,e=c.getInsertionPointTag();if(a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||a.__noInsertionPoint)a.localName===e&&(F.recordChildNodes(b),F.recordChildNodes(a),d=!0);else for(var e=a.querySelectorAll(e),f=0,g,h;f<e.length&&(g=e[f]);f++)h=g.parentNode,h===a&&(h=b),h=Ab(g,h,c),d=d||h;return d}function xb(a){if(void 0!==a.__ownerShadyRoot)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)xb(e);a.__ownerShadyRoot=void 0}
function vb(a){if((a=a.parentNode)&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())return wb(a.shadyRoot),!0}function wb(a){a._changePending=!0;a.update()}function Bb(a,b){"slot"===b?vb(a):"slot"===a.localName&&"name"===b&&(a=t.ownerShadyRootForNode(a))&&a.update()}function Cb(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var k=b,l=c,v=d,N=k(h);N&&v.push(h);l&&l(N)?h=N:(Cb(h.childNodes,k,l,v),h=void 0)}if(h)return!0}}var Db=null;
function Eb(a,b){if(a.ownerDocument!==document)return x.importNode.call(document,a,b);var c=x.importNode.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=Eb(a[b],!0),c.appendChild(d)}return c}G.getRootNode=zb;G.query=function(a,b,c){var d=[];Cb(a.childNodes,b,c,d);return d};G.renderRootNode=function(a){a=a.getRootNode();t.isShadyRoot(a)&&a.render()};
G.setAttribute=function(a,b,c){Db||(Db=window.ShadyCSS&&window.ShadyCSS.ScopingShim);Db&&"class"===b?Db.setElementClass(a,c):(x.setAttribute.call(a,b,c),Bb(a,b))};G.removeAttribute=function(a,b){x.removeAttribute.call(a,b);Bb(a,b)};
G.insertBefore=function(a,b,c){if(c){var d=C.getProperty(c,"parentNode");if(void 0!==d&&d!==a||void 0===d&&z.parentNode(c)!==a)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(c===b)return b;b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(d=C.getProperty(b,"parentNode"),d?(yb(d,null,b),ub(b)):(b.parentNode&&x.removeChild.call(b.parentNode,b),xb(b)));var d=c,e=t.ownerShadyRootForNode(a),f;e&&(b.__noInsertionPoint&&
!e._changePending&&(e._skipUpdateInsertionPoints=!0),f=Ab(b,a,e))&&(e._skipUpdateInsertionPoints=!1);C.hasProperty(a,"firstChild")&&F.recordInsertBefore(b,a,d);var g=f,h=e&&e.getInsertionPointTag()||"",k=b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!b.__noInsertionPoint&&h&&b.querySelector(h);f=k&&k.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;((k=k||b.localName===h)||a.localName===h||g)&&e&&wb(e);(e=a&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())&&wb(a.shadyRoot);if(!(e||k&&!f||a.shadyRoot||d&&
t.isShadyRoot(d.parentNode)&&d.parentNode._renderPending)){if(c&&(d=t.ownerShadyRootForNode(c))){var l;if(c.localName===d.getInsertionPointTag())a:{d=c.assignedNodes({flatten:!0});e=zb(c);f=0;for(g=d.length;f<g&&(l=d[f]);f++)if(e.isFinalDestination(c,l))break a;l=void 0}else l=c;c=l}l=t.isShadyRoot(a)?a.host:a;c?x.insertBefore.call(l,b,c):x.appendChild.call(l,b)}yb(a,b);return b};
G.removeChild=function(a,b){if(b.parentNode!==a)throw Error("The node to be removed is not a child of this node: "+b);if(!ub(b)){var c=t.isShadyRoot(a)?a.host:a,d=z.parentNode(b);c===d&&x.removeChild.call(c,b)}yb(a,null,b);return b};G.cloneNode=function(a,b){if("template"==a.localName)return x.cloneNode.call(a,b);var c=x.cloneNode.call(a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=a[b].cloneNode(!0),c.appendChild(d)}return c};G.importNode=Eb;var Fb={},Gb={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};function Hb(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===document&&c.push(window);return c}
function Ib(a,b){if(!t.isShadyRoot)return a;a=Hb(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!t.isShadyRoot(f)||-1<g)return d}
var Jb={get composed(){this.isTrusted&&void 0===this.__composed&&(this.__composed=Gb[this.type]);return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Hb(this.__target,this.composed));return this.__composedPath},get target(){return Ib(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Hb(this.__relatedTarget,!0));return Ib(this.currentTarget,this.__relatedTargetComposedPath)},
stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.__propagationStopped=this.__immediatePropagationStopped=!0}};function Kb(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}t.mixin(b,a);b.prototype=a.prototype;return b}var Lb={focus:!0,blur:!0};
function Mb(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function Nb(a){var b=a.composedPath(),c;Object.defineProperty(a,"currentTarget",{get:function(){return c},configurable:!0});for(var d=b.length-1;0<=d;d--)if(c=b[d],Mb(a,c,"capture"),a.__propagationStopped)return;Object.defineProperty(a,"eventPhase",{value:Event.AT_TARGET});for(var e,d=0;d<b.length;d++)if(c=b[d],0===d||c.shadowRoot&&c.shadowRoot===e)if(Mb(a,c,"bubble"),c!==window&&(e=c.getRootNode()),a.__propagationStopped)break}
function Ob(){for(var a in Lb)window.addEventListener(a,function(a){a.__target||(Pb(a),Nb(a),a.stopImmediatePropagation())},!0)}function Pb(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;t.settings.hasDescriptors?t.patchPrototype(a,Jb):t.extend(a,Jb)}var Qb=Kb(window.Event),Rb=Kb(window.CustomEvent),Sb=Kb(window.MouseEvent);
Fb.addEventListener=function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);if(b.__eventWrappers)for(var g=0;g<b.__eventWrappers.length;g++){if(b.__eventWrappers[g].node===this&&b.__eventWrappers[g].type===a&&b.__eventWrappers[g].capture===d&&b.__eventWrappers[g].once===e&&b.__eventWrappers[g].passive===f)return}else b.__eventWrappers=[];g=function(d){e&&this.removeEventListener(a,b,c);d.__target||Pb(d);if(d.composed||-1<d.composedPath().indexOf(this))if(d.eventPhase===
Event.BUBBLING_PHASE&&d.target===d.relatedTarget)d.stopImmediatePropagation();else return b(d)};b.__eventWrappers.push({node:this,type:a,capture:d,once:e,passive:f,wrapperFn:g});Lb[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][d?"capture":"bubble"].push(g)):x.addEventListener.call(this,a,g,c)}};
Fb.removeEventListener=function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);var g=void 0;if(b.__eventWrappers)for(var h=0;h<b.__eventWrappers.length;h++)if(b.__eventWrappers[h].node===this&&b.__eventWrappers[h].type===a&&b.__eventWrappers[h].capture===d&&b.__eventWrappers[h].once===e&&b.__eventWrappers[h].passive===f){g=b.__eventWrappers.splice(h,1)[0].wrapperFn;b.__eventWrappers.length||(b.__eventWrappers=void 0);break}x.removeEventListener.call(this,
a,g||b,c);g&&Lb[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][d?"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}};Fb.patchEvents=function(){window.Event=Qb;window.CustomEvent=Rb;window.MouseEvent=Sb;Ob()};var Tb={};function Ub(a,b,c){return{index:a,removed:b,addedCount:c}}
function Vb(a,b,c,d,e,f){var g=0,h=0,k=Math.min(c-b,f-e);if(0==b&&0==e)a:{for(g=0;g<k;g++)if(a[g]!==d[g])break a;g=k}if(c==a.length&&f==d.length){for(var h=k-g,k=a.length,l=d.length,v=0;v<h&&Wb(a[--k],d[--l]);)v++;h=v}b+=g;e+=g;c-=h;f-=h;if(0==c-b&&0==f-e)return[];if(b==c){for(c=Ub(b,[],0);e<f;)c.removed.push(d[e++]);return[c]}if(e==f)return[Ub(b,[],c-b)];g=b;h=e;f=f-h+1;k=c-g+1;c=Array(f);for(l=0;l<f;l++)c[l]=Array(k),c[l][0]=l;for(l=0;l<k;l++)c[0][l]=l;for(l=1;l<f;l++)for(v=1;v<k;v++)if(a[g+v-1]===
d[h+l-1])c[l][v]=c[l-1][v-1];else{var N=c[l-1][v]+1,pa=c[l][v-1]+1;c[l][v]=N<pa?N:pa}f=c.length-1;g=c[0].length-1;h=c[f][g];for(a=[];0<f||0<g;)0==f?(a.push(2),g--):0==g?(a.push(3),f--):(k=c[f-1][g-1],l=c[f-1][g],v=c[f][g-1],N=l<v?l<k?l:k:v<k?v:k,N==k?(k==h?a.push(0):(a.push(1),h=k),f--,g--):N==l?(a.push(3),f--,h=l):(a.push(2),g--,h=v));a.reverse();c=void 0;f=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:c&&(f.push(c),c=void 0);b++;e++;break;case 1:c||(c=Ub(b,[],0));c.addedCount++;b++;c.removed.push(d[e]);
e++;break;case 2:c||(c=Ub(b,[],0));c.addedCount++;b++;break;case 3:c||(c=Ub(b,[],0)),c.removed.push(d[e]),e++}c&&f.push(c);return f}function Wb(a,b){return a===b}Tb.calculateSplices=function(a,b){return Vb(a,0,a.length,b,0,b.length)};var Xb={},Yb="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};function H(a){this.root=a;this.insertionPointTag="slot"}H.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)};H.prototype.hasInsertionPoint=function(){return!(!this.root._insertionPoints||!this.root._insertionPoints.length)};
H.prototype.isInsertionPoint=function(a){return a.localName&&a.localName==this.insertionPointTag};H.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]};H.prototype.collectPool=function(){for(var a=[],b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};
H.prototype.distributePool=function(a,b){a=[];for(var c=this.root._insertionPoints,d=0,e=c.length,f;d<e&&(f=c[d]);d++){this.distributeInsertionPoint(f,b);var g=f.parentNode;g&&g.shadyRoot&&g.shadyRoot.hasInsertionPoint()&&a.push(g.shadyRoot)}for(c=0;c<b.length;c++)if(f=b[c])f.__shady=f.__shady||{},f.__shady.assignedSlot=void 0,(d=z.parentNode(f))&&x.removeChild.call(d,f);return a};
H.prototype.distributeInsertionPoint=function(a,b){var c=a.__shady.assignedNodes;c&&this.clearAssignedSlots(a,!0);a.__shady.assignedNodes=[];for(var d=!1,e=!1,f=0,g=b.length,h;f<g;f++)(h=b[f])&&this.matchesInsertionPoint(h,a)&&(h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a),b[f]=void 0,e=!0);if(!e)for(b=a.childNodes,e=0;e<b.length;e++)h=b[e],h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a);if(c){for(h=0;h<c.length;h++)c[h].__shady._prevAssignedSlot=null;a.__shady.assignedNodes.length<
c.length&&(d=!0)}this.setDistributedNodesOnInsertionPoint(a);d&&this._fireSlotChange(a)};H.prototype.clearAssignedSlots=function(a,b){var c=a.__shady.assignedNodes;if(c)for(var d=0;d<c.length;d++){var e=c[d];b&&(e.__shady._prevAssignedSlot=e.__shady.assignedSlot);e.__shady.assignedSlot===a&&(e.__shady.assignedSlot=null)}};H.prototype.matchesInsertionPoint=function(a,b){b=(b=b.getAttribute("name"))?b.trim():"";a=(a=a.getAttribute&&a.getAttribute("slot"))?a.trim():"";return a==b};
H.prototype.distributeNodeInto=function(a,b){b.__shady.assignedNodes.push(a);a.__shady.assignedSlot=b};H.prototype.setDistributedNodesOnInsertionPoint=function(a){var b=a.__shady.assignedNodes;a.__shady.distributedNodes=[];for(var c=0,d;c<b.length&&(d=b[c]);c++)if(this.isInsertionPoint(d)){var e=d.__shady.distributedNodes;if(e)for(var f=0;f<e.length;f++)a.__shady.distributedNodes.push(e[f])}else a.__shady.distributedNodes.push(b[c])};
H.prototype._fireSlotChange=function(a){a.dispatchEvent(new Yb("slotchange"));a.__shady.assignedSlot&&this._fireSlotChange(a.__shady.assignedSlot)};H.prototype.isFinalDestination=function(a){return!a.__shady.assignedSlot};Xb.default=H;var Zb={},$b={};function I(a,b){if(a!==$b)throw new TypeError("Illegal constructor");a=document.createDocumentFragment();a.__proto__=I.prototype;a._init(b);return a}I.prototype=Object.create(DocumentFragment.prototype);I.prototype._init=function(a){this.__localName="ShadyRoot";F.recordChildNodes(a);F.recordChildNodes(this);a.shadowRoot=this;this.host=a;this._changePending=this._hasRendered=this._renderPending=!1;this._distributor=new Xb.default(this);this.update()};
I.prototype.update=function(){var a=this;this._renderPending||(this._renderPending=!0,Ka.enqueue(function(){return a.render()}))};I.prototype._getRenderRoot=function(){for(var a=this,b=this;b;)b._renderPending&&(a=b),b=b._rendererForHost();return a};I.prototype._rendererForHost=function(){var a=this.host.getRootNode();if(t.isShadyRoot(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this._distributor.isInsertionPoint(d))return a};
I.prototype.render=function(){this._renderPending&&this._getRenderRoot()._render()};I.prototype._render=function(){this._changePending=this._renderPending=!1;this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints();this._skipUpdateInsertionPoints=!1;this.distribute();this.compose();this._hasRendered=!0};I.prototype.forceRender=function(){this._renderPending=!0;this.render()};
I.prototype.distribute=function(){for(var a=this._distributor.distribute(),b=0;b<a.length;b++)a[b]._render()};I.prototype.updateInsertionPoints=function(){var a=this.__insertionPoints;if(a)for(var b=0,c;b<a.length;b++)c=a[b],c.getRootNode()!==this&&this._distributor.clearAssignedSlots(c);a=this._insertionPoints=this._distributor.getInsertionPoints();for(b=0;b<a.length;b++)c=a[b],c.__shady=c.__shady||{},F.recordChildNodes(c),F.recordChildNodes(c.parentNode)};I.prototype.hasInsertionPoint=function(){return this._distributor.hasInsertionPoint()};
I.prototype.compose=function(){this._composeTree()};I.prototype._composeTree=function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var a=this._insertionPoints||[],b=0,c=a.length,d,e;b<c&&(d=a[b]);b++)e=d.parentNode,e!==this.host&&e!==this&&this._updateChildNodes(e,this._composeNode(e))};
I.prototype._composeNode=function(a){var b=[];a=(a.shadyRoot||a).childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this._distributor.isInsertionPoint(d))for(var e=d.__shady.distributedNodes||(d.__shady.distributedNodes=[]),f=0;f<e.length;f++){var g=e[f];this.isFinalDestination(d,g)&&b.push(g)}else b.push(d)}return b};I.prototype.isFinalDestination=function(a,b){return this._distributor.isFinalDestination(a,b)};
I.prototype._updateChildNodes=function(a,b){for(var c=z.childNodes(a),d=Tb.calculateSplices(b,c),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.removed.length&&(k=g.removed[h]);h++)z.parentNode(k)===a&&x.removeChild.call(a,k),c.splice(g.index+f,1);f-=g.addedCount}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.addedCount;h++)k=b[h],x.insertBefore.call(a,k,f),c.splice(h,0,k)};I.prototype.getInsertionPointTag=function(){return this._distributor.insertionPointTag};
Object.defineProperty(I.prototype,"_insertionPoints",{get:function(){this.__insertionPoints||this.updateInsertionPoints();return this.__insertionPoints||(this.__insertionPoints=[])},set:function(a){this.__insertionPoints=a},configurable:!0});D.patchShadowRootAccessors(I.prototype);Zb.ShadyRoot=I;Zb.attachShadow=function(a,b){if(!a)throw"Must provide a host.";if(!b)throw"Not enough arguments.";return new I($b,a)};var ac={};function bc(a){G.renderRootNode(a);return C.getProperty(a,"assignedSlot")||null}
var cc={addEventListener:Fb.addEventListener,removeEventListener:Fb.removeEventListener,appendChild:function(a){return G.insertBefore(this,a)},insertBefore:function(a,b){return G.insertBefore(this,a,b)},removeChild:function(a){return G.removeChild(this,a)},replaceChild:function(a,b){this.insertBefore(a,b);this.removeChild(b);return a},cloneNode:function(a){return G.cloneNode(this,a)},getRootNode:function(a){return G.getRootNode(this,a)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&
a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof Zb.ShadyRoot?a.host:void 0);return!!(a&&a instanceof Document)}},dc={get assignedSlot(){return bc(this)}},ec={querySelector:function(a){return G.query(this,function(b){return t.matchesSelector(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return G.query(this,function(b){return t.matchesSelector(b,a)})}},fc={assignedNodes:function(a){if("slot"===
this.localName)return G.renderRootNode(this),this.__shady?(a&&a.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},gc=t.extendAll({setAttribute:function(a,b){G.setAttribute(this,a,b)},removeAttribute:function(a){G.removeAttribute(this,a)},attachShadow:function(a){return Zb.attachShadow(this,a)},get slot(){return this.getAttribute("slot")},set slot(a){this.setAttribute("slot",a)},get assignedSlot(){return bc(this)}},ec,fc);Object.defineProperties(gc,D.ShadowRootAccessor);
var hc=t.extendAll({importNode:function(a,b){return G.importNode(a,b)}},ec);Object.defineProperties(hc,{_activeElement:D.ActiveElementAccessor.activeElement});function ic(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f.value?a[e]=f.value:Object.defineProperty(a,e,f)}}
ac.patchBuiltins=function(){ic(window.Node.prototype,cc);ic(window.Text.prototype,dc);ic(window.DocumentFragment.prototype,ec);ic(window.Element.prototype,gc);ic(window.Document.prototype,hc);window.HTMLSlotElement&&ic(window.HTMLSlotElement.prototype,fc);t.settings.hasDescriptors&&(D.patchAccessors(window.Node.prototype),D.patchAccessors(window.Text.prototype),D.patchAccessors(window.DocumentFragment.prototype),D.patchAccessors(window.Element.prototype),D.patchAccessors((window.customElements&&customElements.nativeHTMLElement||
HTMLElement).prototype),D.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&D.patchAccessors(window.HTMLSlotElement.prototype))};t.settings.inUse&&(window.ShadyDOM={},window.ShadyDOM.inUse=t.settings.inUse,window.ShadyDOM.patch=function(a){return a},window.ShadyDOM.isShadyRoot=t.isShadyRoot,window.ShadyDOM.enqueue=Ka.enqueue,window.ShadyDOM.flush=Ka.flush,window.ShadyDOM.settings=t.settings,window.ShadyDOM.filterMutations=Oa.filterMutations,window.ShadyDOM.observeChildren=Oa.observeChildren,window.ShadyDOM.unobserveChildren=Oa.unobserveChildren,window.ShadyDOM.nativeMethods=x,window.ShadyDOM.nativeTree=z,Fb.patchEvents(),ac.patchBuiltins(),
window.ShadowRoot=Zb.ShadyRoot);/*
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var J={};function jc(){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 kc(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=lc(c),c=c.replace(K.multipleSpaces," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=mc.MEDIA_RULE:c.match(K.keyframesRule)&&(a.type=mc.KEYFRAMES_RULE,a.keyframesName=a.selector.split(K.multipleSpaces).pop()):0===c.indexOf("--")?a.type=mc.MIXIN_RULE:
a.type=mc.STYLE_RULE);if(c=a.rules)for(var d=0,e=c.length,f;d<e&&(f=c[d]);d++)kc(f,b);return a}function lc(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}
function nc(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h;f<g&&(h=e[f]);f++)d=nc(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=oc(b),b=b.replace(K.mixinApply,"").replace(K.varApply,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}function oc(a){return a.replace(K.customProp,"").replace(K.mixinProp,"")}
var mc={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1E3},K={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g};J.StyleNode=jc;
J.parse=function(a){var b=a=a.replace(K.comments,"").replace(K.port,""),c=new jc;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null,d=new jc;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return kc(c,a)};J.stringify=nc;J.removeCustomPropAssignment=oc;J.types=mc;var L={},pc=!(window.ShadyDOM&&window.ShadyDOM.inUse),qc=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)");function rc(a){a&&(qc=qc&&!a.nativeCss&&!a.shimcssproperties,pc=pc&&!a.nativeShadow&&!a.shimshadow)}window.ShadyCSS?rc(window.ShadyCSS):window.WebComponents&&rc(window.WebComponents.flags);L.nativeShadow=pc;L.nativeCssVariables=qc;var M={VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:"(?:^|[^.#[:])",HOST_SUFFIX:"($|[.:[\\s>+~])"};var O={};function sc(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===J.types.MEDIA_RULE){var g=a.selector.match(M.MEDIA_MATCH);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===J.types.STYLE_RULE?b(a):c&&f===J.types.KEYFRAMES_RULE?c(a):f===J.types.MIXIN_RULE&&(e=!0);if((a=a.rules)&&!e)for(var e=0,f=a.length,h;e<f&&(h=a[e]);e++)sc(h,b,c,d)}}function tc(a,b){var c=document.createElement("style");b&&c.setAttribute("scope",b);c.textContent=a;return c}var P=null;
function xc(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);P?a.compareDocumentPosition(P)===Node.DOCUMENT_POSITION_PRECEDING&&(P=a):P=a}
function yc(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d;a:{var e=0;d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&0===--e)break a;d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=yc(a.substring(d+1),b);f=e.indexOf(",");if(-1===f)return b(c,e.trim(),"",a);d=e.substring(0,f).trim();e=e.substring(f+1).trim();return b(c,d,e,a)}O.toCssText=function(a,b){if(!a)return"";"string"===typeof a&&(a=J.parse(a));b&&sc(a,b);return J.stringify(a,L.nativeCssVariables)};
O.rulesForStyle=function(a){!a.__cssRules&&a.textContent&&(a.__cssRules=J.parse(a.textContent));return a.__cssRules||null};O.isKeyframesSelector=function(a){return!!a.parent&&a.parent.type===J.types.KEYFRAMES_RULE};O.forEachRule=sc;O.applyCss=function(a,b,c,d){a=tc(a,b);xc(a,c,d);return a};O.createScopeStyle=tc;O.applyStylePlaceHolder=function(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(P?P.nextSibling:null)||b.firstChild);return P=a};
O.applyStyle=xc;O.isTargetedBuild=function(a){return L.nativeShadow?"shadow"===a:"shady"===a};O.getCssBuildType=function(a){return a.getAttribute("css-build")};O.processVariableAndFallback=yc;O.setElementClassRaw=function(a,b){L.nativeShadow?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)};O.getIsExtends=function(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,typeExtension:c}};var Q={};function R(){}R.prototype.dom=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this._transformDom(a,b||"",c)};R.prototype._transformDom=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.element(a,b,c);if(a="template"===a.localName?(a.content||a._content).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this._transformDom(a[d],b,c)};
R.prototype.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(zc);c?d&&(b=d.replace("style-scope","").replace(b,""),O.setElementClassRaw(a,b)):O.setElementClassRaw(a,(d?d+" ":"")+"style-scope "+b)}};
R.prototype.elementStyles=function(a,b,c){var d=a.__cssBuild;L.nativeShadow||"shady"===d?b=O.toCssText(b,c):(a=O.getIsExtends(a),b=this.css(b,a.is,a.typeExtension,c)+"\n\n");return b.trim()};R.prototype.css=function(a,b,c,d){var e=this._calcHostScope(b,c);b=this._calcElementScope(b);var f=this;return O.toCssText(a,function(a){a.isScoped||(f.rule(a,b,e),a.isScoped=!0);d&&d(a,b,e)})};R.prototype._calcElementScope=function(a){return a?Ac+a:""};
R.prototype._calcHostScope=function(a,b){return b?"[is="+a+"]":a};R.prototype.rule=function(a,b,c){this._transformRule(a,this._transformComplexSelector,b,c)};R.prototype._transformRule=function(a,b,c,d){a.selector=a.transformedSelector=this._transformRuleCss(a,b,c,d)};R.prototype._transformRuleCss=function(a,b,c,d){var e=a.selector.split(Bc);if(!O.isKeyframesSelector(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Bc)};
R.prototype._transformComplexSelector=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Cc,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Dc,Ec+" $1");return a=a.replace(Fc,function(a,g,h){e||(a=d._transformCompoundSelector(h,g,b,c),e=e||a.stop,g=a.combinator,h=a.value);return g+h})};
R.prototype._transformCompoundSelector=function(a,b,c,d){var e=a.indexOf(Gc);0<=a.indexOf(Ec)?a=this._transformHostSelector(a,d):0!==e&&(a=c?this._transformSimpleSelector(a,c):a);c=!1;0<=e&&(b="",c=!0);var f;c&&(f=!0,c&&(a=a.replace(Hc,function(a,b){return" > "+b})));a=a.replace(Ic,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,combinator:b,stop:f}};R.prototype._transformSimpleSelector=function(a,b){a=a.split(Jc);a[0]+=b;return a.join(Jc)};
R.prototype._transformHostSelector=function(a,b){var c=a.match(Kc);return(c=c&&c[2].trim()||"")?c[0].match(Lc)?a.replace(Kc,function(a,c,f){return b+f}):c.split(Lc)[0]===b?c:Mc:a.replace(Ec,b)};R.prototype.documentRule=function(a){a.selector=a.parsedSelector;this.normalizeRootSelector(a);this._transformRule(a,this._transformDocumentSelector)};R.prototype.normalizeRootSelector=function(a){a.selector===Nc&&(a.selector="html")};
R.prototype._transformDocumentSelector=function(a){return a.match(Gc)?this._transformComplexSelector(a,Oc):this._transformSimpleSelector(a.trim(),Oc)};aa.global.Object.defineProperties(R.prototype,{SCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var Cc=/:(nth[-\w]+)\(([^)]+)\)/,Oc=":not(.style-scope)",Bc=",",Fc=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Lc=/[[.:#*]/,Ec=":host",Nc=":root",Gc="::slotted",Dc=new RegExp("^("+Gc+")"),Kc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Hc=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ic=/(.*):dir\((?:(ltr|rtl))\)/,Ac=".",Jc=":",zc="class",Mc="should_not_match",Pc=new R;Q.default=Pc;var S={};function Qc(a,b,c,d,e,f){this.styleRules=a||null;this.placeholder=b||null;this.ownStylePropertyNames=c||[];this.overrideStyleProperties=null;this.elementName=d||"";this.cssBuild=f||"";this.typeExtension=e||"";this.customStyle=this.scopeSelector=this.styleProperties=null}Qc.get=function(a){return a?a.__styleInfo:null};Qc.set=function(a,b){return a.__styleInfo=b};Qc.prototype._getStyleRules=function(){return this.styleRules};Qc.prototype._getStyleRules=Qc.prototype._getStyleRules;
S.default=Qc;var T={},Rc=window.Element.prototype,Sc=Rc.matches||Rc.matchesSelector||Rc.mozMatchesSelector||Rc.msMatchesSelector||Rc.oMatchesSelector||Rc.webkitMatchesSelector,Tc=navigator.userAgent.match("Trident");function U(){}U.prototype.decorateStyles=function(a){var b=this,c={},d=[],e=0;O.forEachRule(a,function(a){b.decorateRule(a);a.index=e++;b.collectPropertiesInCssText(a.propertyInfo.cssText,c)},function(a){d.push(a)});a._keyframes=d;a=[];for(var f in c)a.push(f);return a};
U.prototype.decorateRule=function(a){if(a.propertyInfo)return a.propertyInfo;var b={},c={};this.collectProperties(a,c)&&(b.properties=c,a.rules=null);b.cssText=this.collectCssText(a);return a.propertyInfo=b};U.prototype.collectProperties=function(a,b){var c=a.propertyInfo;if(c){if(c.properties)return Object.assign(b,c.properties),!0}else{for(var c=M.VAR_ASSIGN,d=a.parsedCssText,e;a=c.exec(d);){e=(a[2]||a[3]).trim();if("inherit"!==e||"unset"!==e)b[a[1].trim()]=e;e=!0}return e}};
U.prototype.collectCssText=function(a){return this.collectConsumingCssText(a.parsedCssText)};U.prototype.collectConsumingCssText=function(a){return a.replace(M.BRACKETED,"").replace(M.VAR_ASSIGN,"")};U.prototype.collectPropertiesInCssText=function(a,b){for(var c;c=M.VAR_CONSUMED.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};U.prototype.reify=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.valueForProperty(a[d],a)};
U.prototype.valueForProperty=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.valueForProperties(a,b);else{var c=this;a=O.processVariableAndFallback(a,function(a,e,f,g){if(!e)return a+g;(e=c.valueForProperty(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.valueForProperty(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};
U.prototype.valueForProperties=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){M.MIXIN_MATCH.lastIndex=0;if(e=M.MIXIN_MATCH.exec(d))d=this.valueForProperty(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e),f=f.trim(),f=this.valueForProperty(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};
U.prototype.applyProperties=function(a,b){var c="";a.propertyInfo||this.decorateRule(a);a.propertyInfo.cssText&&(c=this.valueForProperties(a.propertyInfo.cssText,b));a.cssText=c};
U.prototype.applyKeyframeTransforms=function(a,b){var c=a.cssText,d=a.cssText;null==a.hasAnimations&&(a.hasAnimations=M.ANIMATION_MATCH.test(c));if(a.hasAnimations)if(null==a.keyframeNamesToTransform){a.keyframeNamesToTransform=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.keyframeNamesToTransform.push(e))}else{for(e=0;e<a.keyframeNamesToTransform.length;++e)d=b[a.keyframeNamesToTransform[e]],c=d(c);d=c}a.cssText=d};
U.prototype.propertyDataFromStyles=function(a,b){var c={},d=this,e=[];O.forEachRule(a,function(a){a.propertyInfo||d.decorateRule(a);var f=a.transformedSelector||a.parsedSelector;b&&a.propertyInfo.properties&&f&&Sc.call(b,f)&&(d.collectProperties(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{properties:c,key:e}};
U.prototype.whenHostOrRootRule=function(a,b,c,d){b.propertyInfo||this.decorateRule(b);if(b.propertyInfo.properties){var e=O.getIsExtends(a),f=e.is,e=e.typeExtension;a=a.is?Q.default._calcHostScope(f,e):"html";var g=b.parsedSelector,e=":host > *"===g||"html"===g,h=0===g.indexOf(":host")&&!e;"shady"===c&&(e=g===a+" > *."+a||-1!==g.indexOf("html"),h=!e&&0===g.indexOf(a));"shadow"===c&&(e=":host > *"===g||"html"===g,h=h&&!e);if(e||h)c=a,h&&(L.nativeShadow&&!b.transformedSelector&&(b.transformedSelector=
Q.default._transformRuleCss(b,Q.default._transformComplexSelector,Q.default._calcElementScope(f),a)),c=b.transformedSelector||a),d({selector:c,isHost:h,isRoot:e})}};U.prototype.hostAndRootPropertiesForScope=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;O.forEachRule(b,function(b){e.whenHostOrRootRule(a,b,f,function(f){Sc.call(a._element||a,f.selector)&&(f.isHost?e.collectProperties(b,c):e.collectProperties(b,d))})},null,!0);return{rootProps:d,hostProps:c}};
U.prototype.transformStyles=function(a,b,c){var d=this,e=O.getIsExtends(a),f=Q.default._calcHostScope(e.is,e.typeExtension),e=a.extends?"\\"+f.slice(0,-1)+"\\]":f,g=new RegExp(M.HOST_PREFIX+e+M.HOST_SUFFIX),e=S.default.get(a).styleRules,h=this._elementKeyframeTransforms(a,e,c);return Q.default.elementStyles(a,e,function(a){d.applyProperties(a,b);L.nativeShadow||O.isKeyframesSelector(a)||!a.cssText||(d.applyKeyframeTransforms(a,h),d._scopeSelector(a,g,f,c))})};
U.prototype._elementKeyframeTransforms=function(a,b,c){a=b._keyframes;b={};if(!L.nativeShadow&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this._scopeKeyframes(e,c),b[e.keyframesName]=this._keyframesRuleTransformer(e);return b};U.prototype._keyframesRuleTransformer=function(a){return function(b){return b.replace(a.keyframesNameRx,a.transformedKeyframesName)}};
U.prototype._scopeKeyframes=function(a,b){a.keyframesNameRx=new RegExp(a.keyframesName,"g");a.transformedKeyframesName=a.keyframesName+"-"+b;a.transformedSelector=a.transformedSelector||a.selector;a.selector=a.transformedSelector.replace(a.keyframesName,a.transformedKeyframesName)};
U.prototype._scopeSelector=function(a,b,c,d){a.transformedSelector=a.transformedSelector||a.selector;d="."+d;for(var e=a.transformedSelector.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};U.prototype.applyElementScopeSelector=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&O.setElementClassRaw(a,e)};
U.prototype.applyElementStyle=function(a,b,c,d){b=d?d.textContent||"":this.transformStyles(a,b,c);var e=S.default.get(a),f=e.customStyle;f&&!L.nativeShadow&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));L.nativeShadow?e.customStyle?(e.customStyle.textContent=b,d=e.customStyle):b&&(d=O.applyCss(b,c,a.shadowRoot,e.placeholder)):d?d.parentNode||O.applyStyle(d,null,e.placeholder):b&&(d=O.applyCss(b,c,null,e.placeholder));d&&(d._useCount=d._useCount||0,e.customStyle!=
d&&d._useCount++,e.customStyle=d);Tc&&(d.textContent=d.textContent);return d};U.prototype.applyCustomStyle=function(a,b){var c=O.rulesForStyle(a),d=this;a.textContent=O.toCssText(c,function(a){var c=a.cssText=a.parsedCssText;a.propertyInfo&&a.propertyInfo.cssText&&(c=J.removeCustomPropAssignment(c),a.cssText=d.valueForProperties(c,b))})};aa.global.Object.defineProperties(U.prototype,{XSCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Uc=new U;T.default=Uc;var Vc={},Wc={},Xc=window.customElements;if(Xc&&!L.nativeShadow){var Yc=Xc.define;Xc.define=function(a,b,c){Wc[a]=O.applyStylePlaceHolder(a);return Yc.call(Xc,a,b,c)}}Vc.default=Wc;var Zc={};function $c(a){this.cache={};this.typeMax=void 0===a?100:a}$c.prototype._validate=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.properties[e]!==b[e])return!1}return!0};$c.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({properties:b,styleElement:c,scopeSelector:d});e.length>this.typeMax&&e.shift();this.cache[a]=e};$c.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this._validate(e,b,c))return e}};Zc.default=$c;var ad={};function bd(){}
if(!L.nativeShadow){var cd=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head){for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d],f=e;if(f.classList&&!f.classList.contains(Q.default.SCOPE_NAME)||f instanceof window.SVGElement&&(!f.hasAttribute("class")||0>f.getAttribute("class").indexOf(Q.default.SCOPE_NAME)))if(f=e.getRootNode(),f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=f.host))f=O.getIsExtends(f).is,Q.default.dom(e,f)}for(d=
0;d<c.removedNodes.length;d++)if(e=c.removedNodes[d],e.nodeType===Node.ELEMENT_NODE&&(f=void 0,e.classList?f=Array.from(e.classList):e.hasAttribute("class")&&(f=e.getAttribute("class").split(/\s+/)),void 0!==f)){var g=f.indexOf(Q.default.SCOPE_NAME);0<=g&&(f=f[g+1])&&Q.default.dom(e,f,!0)}}}},dd=new MutationObserver(cd),ed=function(a){dd.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.flush)ed(document);else{var fd=function(){ed(document.body)};window.HTMLImports?
window.HTMLImports.whenReady(fd):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){fd();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else fd()})}bd=function(){cd(dd.takeRecords())}}ad.flush=bd;var V={default:{}};var W={},gd=Promise.resolve();function hd(a){a._applyShimInvalid=!0}function id(a){return!a._applyShimInvalid}function jd(a){a._validating||(a._validating=!0,gd.then(function(){a._applyShimInvalid=!1;a._validating=!1}))}W.invalidate=function(a){(a=V.default[a])&&hd(a)};W.invalidateTemplate=hd;W.isValid=function(a){return(a=V.default[a])?id(a):!0};W.templateIsValid=id;W.isValidating=function(a){return(a=V.default[a])?a._validating:!1};W.templateIsValidating=function(a){return a._validating};
W.startValidating=function(a){jd(V.default[a])};W.startValidatingTemplate=jd;W.elementsAreInvalid=function(){for(var a in V.default)if(!id(V.default[a]))return!0;return!1};var kd={},ld=null,md=window.HTMLImports&&window.HTMLImports.whenReady||null,nd;kd.default=function(a){md?md(a):(ld||(ld=new Promise(function(a){nd=a}),"complete"===document.readyState?nd():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&nd()})),ld.then(function(){a&&a()}))};var od={updateNativeProperties:function(a,b){for(var c in b)null===c?a.style.removeProperty(c):a.style.setProperty(c,b[c])},getComputedStyleValue:function(a,b){return(a=window.getComputedStyle(a).getPropertyValue(b))?a.trim():""}};var pd=null,qd=null;function X(){this.customStyles=[];this.enqueued=!1}X.prototype.enqueueDocumentValidation=function(){!this.enqueued&&qd&&(this.enqueued=!0,kd.default(qd))};X.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.enqueueDocumentValidation())};X.prototype.getStyleForCustomStyle=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};
X.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;pd&&pd(d);c.__shadyCSSCachedStyle=d}}}return a};X.prototype.addCustomStyle=X.prototype.addCustomStyle;X.prototype.getStyleForCustomStyle=X.prototype.getStyleForCustomStyle;X.prototype.processStyles=X.prototype.processStyles;
Object.defineProperties(X.prototype,{transformCallback:{get:function(){return pd},set:function(a){pd=a}},validateCallback:{get:function(){return qd},set:function(a){var b=!1;qd||(b=!0);qd=a;b&&this.enqueueDocumentValidation()}}});var rd={},sd=new Zc.default;function Y(){var a=this;this._scopeCounter={};this._documentOwner=document.documentElement;var b=new J.StyleNode;b.rules=[];this._documentOwnerStyleInfo=S.default.set(this._documentOwner,new S.default(b));this._elementsHaveApplied=!1;this._customStyleInterface=this._applyShim=null;kd.default(function(){a._ensure()})}Y.prototype.flush=function(){ad.flush()};
Y.prototype._generateScopeSelector=function(a){var b=this._scopeCounter[a]=(this._scopeCounter[a]||0)+1;return a+"-"+b};Y.prototype.getStyleAst=function(a){return O.rulesForStyle(a)};Y.prototype.styleAstToString=function(a){return O.toCssText(a)};Y.prototype._gatherStyles=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};
Y.prototype._getCssBuild=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};
Y.prototype.prepareTemplate=function(a,b,c){if(!a._prepared){a._prepared=!0;a.name=b;a.extends=c;V.default[b]=a;var d=this._getCssBuild(a),e=this._gatherStyles(a);c={is:b,extends:c,__cssBuild:d};L.nativeShadow||Q.default.dom(a.content,b);this._ensure();var f=this._applyShim.detectMixin(e),e=J.parse(e);f&&L.nativeCssVariables&&this._applyShim.transformRules(e,b);a._styleAst=e;a._cssBuild=d;d=[];L.nativeCssVariables||(d=T.default.decorateStyles(a._styleAst,c));if(!d.length||L.nativeCssVariables)b=this._generateStaticStyle(c,
a._styleAst,L.nativeShadow?a.content:null,Vc.default[b]),a._style=b;a._ownPropertyNames=d}};Y.prototype._generateStaticStyle=function(a,b,c,d){b=Q.default.elementStyles(a,b);if(b.length)return O.applyCss(b,a.is,c,d)};Y.prototype._prepareHost=function(a){var b=O.getIsExtends(a),c=b.is,b=b.typeExtension,d=Vc.default[c],e=V.default[c],f,g,h;e&&(f=e._styleAst,g=e._ownPropertyNames,h=e._cssBuild);return S.default.set(a,new S.default(f,d,g,c,b,h))};
Y.prototype._ensureApplyShim=function(){if(!this._applyShim)if(window.ShadyCSS.ApplyShim)this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=W.invalidate;else{var a={};this._applyShim=(a.detectMixin=function(){return!1},a.transformRule=function(){},a.transformRules=function(){},a)}};
Y.prototype._ensureCustomStyleInterface=function(){var a=this;if(!this._customStyleInterface)if(window.ShadyCSS.CustomStyleInterface)this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(b){a.transformCustomStyleForDocument(b)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){(a._customStyleInterface.enqueued||a._elementsHaveApplied)&&a.flushCustomStyles()})};else{var b={};this._customStyleInterface=
(b.processStyles=function(){},b.enqueued=!1,b.getStyleForCustomStyle=function(){return null},b)}};Y.prototype._ensure=function(){this._ensureApplyShim();this._ensureCustomStyleInterface()};
Y.prototype.flushCustomStyles=function(){this._ensure();var a=this._customStyleInterface.processStyles();this._customStyleInterface.enqueued&&(L.nativeCssVariables?this._revalidateCustomStyleApplyShim(a):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(a)),this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!L.nativeCssVariables&&this.styleDocument())};
Y.prototype.styleElement=function(a,b){var c=O.getIsExtends(a).is,d=S.default.get(a);d||(d=this._prepareHost(a));this._isRootOwner(a)||(this._elementsHaveApplied=!0);b&&(d.overrideStyleProperties=d.overrideStyleProperties||{},Object.assign(d.overrideStyleProperties,b));if(L.nativeCssVariables){if(d.overrideStyleProperties&&od.updateNativeProperties(a,d.overrideStyleProperties),((b=V.default[c])||this._isRootOwner(a))&&b&&b._style&&!W.templateIsValid(b))W.templateIsValidating(b)||(this._ensure(),this._applyShim.transformRules(b._styleAst,
c),b._style.textContent=Q.default.elementStyles(a,d.styleRules),W.startValidatingTemplate(b)),L.nativeShadow&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=Q.default.elementStyles(a,d.styleRules)),d.styleRules=b._styleAst}else this._updateProperties(a,d),d.ownStylePropertyNames&&d.ownStylePropertyNames.length&&this._applyStyleProperties(a,d)};Y.prototype._styleOwnerForNode=function(a){return(a=a.getRootNode().host)?S.default.get(a)?a:this._styleOwnerForNode(a):this._documentOwner};
Y.prototype._isRootOwner=function(a){return a===this._documentOwner};
Y.prototype._applyStyleProperties=function(a,b){var c=O.getIsExtends(a).is,d=sd.fetch(c,b.styleProperties,b.ownStylePropertyNames),e=d?d.styleElement:null,f=b.scopeSelector;b.scopeSelector=d&&d.scopeSelector||this._generateScopeSelector(c);e=T.default.applyElementStyle(a,b.styleProperties,b.scopeSelector,e);L.nativeShadow||T.default.applyElementScopeSelector(a,b.scopeSelector,f);d||sd.store(c,b.styleProperties,e,b.scopeSelector);return e};
Y.prototype._updateProperties=function(a,b){var c=this._styleOwnerForNode(a),d=S.default.get(c),c=Object.create(d.styleProperties||null),e=T.default.hostAndRootPropertiesForScope(a,b.styleRules);a=T.default.propertyDataFromStyles(d.styleRules,a).properties;Object.assign(c,e.hostProps,a,e.rootProps);this._mixinOverrideStyles(c,b.overrideStyleProperties);T.default.reify(c);b.styleProperties=c};Y.prototype._mixinOverrideStyles=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};
Y.prototype.styleDocument=function(a){this.styleSubtree(this._documentOwner,a)};Y.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this._isRootOwner(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};
Y.prototype._revalidateCustomStyleApplyShim=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&this._revalidateApplyShim(c)}};Y.prototype._applyCustomStyles=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&T.default.applyCustomStyle(c,this._documentOwnerStyleInfo.styleProperties)}};
Y.prototype.transformCustomStyleForDocument=function(a){var b=this,c=O.rulesForStyle(a);O.forEachRule(c,function(a){L.nativeShadow?Q.default.normalizeRootSelector(a):Q.default.documentRule(a);L.nativeCssVariables&&(b._ensure(),b._applyShim.transformRule(a))});L.nativeCssVariables?a.textContent=O.toCssText(c):this._documentOwnerStyleInfo.styleRules.rules.push(c)};
Y.prototype._revalidateApplyShim=function(a){if(L.nativeCssVariables){var b=O.rulesForStyle(a);this._ensure();this._applyShim.transformRules(b);a.textContent=O.toCssText(b)}};Y.prototype.getComputedStyleValue=function(a,b){var c;L.nativeCssVariables||(c=(S.default.get(a)||S.default.get(this._styleOwnerForNode(a))).styleProperties[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
Y.prototype.setElementClass=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===Q.default.SCOPE_NAME){c=d[e+1];break}}c&&b.push(Q.default.SCOPE_NAME,c);L.nativeCssVariables||(c=S.default.get(a))&&c.scopeSelector&&b.push(T.default.XSCOPE_NAME,c.scopeSelector);O.setElementClassRaw(a,b.join(" "))};Y.prototype._styleInfoForNode=function(a){return S.default.get(a)};
Y.prototype.flush=Y.prototype.flush;Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.setElementClass;Y.prototype._styleInfoForNode=Y.prototype._styleInfoForNode;Y.prototype.transformCustomStyleForDocument=Y.prototype.transformCustomStyleForDocument;
Y.prototype.getStyleAst=Y.prototype.getStyleAst;Y.prototype.styleAstToString=Y.prototype.styleAstToString;Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return L.nativeShadow}},nativeCss:{get:function(){return L.nativeCssVariables}}});rd.default=Y;var Z=new rd.default,td,ud;window.ShadyCSS&&(td=window.ShadyCSS.ApplyShim,ud=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:L.nativeCssVariables,nativeShadow:L.nativeShadow};td&&(window.ShadyCSS.ApplyShim=td);
ud&&(window.ShadyCSS.CustomStyleInterface=ud);
'use strict';var fa={scope:{},getGlobal:function(k){return"undefined"!=typeof window&&window===k?k:"undefined"!=typeof global&&null!=global?global:k}};fa.global=fa.getGlobal(this);
(function(){function k(){var a=this;this._scopeCounter={};this._documentOwner=document.documentElement;var b=new ta;b.rules=[];this._documentOwnerStyleInfo=w.set(this._documentOwner,new w(b));this._elementsHaveApplied=!1;this._customStyleInterface=this._applyShim=null;hb(function(){a._ensure()})}function F(){this.customStyles=[];this.enqueued=!1}function ib(){}function ga(a){this.cache={};this.typeMax=void 0===a?100:a}function n(){}function w(a,b,c,d,e,f){this.styleRules=a||null;this.placeholder=
b||null;this.ownStylePropertyNames=c||[];this.overrideStyleProperties=null;this.elementName=d||"";this.cssBuild=f||"";this.typeExtension=e||"";this.customStyle=this.scopeSelector=this.styleProperties=null}function r(){}function ta(){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 Hc(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,
configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;m(this)&&(e=[],N(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];1===g.__CE_state&&a.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(this):a.patchTree(this);return b}})}function c(b,c){z(b,"insertAdjacentElement",function(b,d){var e=m(d);b=c.call(this,b,d);e&&a.disconnectTree(d);m(b)&&a.connectTree(d);return b})}jb?z(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=
a=jb.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(ua&&ua.get)b(Element.prototype,ua);else if(va&&va.get)b(HTMLElement.prototype,va);else{var d=wa.call(document,"div");a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return kb.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)xa.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)ha.call(b,d.childNodes[0])}})})}z(Element.prototype,
"setAttribute",function(b,c){if(1!==this.__CE_state)return lb.call(this,b,c);var d=ya.call(this,b);lb.call(this,b,c);c=ya.call(this,b);d!==c&&a.attributeChangedCallback(this,b,d,c,null)});z(Element.prototype,"setAttributeNS",function(b,c,d){if(1!==this.__CE_state)return mb.call(this,b,c,d);var e=ia.call(this,b,c);mb.call(this,b,c,d);d=ia.call(this,b,c);e!==d&&a.attributeChangedCallback(this,c,e,d,b)});z(Element.prototype,"removeAttribute",function(b){if(1!==this.__CE_state)return nb.call(this,b);
var c=ya.call(this,b);nb.call(this,b);null!==c&&a.attributeChangedCallback(this,b,c,null,null)});z(Element.prototype,"removeAttributeNS",function(b,c){if(1!==this.__CE_state)return ob.call(this,b,c);var d=ia.call(this,b,c);ob.call(this,b,c);var e=ia.call(this,b,c);d!==e&&a.attributeChangedCallback(this,c,d,e,b)});pb?c(HTMLElement.prototype,pb):qb?c(Element.prototype,qb):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");rb(a,Element.prototype,{prepend:Ic,append:Jc});
Kc(a,Element.prototype,{before:Lc,after:Mc,replaceWith:Nc,remove:Oc})}function Kc(a,b,c){b.before=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m(a)});c.before.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.after=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof
Node&&m(a)});c.after.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.replaceWith=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];var f=d.filter(function(a){return a instanceof Node&&m(a)}),g=m(this);c.replaceWith.apply(this,d);for(var h=0;h<f.length;h++)a.disconnectTree(f[h]);if(g)for(a.disconnectTree(this),f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.remove=
function(){var b=m(this);c.remove.call(this);b&&a.disconnectTree(this)}}function Pc(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&m(this))for(var c=Array(h),l=0;l<h;l++)c[l]=e[l]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.disconnectTree(c[b])}}})}z(Node.prototype,"insertBefore",function(b,
d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=sb.call(this,b,d);if(m(this))for(d=0;d<c.length;d++)a.connectTree(c[d]);return b}c=m(b);d=sb.call(this,b,d);c&&a.disconnectTree(b);m(this)&&a.connectTree(b);return d});z(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=ha.call(this,b);if(m(this))for(var e=0;e<c.length;e++)a.connectTree(c[e]);return b}c=m(b);e=ha.call(this,b);c&&a.disconnectTree(b);
m(this)&&a.connectTree(b);return e});z(Node.prototype,"cloneNode",function(b){b=kb.call(this,b);this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});z(Node.prototype,"removeChild",function(b){var c=m(b),e=xa.call(this,b);c&&a.disconnectTree(b);return e});z(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=tb.call(this,b,d);if(m(this))for(a.disconnectTree(d),d=0;d<c.length;d++)a.connectTree(c[d]);
return b}var c=m(b),f=tb.call(this,b,d),g=m(this);g&&a.disconnectTree(d);c&&a.disconnectTree(b);g&&a.connectTree(b);return f});za&&za.get?b(Node.prototype,za):a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)xa.call(this,this.firstChild);ha.call(this,document.createTextNode(a))}})})}function Qc(a){z(Document.prototype,"createElement",
function(b){if(this.__CE_hasRegistry){var c=a.localNameToDefinition(b);if(c)return new c.constructor}b=wa.call(this,b);a.patch(b);return b});z(Document.prototype,"importNode",function(b,c){b=Rc.call(this,b,c);this.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});z(Document.prototype,"createElementNS",function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.localNameToDefinition(c);if(d)return new d.constructor}b=Sc.call(this,b,c);a.patch(b);
return b});rb(a,Document.prototype,{prepend:Tc,append:Uc})}function rb(a,b,c){b.prepend=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m(a)});c.prepend.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.append=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&
m(a)});c.append.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)}}function Vc(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.constructorToDefinition(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=wa.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=
1,e.__CE_definition=d,a.patch(e),e;var d=e.length-1,f=e[d];if(f===ub)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[d]=ub;Object.setPrototypeOf(f,b.prototype);a.patch(f);return f}b.prototype=Wc.prototype;return b}()}function t(a){this._elementDefinitionIsRunning=!1;this._internals=a;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=!1;this._unflushedLocalNames=[];this._documentConstructionObserver=
new Aa(a,document)}function Ba(){var a=this;this._resolve=this._value=void 0;this._promise=new Promise(function(b){a._resolve=b;a._value&&b(a._value)})}function Aa(a,b){this._internals=a;this._document=b;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}function A(){this._localNameToDefinition=new Map;
this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}function p(a,b){if(a!==vb)throw new TypeError("Illegal constructor");a=document.createDocumentFragment();a.__proto__=p.prototype;a._init(b);return a}function y(a){this.root=a;this.insertionPointTag="slot"}function R(a){if(!B(a,"firstChild")){a.__shady=a.__shady||{};a.__shady.firstChild=wb(a);a.__shady.lastChild=xb(a);yb(a);for(var b=a.__shady.childNodes=aa(a),c=0,d;c<b.length&&(d=b[c]);c++)d.__shady=d.__shady||{},d.__shady.parentNode=
a,d.__shady.nextSibling=b[c+1]||null,d.__shady.previousSibling=b[c-1]||null,zb(d)}}function Xc(a){var b=a&&a._observer;b&&(b.callbacks.delete(a._callback),b.callbacks.size||(a._node.__shady.observer=null))}function Yc(a,b){a.__shady=a.__shady||{};a.__shady.observer||(a.__shady.observer=new ja);a.__shady.observer.callbacks.add(b);var c=a.__shady.observer;return{_callback:b,_observer:c,_node:a,takeRecords:function(){return c.takeRecords()}}}function ja(){this._scheduled=!1;this.addedNodes=[];this.removedNodes=
[];this.callbacks=new Set}function G(a){return"ShadyRoot"===a.__localName}function S(a){a=a.getRootNode();if(G(a))return a}function Ca(a,b){if(a&&b)for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length&&(e=c[d]);d++){var f=e,g=a,h=Object.getOwnPropertyDescriptor(b,f);h&&Object.defineProperty(g,f,h)}return a||b}function Ab(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(d=0;d<c.length;d++)Ca(a,c[d]);return a}function Zc(a,b){for(var c in b)a[c]=b[c];return a}function Bb(a){Da.push(a);
Ea.textContent=Cb++}function Db(a){Fa||(Fa=!0,Bb(Ga));ba.push(a)}function Ga(){Fa=!1;for(var a=!!ba.length;ba.length;)ba.shift()();return a}function $c(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})}function Eb(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Fb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function Ha(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g;e<f&&(g=d[e]);e++){var h;a:{var l;h=g;l=a;var k=b;switch(h.nodeType){case Node.ELEMENT_NODE:for(var I=h.localName,m="<"+I,n=h.attributes,p=0;l=n[p];p++)m+=" "+l.name+'="'+l.value.replace(ad,Eb)+'"';m+=">";h=bd[I]?m:m+Ha(h,k)+"</"+
I+">";break a;case Node.TEXT_NODE:h=h.data;h=l&&cd[l.localName]?h:h.replace(dd,Eb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),Error("not implemented");}}c+=h}return c}function T(a){C.currentNode=a;return C.parentNode()}function wb(a){C.currentNode=a;return C.firstChild()}function xb(a){C.currentNode=a;return C.lastChild()}function aa(a){var b=[];C.currentNode=a;for(a=C.firstChild();a;)b.push(a),a=C.nextSibling();return b}function Gb(a){D.currentNode=
a;return D.firstChild()}function Hb(a){D.currentNode=a;return D.lastChild()}function Ib(a){D.currentNode=a;return D.previousSibling()}function Jb(a){D.currentNode=a;return D.nextSibling()}function Kb(a){var b=[];D.currentNode=a;for(a=D.firstChild();a;)b.push(a),a=D.nextSibling();return b}function Lb(a){return Ha(a,function(a){return aa(a)})}function Mb(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=
c.nodeValue;return b}function B(a,b){return void 0!==(a.__shady&&a.__shady[b])}function U(a){return{get:function(){var b=this.__shady&&this.__shady[a];return void 0!==b?b:Nb[a](this)},configurable:!0}}function L(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Could not define",d,"on",a)}}function O(a){L(a,Ob);L(a,Ia);L(a,Ja)}function Pb(a,b,c){zb(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};
c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild=a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=null}function Qb(a){var b=B(a,"parentNode")&&a.__shady&&a.__shady.parentNode,c,d=S(a);if(b||d){c=
Rb(a);if(b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var e=a.__shady.previousSibling,f=a.__shady.nextSibling;e&&(e.__shady=e.__shady||{},e.__shady.nextSibling=f);f&&(f.__shady=f.__shady||{},f.__shady.previousSibling=e);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;B(b,"childNodes")&&(b.__shady.childNodes=null)}if(e=d){for(var g,
e=d._insertionPoints,f=0;f<e.length;f++){var h=e[f],l;a:{for(l=h;l;){if(l==a){l=!0;break a}l=l.parentNode}l=void 0}if(l)for(h=h.assignedNodes({flatten:!0}),l=0;l<h.length;l++){g=!0;var k=h[l],I=T(k);I&&V.call(I,k)}}e=g}g=e;b=b&&d&&b.localName===d.getInsertionPointTag();if(g||b)d._skipUpdateInsertionPoints=!1,ka(d)}Ka(a);return c}function La(a,b,c){if(a=a.__shady&&a.__shady.observer)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.schedule()}function Ma(a){if(a&&a.nodeType){var b=a.__ownerShadyRoot;
void 0===b&&(b=G(a)?a:(b=a.parentNode)?Ma(b):a,document.documentElement.contains(a)&&(a.__ownerShadyRoot=b));return b}}function Sb(a,b,c){var d,e=c.getInsertionPointTag();if(a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||a.__noInsertionPoint)a.localName===e&&(R(b),R(a),d=!0);else for(var e=a.querySelectorAll(e),f=0,g,h;f<e.length&&(g=e[f]);f++)h=g.parentNode,h===a&&(h=b),h=Sb(g,h,c),d=d||h;return d}function Ka(a){if(void 0!==a.__ownerShadyRoot)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Ka(e);
a.__ownerShadyRoot=void 0}function Rb(a){if((a=a.parentNode)&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())return ka(a.shadyRoot),!0}function ka(a){a._changePending=!0;a.update()}function Tb(a,b){"slot"===b?Rb(a):"slot"===a.localName&&"name"===b&&(a=S(a))&&a.update()}function Ub(a,b,c){var d=[];Vb(a.childNodes,b,c,d);return d}function Vb(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var l=b,k=c,I=d,m=l(h);m&&I.push(h);k&&k(m)?h=m:(Vb(h.childNodes,
l,k,I),h=void 0)}if(h)return!0}}function Wb(a){a=a.getRootNode();G(a)&&a.render()}function Xb(a,b,c){if(c){var d=c.__shady&&c.__shady.parentNode;if(void 0!==d&&d!==a||void 0===d&&T(c)!==a)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(c===b)return b;b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(d=b.__shady&&b.__shady.parentNode,d?(La(d,null,b),Qb(b)):(b.parentNode&&V.call(b.parentNode,b),Ka(b)));var d=c,
e=S(a),f;e&&(b.__noInsertionPoint&&!e._changePending&&(e._skipUpdateInsertionPoints=!0),f=Sb(b,a,e))&&(e._skipUpdateInsertionPoints=!1);if(B(a,"firstChild"))if(yb(a),a.__shady=a.__shady||{},B(a,"firstChild")&&(a.__shady.childNodes=null),b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var g=b.childNodes,h=0;h<g.length;h++)Pb(g[h],a,d);b.__shady=b.__shady||{};g=B(b,"firstChild")?null:void 0;b.__shady.firstChild=b.__shady.lastChild=g;b.__shady.childNodes=g}else Pb(b,a,d);var g=f,h=e&&e.getInsertionPointTag()||
"",l=b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!b.__noInsertionPoint&&h&&b.querySelector(h);f=l&&l.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;((l=l||b.localName===h)||a.localName===h||g)&&e&&ka(e);(e=a&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())&&ka(a.shadyRoot);if(!(e||l&&!f||a.shadyRoot||d&&G(d.parentNode)&&d.parentNode._renderPending)){if(c&&(d=S(c))){var k;if(c.localName===d.getInsertionPointTag())a:{d=c.assignedNodes({flatten:!0});e=Ma(c);f=0;for(g=d.length;f<g&&(k=d[f]);f++)if(e.isFinalDestination(c,
k))break a;k=void 0}else k=c;c=k}k=G(a)?a.host:a;c?Na.call(k,b,c):Yb.call(k,b)}La(a,b);return b}function Zb(a,b){if(a.ownerDocument!==document)return Oa.call(document,a,b);var c=Oa.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=Zb(a[b],!0),c.appendChild(d)}return c}function Pa(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===
document&&c.push(window);return c}function $b(a,b){if(!G)return a;a=Pa(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!G(f)||-1<g)return d}function Qa(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}Zc(b,a);b.prototype=a.prototype;return b}function ac(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}function ed(a){var b=
a.composedPath(),c;Object.defineProperty(a,"currentTarget",{get:function(){return c},configurable:!0});for(var d=b.length-1;0<=d;d--)if(c=b[d],ac(a,c,"capture"),a.__propagationStopped)return;Object.defineProperty(a,"eventPhase",{value:Event.AT_TARGET});for(var e,d=0;d<b.length;d++)if(c=b[d],0===d||c.shadowRoot&&c.shadowRoot===e)if(ac(a,c,"bubble"),c!==window&&(e=c.getRootNode()),a.__propagationStopped)break}function fd(){for(var a in Ra)window.addEventListener(a,function(a){a.__target||(bc(a),ed(a),
a.stopImmediatePropagation())},!0)}function bc(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(E.hasDescriptors){var b=cc,c=Object.getPrototypeOf(a);if(!c.hasOwnProperty("__patchProto")){var d=Object.create(c);d.__sourceProto=c;Ca(d,b);c.__patchProto=d}a.__proto__=c.__patchProto}else Ca(a,cc)}function ca(a,b,c){return{index:a,removed:b,addedCount:c}}function gd(a,b,c,d,e,f){var g=0,h=0,l=Math.min(c-b,f-e);if(0==b&&0==e)a:{for(g=0;g<l;g++)if(a[g]!==d[g])break a;g=l}if(c==a.length&&f==d.length){for(var h=
l-g,l=a.length,k=d.length,m=0;m<h&&hd(a[--l],d[--k]);)m++;h=m}b+=g;e+=g;c-=h;f-=h;if(0==c-b&&0==f-e)return[];if(b==c){for(c=ca(b,[],0);e<f;)c.removed.push(d[e++]);return[c]}if(e==f)return[ca(b,[],c-b)];g=b;h=e;f=f-h+1;l=c-g+1;c=Array(f);for(k=0;k<f;k++)c[k]=Array(l),c[k][0]=k;for(k=0;k<l;k++)c[0][k]=k;for(k=1;k<f;k++)for(m=1;m<l;m++)if(a[g+m-1]===d[h+k-1])c[k][m]=c[k-1][m-1];else{var n=c[k-1][m]+1,p=c[k][m-1]+1;c[k][m]=n<p?n:p}f=c.length-1;g=c[0].length-1;h=c[f][g];for(a=[];0<f||0<g;)0==f?(a.push(2),
g--):0==g?(a.push(3),f--):(l=c[f-1][g-1],k=c[f-1][g],m=c[f][g-1],n=k<m?k<l?k:l:m<l?m:l,n==l?(l==h?a.push(0):(a.push(1),h=l),f--,g--):n==k?(a.push(3),f--,h=k):(a.push(2),g--,h=m));a.reverse();c=void 0;f=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:c&&(f.push(c),c=void 0);b++;e++;break;case 1:c||(c=ca(b,[],0));c.addedCount++;b++;c.removed.push(d[e]);e++;break;case 2:c||(c=ca(b,[],0));c.addedCount++;b++;break;case 3:c||(c=ca(b,[],0)),c.removed.push(d[e]),e++}c&&f.push(c);return f}function hd(a,b){return a===
b}function dc(a){Wb(a);return a.__shady&&a.__shady.assignedSlot||null}function W(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f.value?a[e]=f.value:Object.defineProperty(a,e,f)}}function ec(a){var b=id.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}function m(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?
a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Sa(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}function N(a,b,c){c=void 0===c?new Set:c;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)N(d,b,c);d=Sa(a,e);continue}else if("template"===f){d=Sa(a,e);continue}if(e=
e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)N(e,b,c)}d=d.firstChild?d.firstChild:Sa(a,d)}}function z(a,b,c){a[b]=c}function Ta(a){a=a.replace(H.comments,"").replace(H.port,"");var b=fc,c=a,d=new ta;d.start=0;d.end=c.length;for(var e=d,f=0,g=c.length;f<g;f++)if("{"===c[f]){e.rules||(e.rules=[]);var h=e,k=h.rules[h.rules.length-1]||null,e=new ta;e.start=f+1;e.parent=h;e.previous=k;h.rules.push(e)}else"}"===c[f]&&(e.end=f+1,e=e.parent||d);return b(d,a)}function fc(a,b){var c=b.substring(a.start,
a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=jd(c),c=c.replace(H.multipleSpaces," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=K.MEDIA_RULE:c.match(H.keyframesRule)&&(a.type=K.KEYFRAMES_RULE,a.keyframesName=a.selector.split(H.multipleSpaces).pop()):0===c.indexOf("--")?a.type=K.MIXIN_RULE:a.type=K.STYLE_RULE);if(c=a.rules)for(var d=
0,e=c.length,f;d<e&&(f=c[d]);d++)fc(f,b);return a}function jd(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}function gc(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h;f<g&&(h=e[f]);f++)d=gc(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(H.customProp,"").replace(H.mixinProp,""),b=b.replace(H.mixinApply,"").replace(H.varApply,
"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}function hc(a){a&&(x=x&&!a.nativeCss&&!a.shimcssproperties,u=u&&!a.nativeShadow&&!a.shimshadow)}function X(a,b){if(!a)return"";"string"===typeof a&&(a=Ta(a));b&&Y(a,b);return gc(a,x)}function la(a){!a.__cssRules&&a.textContent&&(a.__cssRules=Ta(a.textContent));return a.__cssRules||null}function ic(a){return!!a.parent&&a.parent.type===K.KEYFRAMES_RULE}function Y(a,b,c,d){if(a){var e=!1,
f=a.type;if(d&&f===K.MEDIA_RULE){var g=a.selector.match(kd);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===K.STYLE_RULE?b(a):c&&f===K.KEYFRAMES_RULE?c(a):f===K.MIXIN_RULE&&(e=!0);if((a=a.rules)&&!e)for(var e=0,f=a.length,h;e<f&&(h=a[e]);e++)Y(h,b,c,d)}}function Ua(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;jc(e,c,d);return e}function jc(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);P?a.compareDocumentPosition(P)===Node.DOCUMENT_POSITION_PRECEDING&&
(P=a):P=a}function kc(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d;a:{var e=0;d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&0===--e)break a;d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=kc(a.substring(d+1),b);f=e.indexOf(",");if(-1===f)return b(c,e.trim(),"",a);d=e.substring(0,f).trim();e=e.substring(f+1).trim();return b(c,d,e,a)}function ma(a,b){u?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}function Q(a){var b=
a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,typeExtension:c}}function ld(a){(a=na[a])&&(a._applyShimInvalid=!0)}function md(a){a._validating||(a._validating=!0,nd.then(function(){a._applyShimInvalid=!1;a._validating=!1}))}function hb(a){lc?lc(a):(Va||(Va=new Promise(function(a){Wa=a}),"complete"===document.readyState?Wa():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&Wa()})),Va.then(function(){a&&
a()}))}(function(a){function b(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function c(a){if(m)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!h(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=document.querySelectorAll("link[rel=import]:not(import-dependency)"),
c=b.length;if(c)for(var d=0,e=b.length,f;d<e&&(f=b[d]);d++)g(f,function(){0===--c&&a()});else a()}function e(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",b)}}function f(a){e(function(){return d(function(){return a&&a()})})}function g(a,b){if(a.__loaded)b&&b();else if("script"!==a.localName||a.src){var c=function(d){a.removeEventListener(d.type,
c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);x&&"style"===a.localName||a.addEventListener("error",c)}else a.__loaded=!0,b&&b()}function h(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.documents={};this.inflight=0;this.dynamicImportsMO=new MutationObserver(function(b){return a.handleMutations(b)});e(function(){a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0});a.loadImports(document)})}var m="import"in document.createElement("link"),
n=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return n||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var p=/(^\/)|(^#)|(^[\w-\d]*:)/,r=/(url\()([^)]*)(\))/g,v=/(@import[\s]+(?!url\())([^;]*)(;)/g,w=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,q={fixUrls:function(a,b){a.href&&a.setAttribute("href",q.replaceAttrUrl(a.getAttribute("href"),b));a.src&&a.setAttribute("src",q.replaceAttrUrl(a.getAttribute("src"),
b));"style"===a.localName&&q.resolveUrlsInStyle(a,b)},fixUrlsInTemplates:function(a,b){a=a.querySelectorAll("template");for(var c=0;c<a.length;c++)q.fixUrlsInTemplate(a[c],b)},fixUrlsInTemplate:function(a,b){a=a.content||a;for(var c=a.querySelectorAll("style, [src], [style]"),d=0;d<c.length;d++){var e=c[d];"style"==e.localName?q.resolveUrlsInStyle(e,b):q.fixUrlAttributes(e,b)}q.fixUrlsInTemplates(a,b)},fixUrlAttributes:function(a,b){for(var c=["src","style"],d=0,e;d<c.length&&(e=c[d]);d++){var f=
a.attributes[e],g=f&&f.value;g&&0>g.search(/({{|\[\[)/)&&(f.value="style"===e?q.resolveUrlsInCssText(g,b):q.replaceAttrUrl(g,b))}},resolveUrlsInStyle:function(a,b){a.textContent=q.resolveUrlsInCssText(a.textContent,b)},resolveUrlsInCssText:function(a,b){a=q.replaceUrls(a,b,r);return a=q.replaceUrls(a,b,v)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=q.resolveUrl(a,b));return c+"'"+a+"'"+e})},replaceAttrUrl:function(a,b){return a&&p.test(a)?a:q.resolveUrl(a,
b)},resolveUrl:function(a,b){if(void 0===q.__workingURL){q.__workingURL=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";q.__workingURL="http://a/c%20d"===c.href}catch(Ld){}}if(q.__workingURL)return(new URL(a,b)).href;c=q.__tempDoc;c||(c=document.implementation.createHTMLDocument("temp"),q.__tempDoc=c,c.__base=c.createElement("base"),c.head.appendChild(c.__base),c.__anchor=c.createElement("a"));c.__base.href=b;c.__anchor.href=a;return c.__anchor.href||a}},u={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=
a.split(",");var d=a[1],d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,u.async);e.onload=function(){var a=e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},x=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);
k.prototype.loadImports=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b<c;b++)this.loadImport(a[b])};k.prototype.loadImport=function(a){var b=this,c=a.href;if(void 0!==this.documents[c]){var d=this.documents[c];d&&d.__loaded&&(a.import=d,this.fireEventIfNeeded(a))}else this.inflight++,this.documents[c]="pending",u.load(c,function(a,d){a=b.makeDocument(a,d||c);b.documents[c]=a;b.inflight--;b.loadImports(a);b.processImportsIfLoadingDone()},function(){b.documents[c]=null;
b.inflight--;b.processImportsIfLoadingDone()})};k.prototype.makeDocument=function(a,b){if(!a)return document.createDocumentFragment();x&&(a=a.replace(w,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.replaceAttrUrl(c.getAttribute("href"),b),c.removeAttribute("href");for(var 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"]'),d=0,e=0,f=c.length,h;e<f&&(h=c[e]);e++)g(h),q.fixUrls(h,b),h.setAttribute("import-dependency",""),"script"===h.localName&&!h.src&&h.textContent&&(h.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(h.textContent+("\n//# sourceURL="+
b+(d?"-"+d:"")+".js\n"))),h.textContent="",d++);q.fixUrlsInTemplates(a,b);return a};k.prototype.processImportsIfLoadingDone=function(){var a=this;if(!this.inflight){this.dynamicImportsMO.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),a.fireEvents())};this.waitForStyles(function(){c=!0;d()});this.runScripts(function(){b=!0;d()})}};k.prototype.flatten=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=
{},c=0,d=a.length;c<d&&(b.n=a[c]);b={n:b.n},c++){var e=this.documents[b.n.href];(b.n.import=e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[b.n.href]=b.n,b.n.readyState="loading",b.n.import=b.n,Object.defineProperty(b.n,"baseURI",{get:function(a){return function(){return a.n.href}}(b),configurable:!0,enumerable:!0}),this.flatten(e),b.n.appendChild(e))}};k.prototype.runScripts=function(a){function b(e){if(e<d){var f=c[e],h=document.createElement("script");f.removeAttribute("import-dependency");
for(var k=0,l=f.attributes.length;k<l;k++)h.setAttribute(f.attributes[k].name,f.attributes[k].value);n=h;f.parentNode.replaceChild(h,f);g(h,function(){n=null;b(e+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};k.prototype.waitForStyles=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),d=b.length;if(d)for(var e=x&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]"),
f={},h=0,k=b.length;h<k&&(f.s=b[h]);f={s:f.s},h++){if(g(f.s,function(b){return function(){b.s.removeAttribute("import-dependency");0===--d&&a()}}(f)),e&&f.s.parentNode!==document.head){var l=document.createElement(f.s.localName);l.__appliedElement=f.s;l.setAttribute("type","import-placeholder");f.s.parentNode.insertBefore(l,f.s.nextSibling);for(l=c(f.s);l&&c(l);)l=c(l);l.parentNode!==document.head&&(l=null);document.head.insertBefore(f.s,l);f.s.removeAttribute("type")}}else a()};k.prototype.fireEvents=
function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.fireEventIfNeeded(c)};k.prototype.fireEventIfNeeded=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(b(a.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.handleMutations=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];e&&e.nodeType===Node.ELEMENT_NODE&&
(h(e)?this.loadImport(e):this.loadImports(e))}}};if(m){for(var t=document.querySelectorAll("link[rel=import]"),z=0,A=t.length,y;z<A&&(y=t[z]);z++)y.import&&"loading"===y.import.readyState||(y.__loaded=!0);t=function(a){a=a.target;h(a)&&(a.__loaded=!0)};document.addEventListener("load",t,!0);document.addEventListener("error",t,!0)}else new k;f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=m;a.whenReady=f;a.importForElement=c})(window.HTMLImports=
window.HTMLImports||{});var E=window.ShadyDOM||{};E.hasNativeShadowDOM=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Xa=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");E.hasDescriptors=!!(Xa&&Xa.configurable&&Xa.get);E.inUse=E.force||!E.hasNativeShadowDOM;var Z=Element.prototype,mc=Z.matches||Z.matchesSelector||Z.mozMatchesSelector||Z.msMatchesSelector||Z.oMatchesSelector||Z.webkitMatchesSelector,Ea=document.createTextNode(""),Cb=0,Da=[];(new MutationObserver(function(){for(;Da.length;)try{Da.shift()()}catch(a){throw Ea.textContent=
Cb++,a;}})).observe(Ea,{characterData:!0});var ba=[],Fa;Ga.list=ba;ja.prototype.schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,Bb(function(){a.flush()}))};ja.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var a=this.takeRecords();a.length&&this.callbacks.forEach(function(b){b(a)})}};ja.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=
[];return a}return[]};var Yb=Element.prototype.appendChild,Na=Element.prototype.insertBefore,V=Element.prototype.removeChild,nc=Element.prototype.setAttribute,oc=Element.prototype.removeAttribute,Ya=Element.prototype.cloneNode,Oa=Document.prototype.importNode,pc=Element.prototype.addEventListener,qc=Element.prototype.removeEventListener,od=Object.freeze({appendChild:Yb,insertBefore:Na,removeChild:V,setAttribute:nc,removeAttribute:oc,cloneNode:Ya,importNode:Oa,addEventListener:pc,removeEventListener:qc}),
ad=/[&\u00A0"]/g,dd=/[&\u00A0<>]/g,bd=Fb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),cd=Fb("style script xmp iframe noembed noframes plaintext noscript".split(" ")),C=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),D=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Nb=Object.freeze({parentNode:T,firstChild:wb,lastChild:xb,previousSibling:function(a){C.currentNode=a;return C.previousSibling()},nextSibling:function(a){C.currentNode=
a;return C.nextSibling()},childNodes:aa,parentElement:function(a){D.currentNode=a;return D.parentNode()},firstElementChild:Gb,lastElementChild:Hb,previousElementSibling:Ib,nextElementSibling:Jb,children:Kb,innerHTML:Lb,textContent:Mb}),Za=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),oa=document.implementation.createHTMLDocument("inert").createElement("div"),$a=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),
Ob={parentElement:U("parentElement"),parentNode:U("parentNode"),nextSibling:U("nextSibling"),previousSibling:U("previousSibling"),className:{get:function(){return this.getAttribute("class")},set:function(a){this.setAttribute("class",a)},configurable:!0},nextElementSibling:{get:function(){if(B(this,"nextSibling")){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Jb(this)},configurable:!0},previousElementSibling:{get:function(){if(B(this,"previousSibling")){for(var a=
this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Ib(this)},configurable:!0}},Ia={childNodes:{get:function(){if(B(this,"firstChild")){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}return this.__shady.childNodes}return aa(this)},configurable:!0},firstChild:U("firstChild"),lastChild:U("lastChild"),textContent:{get:function(){if(B(this,"firstChild")){for(var a=[],b=0,c=this.childNodes,
d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Mb(this)},set:function(a){if(this.nodeType!==Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);a&&this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(B(this,"firstChild")){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Gb(this)},configurable:!0},lastElementChild:{get:function(){if(B(this,
"lastChild")){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Hb(this)},configurable:!0},children:{get:function(){return B(this,"firstChild")?Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):Kb(this)},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return B(this,"firstChild")?Ha(a):Lb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);
for(Za&&Za.set?Za.set.call(oa,a):oa.innerHTML=a;oa.firstChild;)b.appendChild(oa.firstChild)},configurable:!0}},rc={shadowRoot:{get:function(){return this.shadyRoot},set:function(a){this.shadyRoot=a},configurable:!0}},Ja={activeElement:{get:function(){var a;a=$a&&$a.get?$a.get.call(document):E.hasDescriptors?void 0:document.activeElement;if(a&&a.nodeType){var b=!!G(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=S(a);b&&b!==this;)a=b.host,b=S(a);a=this===document?b?null:a:
b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},zb=E.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__outsideAccessors||(a.__shady=a.__shady||{},a.__shady.__outsideAccessors=!0,L(a,Ob,!0))},yb=E.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__insideAccessors||(a.__shady=a.__shady||{},a.__shady.__insideAccessors=!0,L(a,Ia,!0),L(a,rc,!0))},pa=null,pd={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},cc={get composed(){this.isTrusted&&void 0===this.__composed&&(this.__composed=pd[this.type]);return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Pa(this.__target,this.composed));return this.__composedPath},get target(){return $b(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Pa(this.__relatedTarget,!0));return $b(this.currentTarget,
this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.__propagationStopped=this.__immediatePropagationStopped=!0}},Ra={focus:!0,blur:!0},qd=Qa(window.Event),rd=Qa(window.CustomEvent),sd=Qa(window.MouseEvent),td="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,
!!b.cancelable);return c};y.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)};y.prototype.hasInsertionPoint=function(){return!(!this.root._insertionPoints||!this.root._insertionPoints.length)};y.prototype.isInsertionPoint=function(a){return a.localName&&a.localName==this.insertionPointTag};y.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]};y.prototype.collectPool=function(){for(var a=
[],b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};y.prototype.distributePool=function(a,b){a=[];for(var c=this.root._insertionPoints,d=0,e=c.length,f;d<e&&(f=c[d]);d++){this.distributeInsertionPoint(f,b);var g=f.parentNode;g&&g.shadyRoot&&g.shadyRoot.hasInsertionPoint()&&a.push(g.shadyRoot)}for(f=0;f<b.length;f++)if(c=b[f])c.__shady=c.__shady||{},c.__shady.assignedSlot=void 0,(d=T(c))&&V.call(d,c);return a};y.prototype.distributeInsertionPoint=function(a,b){var c=a.__shady.assignedNodes;
c&&this.clearAssignedSlots(a,!0);a.__shady.assignedNodes=[];for(var d=!1,e=!1,f=0,g=b.length,h;f<g;f++)(h=b[f])&&this.matchesInsertionPoint(h,a)&&(h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a),b[f]=void 0,e=!0);if(!e)for(b=a.childNodes,e=0;e<b.length;e++)h=b[e],h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a);if(c){for(h=0;h<c.length;h++)c[h].__shady._prevAssignedSlot=null;a.__shady.assignedNodes.length<c.length&&(d=!0)}this.setDistributedNodesOnInsertionPoint(a);
d&&this._fireSlotChange(a)};y.prototype.clearAssignedSlots=function(a,b){var c=a.__shady.assignedNodes;if(c)for(var d=0;d<c.length;d++){var e=c[d];b&&(e.__shady._prevAssignedSlot=e.__shady.assignedSlot);e.__shady.assignedSlot===a&&(e.__shady.assignedSlot=null)}};y.prototype.matchesInsertionPoint=function(a,b){b=(b=b.getAttribute("name"))?b.trim():"";a=(a=a.getAttribute&&a.getAttribute("slot"))?a.trim():"";return a==b};y.prototype.distributeNodeInto=function(a,b){b.__shady.assignedNodes.push(a);a.__shady.assignedSlot=
b};y.prototype.setDistributedNodesOnInsertionPoint=function(a){var b=a.__shady.assignedNodes;a.__shady.distributedNodes=[];for(var c=0,d;c<b.length&&(d=b[c]);c++)if(this.isInsertionPoint(d)){var e=d.__shady.distributedNodes;if(e)for(var f=0;f<e.length;f++)a.__shady.distributedNodes.push(e[f])}else a.__shady.distributedNodes.push(b[c])};y.prototype._fireSlotChange=function(a){a.dispatchEvent(new td("slotchange"));a.__shady.assignedSlot&&this._fireSlotChange(a.__shady.assignedSlot)};y.prototype.isFinalDestination=
function(a){return!a.__shady.assignedSlot};var vb={};p.prototype=Object.create(DocumentFragment.prototype);p.prototype._init=function(a){this.__localName="ShadyRoot";R(a);R(this);a.shadowRoot=this;this.host=a;this._changePending=this._hasRendered=this._renderPending=!1;this._distributor=new y(this);this.update()};p.prototype.update=function(){var a=this;this._renderPending||(this._renderPending=!0,Db(function(){return a.render()}))};p.prototype._getRenderRoot=function(){for(var a=this,b=this;b;)b._renderPending&&
(a=b),b=b._rendererForHost();return a};p.prototype._rendererForHost=function(){var a=this.host.getRootNode();if(G(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this._distributor.isInsertionPoint(d))return a};p.prototype.render=function(){this._renderPending&&this._getRenderRoot()._render()};p.prototype._render=function(){this._changePending=this._renderPending=!1;this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints();this._skipUpdateInsertionPoints=
!1;this.distribute();this.compose();this._hasRendered=!0};p.prototype.forceRender=function(){this._renderPending=!0;this.render()};p.prototype.distribute=function(){for(var a=this._distributor.distribute(),b=0;b<a.length;b++)a[b]._render()};p.prototype.updateInsertionPoints=function(){var a=this.__insertionPoints;if(a)for(var b=0,c;b<a.length;b++)c=a[b],c.getRootNode()!==this&&this._distributor.clearAssignedSlots(c);a=this._insertionPoints=this._distributor.getInsertionPoints();for(b=0;b<a.length;b++)c=
a[b],c.__shady=c.__shady||{},R(c),R(c.parentNode)};p.prototype.hasInsertionPoint=function(){return this._distributor.hasInsertionPoint()};p.prototype.compose=function(){this._composeTree()};p.prototype._composeTree=function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var a=this._insertionPoints||[],b=0,c=a.length,d,e;b<c&&(d=a[b]);b++)e=d.parentNode,e!==this.host&&e!==this&&this._updateChildNodes(e,this._composeNode(e))};p.prototype._composeNode=function(a){var b=[];a=(a.shadyRoot||
a).childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this._distributor.isInsertionPoint(d))for(var e=d.__shady.distributedNodes||(d.__shady.distributedNodes=[]),f=0;f<e.length;f++){var g=e[f];this.isFinalDestination(d,g)&&b.push(g)}else b.push(d)}return b};p.prototype.isFinalDestination=function(a,b){return this._distributor.isFinalDestination(a,b)};p.prototype._updateChildNodes=function(a,b){for(var c=aa(a),d=gd(b,0,b.length,c,0,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.removed.length&&
(k=g.removed[h]);h++)T(k)===a&&V.call(a,k),c.splice(g.index+f,1);f-=g.addedCount}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.addedCount;h++)k=b[h],Na.call(a,k,f),c.splice(h,0,k)};p.prototype.getInsertionPointTag=function(){return this._distributor.insertionPointTag};Object.defineProperty(p.prototype,"_insertionPoints",{get:function(){this.__insertionPoints||this.updateInsertionPoints();return this.__insertionPoints||(this.__insertionPoints=[])},set:function(a){this.__insertionPoints=
a},configurable:!0});(function(a){L(a,Ia,!0);L(a,Ja,!0)})(p.prototype);var ud={addEventListener:function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);if(b.__eventWrappers)for(var g=0;g<b.__eventWrappers.length;g++){if(b.__eventWrappers[g].node===this&&b.__eventWrappers[g].type===a&&b.__eventWrappers[g].capture===d&&b.__eventWrappers[g].once===e&&b.__eventWrappers[g].passive===f)return}else b.__eventWrappers=[];g=function(d){e&&this.removeEventListener(a,
b,c);d.__target||bc(d);if(d.composed||-1<d.composedPath().indexOf(this))if(d.eventPhase===Event.BUBBLING_PHASE&&d.target===d.relatedTarget)d.stopImmediatePropagation();else return b(d)};b.__eventWrappers.push({node:this,type:a,capture:d,once:e,passive:f,wrapperFn:g});Ra[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][d?"capture":"bubble"].push(g)):pc.call(this,a,g,c)}},removeEventListener:function(a,b,c){if(b){var d,e,f;"object"===
typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);var g=void 0;if(b.__eventWrappers)for(var h=0;h<b.__eventWrappers.length;h++)if(b.__eventWrappers[h].node===this&&b.__eventWrappers[h].type===a&&b.__eventWrappers[h].capture===d&&b.__eventWrappers[h].once===e&&b.__eventWrappers[h].passive===f){g=b.__eventWrappers.splice(h,1)[0].wrapperFn;b.__eventWrappers.length||(b.__eventWrappers=void 0);break}qc.call(this,a,g||b,c);g&&Ra[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][d?
"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}},appendChild:function(a){return Xb(this,a)},insertBefore:function(a,b){return Xb(this,a,b)},removeChild:function(a){if(a.parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);if(!Qb(a)){var b=G(this)?this.host:this,c=T(a);b===c&&V.call(b,a)}La(this,null,a);return a},replaceChild:function(a,b){this.insertBefore(a,b);this.removeChild(b);return a},cloneNode:function(a){var b;if("template"==this.localName)b=Ya.call(this,
a);else if(b=Ya.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(a){return Ma(this,a)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof p?a.host:void 0);return!!(a&&a instanceof Document)}},vd={get assignedSlot(){return dc(this)}},ab={querySelector:function(a){return Ub(this,
function(b){return mc.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return Ub(this,function(b){return mc.call(b,a)})}},sc={assignedNodes:function(a){if("slot"===this.localName)return Wb(this),this.__shady?(a&&a.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},tc=Ab({setAttribute:function(a,b){pa||(pa=window.ShadyCSS&&window.ShadyCSS.ScopingShim);pa&&"class"===a?pa.setElementClass(this,b):(nc.call(this,a,b),Tb(this,a))},removeAttribute:function(a){oc.call(this,
a);Tb(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new p(vb,this)},get slot(){return this.getAttribute("slot")},set slot(a){this.setAttribute("slot",a)},get assignedSlot(){return dc(this)}},ab,sc);Object.defineProperties(tc,rc);var uc=Ab({importNode:function(a,b){return Zb(a,b)}},ab);Object.defineProperties(uc,{_activeElement:Ja.activeElement});E.inUse&&(window.ShadyDOM={},window.ShadyDOM.inUse=E.inUse,window.ShadyDOM.patch=function(a){return a},
window.ShadyDOM.isShadyRoot=G,window.ShadyDOM.enqueue=Db,window.ShadyDOM.flush=Ga,window.ShadyDOM.settings=E,window.ShadyDOM.filterMutations=$c,window.ShadyDOM.observeChildren=Yc,window.ShadyDOM.unobserveChildren=Xc,window.ShadyDOM.nativeMethods=od,window.ShadyDOM.nativeTree=Nb,window.Event=qd,window.CustomEvent=rd,window.MouseEvent=sd,fd(),W(window.Node.prototype,ud),W(window.Text.prototype,vd),W(window.DocumentFragment.prototype,ab),W(window.Element.prototype,tc),W(window.Document.prototype,uc),
window.HTMLSlotElement&&W(window.HTMLSlotElement.prototype,sc),E.hasDescriptors&&(O(window.Node.prototype),O(window.Text.prototype),O(window.DocumentFragment.prototype),O(window.Element.prototype),O((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),O(window.Document.prototype),window.HTMLSlotElement&&O(window.HTMLSlotElement.prototype)),window.ShadowRoot=p);var id=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
A.prototype.setDefinition=function(a,b){this._localNameToDefinition.set(a,b);this._constructorToDefinition.set(b.constructor,b)};A.prototype.localNameToDefinition=function(a){return this._localNameToDefinition.get(a)};A.prototype.constructorToDefinition=function(a){return this._constructorToDefinition.get(a)};A.prototype.addPatch=function(a){this._hasPatches=!0;this._patches.push(a)};A.prototype.patchTree=function(a){var b=this;this._hasPatches&&N(a,function(a){return b.patch(a)})};A.prototype.patch=
function(a){if(this._hasPatches&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this._patches.length;b++)this._patches[b](a)}};A.prototype.connectTree=function(a){var b=[];N(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state?this.connectedCallback(c):this.upgradeElement(c)}};A.prototype.disconnectTree=function(a){var b=[];N(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state&&this.disconnectedCallback(c)}};A.prototype.patchAndUpgradeTree=
function(a,b){b=void 0===b?new Set:b;var c=this,d=[];N(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,new Set(b),b.delete(d),c.patchAndUpgradeTree(d,b))})}else d.push(a)},b);if(this._hasPatches)for(a=0;a<
d.length;a++)this.patch(d[a]);for(a=0;a<d.length;a++)this.upgradeElement(d[a])};A.prototype.upgradeElement=function(a){if(void 0===a.__CE_state){var b=this.localNameToDefinition(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,
c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}m(a)&&this.connectedCallback(a)}}};A.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};A.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};A.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&
f.attributeChangedCallback.call(a,b,c,d,e)};Aa.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};Aa.prototype._handleMutations=function(a){var b=this._document.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this._internals.patchAndUpgradeTree(c[d])};Ba.prototype.resolve=function(a){if(this._value)throw Error("Already resolved.");this._value=a;this._resolve&&this._resolve(a)};Ba.prototype.toPromise=
function(){return this._promise};t.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!ec(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this._internals.localNameToDefinition(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var d,
e,f,g,h;try{var k=function(a){var b=m[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},m=b.prototype;if(!(m instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");d=k("connectedCallback");e=k("disconnectedCallback");f=k("adoptedCallback");g=k("attributeChangedCallback");h=b.observedAttributes||[]}catch(I){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(a,{localName:a,
constructor:b,connectedCallback:d,disconnectedCallback:e,adoptedCallback:f,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this._unflushedLocalNames.push(a);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return c._flush()}))};t.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var a=this._unflushedLocalNames.shift();(a=this._whenDefinedDeferred.get(a))&&
a.resolve(void 0)}};t.prototype.get=function(a){if(a=this._internals.localNameToDefinition(a))return a.constructor};t.prototype.whenDefined=function(a){if(!ec(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this._whenDefinedDeferred.get(a);if(b)return b.toPromise();b=new Ba;this._whenDefinedDeferred.set(a,b);this._internals.localNameToDefinition(a)&&-1===this._unflushedLocalNames.indexOf(a)&&b.resolve(void 0);return b.toPromise()};t.prototype.polyfillWrapFlushCallback=
function(a){this._documentConstructionObserver.disconnect();var b=this._flushCallback;this._flushCallback=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=t;t.prototype.define=t.prototype.define;t.prototype.get=t.prototype.get;t.prototype.whenDefined=t.prototype.whenDefined;t.prototype.polyfillWrapFlushCallback=t.prototype.polyfillWrapFlushCallback;var wa=window.Document.prototype.createElement,Sc=window.Document.prototype.createElementNS,Rc=window.Document.prototype.importNode,
Tc=window.Document.prototype.prepend,Uc=window.Document.prototype.append,kb=window.Node.prototype.cloneNode,ha=window.Node.prototype.appendChild,sb=window.Node.prototype.insertBefore,xa=window.Node.prototype.removeChild,tb=window.Node.prototype.replaceChild,za=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),jb=window.Element.prototype.attachShadow,ua=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),ya=window.Element.prototype.getAttribute,lb=window.Element.prototype.setAttribute,
nb=window.Element.prototype.removeAttribute,ia=window.Element.prototype.getAttributeNS,mb=window.Element.prototype.setAttributeNS,ob=window.Element.prototype.removeAttributeNS,qb=window.Element.prototype.insertAdjacentElement,Ic=window.Element.prototype.prepend,Jc=window.Element.prototype.append,Lc=window.Element.prototype.before,Mc=window.Element.prototype.after,Nc=window.Element.prototype.replaceWith,Oc=window.Element.prototype.remove,Wc=window.HTMLElement,va=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,
"innerHTML"),pb=window.HTMLElement.prototype.insertAdjacentElement,ub=new function(){},qa=window.customElements;if(!qa||qa.forcePolyfill||"function"!=typeof qa.define||"function"!=typeof qa.get){var da=new A;Vc(da);Qc(da);Pc(da);Hc(da);document.__CE_hasRegistry=!0;var wd=new t(da);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:wd})}var K={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1E3},H={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,
customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},u=!(window.ShadyDOM&&window.ShadyDOM.inUse),x=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)");window.ShadyCSS?hc(window.ShadyCSS):window.WebComponents&&
hc(window.WebComponents.flags);var vc=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,wc=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,xd=/(--[\w-]+)\s*([:,;)]|$)/gi,yd=/(animation\s*:)|(animation-name\s*:)/,kd=/@media[^(]*(\([^)]*\))/,zd=/\{[^}]*\}/g,P=null;r.prototype.dom=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this._transformDom(a,b||"",c)};r.prototype._transformDom=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.element(a,b,c);if(a="template"===a.localName?
(a.content||a._content).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this._transformDom(a[d],b,c)};r.prototype.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(Ad);c?d&&(b=d.replace("style-scope","").replace(b,""),ma(a,b)):ma(a,(d?d+" ":"")+"style-scope "+b)}};r.prototype.elementStyles=function(a,b,c){var d=a.__cssBuild;u||"shady"===
d?b=X(b,c):(a=Q(a),b=this.css(b,a.is,a.typeExtension,c)+"\n\n");return b.trim()};r.prototype.css=function(a,b,c,d){var e=this._calcHostScope(b,c);b=this._calcElementScope(b);var f=this;return X(a,function(a){a.isScoped||(f.rule(a,b,e),a.isScoped=!0);d&&d(a,b,e)})};r.prototype._calcElementScope=function(a){return a?Bd+a:""};r.prototype._calcHostScope=function(a,b){return b?"[is="+a+"]":a};r.prototype.rule=function(a,b,c){this._transformRule(a,this._transformComplexSelector,b,c)};r.prototype._transformRule=
function(a,b,c,d){a.selector=a.transformedSelector=this._transformRuleCss(a,b,c,d)};r.prototype._transformRuleCss=function(a,b,c,d){var e=a.selector.split(xc);if(!ic(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(xc)};r.prototype._transformComplexSelector=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Cd,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Dd,bb+" $1");return a=a.replace(Ed,function(a,g,h){e||(a=d._transformCompoundSelector(h,
g,b,c),e=e||a.stop,g=a.combinator,h=a.value);return g+h})};r.prototype._transformCompoundSelector=function(a,b,c,d){var e=a.indexOf(cb);0<=a.indexOf(bb)?a=this._transformHostSelector(a,d):0!==e&&(a=c?this._transformSimpleSelector(a,c):a);c=!1;0<=e&&(b="",c=!0);var f;c&&(f=!0,c&&(a=a.replace(Fd,function(a,b){return" > "+b})));a=a.replace(Gd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,combinator:b,stop:f}};r.prototype._transformSimpleSelector=function(a,b){a=a.split(yc);
a[0]+=b;return a.join(yc)};r.prototype._transformHostSelector=function(a,b){var c=a.match(zc);return(c=c&&c[2].trim()||"")?c[0].match(Ac)?a.replace(zc,function(a,c,f){return b+f}):c.split(Ac)[0]===b?c:Hd:a.replace(bb,b)};r.prototype.documentRule=function(a){a.selector=a.parsedSelector;this.normalizeRootSelector(a);this._transformRule(a,this._transformDocumentSelector)};r.prototype.normalizeRootSelector=function(a){a.selector===Id&&(a.selector="html")};r.prototype._transformDocumentSelector=function(a){return a.match(cb)?
this._transformComplexSelector(a,Bc):this._transformSimpleSelector(a.trim(),Bc)};fa.global.Object.defineProperties(r.prototype,{SCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Cd=/:(nth[-\w]+)\(([^)]+)\)/,Bc=":not(.style-scope)",xc=",",Ed=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ac=/[[.:#*]/,bb=":host",Id=":root",cb="::slotted",Dd=new RegExp("^("+cb+")"),zc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Fd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Gd=/(.*):dir\((?:(ltr|rtl))\)/,
Bd=".",yc=":",Ad="class",Hd="should_not_match",v=new r;w.get=function(a){return a?a.__styleInfo:null};w.set=function(a,b){return a.__styleInfo=b};w.prototype._getStyleRules=function(){return this.styleRules};w.prototype._getStyleRules=w.prototype._getStyleRules;var Cc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Jd=navigator.userAgent.match("Trident");n.prototype.decorateStyles=function(a){var b=
this,c={},d=[],e=0;Y(a,function(a){b.decorateRule(a);a.index=e++;b.collectPropertiesInCssText(a.propertyInfo.cssText,c)},function(a){d.push(a)});a._keyframes=d;a=[];for(var f in c)a.push(f);return a};n.prototype.decorateRule=function(a){if(a.propertyInfo)return a.propertyInfo;var b={},c={};this.collectProperties(a,c)&&(b.properties=c,a.rules=null);b.cssText=this.collectCssText(a);return a.propertyInfo=b};n.prototype.collectProperties=function(a,b){var c=a.propertyInfo;if(c){if(c.properties)return Object.assign(b,
c.properties),!0}else{for(var c=a.parsedCssText,d;a=vc.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};n.prototype.collectCssText=function(a){return this.collectConsumingCssText(a.parsedCssText)};n.prototype.collectConsumingCssText=function(a){return a.replace(zd,"").replace(vc,"")};n.prototype.collectPropertiesInCssText=function(a,b){for(var c;c=xd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};n.prototype.reify=function(a){for(var b=Object.getOwnPropertyNames(a),
c=0,d;c<b.length;c++)d=b[c],a[d]=this.valueForProperty(a[d],a)};n.prototype.valueForProperty=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.valueForProperties(a,b);else{var c=this;a=kc(a,function(a,e,f,g){if(!e)return a+g;(e=c.valueForProperty(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.valueForProperty(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};n.prototype.valueForProperties=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){wc.lastIndex=
0;if(e=wc.exec(d))d=this.valueForProperty(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e),f=f.trim(),f=this.valueForProperty(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};n.prototype.applyProperties=function(a,b){var c="";a.propertyInfo||this.decorateRule(a);a.propertyInfo.cssText&&(c=this.valueForProperties(a.propertyInfo.cssText,b));a.cssText=c};n.prototype.applyKeyframeTransforms=function(a,b){var c=a.cssText,d=a.cssText;
null==a.hasAnimations&&(a.hasAnimations=yd.test(c));if(a.hasAnimations)if(null==a.keyframeNamesToTransform){a.keyframeNamesToTransform=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.keyframeNamesToTransform.push(e))}else{for(e=0;e<a.keyframeNamesToTransform.length;++e)d=b[a.keyframeNamesToTransform[e]],c=d(c);d=c}a.cssText=d};n.prototype.propertyDataFromStyles=function(a,b){var c={},d=this,e=[];Y(a,function(a){a.propertyInfo||d.decorateRule(a);var f=a.transformedSelector||a.parsedSelector;b&&a.propertyInfo.properties&&
f&&Cc.call(b,f)&&(d.collectProperties(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{properties:c,key:e}};n.prototype.whenHostOrRootRule=function(a,b,c,d){b.propertyInfo||this.decorateRule(b);if(b.propertyInfo.properties){var e=Q(a),f=e.is,e=e.typeExtension;a=a.is?v._calcHostScope(f,e):"html";var g=b.parsedSelector,e=":host > *"===g||"html"===g,h=0===g.indexOf(":host")&&!e;"shady"===c&&(e=g===a+" > *."+a||-1!==g.indexOf("html"),h=!e&&0===g.indexOf(a));"shadow"===c&&(e=
":host > *"===g||"html"===g,h=h&&!e);if(e||h)c=a,h&&(u&&!b.transformedSelector&&(b.transformedSelector=v._transformRuleCss(b,v._transformComplexSelector,v._calcElementScope(f),a)),c=b.transformedSelector||a),d({selector:c,isHost:h,isRoot:e})}};n.prototype.hostAndRootPropertiesForScope=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;Y(b,function(b){e.whenHostOrRootRule(a,b,f,function(f){Cc.call(a._element||a,f.selector)&&(f.isHost?e.collectProperties(b,c):e.collectProperties(b,d))})},null,!0);
return{rootProps:d,hostProps:c}};n.prototype.transformStyles=function(a,b,c){var d=this,e=Q(a),f=v._calcHostScope(e.is,e.typeExtension),e=a.extends?"\\"+f.slice(0,-1)+"\\]":f,g=new RegExp("(?:^|[^.#[:])"+e+"($|[.:[\\s>+~])"),e=w.get(a).styleRules,h=this._elementKeyframeTransforms(a,e,c);return v.elementStyles(a,e,function(a){d.applyProperties(a,b);u||ic(a)||!a.cssText||(d.applyKeyframeTransforms(a,h),d._scopeSelector(a,g,f,c))})};n.prototype._elementKeyframeTransforms=function(a,b,c){a=b._keyframes;
b={};if(!u&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this._scopeKeyframes(e,c),b[e.keyframesName]=this._keyframesRuleTransformer(e);return b};n.prototype._keyframesRuleTransformer=function(a){return function(b){return b.replace(a.keyframesNameRx,a.transformedKeyframesName)}};n.prototype._scopeKeyframes=function(a,b){a.keyframesNameRx=new RegExp(a.keyframesName,"g");a.transformedKeyframesName=a.keyframesName+"-"+b;a.transformedSelector=a.transformedSelector||a.selector;a.selector=a.transformedSelector.replace(a.keyframesName,
a.transformedKeyframesName)};n.prototype._scopeSelector=function(a,b,c,d){a.transformedSelector=a.transformedSelector||a.selector;d="."+d;for(var e=a.transformedSelector.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};n.prototype.applyElementScopeSelector=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&ma(a,e)};n.prototype.applyElementStyle=
function(a,b,c,d){b=d?d.textContent||"":this.transformStyles(a,b,c);var e=w.get(a),f=e.customStyle;f&&!u&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));u?e.customStyle?(e.customStyle.textContent=b,d=e.customStyle):b&&(d=Ua(b,c,a.shadowRoot,e.placeholder)):d?d.parentNode||jc(d,null,e.placeholder):b&&(d=Ua(b,c,null,e.placeholder));d&&(d._useCount=d._useCount||0,e.customStyle!=d&&d._useCount++,e.customStyle=d);Jd&&(d.textContent=d.textContent);return d};n.prototype.applyCustomStyle=
function(a,b){var c=la(a),d=this;a.textContent=X(c,function(a){var c=a.cssText=a.parsedCssText;a.propertyInfo&&a.propertyInfo.cssText&&(c=c.replace(H.customProp,"").replace(H.mixinProp,""),a.cssText=d.valueForProperties(c,b))})};fa.global.Object.defineProperties(n.prototype,{XSCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var M=new n,db={},ra=window.customElements;if(ra&&!u){var Kd=ra.define;ra.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+
a+" "),e=document.head;e.insertBefore(d,(P?P.nextSibling:null)||e.firstChild);P=d;db[a]=d;return Kd.call(ra,a,b,c)}}ga.prototype._validate=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.properties[e]!==b[e])return!1}return!0};ga.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({properties:b,styleElement:c,scopeSelector:d});e.length>this.typeMax&&e.shift();this.cache[a]=e};ga.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this._validate(e,
b,c))return e}};if(!u){var Dc=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head){for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d],f=e;if(f.classList&&!f.classList.contains(v.SCOPE_NAME)||f instanceof window.SVGElement&&(!f.hasAttribute("class")||0>f.getAttribute("class").indexOf(v.SCOPE_NAME)))if(f=e.getRootNode(),f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=f.host))f=Q(f).is,v.dom(e,f)}for(d=0;d<c.removedNodes.length;d++)if(e=
c.removedNodes[d],e.nodeType===Node.ELEMENT_NODE&&(f=void 0,e.classList?f=Array.from(e.classList):e.hasAttribute("class")&&(f=e.getAttribute("class").split(/\s+/)),void 0!==f)){var g=f.indexOf(v.SCOPE_NAME);0<=g&&(f=f[g+1])&&v.dom(e,f,!0)}}}},Ec=new MutationObserver(Dc),Fc=function(a){Ec.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.flush)Fc(document);else{var eb=function(){Fc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(eb):requestAnimationFrame(function(){if("loading"===
document.readyState){var a=function(){eb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else eb()})}ib=function(){Dc(Ec.takeRecords())}}var na={},nd=Promise.resolve(),Va=null,lc=window.HTMLImports&&window.HTMLImports.whenReady||null,Wa,sa=null,ea=null;F.prototype.enqueueDocumentValidation=function(){!this.enqueued&&ea&&(this.enqueued=!0,hb(ea))};F.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),
this.enqueueDocumentValidation())};F.prototype.getStyleForCustomStyle=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};F.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;sa&&sa(d);c.__shadyCSSCachedStyle=d}}}return a};
F.prototype.addCustomStyle=F.prototype.addCustomStyle;F.prototype.getStyleForCustomStyle=F.prototype.getStyleForCustomStyle;F.prototype.processStyles=F.prototype.processStyles;Object.defineProperties(F.prototype,{transformCallback:{get:function(){return sa},set:function(a){sa=a}},validateCallback:{get:function(){return ea},set:function(a){var b=!1;ea||(b=!0);ea=a;b&&this.enqueueDocumentValidation()}}});var Gc=new ga;k.prototype.flush=function(){ib()};k.prototype._generateScopeSelector=function(a){var b=
this._scopeCounter[a]=(this._scopeCounter[a]||0)+1;return a+"-"+b};k.prototype.getStyleAst=function(a){return la(a)};k.prototype.styleAstToString=function(a){return X(a)};k.prototype._gatherStyles=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype._getCssBuild=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=
function(a,b,c){if(!a._prepared){a._prepared=!0;a.name=b;a.extends=c;na[b]=a;var d=this._getCssBuild(a),e=this._gatherStyles(a);c={is:b,extends:c,__cssBuild:d};u||v.dom(a.content,b);this._ensure();var f=this._applyShim.detectMixin(e),e=Ta(e);f&&x&&this._applyShim.transformRules(e,b);a._styleAst=e;a._cssBuild=d;d=[];x||(d=M.decorateStyles(a._styleAst,c));if(!d.length||x)b=this._generateStaticStyle(c,a._styleAst,u?a.content:null,db[b]),a._style=b;a._ownPropertyNames=d}};k.prototype._generateStaticStyle=
function(a,b,c,d){b=v.elementStyles(a,b);if(b.length)return Ua(b,a.is,c,d)};k.prototype._prepareHost=function(a){var b=Q(a),c=b.is,b=b.typeExtension,d=db[c],e=na[c],f,g,h;e&&(f=e._styleAst,g=e._ownPropertyNames,h=e._cssBuild);return w.set(a,new w(f,d,g,c,b,h))};k.prototype._ensureApplyShim=function(){if(!this._applyShim)if(window.ShadyCSS.ApplyShim)this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=ld;else{var a={};this._applyShim=(a.detectMixin=function(){return!1},a.transformRule=
function(){},a.transformRules=function(){},a)}};k.prototype._ensureCustomStyleInterface=function(){var a=this;if(!this._customStyleInterface)if(window.ShadyCSS.CustomStyleInterface)this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(b){a.transformCustomStyleForDocument(b)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){(a._customStyleInterface.enqueued||a._elementsHaveApplied)&&a.flushCustomStyles()})};
else{var b={};this._customStyleInterface=(b.processStyles=function(){},b.enqueued=!1,b.getStyleForCustomStyle=function(){return null},b)}};k.prototype._ensure=function(){this._ensureApplyShim();this._ensureCustomStyleInterface()};k.prototype.flushCustomStyles=function(){this._ensure();var a=this._customStyleInterface.processStyles();this._customStyleInterface.enqueued&&(x?this._revalidateCustomStyleApplyShim(a):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(a)),
this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!x&&this.styleDocument())};k.prototype.styleElement=function(a,b){var c=Q(a).is,d=w.get(a);d||(d=this._prepareHost(a));this._isRootOwner(a)||(this._elementsHaveApplied=!0);b&&(d.overrideStyleProperties=d.overrideStyleProperties||{},Object.assign(d.overrideStyleProperties,b));if(x){if(d.overrideStyleProperties){b=d.overrideStyleProperties;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}((e=na[c])||this._isRootOwner(a))&&
e&&e._style&&e._applyShimInvalid&&(e._validating||(this._ensure(),this._applyShim.transformRules(e._styleAst,c),e._style.textContent=v.elementStyles(a,d.styleRules),md(e)),u&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=v.elementStyles(a,d.styleRules)),d.styleRules=e._styleAst)}else this._updateProperties(a,d),d.ownStylePropertyNames&&d.ownStylePropertyNames.length&&this._applyStyleProperties(a,d)};k.prototype._styleOwnerForNode=function(a){return(a=a.getRootNode().host)?w.get(a)?a:this._styleOwnerForNode(a):
this._documentOwner};k.prototype._isRootOwner=function(a){return a===this._documentOwner};k.prototype._applyStyleProperties=function(a,b){var c=Q(a).is,d=Gc.fetch(c,b.styleProperties,b.ownStylePropertyNames),e=d?d.styleElement:null,f=b.scopeSelector;b.scopeSelector=d&&d.scopeSelector||this._generateScopeSelector(c);e=M.applyElementStyle(a,b.styleProperties,b.scopeSelector,e);u||M.applyElementScopeSelector(a,b.scopeSelector,f);d||Gc.store(c,b.styleProperties,e,b.scopeSelector);return e};k.prototype._updateProperties=
function(a,b){var c=this._styleOwnerForNode(a),d=w.get(c),c=Object.create(d.styleProperties||null),e=M.hostAndRootPropertiesForScope(a,b.styleRules);a=M.propertyDataFromStyles(d.styleRules,a).properties;Object.assign(c,e.hostProps,a,e.rootProps);this._mixinOverrideStyles(c,b.overrideStyleProperties);M.reify(c);b.styleProperties=c};k.prototype._mixinOverrideStyles=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this._documentOwner,
a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this._isRootOwner(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype._revalidateCustomStyleApplyShim=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&this._revalidateApplyShim(c)}};k.prototype._applyCustomStyles=function(a){for(var b=
0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&M.applyCustomStyle(c,this._documentOwnerStyleInfo.styleProperties)}};k.prototype.transformCustomStyleForDocument=function(a){var b=this,c=la(a);Y(c,function(a){u?v.normalizeRootSelector(a):v.documentRule(a);x&&(b._ensure(),b._applyShim.transformRule(a))});x?a.textContent=X(c):this._documentOwnerStyleInfo.styleRules.rules.push(c)};k.prototype._revalidateApplyShim=function(a){if(x){var b=la(a);this._ensure();this._applyShim.transformRules(b);
a.textContent=X(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;x||(c=(w.get(a)||w.get(this._styleOwnerForNode(a))).styleProperties[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.setElementClass=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===v.SCOPE_NAME){c=d[e+1];break}}c&&b.push(v.SCOPE_NAME,c);x||(c=w.get(a))&&c.scopeSelector&&
b.push(M.XSCOPE_NAME,c.scopeSelector);ma(a,b.join(" "))};k.prototype._styleInfoForNode=function(a){return w.get(a)};k.prototype.flush=k.prototype.flush;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.setElementClass;k.prototype._styleInfoForNode=
k.prototype._styleInfoForNode;k.prototype.transformCustomStyleForDocument=k.prototype.transformCustomStyleForDocument;k.prototype.getStyleAst=k.prototype.getStyleAst;k.prototype.styleAstToString=k.prototype.styleAstToString;k.prototype.flushCustomStyles=k.prototype.flushCustomStyles;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return u}},nativeCss:{get:function(){return x}}});var J=new k,fb,gb;window.ShadyCSS&&(fb=window.ShadyCSS.ApplyShim,gb=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:J,prepareTemplate:function(a,b,c){J.flushCustomStyles();J.prepareTemplate(a,b,c)},styleSubtree:function(a,b){J.flushCustomStyles();J.styleSubtree(a,b)},styleElement:function(a){J.flushCustomStyles();J.styleElement(a)},styleDocument:function(a){J.flushCustomStyles();J.styleDocument(a)},getComputedStyleValue:function(a,b){return J.getComputedStyleValue(a,b)},nativeCss:x,nativeShadow:u};fb&&(window.ShadyCSS.ApplyShim=fb);gb&&(window.ShadyCSS.CustomStyleInterface=gb);(function(){if(customElements&&
customElements.polyfillWrapFlushCallback){var a=function(){if(b){var a=b;b=null;a();return!0}},b,c=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(d){b=d;c(a)});HTMLImports.whenReady=function(b){c(function(){a()?HTMLImports.whenReady(b):b()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);(function(){var a=document.createElement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";
var b=document.querySelector("head");b.insertBefore(a,b.firstChild)})(window.WebComponents)})();
}).call(self)
//# sourceMappingURL=webcomponents-hi-sd-ce.js.map

File diff suppressed because one or more lines are too long

View File

@@ -7,6 +7,20 @@
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';(function(q){function n(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function p(a){if(v)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!w(b)&&(b=b.parentNode););a.__importDoc=b}return b}function m(a){var b=document.querySelectorAll("link[rel=import]:not(import-dependency)"),
c=b.length;if(c)for(var e=0,d=b.length,l;e<d&&(l=b[e]);e++)t(l,function(){0===--c&&a()});else a()}function A(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",b)}}function B(a){A(function(){return m(function(){return a&&a()})})}function t(a,b){if(a.__loaded)b&&b();else if("script"!==a.localName||a.src){var c=function(e){a.removeEventListener(e.type,
@@ -25,25 +39,8 @@ for(var h=0,k=f.attributes.length;h<k;h++)g.setAttribute(f.attributes[h].name,f.
d={},f=0,g=b.length;f<g&&(d.s=b[f]);d={s:d.s},f++){if(t(d.s,function(b){return function(){b.s.removeAttribute("import-dependency");0===--c&&a()}}(d)),e&&d.s.parentNode!==document.head){var h=document.createElement(d.s.localName);h.__appliedElement=d.s;h.setAttribute("type","import-placeholder");d.s.parentNode.insertBefore(h,d.s.nextSibling);for(h=p(d.s);h&&p(h);)h=p(h);h.parentNode!==document.head&&(h=null);document.head.insertBefore(d.s,h);d.s.removeAttribute("type")}}else a()};k.prototype.fireEvents=
function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.fireEventIfNeeded(c)};k.prototype.fireEventIfNeeded=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(n(a.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.handleMutations=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var e=0;e<c.addedNodes.length;e++){var d=c.addedNodes[e];d&&d.nodeType===Node.ELEMENT_NODE&&
(w(d)?this.loadImport(d):this.loadImports(d))}}};if(v){for(var r=document.querySelectorAll("link[rel=import]"),z=0,J=r.length,u;z<J&&(u=r[z]);z++)u.import&&"loading"===u.import.readyState||(u.__loaded=!0);r=function(a){a=a.target;w(a)&&(a.__loaded=!0)};document.addEventListener("load",r,!0);document.addEventListener("error",r,!0)}else new k;B(function(){return document.dispatchEvent(n("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});q.useNative=v;q.whenReady=B;q.importForElement=p})(window.HTMLImports=
window.HTMLImports||{});/*
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){if(customElements&&customElements.polyfillWrapFlushCallback){var q=function(){if(n){var m=n;n=null;m();return!0}},n,p=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(m){n=m;p(q)});HTMLImports.whenReady=function(m){p(function(){q()?HTMLImports.whenReady(m):m()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);var D=document.createElement("style");D.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(D,E.firstChild);/*
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
window.HTMLImports||{});(function(){if(customElements&&customElements.polyfillWrapFlushCallback){var q=function(){if(n){var m=n;n=null;m();return!0}},n,p=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(m){n=m;p(q)});HTMLImports.whenReady=function(m){p(function(){q()?HTMLImports.whenReady(m):m()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);var D=document.createElement("style");
D.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(D,E.firstChild);
}).call(self)
//# sourceMappingURL=webcomponents-hi.js.map

File diff suppressed because one or more lines are too long

View File

@@ -7,60 +7,6 @@
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';var aa={scope:{},getGlobal:function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}};aa.global=aa.getGlobal(this);
(function(a){function b(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function c(a){if(l)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!h(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=document.querySelectorAll("link[rel=import]:not(import-dependency)"),
c=b.length;if(c)for(var d=0,e=b.length,f;d<e&&(f=b[d]);d++)g(f,function(){0===--c&&a()});else a()}function e(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",b)}}function f(a){e(function(){return d(function(){return a&&a()})})}function g(a,b){if(a.__loaded)b&&b();else if("script"!==a.localName||a.src){var c=function(d){a.removeEventListener(d.type,
c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);ra&&"style"===a.localName||a.addEventListener("error",c)}else a.__loaded=!0,b&&b()}function h(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.documents={};this.inflight=0;this.dynamicImportsMO=new MutationObserver(function(b){return a.handleMutations(b)});e(function(){a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0});a.loadImports(document)})}var l="import"in document.createElement("link"),
t=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return t||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var C=/(^\/)|(^#)|(^[\w-\d]*:)/,R=/(url\()([^)]*)(\))/g,sa=/(@import[\s]+(?!url\())([^;]*)(;)/g,Qa=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,w={fixUrls:function(a,b){a.href&&a.setAttribute("href",w.replaceAttrUrl(a.getAttribute("href"),b));a.src&&a.setAttribute("src",w.replaceAttrUrl(a.getAttribute("src"),
b));"style"===a.localName&&w.resolveUrlsInStyle(a,b)},fixUrlsInTemplates:function(a,b){a=a.querySelectorAll("template");for(var c=0;c<a.length;c++)w.fixUrlsInTemplate(a[c],b)},fixUrlsInTemplate:function(a,b){a=a.content||a;for(var c=a.querySelectorAll("style, [src], [style]"),d=0;d<c.length;d++){var e=c[d];"style"==e.localName?w.resolveUrlsInStyle(e,b):w.fixUrlAttributes(e,b)}w.fixUrlsInTemplates(a,b)},fixUrlAttributes:function(a,b){for(var c=["src","style"],d=0,e;d<c.length&&(e=c[d]);d++){var f=
a.attributes[e],g=f&&f.value;g&&0>g.search(/({{|\[\[)/)&&(f.value="style"===e?w.resolveUrlsInCssText(g,b):w.replaceAttrUrl(g,b))}},resolveUrlsInStyle:function(a,b){a.textContent=w.resolveUrlsInCssText(a.textContent,b)},resolveUrlsInCssText:function(a,b){a=w.replaceUrls(a,b,R);return a=w.replaceUrls(a,b,sa)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=w.resolveUrl(a,b));return c+"'"+a+"'"+e})},replaceAttrUrl:function(a,b){return a&&C.test(a)?a:w.resolveUrl(a,
b)},resolveUrl:function(a,b){if(void 0===w.__workingURL){w.__workingURL=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";w.__workingURL="http://a/c%20d"===c.href}catch(Pa){}}if(w.__workingURL)return(new URL(a,b)).href;c=w.__tempDoc;c||(c=document.implementation.createHTMLDocument("temp"),w.__tempDoc=c,c.__base=c.createElement("base"),c.head.appendChild(c.__base),c.__anchor=c.createElement("a"));c.__base.href=b;c.__anchor.href=a;return c.__anchor.href||a}},X={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=
a.split(",");var d=a[1],d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,X.async);e.onload=function(){var a=e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},ra=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);
k.prototype.loadImports=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b<c;b++)this.loadImport(a[b])};k.prototype.loadImport=function(a){var b=this,c=a.href;if(void 0!==this.documents[c]){var d=this.documents[c];d&&d.__loaded&&(a.import=d,this.fireEventIfNeeded(a))}else this.inflight++,this.documents[c]="pending",X.load(c,function(a,d){a=b.makeDocument(a,d||c);b.documents[c]=a;b.inflight--;b.loadImports(a);b.processImportsIfLoadingDone()},function(){b.documents[c]=null;
b.inflight--;b.processImportsIfLoadingDone()})};k.prototype.makeDocument=function(a,b){if(!a)return document.createDocumentFragment();ra&&(a=a.replace(Qa,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=w.replaceAttrUrl(c.getAttribute("href"),b),c.removeAttribute("href");for(var 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"]'),d=0,e=0,f=c.length,h;e<f&&(h=c[e]);e++)g(h),w.fixUrls(h,b),h.setAttribute("import-dependency",""),"script"===h.localName&&!h.src&&h.textContent&&(h.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(h.textContent+("\n//# sourceURL="+
b+(d?"-"+d:"")+".js\n"))),h.textContent="",d++);w.fixUrlsInTemplates(a,b);return a};k.prototype.processImportsIfLoadingDone=function(){var a=this;if(!this.inflight){this.dynamicImportsMO.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),a.fireEvents())};this.waitForStyles(function(){c=!0;d()});this.runScripts(function(){b=!0;d()})}};k.prototype.flatten=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=
{},c=0,d=a.length;c<d&&(b.n=a[c]);b={n:b.n},c++){var e=this.documents[b.n.href];(b.n.import=e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[b.n.href]=b.n,b.n.readyState="loading",b.n.import=b.n,Object.defineProperty(b.n,"baseURI",{get:function(a){return function(){return a.n.href}}(b),configurable:!0,enumerable:!0}),this.flatten(e),b.n.appendChild(e))}};k.prototype.runScripts=function(a){function b(e){if(e<d){var f=c[e],h=document.createElement("script");f.removeAttribute("import-dependency");
for(var k=0,l=f.attributes.length;k<l;k++)h.setAttribute(f.attributes[k].name,f.attributes[k].value);t=h;f.parentNode.replaceChild(h,f);g(h,function(){t=null;b(e+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};k.prototype.waitForStyles=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),d=b.length;if(d)for(var e=ra&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]"),
f={},h=0,k=b.length;h<k&&(f.s=b[h]);f={s:f.s},h++){if(g(f.s,function(b){return function(){b.s.removeAttribute("import-dependency");0===--d&&a()}}(f)),e&&f.s.parentNode!==document.head){var l=document.createElement(f.s.localName);l.__appliedElement=f.s;l.setAttribute("type","import-placeholder");f.s.parentNode.insertBefore(l,f.s.nextSibling);for(l=c(f.s);l&&c(l);)l=c(l);l.parentNode!==document.head&&(l=null);document.head.insertBefore(f.s,l);f.s.removeAttribute("type")}}else a()};k.prototype.fireEvents=
function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.fireEventIfNeeded(c)};k.prototype.fireEventIfNeeded=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(b(a.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.handleMutations=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];e&&e.nodeType===Node.ELEMENT_NODE&&
(h(e)?this.loadImport(e):this.loadImports(e))}}};if(l){for(var J=document.querySelectorAll("link[rel=import]"),G=0,ta=J.length,ba;G<ta&&(ba=J[G]);G++)ba.import&&"loading"===ba.import.readyState||(ba.__loaded=!0);J=function(a){a=a.target;h(a)&&(a.__loaded=!0)};document.addEventListener("load",J,!0);document.addEventListener("error",J,!0)}else new k;f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=l;a.whenReady=f;a.importForElement=
c})(window.HTMLImports=window.HTMLImports||{});var m={},ca=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function da(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function fa(a,b,c){c=void 0===c?new Set:c;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)fa(d,b,c);d=da(a,e);continue}else if("template"===f){d=da(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)fa(e,b,c)}d=d.firstChild?d.firstChild:da(a,d)}}
m.isValidCustomElementName=function(a){var b=ca.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a};m.isConnected=function(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))};m.walkDeepDescendantElements=fa;m.setPropertyUnchecked=function(a,b,c){a[b]=c};var n={default:{custom:1,failed:2}};var ga={};function p(){this._localNameToDefinition=new Map;this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}p.prototype.setDefinition=function(a,b){this._localNameToDefinition.set(a,b);this._constructorToDefinition.set(b.constructor,b)};p.prototype.localNameToDefinition=function(a){return this._localNameToDefinition.get(a)};p.prototype.constructorToDefinition=function(a){return this._constructorToDefinition.get(a)};p.prototype.addPatch=function(a){this._hasPatches=!0;this._patches.push(a)};
p.prototype.patchTree=function(a){var b=this;this._hasPatches&&m.walkDeepDescendantElements(a,function(a){return b.patch(a)})};p.prototype.patch=function(a){if(this._hasPatches&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this._patches.length;b++)this._patches[b](a)}};p.prototype.connectTree=function(a){var b=[];m.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];c.__CE_state===n.default.custom?this.connectedCallback(c):this.upgradeElement(c)}};
p.prototype.disconnectTree=function(a){var b=[];m.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];c.__CE_state===n.default.custom&&this.disconnectedCallback(c)}};
p.prototype.patchAndUpgradeTree=function(a,b){b=void 0===b?new Set:b;var c=this,d=[];m.walkDeepDescendantElements(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,new Set(b),b.delete(d),c.patchAndUpgradeTree(d,
b))})}else d.push(a)},b);if(this._hasPatches)for(a=0;a<d.length;a++)this.patch(d[a]);for(a=0;a<d.length;a++)this.upgradeElement(d[a])};
p.prototype.upgradeElement=function(a){if(void 0===a.__CE_state){var b=this.localNameToDefinition(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=n.default.failed,f;}a.__CE_state=n.default.custom;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);
null!==e&&this.attributeChangedCallback(a,d,null,e,null)}m.isConnected(a)&&this.connectedCallback(a)}}};p.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};p.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
p.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,c,d,e)};ga.default=p;var ha={};function ia(a,b){this._internals=a;this._document=b;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}ia.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};
ia.prototype._handleMutations=function(a){var b=this._document.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this._internals.patchAndUpgradeTree(c[d])};ha.default=ia;var ja={};function ka(){var a=this;this._resolve=this._value=void 0;this._promise=new Promise(function(b){a._resolve=b;a._value&&b(a._value)})}ka.prototype.resolve=function(a){if(this._value)throw Error("Already resolved.");this._value=a;this._resolve&&this._resolve(a)};ka.prototype.toPromise=function(){return this._promise};ja.default=ka;var la={};function q(a){this._elementDefinitionIsRunning=!1;this._internals=a;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=!1;this._unflushedLocalNames=[];this._documentConstructionObserver=new ha.default(a,document)}
q.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!m.isValidCustomElementName(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this._internals.localNameToDefinition(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var d,e,f,g,
h;try{var k=function(a){var b=l[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},l=b.prototype;if(!(l instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");d=k("connectedCallback");e=k("disconnectedCallback");f=k("adoptedCallback");g=k("attributeChangedCallback");h=b.observedAttributes||[]}catch(t){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(a,{localName:a,
constructor:b,connectedCallback:d,disconnectedCallback:e,adoptedCallback:f,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this._unflushedLocalNames.push(a);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return c._flush()}))};
q.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var a=this._unflushedLocalNames.shift();(a=this._whenDefinedDeferred.get(a))&&a.resolve(void 0)}};q.prototype.get=function(a){if(a=this._internals.localNameToDefinition(a))return a.constructor};
q.prototype.whenDefined=function(a){if(!m.isValidCustomElementName(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this._whenDefinedDeferred.get(a);if(b)return b.toPromise();b=new ja.default;this._whenDefinedDeferred.set(a,b);this._internals.localNameToDefinition(a)&&-1===this._unflushedLocalNames.indexOf(a)&&b.resolve(void 0);return b.toPromise()};
q.prototype.polyfillWrapFlushCallback=function(a){this._documentConstructionObserver.disconnect();var b=this._flushCallback;this._flushCallback=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=q;q.prototype.define=q.prototype.define;q.prototype.get=q.prototype.get;q.prototype.whenDefined=q.prototype.whenDefined;q.prototype.polyfillWrapFlushCallback=q.prototype.polyfillWrapFlushCallback;la.default=q;var r={},ma={Document_createElement:window.Document.prototype.createElement,Document_createElementNS:window.Document.prototype.createElementNS,Document_importNode:window.Document.prototype.importNode,Document_prepend:window.Document.prototype.prepend,Document_append:window.Document.prototype.append,Node_cloneNode:window.Node.prototype.cloneNode,Node_appendChild:window.Node.prototype.appendChild,Node_insertBefore:window.Node.prototype.insertBefore,Node_removeChild:window.Node.prototype.removeChild,
Node_replaceChild:window.Node.prototype.replaceChild,Node_textContent:Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Element_attachShadow:window.Element.prototype.attachShadow,Element_innerHTML:Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Element_getAttribute:window.Element.prototype.getAttribute,Element_setAttribute:window.Element.prototype.setAttribute,Element_removeAttribute:window.Element.prototype.removeAttribute,Element_getAttributeNS:window.Element.prototype.getAttributeNS,
Element_setAttributeNS:window.Element.prototype.setAttributeNS,Element_removeAttributeNS:window.Element.prototype.removeAttributeNS,Element_insertAdjacentElement:window.Element.prototype.insertAdjacentElement,Element_prepend:window.Element.prototype.prepend,Element_append:window.Element.prototype.append,Element_before:window.Element.prototype.before,Element_after:window.Element.prototype.after,Element_replaceWith:window.Element.prototype.replaceWith,Element_remove:window.Element.prototype.remove,
HTMLElement:window.HTMLElement,HTMLElement_innerHTML:Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),HTMLElement_insertAdjacentElement:window.HTMLElement.prototype.insertAdjacentElement};r.default=ma;var ua={},va=new function(){};ua.default=va;var wa={default:function(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.constructorToDefinition(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=r.default.Document_createElement.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=n.default.custom,e.__CE_definition=d,a.patch(e),e;var d=e.length-1,f=e[d];if(f===ua.default)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
e[d]=ua.default;Object.setPrototypeOf(f,b.prototype);a.patch(f);return f}b.prototype=r.default.HTMLElement.prototype;return b}()}};var xa={default:function(a,b,c){b.prepend=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.prepend.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.append=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.append.apply(this,
d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)}}};var ya={default:function(a){m.setPropertyUnchecked(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var c=a.localNameToDefinition(b);if(c)return new c.constructor}b=r.default.Document_createElement.call(this,b);a.patch(b);return b});m.setPropertyUnchecked(Document.prototype,"importNode",function(b,c){b=r.default.Document_importNode.call(this,b,c);this.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});m.setPropertyUnchecked(Document.prototype,"createElementNS",
function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.localNameToDefinition(c);if(d)return new d.constructor}b=r.default.Document_createElementNS.call(this,b,c);a.patch(b);return b});xa.default(a,Document.prototype,{prepend:r.default.Document_prepend,append:r.default.Document_append})}};var za={default:function(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&m.isConnected(this))for(var c=Array(h),k=0;k<h;k++)c[k]=e[k]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.disconnectTree(c[b])}}})}m.setPropertyUnchecked(Node.prototype,"insertBefore",function(b,d){if(b instanceof DocumentFragment){var c=
Array.prototype.slice.apply(b.childNodes);b=r.default.Node_insertBefore.call(this,b,d);if(m.isConnected(this))for(d=0;d<c.length;d++)a.connectTree(c[d]);return b}c=m.isConnected(b);d=r.default.Node_insertBefore.call(this,b,d);c&&a.disconnectTree(b);m.isConnected(this)&&a.connectTree(b);return d});m.setPropertyUnchecked(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=r.default.Node_appendChild.call(this,b);if(m.isConnected(this))for(var e=
0;e<c.length;e++)a.connectTree(c[e]);return b}c=m.isConnected(b);e=r.default.Node_appendChild.call(this,b);c&&a.disconnectTree(b);m.isConnected(this)&&a.connectTree(b);return e});m.setPropertyUnchecked(Node.prototype,"cloneNode",function(b){b=r.default.Node_cloneNode.call(this,b);this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});m.setPropertyUnchecked(Node.prototype,"removeChild",function(b){var c=m.isConnected(b),e=r.default.Node_removeChild.call(this,b);c&&a.disconnectTree(b);
return e});m.setPropertyUnchecked(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=r.default.Node_replaceChild.call(this,b,d);if(m.isConnected(this))for(a.disconnectTree(d),d=0;d<c.length;d++)a.connectTree(c[d]);return b}var c=m.isConnected(b),f=r.default.Node_replaceChild.call(this,b,d),g=m.isConnected(this);g&&a.disconnectTree(d);c&&a.disconnectTree(b);g&&a.connectTree(b);return f});r.default.Node_textContent&&r.default.Node_textContent.get?
b(Node.prototype,r.default.Node_textContent):a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)r.default.Node_removeChild.call(this,this.firstChild);r.default.Node_appendChild.call(this,document.createTextNode(a))}})})}};var Aa={default:function(a,b,c){b.before=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.before.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.after=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)});c.after.apply(this,
d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.replaceWith=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];var f=d.filter(function(a){return a instanceof Node&&m.isConnected(a)}),g=m.isConnected(this);c.replaceWith.apply(this,d);for(var h=0;h<f.length;h++)a.disconnectTree(f[h]);if(g)for(a.disconnectTree(this),f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};
b.remove=function(){var b=m.isConnected(this);c.remove.call(this);b&&a.disconnectTree(this)}}};var Ca={default:function(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;m.isConnected(this)&&(e=[],m.walkDeepDescendantElements(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];g.__CE_state===n.default.custom&&a.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(this):a.patchTree(this);return b}})}function c(b,c){m.setPropertyUnchecked(b,
"insertAdjacentElement",function(b,d){var e=m.isConnected(d);b=c.call(this,b,d);e&&a.disconnectTree(d);m.isConnected(b)&&a.connectTree(d);return b})}r.default.Element_attachShadow?m.setPropertyUnchecked(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=r.default.Element_attachShadow.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(r.default.Element_innerHTML&&r.default.Element_innerHTML.get)b(Element.prototype,r.default.Element_innerHTML);
else if(r.default.HTMLElement_innerHTML&&r.default.HTMLElement_innerHTML.get)b(HTMLElement.prototype,r.default.HTMLElement_innerHTML);else{var d=r.default.Document_createElement.call(document,"div");a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return r.default.Node_cloneNode.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)r.default.Node_removeChild.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)r.default.Node_appendChild.call(b,
d.childNodes[0])}})})}m.setPropertyUnchecked(Element.prototype,"setAttribute",function(b,c){if(this.__CE_state!==n.default.custom)return r.default.Element_setAttribute.call(this,b,c);var d=r.default.Element_getAttribute.call(this,b);r.default.Element_setAttribute.call(this,b,c);c=r.default.Element_getAttribute.call(this,b);d!==c&&a.attributeChangedCallback(this,b,d,c,null)});m.setPropertyUnchecked(Element.prototype,"setAttributeNS",function(b,c,d){if(this.__CE_state!==n.default.custom)return r.default.Element_setAttributeNS.call(this,
b,c,d);var e=r.default.Element_getAttributeNS.call(this,b,c);r.default.Element_setAttributeNS.call(this,b,c,d);d=r.default.Element_getAttributeNS.call(this,b,c);e!==d&&a.attributeChangedCallback(this,c,e,d,b)});m.setPropertyUnchecked(Element.prototype,"removeAttribute",function(b){if(this.__CE_state!==n.default.custom)return r.default.Element_removeAttribute.call(this,b);var c=r.default.Element_getAttribute.call(this,b);r.default.Element_removeAttribute.call(this,b);null!==c&&a.attributeChangedCallback(this,
b,c,null,null)});m.setPropertyUnchecked(Element.prototype,"removeAttributeNS",function(b,c){if(this.__CE_state!==n.default.custom)return r.default.Element_removeAttributeNS.call(this,b,c);var d=r.default.Element_getAttributeNS.call(this,b,c);r.default.Element_removeAttributeNS.call(this,b,c);var e=r.default.Element_getAttributeNS.call(this,b,c);d!==e&&a.attributeChangedCallback(this,c,d,e,b)});r.default.HTMLElement_insertAdjacentElement?c(HTMLElement.prototype,r.default.HTMLElement_insertAdjacentElement):
r.default.Element_insertAdjacentElement?c(Element.prototype,r.default.Element_insertAdjacentElement):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");xa.default(a,Element.prototype,{prepend:r.default.Element_prepend,append:r.default.Element_append});Aa.default(a,Element.prototype,{before:r.default.Element_before,after:r.default.Element_after,replaceWith:r.default.Element_replaceWith,remove:r.default.Element_remove})}};var Da=window.customElements;if(!Da||Da.forcePolyfill||"function"!=typeof Da.define||"function"!=typeof Da.get){var Ea=new ga.default;wa.default(Ea);ya.default(Ea);za.default(Ea);Ca.default(Ea);document.__CE_hasRegistry=!0;var Fa=new la.default(Ea);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Fa})};/*
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -68,8 +14,6 @@ r.default.Element_insertAdjacentElement?c(Element.prototype,r.default.Element_in
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){if(customElements&&customElements.polyfillWrapFlushCallback){var a=function(){if(b){var a=b;b=null;a();return!0}},b,c=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(d){b=d;c(a)});HTMLImports.whenReady=function(b){c(function(){a()?HTMLImports.whenReady(b):b()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);var Ga=document.createElement("style");Ga.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Ha=document.querySelector("head");Ha.insertBefore(Ga,Ha.firstChild);/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -77,73 +21,6 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var u={},Ia=window.ShadyDOM||{};Ia.hasNativeShadowDOM=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Ja=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");Ia.hasDescriptors=!!(Ja&&Ja.configurable&&Ja.get);Ia.inUse=Ia.force||!Ia.hasNativeShadowDOM;function Ka(a){return"ShadyRoot"===a.__localName}var La=Element.prototype,Ta=La.matches||La.matchesSelector||La.mozMatchesSelector||La.msMatchesSelector||La.oMatchesSelector||La.webkitMatchesSelector;
function Ua(a,b){if(a&&b)for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length&&(e=c[d]);d++){var f=e,g=a,h=Object.getOwnPropertyDescriptor(b,f);h&&Object.defineProperty(g,f,h)}return a||b}var Va=document.createTextNode(""),Wa=0,Xa=[];(new MutationObserver(function(){for(;Xa.length;)try{Xa.shift()()}catch(a){throw Va.textContent=Wa++,a;}})).observe(Va,{characterData:!0});u.settings=Ia;u.isShadyRoot=Ka;u.ownerShadyRootForNode=function(a){a=a.getRootNode();if(Ka(a))return a};
u.matchesSelector=function(a,b){return Ta.call(a,b)};u.extend=Ua;u.extendAll=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(d=0;d<c.length;d++)Ua(a,c[d]);return a};u.mixin=function(a,b){for(var c in b)a[c]=b[c];return a};u.patchPrototype=function(a,b){var c=Object.getPrototypeOf(a);if(!c.hasOwnProperty("__patchProto")){var d=Object.create(c);d.__sourceProto=c;Ua(d,b);c.__patchProto=d}a.__proto__=c.__patchProto};u.microtask=function(a){Xa.push(a);Va.textContent=Wa++};var Ya={},Za=[],$a;function ab(){$a=!1;for(var a=!!Za.length;Za.length;)Za.shift()();return a}ab.list=Za;Ya.enqueue=function(a){$a||($a=!0,u.microtask(ab));Za.push(a)};Ya.flush=ab;var bb={};function cb(){this._scheduled=!1;this.addedNodes=[];this.removedNodes=[];this.callbacks=new Set}cb.prototype.schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,u.microtask(function(){a.flush()}))};cb.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var a=this.takeRecords();a.length&&this.callbacks.forEach(function(b){b(a)})}};
cb.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};bb.observeChildren=function(a,b){a.__shady=a.__shady||{};a.__shady.observer||(a.__shady.observer=new cb);a.__shady.observer.callbacks.add(b);var c=a.__shady.observer;return{_callback:b,_observer:c,_node:a,takeRecords:function(){return c.takeRecords()}}};
bb.unobserveChildren=function(a){var b=a&&a._observer;b&&(b.callbacks.delete(a._callback),b.callbacks.size||(a._node.__shady.observer=null))};bb.filterMutations=function(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})};var v={},db=Element.prototype.insertBefore,eb=Element.prototype.removeChild,fb=Element.prototype.setAttribute,gb=Element.prototype.removeAttribute,hb=Element.prototype.cloneNode,ib=Document.prototype.importNode,jb=Element.prototype.addEventListener,kb=Element.prototype.removeEventListener;v.appendChild=Element.prototype.appendChild;v.insertBefore=db;v.removeChild=eb;v.setAttribute=fb;v.removeAttribute=gb;v.cloneNode=hb;v.importNode=ib;v.addEventListener=jb;v.removeEventListener=kb;var lb={},mb=/[&\u00A0"]/g,nb=/[&\u00A0<>]/g;function ob(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function pb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var qb=pb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),rb=pb("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function sb(a,b,c){switch(a.nodeType){case Node.ELEMENT_NODE:b=a.localName;for(var d="<"+b,e=a.attributes,f=0,g;g=e[f];f++)d+=" "+g.name+'="'+g.value.replace(mb,ob)+'"';d+=">";return qb[b]?d:d+tb(a,c)+"</"+b+">";case Node.TEXT_NODE:return a=a.data,b&&rb[b.localName]?a:a.replace(nb,ob);case Node.COMMENT_NODE:return"\x3c!--"+a.data+"--\x3e";default:throw window.console.error(a),Error("not implemented");}}
function tb(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g;e<f&&(g=d[e]);e++)c+=sb(g,a,b);return c}lb.getOuterHTML=sb;lb.getInnerHTML=tb;var x={},y=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),z=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function ub(a){var b=[];y.currentNode=a;for(a=y.firstChild();a;)b.push(a),a=y.nextSibling();return b}x.parentNode=function(a){y.currentNode=a;return y.parentNode()};x.firstChild=function(a){y.currentNode=a;return y.firstChild()};x.lastChild=function(a){y.currentNode=a;return y.lastChild()};x.previousSibling=function(a){y.currentNode=a;return y.previousSibling()};
x.nextSibling=function(a){y.currentNode=a;return y.nextSibling()};x.childNodes=ub;x.parentElement=function(a){z.currentNode=a;return z.parentNode()};x.firstElementChild=function(a){z.currentNode=a;return z.firstChild()};x.lastElementChild=function(a){z.currentNode=a;return z.lastChild()};x.previousElementSibling=function(a){z.currentNode=a;return z.previousSibling()};x.nextElementSibling=function(a){z.currentNode=a;return z.nextSibling()};
x.children=function(a){var b=[];z.currentNode=a;for(a=z.firstChild();a;)b.push(a),a=z.nextSibling();return b};x.innerHTML=function(a){return lb.getInnerHTML(a,function(a){return ub(a)})};x.textContent=function(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b};var A={};function vb(a,b){return a.__shady&&a.__shady[b]}A.getProperty=vb;A.hasProperty=function(a,b){return void 0!==vb(a,b)};var B={};function wb(a){return{get:function(){var b=A.getProperty(this,a);return void 0!==b?b:x[a](this)},configurable:!0}}
var xb=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),yb=document.implementation.createHTMLDocument("inert").createElement("div"),zb=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Ab={parentElement:wb("parentElement"),parentNode:wb("parentNode"),nextSibling:wb("nextSibling"),previousSibling:wb("previousSibling"),className:{get:function(){return this.getAttribute("class")},set:function(a){this.setAttribute("class",
a)},configurable:!0},nextElementSibling:{get:function(){if(A.hasProperty(this,"nextSibling")){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return x.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(A.hasProperty(this,"previousSibling")){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return x.previousElementSibling(this)},configurable:!0}},Bb={childNodes:{get:function(){if(A.hasProperty(this,
"firstChild")){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}return this.__shady.childNodes}return x.childNodes(this)},configurable:!0},firstChild:wb("firstChild"),lastChild:wb("lastChild"),textContent:{get:function(){if(A.hasProperty(this,"firstChild")){for(var a=[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return x.textContent(this)},set:function(a){if(this.nodeType!==
Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);a&&this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(A.hasProperty(this,"firstChild")){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return x.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(A.hasProperty(this,"lastChild")){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=
a.previousSibling;return a}return x.lastElementChild(this)},configurable:!0},children:{get:function(){return A.hasProperty(this,"firstChild")?Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):x.children(this)},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return A.hasProperty(this,"firstChild")?lb.getInnerHTML(a):x.innerHTML(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);
for(xb&&xb.set?xb.set.call(yb,a):yb.innerHTML=a;yb.firstChild;)b.appendChild(yb.firstChild)},configurable:!0}},Cb={shadowRoot:{get:function(){return this.shadyRoot},set:function(a){this.shadyRoot=a},configurable:!0}},Ib={activeElement:{get:function(){var a;a=zb&&zb.get?zb.get.call(document):u.settings.hasDescriptors?void 0:document.activeElement;if(a&&a.nodeType){var b=!!u.isShadyRoot(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=u.ownerShadyRootForNode(a);b&&b!==this;)a=
b.host,b=u.ownerShadyRootForNode(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}};function Jb(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Could not define",d,"on",a)}}
var Kb=u.settings.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__outsideAccessors||(a.__shady=a.__shady||{},a.__shady.__outsideAccessors=!0,Jb(a,Ab,!0))},Lb=u.settings.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__insideAccessors||(a.__shady=a.__shady||{},a.__shady.__insideAccessors=!0,Jb(a,Bb,!0),Jb(a,Cb,!0))};B.ShadowRootAccessor=Cb;B.ActiveElementAccessor=Ib;B.patchAccessors=function(a){Jb(a,Ab);Jb(a,Bb);Jb(a,Ib)};
B.patchShadowRootAccessors=function(a){Jb(a,Bb,!0);Jb(a,Ib,!0)};B.patchOutsideElementAccessors=Kb;B.patchInsideElementAccessors=Lb;var D={};
function Mb(a,b,c){B.patchOutsideElementAccessors(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild=a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=
null}D.recordInsertBefore=function(a,b,c){B.patchInsideElementAccessors(b);b.__shady=b.__shady||{};A.hasProperty(b,"firstChild")&&(b.__shady.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var d=a.childNodes,e=0;e<d.length;e++)Mb(d[e],b,c);a.__shady=a.__shady||{};b=A.hasProperty(a,"firstChild")?null:void 0;a.__shady.firstChild=a.__shady.lastChild=b;a.__shady.childNodes=b}else Mb(a,b,c)};
D.recordRemoveChild=function(a,b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var c=a.__shady.previousSibling,d=a.__shady.nextSibling;c&&(c.__shady=c.__shady||{},c.__shady.nextSibling=d);d&&(d.__shady=d.__shady||{},d.__shady.previousSibling=c);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;A.hasProperty(b,"childNodes")&&(b.__shady.childNodes=
null)};D.recordChildNodes=function(a){if(!A.hasProperty(a,"firstChild")){a.__shady=a.__shady||{};a.__shady.firstChild=x.firstChild(a);a.__shady.lastChild=x.lastChild(a);B.patchInsideElementAccessors(a);for(var b=a.__shady.childNodes=x.childNodes(a),c=0,d;c<b.length&&(d=b[c]);c++)d.__shady=d.__shady||{},d.__shady.parentNode=a,d.__shady.nextSibling=b[c+1]||null,d.__shady.previousSibling=b[c-1]||null,B.patchOutsideElementAccessors(d)}};var E={};
function Nb(a){var b=A.hasProperty(a,"parentNode")&&A.getProperty(a,"parentNode"),c,d=u.ownerShadyRootForNode(a);if(b||d){c=Ob(a);b&&D.recordRemoveChild(a,b);var e;if(e=d){var f;e=d._insertionPoints;for(var g=0;g<e.length;g++){var h=e[g],k;a:{for(k=h;k;){if(k==a){k=!0;break a}k=k.parentNode}k=void 0}if(k)for(h=h.assignedNodes({flatten:!0}),k=0;k<h.length;k++){f=!0;var l=h[k],t=x.parentNode(l);t&&v.removeChild.call(t,l)}}e=f}f=e;b=b&&d&&b.localName===d.getInsertionPointTag();if(f||b)d._skipUpdateInsertionPoints=!1,
Pb(d)}Qb(a);return c}function Rb(a,b,c){if(a=a.__shady&&a.__shady.observer)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.schedule()}function Sb(a){if(a&&a.nodeType){var b=a.__ownerShadyRoot;void 0===b&&(b=u.isShadyRoot(a)?a:(b=a.parentNode)?Sb(b):a,document.documentElement.contains(a)&&(a.__ownerShadyRoot=b));return b}}
function Tb(a,b,c){var d,e=c.getInsertionPointTag();if(a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||a.__noInsertionPoint)a.localName===e&&(D.recordChildNodes(b),D.recordChildNodes(a),d=!0);else for(var e=a.querySelectorAll(e),f=0,g,h;f<e.length&&(g=e[f]);f++)h=g.parentNode,h===a&&(h=b),h=Tb(g,h,c),d=d||h;return d}function Qb(a){if(void 0!==a.__ownerShadyRoot)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Qb(e);a.__ownerShadyRoot=void 0}
function Ob(a){if((a=a.parentNode)&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())return Pb(a.shadyRoot),!0}function Pb(a){a._changePending=!0;a.update()}function Ub(a,b){"slot"===b?Ob(a):"slot"===a.localName&&"name"===b&&(a=u.ownerShadyRootForNode(a))&&a.update()}function Vb(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var k=b,l=c,t=d,C=k(h);C&&t.push(h);l&&l(C)?h=C:(Vb(h.childNodes,k,l,t),h=void 0)}if(h)return!0}}var Wb=null;
function Xb(a,b){if(a.ownerDocument!==document)return v.importNode.call(document,a,b);var c=v.importNode.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=Xb(a[b],!0),c.appendChild(d)}return c}E.getRootNode=Sb;E.query=function(a,b,c){var d=[];Vb(a.childNodes,b,c,d);return d};E.renderRootNode=function(a){a=a.getRootNode();u.isShadyRoot(a)&&a.render()};
E.setAttribute=function(a,b,c){Wb||(Wb=window.ShadyCSS&&window.ShadyCSS.ScopingShim);Wb&&"class"===b?Wb.setElementClass(a,c):(v.setAttribute.call(a,b,c),Ub(a,b))};E.removeAttribute=function(a,b){v.removeAttribute.call(a,b);Ub(a,b)};
E.insertBefore=function(a,b,c){if(c){var d=A.getProperty(c,"parentNode");if(void 0!==d&&d!==a||void 0===d&&x.parentNode(c)!==a)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(c===b)return b;b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(d=A.getProperty(b,"parentNode"),d?(Rb(d,null,b),Nb(b)):(b.parentNode&&v.removeChild.call(b.parentNode,b),Qb(b)));var d=c,e=u.ownerShadyRootForNode(a),f;e&&(b.__noInsertionPoint&&
!e._changePending&&(e._skipUpdateInsertionPoints=!0),f=Tb(b,a,e))&&(e._skipUpdateInsertionPoints=!1);A.hasProperty(a,"firstChild")&&D.recordInsertBefore(b,a,d);var g=f,h=e&&e.getInsertionPointTag()||"",k=b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!b.__noInsertionPoint&&h&&b.querySelector(h);f=k&&k.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;((k=k||b.localName===h)||a.localName===h||g)&&e&&Pb(e);(e=a&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())&&Pb(a.shadyRoot);if(!(e||k&&!f||a.shadyRoot||d&&
u.isShadyRoot(d.parentNode)&&d.parentNode._renderPending)){if(c&&(d=u.ownerShadyRootForNode(c))){var l;if(c.localName===d.getInsertionPointTag())a:{d=c.assignedNodes({flatten:!0});e=Sb(c);f=0;for(g=d.length;f<g&&(l=d[f]);f++)if(e.isFinalDestination(c,l))break a;l=void 0}else l=c;c=l}l=u.isShadyRoot(a)?a.host:a;c?v.insertBefore.call(l,b,c):v.appendChild.call(l,b)}Rb(a,b);return b};
E.removeChild=function(a,b){if(b.parentNode!==a)throw Error("The node to be removed is not a child of this node: "+b);if(!Nb(b)){var c=u.isShadyRoot(a)?a.host:a,d=x.parentNode(b);c===d&&v.removeChild.call(c,b)}Rb(a,null,b);return b};E.cloneNode=function(a,b){if("template"==a.localName)return v.cloneNode.call(a,b);var c=v.cloneNode.call(a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=a[b].cloneNode(!0),c.appendChild(d)}return c};E.importNode=Xb;var Yb={},Zb={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};function $b(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===document&&c.push(window);return c}
function ac(a,b){if(!u.isShadyRoot)return a;a=$b(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!u.isShadyRoot(f)||-1<g)return d}
var bc={get composed(){this.isTrusted&&void 0===this.__composed&&(this.__composed=Zb[this.type]);return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=$b(this.__target,this.composed));return this.__composedPath},get target(){return ac(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=$b(this.__relatedTarget,!0));return ac(this.currentTarget,this.__relatedTargetComposedPath)},
stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.__propagationStopped=this.__immediatePropagationStopped=!0}};function cc(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}u.mixin(b,a);b.prototype=a.prototype;return b}var dc={focus:!0,blur:!0};
function ec(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function fc(a){var b=a.composedPath(),c;Object.defineProperty(a,"currentTarget",{get:function(){return c},configurable:!0});for(var d=b.length-1;0<=d;d--)if(c=b[d],ec(a,c,"capture"),a.__propagationStopped)return;Object.defineProperty(a,"eventPhase",{value:Event.AT_TARGET});for(var e,d=0;d<b.length;d++)if(c=b[d],0===d||c.shadowRoot&&c.shadowRoot===e)if(ec(a,c,"bubble"),c!==window&&(e=c.getRootNode()),a.__propagationStopped)break}
function gc(){for(var a in dc)window.addEventListener(a,function(a){a.__target||(hc(a),fc(a),a.stopImmediatePropagation())},!0)}function hc(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;u.settings.hasDescriptors?u.patchPrototype(a,bc):u.extend(a,bc)}var ic=cc(window.Event),jc=cc(window.CustomEvent),kc=cc(window.MouseEvent);
Yb.addEventListener=function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);if(b.__eventWrappers)for(var g=0;g<b.__eventWrappers.length;g++){if(b.__eventWrappers[g].node===this&&b.__eventWrappers[g].type===a&&b.__eventWrappers[g].capture===d&&b.__eventWrappers[g].once===e&&b.__eventWrappers[g].passive===f)return}else b.__eventWrappers=[];g=function(d){e&&this.removeEventListener(a,b,c);d.__target||hc(d);if(d.composed||-1<d.composedPath().indexOf(this))if(d.eventPhase===
Event.BUBBLING_PHASE&&d.target===d.relatedTarget)d.stopImmediatePropagation();else return b(d)};b.__eventWrappers.push({node:this,type:a,capture:d,once:e,passive:f,wrapperFn:g});dc[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][d?"capture":"bubble"].push(g)):v.addEventListener.call(this,a,g,c)}};
Yb.removeEventListener=function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);var g=void 0;if(b.__eventWrappers)for(var h=0;h<b.__eventWrappers.length;h++)if(b.__eventWrappers[h].node===this&&b.__eventWrappers[h].type===a&&b.__eventWrappers[h].capture===d&&b.__eventWrappers[h].once===e&&b.__eventWrappers[h].passive===f){g=b.__eventWrappers.splice(h,1)[0].wrapperFn;b.__eventWrappers.length||(b.__eventWrappers=void 0);break}v.removeEventListener.call(this,
a,g||b,c);g&&dc[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][d?"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}};Yb.patchEvents=function(){window.Event=ic;window.CustomEvent=jc;window.MouseEvent=kc;gc()};var lc={};function mc(a,b,c){return{index:a,removed:b,addedCount:c}}
function nc(a,b,c,d,e,f){var g=0,h=0,k=Math.min(c-b,f-e);if(0==b&&0==e)a:{for(g=0;g<k;g++)if(a[g]!==d[g])break a;g=k}if(c==a.length&&f==d.length){for(var h=k-g,k=a.length,l=d.length,t=0;t<h&&oc(a[--k],d[--l]);)t++;h=t}b+=g;e+=g;c-=h;f-=h;if(0==c-b&&0==f-e)return[];if(b==c){for(c=mc(b,[],0);e<f;)c.removed.push(d[e++]);return[c]}if(e==f)return[mc(b,[],c-b)];g=b;h=e;f=f-h+1;k=c-g+1;c=Array(f);for(l=0;l<f;l++)c[l]=Array(k),c[l][0]=l;for(l=0;l<k;l++)c[0][l]=l;for(l=1;l<f;l++)for(t=1;t<k;t++)if(a[g+t-1]===
d[h+l-1])c[l][t]=c[l-1][t-1];else{var C=c[l-1][t]+1,R=c[l][t-1]+1;c[l][t]=C<R?C:R}f=c.length-1;g=c[0].length-1;h=c[f][g];for(a=[];0<f||0<g;)0==f?(a.push(2),g--):0==g?(a.push(3),f--):(k=c[f-1][g-1],l=c[f-1][g],t=c[f][g-1],C=l<t?l<k?l:k:t<k?t:k,C==k?(k==h?a.push(0):(a.push(1),h=k),f--,g--):C==l?(a.push(3),f--,h=l):(a.push(2),g--,h=t));a.reverse();c=void 0;f=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:c&&(f.push(c),c=void 0);b++;e++;break;case 1:c||(c=mc(b,[],0));c.addedCount++;b++;c.removed.push(d[e]);
e++;break;case 2:c||(c=mc(b,[],0));c.addedCount++;b++;break;case 3:c||(c=mc(b,[],0)),c.removed.push(d[e]),e++}c&&f.push(c);return f}function oc(a,b){return a===b}lc.calculateSplices=function(a,b){return nc(a,0,a.length,b,0,b.length)};var pc={},qc="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};function F(a){this.root=a;this.insertionPointTag="slot"}F.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)};F.prototype.hasInsertionPoint=function(){return!(!this.root._insertionPoints||!this.root._insertionPoints.length)};
F.prototype.isInsertionPoint=function(a){return a.localName&&a.localName==this.insertionPointTag};F.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]};F.prototype.collectPool=function(){for(var a=[],b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};
F.prototype.distributePool=function(a,b){a=[];for(var c=this.root._insertionPoints,d=0,e=c.length,f;d<e&&(f=c[d]);d++){this.distributeInsertionPoint(f,b);var g=f.parentNode;g&&g.shadyRoot&&g.shadyRoot.hasInsertionPoint()&&a.push(g.shadyRoot)}for(c=0;c<b.length;c++)if(f=b[c])f.__shady=f.__shady||{},f.__shady.assignedSlot=void 0,(d=x.parentNode(f))&&v.removeChild.call(d,f);return a};
F.prototype.distributeInsertionPoint=function(a,b){var c=a.__shady.assignedNodes;c&&this.clearAssignedSlots(a,!0);a.__shady.assignedNodes=[];for(var d=!1,e=!1,f=0,g=b.length,h;f<g;f++)(h=b[f])&&this.matchesInsertionPoint(h,a)&&(h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a),b[f]=void 0,e=!0);if(!e)for(b=a.childNodes,e=0;e<b.length;e++)h=b[e],h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a);if(c){for(h=0;h<c.length;h++)c[h].__shady._prevAssignedSlot=null;a.__shady.assignedNodes.length<
c.length&&(d=!0)}this.setDistributedNodesOnInsertionPoint(a);d&&this._fireSlotChange(a)};F.prototype.clearAssignedSlots=function(a,b){var c=a.__shady.assignedNodes;if(c)for(var d=0;d<c.length;d++){var e=c[d];b&&(e.__shady._prevAssignedSlot=e.__shady.assignedSlot);e.__shady.assignedSlot===a&&(e.__shady.assignedSlot=null)}};F.prototype.matchesInsertionPoint=function(a,b){b=(b=b.getAttribute("name"))?b.trim():"";a=(a=a.getAttribute&&a.getAttribute("slot"))?a.trim():"";return a==b};
F.prototype.distributeNodeInto=function(a,b){b.__shady.assignedNodes.push(a);a.__shady.assignedSlot=b};F.prototype.setDistributedNodesOnInsertionPoint=function(a){var b=a.__shady.assignedNodes;a.__shady.distributedNodes=[];for(var c=0,d;c<b.length&&(d=b[c]);c++)if(this.isInsertionPoint(d)){var e=d.__shady.distributedNodes;if(e)for(var f=0;f<e.length;f++)a.__shady.distributedNodes.push(e[f])}else a.__shady.distributedNodes.push(b[c])};
F.prototype._fireSlotChange=function(a){a.dispatchEvent(new qc("slotchange"));a.__shady.assignedSlot&&this._fireSlotChange(a.__shady.assignedSlot)};F.prototype.isFinalDestination=function(a){return!a.__shady.assignedSlot};pc.default=F;var rc={},sc={};function I(a,b){if(a!==sc)throw new TypeError("Illegal constructor");a=document.createDocumentFragment();a.__proto__=I.prototype;a._init(b);return a}I.prototype=Object.create(DocumentFragment.prototype);I.prototype._init=function(a){this.__localName="ShadyRoot";D.recordChildNodes(a);D.recordChildNodes(this);a.shadowRoot=this;this.host=a;this._changePending=this._hasRendered=this._renderPending=!1;this._distributor=new pc.default(this);this.update()};
I.prototype.update=function(){var a=this;this._renderPending||(this._renderPending=!0,Ya.enqueue(function(){return a.render()}))};I.prototype._getRenderRoot=function(){for(var a=this,b=this;b;)b._renderPending&&(a=b),b=b._rendererForHost();return a};I.prototype._rendererForHost=function(){var a=this.host.getRootNode();if(u.isShadyRoot(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this._distributor.isInsertionPoint(d))return a};
I.prototype.render=function(){this._renderPending&&this._getRenderRoot()._render()};I.prototype._render=function(){this._changePending=this._renderPending=!1;this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints();this._skipUpdateInsertionPoints=!1;this.distribute();this.compose();this._hasRendered=!0};I.prototype.forceRender=function(){this._renderPending=!0;this.render()};
I.prototype.distribute=function(){for(var a=this._distributor.distribute(),b=0;b<a.length;b++)a[b]._render()};I.prototype.updateInsertionPoints=function(){var a=this.__insertionPoints;if(a)for(var b=0,c;b<a.length;b++)c=a[b],c.getRootNode()!==this&&this._distributor.clearAssignedSlots(c);a=this._insertionPoints=this._distributor.getInsertionPoints();for(b=0;b<a.length;b++)c=a[b],c.__shady=c.__shady||{},D.recordChildNodes(c),D.recordChildNodes(c.parentNode)};I.prototype.hasInsertionPoint=function(){return this._distributor.hasInsertionPoint()};
I.prototype.compose=function(){this._composeTree()};I.prototype._composeTree=function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var a=this._insertionPoints||[],b=0,c=a.length,d,e;b<c&&(d=a[b]);b++)e=d.parentNode,e!==this.host&&e!==this&&this._updateChildNodes(e,this._composeNode(e))};
I.prototype._composeNode=function(a){var b=[];a=(a.shadyRoot||a).childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this._distributor.isInsertionPoint(d))for(var e=d.__shady.distributedNodes||(d.__shady.distributedNodes=[]),f=0;f<e.length;f++){var g=e[f];this.isFinalDestination(d,g)&&b.push(g)}else b.push(d)}return b};I.prototype.isFinalDestination=function(a,b){return this._distributor.isFinalDestination(a,b)};
I.prototype._updateChildNodes=function(a,b){for(var c=x.childNodes(a),d=lc.calculateSplices(b,c),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.removed.length&&(k=g.removed[h]);h++)x.parentNode(k)===a&&v.removeChild.call(a,k),c.splice(g.index+f,1);f-=g.addedCount}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.addedCount;h++)k=b[h],v.insertBefore.call(a,k,f),c.splice(h,0,k)};I.prototype.getInsertionPointTag=function(){return this._distributor.insertionPointTag};
Object.defineProperty(I.prototype,"_insertionPoints",{get:function(){this.__insertionPoints||this.updateInsertionPoints();return this.__insertionPoints||(this.__insertionPoints=[])},set:function(a){this.__insertionPoints=a},configurable:!0});B.patchShadowRootAccessors(I.prototype);rc.ShadyRoot=I;rc.attachShadow=function(a,b){if(!a)throw"Must provide a host.";if(!b)throw"Not enough arguments.";return new I(sc,a)};var tc={};function uc(a){E.renderRootNode(a);return A.getProperty(a,"assignedSlot")||null}
var vc={addEventListener:Yb.addEventListener,removeEventListener:Yb.removeEventListener,appendChild:function(a){return E.insertBefore(this,a)},insertBefore:function(a,b){return E.insertBefore(this,a,b)},removeChild:function(a){return E.removeChild(this,a)},replaceChild:function(a,b){this.insertBefore(a,b);this.removeChild(b);return a},cloneNode:function(a){return E.cloneNode(this,a)},getRootNode:function(a){return E.getRootNode(this,a)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&
a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof rc.ShadyRoot?a.host:void 0);return!!(a&&a instanceof Document)}},wc={get assignedSlot(){return uc(this)}},xc={querySelector:function(a){return E.query(this,function(b){return u.matchesSelector(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return E.query(this,function(b){return u.matchesSelector(b,a)})}},yc={assignedNodes:function(a){if("slot"===
this.localName)return E.renderRootNode(this),this.__shady?(a&&a.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},zc=u.extendAll({setAttribute:function(a,b){E.setAttribute(this,a,b)},removeAttribute:function(a){E.removeAttribute(this,a)},attachShadow:function(a){return rc.attachShadow(this,a)},get slot(){return this.getAttribute("slot")},set slot(a){this.setAttribute("slot",a)},get assignedSlot(){return uc(this)}},xc,yc);Object.defineProperties(zc,B.ShadowRootAccessor);
var Ac=u.extendAll({importNode:function(a,b){return E.importNode(a,b)}},xc);Object.defineProperties(Ac,{_activeElement:B.ActiveElementAccessor.activeElement});function Bc(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f.value?a[e]=f.value:Object.defineProperty(a,e,f)}}
tc.patchBuiltins=function(){Bc(window.Node.prototype,vc);Bc(window.Text.prototype,wc);Bc(window.DocumentFragment.prototype,xc);Bc(window.Element.prototype,zc);Bc(window.Document.prototype,Ac);window.HTMLSlotElement&&Bc(window.HTMLSlotElement.prototype,yc);u.settings.hasDescriptors&&(B.patchAccessors(window.Node.prototype),B.patchAccessors(window.Text.prototype),B.patchAccessors(window.DocumentFragment.prototype),B.patchAccessors(window.Element.prototype),B.patchAccessors((window.customElements&&customElements.nativeHTMLElement||
HTMLElement).prototype),B.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&B.patchAccessors(window.HTMLSlotElement.prototype))};u.settings.inUse&&(window.ShadyDOM={},window.ShadyDOM.inUse=u.settings.inUse,window.ShadyDOM.patch=function(a){return a},window.ShadyDOM.isShadyRoot=u.isShadyRoot,window.ShadyDOM.enqueue=Ya.enqueue,window.ShadyDOM.flush=Ya.flush,window.ShadyDOM.settings=u.settings,window.ShadyDOM.filterMutations=bb.filterMutations,window.ShadyDOM.observeChildren=bb.observeChildren,window.ShadyDOM.unobserveChildren=bb.unobserveChildren,window.ShadyDOM.nativeMethods=v,window.ShadyDOM.nativeTree=x,Yb.patchEvents(),tc.patchBuiltins(),
window.ShadowRoot=rc.ShadyRoot);/*
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -152,89 +29,186 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var K={};function Cc(){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 Dc(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=Ec(c),c=c.replace(L.multipleSpaces," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=Fc.MEDIA_RULE:c.match(L.keyframesRule)&&(a.type=Fc.KEYFRAMES_RULE,a.keyframesName=a.selector.split(L.multipleSpaces).pop()):0===c.indexOf("--")?a.type=Fc.MIXIN_RULE:
a.type=Fc.STYLE_RULE);if(c=a.rules)for(var d=0,e=c.length,f;d<e&&(f=c[d]);d++)Dc(f,b);return a}function Ec(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}
function Gc(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h;f<g&&(h=e[f]);f++)d=Gc(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=Hc(b),b=b.replace(L.mixinApply,"").replace(L.varApply,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}function Hc(a){return a.replace(L.customProp,"").replace(L.mixinProp,"")}
var Fc={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1E3},L={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g};K.StyleNode=Cc;
K.parse=function(a){var b=a=a.replace(L.comments,"").replace(L.port,""),c=new Cc;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null,d=new Cc;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return Dc(c,a)};K.stringify=Gc;K.removeCustomPropAssignment=Hc;K.types=Fc;var M={},Ic=!(window.ShadyDOM&&window.ShadyDOM.inUse),Jc=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)");function Kc(a){a&&(Jc=Jc&&!a.nativeCss&&!a.shimcssproperties,Ic=Ic&&!a.nativeShadow&&!a.shimshadow)}window.ShadyCSS?Kc(window.ShadyCSS):window.WebComponents&&Kc(window.WebComponents.flags);M.nativeShadow=Ic;M.nativeCssVariables=Jc;var N={VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:"(?:^|[^.#[:])",HOST_SUFFIX:"($|[.:[\\s>+~])"};var O={};function Lc(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===K.types.MEDIA_RULE){var g=a.selector.match(N.MEDIA_MATCH);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===K.types.STYLE_RULE?b(a):c&&f===K.types.KEYFRAMES_RULE?c(a):f===K.types.MIXIN_RULE&&(e=!0);if((a=a.rules)&&!e)for(var e=0,f=a.length,h;e<f&&(h=a[e]);e++)Lc(h,b,c,d)}}function Mc(a,b){var c=document.createElement("style");b&&c.setAttribute("scope",b);c.textContent=a;return c}var Nc=null;
function Oc(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);Nc?a.compareDocumentPosition(Nc)===Node.DOCUMENT_POSITION_PRECEDING&&(Nc=a):Nc=a}
function Pc(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d;a:{var e=0;d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&0===--e)break a;d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=Pc(a.substring(d+1),b);f=e.indexOf(",");if(-1===f)return b(c,e.trim(),"",a);d=e.substring(0,f).trim();e=e.substring(f+1).trim();return b(c,d,e,a)}O.toCssText=function(a,b){if(!a)return"";"string"===typeof a&&(a=K.parse(a));b&&Lc(a,b);return K.stringify(a,M.nativeCssVariables)};
O.rulesForStyle=function(a){!a.__cssRules&&a.textContent&&(a.__cssRules=K.parse(a.textContent));return a.__cssRules||null};O.isKeyframesSelector=function(a){return!!a.parent&&a.parent.type===K.types.KEYFRAMES_RULE};O.forEachRule=Lc;O.applyCss=function(a,b,c,d){a=Mc(a,b);Oc(a,c,d);return a};O.createScopeStyle=Mc;O.applyStylePlaceHolder=function(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(Nc?Nc.nextSibling:null)||b.firstChild);return Nc=a};
O.applyStyle=Oc;O.isTargetedBuild=function(a){return M.nativeShadow?"shadow"===a:"shady"===a};O.getCssBuildType=function(a){return a.getAttribute("css-build")};O.processVariableAndFallback=Pc;O.setElementClassRaw=function(a,b){M.nativeShadow?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)};O.getIsExtends=function(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,typeExtension:c}};var P={};function Q(){}Q.prototype.dom=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this._transformDom(a,b||"",c)};Q.prototype._transformDom=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.element(a,b,c);if(a="template"===a.localName?(a.content||a._content).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this._transformDom(a[d],b,c)};
Q.prototype.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(Vc);c?d&&(b=d.replace("style-scope","").replace(b,""),O.setElementClassRaw(a,b)):O.setElementClassRaw(a,(d?d+" ":"")+"style-scope "+b)}};
Q.prototype.elementStyles=function(a,b,c){var d=a.__cssBuild;M.nativeShadow||"shady"===d?b=O.toCssText(b,c):(a=O.getIsExtends(a),b=this.css(b,a.is,a.typeExtension,c)+"\n\n");return b.trim()};Q.prototype.css=function(a,b,c,d){var e=this._calcHostScope(b,c);b=this._calcElementScope(b);var f=this;return O.toCssText(a,function(a){a.isScoped||(f.rule(a,b,e),a.isScoped=!0);d&&d(a,b,e)})};Q.prototype._calcElementScope=function(a){return a?Wc+a:""};
Q.prototype._calcHostScope=function(a,b){return b?"[is="+a+"]":a};Q.prototype.rule=function(a,b,c){this._transformRule(a,this._transformComplexSelector,b,c)};Q.prototype._transformRule=function(a,b,c,d){a.selector=a.transformedSelector=this._transformRuleCss(a,b,c,d)};Q.prototype._transformRuleCss=function(a,b,c,d){var e=a.selector.split(Xc);if(!O.isKeyframesSelector(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Xc)};
Q.prototype._transformComplexSelector=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Yc,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Zc,$c+" $1");return a=a.replace(ad,function(a,g,h){e||(a=d._transformCompoundSelector(h,g,b,c),e=e||a.stop,g=a.combinator,h=a.value);return g+h})};
Q.prototype._transformCompoundSelector=function(a,b,c,d){var e=a.indexOf(bd);0<=a.indexOf($c)?a=this._transformHostSelector(a,d):0!==e&&(a=c?this._transformSimpleSelector(a,c):a);c=!1;0<=e&&(b="",c=!0);var f;c&&(f=!0,c&&(a=a.replace(cd,function(a,b){return" > "+b})));a=a.replace(dd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,combinator:b,stop:f}};Q.prototype._transformSimpleSelector=function(a,b){a=a.split(ed);a[0]+=b;return a.join(ed)};
Q.prototype._transformHostSelector=function(a,b){var c=a.match(fd);return(c=c&&c[2].trim()||"")?c[0].match(gd)?a.replace(fd,function(a,c,f){return b+f}):c.split(gd)[0]===b?c:hd:a.replace($c,b)};Q.prototype.documentRule=function(a){a.selector=a.parsedSelector;this.normalizeRootSelector(a);this._transformRule(a,this._transformDocumentSelector)};Q.prototype.normalizeRootSelector=function(a){a.selector===id&&(a.selector="html")};
Q.prototype._transformDocumentSelector=function(a){return a.match(bd)?this._transformComplexSelector(a,jd):this._transformSimpleSelector(a.trim(),jd)};aa.global.Object.defineProperties(Q.prototype,{SCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var Yc=/:(nth[-\w]+)\(([^)]+)\)/,jd=":not(.style-scope)",Xc=",",ad=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,gd=/[[.:#*]/,$c=":host",id=":root",bd="::slotted",Zc=new RegExp("^("+bd+")"),fd=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,cd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,dd=/(.*):dir\((?:(ltr|rtl))\)/,Wc=".",ed=":",Vc="class",hd="should_not_match",kd=new Q;P.default=kd;var S={};function ld(a,b,c,d,e,f){this.styleRules=a||null;this.placeholder=b||null;this.ownStylePropertyNames=c||[];this.overrideStyleProperties=null;this.elementName=d||"";this.cssBuild=f||"";this.typeExtension=e||"";this.customStyle=this.scopeSelector=this.styleProperties=null}ld.get=function(a){return a?a.__styleInfo:null};ld.set=function(a,b){return a.__styleInfo=b};ld.prototype._getStyleRules=function(){return this.styleRules};ld.prototype._getStyleRules=ld.prototype._getStyleRules;
S.default=ld;var T={},md=window.Element.prototype,nd=md.matches||md.matchesSelector||md.mozMatchesSelector||md.msMatchesSelector||md.oMatchesSelector||md.webkitMatchesSelector,od=navigator.userAgent.match("Trident");function U(){}U.prototype.decorateStyles=function(a){var b=this,c={},d=[],e=0;O.forEachRule(a,function(a){b.decorateRule(a);a.index=e++;b.collectPropertiesInCssText(a.propertyInfo.cssText,c)},function(a){d.push(a)});a._keyframes=d;a=[];for(var f in c)a.push(f);return a};
U.prototype.decorateRule=function(a){if(a.propertyInfo)return a.propertyInfo;var b={},c={};this.collectProperties(a,c)&&(b.properties=c,a.rules=null);b.cssText=this.collectCssText(a);return a.propertyInfo=b};U.prototype.collectProperties=function(a,b){var c=a.propertyInfo;if(c){if(c.properties)return Object.assign(b,c.properties),!0}else{for(var c=N.VAR_ASSIGN,d=a.parsedCssText,e;a=c.exec(d);){e=(a[2]||a[3]).trim();if("inherit"!==e||"unset"!==e)b[a[1].trim()]=e;e=!0}return e}};
U.prototype.collectCssText=function(a){return this.collectConsumingCssText(a.parsedCssText)};U.prototype.collectConsumingCssText=function(a){return a.replace(N.BRACKETED,"").replace(N.VAR_ASSIGN,"")};U.prototype.collectPropertiesInCssText=function(a,b){for(var c;c=N.VAR_CONSUMED.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};U.prototype.reify=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.valueForProperty(a[d],a)};
U.prototype.valueForProperty=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.valueForProperties(a,b);else{var c=this;a=O.processVariableAndFallback(a,function(a,e,f,g){if(!e)return a+g;(e=c.valueForProperty(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.valueForProperty(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};
U.prototype.valueForProperties=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){N.MIXIN_MATCH.lastIndex=0;if(e=N.MIXIN_MATCH.exec(d))d=this.valueForProperty(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e),f=f.trim(),f=this.valueForProperty(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};
U.prototype.applyProperties=function(a,b){var c="";a.propertyInfo||this.decorateRule(a);a.propertyInfo.cssText&&(c=this.valueForProperties(a.propertyInfo.cssText,b));a.cssText=c};
U.prototype.applyKeyframeTransforms=function(a,b){var c=a.cssText,d=a.cssText;null==a.hasAnimations&&(a.hasAnimations=N.ANIMATION_MATCH.test(c));if(a.hasAnimations)if(null==a.keyframeNamesToTransform){a.keyframeNamesToTransform=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.keyframeNamesToTransform.push(e))}else{for(e=0;e<a.keyframeNamesToTransform.length;++e)d=b[a.keyframeNamesToTransform[e]],c=d(c);d=c}a.cssText=d};
U.prototype.propertyDataFromStyles=function(a,b){var c={},d=this,e=[];O.forEachRule(a,function(a){a.propertyInfo||d.decorateRule(a);var f=a.transformedSelector||a.parsedSelector;b&&a.propertyInfo.properties&&f&&nd.call(b,f)&&(d.collectProperties(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{properties:c,key:e}};
U.prototype.whenHostOrRootRule=function(a,b,c,d){b.propertyInfo||this.decorateRule(b);if(b.propertyInfo.properties){var e=O.getIsExtends(a),f=e.is,e=e.typeExtension;a=a.is?P.default._calcHostScope(f,e):"html";var g=b.parsedSelector,e=":host > *"===g||"html"===g,h=0===g.indexOf(":host")&&!e;"shady"===c&&(e=g===a+" > *."+a||-1!==g.indexOf("html"),h=!e&&0===g.indexOf(a));"shadow"===c&&(e=":host > *"===g||"html"===g,h=h&&!e);if(e||h)c=a,h&&(M.nativeShadow&&!b.transformedSelector&&(b.transformedSelector=
P.default._transformRuleCss(b,P.default._transformComplexSelector,P.default._calcElementScope(f),a)),c=b.transformedSelector||a),d({selector:c,isHost:h,isRoot:e})}};U.prototype.hostAndRootPropertiesForScope=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;O.forEachRule(b,function(b){e.whenHostOrRootRule(a,b,f,function(f){nd.call(a._element||a,f.selector)&&(f.isHost?e.collectProperties(b,c):e.collectProperties(b,d))})},null,!0);return{rootProps:d,hostProps:c}};
U.prototype.transformStyles=function(a,b,c){var d=this,e=O.getIsExtends(a),f=P.default._calcHostScope(e.is,e.typeExtension),e=a.extends?"\\"+f.slice(0,-1)+"\\]":f,g=new RegExp(N.HOST_PREFIX+e+N.HOST_SUFFIX),e=S.default.get(a).styleRules,h=this._elementKeyframeTransforms(a,e,c);return P.default.elementStyles(a,e,function(a){d.applyProperties(a,b);M.nativeShadow||O.isKeyframesSelector(a)||!a.cssText||(d.applyKeyframeTransforms(a,h),d._scopeSelector(a,g,f,c))})};
U.prototype._elementKeyframeTransforms=function(a,b,c){a=b._keyframes;b={};if(!M.nativeShadow&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this._scopeKeyframes(e,c),b[e.keyframesName]=this._keyframesRuleTransformer(e);return b};U.prototype._keyframesRuleTransformer=function(a){return function(b){return b.replace(a.keyframesNameRx,a.transformedKeyframesName)}};
U.prototype._scopeKeyframes=function(a,b){a.keyframesNameRx=new RegExp(a.keyframesName,"g");a.transformedKeyframesName=a.keyframesName+"-"+b;a.transformedSelector=a.transformedSelector||a.selector;a.selector=a.transformedSelector.replace(a.keyframesName,a.transformedKeyframesName)};
U.prototype._scopeSelector=function(a,b,c,d){a.transformedSelector=a.transformedSelector||a.selector;d="."+d;for(var e=a.transformedSelector.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};U.prototype.applyElementScopeSelector=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&O.setElementClassRaw(a,e)};
U.prototype.applyElementStyle=function(a,b,c,d){b=d?d.textContent||"":this.transformStyles(a,b,c);var e=S.default.get(a),f=e.customStyle;f&&!M.nativeShadow&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));M.nativeShadow?e.customStyle?(e.customStyle.textContent=b,d=e.customStyle):b&&(d=O.applyCss(b,c,a.shadowRoot,e.placeholder)):d?d.parentNode||O.applyStyle(d,null,e.placeholder):b&&(d=O.applyCss(b,c,null,e.placeholder));d&&(d._useCount=d._useCount||0,e.customStyle!=
d&&d._useCount++,e.customStyle=d);od&&(d.textContent=d.textContent);return d};U.prototype.applyCustomStyle=function(a,b){var c=O.rulesForStyle(a),d=this;a.textContent=O.toCssText(c,function(a){var c=a.cssText=a.parsedCssText;a.propertyInfo&&a.propertyInfo.cssText&&(c=K.removeCustomPropAssignment(c),a.cssText=d.valueForProperties(c,b))})};aa.global.Object.defineProperties(U.prototype,{XSCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var pd=new U;T.default=pd;var qd={},rd={},sd=window.customElements;if(sd&&!M.nativeShadow){var td=sd.define;sd.define=function(a,b,c){rd[a]=O.applyStylePlaceHolder(a);return td.call(sd,a,b,c)}}qd.default=rd;var ud={};function vd(a){this.cache={};this.typeMax=void 0===a?100:a}vd.prototype._validate=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.properties[e]!==b[e])return!1}return!0};vd.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({properties:b,styleElement:c,scopeSelector:d});e.length>this.typeMax&&e.shift();this.cache[a]=e};vd.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this._validate(e,b,c))return e}};ud.default=vd;var wd={};function xd(){}
if(!M.nativeShadow){var yd=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head){for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d],f=e;if(f.classList&&!f.classList.contains(P.default.SCOPE_NAME)||f instanceof window.SVGElement&&(!f.hasAttribute("class")||0>f.getAttribute("class").indexOf(P.default.SCOPE_NAME)))if(f=e.getRootNode(),f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=f.host))f=O.getIsExtends(f).is,P.default.dom(e,f)}for(d=
0;d<c.removedNodes.length;d++)if(e=c.removedNodes[d],e.nodeType===Node.ELEMENT_NODE&&(f=void 0,e.classList?f=Array.from(e.classList):e.hasAttribute("class")&&(f=e.getAttribute("class").split(/\s+/)),void 0!==f)){var g=f.indexOf(P.default.SCOPE_NAME);0<=g&&(f=f[g+1])&&P.default.dom(e,f,!0)}}}},zd=new MutationObserver(yd),Ad=function(a){zd.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.flush)Ad(document);else{var Bd=function(){Ad(document.body)};window.HTMLImports?
window.HTMLImports.whenReady(Bd):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Bd();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else Bd()})}xd=function(){yd(zd.takeRecords())}}wd.flush=xd;var Cd={default:{}};var V={},Dd=Promise.resolve();function Ed(a){a._applyShimInvalid=!0}function Fd(a){return!a._applyShimInvalid}function Gd(a){a._validating||(a._validating=!0,Dd.then(function(){a._applyShimInvalid=!1;a._validating=!1}))}V.invalidate=function(a){(a=Cd.default[a])&&Ed(a)};V.invalidateTemplate=Ed;V.isValid=function(a){return(a=Cd.default[a])?Fd(a):!0};V.templateIsValid=Fd;V.isValidating=function(a){return(a=Cd.default[a])?a._validating:!1};V.templateIsValidating=function(a){return a._validating};
V.startValidating=function(a){Gd(Cd.default[a])};V.startValidatingTemplate=Gd;V.elementsAreInvalid=function(){for(var a in Cd.default)if(!Fd(Cd.default[a]))return!0;return!1};var Hd={},Id=null,Jd=window.HTMLImports&&window.HTMLImports.whenReady||null,Kd;Hd.default=function(a){Jd?Jd(a):(Id||(Id=new Promise(function(a){Kd=a}),"complete"===document.readyState?Kd():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&Kd()})),Id.then(function(){a&&a()}))};var Ld={updateNativeProperties:function(a,b){for(var c in b)null===c?a.style.removeProperty(c):a.style.setProperty(c,b[c])},getComputedStyleValue:function(a,b){return(a=window.getComputedStyle(a).getPropertyValue(b))?a.trim():""}};var Md=null,Nd=null;function W(){this.customStyles=[];this.enqueued=!1}W.prototype.enqueueDocumentValidation=function(){!this.enqueued&&Nd&&(this.enqueued=!0,Hd.default(Nd))};W.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.enqueueDocumentValidation())};W.prototype.getStyleForCustomStyle=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};
W.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;Md&&Md(d);c.__shadyCSSCachedStyle=d}}}return a};W.prototype.addCustomStyle=W.prototype.addCustomStyle;W.prototype.getStyleForCustomStyle=W.prototype.getStyleForCustomStyle;W.prototype.processStyles=W.prototype.processStyles;
Object.defineProperties(W.prototype,{transformCallback:{get:function(){return Md},set:function(a){Md=a}},validateCallback:{get:function(){return Nd},set:function(a){var b=!1;Nd||(b=!0);Nd=a;b&&this.enqueueDocumentValidation()}}});var Od={},Pd=new ud.default;function Y(){var a=this;this._scopeCounter={};this._documentOwner=document.documentElement;var b=new K.StyleNode;b.rules=[];this._documentOwnerStyleInfo=S.default.set(this._documentOwner,new S.default(b));this._elementsHaveApplied=!1;this._customStyleInterface=this._applyShim=null;Hd.default(function(){a._ensure()})}Y.prototype.flush=function(){wd.flush()};
Y.prototype._generateScopeSelector=function(a){var b=this._scopeCounter[a]=(this._scopeCounter[a]||0)+1;return a+"-"+b};Y.prototype.getStyleAst=function(a){return O.rulesForStyle(a)};Y.prototype.styleAstToString=function(a){return O.toCssText(a)};Y.prototype._gatherStyles=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};
Y.prototype._getCssBuild=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};
Y.prototype.prepareTemplate=function(a,b,c){if(!a._prepared){a._prepared=!0;a.name=b;a.extends=c;Cd.default[b]=a;var d=this._getCssBuild(a),e=this._gatherStyles(a);c={is:b,extends:c,__cssBuild:d};M.nativeShadow||P.default.dom(a.content,b);this._ensure();var f=this._applyShim.detectMixin(e),e=K.parse(e);f&&M.nativeCssVariables&&this._applyShim.transformRules(e,b);a._styleAst=e;a._cssBuild=d;d=[];M.nativeCssVariables||(d=T.default.decorateStyles(a._styleAst,c));if(!d.length||M.nativeCssVariables)b=
this._generateStaticStyle(c,a._styleAst,M.nativeShadow?a.content:null,qd.default[b]),a._style=b;a._ownPropertyNames=d}};Y.prototype._generateStaticStyle=function(a,b,c,d){b=P.default.elementStyles(a,b);if(b.length)return O.applyCss(b,a.is,c,d)};Y.prototype._prepareHost=function(a){var b=O.getIsExtends(a),c=b.is,b=b.typeExtension,d=qd.default[c],e=Cd.default[c],f,g,h;e&&(f=e._styleAst,g=e._ownPropertyNames,h=e._cssBuild);return S.default.set(a,new S.default(f,d,g,c,b,h))};
Y.prototype._ensureApplyShim=function(){if(!this._applyShim)if(window.ShadyCSS.ApplyShim)this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=V.invalidate;else{var a={};this._applyShim=(a.detectMixin=function(){return!1},a.transformRule=function(){},a.transformRules=function(){},a)}};
Y.prototype._ensureCustomStyleInterface=function(){var a=this;if(!this._customStyleInterface)if(window.ShadyCSS.CustomStyleInterface)this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(b){a.transformCustomStyleForDocument(b)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){(a._customStyleInterface.enqueued||a._elementsHaveApplied)&&a.flushCustomStyles()})};else{var b={};this._customStyleInterface=
(b.processStyles=function(){},b.enqueued=!1,b.getStyleForCustomStyle=function(){return null},b)}};Y.prototype._ensure=function(){this._ensureApplyShim();this._ensureCustomStyleInterface()};
Y.prototype.flushCustomStyles=function(){this._ensure();var a=this._customStyleInterface.processStyles();this._customStyleInterface.enqueued&&(M.nativeCssVariables?this._revalidateCustomStyleApplyShim(a):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(a)),this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!M.nativeCssVariables&&this.styleDocument())};
Y.prototype.styleElement=function(a,b){var c=O.getIsExtends(a).is,d=S.default.get(a);d||(d=this._prepareHost(a));this._isRootOwner(a)||(this._elementsHaveApplied=!0);b&&(d.overrideStyleProperties=d.overrideStyleProperties||{},Object.assign(d.overrideStyleProperties,b));if(M.nativeCssVariables){if(d.overrideStyleProperties&&Ld.updateNativeProperties(a,d.overrideStyleProperties),((b=Cd.default[c])||this._isRootOwner(a))&&b&&b._style&&!V.templateIsValid(b))V.templateIsValidating(b)||(this._ensure(),
this._applyShim.transformRules(b._styleAst,c),b._style.textContent=P.default.elementStyles(a,d.styleRules),V.startValidatingTemplate(b)),M.nativeShadow&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=P.default.elementStyles(a,d.styleRules)),d.styleRules=b._styleAst}else this._updateProperties(a,d),d.ownStylePropertyNames&&d.ownStylePropertyNames.length&&this._applyStyleProperties(a,d)};
Y.prototype._styleOwnerForNode=function(a){return(a=a.getRootNode().host)?S.default.get(a)?a:this._styleOwnerForNode(a):this._documentOwner};Y.prototype._isRootOwner=function(a){return a===this._documentOwner};
Y.prototype._applyStyleProperties=function(a,b){var c=O.getIsExtends(a).is,d=Pd.fetch(c,b.styleProperties,b.ownStylePropertyNames),e=d?d.styleElement:null,f=b.scopeSelector;b.scopeSelector=d&&d.scopeSelector||this._generateScopeSelector(c);e=T.default.applyElementStyle(a,b.styleProperties,b.scopeSelector,e);M.nativeShadow||T.default.applyElementScopeSelector(a,b.scopeSelector,f);d||Pd.store(c,b.styleProperties,e,b.scopeSelector);return e};
Y.prototype._updateProperties=function(a,b){var c=this._styleOwnerForNode(a),d=S.default.get(c),c=Object.create(d.styleProperties||null),e=T.default.hostAndRootPropertiesForScope(a,b.styleRules);a=T.default.propertyDataFromStyles(d.styleRules,a).properties;Object.assign(c,e.hostProps,a,e.rootProps);this._mixinOverrideStyles(c,b.overrideStyleProperties);T.default.reify(c);b.styleProperties=c};Y.prototype._mixinOverrideStyles=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};
Y.prototype.styleDocument=function(a){this.styleSubtree(this._documentOwner,a)};Y.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this._isRootOwner(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};
Y.prototype._revalidateCustomStyleApplyShim=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&this._revalidateApplyShim(c)}};Y.prototype._applyCustomStyles=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&T.default.applyCustomStyle(c,this._documentOwnerStyleInfo.styleProperties)}};
Y.prototype.transformCustomStyleForDocument=function(a){var b=this,c=O.rulesForStyle(a);O.forEachRule(c,function(a){M.nativeShadow?P.default.normalizeRootSelector(a):P.default.documentRule(a);M.nativeCssVariables&&(b._ensure(),b._applyShim.transformRule(a))});M.nativeCssVariables?a.textContent=O.toCssText(c):this._documentOwnerStyleInfo.styleRules.rules.push(c)};
Y.prototype._revalidateApplyShim=function(a){if(M.nativeCssVariables){var b=O.rulesForStyle(a);this._ensure();this._applyShim.transformRules(b);a.textContent=O.toCssText(b)}};Y.prototype.getComputedStyleValue=function(a,b){var c;M.nativeCssVariables||(c=(S.default.get(a)||S.default.get(this._styleOwnerForNode(a))).styleProperties[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
Y.prototype.setElementClass=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===P.default.SCOPE_NAME){c=d[e+1];break}}c&&b.push(P.default.SCOPE_NAME,c);M.nativeCssVariables||(c=S.default.get(a))&&c.scopeSelector&&b.push(T.default.XSCOPE_NAME,c.scopeSelector);O.setElementClassRaw(a,b.join(" "))};Y.prototype._styleInfoForNode=function(a){return S.default.get(a)};
Y.prototype.flush=Y.prototype.flush;Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.setElementClass;Y.prototype._styleInfoForNode=Y.prototype._styleInfoForNode;Y.prototype.transformCustomStyleForDocument=Y.prototype.transformCustomStyleForDocument;
Y.prototype.getStyleAst=Y.prototype.getStyleAst;Y.prototype.styleAstToString=Y.prototype.styleAstToString;Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return M.nativeShadow}},nativeCss:{get:function(){return M.nativeCssVariables}}});Od.default=Y;var Z=new Od.default,Qd,Rd;window.ShadyCSS&&(Qd=window.ShadyCSS.ApplyShim,Rd=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:M.nativeCssVariables,nativeShadow:M.nativeShadow};Qd&&(window.ShadyCSS.ApplyShim=Qd);
Rd&&(window.ShadyCSS.CustomStyleInterface=Rd);(function(){if(!function(){var a=document.createEvent("Event");a.initEvent("foo",!0,!0);a.preventDefault();return a.defaultPrevented}()){var a=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(a.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var b=/Trident/.test(navigator.userAgent);if(!window.CustomEvent||b&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");
c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;if(!window.Event||b&&"function"!==typeof window.Event){var c=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(c)for(var d in c)window.Event[d]=c[d];window.Event.prototype=c.prototype}if(!window.MouseEvent||b&&"function"!==typeof window.MouseEvent){b=window.MouseEvent;window.MouseEvent=function(a,
b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(b)for(d in b)window.MouseEvent[d]=b[d];window.MouseEvent.prototype=b.prototype}Array.from||(Array.from=function(a){return[].slice.call(a)});Object.assign||(Object.assign=function(a,b){for(var c=[].slice.call(arguments,1),d=0,e;d<c.length;d++)if(e=c[d])for(var f=
a,t=e,C=Object.getOwnPropertyNames(t),R=0;R<C.length;R++)e=C[R],f[e]=t[e];return a})})(window.WebComponents);(function(){function a(){}var b="undefined"===typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var a=Document.prototype.importNode;Document.prototype.importNode=function(){var b=a.apply(this,arguments);if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var c=this.createDocumentFragment();c.appendChild(b);return c}return b}}();var c=Node.prototype.cloneNode,d=Document.prototype.createElement,e=Document.prototype.importNode,f=function(){if(!b){var a=document.createElement("template"),
c=document.createElement("template");c.content.appendChild(document.createElement("div"));a.content.appendChild(c);a=a.cloneNode(!0);return 0===a.content.childNodes.length||0===a.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}();if(b){var g=function(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case "\u00a0":return"&nbsp;"}},h=function(b){Object.defineProperty(b,"innerHTML",{get:function(){for(var a=
"",b=this.content.firstChild;b;b=b.nextSibling)a+=b.outerHTML||b.data.replace(sa,g);return a},set:function(b){k.body.innerHTML=b;for(a.bootstrap(k);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;k.body.firstChild;)this.content.appendChild(k.body.firstChild)},configurable:!0})},k=document.implementation.createHTMLDocument("template"),l=!0,t=document.createElement("style");t.textContent="template{display:none;}";var C=document.head;C.insertBefore(t,C.firstElementChild);
a.prototype=Object.create(HTMLElement.prototype);var R=!document.createElement("div").hasOwnProperty("innerHTML");a.decorate=function(b){if(!b.content){b.content=k.createDocumentFragment();for(var c;c=b.firstChild;)b.content.appendChild(c);if(R)b.__proto__=a.prototype;else if(b.cloneNode=function(b){return a._cloneNode(this,b)},l)try{h(b)}catch(X){l=!1}a.bootstrap(b.content)}};h(a.prototype);a.bootstrap=function(b){b=b.querySelectorAll("template");for(var c=0,d=b.length,e;c<d&&(e=b[c]);c++)a.decorate(e)};
document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var b=d.apply(this,arguments);"template"===b.localName&&a.decorate(b);return b};var sa=/[&\u00A0<>]/g}if(b||f)a._cloneNode=function(a,b){var d=c.call(a,!1);this.decorate&&this.decorate(d);b&&(d.content.appendChild(c.call(a.content,!0)),this.fixClonedDom(d.content,a.content));return d},a.prototype.cloneNode=function(b){return a._cloneNode(this,b)},a.fixClonedDom=function(a,b){if(b.querySelectorAll){b=
b.querySelectorAll("template");a=a.querySelectorAll("template");for(var c=0,d=a.length,e,f;c<d;c++)f=b[c],e=a[c],this.decorate&&this.decorate(f),e.parentNode.replaceChild(f.cloneNode(!0),e)}},Node.prototype.cloneNode=function(b){var d;if(this instanceof DocumentFragment)if(b)d=this.ownerDocument.importNode(this,!0);else return this.ownerDocument.createDocumentFragment();else d=c.call(this,b);b&&a.fixClonedDom(d,this);return d},Document.prototype.importNode=function(b,c){if("template"===b.localName)return a._cloneNode(b,
c);var d=e.call(this,b,c);c&&a.fixClonedDom(d,b);return d},f&&(window.HTMLTemplateElement.prototype.cloneNode=function(b){return a._cloneNode(this,b)});b&&(window.HTMLTemplateElement=a)})();function Sd(){function a(a,b){na[ea]=a;na[ea+1]=b;ea+=2;2===ea&&(Db?Db(g):Rc())}function b(){return function(){return process.nextTick(g)}}function c(){return"undefined"!=typeof Sa?function(){Sa(g)}:f()}function d(){var a=0,b=new Sc(g),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function e(){var a=new MessageChannel;return a.port1.onmessage=g,function(){return a.port2.postMessage(0)}}function f(){var a=setTimeout;return function(){return a(g,1)}}
function g(){for(var a=0;a<ea;a+=2)(0,na[a])(na[a+1]),na[a]=void 0,na[a+1]=void 0;ea=0}function h(){try{var a=require("vertx");return Sa=a.runOnLoop||a.runOnContext,c()}catch(Qc){return f()}}function k(b,c){var d=arguments,e=this,f=new this.constructor(t);void 0===f[Ma]&&Pa(f);var g=e._state;return g?!function(){var b=d[g-1];a(function(){return Gb(g,f,b,e._result)})}():ta(e,f,b,c),f}function l(a){if(a&&"object"==typeof a&&a.constructor===this)return a;var b=new this(t);return X(b,a),b}function t(){}
function C(a){try{return a.then}catch(Qc){return Na.error=Qc,Na}}function R(a,b,c,d){try{a.call(b,c,d)}catch(Vd){return Vd}}function sa(b,c,d){a(function(a){var b=!1,e=R(d,c,function(d){b||(b=!0,c!==d?X(a,d):J(a,d))},function(c){b||(b=!0,G(a,c))},"Settle: "+(a._label||" unknown promise"));!b&&e&&(b=!0,G(a,e))},b)}function Qa(a,b){b._state===Ba?J(a,b._result):b._state===oa?G(a,b._result):ta(b,void 0,function(b){return X(a,b)},function(b){return G(a,b)})}function w(a,b,c){b.constructor===a.constructor&&
c===k&&b.constructor.resolve===l?Qa(a,b):c===Na?G(a,Na.error):void 0===c?J(a,b):"function"==typeof c?sa(a,b,c):J(a,b)}function X(a,b){a===b?G(a,new TypeError("You cannot resolve a promise with itself")):"function"==typeof b||"object"==typeof b&&null!==b?w(a,b,C(b)):J(a,b)}function ra(a){a._onerror&&a._onerror(a._result);ba(a)}function J(b,c){b._state===pa&&(b._result=c,b._state=Ba,0!==b._subscribers.length&&a(ba,b))}function G(b,c){b._state===pa&&(b._state=oa,b._result=c,a(ra,b))}function ta(b,c,
d,e){var f=b._subscribers,g=f.length;b._onerror=null;f[g]=c;f[g+Ba]=d;f[g+oa]=e;0===g&&b._state&&a(ba,b)}function ba(a){var b=a._subscribers,c=a._state;if(0!==b.length){for(var d,e,f=a._result,g=0;g<b.length;g+=3)d=b[g],e=b[g+c],d?Gb(c,d,e,f):e(f);a._subscribers.length=0}}function Fb(){this.error=null}function Gb(a,b,c,d){var e="function"==typeof c,f=void 0,g=void 0,h=void 0,k=void 0;if(e){var l;try{l=c(d)}catch(Wd){l=(Eb.error=Wd,Eb)}if(f=l,f===Eb?(k=!0,g=f.error,f=null):h=!0,b===f)return void G(b,
new TypeError("A promises callback cannot return that same promise."))}else f=d,h=!0;b._state!==pa||(e&&h?X(b,f):k?G(b,g):a===Ba?J(b,f):a===oa&&G(b,f))}function Uc(a,b){try{b(function(b){X(a,b)},function(b){G(a,b)})}catch(Td){G(a,Td)}}function Pa(a){a[Ma]=Tc++;a._state=void 0;a._result=void 0;a._subscribers=[]}function qa(a,b){this._instanceConstructor=a;this.promise=new a(t);this.promise[Ma]||Pa(this.promise);Hb(b)?(this._input=b,this.length=b.length,this._remaining=b.length,this._result=Array(this.length),
0===this.length?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&J(this.promise,this._result))):G(this.promise,Error("Array Methods must be provided an Array"))}function H(a){this[Ma]=Tc++;this._result=this._state=void 0;this._subscribers=[];if(t!==a){if("function"!=typeof a)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(this instanceof H)Uc(this,a);else throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
}}var Ra=void 0,Hb=Ra=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},ea=0,Sa=void 0,Db=void 0,Oa=(Ra="undefined"!=typeof window?window:void 0)||{},Sc=Oa.MutationObserver||Oa.WebKitMutationObserver,Oa="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),Xd="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,na=Array(1E3),Rc=void 0,Rc=Oa?b():
Sc?d():Xd?e():void 0===Ra&&"function"==typeof require?h():f(),Ma=Math.random().toString(36).substring(16),pa=void 0,Ba=1,oa=2,Na=new Fb,Eb=new Fb,Tc=0;return qa.prototype._enumerate=function(){for(var a=this.length,b=this._input,c=0;this._state===pa&&c<a;c++)this._eachEntry(b[c],c)},qa.prototype._eachEntry=function(a,b){var c=this._instanceConstructor,d=c.resolve;d===l?(d=C(a),d===k&&a._state!==pa?this._settledAt(a._state,b,a._result):"function"!=typeof d?(this._remaining--,this._result[b]=a):c===
H?(c=new c(t),w(c,a,d),this._willSettleAt(c,b)):this._willSettleAt(new c(function(b){return b(a)}),b)):this._willSettleAt(d(a),b)},qa.prototype._settledAt=function(a,b,c){var d=this.promise;d._state===pa&&(this._remaining--,a===oa?G(d,c):this._result[b]=c);0===this._remaining&&J(d,this._result)},qa.prototype._willSettleAt=function(a,b){var c=this;ta(a,void 0,function(a){return c._settledAt(Ba,b,a)},function(a){return c._settledAt(oa,b,a)})},H.all=function(a){return(new qa(this,a)).promise},H.race=
function(a){var b=this;return new b(Hb(a)?function(c,d){for(var e=a.length,f=0;f<e;f++)b.resolve(a[f]).then(c,d)}:function(a,b){return b(new TypeError("You must pass an array to race."))})},H.resolve=l,H.reject=function(a){var b=new this(t);return G(b,a),b},H._setScheduler=function(a){Db=a},H._setAsap=function(b){a=b},H._asap=a,H.prototype={constructor:H,then:k,"catch":function(a){return this.then(null,a)}},H.polyfill=function(){var a=void 0;if("undefined"!=typeof global)a=global;else if("undefined"!=
typeof self)a=self;else try{a=Function("return this")()}catch(Ud){throw Error("polyfill failed because global object is unavailable in this environment");}var b=a.Promise;if(b){var c=null;try{c=Object.prototype.toString.call(b.resolve())}catch(Ud){}if("[object Promise]"===c&&!b.cast)return}a.Promise=H},H.Promise=H,H}"object"==typeof exports&&"undefined"!=typeof module?module.exports=Sd():"function"==typeof define&&define.amd?define(Sd):this.ES6Promise=Sd();!0;ES6Promise.polyfill();(function(){window.WebComponents=window.WebComponents||{flags:{}};var a=document.querySelector('script[src*="webcomponents-lite.js"]'),b={};if(!b.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var c;a[0]&&(c=a[0].match(/wc-(.+)/))&&(b[c[1]]=a[1]||!0)});if(a)for(var c=0,d;d=a.attributes[c];c++)"src"!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log.split?(a=b.log.split(","),b.log={},a.forEach(function(a){b.log[a]=!0})):b.log={}}WebComponents.flags=b;a=window.WebComponents;
if(c=a.flags.shadydom)window.ShadyDOM=window.ShadyDOM||{},ShadyDOM.force=c;(a=a.flags.register||a.flags.ce)&&window.customElements&&(customElements.forcePolyfill=a)})();
'use strict';var ka={scope:{},getGlobal:function(k){return"undefined"!=typeof window&&window===k?k:"undefined"!=typeof global&&null!=global?global:k}};ka.global=ka.getGlobal(this);
(function(){function k(){var a=this;this._scopeCounter={};this._documentOwner=document.documentElement;var b=new ya;b.rules=[];this._documentOwnerStyleInfo=u.set(this._documentOwner,new u(b));this._elementsHaveApplied=!1;this._customStyleInterface=this._applyShim=null;ob(function(){a._ensure()})}function z(){this.customStyles=[];this.enqueued=!1}function pb(){}function la(a){this.cache={};this.typeMax=void 0===a?100:a}function n(){}function u(a,b,c,d,e,f){this.styleRules=a||null;this.placeholder=
b||null;this.ownStylePropertyNames=c||[];this.overrideStyleProperties=null;this.elementName=d||"";this.cssBuild=f||"";this.typeExtension=e||"";this.customStyle=this.scopeSelector=this.styleProperties=null}function v(){}function ya(){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 Rc(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,
configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;m(this)&&(e=[],Q(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];1===g.__CE_state&&a.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(this):a.patchTree(this);return b}})}function c(b,c){B(b,"insertAdjacentElement",function(b,d){var e=m(d);b=c.call(this,b,d);e&&a.disconnectTree(d);m(b)&&a.connectTree(d);return b})}qb?B(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=
a=qb.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(za&&za.get)b(Element.prototype,za);else if(Aa&&Aa.get)b(HTMLElement.prototype,Aa);else{var d=Ba.call(document,"div");a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return rb.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)Ca.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)ma.call(b,d.childNodes[0])}})})}B(Element.prototype,
"setAttribute",function(b,c){if(1!==this.__CE_state)return sb.call(this,b,c);var d=Da.call(this,b);sb.call(this,b,c);c=Da.call(this,b);d!==c&&a.attributeChangedCallback(this,b,d,c,null)});B(Element.prototype,"setAttributeNS",function(b,c,d){if(1!==this.__CE_state)return tb.call(this,b,c,d);var e=na.call(this,b,c);tb.call(this,b,c,d);d=na.call(this,b,c);e!==d&&a.attributeChangedCallback(this,c,e,d,b)});B(Element.prototype,"removeAttribute",function(b){if(1!==this.__CE_state)return ub.call(this,b);
var c=Da.call(this,b);ub.call(this,b);null!==c&&a.attributeChangedCallback(this,b,c,null,null)});B(Element.prototype,"removeAttributeNS",function(b,c){if(1!==this.__CE_state)return vb.call(this,b,c);var d=na.call(this,b,c);vb.call(this,b,c);var e=na.call(this,b,c);d!==e&&a.attributeChangedCallback(this,c,d,e,b)});wb?c(HTMLElement.prototype,wb):xb?c(Element.prototype,xb):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");yb(a,Element.prototype,{prepend:Tc,append:Uc});
Vc(a,Element.prototype,{before:Wc,after:Xc,replaceWith:Yc,remove:Zc})}function Vc(a,b,c){b.before=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m(a)});c.before.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.after=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof
Node&&m(a)});c.after.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.replaceWith=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];var f=d.filter(function(a){return a instanceof Node&&m(a)}),g=m(this);c.replaceWith.apply(this,d);for(var h=0;h<f.length;h++)a.disconnectTree(f[h]);if(g)for(a.disconnectTree(this),f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.remove=
function(){var b=m(this);c.remove.call(this);b&&a.disconnectTree(this)}}function $c(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&m(this))for(var c=Array(h),l=0;l<h;l++)c[l]=e[l]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.disconnectTree(c[b])}}})}B(Node.prototype,"insertBefore",function(b,
d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=zb.call(this,b,d);if(m(this))for(d=0;d<c.length;d++)a.connectTree(c[d]);return b}c=m(b);d=zb.call(this,b,d);c&&a.disconnectTree(b);m(this)&&a.connectTree(b);return d});B(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=ma.call(this,b);if(m(this))for(var e=0;e<c.length;e++)a.connectTree(c[e]);return b}c=m(b);e=ma.call(this,b);c&&a.disconnectTree(b);
m(this)&&a.connectTree(b);return e});B(Node.prototype,"cloneNode",function(b){b=rb.call(this,b);this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});B(Node.prototype,"removeChild",function(b){var c=m(b),e=Ca.call(this,b);c&&a.disconnectTree(b);return e});B(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=Ab.call(this,b,d);if(m(this))for(a.disconnectTree(d),d=0;d<c.length;d++)a.connectTree(c[d]);
return b}var c=m(b),f=Ab.call(this,b,d),g=m(this);g&&a.disconnectTree(d);c&&a.disconnectTree(b);g&&a.connectTree(b);return f});Ea&&Ea.get?b(Node.prototype,Ea):a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)Ca.call(this,this.firstChild);ma.call(this,document.createTextNode(a))}})})}function ad(a){B(Document.prototype,"createElement",
function(b){if(this.__CE_hasRegistry){var c=a.localNameToDefinition(b);if(c)return new c.constructor}b=Ba.call(this,b);a.patch(b);return b});B(Document.prototype,"importNode",function(b,c){b=bd.call(this,b,c);this.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});B(Document.prototype,"createElementNS",function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.localNameToDefinition(c);if(d)return new d.constructor}b=cd.call(this,b,c);a.patch(b);
return b});yb(a,Document.prototype,{prepend:dd,append:ed})}function yb(a,b,c){b.prepend=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&m(a)});c.prepend.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.append=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&
m(a)});c.append.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(m(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)}}function fd(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.constructorToDefinition(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=Ba.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=
1,e.__CE_definition=d,a.patch(e),e;var d=e.length-1,f=e[d];if(f===Bb)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[d]=Bb;Object.setPrototypeOf(f,b.prototype);a.patch(f);return f}b.prototype=gd.prototype;return b}()}function A(a){this._elementDefinitionIsRunning=!1;this._internals=a;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=!1;this._unflushedLocalNames=[];this._documentConstructionObserver=
new Fa(a,document)}function Ga(){var a=this;this._resolve=this._value=void 0;this._promise=new Promise(function(b){a._resolve=b;a._value&&b(a._value)})}function Fa(a,b){this._internals=a;this._document=b;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}function x(){this._localNameToDefinition=new Map;
this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}function q(a,b){if(a!==Cb)throw new TypeError("Illegal constructor");a=document.createDocumentFragment();a.__proto__=q.prototype;a._init(b);return a}function C(a){this.root=a;this.insertionPointTag="slot"}function U(a){if(!D(a,"firstChild")){a.__shady=a.__shady||{};a.__shady.firstChild=Db(a);a.__shady.lastChild=Eb(a);Fb(a);for(var b=a.__shady.childNodes=da(a),c=0,d;c<b.length&&(d=b[c]);c++)d.__shady=d.__shady||{},d.__shady.parentNode=
a,d.__shady.nextSibling=b[c+1]||null,d.__shady.previousSibling=b[c-1]||null,Gb(d)}}function hd(a){var b=a&&a._observer;b&&(b.callbacks.delete(a._callback),b.callbacks.size||(a._node.__shady.observer=null))}function id(a,b){a.__shady=a.__shady||{};a.__shady.observer||(a.__shady.observer=new oa);a.__shady.observer.callbacks.add(b);var c=a.__shady.observer;return{_callback:b,_observer:c,_node:a,takeRecords:function(){return c.takeRecords()}}}function oa(){this._scheduled=!1;this.addedNodes=[];this.removedNodes=
[];this.callbacks=new Set}function N(a){return"ShadyRoot"===a.__localName}function V(a){a=a.getRootNode();if(N(a))return a}function Ha(a,b){if(a&&b)for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length&&(e=c[d]);d++){var f=e,g=a,h=Object.getOwnPropertyDescriptor(b,f);h&&Object.defineProperty(g,f,h)}return a||b}function Hb(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(d=0;d<c.length;d++)Ha(a,c[d]);return a}function jd(a,b){for(var c in b)a[c]=b[c];return a}function Ib(a){Ia.push(a);
Ja.textContent=Jb++}function Kb(a){Ka||(Ka=!0,Ib(La));ea.push(a)}function La(){Ka=!1;for(var a=!!ea.length;ea.length;)ea.shift()();return a}function kd(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})}function Lb(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Mb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function Ma(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g;e<f&&(g=d[e]);e++){var h;a:{var l;h=g;l=a;var Sc=b;switch(h.nodeType){case Node.ELEMENT_NODE:for(var k=h.localName,M="<"+k,m=h.attributes,n=0;l=m[n];n++)M+=" "+l.name+'="'+l.value.replace(ld,Lb)+'"';M+=">";h=md[k]?M:M+Ma(h,Sc)+
"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=l&&nd[l.localName]?h:h.replace(od,Lb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),Error("not implemented");}}c+=h}return c}function W(a){E.currentNode=a;return E.parentNode()}function Db(a){E.currentNode=a;return E.firstChild()}function Eb(a){E.currentNode=a;return E.lastChild()}function da(a){var b=[];E.currentNode=a;for(a=E.firstChild();a;)b.push(a),a=E.nextSibling();return b}function Nb(a){G.currentNode=
a;return G.firstChild()}function Ob(a){G.currentNode=a;return G.lastChild()}function Pb(a){G.currentNode=a;return G.previousSibling()}function Qb(a){G.currentNode=a;return G.nextSibling()}function Rb(a){var b=[];G.currentNode=a;for(a=G.firstChild();a;)b.push(a),a=G.nextSibling();return b}function Sb(a){return Ma(a,function(a){return da(a)})}function Tb(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=
c.nodeValue;return b}function D(a,b){return void 0!==(a.__shady&&a.__shady[b])}function X(a){return{get:function(){var b=this.__shady&&this.__shady[a];return void 0!==b?b:Ub[a](this)},configurable:!0}}function J(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Could not define",d,"on",a)}}function R(a){J(a,Vb);J(a,Na);J(a,Oa)}function Wb(a,b,c){Gb(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};
c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild=a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=null}function Xb(a){var b=D(a,"parentNode")&&a.__shady&&a.__shady.parentNode,c,d=V(a);if(b||d){c=
Yb(a);if(b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var e=a.__shady.previousSibling,f=a.__shady.nextSibling;e&&(e.__shady=e.__shady||{},e.__shady.nextSibling=f);f&&(f.__shady=f.__shady||{},f.__shady.previousSibling=e);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;D(b,"childNodes")&&(b.__shady.childNodes=null)}if(e=d){for(var g,
e=d._insertionPoints,f=0;f<e.length;f++){var h=e[f],l;a:{for(l=h;l;){if(l==a){l=!0;break a}l=l.parentNode}l=void 0}if(l)for(h=h.assignedNodes({flatten:!0}),l=0;l<h.length;l++){g=!0;var k=h[l],p=W(k);p&&Y.call(p,k)}}e=g}g=e;b=b&&d&&b.localName===d.getInsertionPointTag();if(g||b)d._skipUpdateInsertionPoints=!1,pa(d)}Pa(a);return c}function Qa(a,b,c){if(a=a.__shady&&a.__shady.observer)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.schedule()}function Ra(a){if(a&&a.nodeType){var b=a.__ownerShadyRoot;
void 0===b&&(b=N(a)?a:(b=a.parentNode)?Ra(b):a,document.documentElement.contains(a)&&(a.__ownerShadyRoot=b));return b}}function Zb(a,b,c){var d,e=c.getInsertionPointTag();if(a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||a.__noInsertionPoint)a.localName===e&&(U(b),U(a),d=!0);else for(var e=a.querySelectorAll(e),f=0,g,h;f<e.length&&(g=e[f]);f++)h=g.parentNode,h===a&&(h=b),h=Zb(g,h,c),d=d||h;return d}function Pa(a){if(void 0!==a.__ownerShadyRoot)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Pa(e);
a.__ownerShadyRoot=void 0}function Yb(a){if((a=a.parentNode)&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())return pa(a.shadyRoot),!0}function pa(a){a._changePending=!0;a.update()}function $b(a,b){"slot"===b?Yb(a):"slot"===a.localName&&"name"===b&&(a=V(a))&&a.update()}function ac(a,b,c){var d=[];bc(a.childNodes,b,c,d);return d}function bc(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var l=b,k=c,p=d,M=l(h);M&&p.push(h);k&&k(M)?h=M:(bc(h.childNodes,
l,k,p),h=void 0)}if(h)return!0}}function cc(a){a=a.getRootNode();N(a)&&a.render()}function dc(a,b,c){if(c){var d=c.__shady&&c.__shady.parentNode;if(void 0!==d&&d!==a||void 0===d&&W(c)!==a)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(c===b)return b;b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(d=b.__shady&&b.__shady.parentNode,d?(Qa(d,null,b),Xb(b)):(b.parentNode&&Y.call(b.parentNode,b),Pa(b)));var d=c,
e=V(a),f;e&&(b.__noInsertionPoint&&!e._changePending&&(e._skipUpdateInsertionPoints=!0),f=Zb(b,a,e))&&(e._skipUpdateInsertionPoints=!1);if(D(a,"firstChild"))if(Fb(a),a.__shady=a.__shady||{},D(a,"firstChild")&&(a.__shady.childNodes=null),b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var g=b.childNodes,h=0;h<g.length;h++)Wb(g[h],a,d);b.__shady=b.__shady||{};g=D(b,"firstChild")?null:void 0;b.__shady.firstChild=b.__shady.lastChild=g;b.__shady.childNodes=g}else Wb(b,a,d);var g=f,h=e&&e.getInsertionPointTag()||
"",l=b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!b.__noInsertionPoint&&h&&b.querySelector(h);f=l&&l.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;((l=l||b.localName===h)||a.localName===h||g)&&e&&pa(e);(e=a&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())&&pa(a.shadyRoot);if(!(e||l&&!f||a.shadyRoot||d&&N(d.parentNode)&&d.parentNode._renderPending)){if(c&&(d=V(c))){var k;if(c.localName===d.getInsertionPointTag())a:{d=c.assignedNodes({flatten:!0});e=Ra(c);f=0;for(g=d.length;f<g&&(k=d[f]);f++)if(e.isFinalDestination(c,
k))break a;k=void 0}else k=c;c=k}k=N(a)?a.host:a;c?Sa.call(k,b,c):ec.call(k,b)}Qa(a,b);return b}function fc(a,b){if(a.ownerDocument!==document)return Ta.call(document,a,b);var c=Ta.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=fc(a[b],!0),c.appendChild(d)}return c}function Ua(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===
document&&c.push(window);return c}function gc(a,b){if(!N)return a;a=Ua(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!N(f)||-1<g)return d}function Va(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}jd(b,a);b.prototype=a.prototype;return b}function hc(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}function pd(a){var b=
a.composedPath(),c;Object.defineProperty(a,"currentTarget",{get:function(){return c},configurable:!0});for(var d=b.length-1;0<=d;d--)if(c=b[d],hc(a,c,"capture"),a.__propagationStopped)return;Object.defineProperty(a,"eventPhase",{value:Event.AT_TARGET});for(var e,d=0;d<b.length;d++)if(c=b[d],0===d||c.shadowRoot&&c.shadowRoot===e)if(hc(a,c,"bubble"),c!==window&&(e=c.getRootNode()),a.__propagationStopped)break}function qd(){for(var a in Wa)window.addEventListener(a,function(a){a.__target||(ic(a),pd(a),
a.stopImmediatePropagation())},!0)}function ic(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(K.hasDescriptors){var b=jc,c=Object.getPrototypeOf(a);if(!c.hasOwnProperty("__patchProto")){var d=Object.create(c);d.__sourceProto=c;Ha(d,b);c.__patchProto=d}a.__proto__=c.__patchProto}else Ha(a,jc)}function fa(a,b,c){return{index:a,removed:b,addedCount:c}}function rd(a,b,c,d,e,f){var g=0,h=0,l=Math.min(c-b,f-e);if(0==b&&0==e)a:{for(g=0;g<l;g++)if(a[g]!==d[g])break a;g=l}if(c==a.length&&f==d.length){for(var h=
l-g,l=a.length,k=d.length,p=0;p<h&&sd(a[--l],d[--k]);)p++;h=p}b+=g;e+=g;c-=h;f-=h;if(0==c-b&&0==f-e)return[];if(b==c){for(c=fa(b,[],0);e<f;)c.removed.push(d[e++]);return[c]}if(e==f)return[fa(b,[],c-b)];g=b;h=e;f=f-h+1;l=c-g+1;c=Array(f);for(k=0;k<f;k++)c[k]=Array(l),c[k][0]=k;for(k=0;k<l;k++)c[0][k]=k;for(k=1;k<f;k++)for(p=1;p<l;p++)if(a[g+p-1]===d[h+k-1])c[k][p]=c[k-1][p-1];else{var M=c[k-1][p]+1,m=c[k][p-1]+1;c[k][p]=M<m?M:m}f=c.length-1;g=c[0].length-1;h=c[f][g];for(a=[];0<f||0<g;)0==f?(a.push(2),
g--):0==g?(a.push(3),f--):(l=c[f-1][g-1],k=c[f-1][g],p=c[f][g-1],M=k<p?k<l?k:l:p<l?p:l,M==l?(l==h?a.push(0):(a.push(1),h=l),f--,g--):M==k?(a.push(3),f--,h=k):(a.push(2),g--,h=p));a.reverse();c=void 0;f=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:c&&(f.push(c),c=void 0);b++;e++;break;case 1:c||(c=fa(b,[],0));c.addedCount++;b++;c.removed.push(d[e]);e++;break;case 2:c||(c=fa(b,[],0));c.addedCount++;b++;break;case 3:c||(c=fa(b,[],0)),c.removed.push(d[e]),e++}c&&f.push(c);return f}function sd(a,b){return a===
b}function kc(a){cc(a);return a.__shady&&a.__shady.assignedSlot||null}function Z(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f.value?a[e]=f.value:Object.defineProperty(a,e,f)}}function lc(a){var b=td.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}function m(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?
a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Xa(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}function Q(a,b,c){c=void 0===c?new Set:c;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)Q(d,b,c);d=Xa(a,e);continue}else if("template"===f){d=Xa(a,e);continue}if(e=
e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Q(e,b,c)}d=d.firstChild?d.firstChild:Xa(a,d)}}function B(a,b,c){a[b]=c}function Ya(a){a=a.replace(H.comments,"").replace(H.port,"");var b=mc,c=a,d=new ya;d.start=0;d.end=c.length;for(var e=d,f=0,g=c.length;f<g;f++)if("{"===c[f]){e.rules||(e.rules=[]);var h=e,k=h.rules[h.rules.length-1]||null,e=new ya;e.start=f+1;e.parent=h;e.previous=k;h.rules.push(e)}else"}"===c[f]&&(e.end=f+1,e=e.parent||d);return b(d,a)}function mc(a,b){var c=b.substring(a.start,
a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=ud(c),c=c.replace(H.multipleSpaces," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=L.MEDIA_RULE:c.match(H.keyframesRule)&&(a.type=L.KEYFRAMES_RULE,a.keyframesName=a.selector.split(H.multipleSpaces).pop()):0===c.indexOf("--")?a.type=L.MIXIN_RULE:a.type=L.STYLE_RULE);if(c=a.rules)for(var d=
0,e=c.length,f;d<e&&(f=c[d]);d++)mc(f,b);return a}function ud(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}function nc(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h;f<g&&(h=e[f]);f++)d=nc(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(H.customProp,"").replace(H.mixinProp,""),b=b.replace(H.mixinApply,"").replace(H.varApply,
"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}function oc(a){a&&(r=r&&!a.nativeCss&&!a.shimcssproperties,y=y&&!a.nativeShadow&&!a.shimshadow)}function aa(a,b){if(!a)return"";"string"===typeof a&&(a=Ya(a));b&&ba(a,b);return nc(a,r)}function qa(a){!a.__cssRules&&a.textContent&&(a.__cssRules=Ya(a.textContent));return a.__cssRules||null}function pc(a){return!!a.parent&&a.parent.type===L.KEYFRAMES_RULE}function ba(a,b,c,d){if(a){var e=
!1,f=a.type;if(d&&f===L.MEDIA_RULE){var g=a.selector.match(vd);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===L.STYLE_RULE?b(a):c&&f===L.KEYFRAMES_RULE?c(a):f===L.MIXIN_RULE&&(e=!0);if((a=a.rules)&&!e)for(var e=0,f=a.length,h;e<f&&(h=a[e]);e++)ba(h,b,c,d)}}function Za(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;qc(e,c,d);return e}function qc(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);S?a.compareDocumentPosition(S)===
Node.DOCUMENT_POSITION_PRECEDING&&(S=a):S=a}function rc(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d;a:{var e=0;d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&0===--e)break a;d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=rc(a.substring(d+1),b);f=e.indexOf(",");if(-1===f)return b(c,e.trim(),"",a);d=e.substring(0,f).trim();e=e.substring(f+1).trim();return b(c,d,e,a)}function ra(a,b){y?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,
"class",b)}function T(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,typeExtension:c}}function wd(a){(a=sa[a])&&(a._applyShimInvalid=!0)}function xd(a){a._validating||(a._validating=!0,yd.then(function(){a._applyShimInvalid=!1;a._validating=!1}))}function ob(a){sc?sc(a):($a||($a=new Promise(function(a){ab=a}),"complete"===document.readyState?ab():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&
ab()})),$a.then(function(){a&&a()}))}(function(){if(!function(){var a=document.createEvent("Event");a.initEvent("foo",!0,!0);a.preventDefault();return a.defaultPrevented}()){var a=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(a.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var b=/Trident/.test(navigator.userAgent);if(!window.CustomEvent||b&&"function"!==typeof window.CustomEvent)window.CustomEvent=
function(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;if(!window.Event||b&&"function"!==typeof window.Event){var c=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(c)for(var d in c)window.Event[d]=c[d];window.Event.prototype=c.prototype}if(!window.MouseEvent||b&&"function"!==typeof window.MouseEvent){b=
window.MouseEvent;window.MouseEvent=function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(b)for(d in b)window.MouseEvent[d]=b[d];window.MouseEvent.prototype=b.prototype}Array.from||(Array.from=function(a){return[].slice.call(a)});Object.assign||(Object.assign=function(a,b){for(var c=[].slice.call(arguments,
1),d=0,e;d<c.length;d++)if(e=c[d])for(var f=a,k=e,m=Object.getOwnPropertyNames(k),n=0;n<m.length;n++)e=m[n],f[e]=k[e];return a})})(window.WebComponents);(function(){function a(){}var b="undefined"===typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var a=Document.prototype.importNode;Document.prototype.importNode=function(){var b=a.apply(this,arguments);if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var c=this.createDocumentFragment();c.appendChild(b);return c}return b}}();
var c=Node.prototype.cloneNode,d=Document.prototype.createElement,e=Document.prototype.importNode,f=function(){if(!b){var a=document.createElement("template"),c=document.createElement("template");c.content.appendChild(document.createElement("div"));a.content.appendChild(c);a=a.cloneNode(!0);return 0===a.content.childNodes.length||0===a.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}();if(b){var g=function(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case "\u00a0":return"&nbsp;"}},h=function(b){Object.defineProperty(b,"innerHTML",{get:function(){for(var a="",b=this.content.firstChild;b;b=b.nextSibling)a+=b.outerHTML||b.data.replace(v,g);return a},set:function(b){k.body.innerHTML=b;for(a.bootstrap(k);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;k.body.firstChild;)this.content.appendChild(k.body.firstChild)},configurable:!0})},k=document.implementation.createHTMLDocument("template"),
m=!0,p=document.createElement("style");p.textContent="template{display:none;}";var n=document.head;n.insertBefore(p,n.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var q=!document.createElement("div").hasOwnProperty("innerHTML");a.decorate=function(b){if(!b.content){b.content=k.createDocumentFragment();for(var c;c=b.firstChild;)b.content.appendChild(c);if(q)b.__proto__=a.prototype;else if(b.cloneNode=function(b){return a._cloneNode(this,b)},m)try{h(b)}catch(ae){m=!1}a.bootstrap(b.content)}};
h(a.prototype);a.bootstrap=function(b){b=b.querySelectorAll("template");for(var c=0,d=b.length,e;c<d&&(e=b[c]);c++)a.decorate(e)};document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var b=d.apply(this,arguments);"template"===b.localName&&a.decorate(b);return b};var v=/[&\u00A0<>]/g}if(b||f)a._cloneNode=function(a,b){var d=c.call(a,!1);this.decorate&&this.decorate(d);b&&(d.content.appendChild(c.call(a.content,!0)),this.fixClonedDom(d.content,
a.content));return d},a.prototype.cloneNode=function(b){return a._cloneNode(this,b)},a.fixClonedDom=function(a,b){if(b.querySelectorAll){b=b.querySelectorAll("template");a=a.querySelectorAll("template");for(var c=0,d=a.length,e,f;c<d;c++)f=b[c],e=a[c],this.decorate&&this.decorate(f),e.parentNode.replaceChild(f.cloneNode(!0),e)}},Node.prototype.cloneNode=function(b){var d;if(this instanceof DocumentFragment)if(b)d=this.ownerDocument.importNode(this,!0);else return this.ownerDocument.createDocumentFragment();
else d=c.call(this,b);b&&a.fixClonedDom(d,this);return d},Document.prototype.importNode=function(b,c){if("template"===b.localName)return a._cloneNode(b,c);var d=e.call(this,b,c);c&&a.fixClonedDom(d,b);return d},f&&(window.HTMLTemplateElement.prototype.cloneNode=function(b){return a._cloneNode(this,b)});b&&(window.HTMLTemplateElement=a)})();!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.ES6Promise=b()}(window,
function(){function a(a,b){z[x]=a;z[x+1]=b;x+=2;2===x&&(D?D(g):N())}function b(){return function(){return process.nextTick(g)}}function c(){return"undefined"!=typeof C?function(){C(g)}:f()}function d(){var a=0,b=new G(g),c=document.createTextNode("");return b.observe(c,{characterData:!0}),function(){c.data=a=++a%2}}function e(){var a=new MessageChannel;return a.port1.onmessage=g,function(){return a.port2.postMessage(0)}}function f(){var a=setTimeout;return function(){return a(g,1)}}function g(){for(var a=
0;a<x;a+=2)(0,z[a])(z[a+1]),z[a]=void 0,z[a+1]=void 0;x=0}function h(){try{var a=require("vertx");return C=a.runOnLoop||a.runOnContext,c()}catch(tc){return f()}}function k(b,c){var d=arguments,e=this,f=new this.constructor(p);void 0===f[H]&&bb(f);var g=e._state;return g?!function(){var b=d[g-1];a(function(){return uc(g,f,b,e._result)})}():A(e,f,b,c),f}function m(a){if(a&&"object"==typeof a&&a.constructor===this)return a;var b=new this(p);return u(b,a),b}function p(){}function n(a){try{return a.then}catch(tc){return P.error=
tc,P}}function q(a,b,c,d){try{a.call(b,c,d)}catch(Bd){return Bd}}function v(b,c,d){a(function(a){var b=!1,e=q(d,c,function(d){b||(b=!0,c!==d?u(a,d):r(a,d))},function(c){b||(b=!0,O(a,c))},"Settle: "+(a._label||" unknown promise"));!b&&e&&(b=!0,O(a,e))},b)}function t(a,b){b._state===L?r(a,b._result):b._state===J?O(a,b._result):A(b,void 0,function(b){return u(a,b)},function(b){return O(a,b)})}function w(a,b,c){b.constructor===a.constructor&&c===k&&b.constructor.resolve===m?t(a,b):c===P?O(a,P.error):
void 0===c?r(a,b):"function"==typeof c?v(a,b,c):r(a,b)}function u(a,b){a===b?O(a,new TypeError("You cannot resolve a promise with itself")):"function"==typeof b||"object"==typeof b&&null!==b?w(a,b,n(b)):r(a,b)}function y(a){a._onerror&&a._onerror(a._result);B(a)}function r(b,c){b._state===F&&(b._result=c,b._state=L,0!==b._subscribers.length&&a(B,b))}function O(b,c){b._state===F&&(b._state=J,b._result=c,a(y,b))}function A(b,c,d,e){var f=b._subscribers,g=f.length;b._onerror=null;f[g]=c;f[g+L]=d;f[g+
J]=e;0===g&&b._state&&a(B,b)}function B(a){var b=a._subscribers,c=a._state;if(0!==b.length){for(var d,e,f=a._result,g=0;g<b.length;g+=3)d=b[g],e=b[g+c],d?uc(c,d,e,f):e(f);a._subscribers.length=0}}function ga(){this.error=null}function uc(a,b,c,d){var e="function"==typeof c,f=void 0,g=void 0,h=void 0,ga=void 0;if(e){var k;try{k=c(d)}catch(Cd){k=(Q.error=Cd,Q)}if(f=k,f===Q?(ga=!0,g=f.error,f=null):h=!0,b===f)return void O(b,new TypeError("A promises callback cannot return that same promise."))}else f=
d,h=!0;b._state!==F||(e&&h?u(b,f):ga?O(b,g):a===L?r(b,f):a===J&&O(b,f))}function Dd(a,b){try{b(function(b){u(a,b)},function(b){O(a,b)})}catch(zd){O(a,zd)}}function bb(a){a[H]=R++;a._state=void 0;a._result=void 0;a._subscribers=[]}function ha(a,b){this._instanceConstructor=a;this.promise=new a(p);this.promise[H]||bb(this.promise);vc(b)?(this._input=b,this.length=b.length,this._remaining=b.length,this._result=Array(this.length),0===this.length?r(this.promise,this._result):(this.length=this.length||
0,this._enumerate(),0===this._remaining&&r(this.promise,this._result))):O(this.promise,Error("Array Methods must be provided an Array"))}function I(a){this[H]=R++;this._result=this._state=void 0;this._subscribers=[];if(p!==a){if("function"!=typeof a)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(this instanceof I)Dd(this,a);else throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
}}var cb=void 0,vc=cb=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},x=0,C=void 0,D=void 0,E=(cb="undefined"!=typeof window?window:void 0)||{},G=E.MutationObserver||E.WebKitMutationObserver,E="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),K="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,z=Array(1E3),N=void 0,N=E?b():G?d():K?e():void 0===
cb&&"function"==typeof require?h():f(),H=Math.random().toString(36).substring(16),F=void 0,L=1,J=2,P=new ga,Q=new ga,R=0;return ha.prototype._enumerate=function(){for(var a=this.length,b=this._input,c=0;this._state===F&&c<a;c++)this._eachEntry(b[c],c)},ha.prototype._eachEntry=function(a,b){var c=this._instanceConstructor,d=c.resolve;d===m?(d=n(a),d===k&&a._state!==F?this._settledAt(a._state,b,a._result):"function"!=typeof d?(this._remaining--,this._result[b]=a):c===I?(c=new c(p),w(c,a,d),this._willSettleAt(c,
b)):this._willSettleAt(new c(function(b){return b(a)}),b)):this._willSettleAt(d(a),b)},ha.prototype._settledAt=function(a,b,c){var d=this.promise;d._state===F&&(this._remaining--,a===J?O(d,c):this._result[b]=c);0===this._remaining&&r(d,this._result)},ha.prototype._willSettleAt=function(a,b){var c=this;A(a,void 0,function(a){return c._settledAt(L,b,a)},function(a){return c._settledAt(J,b,a)})},I.all=function(a){return(new ha(this,a)).promise},I.race=function(a){var b=this;return new b(vc(a)?function(c,
d){for(var e=a.length,f=0;f<e;f++)b.resolve(a[f]).then(c,d)}:function(a,b){return b(new TypeError("You must pass an array to race."))})},I.resolve=m,I.reject=function(a){var b=new this(p);return O(b,a),b},I._setScheduler=function(a){D=a},I._setAsap=function(b){a=b},I._asap=a,I.prototype={constructor:I,then:k,"catch":function(a){return this.then(null,a)}},I.polyfill=function(){var a=void 0;if("undefined"!=typeof global)a=global;else if("undefined"!=typeof self)a=self;else try{a=Function("return this")()}catch(Ad){throw Error("polyfill failed because global object is unavailable in this environment");
}var b=a.Promise;if(b){var c=null;try{c=Object.prototype.toString.call(b.resolve())}catch(Ad){}if("[object Promise]"===c&&!b.cast)return}a.Promise=I},I.Promise=I,I});ES6Promise.polyfill();(function(a){function b(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function c(a){if(m)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=
a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!h(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=document.querySelectorAll("link[rel=import]:not(import-dependency)"),c=b.length;if(c)for(var d=0,e=b.length,f;d<e&&(f=b[d]);d++)g(f,function(){0===--c&&a()});else a()}function e(a){if("loading"!==document.readyState)a();else{var b=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",b),a())};document.addEventListener("readystatechange",
b)}}function f(a){e(function(){return d(function(){return a&&a()})})}function g(a,b){if(a.__loaded)b&&b();else if("script"!==a.localName||a.src){var c=function(d){a.removeEventListener(d.type,c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);x&&"style"===a.localName||a.addEventListener("error",c)}else a.__loaded=!0,b&&b()}function h(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.documents={};this.inflight=0;this.dynamicImportsMO=new MutationObserver(function(b){return a.handleMutations(b)});
e(function(){a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0});a.loadImports(document)})}var m="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 n=/(^\/)|(^#)|(^[\w-\d]*:)/,q=/(url\()([^)]*)(\))/g,r=/(@import[\s]+(?!url\())([^;]*)(;)/g,u=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,
w={fixUrls:function(a,b){a.href&&a.setAttribute("href",w.replaceAttrUrl(a.getAttribute("href"),b));a.src&&a.setAttribute("src",w.replaceAttrUrl(a.getAttribute("src"),b));"style"===a.localName&&w.resolveUrlsInStyle(a,b)},fixUrlsInTemplates:function(a,b){a=a.querySelectorAll("template");for(var c=0;c<a.length;c++)w.fixUrlsInTemplate(a[c],b)},fixUrlsInTemplate:function(a,b){a=a.content||a;for(var c=a.querySelectorAll("style, [src], [style]"),d=0;d<c.length;d++){var e=c[d];"style"==e.localName?w.resolveUrlsInStyle(e,
b):w.fixUrlAttributes(e,b)}w.fixUrlsInTemplates(a,b)},fixUrlAttributes:function(a,b){for(var c=["src","style"],d=0,e;d<c.length&&(e=c[d]);d++){var f=a.attributes[e],g=f&&f.value;g&&0>g.search(/({{|\[\[)/)&&(f.value="style"===e?w.resolveUrlsInCssText(g,b):w.replaceAttrUrl(g,b))}},resolveUrlsInStyle:function(a,b){a.textContent=w.resolveUrlsInCssText(a.textContent,b)},resolveUrlsInCssText:function(a,b){a=w.replaceUrls(a,b,q);return a=w.replaceUrls(a,b,r)},replaceUrls:function(a,b,c){return a.replace(c,
function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=w.resolveUrl(a,b));return c+"'"+a+"'"+e})},replaceAttrUrl:function(a,b){return a&&n.test(a)?a:w.resolveUrl(a,b)},resolveUrl:function(a,b){if(void 0===w.__workingURL){w.__workingURL=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";w.__workingURL="http://a/c%20d"===c.href}catch(bb){}}if(w.__workingURL)return(new URL(a,b)).href;c=w.__tempDoc;c||(c=document.implementation.createHTMLDocument("temp"),w.__tempDoc=c,c.__base=c.createElement("base"),c.head.appendChild(c.__base),
c.__anchor=c.createElement("a"));c.__base.href=b;c.__anchor.href=a;return c.__anchor.href||a}},v={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1],d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,v.async);e.onload=function(){var a=e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||
200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},x=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);k.prototype.loadImports=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b<c;b++)this.loadImport(a[b])};k.prototype.loadImport=function(a){var b=this,c=a.href;if(void 0!==this.documents[c]){var d=this.documents[c];d&&d.__loaded&&(a.import=d,this.fireEventIfNeeded(a))}else this.inflight++,this.documents[c]=
"pending",v.load(c,function(a,d){a=b.makeDocument(a,d||c);b.documents[c]=a;b.inflight--;b.loadImports(a);b.processImportsIfLoadingDone()},function(){b.documents[c]=null;b.inflight--;b.processImportsIfLoadingDone()})};k.prototype.makeDocument=function(a,b){if(!a)return document.createDocumentFragment();x&&(a=a.replace(u,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=w.replaceAttrUrl(c.getAttribute("href"),b),c.removeAttribute("href");for(var 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"]'),d=0,e=0,f=c.length,h;e<f&&(h=c[e]);e++)g(h),w.fixUrls(h,b),h.setAttribute("import-dependency",""),"script"===h.localName&&!h.src&&h.textContent&&
(h.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(h.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n"))),h.textContent="",d++);w.fixUrlsInTemplates(a,b);return a};k.prototype.processImportsIfLoadingDone=function(){var a=this;if(!this.inflight){this.dynamicImportsMO.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),a.fireEvents())};this.waitForStyles(function(){c=!0;d()});this.runScripts(function(){b=
!0;d()})}};k.prototype.flatten=function(a){a=a.querySelectorAll("link[rel=import]");for(var b={},c=0,d=a.length;c<d&&(b.n=a[c]);b={n:b.n},c++){var e=this.documents[b.n.href];(b.n.import=e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[b.n.href]=b.n,b.n.readyState="loading",b.n.import=b.n,Object.defineProperty(b.n,"baseURI",{get:function(a){return function(){return a.n.href}}(b),configurable:!0,enumerable:!0}),this.flatten(e),b.n.appendChild(e))}};k.prototype.runScripts=function(a){function b(e){if(e<
d){var f=c[e],h=document.createElement("script");f.removeAttribute("import-dependency");for(var k=0,l=f.attributes.length;k<l;k++)h.setAttribute(f.attributes[k].name,f.attributes[k].value);p=h;f.parentNode.replaceChild(h,f);g(h,function(){p=null;b(e+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};k.prototype.waitForStyles=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),d=b.length;if(d)for(var e=
x&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]"),f={},h=0,k=b.length;h<k&&(f.s=b[h]);f={s:f.s},h++){if(g(f.s,function(b){return function(){b.s.removeAttribute("import-dependency");0===--d&&a()}}(f)),e&&f.s.parentNode!==document.head){var l=document.createElement(f.s.localName);l.__appliedElement=f.s;l.setAttribute("type","import-placeholder");f.s.parentNode.insertBefore(l,f.s.nextSibling);for(l=c(f.s);l&&c(l);)l=c(l);l.parentNode!==document.head&&(l=null);document.head.insertBefore(f.s,
l);f.s.removeAttribute("type")}}else a()};k.prototype.fireEvents=function(){for(var a=document.querySelectorAll("link[rel=import]"),b=a.length-1,c;0<=b&&(c=a[b]);b--)this.fireEventIfNeeded(c)};k.prototype.fireEventIfNeeded=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(b(a.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.handleMutations=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.addedNodes)for(var d=0;d<
c.addedNodes.length;d++){var e=c.addedNodes[d];e&&e.nodeType===Node.ELEMENT_NODE&&(h(e)?this.loadImport(e):this.loadImports(e))}}};if(m){for(var t=document.querySelectorAll("link[rel=import]"),y=0,A=t.length,z;y<A&&(z=t[y]);y++)z.import&&"loading"===z.import.readyState||(z.__loaded=!0);t=function(a){a=a.target;h(a)&&(a.__loaded=!0)};document.addEventListener("load",t,!0);document.addEventListener("error",t,!0)}else new k;f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,
bubbles:!0,detail:void 0}))});a.useNative=m;a.whenReady=f;a.importForElement=c})(window.HTMLImports=window.HTMLImports||{});(function(){window.WebComponents=window.WebComponents||{flags:{}};var a=document.querySelector('script[src*="webcomponents-lite.js"]'),b={};if(!b.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var c;a[0]&&(c=a[0].match(/wc-(.+)/))&&(b[c[1]]=a[1]||!0)});if(a)for(var c=0,d;d=a.attributes[c];c++)"src"!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log.split?
(a=b.log.split(","),b.log={},a.forEach(function(a){b.log[a]=!0})):b.log={}}WebComponents.flags=b;a=window.WebComponents;if(c=a.flags.shadydom)window.ShadyDOM=window.ShadyDOM||{},ShadyDOM.force=c;(a=a.flags.register||a.flags.ce)&&window.customElements&&(customElements.forcePolyfill=a)})();var K=window.ShadyDOM||{};K.hasNativeShadowDOM=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var db=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");K.hasDescriptors=!!(db&&db.configurable&&
db.get);K.inUse=K.force||!K.hasNativeShadowDOM;var ca=Element.prototype,wc=ca.matches||ca.matchesSelector||ca.mozMatchesSelector||ca.msMatchesSelector||ca.oMatchesSelector||ca.webkitMatchesSelector,Ja=document.createTextNode(""),Jb=0,Ia=[];(new MutationObserver(function(){for(;Ia.length;)try{Ia.shift()()}catch(a){throw Ja.textContent=Jb++,a;}})).observe(Ja,{characterData:!0});var ea=[],Ka;La.list=ea;oa.prototype.schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,Ib(function(){a.flush()}))};
oa.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var a=this.takeRecords();a.length&&this.callbacks.forEach(function(b){b(a)})}};oa.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};var ec=Element.prototype.appendChild,Sa=Element.prototype.insertBefore,Y=Element.prototype.removeChild,xc=Element.prototype.setAttribute,
yc=Element.prototype.removeAttribute,eb=Element.prototype.cloneNode,Ta=Document.prototype.importNode,zc=Element.prototype.addEventListener,Ac=Element.prototype.removeEventListener,Ed=Object.freeze({appendChild:ec,insertBefore:Sa,removeChild:Y,setAttribute:xc,removeAttribute:yc,cloneNode:eb,importNode:Ta,addEventListener:zc,removeEventListener:Ac}),ld=/[&\u00A0"]/g,od=/[&\u00A0<>]/g,md=Mb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),nd=Mb("style script xmp iframe noembed noframes plaintext noscript".split(" ")),
E=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),G=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Ub=Object.freeze({parentNode:W,firstChild:Db,lastChild:Eb,previousSibling:function(a){E.currentNode=a;return E.previousSibling()},nextSibling:function(a){E.currentNode=a;return E.nextSibling()},childNodes:da,parentElement:function(a){G.currentNode=a;return G.parentNode()},firstElementChild:Nb,lastElementChild:Ob,previousElementSibling:Pb,nextElementSibling:Qb,children:Rb,
innerHTML:Sb,textContent:Tb}),fb=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),ta=document.implementation.createHTMLDocument("inert").createElement("div"),gb=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Vb={parentElement:X("parentElement"),parentNode:X("parentNode"),nextSibling:X("nextSibling"),previousSibling:X("previousSibling"),className:{get:function(){return this.getAttribute("class")},
set:function(a){this.setAttribute("class",a)},configurable:!0},nextElementSibling:{get:function(){if(D(this,"nextSibling")){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Qb(this)},configurable:!0},previousElementSibling:{get:function(){if(D(this,"previousSibling")){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Pb(this)},configurable:!0}},Na={childNodes:{get:function(){if(D(this,"firstChild")){if(!this.__shady.childNodes){this.__shady.childNodes=
[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}return this.__shady.childNodes}return da(this)},configurable:!0},firstChild:X("firstChild"),lastChild:X("lastChild"),textContent:{get:function(){if(D(this,"firstChild")){for(var a=[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Tb(this)},set:function(a){if(this.nodeType!==Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);
a&&this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(D(this,"firstChild")){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Nb(this)},configurable:!0},lastElementChild:{get:function(){if(D(this,"lastChild")){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Ob(this)},configurable:!0},children:{get:function(){return D(this,"firstChild")?Array.prototype.filter.call(this.childNodes,
function(a){return a.nodeType===Node.ELEMENT_NODE}):Rb(this)},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return D(this,"firstChild")?Ma(a):Sb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(fb&&fb.set?fb.set.call(ta,a):ta.innerHTML=a;ta.firstChild;)b.appendChild(ta.firstChild)},configurable:!0}},Bc={shadowRoot:{get:function(){return this.shadyRoot},set:function(a){this.shadyRoot=
a},configurable:!0}},Oa={activeElement:{get:function(){var a;a=gb&&gb.get?gb.get.call(document):K.hasDescriptors?void 0:document.activeElement;if(a&&a.nodeType){var b=!!N(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=V(a);b&&b!==this;)a=b.host,b=V(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},Gb=K.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__outsideAccessors||(a.__shady=a.__shady||{},
a.__shady.__outsideAccessors=!0,J(a,Vb,!0))},Fb=K.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__insideAccessors||(a.__shady=a.__shady||{},a.__shady.__insideAccessors=!0,J(a,Na,!0),J(a,Bc,!0))},ua=null,Fd={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},jc={get composed(){this.isTrusted&&void 0===this.__composed&&(this.__composed=Fd[this.type]);return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=
Ua(this.__target,this.composed));return this.__composedPath},get target(){return gc(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Ua(this.__relatedTarget,!0));return gc(this.currentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);
this.__propagationStopped=this.__immediatePropagationStopped=!0}},Wa={focus:!0,blur:!0},Gd=Va(window.Event),Hd=Va(window.CustomEvent),Id=Va(window.MouseEvent),Jd="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};C.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)};C.prototype.hasInsertionPoint=function(){return!(!this.root._insertionPoints||!this.root._insertionPoints.length)};
C.prototype.isInsertionPoint=function(a){return a.localName&&a.localName==this.insertionPointTag};C.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]};C.prototype.collectPool=function(){for(var a=[],b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};C.prototype.distributePool=function(a,b){a=[];for(var c=this.root._insertionPoints,d=0,e=c.length,f;d<e&&(f=c[d]);d++){this.distributeInsertionPoint(f,b);var g=f.parentNode;
g&&g.shadyRoot&&g.shadyRoot.hasInsertionPoint()&&a.push(g.shadyRoot)}for(f=0;f<b.length;f++)if(c=b[f])c.__shady=c.__shady||{},c.__shady.assignedSlot=void 0,(d=W(c))&&Y.call(d,c);return a};C.prototype.distributeInsertionPoint=function(a,b){var c=a.__shady.assignedNodes;c&&this.clearAssignedSlots(a,!0);a.__shady.assignedNodes=[];for(var d=!1,e=!1,f=0,g=b.length,h;f<g;f++)(h=b[f])&&this.matchesInsertionPoint(h,a)&&(h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a),b[f]=void 0,e=!0);
if(!e)for(b=a.childNodes,e=0;e<b.length;e++)h=b[e],h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a);if(c){for(h=0;h<c.length;h++)c[h].__shady._prevAssignedSlot=null;a.__shady.assignedNodes.length<c.length&&(d=!0)}this.setDistributedNodesOnInsertionPoint(a);d&&this._fireSlotChange(a)};C.prototype.clearAssignedSlots=function(a,b){var c=a.__shady.assignedNodes;if(c)for(var d=0;d<c.length;d++){var e=c[d];b&&(e.__shady._prevAssignedSlot=e.__shady.assignedSlot);e.__shady.assignedSlot===
a&&(e.__shady.assignedSlot=null)}};C.prototype.matchesInsertionPoint=function(a,b){b=(b=b.getAttribute("name"))?b.trim():"";a=(a=a.getAttribute&&a.getAttribute("slot"))?a.trim():"";return a==b};C.prototype.distributeNodeInto=function(a,b){b.__shady.assignedNodes.push(a);a.__shady.assignedSlot=b};C.prototype.setDistributedNodesOnInsertionPoint=function(a){var b=a.__shady.assignedNodes;a.__shady.distributedNodes=[];for(var c=0,d;c<b.length&&(d=b[c]);c++)if(this.isInsertionPoint(d)){var e=d.__shady.distributedNodes;
if(e)for(var f=0;f<e.length;f++)a.__shady.distributedNodes.push(e[f])}else a.__shady.distributedNodes.push(b[c])};C.prototype._fireSlotChange=function(a){a.dispatchEvent(new Jd("slotchange"));a.__shady.assignedSlot&&this._fireSlotChange(a.__shady.assignedSlot)};C.prototype.isFinalDestination=function(a){return!a.__shady.assignedSlot};var Cb={};q.prototype=Object.create(DocumentFragment.prototype);q.prototype._init=function(a){this.__localName="ShadyRoot";U(a);U(this);a.shadowRoot=this;this.host=a;
this._changePending=this._hasRendered=this._renderPending=!1;this._distributor=new C(this);this.update()};q.prototype.update=function(){var a=this;this._renderPending||(this._renderPending=!0,Kb(function(){return a.render()}))};q.prototype._getRenderRoot=function(){for(var a=this,b=this;b;)b._renderPending&&(a=b),b=b._rendererForHost();return a};q.prototype._rendererForHost=function(){var a=this.host.getRootNode();if(N(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this._distributor.isInsertionPoint(d))return a};
q.prototype.render=function(){this._renderPending&&this._getRenderRoot()._render()};q.prototype._render=function(){this._changePending=this._renderPending=!1;this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints();this._skipUpdateInsertionPoints=!1;this.distribute();this.compose();this._hasRendered=!0};q.prototype.forceRender=function(){this._renderPending=!0;this.render()};q.prototype.distribute=function(){for(var a=this._distributor.distribute(),
b=0;b<a.length;b++)a[b]._render()};q.prototype.updateInsertionPoints=function(){var a=this.__insertionPoints;if(a)for(var b=0,c;b<a.length;b++)c=a[b],c.getRootNode()!==this&&this._distributor.clearAssignedSlots(c);a=this._insertionPoints=this._distributor.getInsertionPoints();for(b=0;b<a.length;b++)c=a[b],c.__shady=c.__shady||{},U(c),U(c.parentNode)};q.prototype.hasInsertionPoint=function(){return this._distributor.hasInsertionPoint()};q.prototype.compose=function(){this._composeTree()};q.prototype._composeTree=
function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var a=this._insertionPoints||[],b=0,c=a.length,d,e;b<c&&(d=a[b]);b++)e=d.parentNode,e!==this.host&&e!==this&&this._updateChildNodes(e,this._composeNode(e))};q.prototype._composeNode=function(a){var b=[];a=(a.shadyRoot||a).childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this._distributor.isInsertionPoint(d))for(var e=d.__shady.distributedNodes||(d.__shady.distributedNodes=[]),f=0;f<e.length;f++){var g=e[f];this.isFinalDestination(d,
g)&&b.push(g)}else b.push(d)}return b};q.prototype.isFinalDestination=function(a,b){return this._distributor.isFinalDestination(a,b)};q.prototype._updateChildNodes=function(a,b){for(var c=da(a),d=rd(b,0,b.length,c,0,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.removed.length&&(k=g.removed[h]);h++)W(k)===a&&Y.call(a,k),c.splice(g.index+f,1);f-=g.addedCount}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.addedCount;h++)k=b[h],Sa.call(a,k,f),c.splice(h,0,k)};
q.prototype.getInsertionPointTag=function(){return this._distributor.insertionPointTag};Object.defineProperty(q.prototype,"_insertionPoints",{get:function(){this.__insertionPoints||this.updateInsertionPoints();return this.__insertionPoints||(this.__insertionPoints=[])},set:function(a){this.__insertionPoints=a},configurable:!0});(function(a){J(a,Na,!0);J(a,Oa,!0)})(q.prototype);var Kd={addEventListener:function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=
!!c,f=e=!1);if(b.__eventWrappers)for(var g=0;g<b.__eventWrappers.length;g++){if(b.__eventWrappers[g].node===this&&b.__eventWrappers[g].type===a&&b.__eventWrappers[g].capture===d&&b.__eventWrappers[g].once===e&&b.__eventWrappers[g].passive===f)return}else b.__eventWrappers=[];g=function(d){e&&this.removeEventListener(a,b,c);d.__target||ic(d);if(d.composed||-1<d.composedPath().indexOf(this))if(d.eventPhase===Event.BUBBLING_PHASE&&d.target===d.relatedTarget)d.stopImmediatePropagation();else return b(d)};
b.__eventWrappers.push({node:this,type:a,capture:d,once:e,passive:f,wrapperFn:g});Wa[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][d?"capture":"bubble"].push(g)):zc.call(this,a,g,c)}},removeEventListener:function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);var g=void 0;if(b.__eventWrappers)for(var h=0;h<b.__eventWrappers.length;h++)if(b.__eventWrappers[h].node===this&&
b.__eventWrappers[h].type===a&&b.__eventWrappers[h].capture===d&&b.__eventWrappers[h].once===e&&b.__eventWrappers[h].passive===f){g=b.__eventWrappers.splice(h,1)[0].wrapperFn;b.__eventWrappers.length||(b.__eventWrappers=void 0);break}Ac.call(this,a,g||b,c);g&&Wa[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][d?"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}},appendChild:function(a){return dc(this,a)},insertBefore:function(a,b){return dc(this,a,b)},removeChild:function(a){if(a.parentNode!==
this)throw Error("The node to be removed is not a child of this node: "+a);if(!Xb(a)){var b=N(this)?this.host:this,c=W(a);b===c&&Y.call(b,a)}Qa(this,null,a);return a},replaceChild:function(a,b){this.insertBefore(a,b);this.removeChild(b);return a},cloneNode:function(a){var b;if("template"==this.localName)b=eb.call(this,a);else if(b=eb.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(a){return Ra(this,a)},get isConnected(){var a=
this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof q?a.host:void 0);return!!(a&&a instanceof Document)}},Ld={get assignedSlot(){return kc(this)}},hb={querySelector:function(a){return ac(this,function(b){return wc.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return ac(this,function(b){return wc.call(b,a)})}},Cc={assignedNodes:function(a){if("slot"===
this.localName)return cc(this),this.__shady?(a&&a.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},Dc=Hb({setAttribute:function(a,b){ua||(ua=window.ShadyCSS&&window.ShadyCSS.ScopingShim);ua&&"class"===a?ua.setElementClass(this,b):(xc.call(this,a,b),$b(this,a))},removeAttribute:function(a){yc.call(this,a);$b(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new q(Cb,this)},get slot(){return this.getAttribute("slot")},
set slot(a){this.setAttribute("slot",a)},get assignedSlot(){return kc(this)}},hb,Cc);Object.defineProperties(Dc,Bc);var Ec=Hb({importNode:function(a,b){return fc(a,b)}},hb);Object.defineProperties(Ec,{_activeElement:Oa.activeElement});K.inUse&&(window.ShadyDOM={},window.ShadyDOM.inUse=K.inUse,window.ShadyDOM.patch=function(a){return a},window.ShadyDOM.isShadyRoot=N,window.ShadyDOM.enqueue=Kb,window.ShadyDOM.flush=La,window.ShadyDOM.settings=K,window.ShadyDOM.filterMutations=kd,window.ShadyDOM.observeChildren=
id,window.ShadyDOM.unobserveChildren=hd,window.ShadyDOM.nativeMethods=Ed,window.ShadyDOM.nativeTree=Ub,window.Event=Gd,window.CustomEvent=Hd,window.MouseEvent=Id,qd(),Z(window.Node.prototype,Kd),Z(window.Text.prototype,Ld),Z(window.DocumentFragment.prototype,hb),Z(window.Element.prototype,Dc),Z(window.Document.prototype,Ec),window.HTMLSlotElement&&Z(window.HTMLSlotElement.prototype,Cc),K.hasDescriptors&&(R(window.Node.prototype),R(window.Text.prototype),R(window.DocumentFragment.prototype),R(window.Element.prototype),
R((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),R(window.Document.prototype),window.HTMLSlotElement&&R(window.HTMLSlotElement.prototype)),window.ShadowRoot=q);var td=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));x.prototype.setDefinition=function(a,b){this._localNameToDefinition.set(a,b);this._constructorToDefinition.set(b.constructor,b)};x.prototype.localNameToDefinition=function(a){return this._localNameToDefinition.get(a)};
x.prototype.constructorToDefinition=function(a){return this._constructorToDefinition.get(a)};x.prototype.addPatch=function(a){this._hasPatches=!0;this._patches.push(a)};x.prototype.patchTree=function(a){var b=this;this._hasPatches&&Q(a,function(a){return b.patch(a)})};x.prototype.patch=function(a){if(this._hasPatches&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this._patches.length;b++)this._patches[b](a)}};x.prototype.connectTree=function(a){var b=[];Q(a,function(a){return b.push(a)});for(a=
0;a<b.length;a++){var c=b[a];1===c.__CE_state?this.connectedCallback(c):this.upgradeElement(c)}};x.prototype.disconnectTree=function(a){var b=[];Q(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state&&this.disconnectedCallback(c)}};x.prototype.patchAndUpgradeTree=function(a,b){b=void 0===b?new Set:b;var c=this,d=[];Q(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=
!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,new Set(b),b.delete(d),c.patchAndUpgradeTree(d,b))})}else d.push(a)},b);if(this._hasPatches)for(a=0;a<d.length;a++)this.patch(d[a]);for(a=0;a<d.length;a++)this.upgradeElement(d[a])};x.prototype.upgradeElement=function(a){if(void 0===a.__CE_state){var b=this.localNameToDefinition(a.localName);if(b){b.constructionStack.push(a);
var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}m(a)&&this.connectedCallback(a)}}};x.prototype.connectedCallback=function(a){var b=a.__CE_definition;
b.connectedCallback&&b.connectedCallback.call(a)};x.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};x.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,c,d,e)};Fa.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};Fa.prototype._handleMutations=function(a){var b=this._document.readyState;
"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this._internals.patchAndUpgradeTree(c[d])};Ga.prototype.resolve=function(a){if(this._value)throw Error("Already resolved.");this._value=a;this._resolve&&this._resolve(a)};Ga.prototype.toPromise=function(){return this._promise};A.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!lc(a))throw new SyntaxError("The element name '"+
a+"' is not valid.");if(this._internals.localNameToDefinition(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var d,e,f,g,h;try{var k=function(a){var b=m[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},m=b.prototype;if(!(m instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");
d=k("connectedCallback");e=k("disconnectedCallback");f=k("adoptedCallback");g=k("attributeChangedCallback");h=b.observedAttributes||[]}catch(p){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(a,{localName:a,constructor:b,connectedCallback:d,disconnectedCallback:e,adoptedCallback:f,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this._unflushedLocalNames.push(a);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return c._flush()}))};
A.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var a=this._unflushedLocalNames.shift();(a=this._whenDefinedDeferred.get(a))&&a.resolve(void 0)}};A.prototype.get=function(a){if(a=this._internals.localNameToDefinition(a))return a.constructor};A.prototype.whenDefined=function(a){if(!lc(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this._whenDefinedDeferred.get(a);
if(b)return b.toPromise();b=new Ga;this._whenDefinedDeferred.set(a,b);this._internals.localNameToDefinition(a)&&-1===this._unflushedLocalNames.indexOf(a)&&b.resolve(void 0);return b.toPromise()};A.prototype.polyfillWrapFlushCallback=function(a){this._documentConstructionObserver.disconnect();var b=this._flushCallback;this._flushCallback=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=A;A.prototype.define=A.prototype.define;A.prototype.get=A.prototype.get;A.prototype.whenDefined=
A.prototype.whenDefined;A.prototype.polyfillWrapFlushCallback=A.prototype.polyfillWrapFlushCallback;var Ba=window.Document.prototype.createElement,cd=window.Document.prototype.createElementNS,bd=window.Document.prototype.importNode,dd=window.Document.prototype.prepend,ed=window.Document.prototype.append,rb=window.Node.prototype.cloneNode,ma=window.Node.prototype.appendChild,zb=window.Node.prototype.insertBefore,Ca=window.Node.prototype.removeChild,Ab=window.Node.prototype.replaceChild,Ea=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),qb=window.Element.prototype.attachShadow,za=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Da=window.Element.prototype.getAttribute,sb=window.Element.prototype.setAttribute,ub=window.Element.prototype.removeAttribute,na=window.Element.prototype.getAttributeNS,tb=window.Element.prototype.setAttributeNS,vb=window.Element.prototype.removeAttributeNS,xb=window.Element.prototype.insertAdjacentElement,Tc=window.Element.prototype.prepend,Uc=window.Element.prototype.append,
Wc=window.Element.prototype.before,Xc=window.Element.prototype.after,Yc=window.Element.prototype.replaceWith,Zc=window.Element.prototype.remove,gd=window.HTMLElement,Aa=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),wb=window.HTMLElement.prototype.insertAdjacentElement,Bb=new function(){},va=window.customElements;if(!va||va.forcePolyfill||"function"!=typeof va.define||"function"!=typeof va.get){var ia=new x;fd(ia);ad(ia);$c(ia);Rc(ia);document.__CE_hasRegistry=!0;var Md=
new A(ia);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Md})}var L={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1E3},H={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,
multipleSpaces:/\s+/g},y=!(window.ShadyDOM&&window.ShadyDOM.inUse),r=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)");window.ShadyCSS?oc(window.ShadyCSS):window.WebComponents&&oc(window.WebComponents.flags);var Fc=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,Gc=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Nd=/(--[\w-]+)\s*([:,;)]|$)/gi,Od=/(animation\s*:)|(animation-name\s*:)/,vd=/@media[^(]*(\([^)]*\))/,
Pd=/\{[^}]*\}/g,S=null;v.prototype.dom=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this._transformDom(a,b||"",c)};v.prototype._transformDom=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.element(a,b,c);if(a="template"===a.localName?(a.content||a._content).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this._transformDom(a[d],b,c)};v.prototype.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),
a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(Qd);c?d&&(b=d.replace("style-scope","").replace(b,""),ra(a,b)):ra(a,(d?d+" ":"")+"style-scope "+b)}};v.prototype.elementStyles=function(a,b,c){var d=a.__cssBuild;y||"shady"===d?b=aa(b,c):(a=T(a),b=this.css(b,a.is,a.typeExtension,c)+"\n\n");return b.trim()};v.prototype.css=function(a,b,c,d){var e=this._calcHostScope(b,c);b=this._calcElementScope(b);var f=this;return aa(a,function(a){a.isScoped||(f.rule(a,b,e),a.isScoped=!0);d&&d(a,b,
e)})};v.prototype._calcElementScope=function(a){return a?Rd+a:""};v.prototype._calcHostScope=function(a,b){return b?"[is="+a+"]":a};v.prototype.rule=function(a,b,c){this._transformRule(a,this._transformComplexSelector,b,c)};v.prototype._transformRule=function(a,b,c,d){a.selector=a.transformedSelector=this._transformRuleCss(a,b,c,d)};v.prototype._transformRuleCss=function(a,b,c,d){var e=a.selector.split(Hc);if(!pc(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(Hc)};
v.prototype._transformComplexSelector=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Sd,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Td,ib+" $1");return a=a.replace(Ud,function(a,g,h){e||(a=d._transformCompoundSelector(h,g,b,c),e=e||a.stop,g=a.combinator,h=a.value);return g+h})};v.prototype._transformCompoundSelector=function(a,b,c,d){var e=a.indexOf(jb);0<=a.indexOf(ib)?a=this._transformHostSelector(a,d):0!==e&&(a=c?this._transformSimpleSelector(a,c):a);c=!1;0<=e&&
(b="",c=!0);var f;c&&(f=!0,c&&(a=a.replace(Vd,function(a,b){return" > "+b})));a=a.replace(Wd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,combinator:b,stop:f}};v.prototype._transformSimpleSelector=function(a,b){a=a.split(Ic);a[0]+=b;return a.join(Ic)};v.prototype._transformHostSelector=function(a,b){var c=a.match(Jc);return(c=c&&c[2].trim()||"")?c[0].match(Kc)?a.replace(Jc,function(a,c,f){return b+f}):c.split(Kc)[0]===b?c:Xd:a.replace(ib,b)};v.prototype.documentRule=
function(a){a.selector=a.parsedSelector;this.normalizeRootSelector(a);this._transformRule(a,this._transformDocumentSelector)};v.prototype.normalizeRootSelector=function(a){a.selector===Yd&&(a.selector="html")};v.prototype._transformDocumentSelector=function(a){return a.match(jb)?this._transformComplexSelector(a,Lc):this._transformSimpleSelector(a.trim(),Lc)};ka.global.Object.defineProperties(v.prototype,{SCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Sd=/:(nth[-\w]+)\(([^)]+)\)/,
Lc=":not(.style-scope)",Hc=",",Ud=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Kc=/[[.:#*]/,ib=":host",Yd=":root",jb="::slotted",Td=new RegExp("^("+jb+")"),Jc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Vd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Wd=/(.*):dir\((?:(ltr|rtl))\)/,Rd=".",Ic=":",Qd="class",Xd="should_not_match",t=new v;u.get=function(a){return a?a.__styleInfo:null};u.set=function(a,b){return a.__styleInfo=b};u.prototype._getStyleRules=function(){return this.styleRules};u.prototype._getStyleRules=
u.prototype._getStyleRules;var Mc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Zd=navigator.userAgent.match("Trident");n.prototype.decorateStyles=function(a){var b=this,c={},d=[],e=0;ba(a,function(a){b.decorateRule(a);a.index=e++;b.collectPropertiesInCssText(a.propertyInfo.cssText,c)},function(a){d.push(a)});a._keyframes=d;a=[];for(var f in c)a.push(f);return a};n.prototype.decorateRule=
function(a){if(a.propertyInfo)return a.propertyInfo;var b={},c={};this.collectProperties(a,c)&&(b.properties=c,a.rules=null);b.cssText=this.collectCssText(a);return a.propertyInfo=b};n.prototype.collectProperties=function(a,b){var c=a.propertyInfo;if(c){if(c.properties)return Object.assign(b,c.properties),!0}else{for(var c=a.parsedCssText,d;a=Fc.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};n.prototype.collectCssText=function(a){return this.collectConsumingCssText(a.parsedCssText)};
n.prototype.collectConsumingCssText=function(a){return a.replace(Pd,"").replace(Fc,"")};n.prototype.collectPropertiesInCssText=function(a,b){for(var c;c=Nd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};n.prototype.reify=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.valueForProperty(a[d],a)};n.prototype.valueForProperty=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.valueForProperties(a,b);else{var c=this;a=rc(a,function(a,e,f,g){if(!e)return a+g;(e=c.valueForProperty(b[e],
b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.valueForProperty(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};n.prototype.valueForProperties=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){Gc.lastIndex=0;if(e=Gc.exec(d))d=this.valueForProperty(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e),f=f.trim(),f=this.valueForProperty(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};
n.prototype.applyProperties=function(a,b){var c="";a.propertyInfo||this.decorateRule(a);a.propertyInfo.cssText&&(c=this.valueForProperties(a.propertyInfo.cssText,b));a.cssText=c};n.prototype.applyKeyframeTransforms=function(a,b){var c=a.cssText,d=a.cssText;null==a.hasAnimations&&(a.hasAnimations=Od.test(c));if(a.hasAnimations)if(null==a.keyframeNamesToTransform){a.keyframeNamesToTransform=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.keyframeNamesToTransform.push(e))}else{for(e=0;e<a.keyframeNamesToTransform.length;++e)d=
b[a.keyframeNamesToTransform[e]],c=d(c);d=c}a.cssText=d};n.prototype.propertyDataFromStyles=function(a,b){var c={},d=this,e=[];ba(a,function(a){a.propertyInfo||d.decorateRule(a);var f=a.transformedSelector||a.parsedSelector;b&&a.propertyInfo.properties&&f&&Mc.call(b,f)&&(d.collectProperties(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{properties:c,key:e}};n.prototype.whenHostOrRootRule=function(a,b,c,d){b.propertyInfo||this.decorateRule(b);if(b.propertyInfo.properties){var e=
T(a),f=e.is,e=e.typeExtension;a=a.is?t._calcHostScope(f,e):"html";var g=b.parsedSelector,e=":host > *"===g||"html"===g,h=0===g.indexOf(":host")&&!e;"shady"===c&&(e=g===a+" > *."+a||-1!==g.indexOf("html"),h=!e&&0===g.indexOf(a));"shadow"===c&&(e=":host > *"===g||"html"===g,h=h&&!e);if(e||h)c=a,h&&(y&&!b.transformedSelector&&(b.transformedSelector=t._transformRuleCss(b,t._transformComplexSelector,t._calcElementScope(f),a)),c=b.transformedSelector||a),d({selector:c,isHost:h,isRoot:e})}};n.prototype.hostAndRootPropertiesForScope=
function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;ba(b,function(b){e.whenHostOrRootRule(a,b,f,function(f){Mc.call(a._element||a,f.selector)&&(f.isHost?e.collectProperties(b,c):e.collectProperties(b,d))})},null,!0);return{rootProps:d,hostProps:c}};n.prototype.transformStyles=function(a,b,c){var d=this,e=T(a),f=t._calcHostScope(e.is,e.typeExtension),e=a.extends?"\\"+f.slice(0,-1)+"\\]":f,g=new RegExp("(?:^|[^.#[:])"+e+"($|[.:[\\s>+~])"),e=u.get(a).styleRules,h=this._elementKeyframeTransforms(a,e,
c);return t.elementStyles(a,e,function(a){d.applyProperties(a,b);y||pc(a)||!a.cssText||(d.applyKeyframeTransforms(a,h),d._scopeSelector(a,g,f,c))})};n.prototype._elementKeyframeTransforms=function(a,b,c){a=b._keyframes;b={};if(!y&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this._scopeKeyframes(e,c),b[e.keyframesName]=this._keyframesRuleTransformer(e);return b};n.prototype._keyframesRuleTransformer=function(a){return function(b){return b.replace(a.keyframesNameRx,a.transformedKeyframesName)}};n.prototype._scopeKeyframes=
function(a,b){a.keyframesNameRx=new RegExp(a.keyframesName,"g");a.transformedKeyframesName=a.keyframesName+"-"+b;a.transformedSelector=a.transformedSelector||a.selector;a.selector=a.transformedSelector.replace(a.keyframesName,a.transformedKeyframesName)};n.prototype._scopeSelector=function(a,b,c,d){a.transformedSelector=a.transformedSelector||a.selector;d="."+d;for(var e=a.transformedSelector.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};
n.prototype.applyElementScopeSelector=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&ra(a,e)};n.prototype.applyElementStyle=function(a,b,c,d){b=d?d.textContent||"":this.transformStyles(a,b,c);var e=u.get(a),f=e.customStyle;f&&!y&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));y?e.customStyle?(e.customStyle.textContent=b,d=e.customStyle):b&&(d=Za(b,c,a.shadowRoot,
e.placeholder)):d?d.parentNode||qc(d,null,e.placeholder):b&&(d=Za(b,c,null,e.placeholder));d&&(d._useCount=d._useCount||0,e.customStyle!=d&&d._useCount++,e.customStyle=d);Zd&&(d.textContent=d.textContent);return d};n.prototype.applyCustomStyle=function(a,b){var c=qa(a),d=this;a.textContent=aa(c,function(a){var c=a.cssText=a.parsedCssText;a.propertyInfo&&a.propertyInfo.cssText&&(c=c.replace(H.customProp,"").replace(H.mixinProp,""),a.cssText=d.valueForProperties(c,b))})};ka.global.Object.defineProperties(n.prototype,
{XSCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var P=new n,kb={},wa=window.customElements;if(wa&&!y){var $d=wa.define;wa.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+a+" "),e=document.head;e.insertBefore(d,(S?S.nextSibling:null)||e.firstChild);S=d;kb[a]=d;return $d.call(wa,a,b,c)}}la.prototype._validate=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.properties[e]!==b[e])return!1}return!0};la.prototype.store=function(a,b,
c,d){var e=this.cache[a]||[];e.push({properties:b,styleElement:c,scopeSelector:d});e.length>this.typeMax&&e.shift();this.cache[a]=e};la.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this._validate(e,b,c))return e}};if(!y){var Nc=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head){for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d],f=e;if(f.classList&&!f.classList.contains(t.SCOPE_NAME)||
f instanceof window.SVGElement&&(!f.hasAttribute("class")||0>f.getAttribute("class").indexOf(t.SCOPE_NAME)))if(f=e.getRootNode(),f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=f.host))f=T(f).is,t.dom(e,f)}for(d=0;d<c.removedNodes.length;d++)if(e=c.removedNodes[d],e.nodeType===Node.ELEMENT_NODE&&(f=void 0,e.classList?f=Array.from(e.classList):e.hasAttribute("class")&&(f=e.getAttribute("class").split(/\s+/)),void 0!==f)){var g=f.indexOf(t.SCOPE_NAME);0<=g&&(f=f[g+1])&&t.dom(e,f,!0)}}}},Oc=new MutationObserver(Nc),
Pc=function(a){Oc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.flush)Pc(document);else{var lb=function(){Pc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(lb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){lb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else lb()})}pb=function(){Nc(Oc.takeRecords())}}var sa={},yd=Promise.resolve(),$a=null,sc=window.HTMLImports&&
window.HTMLImports.whenReady||null,ab,xa=null,ja=null;z.prototype.enqueueDocumentValidation=function(){!this.enqueued&&ja&&(this.enqueued=!0,ob(ja))};z.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.enqueueDocumentValidation())};z.prototype.getStyleForCustomStyle=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};z.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=
a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;xa&&xa(d);c.__shadyCSSCachedStyle=d}}}return a};z.prototype.addCustomStyle=z.prototype.addCustomStyle;z.prototype.getStyleForCustomStyle=z.prototype.getStyleForCustomStyle;z.prototype.processStyles=z.prototype.processStyles;Object.defineProperties(z.prototype,{transformCallback:{get:function(){return xa},
set:function(a){xa=a}},validateCallback:{get:function(){return ja},set:function(a){var b=!1;ja||(b=!0);ja=a;b&&this.enqueueDocumentValidation()}}});var Qc=new la;k.prototype.flush=function(){pb()};k.prototype._generateScopeSelector=function(a){var b=this._scopeCounter[a]=(this._scopeCounter[a]||0)+1;return a+"-"+b};k.prototype.getStyleAst=function(a){return qa(a)};k.prototype.styleAstToString=function(a){return aa(a)};k.prototype._gatherStyles=function(a){a=a.content.querySelectorAll("style");for(var b=
[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype._getCssBuild=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=function(a,b,c){if(!a._prepared){a._prepared=!0;a.name=b;a.extends=c;sa[b]=a;var d=this._getCssBuild(a),e=this._gatherStyles(a);c={is:b,extends:c,__cssBuild:d};y||t.dom(a.content,b);this._ensure();var f=this._applyShim.detectMixin(e),e=Ya(e);f&&r&&
this._applyShim.transformRules(e,b);a._styleAst=e;a._cssBuild=d;d=[];r||(d=P.decorateStyles(a._styleAst,c));if(!d.length||r)b=this._generateStaticStyle(c,a._styleAst,y?a.content:null,kb[b]),a._style=b;a._ownPropertyNames=d}};k.prototype._generateStaticStyle=function(a,b,c,d){b=t.elementStyles(a,b);if(b.length)return Za(b,a.is,c,d)};k.prototype._prepareHost=function(a){var b=T(a),c=b.is,b=b.typeExtension,d=kb[c],e=sa[c],f,g,h;e&&(f=e._styleAst,g=e._ownPropertyNames,h=e._cssBuild);return u.set(a,new u(f,
d,g,c,b,h))};k.prototype._ensureApplyShim=function(){if(!this._applyShim)if(window.ShadyCSS.ApplyShim)this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=wd;else{var a={};this._applyShim=(a.detectMixin=function(){return!1},a.transformRule=function(){},a.transformRules=function(){},a)}};k.prototype._ensureCustomStyleInterface=function(){var a=this;if(!this._customStyleInterface)if(window.ShadyCSS.CustomStyleInterface)this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,
this._customStyleInterface.transformCallback=function(b){a.transformCustomStyleForDocument(b)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){(a._customStyleInterface.enqueued||a._elementsHaveApplied)&&a.flushCustomStyles()})};else{var b={};this._customStyleInterface=(b.processStyles=function(){},b.enqueued=!1,b.getStyleForCustomStyle=function(){return null},b)}};k.prototype._ensure=function(){this._ensureApplyShim();this._ensureCustomStyleInterface()};k.prototype.flushCustomStyles=
function(){this._ensure();var a=this._customStyleInterface.processStyles();this._customStyleInterface.enqueued&&(r?this._revalidateCustomStyleApplyShim(a):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(a)),this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!r&&this.styleDocument())};k.prototype.styleElement=function(a,b){var c=T(a).is,d=u.get(a);d||(d=this._prepareHost(a));this._isRootOwner(a)||(this._elementsHaveApplied=!0);b&&(d.overrideStyleProperties=
d.overrideStyleProperties||{},Object.assign(d.overrideStyleProperties,b));if(r){if(d.overrideStyleProperties){b=d.overrideStyleProperties;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}((e=sa[c])||this._isRootOwner(a))&&e&&e._style&&e._applyShimInvalid&&(e._validating||(this._ensure(),this._applyShim.transformRules(e._styleAst,c),e._style.textContent=t.elementStyles(a,d.styleRules),xd(e)),y&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=t.elementStyles(a,d.styleRules)),
d.styleRules=e._styleAst)}else this._updateProperties(a,d),d.ownStylePropertyNames&&d.ownStylePropertyNames.length&&this._applyStyleProperties(a,d)};k.prototype._styleOwnerForNode=function(a){return(a=a.getRootNode().host)?u.get(a)?a:this._styleOwnerForNode(a):this._documentOwner};k.prototype._isRootOwner=function(a){return a===this._documentOwner};k.prototype._applyStyleProperties=function(a,b){var c=T(a).is,d=Qc.fetch(c,b.styleProperties,b.ownStylePropertyNames),e=d?d.styleElement:null,f=b.scopeSelector;
b.scopeSelector=d&&d.scopeSelector||this._generateScopeSelector(c);e=P.applyElementStyle(a,b.styleProperties,b.scopeSelector,e);y||P.applyElementScopeSelector(a,b.scopeSelector,f);d||Qc.store(c,b.styleProperties,e,b.scopeSelector);return e};k.prototype._updateProperties=function(a,b){var c=this._styleOwnerForNode(a),d=u.get(c),c=Object.create(d.styleProperties||null),e=P.hostAndRootPropertiesForScope(a,b.styleRules);a=P.propertyDataFromStyles(d.styleRules,a).properties;Object.assign(c,e.hostProps,
a,e.rootProps);this._mixinOverrideStyles(c,b.overrideStyleProperties);P.reify(c);b.styleProperties=c};k.prototype._mixinOverrideStyles=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this._documentOwner,a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this._isRootOwner(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=
0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype._revalidateCustomStyleApplyShim=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&this._revalidateApplyShim(c)}};k.prototype._applyCustomStyles=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&P.applyCustomStyle(c,this._documentOwnerStyleInfo.styleProperties)}};k.prototype.transformCustomStyleForDocument=function(a){var b=this,c=qa(a);
ba(c,function(a){y?t.normalizeRootSelector(a):t.documentRule(a);r&&(b._ensure(),b._applyShim.transformRule(a))});r?a.textContent=aa(c):this._documentOwnerStyleInfo.styleRules.rules.push(c)};k.prototype._revalidateApplyShim=function(a){if(r){var b=qa(a);this._ensure();this._applyShim.transformRules(b);a.textContent=aa(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;r||(c=(u.get(a)||u.get(this._styleOwnerForNode(a))).styleProperties[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?
c.trim():""};k.prototype.setElementClass=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===t.SCOPE_NAME){c=d[e+1];break}}c&&b.push(t.SCOPE_NAME,c);r||(c=u.get(a))&&c.scopeSelector&&b.push(P.XSCOPE_NAME,c.scopeSelector);ra(a,b.join(" "))};k.prototype._styleInfoForNode=function(a){return u.get(a)};k.prototype.flush=k.prototype.flush;k.prototype.prepareTemplate=k.prototype.prepareTemplate;
k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.setElementClass;k.prototype._styleInfoForNode=k.prototype._styleInfoForNode;k.prototype.transformCustomStyleForDocument=k.prototype.transformCustomStyleForDocument;k.prototype.getStyleAst=k.prototype.getStyleAst;k.prototype.styleAstToString=
k.prototype.styleAstToString;k.prototype.flushCustomStyles=k.prototype.flushCustomStyles;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return y}},nativeCss:{get:function(){return r}}});var F=new k,mb,nb;window.ShadyCSS&&(mb=window.ShadyCSS.ApplyShim,nb=window.ShadyCSS.CustomStyleInterface);window.ShadyCSS={ScopingShim:F,prepareTemplate:function(a,b,c){F.flushCustomStyles();F.prepareTemplate(a,b,c)},styleSubtree:function(a,b){F.flushCustomStyles();F.styleSubtree(a,b)},styleElement:function(a){F.flushCustomStyles();
F.styleElement(a)},styleDocument:function(a){F.flushCustomStyles();F.styleDocument(a)},getComputedStyleValue:function(a,b){return F.getComputedStyleValue(a,b)},nativeCss:r,nativeShadow:y};mb&&(window.ShadyCSS.ApplyShim=mb);nb&&(window.ShadyCSS.CustomStyleInterface=nb);(function(){if(customElements&&customElements.polyfillWrapFlushCallback){var a=function(){if(b){var a=b;b=null;a();return!0}},b,c=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(d){b=d;c(a)});HTMLImports.whenReady=
function(b){c(function(){a()?HTMLImports.whenReady(b):b()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent("WebComponentsReady"))})})})(window.WebComponents);(function(){var a=document.createElement("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var b=document.querySelector("head");b.insertBefore(a,b.firstChild)})(window.WebComponents)})();
}).call(self)
//# sourceMappingURL=webcomponents-lite.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,48 +1,5 @@
(function(){
'use strict';var aa={scope:{},getGlobal:function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}};aa.global=aa.getGlobal(this);var k={},ba=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function ca(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function da(a,b,c){c=void 0===c?new Set:c;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)da(d,b,c);d=ca(a,e);continue}else if("template"===f){d=ca(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)da(e,b,c)}d=d.firstChild?d.firstChild:ca(a,d)}}
k.isValidCustomElementName=function(a){var b=ba.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a};k.isConnected=function(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))};k.walkDeepDescendantElements=da;k.setPropertyUnchecked=function(a,b,c){a[b]=c};var m={default:{custom:1,failed:2}};var ea={};function n(){this._localNameToDefinition=new Map;this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}n.prototype.setDefinition=function(a,b){this._localNameToDefinition.set(a,b);this._constructorToDefinition.set(b.constructor,b)};n.prototype.localNameToDefinition=function(a){return this._localNameToDefinition.get(a)};n.prototype.constructorToDefinition=function(a){return this._constructorToDefinition.get(a)};n.prototype.addPatch=function(a){this._hasPatches=!0;this._patches.push(a)};
n.prototype.patchTree=function(a){var b=this;this._hasPatches&&k.walkDeepDescendantElements(a,function(a){return b.patch(a)})};n.prototype.patch=function(a){if(this._hasPatches&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this._patches.length;b++)this._patches[b](a)}};n.prototype.connectTree=function(a){var b=[];k.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];c.__CE_state===m.default.custom?this.connectedCallback(c):this.upgradeElement(c)}};
n.prototype.disconnectTree=function(a){var b=[];k.walkDeepDescendantElements(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];c.__CE_state===m.default.custom&&this.disconnectedCallback(c)}};
n.prototype.patchAndUpgradeTree=function(a,b){b=void 0===b?new Set:b;var c=this,d=[];k.walkDeepDescendantElements(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,new Set(b),b.delete(d),c.patchAndUpgradeTree(d,
b))})}else d.push(a)},b);if(this._hasPatches)for(a=0;a<d.length;a++)this.patch(d[a]);for(a=0;a<d.length;a++)this.upgradeElement(d[a])};
n.prototype.upgradeElement=function(a){if(void 0===a.__CE_state){var b=this.localNameToDefinition(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=m.default.failed,f;}a.__CE_state=m.default.custom;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);
null!==e&&this.attributeChangedCallback(a,d,null,e,null)}k.isConnected(a)&&this.connectedCallback(a)}}};n.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};n.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
n.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,c,d,e)};ea.default=n;var fa={};function ga(a,b){this._internals=a;this._document=b;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}ga.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};
ga.prototype._handleMutations=function(a){var b=this._document.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this._internals.patchAndUpgradeTree(c[d])};fa.default=ga;var ha={};function ia(){var a=this;this._resolve=this._value=void 0;this._promise=new Promise(function(b){a._resolve=b;a._value&&b(a._value)})}ia.prototype.resolve=function(a){if(this._value)throw Error("Already resolved.");this._value=a;this._resolve&&this._resolve(a)};ia.prototype.toPromise=function(){return this._promise};ha.default=ia;var ja={};function q(a){this._elementDefinitionIsRunning=!1;this._internals=a;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=!1;this._unflushedLocalNames=[];this._documentConstructionObserver=new fa.default(a,document)}
q.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!k.isValidCustomElementName(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this._internals.localNameToDefinition(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var d,e,f,g,
h;try{var l=function(a){var b=p[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},p=b.prototype;if(!(p instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");d=l("connectedCallback");e=l("disconnectedCallback");f=l("adoptedCallback");g=l("attributeChangedCallback");h=b.observedAttributes||[]}catch(w){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(a,{localName:a,
constructor:b,connectedCallback:d,disconnectedCallback:e,adoptedCallback:f,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this._unflushedLocalNames.push(a);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return c._flush()}))};
q.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var a=this._unflushedLocalNames.shift();(a=this._whenDefinedDeferred.get(a))&&a.resolve(void 0)}};q.prototype.get=function(a){if(a=this._internals.localNameToDefinition(a))return a.constructor};
q.prototype.whenDefined=function(a){if(!k.isValidCustomElementName(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this._whenDefinedDeferred.get(a);if(b)return b.toPromise();b=new ha.default;this._whenDefinedDeferred.set(a,b);this._internals.localNameToDefinition(a)&&-1===this._unflushedLocalNames.indexOf(a)&&b.resolve(void 0);return b.toPromise()};
q.prototype.polyfillWrapFlushCallback=function(a){this._documentConstructionObserver.disconnect();var b=this._flushCallback;this._flushCallback=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=q;q.prototype.define=q.prototype.define;q.prototype.get=q.prototype.get;q.prototype.whenDefined=q.prototype.whenDefined;q.prototype.polyfillWrapFlushCallback=q.prototype.polyfillWrapFlushCallback;ja.default=q;var r={},ka={Document_createElement:window.Document.prototype.createElement,Document_createElementNS:window.Document.prototype.createElementNS,Document_importNode:window.Document.prototype.importNode,Document_prepend:window.Document.prototype.prepend,Document_append:window.Document.prototype.append,Node_cloneNode:window.Node.prototype.cloneNode,Node_appendChild:window.Node.prototype.appendChild,Node_insertBefore:window.Node.prototype.insertBefore,Node_removeChild:window.Node.prototype.removeChild,
Node_replaceChild:window.Node.prototype.replaceChild,Node_textContent:Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),Element_attachShadow:window.Element.prototype.attachShadow,Element_innerHTML:Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Element_getAttribute:window.Element.prototype.getAttribute,Element_setAttribute:window.Element.prototype.setAttribute,Element_removeAttribute:window.Element.prototype.removeAttribute,Element_getAttributeNS:window.Element.prototype.getAttributeNS,
Element_setAttributeNS:window.Element.prototype.setAttributeNS,Element_removeAttributeNS:window.Element.prototype.removeAttributeNS,Element_insertAdjacentElement:window.Element.prototype.insertAdjacentElement,Element_prepend:window.Element.prototype.prepend,Element_append:window.Element.prototype.append,Element_before:window.Element.prototype.before,Element_after:window.Element.prototype.after,Element_replaceWith:window.Element.prototype.replaceWith,Element_remove:window.Element.prototype.remove,
HTMLElement:window.HTMLElement,HTMLElement_innerHTML:Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),HTMLElement_insertAdjacentElement:window.HTMLElement.prototype.insertAdjacentElement};r.default=ka;var la={},ma=new function(){};la.default=ma;var na={default:function(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.constructorToDefinition(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=r.default.Document_createElement.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=m.default.custom,e.__CE_definition=d,a.patch(e),e;var d=e.length-1,f=e[d];if(f===la.default)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
e[d]=la.default;Object.setPrototypeOf(f,b.prototype);a.patch(f);return f}b.prototype=r.default.HTMLElement.prototype;return b}()}};var oa={default:function(a,b,c){b.prepend=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&k.isConnected(a)});c.prepend.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(k.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.append=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&k.isConnected(a)});c.append.apply(this,
d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(k.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)}}};var pa={default:function(a){k.setPropertyUnchecked(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var c=a.localNameToDefinition(b);if(c)return new c.constructor}b=r.default.Document_createElement.call(this,b);a.patch(b);return b});k.setPropertyUnchecked(Document.prototype,"importNode",function(b,c){b=r.default.Document_importNode.call(this,b,c);this.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});k.setPropertyUnchecked(Document.prototype,"createElementNS",
function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.localNameToDefinition(c);if(d)return new d.constructor}b=r.default.Document_createElementNS.call(this,b,c);a.patch(b);return b});oa.default(a,Document.prototype,{prepend:r.default.Document_prepend,append:r.default.Document_append})}};var qa={default:function(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&k.isConnected(this))for(var c=Array(h),l=0;l<h;l++)c[l]=e[l]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.disconnectTree(c[b])}}})}k.setPropertyUnchecked(Node.prototype,"insertBefore",function(b,d){if(b instanceof DocumentFragment){var c=
Array.prototype.slice.apply(b.childNodes);b=r.default.Node_insertBefore.call(this,b,d);if(k.isConnected(this))for(d=0;d<c.length;d++)a.connectTree(c[d]);return b}c=k.isConnected(b);d=r.default.Node_insertBefore.call(this,b,d);c&&a.disconnectTree(b);k.isConnected(this)&&a.connectTree(b);return d});k.setPropertyUnchecked(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=r.default.Node_appendChild.call(this,b);if(k.isConnected(this))for(var e=
0;e<c.length;e++)a.connectTree(c[e]);return b}c=k.isConnected(b);e=r.default.Node_appendChild.call(this,b);c&&a.disconnectTree(b);k.isConnected(this)&&a.connectTree(b);return e});k.setPropertyUnchecked(Node.prototype,"cloneNode",function(b){b=r.default.Node_cloneNode.call(this,b);this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});k.setPropertyUnchecked(Node.prototype,"removeChild",function(b){var c=k.isConnected(b),e=r.default.Node_removeChild.call(this,b);c&&a.disconnectTree(b);
return e});k.setPropertyUnchecked(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=r.default.Node_replaceChild.call(this,b,d);if(k.isConnected(this))for(a.disconnectTree(d),d=0;d<c.length;d++)a.connectTree(c[d]);return b}var c=k.isConnected(b),f=r.default.Node_replaceChild.call(this,b,d),g=k.isConnected(this);g&&a.disconnectTree(d);c&&a.disconnectTree(b);g&&a.connectTree(b);return f});r.default.Node_textContent&&r.default.Node_textContent.get?
b(Node.prototype,r.default.Node_textContent):a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)r.default.Node_removeChild.call(this,this.firstChild);r.default.Node_appendChild.call(this,document.createTextNode(a))}})})}};var ra={default:function(a,b,c){b.before=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&k.isConnected(a)});c.before.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(k.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.after=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&k.isConnected(a)});c.after.apply(this,
d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(k.isConnected(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.replaceWith=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];var f=d.filter(function(a){return a instanceof Node&&k.isConnected(a)}),g=k.isConnected(this);c.replaceWith.apply(this,d);for(var h=0;h<f.length;h++)a.disconnectTree(f[h]);if(g)for(a.disconnectTree(this),f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};
b.remove=function(){var b=k.isConnected(this);c.remove.call(this);b&&a.disconnectTree(this)}}};var sa={default:function(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;k.isConnected(this)&&(e=[],k.walkDeepDescendantElements(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];g.__CE_state===m.default.custom&&a.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(this):a.patchTree(this);return b}})}function c(b,c){k.setPropertyUnchecked(b,
"insertAdjacentElement",function(b,d){var e=k.isConnected(d);b=c.call(this,b,d);e&&a.disconnectTree(d);k.isConnected(b)&&a.connectTree(d);return b})}r.default.Element_attachShadow?k.setPropertyUnchecked(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=r.default.Element_attachShadow.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(r.default.Element_innerHTML&&r.default.Element_innerHTML.get)b(Element.prototype,r.default.Element_innerHTML);
else if(r.default.HTMLElement_innerHTML&&r.default.HTMLElement_innerHTML.get)b(HTMLElement.prototype,r.default.HTMLElement_innerHTML);else{var d=r.default.Document_createElement.call(document,"div");a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return r.default.Node_cloneNode.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)r.default.Node_removeChild.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)r.default.Node_appendChild.call(b,
d.childNodes[0])}})})}k.setPropertyUnchecked(Element.prototype,"setAttribute",function(b,c){if(this.__CE_state!==m.default.custom)return r.default.Element_setAttribute.call(this,b,c);var d=r.default.Element_getAttribute.call(this,b);r.default.Element_setAttribute.call(this,b,c);c=r.default.Element_getAttribute.call(this,b);d!==c&&a.attributeChangedCallback(this,b,d,c,null)});k.setPropertyUnchecked(Element.prototype,"setAttributeNS",function(b,c,d){if(this.__CE_state!==m.default.custom)return r.default.Element_setAttributeNS.call(this,
b,c,d);var e=r.default.Element_getAttributeNS.call(this,b,c);r.default.Element_setAttributeNS.call(this,b,c,d);d=r.default.Element_getAttributeNS.call(this,b,c);e!==d&&a.attributeChangedCallback(this,c,e,d,b)});k.setPropertyUnchecked(Element.prototype,"removeAttribute",function(b){if(this.__CE_state!==m.default.custom)return r.default.Element_removeAttribute.call(this,b);var c=r.default.Element_getAttribute.call(this,b);r.default.Element_removeAttribute.call(this,b);null!==c&&a.attributeChangedCallback(this,
b,c,null,null)});k.setPropertyUnchecked(Element.prototype,"removeAttributeNS",function(b,c){if(this.__CE_state!==m.default.custom)return r.default.Element_removeAttributeNS.call(this,b,c);var d=r.default.Element_getAttributeNS.call(this,b,c);r.default.Element_removeAttributeNS.call(this,b,c);var e=r.default.Element_getAttributeNS.call(this,b,c);d!==e&&a.attributeChangedCallback(this,c,d,e,b)});r.default.HTMLElement_insertAdjacentElement?c(HTMLElement.prototype,r.default.HTMLElement_insertAdjacentElement):
r.default.Element_insertAdjacentElement?c(Element.prototype,r.default.Element_insertAdjacentElement):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");oa.default(a,Element.prototype,{prepend:r.default.Element_prepend,append:r.default.Element_append});ra.default(a,Element.prototype,{before:r.default.Element_before,after:r.default.Element_after,replaceWith:r.default.Element_replaceWith,remove:r.default.Element_remove})}};/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var ta=window.customElements;if(!ta||ta.forcePolyfill||"function"!=typeof ta.define||"function"!=typeof ta.get){var ua=new ea.default;na.default(ua);pa.default(ua);qa.default(ua);sa.default(ua);document.__CE_hasRegistry=!0;var va=new ja.default(ua);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:va})};/*
/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -50,73 +7,13 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var t={},u=window.ShadyDOM||{};u.hasNativeShadowDOM=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var wa=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");u.hasDescriptors=!!(wa&&wa.configurable&&wa.get);u.inUse=u.force||!u.hasNativeShadowDOM;function xa(a){return"ShadyRoot"===a.__localName}var v=Element.prototype,ya=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector;
function za(a,b){if(a&&b)for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length&&(e=c[d]);d++){var f=e,g=a,h=Object.getOwnPropertyDescriptor(b,f);h&&Object.defineProperty(g,f,h)}return a||b}var Aa=document.createTextNode(""),Ba=0,Ca=[];(new MutationObserver(function(){for(;Ca.length;)try{Ca.shift()()}catch(a){throw Aa.textContent=Ba++,a;}})).observe(Aa,{characterData:!0});t.settings=u;t.isShadyRoot=xa;t.ownerShadyRootForNode=function(a){a=a.getRootNode();if(xa(a))return a};
t.matchesSelector=function(a,b){return ya.call(a,b)};t.extend=za;t.extendAll=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(d=0;d<c.length;d++)za(a,c[d]);return a};t.mixin=function(a,b){for(var c in b)a[c]=b[c];return a};t.patchPrototype=function(a,b){var c=Object.getPrototypeOf(a);if(!c.hasOwnProperty("__patchProto")){var d=Object.create(c);d.__sourceProto=c;za(d,b);c.__patchProto=d}a.__proto__=c.__patchProto};t.microtask=function(a){Ca.push(a);Aa.textContent=Ba++};var Da={},Ea=[],Fa;function Ga(){Fa=!1;for(var a=!!Ea.length;Ea.length;)Ea.shift()();return a}Ga.list=Ea;Da.enqueue=function(a){Fa||(Fa=!0,t.microtask(Ga));Ea.push(a)};Da.flush=Ga;var x={};function Ha(){this._scheduled=!1;this.addedNodes=[];this.removedNodes=[];this.callbacks=new Set}Ha.prototype.schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,t.microtask(function(){a.flush()}))};Ha.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var a=this.takeRecords();a.length&&this.callbacks.forEach(function(b){b(a)})}};
Ha.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};x.observeChildren=function(a,b){a.__shady=a.__shady||{};a.__shady.observer||(a.__shady.observer=new Ha);a.__shady.observer.callbacks.add(b);var c=a.__shady.observer;return{_callback:b,_observer:c,_node:a,takeRecords:function(){return c.takeRecords()}}};
x.unobserveChildren=function(a){var b=a&&a._observer;b&&(b.callbacks.delete(a._callback),b.callbacks.size||(a._node.__shady.observer=null))};x.filterMutations=function(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})};var y={},Ia=Element.prototype.insertBefore,Ja=Element.prototype.removeChild,Ka=Element.prototype.setAttribute,La=Element.prototype.removeAttribute,Ma=Element.prototype.cloneNode,Na=Document.prototype.importNode,Oa=Element.prototype.addEventListener,Pa=Element.prototype.removeEventListener;y.appendChild=Element.prototype.appendChild;y.insertBefore=Ia;y.removeChild=Ja;y.setAttribute=Ka;y.removeAttribute=La;y.cloneNode=Ma;y.importNode=Na;y.addEventListener=Oa;y.removeEventListener=Pa;var Qa={},Ra=/[&\u00A0"]/g,Sa=/[&\u00A0<>]/g;function Ta(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Ua(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Va=Ua("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Wa=Ua("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function Xa(a,b,c){switch(a.nodeType){case Node.ELEMENT_NODE:b=a.localName;for(var d="<"+b,e=a.attributes,f=0,g;g=e[f];f++)d+=" "+g.name+'="'+g.value.replace(Ra,Ta)+'"';d+=">";return Va[b]?d:d+Ya(a,c)+"</"+b+">";case Node.TEXT_NODE:return a=a.data,b&&Wa[b.localName]?a:a.replace(Sa,Ta);case Node.COMMENT_NODE:return"\x3c!--"+a.data+"--\x3e";default:throw window.console.error(a),Error("not implemented");}}
function Ya(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g;e<f&&(g=d[e]);e++)c+=Xa(g,a,b);return c}Qa.getOuterHTML=Xa;Qa.getInnerHTML=Ya;var z={},A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function Za(a){var b=[];A.currentNode=a;for(a=A.firstChild();a;)b.push(a),a=A.nextSibling();return b}z.parentNode=function(a){A.currentNode=a;return A.parentNode()};z.firstChild=function(a){A.currentNode=a;return A.firstChild()};z.lastChild=function(a){A.currentNode=a;return A.lastChild()};z.previousSibling=function(a){A.currentNode=a;return A.previousSibling()};
z.nextSibling=function(a){A.currentNode=a;return A.nextSibling()};z.childNodes=Za;z.parentElement=function(a){B.currentNode=a;return B.parentNode()};z.firstElementChild=function(a){B.currentNode=a;return B.firstChild()};z.lastElementChild=function(a){B.currentNode=a;return B.lastChild()};z.previousElementSibling=function(a){B.currentNode=a;return B.previousSibling()};z.nextElementSibling=function(a){B.currentNode=a;return B.nextSibling()};
z.children=function(a){var b=[];B.currentNode=a;for(a=B.firstChild();a;)b.push(a),a=B.nextSibling();return b};z.innerHTML=function(a){return Qa.getInnerHTML(a,function(a){return Za(a)})};z.textContent=function(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b};var C={};function $a(a,b){return a.__shady&&a.__shady[b]}C.getProperty=$a;C.hasProperty=function(a,b){return void 0!==$a(a,b)};var D={};function ab(a){return{get:function(){var b=C.getProperty(this,a);return void 0!==b?b:z[a](this)},configurable:!0}}
var bb=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),cb=document.implementation.createHTMLDocument("inert").createElement("div"),db=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),eb={parentElement:ab("parentElement"),parentNode:ab("parentNode"),nextSibling:ab("nextSibling"),previousSibling:ab("previousSibling"),className:{get:function(){return this.getAttribute("class")},set:function(a){this.setAttribute("class",
a)},configurable:!0},nextElementSibling:{get:function(){if(C.hasProperty(this,"nextSibling")){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return z.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(C.hasProperty(this,"previousSibling")){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return z.previousElementSibling(this)},configurable:!0}},fb={childNodes:{get:function(){if(C.hasProperty(this,
"firstChild")){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}return this.__shady.childNodes}return z.childNodes(this)},configurable:!0},firstChild:ab("firstChild"),lastChild:ab("lastChild"),textContent:{get:function(){if(C.hasProperty(this,"firstChild")){for(var a=[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return z.textContent(this)},set:function(a){if(this.nodeType!==
Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);a&&this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(C.hasProperty(this,"firstChild")){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return z.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(C.hasProperty(this,"lastChild")){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=
a.previousSibling;return a}return z.lastElementChild(this)},configurable:!0},children:{get:function(){return C.hasProperty(this,"firstChild")?Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):z.children(this)},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return C.hasProperty(this,"firstChild")?Qa.getInnerHTML(a):z.innerHTML(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);
for(bb&&bb.set?bb.set.call(cb,a):cb.innerHTML=a;cb.firstChild;)b.appendChild(cb.firstChild)},configurable:!0}},gb={shadowRoot:{get:function(){return this.shadyRoot},set:function(a){this.shadyRoot=a},configurable:!0}},hb={activeElement:{get:function(){var a;a=db&&db.get?db.get.call(document):t.settings.hasDescriptors?void 0:document.activeElement;if(a&&a.nodeType){var b=!!t.isShadyRoot(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=t.ownerShadyRootForNode(a);b&&b!==this;)a=
b.host,b=t.ownerShadyRootForNode(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}};function E(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Could not define",d,"on",a)}}
var ib=t.settings.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__outsideAccessors||(a.__shady=a.__shady||{},a.__shady.__outsideAccessors=!0,E(a,eb,!0))},jb=t.settings.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__insideAccessors||(a.__shady=a.__shady||{},a.__shady.__insideAccessors=!0,E(a,fb,!0),E(a,gb,!0))};D.ShadowRootAccessor=gb;D.ActiveElementAccessor=hb;D.patchAccessors=function(a){E(a,eb);E(a,fb);E(a,hb)};
D.patchShadowRootAccessors=function(a){E(a,fb,!0);E(a,hb,!0)};D.patchOutsideElementAccessors=ib;D.patchInsideElementAccessors=jb;var F={};
function kb(a,b,c){D.patchOutsideElementAccessors(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild=a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=
null}F.recordInsertBefore=function(a,b,c){D.patchInsideElementAccessors(b);b.__shady=b.__shady||{};C.hasProperty(b,"firstChild")&&(b.__shady.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var d=a.childNodes,e=0;e<d.length;e++)kb(d[e],b,c);a.__shady=a.__shady||{};b=C.hasProperty(a,"firstChild")?null:void 0;a.__shady.firstChild=a.__shady.lastChild=b;a.__shady.childNodes=b}else kb(a,b,c)};
F.recordRemoveChild=function(a,b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var c=a.__shady.previousSibling,d=a.__shady.nextSibling;c&&(c.__shady=c.__shady||{},c.__shady.nextSibling=d);d&&(d.__shady=d.__shady||{},d.__shady.previousSibling=c);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;C.hasProperty(b,"childNodes")&&(b.__shady.childNodes=
null)};F.recordChildNodes=function(a){if(!C.hasProperty(a,"firstChild")){a.__shady=a.__shady||{};a.__shady.firstChild=z.firstChild(a);a.__shady.lastChild=z.lastChild(a);D.patchInsideElementAccessors(a);for(var b=a.__shady.childNodes=z.childNodes(a),c=0,d;c<b.length&&(d=b[c]);c++)d.__shady=d.__shady||{},d.__shady.parentNode=a,d.__shady.nextSibling=b[c+1]||null,d.__shady.previousSibling=b[c-1]||null,D.patchOutsideElementAccessors(d)}};var G={};
function lb(a){var b=C.hasProperty(a,"parentNode")&&C.getProperty(a,"parentNode"),c,d=t.ownerShadyRootForNode(a);if(b||d){c=mb(a);b&&F.recordRemoveChild(a,b);var e;if(e=d){var f;e=d._insertionPoints;for(var g=0;g<e.length;g++){var h=e[g],l;a:{for(l=h;l;){if(l==a){l=!0;break a}l=l.parentNode}l=void 0}if(l)for(h=h.assignedNodes({flatten:!0}),l=0;l<h.length;l++){f=!0;var p=h[l],w=z.parentNode(p);w&&y.removeChild.call(w,p)}}e=f}f=e;b=b&&d&&b.localName===d.getInsertionPointTag();if(f||b)d._skipUpdateInsertionPoints=!1,
nb(d)}ob(a);return c}function pb(a,b,c){if(a=a.__shady&&a.__shady.observer)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.schedule()}function qb(a){if(a&&a.nodeType){var b=a.__ownerShadyRoot;void 0===b&&(b=t.isShadyRoot(a)?a:(b=a.parentNode)?qb(b):a,document.documentElement.contains(a)&&(a.__ownerShadyRoot=b));return b}}
function rb(a,b,c){var d,e=c.getInsertionPointTag();if(a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||a.__noInsertionPoint)a.localName===e&&(F.recordChildNodes(b),F.recordChildNodes(a),d=!0);else for(var e=a.querySelectorAll(e),f=0,g,h;f<e.length&&(g=e[f]);f++)h=g.parentNode,h===a&&(h=b),h=rb(g,h,c),d=d||h;return d}function ob(a){if(void 0!==a.__ownerShadyRoot)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)ob(e);a.__ownerShadyRoot=void 0}
function mb(a){if((a=a.parentNode)&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())return nb(a.shadyRoot),!0}function nb(a){a._changePending=!0;a.update()}function sb(a,b){"slot"===b?mb(a):"slot"===a.localName&&"name"===b&&(a=t.ownerShadyRootForNode(a))&&a.update()}function tb(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var l=b,p=c,w=d,R=l(h);R&&w.push(h);p&&p(R)?h=R:(tb(h.childNodes,l,p,w),h=void 0)}if(h)return!0}}var ub=null;
function vb(a,b){if(a.ownerDocument!==document)return y.importNode.call(document,a,b);var c=y.importNode.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=vb(a[b],!0),c.appendChild(d)}return c}G.getRootNode=qb;G.query=function(a,b,c){var d=[];tb(a.childNodes,b,c,d);return d};G.renderRootNode=function(a){a=a.getRootNode();t.isShadyRoot(a)&&a.render()};
G.setAttribute=function(a,b,c){ub||(ub=window.ShadyCSS&&window.ShadyCSS.ScopingShim);ub&&"class"===b?ub.setElementClass(a,c):(y.setAttribute.call(a,b,c),sb(a,b))};G.removeAttribute=function(a,b){y.removeAttribute.call(a,b);sb(a,b)};
G.insertBefore=function(a,b,c){if(c){var d=C.getProperty(c,"parentNode");if(void 0!==d&&d!==a||void 0===d&&z.parentNode(c)!==a)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(c===b)return b;b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(d=C.getProperty(b,"parentNode"),d?(pb(d,null,b),lb(b)):(b.parentNode&&y.removeChild.call(b.parentNode,b),ob(b)));var d=c,e=t.ownerShadyRootForNode(a),f;e&&(b.__noInsertionPoint&&
!e._changePending&&(e._skipUpdateInsertionPoints=!0),f=rb(b,a,e))&&(e._skipUpdateInsertionPoints=!1);C.hasProperty(a,"firstChild")&&F.recordInsertBefore(b,a,d);var g=f,h=e&&e.getInsertionPointTag()||"",l=b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!b.__noInsertionPoint&&h&&b.querySelector(h);f=l&&l.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;((l=l||b.localName===h)||a.localName===h||g)&&e&&nb(e);(e=a&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())&&nb(a.shadyRoot);if(!(e||l&&!f||a.shadyRoot||d&&
t.isShadyRoot(d.parentNode)&&d.parentNode._renderPending)){if(c&&(d=t.ownerShadyRootForNode(c))){var p;if(c.localName===d.getInsertionPointTag())a:{d=c.assignedNodes({flatten:!0});e=qb(c);f=0;for(g=d.length;f<g&&(p=d[f]);f++)if(e.isFinalDestination(c,p))break a;p=void 0}else p=c;c=p}p=t.isShadyRoot(a)?a.host:a;c?y.insertBefore.call(p,b,c):y.appendChild.call(p,b)}pb(a,b);return b};
G.removeChild=function(a,b){if(b.parentNode!==a)throw Error("The node to be removed is not a child of this node: "+b);if(!lb(b)){var c=t.isShadyRoot(a)?a.host:a,d=z.parentNode(b);c===d&&y.removeChild.call(c,b)}pb(a,null,b);return b};G.cloneNode=function(a,b){if("template"==a.localName)return y.cloneNode.call(a,b);var c=y.cloneNode.call(a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=a[b].cloneNode(!0),c.appendChild(d)}return c};G.importNode=vb;var wb={},xb={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};function yb(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===document&&c.push(window);return c}
function zb(a,b){if(!t.isShadyRoot)return a;a=yb(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!t.isShadyRoot(f)||-1<g)return d}
var Ab={get composed(){this.isTrusted&&void 0===this.__composed&&(this.__composed=xb[this.type]);return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=yb(this.__target,this.composed));return this.__composedPath},get target(){return zb(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=yb(this.__relatedTarget,!0));return zb(this.currentTarget,this.__relatedTargetComposedPath)},
stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.__propagationStopped=this.__immediatePropagationStopped=!0}};function Bb(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}t.mixin(b,a);b.prototype=a.prototype;return b}var Cb={focus:!0,blur:!0};
function Db(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function Eb(a){var b=a.composedPath(),c;Object.defineProperty(a,"currentTarget",{get:function(){return c},configurable:!0});for(var d=b.length-1;0<=d;d--)if(c=b[d],Db(a,c,"capture"),a.__propagationStopped)return;Object.defineProperty(a,"eventPhase",{value:Event.AT_TARGET});for(var e,d=0;d<b.length;d++)if(c=b[d],0===d||c.shadowRoot&&c.shadowRoot===e)if(Db(a,c,"bubble"),c!==window&&(e=c.getRootNode()),a.__propagationStopped)break}
function Fb(){for(var a in Cb)window.addEventListener(a,function(a){a.__target||(Hb(a),Eb(a),a.stopImmediatePropagation())},!0)}function Hb(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;t.settings.hasDescriptors?t.patchPrototype(a,Ab):t.extend(a,Ab)}var Ib=Bb(window.Event),Jb=Bb(window.CustomEvent),Kb=Bb(window.MouseEvent);
wb.addEventListener=function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);if(b.__eventWrappers)for(var g=0;g<b.__eventWrappers.length;g++){if(b.__eventWrappers[g].node===this&&b.__eventWrappers[g].type===a&&b.__eventWrappers[g].capture===d&&b.__eventWrappers[g].once===e&&b.__eventWrappers[g].passive===f)return}else b.__eventWrappers=[];g=function(d){e&&this.removeEventListener(a,b,c);d.__target||Hb(d);if(d.composed||-1<d.composedPath().indexOf(this))if(d.eventPhase===
Event.BUBBLING_PHASE&&d.target===d.relatedTarget)d.stopImmediatePropagation();else return b(d)};b.__eventWrappers.push({node:this,type:a,capture:d,once:e,passive:f,wrapperFn:g});Cb[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][d?"capture":"bubble"].push(g)):y.addEventListener.call(this,a,g,c)}};
wb.removeEventListener=function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);var g=void 0;if(b.__eventWrappers)for(var h=0;h<b.__eventWrappers.length;h++)if(b.__eventWrappers[h].node===this&&b.__eventWrappers[h].type===a&&b.__eventWrappers[h].capture===d&&b.__eventWrappers[h].once===e&&b.__eventWrappers[h].passive===f){g=b.__eventWrappers.splice(h,1)[0].wrapperFn;b.__eventWrappers.length||(b.__eventWrappers=void 0);break}y.removeEventListener.call(this,
a,g||b,c);g&&Cb[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][d?"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}};wb.patchEvents=function(){window.Event=Ib;window.CustomEvent=Jb;window.MouseEvent=Kb;Fb()};var Lb={};function Mb(a,b,c){return{index:a,removed:b,addedCount:c}}
function Nb(a,b,c,d,e,f){var g=0,h=0,l=Math.min(c-b,f-e);if(0==b&&0==e)a:{for(g=0;g<l;g++)if(a[g]!==d[g])break a;g=l}if(c==a.length&&f==d.length){for(var h=l-g,l=a.length,p=d.length,w=0;w<h&&Ob(a[--l],d[--p]);)w++;h=w}b+=g;e+=g;c-=h;f-=h;if(0==c-b&&0==f-e)return[];if(b==c){for(c=Mb(b,[],0);e<f;)c.removed.push(d[e++]);return[c]}if(e==f)return[Mb(b,[],c-b)];g=b;h=e;f=f-h+1;l=c-g+1;c=Array(f);for(p=0;p<f;p++)c[p]=Array(l),c[p][0]=p;for(p=0;p<l;p++)c[0][p]=p;for(p=1;p<f;p++)for(w=1;w<l;w++)if(a[g+w-1]===
d[h+p-1])c[p][w]=c[p-1][w-1];else{var R=c[p-1][w]+1,Gb=c[p][w-1]+1;c[p][w]=R<Gb?R:Gb}f=c.length-1;g=c[0].length-1;h=c[f][g];for(a=[];0<f||0<g;)0==f?(a.push(2),g--):0==g?(a.push(3),f--):(l=c[f-1][g-1],p=c[f-1][g],w=c[f][g-1],R=p<w?p<l?p:l:w<l?w:l,R==l?(l==h?a.push(0):(a.push(1),h=l),f--,g--):R==p?(a.push(3),f--,h=p):(a.push(2),g--,h=w));a.reverse();c=void 0;f=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:c&&(f.push(c),c=void 0);b++;e++;break;case 1:c||(c=Mb(b,[],0));c.addedCount++;b++;c.removed.push(d[e]);
e++;break;case 2:c||(c=Mb(b,[],0));c.addedCount++;b++;break;case 3:c||(c=Mb(b,[],0)),c.removed.push(d[e]),e++}c&&f.push(c);return f}function Ob(a,b){return a===b}Lb.calculateSplices=function(a,b){return Nb(a,0,a.length,b,0,b.length)};var Pb={},Qb="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};function H(a){this.root=a;this.insertionPointTag="slot"}H.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)};H.prototype.hasInsertionPoint=function(){return!(!this.root._insertionPoints||!this.root._insertionPoints.length)};
H.prototype.isInsertionPoint=function(a){return a.localName&&a.localName==this.insertionPointTag};H.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]};H.prototype.collectPool=function(){for(var a=[],b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};
H.prototype.distributePool=function(a,b){a=[];for(var c=this.root._insertionPoints,d=0,e=c.length,f;d<e&&(f=c[d]);d++){this.distributeInsertionPoint(f,b);var g=f.parentNode;g&&g.shadyRoot&&g.shadyRoot.hasInsertionPoint()&&a.push(g.shadyRoot)}for(c=0;c<b.length;c++)if(f=b[c])f.__shady=f.__shady||{},f.__shady.assignedSlot=void 0,(d=z.parentNode(f))&&y.removeChild.call(d,f);return a};
H.prototype.distributeInsertionPoint=function(a,b){var c=a.__shady.assignedNodes;c&&this.clearAssignedSlots(a,!0);a.__shady.assignedNodes=[];for(var d=!1,e=!1,f=0,g=b.length,h;f<g;f++)(h=b[f])&&this.matchesInsertionPoint(h,a)&&(h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a),b[f]=void 0,e=!0);if(!e)for(b=a.childNodes,e=0;e<b.length;e++)h=b[e],h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a);if(c){for(h=0;h<c.length;h++)c[h].__shady._prevAssignedSlot=null;a.__shady.assignedNodes.length<
c.length&&(d=!0)}this.setDistributedNodesOnInsertionPoint(a);d&&this._fireSlotChange(a)};H.prototype.clearAssignedSlots=function(a,b){var c=a.__shady.assignedNodes;if(c)for(var d=0;d<c.length;d++){var e=c[d];b&&(e.__shady._prevAssignedSlot=e.__shady.assignedSlot);e.__shady.assignedSlot===a&&(e.__shady.assignedSlot=null)}};H.prototype.matchesInsertionPoint=function(a,b){b=(b=b.getAttribute("name"))?b.trim():"";a=(a=a.getAttribute&&a.getAttribute("slot"))?a.trim():"";return a==b};
H.prototype.distributeNodeInto=function(a,b){b.__shady.assignedNodes.push(a);a.__shady.assignedSlot=b};H.prototype.setDistributedNodesOnInsertionPoint=function(a){var b=a.__shady.assignedNodes;a.__shady.distributedNodes=[];for(var c=0,d;c<b.length&&(d=b[c]);c++)if(this.isInsertionPoint(d)){var e=d.__shady.distributedNodes;if(e)for(var f=0;f<e.length;f++)a.__shady.distributedNodes.push(e[f])}else a.__shady.distributedNodes.push(b[c])};
H.prototype._fireSlotChange=function(a){a.dispatchEvent(new Qb("slotchange"));a.__shady.assignedSlot&&this._fireSlotChange(a.__shady.assignedSlot)};H.prototype.isFinalDestination=function(a){return!a.__shady.assignedSlot};Pb.default=H;var Rb={},Sb={};function I(a,b){if(a!==Sb)throw new TypeError("Illegal constructor");a=document.createDocumentFragment();a.__proto__=I.prototype;a._init(b);return a}I.prototype=Object.create(DocumentFragment.prototype);I.prototype._init=function(a){this.__localName="ShadyRoot";F.recordChildNodes(a);F.recordChildNodes(this);a.shadowRoot=this;this.host=a;this._changePending=this._hasRendered=this._renderPending=!1;this._distributor=new Pb.default(this);this.update()};
I.prototype.update=function(){var a=this;this._renderPending||(this._renderPending=!0,Da.enqueue(function(){return a.render()}))};I.prototype._getRenderRoot=function(){for(var a=this,b=this;b;)b._renderPending&&(a=b),b=b._rendererForHost();return a};I.prototype._rendererForHost=function(){var a=this.host.getRootNode();if(t.isShadyRoot(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this._distributor.isInsertionPoint(d))return a};
I.prototype.render=function(){this._renderPending&&this._getRenderRoot()._render()};I.prototype._render=function(){this._changePending=this._renderPending=!1;this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints();this._skipUpdateInsertionPoints=!1;this.distribute();this.compose();this._hasRendered=!0};I.prototype.forceRender=function(){this._renderPending=!0;this.render()};
I.prototype.distribute=function(){for(var a=this._distributor.distribute(),b=0;b<a.length;b++)a[b]._render()};I.prototype.updateInsertionPoints=function(){var a=this.__insertionPoints;if(a)for(var b=0,c;b<a.length;b++)c=a[b],c.getRootNode()!==this&&this._distributor.clearAssignedSlots(c);a=this._insertionPoints=this._distributor.getInsertionPoints();for(b=0;b<a.length;b++)c=a[b],c.__shady=c.__shady||{},F.recordChildNodes(c),F.recordChildNodes(c.parentNode)};I.prototype.hasInsertionPoint=function(){return this._distributor.hasInsertionPoint()};
I.prototype.compose=function(){this._composeTree()};I.prototype._composeTree=function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var a=this._insertionPoints||[],b=0,c=a.length,d,e;b<c&&(d=a[b]);b++)e=d.parentNode,e!==this.host&&e!==this&&this._updateChildNodes(e,this._composeNode(e))};
I.prototype._composeNode=function(a){var b=[];a=(a.shadyRoot||a).childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this._distributor.isInsertionPoint(d))for(var e=d.__shady.distributedNodes||(d.__shady.distributedNodes=[]),f=0;f<e.length;f++){var g=e[f];this.isFinalDestination(d,g)&&b.push(g)}else b.push(d)}return b};I.prototype.isFinalDestination=function(a,b){return this._distributor.isFinalDestination(a,b)};
I.prototype._updateChildNodes=function(a,b){for(var c=z.childNodes(a),d=Lb.calculateSplices(b,c),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,l;h<g.removed.length&&(l=g.removed[h]);h++)z.parentNode(l)===a&&y.removeChild.call(a,l),c.splice(g.index+f,1);f-=g.addedCount}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.addedCount;h++)l=b[h],y.insertBefore.call(a,l,f),c.splice(h,0,l)};I.prototype.getInsertionPointTag=function(){return this._distributor.insertionPointTag};
Object.defineProperty(I.prototype,"_insertionPoints",{get:function(){this.__insertionPoints||this.updateInsertionPoints();return this.__insertionPoints||(this.__insertionPoints=[])},set:function(a){this.__insertionPoints=a},configurable:!0});D.patchShadowRootAccessors(I.prototype);Rb.ShadyRoot=I;Rb.attachShadow=function(a,b){if(!a)throw"Must provide a host.";if(!b)throw"Not enough arguments.";return new I(Sb,a)};var Tb={};function Ub(a){G.renderRootNode(a);return C.getProperty(a,"assignedSlot")||null}
var Vb={addEventListener:wb.addEventListener,removeEventListener:wb.removeEventListener,appendChild:function(a){return G.insertBefore(this,a)},insertBefore:function(a,b){return G.insertBefore(this,a,b)},removeChild:function(a){return G.removeChild(this,a)},replaceChild:function(a,b){this.insertBefore(a,b);this.removeChild(b);return a},cloneNode:function(a){return G.cloneNode(this,a)},getRootNode:function(a){return G.getRootNode(this,a)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&
a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof Rb.ShadyRoot?a.host:void 0);return!!(a&&a instanceof Document)}},Wb={get assignedSlot(){return Ub(this)}},Xb={querySelector:function(a){return G.query(this,function(b){return t.matchesSelector(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return G.query(this,function(b){return t.matchesSelector(b,a)})}},Yb={assignedNodes:function(a){if("slot"===
this.localName)return G.renderRootNode(this),this.__shady?(a&&a.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},Zb=t.extendAll({setAttribute:function(a,b){G.setAttribute(this,a,b)},removeAttribute:function(a){G.removeAttribute(this,a)},attachShadow:function(a){return Rb.attachShadow(this,a)},get slot(){return this.getAttribute("slot")},set slot(a){this.setAttribute("slot",a)},get assignedSlot(){return Ub(this)}},Xb,Yb);Object.defineProperties(Zb,D.ShadowRootAccessor);
var $b=t.extendAll({importNode:function(a,b){return G.importNode(a,b)}},Xb);Object.defineProperties($b,{_activeElement:D.ActiveElementAccessor.activeElement});function ac(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f.value?a[e]=f.value:Object.defineProperty(a,e,f)}}
Tb.patchBuiltins=function(){ac(window.Node.prototype,Vb);ac(window.Text.prototype,Wb);ac(window.DocumentFragment.prototype,Xb);ac(window.Element.prototype,Zb);ac(window.Document.prototype,$b);window.HTMLSlotElement&&ac(window.HTMLSlotElement.prototype,Yb);t.settings.hasDescriptors&&(D.patchAccessors(window.Node.prototype),D.patchAccessors(window.Text.prototype),D.patchAccessors(window.DocumentFragment.prototype),D.patchAccessors(window.Element.prototype),D.patchAccessors((window.customElements&&customElements.nativeHTMLElement||
HTMLElement).prototype),D.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&D.patchAccessors(window.HTMLSlotElement.prototype))};t.settings.inUse&&(window.ShadyDOM={},window.ShadyDOM.inUse=t.settings.inUse,window.ShadyDOM.patch=function(a){return a},window.ShadyDOM.isShadyRoot=t.isShadyRoot,window.ShadyDOM.enqueue=Da.enqueue,window.ShadyDOM.flush=Da.flush,window.ShadyDOM.settings=t.settings,window.ShadyDOM.filterMutations=x.filterMutations,window.ShadyDOM.observeChildren=x.observeChildren,window.ShadyDOM.unobserveChildren=x.unobserveChildren,window.ShadyDOM.nativeMethods=y,window.ShadyDOM.nativeTree=z,wb.patchEvents(),Tb.patchBuiltins(),
window.ShadowRoot=Rb.ShadyRoot);/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -125,68 +22,145 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var J={};function bc(){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 cc(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=dc(c),c=c.replace(K.multipleSpaces," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=ec.MEDIA_RULE:c.match(K.keyframesRule)&&(a.type=ec.KEYFRAMES_RULE,a.keyframesName=a.selector.split(K.multipleSpaces).pop()):0===c.indexOf("--")?a.type=ec.MIXIN_RULE:
a.type=ec.STYLE_RULE);if(c=a.rules)for(var d=0,e=c.length,f;d<e&&(f=c[d]);d++)cc(f,b);return a}function dc(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}
function fc(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h;f<g&&(h=e[f]);f++)d=fc(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=gc(b),b=b.replace(K.mixinApply,"").replace(K.varApply,"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}function gc(a){return a.replace(K.customProp,"").replace(K.mixinProp,"")}
var ec={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1E3},K={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g};J.StyleNode=bc;
J.parse=function(a){var b=a=a.replace(K.comments,"").replace(K.port,""),c=new bc;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null,d=new bc;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return cc(c,a)};J.stringify=fc;J.removeCustomPropAssignment=gc;J.types=ec;var L={},hc=!(window.ShadyDOM&&window.ShadyDOM.inUse),ic=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)");function jc(a){a&&(ic=ic&&!a.nativeCss&&!a.shimcssproperties,hc=hc&&!a.nativeShadow&&!a.shimshadow)}window.ShadyCSS?jc(window.ShadyCSS):window.WebComponents&&jc(window.WebComponents.flags);L.nativeShadow=hc;L.nativeCssVariables=ic;var M={VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:"(?:^|[^.#[:])",HOST_SUFFIX:"($|[.:[\\s>+~])"};var N={};function kc(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===J.types.MEDIA_RULE){var g=a.selector.match(M.MEDIA_MATCH);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===J.types.STYLE_RULE?b(a):c&&f===J.types.KEYFRAMES_RULE?c(a):f===J.types.MIXIN_RULE&&(e=!0);if((a=a.rules)&&!e)for(var e=0,f=a.length,h;e<f&&(h=a[e]);e++)kc(h,b,c,d)}}function lc(a,b){var c=document.createElement("style");b&&c.setAttribute("scope",b);c.textContent=a;return c}var O=null;
function mc(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);O?a.compareDocumentPosition(O)===Node.DOCUMENT_POSITION_PRECEDING&&(O=a):O=a}
function nc(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d;a:{var e=0;d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&0===--e)break a;d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=nc(a.substring(d+1),b);f=e.indexOf(",");if(-1===f)return b(c,e.trim(),"",a);d=e.substring(0,f).trim();e=e.substring(f+1).trim();return b(c,d,e,a)}N.toCssText=function(a,b){if(!a)return"";"string"===typeof a&&(a=J.parse(a));b&&kc(a,b);return J.stringify(a,L.nativeCssVariables)};
N.rulesForStyle=function(a){!a.__cssRules&&a.textContent&&(a.__cssRules=J.parse(a.textContent));return a.__cssRules||null};N.isKeyframesSelector=function(a){return!!a.parent&&a.parent.type===J.types.KEYFRAMES_RULE};N.forEachRule=kc;N.applyCss=function(a,b,c,d){a=lc(a,b);mc(a,c,d);return a};N.createScopeStyle=lc;N.applyStylePlaceHolder=function(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(O?O.nextSibling:null)||b.firstChild);return O=a};
N.applyStyle=mc;N.isTargetedBuild=function(a){return L.nativeShadow?"shadow"===a:"shady"===a};N.getCssBuildType=function(a){return a.getAttribute("css-build")};N.processVariableAndFallback=nc;N.setElementClassRaw=function(a,b){L.nativeShadow?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)};N.getIsExtends=function(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,typeExtension:c}};var P={};function Q(){}Q.prototype.dom=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this._transformDom(a,b||"",c)};Q.prototype._transformDom=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.element(a,b,c);if(a="template"===a.localName?(a.content||a._content).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this._transformDom(a[d],b,c)};
Q.prototype.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(oc);c?d&&(b=d.replace("style-scope","").replace(b,""),N.setElementClassRaw(a,b)):N.setElementClassRaw(a,(d?d+" ":"")+"style-scope "+b)}};
Q.prototype.elementStyles=function(a,b,c){var d=a.__cssBuild;L.nativeShadow||"shady"===d?b=N.toCssText(b,c):(a=N.getIsExtends(a),b=this.css(b,a.is,a.typeExtension,c)+"\n\n");return b.trim()};Q.prototype.css=function(a,b,c,d){var e=this._calcHostScope(b,c);b=this._calcElementScope(b);var f=this;return N.toCssText(a,function(a){a.isScoped||(f.rule(a,b,e),a.isScoped=!0);d&&d(a,b,e)})};Q.prototype._calcElementScope=function(a){return a?pc+a:""};
Q.prototype._calcHostScope=function(a,b){return b?"[is="+a+"]":a};Q.prototype.rule=function(a,b,c){this._transformRule(a,this._transformComplexSelector,b,c)};Q.prototype._transformRule=function(a,b,c,d){a.selector=a.transformedSelector=this._transformRuleCss(a,b,c,d)};Q.prototype._transformRuleCss=function(a,b,c,d){var e=a.selector.split(qc);if(!N.isKeyframesSelector(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(qc)};
Q.prototype._transformComplexSelector=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(rc,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(sc,tc+" $1");return a=a.replace(uc,function(a,g,h){e||(a=d._transformCompoundSelector(h,g,b,c),e=e||a.stop,g=a.combinator,h=a.value);return g+h})};
Q.prototype._transformCompoundSelector=function(a,b,c,d){var e=a.indexOf(vc);0<=a.indexOf(tc)?a=this._transformHostSelector(a,d):0!==e&&(a=c?this._transformSimpleSelector(a,c):a);c=!1;0<=e&&(b="",c=!0);var f;c&&(f=!0,c&&(a=a.replace(wc,function(a,b){return" > "+b})));a=a.replace(xc,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,combinator:b,stop:f}};Q.prototype._transformSimpleSelector=function(a,b){a=a.split(yc);a[0]+=b;return a.join(yc)};
Q.prototype._transformHostSelector=function(a,b){var c=a.match(zc);return(c=c&&c[2].trim()||"")?c[0].match(Ac)?a.replace(zc,function(a,c,f){return b+f}):c.split(Ac)[0]===b?c:Bc:a.replace(tc,b)};Q.prototype.documentRule=function(a){a.selector=a.parsedSelector;this.normalizeRootSelector(a);this._transformRule(a,this._transformDocumentSelector)};Q.prototype.normalizeRootSelector=function(a){a.selector===Cc&&(a.selector="html")};
Q.prototype._transformDocumentSelector=function(a){return a.match(vc)?this._transformComplexSelector(a,Dc):this._transformSimpleSelector(a.trim(),Dc)};aa.global.Object.defineProperties(Q.prototype,{SCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var rc=/:(nth[-\w]+)\(([^)]+)\)/,Dc=":not(.style-scope)",qc=",",uc=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ac=/[[.:#*]/,tc=":host",Cc=":root",vc="::slotted",sc=new RegExp("^("+vc+")"),zc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,wc=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,xc=/(.*):dir\((?:(ltr|rtl))\)/,pc=".",yc=":",oc="class",Bc="should_not_match",Ec=new Q;P.default=Ec;var S={};function Fc(a,b,c,d,e,f){this.styleRules=a||null;this.placeholder=b||null;this.ownStylePropertyNames=c||[];this.overrideStyleProperties=null;this.elementName=d||"";this.cssBuild=f||"";this.typeExtension=e||"";this.customStyle=this.scopeSelector=this.styleProperties=null}Fc.get=function(a){return a?a.__styleInfo:null};Fc.set=function(a,b){return a.__styleInfo=b};Fc.prototype._getStyleRules=function(){return this.styleRules};Fc.prototype._getStyleRules=Fc.prototype._getStyleRules;
S.default=Fc;var T={},Gc=window.Element.prototype,Hc=Gc.matches||Gc.matchesSelector||Gc.mozMatchesSelector||Gc.msMatchesSelector||Gc.oMatchesSelector||Gc.webkitMatchesSelector,Ic=navigator.userAgent.match("Trident");function U(){}U.prototype.decorateStyles=function(a){var b=this,c={},d=[],e=0;N.forEachRule(a,function(a){b.decorateRule(a);a.index=e++;b.collectPropertiesInCssText(a.propertyInfo.cssText,c)},function(a){d.push(a)});a._keyframes=d;a=[];for(var f in c)a.push(f);return a};
U.prototype.decorateRule=function(a){if(a.propertyInfo)return a.propertyInfo;var b={},c={};this.collectProperties(a,c)&&(b.properties=c,a.rules=null);b.cssText=this.collectCssText(a);return a.propertyInfo=b};U.prototype.collectProperties=function(a,b){var c=a.propertyInfo;if(c){if(c.properties)return Object.assign(b,c.properties),!0}else{for(var c=M.VAR_ASSIGN,d=a.parsedCssText,e;a=c.exec(d);){e=(a[2]||a[3]).trim();if("inherit"!==e||"unset"!==e)b[a[1].trim()]=e;e=!0}return e}};
U.prototype.collectCssText=function(a){return this.collectConsumingCssText(a.parsedCssText)};U.prototype.collectConsumingCssText=function(a){return a.replace(M.BRACKETED,"").replace(M.VAR_ASSIGN,"")};U.prototype.collectPropertiesInCssText=function(a,b){for(var c;c=M.VAR_CONSUMED.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};U.prototype.reify=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c<b.length;c++)d=b[c],a[d]=this.valueForProperty(a[d],a)};
U.prototype.valueForProperty=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.valueForProperties(a,b);else{var c=this;a=N.processVariableAndFallback(a,function(a,e,f,g){if(!e)return a+g;(e=c.valueForProperty(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.valueForProperty(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};
U.prototype.valueForProperties=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){M.MIXIN_MATCH.lastIndex=0;if(e=M.MIXIN_MATCH.exec(d))d=this.valueForProperty(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e),f=f.trim(),f=this.valueForProperty(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};
U.prototype.applyProperties=function(a,b){var c="";a.propertyInfo||this.decorateRule(a);a.propertyInfo.cssText&&(c=this.valueForProperties(a.propertyInfo.cssText,b));a.cssText=c};
U.prototype.applyKeyframeTransforms=function(a,b){var c=a.cssText,d=a.cssText;null==a.hasAnimations&&(a.hasAnimations=M.ANIMATION_MATCH.test(c));if(a.hasAnimations)if(null==a.keyframeNamesToTransform){a.keyframeNamesToTransform=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.keyframeNamesToTransform.push(e))}else{for(e=0;e<a.keyframeNamesToTransform.length;++e)d=b[a.keyframeNamesToTransform[e]],c=d(c);d=c}a.cssText=d};
U.prototype.propertyDataFromStyles=function(a,b){var c={},d=this,e=[];N.forEachRule(a,function(a){a.propertyInfo||d.decorateRule(a);var f=a.transformedSelector||a.parsedSelector;b&&a.propertyInfo.properties&&f&&Hc.call(b,f)&&(d.collectProperties(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{properties:c,key:e}};
U.prototype.whenHostOrRootRule=function(a,b,c,d){b.propertyInfo||this.decorateRule(b);if(b.propertyInfo.properties){var e=N.getIsExtends(a),f=e.is,e=e.typeExtension;a=a.is?P.default._calcHostScope(f,e):"html";var g=b.parsedSelector,e=":host > *"===g||"html"===g,h=0===g.indexOf(":host")&&!e;"shady"===c&&(e=g===a+" > *."+a||-1!==g.indexOf("html"),h=!e&&0===g.indexOf(a));"shadow"===c&&(e=":host > *"===g||"html"===g,h=h&&!e);if(e||h)c=a,h&&(L.nativeShadow&&!b.transformedSelector&&(b.transformedSelector=
P.default._transformRuleCss(b,P.default._transformComplexSelector,P.default._calcElementScope(f),a)),c=b.transformedSelector||a),d({selector:c,isHost:h,isRoot:e})}};U.prototype.hostAndRootPropertiesForScope=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;N.forEachRule(b,function(b){e.whenHostOrRootRule(a,b,f,function(f){Hc.call(a._element||a,f.selector)&&(f.isHost?e.collectProperties(b,c):e.collectProperties(b,d))})},null,!0);return{rootProps:d,hostProps:c}};
U.prototype.transformStyles=function(a,b,c){var d=this,e=N.getIsExtends(a),f=P.default._calcHostScope(e.is,e.typeExtension),e=a.extends?"\\"+f.slice(0,-1)+"\\]":f,g=new RegExp(M.HOST_PREFIX+e+M.HOST_SUFFIX),e=S.default.get(a).styleRules,h=this._elementKeyframeTransforms(a,e,c);return P.default.elementStyles(a,e,function(a){d.applyProperties(a,b);L.nativeShadow||N.isKeyframesSelector(a)||!a.cssText||(d.applyKeyframeTransforms(a,h),d._scopeSelector(a,g,f,c))})};
U.prototype._elementKeyframeTransforms=function(a,b,c){a=b._keyframes;b={};if(!L.nativeShadow&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this._scopeKeyframes(e,c),b[e.keyframesName]=this._keyframesRuleTransformer(e);return b};U.prototype._keyframesRuleTransformer=function(a){return function(b){return b.replace(a.keyframesNameRx,a.transformedKeyframesName)}};
U.prototype._scopeKeyframes=function(a,b){a.keyframesNameRx=new RegExp(a.keyframesName,"g");a.transformedKeyframesName=a.keyframesName+"-"+b;a.transformedSelector=a.transformedSelector||a.selector;a.selector=a.transformedSelector.replace(a.keyframesName,a.transformedKeyframesName)};
U.prototype._scopeSelector=function(a,b,c,d){a.transformedSelector=a.transformedSelector||a.selector;d="."+d;for(var e=a.transformedSelector.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};U.prototype.applyElementScopeSelector=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&N.setElementClassRaw(a,e)};
U.prototype.applyElementStyle=function(a,b,c,d){b=d?d.textContent||"":this.transformStyles(a,b,c);var e=S.default.get(a),f=e.customStyle;f&&!L.nativeShadow&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));L.nativeShadow?e.customStyle?(e.customStyle.textContent=b,d=e.customStyle):b&&(d=N.applyCss(b,c,a.shadowRoot,e.placeholder)):d?d.parentNode||N.applyStyle(d,null,e.placeholder):b&&(d=N.applyCss(b,c,null,e.placeholder));d&&(d._useCount=d._useCount||0,e.customStyle!=
d&&d._useCount++,e.customStyle=d);Ic&&(d.textContent=d.textContent);return d};U.prototype.applyCustomStyle=function(a,b){var c=N.rulesForStyle(a),d=this;a.textContent=N.toCssText(c,function(a){var c=a.cssText=a.parsedCssText;a.propertyInfo&&a.propertyInfo.cssText&&(c=J.removeCustomPropAssignment(c),a.cssText=d.valueForProperties(c,b))})};aa.global.Object.defineProperties(U.prototype,{XSCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Jc=new U;T.default=Jc;var Kc={},Lc={},Mc=window.customElements;if(Mc&&!L.nativeShadow){var Nc=Mc.define;Mc.define=function(a,b,c){Lc[a]=N.applyStylePlaceHolder(a);return Nc.call(Mc,a,b,c)}}Kc.default=Lc;var Oc={};function Pc(a){this.cache={};this.typeMax=void 0===a?100:a}Pc.prototype._validate=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.properties[e]!==b[e])return!1}return!0};Pc.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({properties:b,styleElement:c,scopeSelector:d});e.length>this.typeMax&&e.shift();this.cache[a]=e};Pc.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this._validate(e,b,c))return e}};Oc.default=Pc;var Qc={};function Rc(){}
if(!L.nativeShadow){var Sc=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head){for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d],f=e;if(f.classList&&!f.classList.contains(P.default.SCOPE_NAME)||f instanceof window.SVGElement&&(!f.hasAttribute("class")||0>f.getAttribute("class").indexOf(P.default.SCOPE_NAME)))if(f=e.getRootNode(),f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=f.host))f=N.getIsExtends(f).is,P.default.dom(e,f)}for(d=
0;d<c.removedNodes.length;d++)if(e=c.removedNodes[d],e.nodeType===Node.ELEMENT_NODE&&(f=void 0,e.classList?f=Array.from(e.classList):e.hasAttribute("class")&&(f=e.getAttribute("class").split(/\s+/)),void 0!==f)){var g=f.indexOf(P.default.SCOPE_NAME);0<=g&&(f=f[g+1])&&P.default.dom(e,f,!0)}}}},Tc=new MutationObserver(Sc),Uc=function(a){Tc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.flush)Uc(document);else{var Vc=function(){Uc(document.body)};window.HTMLImports?
window.HTMLImports.whenReady(Vc):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Vc();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else Vc()})}Rc=function(){Sc(Tc.takeRecords())}}Qc.flush=Rc;var V={default:{}};var W={},Wc=Promise.resolve();function Xc(a){a._applyShimInvalid=!0}function Yc(a){return!a._applyShimInvalid}function Zc(a){a._validating||(a._validating=!0,Wc.then(function(){a._applyShimInvalid=!1;a._validating=!1}))}W.invalidate=function(a){(a=V.default[a])&&Xc(a)};W.invalidateTemplate=Xc;W.isValid=function(a){return(a=V.default[a])?Yc(a):!0};W.templateIsValid=Yc;W.isValidating=function(a){return(a=V.default[a])?a._validating:!1};W.templateIsValidating=function(a){return a._validating};
W.startValidating=function(a){Zc(V.default[a])};W.startValidatingTemplate=Zc;W.elementsAreInvalid=function(){for(var a in V.default)if(!Yc(V.default[a]))return!0;return!1};var $c={},ad=null,bd=window.HTMLImports&&window.HTMLImports.whenReady||null,cd;$c.default=function(a){bd?bd(a):(ad||(ad=new Promise(function(a){cd=a}),"complete"===document.readyState?cd():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&cd()})),ad.then(function(){a&&a()}))};var dd={updateNativeProperties:function(a,b){for(var c in b)null===c?a.style.removeProperty(c):a.style.setProperty(c,b[c])},getComputedStyleValue:function(a,b){return(a=window.getComputedStyle(a).getPropertyValue(b))?a.trim():""}};var ed=null,fd=null;function X(){this.customStyles=[];this.enqueued=!1}X.prototype.enqueueDocumentValidation=function(){!this.enqueued&&fd&&(this.enqueued=!0,$c.default(fd))};X.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.enqueueDocumentValidation())};X.prototype.getStyleForCustomStyle=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};
X.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;ed&&ed(d);c.__shadyCSSCachedStyle=d}}}return a};X.prototype.addCustomStyle=X.prototype.addCustomStyle;X.prototype.getStyleForCustomStyle=X.prototype.getStyleForCustomStyle;X.prototype.processStyles=X.prototype.processStyles;
Object.defineProperties(X.prototype,{transformCallback:{get:function(){return ed},set:function(a){ed=a}},validateCallback:{get:function(){return fd},set:function(a){var b=!1;fd||(b=!0);fd=a;b&&this.enqueueDocumentValidation()}}});var gd={},hd=new Oc.default;function Y(){var a=this;this._scopeCounter={};this._documentOwner=document.documentElement;var b=new J.StyleNode;b.rules=[];this._documentOwnerStyleInfo=S.default.set(this._documentOwner,new S.default(b));this._elementsHaveApplied=!1;this._customStyleInterface=this._applyShim=null;$c.default(function(){a._ensure()})}Y.prototype.flush=function(){Qc.flush()};
Y.prototype._generateScopeSelector=function(a){var b=this._scopeCounter[a]=(this._scopeCounter[a]||0)+1;return a+"-"+b};Y.prototype.getStyleAst=function(a){return N.rulesForStyle(a)};Y.prototype.styleAstToString=function(a){return N.toCssText(a)};Y.prototype._gatherStyles=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};
Y.prototype._getCssBuild=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};
Y.prototype.prepareTemplate=function(a,b,c){if(!a._prepared){a._prepared=!0;a.name=b;a.extends=c;V.default[b]=a;var d=this._getCssBuild(a),e=this._gatherStyles(a);c={is:b,extends:c,__cssBuild:d};L.nativeShadow||P.default.dom(a.content,b);this._ensure();var f=this._applyShim.detectMixin(e),e=J.parse(e);f&&L.nativeCssVariables&&this._applyShim.transformRules(e,b);a._styleAst=e;a._cssBuild=d;d=[];L.nativeCssVariables||(d=T.default.decorateStyles(a._styleAst,c));if(!d.length||L.nativeCssVariables)b=this._generateStaticStyle(c,
a._styleAst,L.nativeShadow?a.content:null,Kc.default[b]),a._style=b;a._ownPropertyNames=d}};Y.prototype._generateStaticStyle=function(a,b,c,d){b=P.default.elementStyles(a,b);if(b.length)return N.applyCss(b,a.is,c,d)};Y.prototype._prepareHost=function(a){var b=N.getIsExtends(a),c=b.is,b=b.typeExtension,d=Kc.default[c],e=V.default[c],f,g,h;e&&(f=e._styleAst,g=e._ownPropertyNames,h=e._cssBuild);return S.default.set(a,new S.default(f,d,g,c,b,h))};
Y.prototype._ensureApplyShim=function(){if(!this._applyShim)if(window.ShadyCSS.ApplyShim)this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=W.invalidate;else{var a={};this._applyShim=(a.detectMixin=function(){return!1},a.transformRule=function(){},a.transformRules=function(){},a)}};
Y.prototype._ensureCustomStyleInterface=function(){var a=this;if(!this._customStyleInterface)if(window.ShadyCSS.CustomStyleInterface)this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(b){a.transformCustomStyleForDocument(b)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){(a._customStyleInterface.enqueued||a._elementsHaveApplied)&&a.flushCustomStyles()})};else{var b={};this._customStyleInterface=
(b.processStyles=function(){},b.enqueued=!1,b.getStyleForCustomStyle=function(){return null},b)}};Y.prototype._ensure=function(){this._ensureApplyShim();this._ensureCustomStyleInterface()};
Y.prototype.flushCustomStyles=function(){this._ensure();var a=this._customStyleInterface.processStyles();this._customStyleInterface.enqueued&&(L.nativeCssVariables?this._revalidateCustomStyleApplyShim(a):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(a)),this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!L.nativeCssVariables&&this.styleDocument())};
Y.prototype.styleElement=function(a,b){var c=N.getIsExtends(a).is,d=S.default.get(a);d||(d=this._prepareHost(a));this._isRootOwner(a)||(this._elementsHaveApplied=!0);b&&(d.overrideStyleProperties=d.overrideStyleProperties||{},Object.assign(d.overrideStyleProperties,b));if(L.nativeCssVariables){if(d.overrideStyleProperties&&dd.updateNativeProperties(a,d.overrideStyleProperties),((b=V.default[c])||this._isRootOwner(a))&&b&&b._style&&!W.templateIsValid(b))W.templateIsValidating(b)||(this._ensure(),this._applyShim.transformRules(b._styleAst,
c),b._style.textContent=P.default.elementStyles(a,d.styleRules),W.startValidatingTemplate(b)),L.nativeShadow&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=P.default.elementStyles(a,d.styleRules)),d.styleRules=b._styleAst}else this._updateProperties(a,d),d.ownStylePropertyNames&&d.ownStylePropertyNames.length&&this._applyStyleProperties(a,d)};Y.prototype._styleOwnerForNode=function(a){return(a=a.getRootNode().host)?S.default.get(a)?a:this._styleOwnerForNode(a):this._documentOwner};
Y.prototype._isRootOwner=function(a){return a===this._documentOwner};
Y.prototype._applyStyleProperties=function(a,b){var c=N.getIsExtends(a).is,d=hd.fetch(c,b.styleProperties,b.ownStylePropertyNames),e=d?d.styleElement:null,f=b.scopeSelector;b.scopeSelector=d&&d.scopeSelector||this._generateScopeSelector(c);e=T.default.applyElementStyle(a,b.styleProperties,b.scopeSelector,e);L.nativeShadow||T.default.applyElementScopeSelector(a,b.scopeSelector,f);d||hd.store(c,b.styleProperties,e,b.scopeSelector);return e};
Y.prototype._updateProperties=function(a,b){var c=this._styleOwnerForNode(a),d=S.default.get(c),c=Object.create(d.styleProperties||null),e=T.default.hostAndRootPropertiesForScope(a,b.styleRules);a=T.default.propertyDataFromStyles(d.styleRules,a).properties;Object.assign(c,e.hostProps,a,e.rootProps);this._mixinOverrideStyles(c,b.overrideStyleProperties);T.default.reify(c);b.styleProperties=c};Y.prototype._mixinOverrideStyles=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};
Y.prototype.styleDocument=function(a){this.styleSubtree(this._documentOwner,a)};Y.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this._isRootOwner(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};
Y.prototype._revalidateCustomStyleApplyShim=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&this._revalidateApplyShim(c)}};Y.prototype._applyCustomStyles=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&T.default.applyCustomStyle(c,this._documentOwnerStyleInfo.styleProperties)}};
Y.prototype.transformCustomStyleForDocument=function(a){var b=this,c=N.rulesForStyle(a);N.forEachRule(c,function(a){L.nativeShadow?P.default.normalizeRootSelector(a):P.default.documentRule(a);L.nativeCssVariables&&(b._ensure(),b._applyShim.transformRule(a))});L.nativeCssVariables?a.textContent=N.toCssText(c):this._documentOwnerStyleInfo.styleRules.rules.push(c)};
Y.prototype._revalidateApplyShim=function(a){if(L.nativeCssVariables){var b=N.rulesForStyle(a);this._ensure();this._applyShim.transformRules(b);a.textContent=N.toCssText(b)}};Y.prototype.getComputedStyleValue=function(a,b){var c;L.nativeCssVariables||(c=(S.default.get(a)||S.default.get(this._styleOwnerForNode(a))).styleProperties[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
Y.prototype.setElementClass=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===P.default.SCOPE_NAME){c=d[e+1];break}}c&&b.push(P.default.SCOPE_NAME,c);L.nativeCssVariables||(c=S.default.get(a))&&c.scopeSelector&&b.push(T.default.XSCOPE_NAME,c.scopeSelector);N.setElementClassRaw(a,b.join(" "))};Y.prototype._styleInfoForNode=function(a){return S.default.get(a)};
Y.prototype.flush=Y.prototype.flush;Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.setElementClass;Y.prototype._styleInfoForNode=Y.prototype._styleInfoForNode;Y.prototype.transformCustomStyleForDocument=Y.prototype.transformCustomStyleForDocument;
Y.prototype.getStyleAst=Y.prototype.getStyleAst;Y.prototype.styleAstToString=Y.prototype.styleAstToString;Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return L.nativeShadow}},nativeCss:{get:function(){return L.nativeCssVariables}}});gd.default=Y;var Z=new gd.default,id,jd;window.ShadyCSS&&(id=window.ShadyCSS.ApplyShim,jd=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:L.nativeCssVariables,nativeShadow:L.nativeShadow};id&&(window.ShadyCSS.ApplyShim=id);
jd&&(window.ShadyCSS.CustomStyleInterface=jd);
'use strict';var da={scope:{},getGlobal:function(k){return"undefined"!=typeof window&&window===k?k:"undefined"!=typeof global&&null!=global?global:k}};da.global=da.getGlobal(this);
(function(){function k(){var a=this;this._scopeCounter={};this._documentOwner=document.documentElement;var b=new sa;b.rules=[];this._documentOwnerStyleInfo=t.set(this._documentOwner,new t(b));this._elementsHaveApplied=!1;this._customStyleInterface=this._applyShim=null;gb(function(){a._ensure()})}function E(){this.customStyles=[];this.enqueued=!1}function hb(){}function ea(a){this.cache={};this.typeMax=void 0===a?100:a}function m(){}function t(a,b,c,d,e,f){this.styleRules=a||null;this.placeholder=
b||null;this.ownStylePropertyNames=c||[];this.overrideStyleProperties=null;this.elementName=d||"";this.cssBuild=f||"";this.typeExtension=e||"";this.customStyle=this.scopeSelector=this.styleProperties=null}function q(){}function sa(){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 Gc(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,
configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;l(this)&&(e=[],L(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];1===g.__CE_state&&a.disconnectedCallback(g)}this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(this):a.patchTree(this);return b}})}function c(b,c){x(b,"insertAdjacentElement",function(b,d){var e=l(d);b=c.call(this,b,d);e&&a.disconnectTree(d);l(b)&&a.connectTree(d);return b})}ib?x(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=
a=ib.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(ta&&ta.get)b(Element.prototype,ta);else if(ua&&ua.get)b(HTMLElement.prototype,ua);else{var d=va.call(document,"div");a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return jb.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)wa.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)ga.call(b,d.childNodes[0])}})})}x(Element.prototype,
"setAttribute",function(b,c){if(1!==this.__CE_state)return kb.call(this,b,c);var d=xa.call(this,b);kb.call(this,b,c);c=xa.call(this,b);d!==c&&a.attributeChangedCallback(this,b,d,c,null)});x(Element.prototype,"setAttributeNS",function(b,c,d){if(1!==this.__CE_state)return lb.call(this,b,c,d);var e=ha.call(this,b,c);lb.call(this,b,c,d);d=ha.call(this,b,c);e!==d&&a.attributeChangedCallback(this,c,e,d,b)});x(Element.prototype,"removeAttribute",function(b){if(1!==this.__CE_state)return mb.call(this,b);
var c=xa.call(this,b);mb.call(this,b);null!==c&&a.attributeChangedCallback(this,b,c,null,null)});x(Element.prototype,"removeAttributeNS",function(b,c){if(1!==this.__CE_state)return nb.call(this,b,c);var d=ha.call(this,b,c);nb.call(this,b,c);var e=ha.call(this,b,c);d!==e&&a.attributeChangedCallback(this,c,d,e,b)});ob?c(HTMLElement.prototype,ob):pb?c(Element.prototype,pb):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");qb(a,Element.prototype,{prepend:Hc,append:Ic});
Jc(a,Element.prototype,{before:Kc,after:Lc,replaceWith:Mc,remove:Nc})}function Jc(a,b,c){b.before=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&l(a)});c.before.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(l(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.after=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof
Node&&l(a)});c.after.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(l(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.replaceWith=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];var f=d.filter(function(a){return a instanceof Node&&l(a)}),g=l(this);c.replaceWith.apply(this,d);for(var h=0;h<f.length;h++)a.disconnectTree(f[h]);if(g)for(a.disconnectTree(this),f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.remove=
function(){var b=l(this);c.remove.call(this);b&&a.disconnectTree(this)}}function Oc(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&l(this))for(var c=Array(h),n=0;n<h;n++)c[n]=e[n]}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)a.disconnectTree(c[b])}}})}x(Node.prototype,"insertBefore",function(b,
d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=rb.call(this,b,d);if(l(this))for(d=0;d<c.length;d++)a.connectTree(c[d]);return b}c=l(b);d=rb.call(this,b,d);c&&a.disconnectTree(b);l(this)&&a.connectTree(b);return d});x(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=ga.call(this,b);if(l(this))for(var e=0;e<c.length;e++)a.connectTree(c[e]);return b}c=l(b);e=ga.call(this,b);c&&a.disconnectTree(b);
l(this)&&a.connectTree(b);return e});x(Node.prototype,"cloneNode",function(b){b=jb.call(this,b);this.ownerDocument.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});x(Node.prototype,"removeChild",function(b){var c=l(b),e=wa.call(this,b);c&&a.disconnectTree(b);return e});x(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=sb.call(this,b,d);if(l(this))for(a.disconnectTree(d),d=0;d<c.length;d++)a.connectTree(c[d]);
return b}var c=l(b),f=sb.call(this,b,d),g=l(this);g&&a.disconnectTree(d);c&&a.disconnectTree(b);g&&a.connectTree(b);return f});ya&&ya.get?b(Node.prototype,ya):a.addPatch(function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)wa.call(this,this.firstChild);ga.call(this,document.createTextNode(a))}})})}function Pc(a){x(Document.prototype,"createElement",
function(b){if(this.__CE_hasRegistry){var c=a.localNameToDefinition(b);if(c)return new c.constructor}b=va.call(this,b);a.patch(b);return b});x(Document.prototype,"importNode",function(b,c){b=Qc.call(this,b,c);this.__CE_hasRegistry?a.patchAndUpgradeTree(b):a.patchTree(b);return b});x(Document.prototype,"createElementNS",function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.localNameToDefinition(c);if(d)return new d.constructor}b=Rc.call(this,b,c);a.patch(b);
return b});qb(a,Document.prototype,{prepend:Sc,append:Tc})}function qb(a,b,c){b.prepend=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&l(a)});c.prepend.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(l(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)};b.append=function(b){for(var d=[],f=0;f<arguments.length;++f)d[f-0]=arguments[f];f=d.filter(function(a){return a instanceof Node&&
l(a)});c.append.apply(this,d);for(var g=0;g<f.length;g++)a.disconnectTree(f[g]);if(l(this))for(f=0;f<d.length;f++)g=d[f],g instanceof Element&&a.connectTree(g)}}function Uc(a){window.HTMLElement=function(){function b(){var b=this.constructor,d=a.constructorToDefinition(b);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=va.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=
1,e.__CE_definition=d,a.patch(e),e;var d=e.length-1,f=e[d];if(f===tb)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[d]=tb;Object.setPrototypeOf(f,b.prototype);a.patch(f);return f}b.prototype=Vc.prototype;return b}()}function w(a){this._elementDefinitionIsRunning=!1;this._internals=a;this._whenDefinedDeferred=new Map;this._flushCallback=function(a){return a()};this._flushPending=!1;this._unflushedLocalNames=[];this._documentConstructionObserver=
new za(a,document)}function Aa(){var a=this;this._resolve=this._value=void 0;this._promise=new Promise(function(b){a._resolve=b;a._value&&b(a._value)})}function za(a,b){this._internals=a;this._document=b;this._observer=void 0;this._internals.patchAndUpgradeTree(this._document);"loading"===this._document.readyState&&(this._observer=new MutationObserver(this._handleMutations.bind(this)),this._observer.observe(this._document,{childList:!0,subtree:!0}))}function y(){this._localNameToDefinition=new Map;
this._constructorToDefinition=new Map;this._patches=[];this._hasPatches=!1}function p(a,b){if(a!==ub)throw new TypeError("Illegal constructor");a=document.createDocumentFragment();a.__proto__=p.prototype;a._init(b);return a}function z(a){this.root=a;this.insertionPointTag="slot"}function P(a){if(!A(a,"firstChild")){a.__shady=a.__shady||{};a.__shady.firstChild=vb(a);a.__shady.lastChild=wb(a);xb(a);for(var b=a.__shady.childNodes=Y(a),c=0,d;c<b.length&&(d=b[c]);c++)d.__shady=d.__shady||{},d.__shady.parentNode=
a,d.__shady.nextSibling=b[c+1]||null,d.__shady.previousSibling=b[c-1]||null,yb(d)}}function Wc(a){var b=a&&a._observer;b&&(b.callbacks.delete(a._callback),b.callbacks.size||(a._node.__shady.observer=null))}function Xc(a,b){a.__shady=a.__shady||{};a.__shady.observer||(a.__shady.observer=new ia);a.__shady.observer.callbacks.add(b);var c=a.__shady.observer;return{_callback:b,_observer:c,_node:a,takeRecords:function(){return c.takeRecords()}}}function ia(){this._scheduled=!1;this.addedNodes=[];this.removedNodes=
[];this.callbacks=new Set}function F(a){return"ShadyRoot"===a.__localName}function Q(a){a=a.getRootNode();if(F(a))return a}function Ba(a,b){if(a&&b)for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length&&(e=c[d]);d++){var f=e,g=a,h=Object.getOwnPropertyDescriptor(b,f);h&&Object.defineProperty(g,f,h)}return a||b}function zb(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(d=0;d<c.length;d++)Ba(a,c[d]);return a}function Yc(a,b){for(var c in b)a[c]=b[c];return a}function Ab(a){Ca.push(a);
Da.textContent=Bb++}function Cb(a){Ea||(Ea=!0,Ab(Fa));Z.push(a)}function Fa(){Ea=!1;for(var a=!!Z.length;Z.length;)Z.shift()();return a}function Zc(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})}function Db(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Eb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function Ga(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g;e<f&&(g=d[e]);e++){var h;a:{var n;h=g;n=a;var k=b;switch(h.nodeType){case Node.ELEMENT_NODE:for(var fa=h.localName,l="<"+fa,m=h.attributes,p=0;n=m[p];p++)l+=" "+n.name+'="'+n.value.replace($c,Db)+'"';l+=">";h=ad[fa]?l:l+Ga(h,k)+
"</"+fa+">";break a;case Node.TEXT_NODE:h=h.data;h=n&&bd[n.localName]?h:h.replace(cd,Db);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),Error("not implemented");}}c+=h}return c}function R(a){B.currentNode=a;return B.parentNode()}function vb(a){B.currentNode=a;return B.firstChild()}function wb(a){B.currentNode=a;return B.lastChild()}function Y(a){var b=[];B.currentNode=a;for(a=B.firstChild();a;)b.push(a),a=B.nextSibling();return b}function Fb(a){C.currentNode=
a;return C.firstChild()}function Gb(a){C.currentNode=a;return C.lastChild()}function Hb(a){C.currentNode=a;return C.previousSibling()}function Ib(a){C.currentNode=a;return C.nextSibling()}function Jb(a){var b=[];C.currentNode=a;for(a=C.firstChild();a;)b.push(a),a=C.nextSibling();return b}function Kb(a){return Ga(a,function(a){return Y(a)})}function Lb(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=
c.nodeValue;return b}function A(a,b){return void 0!==(a.__shady&&a.__shady[b])}function S(a){return{get:function(){var b=this.__shady&&this.__shady[a];return void 0!==b?b:Mb[a](this)},configurable:!0}}function J(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a,d,b[d]):c&&console.warn("Could not define",d,"on",a)}}function M(a){J(a,Nb);J(a,Ha);J(a,Ia)}function Ob(a,b,c){yb(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};
c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild=a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=null}function Pb(a){var b=A(a,"parentNode")&&a.__shady&&a.__shady.parentNode,c,d=Q(a);if(b||d){c=
Qb(a);if(b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var e=a.__shady.previousSibling,f=a.__shady.nextSibling;e&&(e.__shady=e.__shady||{},e.__shady.nextSibling=f);f&&(f.__shady=f.__shady||{},f.__shady.previousSibling=e);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;A(b,"childNodes")&&(b.__shady.childNodes=null)}if(e=d){for(var g,
e=d._insertionPoints,f=0;f<e.length;f++){var h=e[f],n;a:{for(n=h;n;){if(n==a){n=!0;break a}n=n.parentNode}n=void 0}if(n)for(h=h.assignedNodes({flatten:!0}),n=0;n<h.length;n++){g=!0;var k=h[n],l=R(k);l&&T.call(l,k)}}e=g}g=e;b=b&&d&&b.localName===d.getInsertionPointTag();if(g||b)d._skipUpdateInsertionPoints=!1,ja(d)}Ja(a);return c}function Ka(a,b,c){if(a=a.__shady&&a.__shady.observer)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),a.schedule()}function La(a){if(a&&a.nodeType){var b=a.__ownerShadyRoot;
void 0===b&&(b=F(a)?a:(b=a.parentNode)?La(b):a,document.documentElement.contains(a)&&(a.__ownerShadyRoot=b));return b}}function Rb(a,b,c){var d,e=c.getInsertionPointTag();if(a.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||a.__noInsertionPoint)a.localName===e&&(P(b),P(a),d=!0);else for(var e=a.querySelectorAll(e),f=0,g,h;f<e.length&&(g=e[f]);f++)h=g.parentNode,h===a&&(h=b),h=Rb(g,h,c),d=d||h;return d}function Ja(a){if(void 0!==a.__ownerShadyRoot)for(var b=a.childNodes,c=0,d=b.length,e;c<d&&(e=b[c]);c++)Ja(e);
a.__ownerShadyRoot=void 0}function Qb(a){if((a=a.parentNode)&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())return ja(a.shadyRoot),!0}function ja(a){a._changePending=!0;a.update()}function Sb(a,b){"slot"===b?Qb(a):"slot"===a.localName&&"name"===b&&(a=Q(a))&&a.update()}function Tb(a,b,c){var d=[];Ub(a.childNodes,b,c,d);return d}function Ub(a,b,c,d){for(var e=0,f=a.length,g;e<f&&(g=a[e]);e++){var h;if(h=g.nodeType===Node.ELEMENT_NODE){h=g;var n=b,k=c,l=d,m=n(h);m&&l.push(h);k&&k(m)?h=m:(Ub(h.childNodes,
n,k,l),h=void 0)}if(h)return!0}}function Vb(a){a=a.getRootNode();F(a)&&a.render()}function Wb(a,b,c){if(c){var d=c.__shady&&c.__shady.parentNode;if(void 0!==d&&d!==a||void 0===d&&R(c)!==a)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(c===b)return b;b.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(d=b.__shady&&b.__shady.parentNode,d?(Ka(d,null,b),Pb(b)):(b.parentNode&&T.call(b.parentNode,b),Ja(b)));var d=c,
e=Q(a),f;e&&(b.__noInsertionPoint&&!e._changePending&&(e._skipUpdateInsertionPoints=!0),f=Rb(b,a,e))&&(e._skipUpdateInsertionPoints=!1);if(A(a,"firstChild"))if(xb(a),a.__shady=a.__shady||{},A(a,"firstChild")&&(a.__shady.childNodes=null),b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var g=b.childNodes,h=0;h<g.length;h++)Ob(g[h],a,d);b.__shady=b.__shady||{};g=A(b,"firstChild")?null:void 0;b.__shady.firstChild=b.__shady.lastChild=g;b.__shady.childNodes=g}else Ob(b,a,d);var g=f,h=e&&e.getInsertionPointTag()||
"",n=b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!b.__noInsertionPoint&&h&&b.querySelector(h);f=n&&n.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;((n=n||b.localName===h)||a.localName===h||g)&&e&&ja(e);(e=a&&a.shadyRoot&&a.shadyRoot.hasInsertionPoint())&&ja(a.shadyRoot);if(!(e||n&&!f||a.shadyRoot||d&&F(d.parentNode)&&d.parentNode._renderPending)){if(c&&(d=Q(c))){var k;if(c.localName===d.getInsertionPointTag())a:{d=c.assignedNodes({flatten:!0});e=La(c);f=0;for(g=d.length;f<g&&(k=d[f]);f++)if(e.isFinalDestination(c,
k))break a;k=void 0}else k=c;c=k}k=F(a)?a.host:a;c?Ma.call(k,b,c):Xb.call(k,b)}Ka(a,b);return b}function Yb(a,b){if(a.ownerDocument!==document)return Na.call(document,a,b);var c=Na.call(document,a,!1);if(b){a=a.childNodes;b=0;for(var d;b<a.length;b++)d=Yb(a[b],!0),c.appendChild(d)}return c}function Oa(a,b){var c=[],d=a;for(a=a===window?window:a.getRootNode();d;)c.push(d),d=d.assignedSlot?d.assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.parentNode;c[c.length-1]===
document&&c.push(window);return c}function Zb(a,b){if(!F)return a;a=Oa(a,!0);for(var c=0,d,e,f,g;c<b.length;c++)if(d=b[c],f=d===window?window:d.getRootNode(),f!==e&&(g=a.indexOf(f),e=f),!F(f)||-1<g)return d}function Pa(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}Yc(b,a);b.prototype=a.prototype;return b}function $b(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}function dd(a){var b=
a.composedPath(),c;Object.defineProperty(a,"currentTarget",{get:function(){return c},configurable:!0});for(var d=b.length-1;0<=d;d--)if(c=b[d],$b(a,c,"capture"),a.__propagationStopped)return;Object.defineProperty(a,"eventPhase",{value:Event.AT_TARGET});for(var e,d=0;d<b.length;d++)if(c=b[d],0===d||c.shadowRoot&&c.shadowRoot===e)if($b(a,c,"bubble"),c!==window&&(e=c.getRootNode()),a.__propagationStopped)break}function ed(){for(var a in Qa)window.addEventListener(a,function(a){a.__target||(ac(a),dd(a),
a.stopImmediatePropagation())},!0)}function ac(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(D.hasDescriptors){var b=bc,c=Object.getPrototypeOf(a);if(!c.hasOwnProperty("__patchProto")){var d=Object.create(c);d.__sourceProto=c;Ba(d,b);c.__patchProto=d}a.__proto__=c.__patchProto}else Ba(a,bc)}function aa(a,b,c){return{index:a,removed:b,addedCount:c}}function fd(a,b,c,d,e,f){var g=0,h=0,k=Math.min(c-b,f-e);if(0==b&&0==e)a:{for(g=0;g<k;g++)if(a[g]!==d[g])break a;g=k}if(c==a.length&&f==d.length){for(var h=
k-g,k=a.length,l=d.length,m=0;m<h&&gd(a[--k],d[--l]);)m++;h=m}b+=g;e+=g;c-=h;f-=h;if(0==c-b&&0==f-e)return[];if(b==c){for(c=aa(b,[],0);e<f;)c.removed.push(d[e++]);return[c]}if(e==f)return[aa(b,[],c-b)];g=b;h=e;f=f-h+1;k=c-g+1;c=Array(f);for(l=0;l<f;l++)c[l]=Array(k),c[l][0]=l;for(l=0;l<k;l++)c[0][l]=l;for(l=1;l<f;l++)for(m=1;m<k;m++)if(a[g+m-1]===d[h+l-1])c[l][m]=c[l-1][m-1];else{var p=c[l-1][m]+1,q=c[l][m-1]+1;c[l][m]=p<q?p:q}f=c.length-1;g=c[0].length-1;h=c[f][g];for(a=[];0<f||0<g;)0==f?(a.push(2),
g--):0==g?(a.push(3),f--):(k=c[f-1][g-1],l=c[f-1][g],m=c[f][g-1],p=l<m?l<k?l:k:m<k?m:k,p==k?(k==h?a.push(0):(a.push(1),h=k),f--,g--):p==l?(a.push(3),f--,h=l):(a.push(2),g--,h=m));a.reverse();c=void 0;f=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:c&&(f.push(c),c=void 0);b++;e++;break;case 1:c||(c=aa(b,[],0));c.addedCount++;b++;c.removed.push(d[e]);e++;break;case 2:c||(c=aa(b,[],0));c.addedCount++;b++;break;case 3:c||(c=aa(b,[],0)),c.removed.push(d[e]),e++}c&&f.push(c);return f}function gd(a,b){return a===
b}function cc(a){Vb(a);return a.__shady&&a.__shady.assignedSlot||null}function U(a,b){for(var c=Object.getOwnPropertyNames(b),d=0;d<c.length;d++){var e=c[d],f=Object.getOwnPropertyDescriptor(b,e);f.value?a[e]=f.value:Object.defineProperty(a,e,f)}}function dc(a){var b=hd.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?
a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Ra(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}function L(a,b,c){c=void 0===c?new Set:c;for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)L(d,b,c);d=Ra(a,e);continue}else if("template"===f){d=Ra(a,e);continue}if(e=
e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)L(e,b,c)}d=d.firstChild?d.firstChild:Ra(a,d)}}function x(a,b,c){a[b]=c}function Sa(a){a=a.replace(G.comments,"").replace(G.port,"");var b=ec,c=a,d=new sa;d.start=0;d.end=c.length;for(var e=d,f=0,g=c.length;f<g;f++)if("{"===c[f]){e.rules||(e.rules=[]);var h=e,k=h.rules[h.rules.length-1]||null,e=new sa;e.start=f+1;e.parent=h;e.previous=k;h.rules.push(e)}else"}"===c[f]&&(e.end=f+1,e=e.parent||d);return b(d,a)}function ec(a,b){var c=b.substring(a.start,
a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=id(c),c=c.replace(G.multipleSpaces," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=I.MEDIA_RULE:c.match(G.keyframesRule)&&(a.type=I.KEYFRAMES_RULE,a.keyframesName=a.selector.split(G.multipleSpaces).pop()):0===c.indexOf("--")?a.type=I.MIXIN_RULE:a.type=I.STYLE_RULE);if(c=a.rules)for(var d=
0,e=c.length,f;d<e&&(f=c[d]);d++)ec(f,b);return a}function id(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}function fc(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h;f<g&&(h=e[f]);f++)d=fc(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(G.customProp,"").replace(G.mixinProp,""),b=b.replace(G.mixinApply,"").replace(G.varApply,
"")),(d=b.trim())&&(d=" "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}function gc(a){a&&(v=v&&!a.nativeCss&&!a.shimcssproperties,u=u&&!a.nativeShadow&&!a.shimshadow)}function V(a,b){if(!a)return"";"string"===typeof a&&(a=Sa(a));b&&W(a,b);return fc(a,v)}function ka(a){!a.__cssRules&&a.textContent&&(a.__cssRules=Sa(a.textContent));return a.__cssRules||null}function hc(a){return!!a.parent&&a.parent.type===I.KEYFRAMES_RULE}function W(a,b,c,d){if(a){var e=!1,
f=a.type;if(d&&f===I.MEDIA_RULE){var g=a.selector.match(jd);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===I.STYLE_RULE?b(a):c&&f===I.KEYFRAMES_RULE?c(a):f===I.MIXIN_RULE&&(e=!0);if((a=a.rules)&&!e)for(var e=0,f=a.length,h;e<f&&(h=a[e]);e++)W(h,b,c,d)}}function Ta(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;ic(e,c,d);return e}function ic(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);N?a.compareDocumentPosition(N)===Node.DOCUMENT_POSITION_PRECEDING&&
(N=a):N=a}function jc(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d;a:{var e=0;d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&0===--e)break a;d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=jc(a.substring(d+1),b);f=e.indexOf(",");if(-1===f)return b(c,e.trim(),"",a);d=e.substring(0,f).trim();e=e.substring(f+1).trim();return b(c,d,e,a)}function la(a,b){u?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}function O(a){var b=
a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,typeExtension:c}}function kd(a){(a=ma[a])&&(a._applyShimInvalid=!0)}function ld(a){a._validating||(a._validating=!0,md.then(function(){a._applyShimInvalid=!1;a._validating=!1}))}function gb(a){kc?kc(a):(Ua||(Ua=new Promise(function(a){Va=a}),"complete"===document.readyState?Va():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&Va()})),Ua.then(function(){a&&
a()}))}var D=window.ShadyDOM||{};D.hasNativeShadowDOM=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Wa=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");D.hasDescriptors=!!(Wa&&Wa.configurable&&Wa.get);D.inUse=D.force||!D.hasNativeShadowDOM;var X=Element.prototype,lc=X.matches||X.matchesSelector||X.mozMatchesSelector||X.msMatchesSelector||X.oMatchesSelector||X.webkitMatchesSelector,Da=document.createTextNode(""),Bb=0,Ca=[];(new MutationObserver(function(){for(;Ca.length;)try{Ca.shift()()}catch(a){throw Da.textContent=
Bb++,a;}})).observe(Da,{characterData:!0});var Z=[],Ea;Fa.list=Z;ia.prototype.schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,Ab(function(){a.flush()}))};ia.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var a=this.takeRecords();a.length&&this.callbacks.forEach(function(b){b(a)})}};ia.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=
[];return a}return[]};var Xb=Element.prototype.appendChild,Ma=Element.prototype.insertBefore,T=Element.prototype.removeChild,mc=Element.prototype.setAttribute,nc=Element.prototype.removeAttribute,Xa=Element.prototype.cloneNode,Na=Document.prototype.importNode,oc=Element.prototype.addEventListener,pc=Element.prototype.removeEventListener,nd=Object.freeze({appendChild:Xb,insertBefore:Ma,removeChild:T,setAttribute:mc,removeAttribute:nc,cloneNode:Xa,importNode:Na,addEventListener:oc,removeEventListener:pc}),
$c=/[&\u00A0"]/g,cd=/[&\u00A0<>]/g,ad=Eb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),bd=Eb("style script xmp iframe noembed noframes plaintext noscript".split(" ")),B=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),C=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Mb=Object.freeze({parentNode:R,firstChild:vb,lastChild:wb,previousSibling:function(a){B.currentNode=a;return B.previousSibling()},nextSibling:function(a){B.currentNode=
a;return B.nextSibling()},childNodes:Y,parentElement:function(a){C.currentNode=a;return C.parentNode()},firstElementChild:Fb,lastElementChild:Gb,previousElementSibling:Hb,nextElementSibling:Ib,children:Jb,innerHTML:Kb,textContent:Lb}),Ya=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),na=document.implementation.createHTMLDocument("inert").createElement("div"),Za=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),
Nb={parentElement:S("parentElement"),parentNode:S("parentNode"),nextSibling:S("nextSibling"),previousSibling:S("previousSibling"),className:{get:function(){return this.getAttribute("class")},set:function(a){this.setAttribute("class",a)},configurable:!0},nextElementSibling:{get:function(){if(A(this,"nextSibling")){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Ib(this)},configurable:!0},previousElementSibling:{get:function(){if(A(this,"previousSibling")){for(var a=
this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Hb(this)},configurable:!0}},Ha={childNodes:{get:function(){if(A(this,"firstChild")){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}return this.__shady.childNodes}return Y(this)},configurable:!0},firstChild:S("firstChild"),lastChild:S("lastChild"),textContent:{get:function(){if(A(this,"firstChild")){for(var a=[],b=0,c=this.childNodes,
d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Lb(this)},set:function(a){if(this.nodeType!==Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);a&&this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(A(this,"firstChild")){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Fb(this)},configurable:!0},lastElementChild:{get:function(){if(A(this,
"lastChild")){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Gb(this)},configurable:!0},children:{get:function(){return A(this,"firstChild")?Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):Jb(this)},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return A(this,"firstChild")?Ga(a):Kb(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);
for(Ya&&Ya.set?Ya.set.call(na,a):na.innerHTML=a;na.firstChild;)b.appendChild(na.firstChild)},configurable:!0}},qc={shadowRoot:{get:function(){return this.shadyRoot},set:function(a){this.shadyRoot=a},configurable:!0}},Ia={activeElement:{get:function(){var a;a=Za&&Za.get?Za.get.call(document):D.hasDescriptors?void 0:document.activeElement;if(a&&a.nodeType){var b=!!F(this);if(this===document||b&&this.host!==a&&this.host.contains(a)){for(b=Q(a);b&&b!==this;)a=b.host,b=Q(a);a=this===document?b?null:a:
b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},yb=D.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__outsideAccessors||(a.__shady=a.__shady||{},a.__shady.__outsideAccessors=!0,J(a,Nb,!0))},xb=D.hasDescriptors?function(){}:function(a){a.__shady&&a.__shady.__insideAccessors||(a.__shady=a.__shady||{},a.__shady.__insideAccessors=!0,J(a,Ha,!0),J(a,qc,!0))},oa=null,od={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},bc={get composed(){this.isTrusted&&void 0===this.__composed&&(this.__composed=od[this.type]);return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Oa(this.__target,this.composed));return this.__composedPath},get target(){return Zb(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Oa(this.__relatedTarget,!0));return Zb(this.currentTarget,
this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.__propagationStopped=this.__immediatePropagationStopped=!0}},Qa={focus:!0,blur:!0},pd=Pa(window.Event),qd=Pa(window.CustomEvent),rd=Pa(window.MouseEvent),sd="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,
!!b.cancelable);return c};z.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)};z.prototype.hasInsertionPoint=function(){return!(!this.root._insertionPoints||!this.root._insertionPoints.length)};z.prototype.isInsertionPoint=function(a){return a.localName&&a.localName==this.insertionPointTag};z.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]};z.prototype.collectPool=function(){for(var a=
[],b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};z.prototype.distributePool=function(a,b){a=[];for(var c=this.root._insertionPoints,d=0,e=c.length,f;d<e&&(f=c[d]);d++){this.distributeInsertionPoint(f,b);var g=f.parentNode;g&&g.shadyRoot&&g.shadyRoot.hasInsertionPoint()&&a.push(g.shadyRoot)}for(f=0;f<b.length;f++)if(c=b[f])c.__shady=c.__shady||{},c.__shady.assignedSlot=void 0,(d=R(c))&&T.call(d,c);return a};z.prototype.distributeInsertionPoint=function(a,b){var c=a.__shady.assignedNodes;
c&&this.clearAssignedSlots(a,!0);a.__shady.assignedNodes=[];for(var d=!1,e=!1,f=0,g=b.length,h;f<g;f++)(h=b[f])&&this.matchesInsertionPoint(h,a)&&(h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a),b[f]=void 0,e=!0);if(!e)for(b=a.childNodes,e=0;e<b.length;e++)h=b[e],h.__shady._prevAssignedSlot!=a&&(d=!0),this.distributeNodeInto(h,a);if(c){for(h=0;h<c.length;h++)c[h].__shady._prevAssignedSlot=null;a.__shady.assignedNodes.length<c.length&&(d=!0)}this.setDistributedNodesOnInsertionPoint(a);
d&&this._fireSlotChange(a)};z.prototype.clearAssignedSlots=function(a,b){var c=a.__shady.assignedNodes;if(c)for(var d=0;d<c.length;d++){var e=c[d];b&&(e.__shady._prevAssignedSlot=e.__shady.assignedSlot);e.__shady.assignedSlot===a&&(e.__shady.assignedSlot=null)}};z.prototype.matchesInsertionPoint=function(a,b){b=(b=b.getAttribute("name"))?b.trim():"";a=(a=a.getAttribute&&a.getAttribute("slot"))?a.trim():"";return a==b};z.prototype.distributeNodeInto=function(a,b){b.__shady.assignedNodes.push(a);a.__shady.assignedSlot=
b};z.prototype.setDistributedNodesOnInsertionPoint=function(a){var b=a.__shady.assignedNodes;a.__shady.distributedNodes=[];for(var c=0,d;c<b.length&&(d=b[c]);c++)if(this.isInsertionPoint(d)){var e=d.__shady.distributedNodes;if(e)for(var f=0;f<e.length;f++)a.__shady.distributedNodes.push(e[f])}else a.__shady.distributedNodes.push(b[c])};z.prototype._fireSlotChange=function(a){a.dispatchEvent(new sd("slotchange"));a.__shady.assignedSlot&&this._fireSlotChange(a.__shady.assignedSlot)};z.prototype.isFinalDestination=
function(a){return!a.__shady.assignedSlot};var ub={};p.prototype=Object.create(DocumentFragment.prototype);p.prototype._init=function(a){this.__localName="ShadyRoot";P(a);P(this);a.shadowRoot=this;this.host=a;this._changePending=this._hasRendered=this._renderPending=!1;this._distributor=new z(this);this.update()};p.prototype.update=function(){var a=this;this._renderPending||(this._renderPending=!0,Cb(function(){return a.render()}))};p.prototype._getRenderRoot=function(){for(var a=this,b=this;b;)b._renderPending&&
(a=b),b=b._rendererForHost();return a};p.prototype._rendererForHost=function(){var a=this.host.getRootNode();if(F(a))for(var b=this.host.childNodes,c=0,d;c<b.length;c++)if(d=b[c],this._distributor.isInsertionPoint(d))return a};p.prototype.render=function(){this._renderPending&&this._getRenderRoot()._render()};p.prototype._render=function(){this._changePending=this._renderPending=!1;this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints();this._skipUpdateInsertionPoints=
!1;this.distribute();this.compose();this._hasRendered=!0};p.prototype.forceRender=function(){this._renderPending=!0;this.render()};p.prototype.distribute=function(){for(var a=this._distributor.distribute(),b=0;b<a.length;b++)a[b]._render()};p.prototype.updateInsertionPoints=function(){var a=this.__insertionPoints;if(a)for(var b=0,c;b<a.length;b++)c=a[b],c.getRootNode()!==this&&this._distributor.clearAssignedSlots(c);a=this._insertionPoints=this._distributor.getInsertionPoints();for(b=0;b<a.length;b++)c=
a[b],c.__shady=c.__shady||{},P(c),P(c.parentNode)};p.prototype.hasInsertionPoint=function(){return this._distributor.hasInsertionPoint()};p.prototype.compose=function(){this._composeTree()};p.prototype._composeTree=function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var a=this._insertionPoints||[],b=0,c=a.length,d,e;b<c&&(d=a[b]);b++)e=d.parentNode,e!==this.host&&e!==this&&this._updateChildNodes(e,this._composeNode(e))};p.prototype._composeNode=function(a){var b=[];a=(a.shadyRoot||
a).childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this._distributor.isInsertionPoint(d))for(var e=d.__shady.distributedNodes||(d.__shady.distributedNodes=[]),f=0;f<e.length;f++){var g=e[f];this.isFinalDestination(d,g)&&b.push(g)}else b.push(d)}return b};p.prototype.isFinalDestination=function(a,b){return this._distributor.isFinalDestination(a,b)};p.prototype._updateChildNodes=function(a,b){for(var c=Y(a),d=fd(b,0,b.length,c,0,c.length),e=0,f=0,g;e<d.length&&(g=d[e]);e++){for(var h=0,k;h<g.removed.length&&
(k=g.removed[h]);h++)R(k)===a&&T.call(a,k),c.splice(g.index+f,1);f-=g.addedCount}for(e=0;e<d.length&&(g=d[e]);e++)for(f=c[g.index],h=g.index;h<g.index+g.addedCount;h++)k=b[h],Ma.call(a,k,f),c.splice(h,0,k)};p.prototype.getInsertionPointTag=function(){return this._distributor.insertionPointTag};Object.defineProperty(p.prototype,"_insertionPoints",{get:function(){this.__insertionPoints||this.updateInsertionPoints();return this.__insertionPoints||(this.__insertionPoints=[])},set:function(a){this.__insertionPoints=
a},configurable:!0});(function(a){J(a,Ha,!0);J(a,Ia,!0)})(p.prototype);var td={addEventListener:function(a,b,c){if(b){var d,e,f;"object"===typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);if(b.__eventWrappers)for(var g=0;g<b.__eventWrappers.length;g++){if(b.__eventWrappers[g].node===this&&b.__eventWrappers[g].type===a&&b.__eventWrappers[g].capture===d&&b.__eventWrappers[g].once===e&&b.__eventWrappers[g].passive===f)return}else b.__eventWrappers=[];g=function(d){e&&this.removeEventListener(a,
b,c);d.__target||ac(d);if(d.composed||-1<d.composedPath().indexOf(this))if(d.eventPhase===Event.BUBBLING_PHASE&&d.target===d.relatedTarget)d.stopImmediatePropagation();else return b(d)};b.__eventWrappers.push({node:this,type:a,capture:d,once:e,passive:f,wrapperFn:g});Qa[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][d?"capture":"bubble"].push(g)):oc.call(this,a,g,c)}},removeEventListener:function(a,b,c){if(b){var d,e,f;"object"===
typeof c?(d=!!c.capture,e=!!c.once,f=!!c.passive):(d=!!c,f=e=!1);var g=void 0;if(b.__eventWrappers)for(var h=0;h<b.__eventWrappers.length;h++)if(b.__eventWrappers[h].node===this&&b.__eventWrappers[h].type===a&&b.__eventWrappers[h].capture===d&&b.__eventWrappers[h].once===e&&b.__eventWrappers[h].passive===f){g=b.__eventWrappers.splice(h,1)[0].wrapperFn;b.__eventWrappers.length||(b.__eventWrappers=void 0);break}pc.call(this,a,g||b,c);g&&Qa[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][d?
"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}},appendChild:function(a){return Wb(this,a)},insertBefore:function(a,b){return Wb(this,a,b)},removeChild:function(a){if(a.parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);if(!Pb(a)){var b=F(this)?this.host:this,c=R(a);b===c&&T.call(b,a)}Ka(this,null,a);return a},replaceChild:function(a,b){this.insertBefore(a,b);this.removeChild(b);return a},cloneNode:function(a){var b;if("template"==this.localName)b=Xa.call(this,
a);else if(b=Xa.call(this,!1),a){a=this.childNodes;for(var c=0,d;c<a.length;c++)d=a[c].cloneNode(!0),b.appendChild(d)}return b},getRootNode:function(a){return La(this,a)},get isConnected(){var a=this.ownerDocument;if(a&&a.contains&&a.contains(this)||(a=a.documentElement)&&a.contains&&a.contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.parentNode||(a instanceof p?a.host:void 0);return!!(a&&a instanceof Document)}},ud={get assignedSlot(){return cc(this)}},$a={querySelector:function(a){return Tb(this,
function(b){return lc.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a){return Tb(this,function(b){return lc.call(b,a)})}},rc={assignedNodes:function(a){if("slot"===this.localName)return Vb(this),this.__shady?(a&&a.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},sc=zb({setAttribute:function(a,b){oa||(oa=window.ShadyCSS&&window.ShadyCSS.ScopingShim);oa&&"class"===a?oa.setElementClass(this,b):(mc.call(this,a,b),Sb(this,a))},removeAttribute:function(a){nc.call(this,
a);Sb(this,a)},attachShadow:function(a){if(!this)throw"Must provide a host.";if(!a)throw"Not enough arguments.";return new p(ub,this)},get slot(){return this.getAttribute("slot")},set slot(a){this.setAttribute("slot",a)},get assignedSlot(){return cc(this)}},$a,rc);Object.defineProperties(sc,qc);var tc=zb({importNode:function(a,b){return Yb(a,b)}},$a);Object.defineProperties(tc,{_activeElement:Ia.activeElement});D.inUse&&(window.ShadyDOM={},window.ShadyDOM.inUse=D.inUse,window.ShadyDOM.patch=function(a){return a},
window.ShadyDOM.isShadyRoot=F,window.ShadyDOM.enqueue=Cb,window.ShadyDOM.flush=Fa,window.ShadyDOM.settings=D,window.ShadyDOM.filterMutations=Zc,window.ShadyDOM.observeChildren=Xc,window.ShadyDOM.unobserveChildren=Wc,window.ShadyDOM.nativeMethods=nd,window.ShadyDOM.nativeTree=Mb,window.Event=pd,window.CustomEvent=qd,window.MouseEvent=rd,ed(),U(window.Node.prototype,td),U(window.Text.prototype,ud),U(window.DocumentFragment.prototype,$a),U(window.Element.prototype,sc),U(window.Document.prototype,tc),
window.HTMLSlotElement&&U(window.HTMLSlotElement.prototype,rc),D.hasDescriptors&&(M(window.Node.prototype),M(window.Text.prototype),M(window.DocumentFragment.prototype),M(window.Element.prototype),M((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),M(window.Document.prototype),window.HTMLSlotElement&&M(window.HTMLSlotElement.prototype)),window.ShadowRoot=p);var hd=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
y.prototype.setDefinition=function(a,b){this._localNameToDefinition.set(a,b);this._constructorToDefinition.set(b.constructor,b)};y.prototype.localNameToDefinition=function(a){return this._localNameToDefinition.get(a)};y.prototype.constructorToDefinition=function(a){return this._constructorToDefinition.get(a)};y.prototype.addPatch=function(a){this._hasPatches=!0;this._patches.push(a)};y.prototype.patchTree=function(a){var b=this;this._hasPatches&&L(a,function(a){return b.patch(a)})};y.prototype.patch=
function(a){if(this._hasPatches&&!a.__CE_patched){a.__CE_patched=!0;for(var b=0;b<this._patches.length;b++)this._patches[b](a)}};y.prototype.connectTree=function(a){var b=[];L(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state?this.connectedCallback(c):this.upgradeElement(c)}};y.prototype.disconnectTree=function(a){var b=[];L(a,function(a){return b.push(a)});for(a=0;a<b.length;a++){var c=b[a];1===c.__CE_state&&this.disconnectedCallback(c)}};y.prototype.patchAndUpgradeTree=
function(a,b){b=void 0===b?new Set:b;var c=this,d=[];L(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var e=a.import;e instanceof Node&&"complete"===e.readyState?(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0):a.addEventListener("load",function(){var d=a.import;d.__CE_documentLoadHandled||(d.__CE_documentLoadHandled=!0,d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0,new Set(b),b.delete(d),c.patchAndUpgradeTree(d,b))})}else d.push(a)},b);if(this._hasPatches)for(a=0;a<
d.length;a++)this.patch(d[a]);for(a=0;a<d.length;a++)this.upgradeElement(d[a])};y.prototype.upgradeElement=function(a){if(void 0===a.__CE_state){var b=this.localNameToDefinition(a.localName);if(b){b.constructionStack.push(a);var c=b.constructor;try{try{if(new c!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback)for(b=b.observedAttributes,
c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}l(a)&&this.connectedCallback(a)}}};y.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};y.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};y.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&
f.attributeChangedCallback.call(a,b,c,d,e)};za.prototype.disconnect=function(){this._observer&&this._observer.disconnect()};za.prototype._handleMutations=function(a){var b=this._document.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)this._internals.patchAndUpgradeTree(c[d])};Aa.prototype.resolve=function(a){if(this._value)throw Error("Already resolved.");this._value=a;this._resolve&&this._resolve(a)};Aa.prototype.toPromise=
function(){return this._promise};w.prototype.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!dc(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this._internals.localNameToDefinition(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this._elementDefinitionIsRunning)throw Error("A custom element is already being defined.");this._elementDefinitionIsRunning=!0;var d,
e,f,g,h;try{var k=function(a){var b=l[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},l=b.prototype;if(!(l instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");d=k("connectedCallback");e=k("disconnectedCallback");f=k("adoptedCallback");g=k("attributeChangedCallback");h=b.observedAttributes||[]}catch(fa){return}finally{this._elementDefinitionIsRunning=!1}this._internals.setDefinition(a,{localName:a,
constructor:b,connectedCallback:d,disconnectedCallback:e,adoptedCallback:f,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]});this._unflushedLocalNames.push(a);this._flushPending||(this._flushPending=!0,this._flushCallback(function(){return c._flush()}))};w.prototype._flush=function(){if(!1!==this._flushPending)for(this._flushPending=!1,this._internals.patchAndUpgradeTree(document);0<this._unflushedLocalNames.length;){var a=this._unflushedLocalNames.shift();(a=this._whenDefinedDeferred.get(a))&&
a.resolve(void 0)}};w.prototype.get=function(a){if(a=this._internals.localNameToDefinition(a))return a.constructor};w.prototype.whenDefined=function(a){if(!dc(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this._whenDefinedDeferred.get(a);if(b)return b.toPromise();b=new Aa;this._whenDefinedDeferred.set(a,b);this._internals.localNameToDefinition(a)&&-1===this._unflushedLocalNames.indexOf(a)&&b.resolve(void 0);return b.toPromise()};w.prototype.polyfillWrapFlushCallback=
function(a){this._documentConstructionObserver.disconnect();var b=this._flushCallback;this._flushCallback=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=w;w.prototype.define=w.prototype.define;w.prototype.get=w.prototype.get;w.prototype.whenDefined=w.prototype.whenDefined;w.prototype.polyfillWrapFlushCallback=w.prototype.polyfillWrapFlushCallback;var va=window.Document.prototype.createElement,Rc=window.Document.prototype.createElementNS,Qc=window.Document.prototype.importNode,
Sc=window.Document.prototype.prepend,Tc=window.Document.prototype.append,jb=window.Node.prototype.cloneNode,ga=window.Node.prototype.appendChild,rb=window.Node.prototype.insertBefore,wa=window.Node.prototype.removeChild,sb=window.Node.prototype.replaceChild,ya=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),ib=window.Element.prototype.attachShadow,ta=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),xa=window.Element.prototype.getAttribute,kb=window.Element.prototype.setAttribute,
mb=window.Element.prototype.removeAttribute,ha=window.Element.prototype.getAttributeNS,lb=window.Element.prototype.setAttributeNS,nb=window.Element.prototype.removeAttributeNS,pb=window.Element.prototype.insertAdjacentElement,Hc=window.Element.prototype.prepend,Ic=window.Element.prototype.append,Kc=window.Element.prototype.before,Lc=window.Element.prototype.after,Mc=window.Element.prototype.replaceWith,Nc=window.Element.prototype.remove,Vc=window.HTMLElement,ua=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,
"innerHTML"),ob=window.HTMLElement.prototype.insertAdjacentElement,tb=new function(){},pa=window.customElements;if(!pa||pa.forcePolyfill||"function"!=typeof pa.define||"function"!=typeof pa.get){var ba=new y;Uc(ba);Pc(ba);Oc(ba);Gc(ba);document.__CE_hasRegistry=!0;var vd=new w(ba);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:vd})}var I={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1E3},G={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,
customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},u=!(window.ShadyDOM&&window.ShadyDOM.inUse),v=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)");window.ShadyCSS?gc(window.ShadyCSS):window.WebComponents&&
gc(window.WebComponents.flags);var uc=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,vc=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,wd=/(--[\w-]+)\s*([:,;)]|$)/gi,xd=/(animation\s*:)|(animation-name\s*:)/,jd=/@media[^(]*(\([^)]*\))/,yd=/\{[^}]*\}/g,N=null;q.prototype.dom=function(a,b,c){a.__styleScoped?a.__styleScoped=null:this._transformDom(a,b||"",c)};q.prototype._transformDom=function(a,b,c){a.nodeType===Node.ELEMENT_NODE&&this.element(a,b,c);if(a="template"===a.localName?
(a.content||a._content).childNodes:a.children||a.childNodes)for(var d=0;d<a.length;d++)this._transformDom(a[d],b,c)};q.prototype.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute(zd);c?d&&(b=d.replace("style-scope","").replace(b,""),la(a,b)):la(a,(d?d+" ":"")+"style-scope "+b)}};q.prototype.elementStyles=function(a,b,c){var d=a.__cssBuild;u||"shady"===
d?b=V(b,c):(a=O(a),b=this.css(b,a.is,a.typeExtension,c)+"\n\n");return b.trim()};q.prototype.css=function(a,b,c,d){var e=this._calcHostScope(b,c);b=this._calcElementScope(b);var f=this;return V(a,function(a){a.isScoped||(f.rule(a,b,e),a.isScoped=!0);d&&d(a,b,e)})};q.prototype._calcElementScope=function(a){return a?Ad+a:""};q.prototype._calcHostScope=function(a,b){return b?"[is="+a+"]":a};q.prototype.rule=function(a,b,c){this._transformRule(a,this._transformComplexSelector,b,c)};q.prototype._transformRule=
function(a,b,c,d){a.selector=a.transformedSelector=this._transformRuleCss(a,b,c,d)};q.prototype._transformRuleCss=function(a,b,c,d){var e=a.selector.split(wc);if(!hc(a)){a=0;for(var f=e.length,g;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.join(wc)};q.prototype._transformComplexSelector=function(a,b,c){var d=this,e=!1;a=a.trim();a=a.replace(Bd,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Cd,ab+" $1");return a=a.replace(Dd,function(a,g,h){e||(a=d._transformCompoundSelector(h,
g,b,c),e=e||a.stop,g=a.combinator,h=a.value);return g+h})};q.prototype._transformCompoundSelector=function(a,b,c,d){var e=a.indexOf(bb);0<=a.indexOf(ab)?a=this._transformHostSelector(a,d):0!==e&&(a=c?this._transformSimpleSelector(a,c):a);c=!1;0<=e&&(b="",c=!0);var f;c&&(f=!0,c&&(a=a.replace(Ed,function(a,b){return" > "+b})));a=a.replace(Fd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,combinator:b,stop:f}};q.prototype._transformSimpleSelector=function(a,b){a=a.split(xc);
a[0]+=b;return a.join(xc)};q.prototype._transformHostSelector=function(a,b){var c=a.match(yc);return(c=c&&c[2].trim()||"")?c[0].match(zc)?a.replace(yc,function(a,c,f){return b+f}):c.split(zc)[0]===b?c:Gd:a.replace(ab,b)};q.prototype.documentRule=function(a){a.selector=a.parsedSelector;this.normalizeRootSelector(a);this._transformRule(a,this._transformDocumentSelector)};q.prototype.normalizeRootSelector=function(a){a.selector===Hd&&(a.selector="html")};q.prototype._transformDocumentSelector=function(a){return a.match(bb)?
this._transformComplexSelector(a,Ac):this._transformSimpleSelector(a.trim(),Ac)};da.global.Object.defineProperties(q.prototype,{SCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Bd=/:(nth[-\w]+)\(([^)]+)\)/,Ac=":not(.style-scope)",wc=",",Dd=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,zc=/[[.:#*]/,ab=":host",Hd=":root",bb="::slotted",Cd=new RegExp("^("+bb+")"),yc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ed=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Fd=/(.*):dir\((?:(ltr|rtl))\)/,
Ad=".",xc=":",zd="class",Gd="should_not_match",r=new q;t.get=function(a){return a?a.__styleInfo:null};t.set=function(a,b){return a.__styleInfo=b};t.prototype._getStyleRules=function(){return this.styleRules};t.prototype._getStyleRules=t.prototype._getStyleRules;var Bc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),Id=navigator.userAgent.match("Trident");m.prototype.decorateStyles=function(a){var b=
this,c={},d=[],e=0;W(a,function(a){b.decorateRule(a);a.index=e++;b.collectPropertiesInCssText(a.propertyInfo.cssText,c)},function(a){d.push(a)});a._keyframes=d;a=[];for(var f in c)a.push(f);return a};m.prototype.decorateRule=function(a){if(a.propertyInfo)return a.propertyInfo;var b={},c={};this.collectProperties(a,c)&&(b.properties=c,a.rules=null);b.cssText=this.collectCssText(a);return a.propertyInfo=b};m.prototype.collectProperties=function(a,b){var c=a.propertyInfo;if(c){if(c.properties)return Object.assign(b,
c.properties),!0}else{for(var c=a.parsedCssText,d;a=uc.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};m.prototype.collectCssText=function(a){return this.collectConsumingCssText(a.parsedCssText)};m.prototype.collectConsumingCssText=function(a){return a.replace(yd,"").replace(uc,"")};m.prototype.collectPropertiesInCssText=function(a,b){for(var c;c=wd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};m.prototype.reify=function(a){for(var b=Object.getOwnPropertyNames(a),
c=0,d;c<b.length;c++)d=b[c],a[d]=this.valueForProperty(a[d],a)};m.prototype.valueForProperty=function(a,b){if(a)if(0<=a.indexOf(";"))a=this.valueForProperties(a,b);else{var c=this;a=jc(a,function(a,e,f,g){if(!e)return a+g;(e=c.valueForProperty(b[e],b))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=c.valueForProperty(b[f]||f,b)||f;return a+(e||"")+g})}return a&&a.trim()||""};m.prototype.valueForProperties=function(a,b){a=a.split(";");for(var c=0,d,e;c<a.length;c++)if(d=a[c]){vc.lastIndex=
0;if(e=vc.exec(d))d=this.valueForProperty(b[e[1]],b);else if(e=d.indexOf(":"),-1!==e){var f=d.substring(e),f=f.trim(),f=this.valueForProperty(f,b)||f;d=d.substring(0,e)+f}a[c]=d&&d.lastIndexOf(";")===d.length-1?d.slice(0,-1):d||""}return a.join(";")};m.prototype.applyProperties=function(a,b){var c="";a.propertyInfo||this.decorateRule(a);a.propertyInfo.cssText&&(c=this.valueForProperties(a.propertyInfo.cssText,b));a.cssText=c};m.prototype.applyKeyframeTransforms=function(a,b){var c=a.cssText,d=a.cssText;
null==a.hasAnimations&&(a.hasAnimations=xd.test(c));if(a.hasAnimations)if(null==a.keyframeNamesToTransform){a.keyframeNamesToTransform=[];for(var e in b)d=b[e],d=d(c),c!==d&&(c=d,a.keyframeNamesToTransform.push(e))}else{for(e=0;e<a.keyframeNamesToTransform.length;++e)d=b[a.keyframeNamesToTransform[e]],c=d(c);d=c}a.cssText=d};m.prototype.propertyDataFromStyles=function(a,b){var c={},d=this,e=[];W(a,function(a){a.propertyInfo||d.decorateRule(a);var f=a.transformedSelector||a.parsedSelector;b&&a.propertyInfo.properties&&
f&&Bc.call(b,f)&&(d.collectProperties(a,c),a=a.index,f=parseInt(a/32,10),e[f]=(e[f]||0)|1<<a%32)},null,!0);return{properties:c,key:e}};m.prototype.whenHostOrRootRule=function(a,b,c,d){b.propertyInfo||this.decorateRule(b);if(b.propertyInfo.properties){var e=O(a),f=e.is,e=e.typeExtension;a=a.is?r._calcHostScope(f,e):"html";var g=b.parsedSelector,e=":host > *"===g||"html"===g,h=0===g.indexOf(":host")&&!e;"shady"===c&&(e=g===a+" > *."+a||-1!==g.indexOf("html"),h=!e&&0===g.indexOf(a));"shadow"===c&&(e=
":host > *"===g||"html"===g,h=h&&!e);if(e||h)c=a,h&&(u&&!b.transformedSelector&&(b.transformedSelector=r._transformRuleCss(b,r._transformComplexSelector,r._calcElementScope(f),a)),c=b.transformedSelector||a),d({selector:c,isHost:h,isRoot:e})}};m.prototype.hostAndRootPropertiesForScope=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;W(b,function(b){e.whenHostOrRootRule(a,b,f,function(f){Bc.call(a._element||a,f.selector)&&(f.isHost?e.collectProperties(b,c):e.collectProperties(b,d))})},null,!0);
return{rootProps:d,hostProps:c}};m.prototype.transformStyles=function(a,b,c){var d=this,e=O(a),f=r._calcHostScope(e.is,e.typeExtension),e=a.extends?"\\"+f.slice(0,-1)+"\\]":f,g=new RegExp("(?:^|[^.#[:])"+e+"($|[.:[\\s>+~])"),e=t.get(a).styleRules,h=this._elementKeyframeTransforms(a,e,c);return r.elementStyles(a,e,function(a){d.applyProperties(a,b);u||hc(a)||!a.cssText||(d.applyKeyframeTransforms(a,h),d._scopeSelector(a,g,f,c))})};m.prototype._elementKeyframeTransforms=function(a,b,c){a=b._keyframes;
b={};if(!u&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this._scopeKeyframes(e,c),b[e.keyframesName]=this._keyframesRuleTransformer(e);return b};m.prototype._keyframesRuleTransformer=function(a){return function(b){return b.replace(a.keyframesNameRx,a.transformedKeyframesName)}};m.prototype._scopeKeyframes=function(a,b){a.keyframesNameRx=new RegExp(a.keyframesName,"g");a.transformedKeyframesName=a.keyframesName+"-"+b;a.transformedSelector=a.transformedSelector||a.selector;a.selector=a.transformedSelector.replace(a.keyframesName,
a.transformedKeyframesName)};m.prototype._scopeSelector=function(a,b,c,d){a.transformedSelector=a.transformedSelector||a.selector;d="."+d;for(var e=a.transformedSelector.split(","),f=0,g=e.length,h;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};m.prototype.applyElementScopeSelector=function(a,b,c){var d=a.getAttribute("class")||"",e=d;c&&(e=d.replace(new RegExp("\\s*x-scope\\s*"+c+"\\s*","g")," "));e+=(e?" ":"")+"x-scope "+b;d!==e&&la(a,e)};m.prototype.applyElementStyle=
function(a,b,c,d){b=d?d.textContent||"":this.transformStyles(a,b,c);var e=t.get(a),f=e.customStyle;f&&!u&&f!==d&&(f._useCount--,0>=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));u?e.customStyle?(e.customStyle.textContent=b,d=e.customStyle):b&&(d=Ta(b,c,a.shadowRoot,e.placeholder)):d?d.parentNode||ic(d,null,e.placeholder):b&&(d=Ta(b,c,null,e.placeholder));d&&(d._useCount=d._useCount||0,e.customStyle!=d&&d._useCount++,e.customStyle=d);Id&&(d.textContent=d.textContent);return d};m.prototype.applyCustomStyle=
function(a,b){var c=ka(a),d=this;a.textContent=V(c,function(a){var c=a.cssText=a.parsedCssText;a.propertyInfo&&a.propertyInfo.cssText&&(c=c.replace(G.customProp,"").replace(G.mixinProp,""),a.cssText=d.valueForProperties(c,b))})};da.global.Object.defineProperties(m.prototype,{XSCOPE_NAME:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var K=new m,cb={},qa=window.customElements;if(qa&&!u){var Jd=qa.define;qa.define=function(a,b,c){var d=document.createComment(" Shady DOM styles for "+
a+" "),e=document.head;e.insertBefore(d,(N?N.nextSibling:null)||e.firstChild);N=d;cb[a]=d;return Jd.call(qa,a,b,c)}}ea.prototype._validate=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.properties[e]!==b[e])return!1}return!0};ea.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({properties:b,styleElement:c,scopeSelector:d});e.length>this.typeMax&&e.shift();this.cache[a]=e};ea.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this._validate(e,
b,c))return e}};if(!u){var Cc=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head){for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d],f=e;if(f.classList&&!f.classList.contains(r.SCOPE_NAME)||f instanceof window.SVGElement&&(!f.hasAttribute("class")||0>f.getAttribute("class").indexOf(r.SCOPE_NAME)))if(f=e.getRootNode(),f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=f.host))f=O(f).is,r.dom(e,f)}for(d=0;d<c.removedNodes.length;d++)if(e=
c.removedNodes[d],e.nodeType===Node.ELEMENT_NODE&&(f=void 0,e.classList?f=Array.from(e.classList):e.hasAttribute("class")&&(f=e.getAttribute("class").split(/\s+/)),void 0!==f)){var g=f.indexOf(r.SCOPE_NAME);0<=g&&(f=f[g+1])&&r.dom(e,f,!0)}}}},Dc=new MutationObserver(Cc),Ec=function(a){Dc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.flush)Ec(document);else{var db=function(){Ec(document.body)};window.HTMLImports?window.HTMLImports.whenReady(db):requestAnimationFrame(function(){if("loading"===
document.readyState){var a=function(){db();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",a)}else db()})}hb=function(){Cc(Dc.takeRecords())}}var ma={},md=Promise.resolve(),Ua=null,kc=window.HTMLImports&&window.HTMLImports.whenReady||null,Va,ra=null,ca=null;E.prototype.enqueueDocumentValidation=function(){!this.enqueued&&ca&&(this.enqueued=!0,gb(ca))};E.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),
this.enqueueDocumentValidation())};E.prototype.getStyleForCustomStyle=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};E.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);if(d){var e=d.__appliedElement;if(e)for(var f=0;f<d.attributes.length;f++){var g=d.attributes[f];e.setAttribute(g.name,g.value)}d=e||d;ra&&ra(d);c.__shadyCSSCachedStyle=d}}}return a};
E.prototype.addCustomStyle=E.prototype.addCustomStyle;E.prototype.getStyleForCustomStyle=E.prototype.getStyleForCustomStyle;E.prototype.processStyles=E.prototype.processStyles;Object.defineProperties(E.prototype,{transformCallback:{get:function(){return ra},set:function(a){ra=a}},validateCallback:{get:function(){return ca},set:function(a){var b=!1;ca||(b=!0);ca=a;b&&this.enqueueDocumentValidation()}}});var Fc=new ea;k.prototype.flush=function(){hb()};k.prototype._generateScopeSelector=function(a){var b=
this._scopeCounter[a]=(this._scopeCounter[a]||0)+1;return a+"-"+b};k.prototype.getStyleAst=function(a){return ka(a)};k.prototype.styleAstToString=function(a){return V(a)};k.prototype._gatherStyles=function(a){a=a.content.querySelectorAll("style");for(var b=[],c=0;c<a.length;c++){var d=a[c];b.push(d.textContent);d.parentNode.removeChild(d)}return b.join("").trim()};k.prototype._getCssBuild=function(a){return(a=a.content.querySelector("style"))?a.getAttribute("css-build")||"":""};k.prototype.prepareTemplate=
function(a,b,c){if(!a._prepared){a._prepared=!0;a.name=b;a.extends=c;ma[b]=a;var d=this._getCssBuild(a),e=this._gatherStyles(a);c={is:b,extends:c,__cssBuild:d};u||r.dom(a.content,b);this._ensure();var f=this._applyShim.detectMixin(e),e=Sa(e);f&&v&&this._applyShim.transformRules(e,b);a._styleAst=e;a._cssBuild=d;d=[];v||(d=K.decorateStyles(a._styleAst,c));if(!d.length||v)b=this._generateStaticStyle(c,a._styleAst,u?a.content:null,cb[b]),a._style=b;a._ownPropertyNames=d}};k.prototype._generateStaticStyle=
function(a,b,c,d){b=r.elementStyles(a,b);if(b.length)return Ta(b,a.is,c,d)};k.prototype._prepareHost=function(a){var b=O(a),c=b.is,b=b.typeExtension,d=cb[c],e=ma[c],f,g,h;e&&(f=e._styleAst,g=e._ownPropertyNames,h=e._cssBuild);return t.set(a,new t(f,d,g,c,b,h))};k.prototype._ensureApplyShim=function(){if(!this._applyShim)if(window.ShadyCSS.ApplyShim)this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=kd;else{var a={};this._applyShim=(a.detectMixin=function(){return!1},a.transformRule=
function(){},a.transformRules=function(){},a)}};k.prototype._ensureCustomStyleInterface=function(){var a=this;if(!this._customStyleInterface)if(window.ShadyCSS.CustomStyleInterface)this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=function(b){a.transformCustomStyleForDocument(b)},this._customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){(a._customStyleInterface.enqueued||a._elementsHaveApplied)&&a.flushCustomStyles()})};
else{var b={};this._customStyleInterface=(b.processStyles=function(){},b.enqueued=!1,b.getStyleForCustomStyle=function(){return null},b)}};k.prototype._ensure=function(){this._ensureApplyShim();this._ensureCustomStyleInterface()};k.prototype.flushCustomStyles=function(){this._ensure();var a=this._customStyleInterface.processStyles();this._customStyleInterface.enqueued&&(v?this._revalidateCustomStyleApplyShim(a):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(a)),
this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!v&&this.styleDocument())};k.prototype.styleElement=function(a,b){var c=O(a).is,d=t.get(a);d||(d=this._prepareHost(a));this._isRootOwner(a)||(this._elementsHaveApplied=!0);b&&(d.overrideStyleProperties=d.overrideStyleProperties||{},Object.assign(d.overrideStyleProperties,b));if(v){if(d.overrideStyleProperties){b=d.overrideStyleProperties;for(var e in b)null===e?a.style.removeProperty(e):a.style.setProperty(e,b[e])}((e=ma[c])||this._isRootOwner(a))&&
e&&e._style&&e._applyShimInvalid&&(e._validating||(this._ensure(),this._applyShim.transformRules(e._styleAst,c),e._style.textContent=r.elementStyles(a,d.styleRules),ld(e)),u&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=r.elementStyles(a,d.styleRules)),d.styleRules=e._styleAst)}else this._updateProperties(a,d),d.ownStylePropertyNames&&d.ownStylePropertyNames.length&&this._applyStyleProperties(a,d)};k.prototype._styleOwnerForNode=function(a){return(a=a.getRootNode().host)?t.get(a)?a:this._styleOwnerForNode(a):
this._documentOwner};k.prototype._isRootOwner=function(a){return a===this._documentOwner};k.prototype._applyStyleProperties=function(a,b){var c=O(a).is,d=Fc.fetch(c,b.styleProperties,b.ownStylePropertyNames),e=d?d.styleElement:null,f=b.scopeSelector;b.scopeSelector=d&&d.scopeSelector||this._generateScopeSelector(c);e=K.applyElementStyle(a,b.styleProperties,b.scopeSelector,e);u||K.applyElementScopeSelector(a,b.scopeSelector,f);d||Fc.store(c,b.styleProperties,e,b.scopeSelector);return e};k.prototype._updateProperties=
function(a,b){var c=this._styleOwnerForNode(a),d=t.get(c),c=Object.create(d.styleProperties||null),e=K.hostAndRootPropertiesForScope(a,b.styleRules);a=K.propertyDataFromStyles(d.styleRules,a).properties;Object.assign(c,e.hostProps,a,e.rootProps);this._mixinOverrideStyles(c,b.overrideStyleProperties);K.reify(c);b.styleProperties=c};k.prototype._mixinOverrideStyles=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};k.prototype.styleDocument=function(a){this.styleSubtree(this._documentOwner,
a)};k.prototype.styleSubtree=function(a,b){var c=a.shadowRoot;(c||this._isRootOwner(a))&&this.styleElement(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubtree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSubtree(a[b])};k.prototype._revalidateCustomStyleApplyShim=function(a){for(var b=0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&this._revalidateApplyShim(c)}};k.prototype._applyCustomStyles=function(a){for(var b=
0;b<a.length;b++){var c=this._customStyleInterface.getStyleForCustomStyle(a[b]);c&&K.applyCustomStyle(c,this._documentOwnerStyleInfo.styleProperties)}};k.prototype.transformCustomStyleForDocument=function(a){var b=this,c=ka(a);W(c,function(a){u?r.normalizeRootSelector(a):r.documentRule(a);v&&(b._ensure(),b._applyShim.transformRule(a))});v?a.textContent=V(c):this._documentOwnerStyleInfo.styleRules.rules.push(c)};k.prototype._revalidateApplyShim=function(a){if(v){var b=ka(a);this._ensure();this._applyShim.transformRules(b);
a.textContent=V(b)}};k.prototype.getComputedStyleValue=function(a,b){var c;v||(c=(t.get(a)||t.get(this._styleOwnerForNode(a))).styleProperties[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};k.prototype.setElementClass=function(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d)for(var d=d.split(/\s/),e=0;e<d.length;e++)if(d[e]===r.SCOPE_NAME){c=d[e+1];break}}c&&b.push(r.SCOPE_NAME,c);v||(c=t.get(a))&&c.scopeSelector&&
b.push(K.XSCOPE_NAME,c.scopeSelector);la(a,b.join(" "))};k.prototype._styleInfoForNode=function(a){return t.get(a)};k.prototype.flush=k.prototype.flush;k.prototype.prepareTemplate=k.prototype.prepareTemplate;k.prototype.styleElement=k.prototype.styleElement;k.prototype.styleDocument=k.prototype.styleDocument;k.prototype.styleSubtree=k.prototype.styleSubtree;k.prototype.getComputedStyleValue=k.prototype.getComputedStyleValue;k.prototype.setElementClass=k.prototype.setElementClass;k.prototype._styleInfoForNode=
k.prototype._styleInfoForNode;k.prototype.transformCustomStyleForDocument=k.prototype.transformCustomStyleForDocument;k.prototype.getStyleAst=k.prototype.getStyleAst;k.prototype.styleAstToString=k.prototype.styleAstToString;k.prototype.flushCustomStyles=k.prototype.flushCustomStyles;Object.defineProperties(k.prototype,{nativeShadow:{get:function(){return u}},nativeCss:{get:function(){return v}}});var H=new k,eb,fb;window.ShadyCSS&&(eb=window.ShadyCSS.ApplyShim,fb=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:H,prepareTemplate:function(a,b,c){H.flushCustomStyles();H.prepareTemplate(a,b,c)},styleSubtree:function(a,b){H.flushCustomStyles();H.styleSubtree(a,b)},styleElement:function(a){H.flushCustomStyles();H.styleElement(a)},styleDocument:function(a){H.flushCustomStyles();H.styleDocument(a)},getComputedStyleValue:function(a,b){return H.getComputedStyleValue(a,b)},nativeCss:v,nativeShadow:u};eb&&(window.ShadyCSS.ApplyShim=eb);fb&&(window.ShadyCSS.CustomStyleInterface=fb)})();
}).call(self)
//# sourceMappingURL=webcomponents-sd-ce.js.map

File diff suppressed because one or more lines are too long