/** @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 Oa(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Pa(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&Ra[k.localName]?h:h.replace(Na,Oa);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 Ta=w.j,Ua={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Va={};function Wa(a){Va[a]=function(b){return b["__shady_native_"+a]}}function Xa(a,b){z(a,b,"__shady_native_");for(var c in b)Wa(c)}function B(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 sc(a,b,c){var d=[];tc(a,b,c,d);return d}function tc(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,k=f(e);k&&h.push(e);g&&g(k)?e=k:(tc(e,f,g,h),e=void 0)}if(e)break}} var uc={get firstElementChild(){var a=u(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=u(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)?ta(Array.prototype.filter.call(va(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}},vc=A((uc.append=function(a){for(var b=[],c=0;cd.length)return[];for(b=Ba(sc(a,function(){return!0}).map(function(e){return Ba(d.map(function(f){var g=f.ta,h=g.length-1;return c(e,g[h])?{target:e,N:f,O:e,index:h}:[]}))}));b.some(function(e){return 0=e.index)return e;var f=e.target,g=e.O,h=e.N;e=e.index-1;var k=h.Ha[e],l=h.ta[e];if(" "===k){k=[];for(g=g.__shady_parentElement;g;g=g.__shady_parentElement)c(g, l)&&k.push({target:f,N:h,O:g,index:e});return k}if(">"===k)return g=g.__shady_parentElement,c(g,l)?{target:f,N:h,O:g,index:e}:[];if("+"===k)return(g=g.__shady_previousElementSibling)&&c(g,l)?{target:f,N:h,O:g,index:e}:[];if("~"===k){k=[];for(g=g.__shady_previousElementSibling;g;g=g.__shady_previousElementSibling)c(g,l)&&k.push({target:f,N:h,O:g,index:e});return k}throw Error("Unrecognized combinator: '"+k+"'.");}));return Ca(b.map(function(e){return e.target}))} var G=w.querySelectorImplementation,xc=A({querySelector:function(a){if("native"===G){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"===G)return wc(this,a)[0]||null;if(void 0===G)return sc(this,function(e){return ma.call(e,a)},function(e){return!!e})[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+ (G+"'"));},querySelectorAll:function(a,b){if(b||"native"===G){b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return ta(b.filter(function(d){return d.__shady_getRootNode()==c}))}if("selectorEngine"===G)return ta(wc(this,a));if(void 0===G)return ta(sc(this,function(d){return ma.call(d,a)}));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+(G+"'"));}}),yc=w.R&&!w.s?ya({},vc):vc; ya(vc,xc);/* 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 zc=A({after:function(a){for(var b=[],c=0;ce.assignedNodes.length&&(e.ja=!0)}e.ja&&(e.ja=!1,kd(this,c))}c=this.g;b=[];for(e=0;eb.indexOf(d))||b.push(d);for(c=0;c "+h}))}return{value:a,Ga:b,stop:f}}function Of(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Rf=/[[.:#*]/,Jf=/^(::slotted)/,Qf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Pf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Mf=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Hf=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new vf;function Tf(a,b,c,d,e){this.A=a||null;this.h=b||null;this.la=c||[];this.u=null;this.cssBuild=e||"";this.T=d||"";this.g=this.v=this.C=null}function X(a){return a?a.__styleInfo:null}function Uf(a,b){return a.__styleInfo=b}Tf.prototype.i=function(){return this.A};Tf.prototype._getStyleRules=Tf.prototype.i;function Vf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Wf=/:host\s*>\s*/,Xf=navigator.userAgent.match("Trident");function Yf(){}function Zf(a){var b={},c=[],d=0;hf(a,function(f){$f(f);f.index=d++;f=f.l.cssText;for(var g;g=bf.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 $f(a){if(!a.l){var b={},c={};ag(a,c)&&(b.B=c,a.rules=null);b.cssText=a.parsedCssText.replace(ef,"").replace($e,"");a.l=b}}function ag(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=$e.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function bg(a,b,c){b&&(b=0<=b.indexOf(";")?cg(a,b,c):pf(b,function(d,e,f,g){if(!e)return d+g;(e=bg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=bg(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""} function cg(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=Df(V,b,V.h,a?"."+a:"",e)),c=b.m||e),g&&"html"===e&&(c=b.m||b.ca),d({na:c,Ma:h,Za:g})}} function fg(a,b,c){var d={},e={};hf(b,function(f){eg(a,f,c,function(g){Vf.call(a._element||a,g.na)&&(g.Ma?ag(f,d):ag(f,e))})},null,!0);return{Qa:e,La:d}} function gg(a,b,c,d){var e=U(b),f=Cf(e.is,e.T),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.A;h=h.cssBuild;var k=hg(e,d);return Af(b,e,function(l){var m="";l.l||$f(l);l.l.cssText&&(m=cg(a,l.l.cssText,c));l.cssText=m;if(!Q&&!kf(l)&&l.cssText){var q=m=l.cssText;null==l.ua&&(l.ua=cf.test(m));if(l.ua)if(null==l.ba){l.ba=[];for(var v in k)q=k[v],q=q(m),m!==q&&(m=q,l.ba.push(v))}else{for(v=0;v=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));Q?k.g?(k.g.textContent=h,g=k.g):h&&(g=lf(h,f,a.shadowRoot,k.h)):g?g.parentNode||(Xf&&-1