/** @license @nocompile Copyright (c) 2018 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(){/* 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 */ 'use strict';var n;function aa(a){var b=0;return function(){return b]/g;function Ma(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Na(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=l&&Qa[l.localName]?h:h.replace(La,Ma);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};var Sa=w.j,Ta={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Ua={};function Va(a){Ua[a]=function(b){return b["__shady_native_"+a]}}function Wa(a,b){A(a,b,"__shady_native_");for(var c in b)Va(c)}function D(a,b){b=void 0===b?[]:b;for(var c=0;c","+","~"]),h=g===e?a[e]:a.substring(e,g);if(","===h)b();else if(-1===[void 0," ",">","+","~"].indexOf(f)||" "!==h)" "===f&&-1!==[">","+","~"].indexOf(h)?d[d.length-1]=h:d.push(h);e=g+(g===e?1:0)}b();return c};function pc(a,b,c){var d=[];qc(a,b,c,d);return d}function qc(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,l=f(e);l&&h.push(e);g&&g(l)?e=l:(qc(e,f,g,h),e=void 0)}if(e)break}} var rc={get firstElementChild(){var a=v(this);if(a&&void 0!==a.firstChild){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=v(this);if(a&&void 0!==a.lastChild){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return x(this)?sa(Array.prototype.filter.call(ua(this),function(a){return a.nodeType=== Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}},J=B((rc.append=function(a){for(var b=[],c=0;cd.length)return[];for(b=za(pc(a,function(){return!0}).map(function(e){return za(d.map(function(f){var g=f.fa,h=g.length-1;return c(e,g[h])?{target:e,I:f,J:e,index:h}:[]}))}));b.some(function(e){return 0=e.index)return e;var f=e.target,g=e.J,h=e.I;e=e.index-1;var l=h.ua[e],k=h.fa[e];if(" "===l){l=[];for(g=g.__shady_parentElement;g;g=g.__shady_parentElement)c(g, k)&&l.push({target:f,I:h,J:g,index:e});return l}if(">"===l)return g=g.__shady_parentElement,c(g,k)?{target:f,I:h,J:g,index:e}:[];if("+"===l)return(g=g.__shady_previousElementSibling)&&c(g,k)?{target:f,I:h,J:g,index:e}:[];if("~"===l){l=[];for(g=g.__shady_previousElementSibling;g;g=g.__shady_previousElementSibling)c(g,k)&&l.push({target:f,I:h,J:g,index:e});return l}throw Error("Unrecognized combinator: '"+l+"'.");}));return Aa(b.map(function(e){return e.target}))} var K=w.querySelectorImplementation,tc=B({querySelector:function(a){if("native"===K){var b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a)),c=this.__shady_getRootNode();b=p(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.__shady_getRootNode()==c)return d;return null}if("selectorEngine"===K)return sc(this,a)[0]||null;if(void 0===K)return pc(this,function(e){return la.call(e,a)},function(e){return!!e})[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+ (K+"'"));},querySelectorAll:function(a,b){if(b||"native"===K){b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return sa(b.filter(function(d){return d.__shady_getRootNode()==c}))}if("selectorEngine"===K)return sa(sc(this,a));if(void 0===K)return sa(pc(this,function(d){return la.call(d,a)}));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+(K+"'"));}}),uc=w.L&&!w.s?xa({},J):J; xa(J,tc);/* Copyright (c) 2020 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 vc=B({after:function(a){for(var b=[],c=0;ce.assignedNodes.length&&(e.Y=!0)}e.Y&&(e.Y=!1,fd(this,c))}c=this.g;b=[];for(e=0;eb.indexOf(d))||b.push(d);for(c=0;c "+h}))}return{value:a,ta:b,stop:f}}function we(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ze=/[[.:#*]/,re=/^(::slotted)/,ye=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,xe=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ue=/(.*):dir\((?:(ltr|rtl))\)(.*)/,pe=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new de;function Be(a,b,c,d,e){this.A=a||null;this.h=b||null;this.aa=c||[];this.u=null;this.cssBuild=e||"";this.N=d||"";this.g=this.v=this.C=null}function X(a){return a?a.__styleInfo:null}function Ce(a,b){return a.__styleInfo=b}Be.prototype.i=function(){return this.A};Be.prototype._getStyleRules=Be.prototype.i;function De(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Ee=/:host\s*>\s*/,Fe=navigator.userAgent.match("Trident");function Ge(){}function He(a){var b={},c=[],d=0;Rd(a,function(f){Ie(f);f.index=d++;f=f.l.cssText;for(var g;g=Ld.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.h=c;a=[];for(var e in b)a.push(e);return a} function Ie(a){if(!a.l){var b={},c={};Je(a,c)&&(b.B=c,a.rules=null);b.cssText=a.parsedCssText.replace(Od,"").replace(Jd,"");a.l=b}}function Je(a,b){var c=a.l;if(c){if(c.B)return Object.assign(b,c.B),!0}else{c=a.parsedCssText;for(var d;a=Jd.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function Ke(a,b,c){b&&(b=0<=b.indexOf(";")?Le(a,b,c):Yd(b,function(d,e,f,g){if(!e)return d+g;(e=Ke(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Ke(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""} function Le(a,b,c){b=b.split(";");for(var d=0,e,f;d *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.m||(b.m=le(V,b,V.h,a?"."+a:"",e)),c=b.m||e),g&&"html"===e&&(c=b.m||b.T),d({ca:c,za:h,Ja:g})}} function Oe(a,b,c){var d={},e={};Rd(b,function(f){Ne(a,f,c,function(g){De.call(a._element||a,g.ca)&&(g.za?Je(f,d):Je(f,e))})},null,!0);return{Ca:e,ya:d}} function Pe(a,b,c,d){var e=U(b),f=ke(e.is,e.N),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.A;h=h.cssBuild;var l=Qe(e,d);return ie(b,e,function(k){var m="";k.l||Ie(k);k.l.cssText&&(m=Le(a,k.l.cssText,c));k.cssText=m;if(!R&&!Td(k)&&k.cssText){var r=m=k.cssText;null==k.ga&&(k.ga=Md.test(m));if(k.ga)if(null==k.S){k.S=[];for(var u in l)r=l[u],r=r(m),m!==r&&(m=r,k.S.push(u))}else{for(u=0;u=k._useCount&&k.parentNode&&k.parentNode.removeChild(k));R?l.g?(l.g.textContent=h,g=l.g):h&&(g=Ud(h,f,a.shadowRoot,l.h)):g?g.parentNode||(Fe&&-1