/** @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,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},p="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ba(){ba=function(){};p.Symbol||(p.Symbol=ca)}var ca=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); function da(){ba();var a=p.Symbol.iterator;a||(a=p.Symbol.iterator=p.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});da=function(){}}function ea(a){var b=0;return fa(function(){return b]/g;function hb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function ib(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&kb[k.localName]?h:h.replace(gb,hb);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 y=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),z=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function mb(a){var b=[];y.currentNode=a;for(a=y.firstChild();a;)b.push(a),a=y.nextSibling();return b} var A={parentNode:function(a){y.currentNode=a;return y.parentNode()},firstChild:function(a){y.currentNode=a;return y.firstChild()},lastChild:function(a){y.currentNode=a;return y.lastChild()},previousSibling:function(a){y.currentNode=a;return y.previousSibling()},nextSibling:function(a){y.currentNode=a;return y.nextSibling()}};A.childNodes=mb;A.parentElement=function(a){z.currentNode=a;return z.parentNode()};A.firstElementChild=function(a){z.currentNode=a;return z.firstChild()}; A.lastElementChild=function(a){z.currentNode=a;return z.lastChild()};A.previousElementSibling=function(a){z.currentNode=a;return z.previousSibling()};A.nextElementSibling=function(a){z.currentNode=a;return z.nextSibling()};A.children=function(a){var b=[];z.currentNode=a;for(a=z.firstChild();a;)b.push(a),a=z.nextSibling();return Ba(b)};A.innerHTML=function(a){return lb(a,function(a){return mb(a)})}; A.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var nb=t.s,ob=[Node.prototype,Element.prototype,HTMLElement.prototype];function B(a){var b;a:{for(b=0;be.assignedNodes.length&&(e.P=!0)}e.P&&(e.P=!1,Sc(this,c))}c=this.g;b=[];for(e=0;eb.indexOf(d))||b.push(d);for(c=0;c "+b}))}a=a.replace(vf,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,ra:b,stop:f}} function tf(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,xf=/[[.:#*]/,pf=/^(::slotted)/,wf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,uf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,vf=/(.*):dir\((?:(ltr|rtl))\)/,nf=/:(?:matches|any|-(?:webkit|moz)-any)/,W=new $e;function zf(a,b,c,d,e){this.v=a||null;this.b=b||null;this.c=c||[];this.F=null;this.cssBuild=e||"";this.J=d||"";this.a=this.o=this.A=null}function X(a){return a?a.__styleInfo:null}function Af(a,b){return a.__styleInfo=b}zf.prototype.f=function(){return this.v};zf.prototype._getStyleRules=zf.prototype.f;function Bf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Cf=navigator.userAgent.match("Trident");function Df(){}function Ef(a){var b={},c=[],d=0;Oe(a,function(a){Ff(a);a.index=d++;a=a.i.cssText;for(var c;c=Ie.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} function Ff(a){if(!a.i){var b={},c={};Gf(a,c)&&(b.u=c,a.rules=null);b.cssText=a.parsedCssText.replace(Le,"").replace(Ge,"");a.i=b}}function Gf(a,b){var c=a.i;if(c){if(c.u)return Object.assign(b,c.u),!0}else{c=a.parsedCssText;for(var d;a=Ge.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function Hf(a,b,c){b&&(b=0<=b.indexOf(";")?If(a,b,c):Ve(b,function(b,e,f,g){if(!e)return b+g;(e=Hf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Hf(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} function If(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.j||(b.j=jf(W,b,W.b,a?"."+a:"",e)),c=b.j||e),d({Z:c,xa:h,Sa:g})}}function Lf(a,b,c){var d={},e={};Oe(b,function(b){Kf(a,b,c,function(c){Bf.call(a._element||a,c.Z)&&(c.xa?Gf(b,d):Gf(b,e))})},null,!0);return{za:e,va:d}} function Mf(a,b,c,d){var e=V(b),f=hf(e.is,e.J),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.v;h=h.cssBuild;var k=Nf(e,d);return ff(b,e,function(b){var e="";b.i||Ff(b);b.i.cssText&&(e=If(a,b.i.cssText,c));b.cssText=e;if(!S&&!Qe(b)&&b.cssText){var h=e=b.cssText;null==b.ca&&(b.ca=Je.test(e));if(b.ca)if(null==b.R){b.R=[];for(var l in k)h=k[l],h=h(e),e!==h&&(e=h,b.R.push(l))}else{for(l=0;l=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));S?e.a? (e.a.textContent=d,c=e.a):d&&(c=Re(d,h,a.shadowRoot,e.b)):c?c.parentNode||(Cf&&-1