(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 */ var l;function ba(a){var b=0;return function(){return b]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,D={mc:function(a,b){a.href&&a.setAttribute("href",D.ka(a.getAttribute("href"),b));a.src&&a.setAttribute("src",D.ka(a.getAttribute("src"),b));if("style"===a.localName){var c=D.jb(a.textContent,b,db);a.textContent=D.jb(c,b,eb)}},jb:function(a,b,c){return a.replace(c, function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=D.ka(a,b));return c+"'"+a+"'"+e})},ka:function(a,b){if(void 0===D.na){D.na=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";D.na="http://a/c%20d"===c.href}catch(oc){}}if(D.na)return(new URL(a,b)).href;c=D.qb;c||(c=document.implementation.createHTMLDocument("temp"),D.qb=c,c.Ja=c.createElement("base"),c.head.appendChild(c.Ja),c.Ia=c.createElement("a"));c.Ja.href=b;c.Ia.href=a;return c.Ia.href||a}},S={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a= a.split(",");var d=a[1];d=-1e.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){var b=this;a=n(a,"link[rel=import]");q(a,function(a){return b.fb(a)})};k.prototype.fb=function(a){var b=this,c=a.href;if(void 0!==this.F[c]){var d=this.F[c];d&&d.__loaded&&(a.__import=d,this.cb(a))}else this.R++,this.F[c]="pending",S.load(c,function(a,d){a=b.uc(a,d||c);b.F[c]=a;b.R--;b.loadImports(a);b.hb()},function(){b.F[c]=null;b.R--;b.hb()})};k.prototype.uc=function(a,b){if(!a)return document.createDocumentFragment();aa&&(a=a.replace(Q,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,m(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=D.ka(c.getAttribute("href"),b),c.removeAttribute("href");c=n(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'); var d=0;q(c,function(a){h(a);D.mc(a,b);a.setAttribute("import-dependency","");if("script"===a.localName&&!a.src&&a.textContent){if("module"===a.type)throw Error("Inline module scripts are not supported in HTML Imports.");a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n")));a.textContent="";d++}});return a};k.prototype.hb=function(){var a=this;if(!this.R){this.Da.disconnect();this.flatten(document);var b=!1,c=!1,d= function(){c&&b&&(a.loadImports(document),a.R||(a.Da.observe(document.head,{childList:!0,subtree:!0}),a.lc()))};this.Ic(function(){c=!0;d()});this.Ac(function(){b=!0;d()})}};k.prototype.flatten=function(a){var b=this;a=n(a,"link[rel=import]");q(a,function(a){var c=b.F[a.href];(a.__import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.F[a.href]=a,a.readyState="loading",a.__import=a,b.flatten(c),a.appendChild(c))})};k.prototype.Ac=function(a){function b(e){if(e\x20\t\r\n\f]+)/i.exec(b)||["",""])[1].toLowerCase()];if(c)for(var d=0;d"+b+"";Q.body.innerHTML=b;for(a.bootstrap(Q);this.content.firstChild;)k.call(this.content,this.content.firstChild);b=Q.body;if(c)for(d=0;d"+this.innerHTML+""},set:function(a){if(this.parentNode){Q.body.innerHTML= a;for(a=this.ownerDocument.createDocumentFragment();Q.body.firstChild;)m.call(a,Q.body.firstChild);n.call(this.parentNode,a,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};mc(a.prototype);nc(a.prototype);a.bootstrap=function(c){c=b(c,"template");for(var d=0,e=c.length,f;d]/g,pc=function(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}; S=function(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:g=g.data;g=k&&ue[k.localName]?g:g.replace(oc,pc);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}}if(c||eb){a.pa=function(a,b){var c=f.call(a,!1);this.K&&this.K(c);b&&(m.call(c.content,f.call(a.content,!0)),gb(c.content,a.content));return c};var gb=function(c,d){if(d.querySelectorAll&& (d=b(d,"template"),0!==d.length)){c=b(c,"template");for(var e=0,f=c.length,h,g;e]/g;function bb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function hb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:g=g.data;g=k&&jb[k.localName]?g:g.replace(ab,bb);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 lb=w.l,mb={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},nb={};function ob(a){nb[a]=function(b){return b["__shady_native_"+a]}}function pb(a,b){z(a,b,"__shady_native_");for(var c in b)ob(c)}function B(a,b){b=void 0===b?[]:b;for(var c=0;cc.assignedNodes.length&& (c.ia=!0)}c.ia&&(c.ia=!1,this.Qa(b))}};l.Pa=function(a,b){var c=t(a),d=c.ba;c.ba=null;b||(b=(b=this.b[a.__shady_slot||"__catchall"])&&b[0]);b?(t(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(t(c.assignedSlot).ia=!0)};l.vb=function(a){var b=v(a),c=b.assignedNodes;b.assignedNodes=[];b.G=[];if(b.xa=c)for(b=0;bb.indexOf(d))||b.push(d)}for(a=0;a "+b}))}a=a.replace(jf,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,jc:b,stop:f}};l.ab=function(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,lf=/[[.:#*]/,ff=/^(::slotted)/,kf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,hf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,jf=/(.*):dir\((?:(ltr|rtl))\)/,ef=/:(?:matches|any|-(?:webkit|moz)-any)/,W=new Ye;function nf(a,b,c,d,e){this.A=a||null;this.placeholder=b||null;this.Fa=c||[];this.N=null;this.cssBuild=e||"";this.U=d||"";this.J=this.m=this.w=null}function X(a){return a?a.__styleInfo:null}function of(a,b){return a.__styleInfo=b}nf.prototype.Lb=function(){return this.A};nf.prototype._getStyleRules=nf.prototype.Lb;function pf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var qf=navigator.userAgent.match("Trident");function rf(){}function sf(a){var b={},c=[],d=0;Le(a,function(a){tf(a);a.index=d++;a=a.g.cssText;for(var c;c=Fe.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.Ob=c;a=[];for(var e in b)a.push(e);return a} function tf(a){if(!a.g){var b={},c={};uf(a,c)&&(b.v=c,a.rules=null);b.cssText=a.parsedCssText.replace(Ie,"").replace(De,"");a.g=b}}function uf(a,b){var c=a.g;if(c){if(c.v)return Object.assign(b,c.v),!0}else{c=a.parsedCssText;for(var d;a=De.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function vf(a,b,c){b&&(b=0<=b.indexOf(";")?wf(a,b,c):Se(b,function(b,e,f,h){if(!e)return b+h;(e=vf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=vf(a,c[f]||f,c)||f;return b+(e||"")+h}));return b&&b.trim()||""} function wf(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));if(h||g)c=e,g&&(b.j||(b.j=W.$a(b,W.Aa,W.Na(a),e)),c=b.j||e),d({Ha:c,rc:g,Kc:h})}}function zf(a,b,c){var d={},e={};Le(b,function(b){yf(a,b,c,function(c){pf.call(a._element||a,c.Ha)&&(c.rc?uf(b,d):uf(b,e))})},null,!0);return{zc:e,qc:d}} function Af(a,b,c,d){var e=V(b),f=W.oa(e.is,e.U),h=new RegExp("(?:^|[^.#[:])"+(b["extends"]?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),g=X(b);e=g.A;g=g.cssBuild;var k=a.Ab(b,e,d);return bf(b,e,function(b){var e="";b.g||tf(b);b.g.cssText&&(e=wf(a,b.g.cssText,c));b.cssText=e;if(!O&&!Ne(b)&&b.cssText){var g=e=b.cssText;null==b.eb&&(b.eb=Ge.test(e));if(b.eb)if(null==b.ja){b.ja=[];for(var m in k)g=k[m],g=g(e),e!==g&&(e=g,b.ja.push(m))}else{for(m=0;mthis.Fc&&e.shift();this.cache[a]=e};Gf.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.ic(e,b,c))return e}};function Hf(){}var If=new RegExp(W.W+"\\s*([^\\s]*)");function Jf(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(If))?a[1]:""}function Kf(a){var b=Ue(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?V(a).is:""} function Lf(a){for(var b=0;b=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));O?k.J?(k.J.textContent=g,e=k.J):g&&(e=Oe(g,h,a.shadowRoot,k.placeholder)):e?e.parentNode||(qf&&-1