(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,p="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};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 Va(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Wa(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:g=g.data;g=k&&Ya[k.localName]?g:g.replace(Ua,Va);break a;case Node.COMMENT_NODE:g="\x3c!--"+g.data+"--\x3e";break a;default:throw window.console.error(g), Error("not implemented");}}c+=g}return c};var x={},y=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),z=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function $a(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=$a;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 Za(a,function(a){return $a(a)})};x.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 ab=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),bb=document.implementation.createHTMLDocument("inert"),cb=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),db={parentElement:{get:function(){var a=this.__shady&&this.__shady.parentNode;a&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:x.parentElement(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&this.__shady.parentNode; return void 0!==a?a:x.parentNode(this)},configurable:!0},nextSibling:{get:function(){var a=this.__shady&&this.__shady.nextSibling;return void 0!==a?a:x.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var a=this.__shady&&this.__shady.previousSibling;return void 0!==a?a:x.previousSibling(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(a){this.setAttribute("class",a)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&& void 0!==this.__shady.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(this.__shady&&void 0!==this.__shady.previousSibling){for(var a=this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return x.previousElementSibling(this)},configurable:!0}},eb={childNodes:{get:function(){if(t(this)){if(!this.__shady.childNodes){this.__shady.childNodes= [];for(var a=this.firstChild;a;a=a.nextSibling)this.__shady.childNodes.push(a)}var b=this.__shady.childNodes}else b=x.childNodes(this);b.item=function(a){return b[a]};return b},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var a=this.__shady&&this.__shady.firstChild;return void 0!==a?a:x.firstChild(this)},configurable:!0},lastChild:{get:function(){var a=this.__shady&&this.__shady.lastChild;return void 0!==a?a:x.lastChild(this)}, configurable:!0},textContent:{get:function(){if(t(this)){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){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0b.__shady.assignedNodes.length&&(b.__shady.Z=!0)}b.__shady.Z&&(b.__shady.Z=!1,ac(this,b))}a=this.l;b=[];for(c=0;cb.indexOf(d))||b.push(d);for(a=0;a "+b}))}a=a.replace(ne,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,ta:b,stop:f}}function le(a,b){a=a.split(oe);a[0]+=b;return a.join(oe)} function ke(a,b){var c=a.match(pe);return(c=c&&c[2].trim()||"")?c[0].match(qe)?a.replace(pe,function(a,c,f){return b+f}):c.split(qe)[0]===b?c:re:a.replace(ge,b)}function se(a){a.selector===te&&(a.selector="html")}Td.prototype.c=function(a){return a.match(je)?this.b(a,ue):le(a.trim(),ue)};p.Object.defineProperties(Td.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); var ee=/:(nth[-\w]+)\(([^)]+)\)/,ue=":not(.style-scope)",ce=",",he=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,qe=/[[.:#*]/,ge=":host",te=":root",je="::slotted",fe=new RegExp("^("+je+")"),pe=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,me=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ne=/(.*):dir\((?:(ltr|rtl))\)/,ae=".",oe=":",Xd="class",re="should_not_match",V=new Td;function ve(a,b,c,d){this.s=a||null;this.b=b||null;this.$=c||[];this.B=null;this.I=d||"";this.a=this.m=this.v=null}function W(a){return a?a.__styleInfo:null}function we(a,b){return a.__styleInfo=b}ve.prototype.c=function(){return this.s};ve.prototype._getStyleRules=ve.prototype.c;var xe,X=window.Element.prototype;xe=X.matches||X.matchesSelector||X.mozMatchesSelector||X.msMatchesSelector||X.oMatchesSelector||X.webkitMatchesSelector;var ye=navigator.userAgent.match("Trident");function ze(){}function Ae(a){var b={},c=[],d=0;S(a,function(a){Be(a);a.index=d++;a=a.f.cssText;for(var c;c=Id.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 Be(a){if(!a.f){var b={},c={};Ce(a,c)&&(b.o=c,a.rules=null);b.cssText=a.parsedCssText.replace(Ld,"").replace(Gd,"");a.f=b}}function Ce(a,b){var c=a.f;if(c){if(c.o)return Object.assign(b,c.o),!0}else{c=a.parsedCssText;for(var d;a=Gd.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function De(a,b,c){b&&(b=0<=b.indexOf(";")?Ee(a,b,c):Rd(b,function(b,e,f,h){if(!e)return b+h;(e=De(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=De(a,c[f]||f,c)||f;return b+(e||"")+h}));return b&&b.trim()||""} function Ee(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,g=0===f.indexOf(":host")&&!h;"shady"===c&&(h=f===e+" > *."+e||-1!==f.indexOf("html"),g=!h&&0===f.indexOf(e));"shadow"===c&&(h=":host > *"===f||"html"===f,g=g&&!h);if(h||g)c=e,g&&(P&&!b.j&&(b.j=be(V,b,V.b,a?ae+a:"",e)),c=b.j||e),d({Ba:c,xa:g,Ma:h})}} function He(a,b){var c={},d={},e=b&&b.__cssBuild;S(b,function(b){Ge(a,b,e,function(e){xe.call(a.La||a,e.Ba)&&(e.xa?Ce(b,c):Ce(b,d))})},null,!0);return{Aa:d,wa:c}} function Ie(a,b,c,d){var e=U(b),f=$d(e.is,e.I),h=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=W(b).s;var g=Je(e,d);return Yd(b,e,function(b){var e="";b.f||Be(b);b.f.cssText&&(e=Ee(a,b.f.cssText,c));b.cssText=e;if(!P&&!Od(b)&&b.cssText){var k=e=b.cssText;null==b.fa&&(b.fa=Jd.test(e));if(b.fa)if(null==b.N){b.N=[];for(var q in g)k=g[q],k=k(e),e!==k&&(e=k,b.N.push(q))}else{for(q=0;q=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));P?f.a?(f.a.textContent=e,d=f.a):e&&(d=Pd(e,g,a.shadowRoot,f.b)):d?d.parentNode||(ye&&-1< e.indexOf("@media")&&(d.textContent=e),Qd(d,null,f.b)):e&&(d=Pd(e,g,null,f.b));d&&(d._useCount=d._useCount||0,f.a!=d&&d._useCount++,f.a=d);g=d;P||(d=c.m,f=e=a.getAttribute("class")||"",h&&(f=e.replace(new RegExp("\\s*x-scope\\s*"+h+"\\s*","g")," ")),f+=(f?" ":"")+"x-scope "+d,e!==f&&Sd(a,f));b||ff.store(k,c.v,g,c.m)}};function kf(a,b){return(b=b.getRootNode().host)?W(b)?b:kf(a,b):a.c} function jf(a,b,c){a=kf(a,b);var d=W(a);a=Object.create(d.v||null);var e=He(b,c.s);b=Fe(d.s,b).o;Object.assign(a,e.wa,b,e.Aa);b=c.B;for(var f in b)if((e=b[f])||0===e)a[f]=e;f=Me;b=Object.getOwnPropertyNames(a);for(e=0;e