(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ca(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function y(a){if(!(a instanceof Array)){a=ca(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var fa=da(this);/*

 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
*/
Array.from||(Array.from=function(a){return[].slice.call(a)});Object.assign||(Object.assign=function(a){for(var b=[].slice.call(arguments,1),c=0,d;c<b.length;c++)if(d=b[c])for(var e=a,f=Object.keys(d),g=0;g<f.length;g++){var h=f[g];e[h]=d[h]}return a});/*


 Copyright (c) 2014 Taylor Hakes
 Copyright (c) 2014 Forbes Lindesay

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
var ha=setTimeout;function ia(){}function ka(a,b){return function(){a.apply(b,arguments)}}function A(a){if(!(this instanceof A))throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this.D=0;this.Wa=!1;this.s=void 0;this.W=[];la(a,this)}
function qa(a,b){for(;3===a.D;)a=a.s;0===a.D?a.W.push(b):(a.Wa=!0,ra(function(){var c=1===a.D?b.Hc:b.Ic;if(null===c)(1===a.D?sa:ta)(b.promise,a.s);else{try{var d=c(a.s)}catch(e){ta(b.promise,e);return}sa(b.promise,d)}}))}
function sa(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof A){a.D=3;a.s=b;ua(a);return}if("function"===typeof c){la(ka(c,b),a);return}}a.D=1;a.s=b;ua(a)}catch(d){ta(a,d)}}function ta(a,b){a.D=2;a.s=b;ua(a)}
function ua(a){2===a.D&&0===a.W.length&&ra(function(){a.Wa||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.s)});for(var b=0,c=a.W.length;b<c;b++)qa(a,a.W[b]);a.W=null}function va(a,b,c){this.Hc="function"===typeof a?a:null;this.Ic="function"===typeof b?b:null;this.promise=c}function la(a,b){var c=!1;try{a(function(d){c||(c=!0,sa(b,d))},function(d){c||(c=!0,ta(b,d))})}catch(d){c||(c=!0,ta(b,d))}}A.prototype["catch"]=function(a){return this.then(null,a)};
A.prototype.then=function(a,b){var c=new this.constructor(ia);qa(this,new va(a,b,c));return c};A.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})};
function ya(a){return new A(function(b,c){function d(h,k){try{if(k&&("object"===typeof k||"function"===typeof k)){var m=k.then;if("function"===typeof m){m.call(k,function(p){d(h,p)},c);return}}e[h]=k;0===--f&&b(e)}catch(p){c(p)}}if(!a||"undefined"===typeof a.length)throw new TypeError("Promise.all accepts an array");var e=Array.prototype.slice.call(a);if(0===e.length)return b([]);for(var f=e.length,g=0;g<e.length;g++)d(g,e[g])})}
function za(a){return a&&"object"===typeof a&&a.constructor===A?a:new A(function(b){b(a)})}function Aa(a){return new A(function(b,c){c(a)})}function Ba(a){return new A(function(b,c){for(var d=0,e=a.length;d<e;d++)a[d].then(b,c)})}var ra="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){ha(a,0)};/*

 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
*/
/*

Copyright (c) 2017 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
*/
if(!window.Promise){window.Promise=A;A.prototype.then=A.prototype.then;A.all=ya;A.race=Ba;A.resolve=za;A.reject=Aa;var Ca=document.createTextNode(""),Da=[];(new MutationObserver(function(){for(var a=Da.length,b=0;b<a;b++)Da[b]();Da.splice(0,a)})).observe(Ca,{characterData:!0});ra=function(a){Da.push(a);Ca.textContent=0<Ca.textContent.length?"":"a"}};/*

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 Ea=document.createEvent("Event");Ea.initEvent("foo",!0,!0);Ea.preventDefault();if(!Ea.defaultPrevented){var Fa=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(Fa.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var Ga=/Trident/.test(navigator.userAgent);
if(!window.Event||Ga&&"function"!==typeof window.Event){var Ha=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(Ha){for(var Ia in Ha)window.Event[Ia]=Ha[Ia];window.Event.prototype=Ha.prototype}}
if(!window.CustomEvent||Ga&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;
if(!window.MouseEvent||Ga&&"function"!==typeof window.MouseEvent){var Ja=window.MouseEvent;window.MouseEvent=function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(Ja)for(var Ka in Ja)window.MouseEvent[Ka]=Ja[Ka];window.MouseEvent.prototype=Ja.prototype};/*

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 La,Ma,Na=Element.prototype,Qa=null!==(La=Object.getOwnPropertyDescriptor(Na,"attributes"))&&void 0!==La?La:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),Ra=null!==(Ma=null===Qa||void 0===Qa?void 0:Qa.get)&&void 0!==Ma?Ma:function(){return this.attributes},Sa=Array.prototype.map;Na.hasOwnProperty("getAttributeNames")||(Na.getAttributeNames=function(){return Sa.call(Ra.call(this),function(a){return a.name})});var Ta,Ua=Element.prototype;Ua.hasOwnProperty("matches")||(Ua.matches=null!==(Ta=Ua.webkitMatchesSelector)&&void 0!==Ta?Ta:Ua.msMatchesSelector);var Va=Node.prototype.appendChild;function Wa(a){a=a.prototype;a.hasOwnProperty("append")||Object.defineProperty(a,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];c=ca(c);for(d=c.next();!d.done;d=c.next())d=d.value,Va.call(this,"string"===typeof d?document.createTextNode(d):d)}})}Wa(Document);Wa(DocumentFragment);Wa(Element);var Xa,Ya,Za=Node.prototype.insertBefore,$a=null!==(Ya=null===(Xa=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===Xa?void 0:Xa.get)&&void 0!==Ya?Ya:function(){return this.firstChild};
function ab(a){a=a.prototype;a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=$a.call(this);c=ca(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Za.call(this,"string"===typeof e?document.createTextNode(e):e,d)}})}ab(Document);ab(DocumentFragment);ab(Element);var bb,cb,fb=Node.prototype.appendChild,gb=Node.prototype.removeChild,hb=null!==(cb=null===(bb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===bb?void 0:bb.get)&&void 0!==cb?cb:function(){return this.firstChild};
function ib(a){a=a.prototype;a.hasOwnProperty("replaceChildren")||Object.defineProperty(a,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];for(;null!==(d=hb.call(this));)gb.call(this,d);c=ca(c);for(d=c.next();!d.done;d=c.next())d=d.value,fb.call(this,"string"===typeof d?document.createTextNode(d):d)}})}ib(Document);ib(DocumentFragment);ib(Element);var jb,kb,lb,mb,nb=Node.prototype.insertBefore,ob=null!==(kb=null===(jb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===jb?void 0:jb.get)&&void 0!==kb?kb:function(){return this.parentNode},pb=null!==(mb=null===(lb=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===lb?void 0:lb.get)&&void 0!==mb?mb:function(){return this.nextSibling};
function qb(a){a=a.prototype;a.hasOwnProperty("after")||Object.defineProperty(a,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=ob.call(this);if(null!==d){var e=pb.call(this);c=ca(c);for(var f=c.next();!f.done;f=c.next())f=f.value,nb.call(d,"string"===typeof f?document.createTextNode(f):f,e)}}})}qb(CharacterData);qb(Element);var rb,sb,tb=Node.prototype.insertBefore,ub=null!==(sb=null===(rb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===rb?void 0:rb.get)&&void 0!==sb?sb:function(){return this.parentNode};
function vb(a){a=a.prototype;a.hasOwnProperty("before")||Object.defineProperty(a,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=ub.call(this);if(null!==d){c=ca(c);for(var e=c.next();!e.done;e=c.next())e=e.value,tb.call(d,"string"===typeof e?document.createTextNode(e):e,this)}}})}vb(CharacterData);vb(Element);var wb,xb,yb=Node.prototype.removeChild,zb=null!==(xb=null===(wb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===wb?void 0:wb.get)&&void 0!==xb?xb:function(){return this.parentNode};function Ab(a){a=a.prototype;a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=zb.call(this);b&&yb.call(b,this)}})}Ab(CharacterData);Ab(Element);var Bb,Cb,Db=Node.prototype.insertBefore,Eb=Node.prototype.removeChild,Fb=null!==(Cb=null===(Bb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Bb?void 0:Bb.get)&&void 0!==Cb?Cb:function(){return this.parentNode};
function Gb(a){a=a.prototype;a.hasOwnProperty("replaceWith")||Object.defineProperty(a,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=Fb.call(this);if(null!==d){c=ca(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Db.call(d,"string"===typeof e?document.createTextNode(e):e,this);Eb.call(d,this)}}})}Gb(CharacterData);Gb(Element);var Hb=window.Element.prototype,Ib=window.HTMLElement.prototype,Jb=window.SVGElement.prototype;!Ib.hasOwnProperty("classList")||Hb.hasOwnProperty("classList")||Jb.hasOwnProperty("classList")||Object.defineProperty(Hb,"classList",Object.getOwnPropertyDescriptor(Ib,"classList"));/*

 Copyright (c) 2014 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 Kb=document.createElement("style");Kb.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Lb=document.querySelector("head");Lb.insertBefore(Kb,Lb.firstChild);var Mb=window;Mb.WebComponents=Mb.WebComponents||{flags:{}};var Nb=document.querySelector('script[src*="webcomponents-lite.js"]'),Ob=/wc-(.+)/,Pb={};if(!Pb.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(Ob))&&(Pb[b[1]]=a[1]||!0)});if(Nb)for(var Qb=0,Rb=void 0;Rb=Nb.attributes[Qb];Qb++)"src"!==Rb.name&&(Pb[Rb.name]=Rb.value||!0);var Sb={};Pb.log&&Pb.log.split&&Pb.log.split(",").forEach(function(a){Sb[a]=!0});Pb.log=Sb}
Mb.WebComponents.flags=Pb;var Tb=Pb.shadydom;Tb&&(Mb.ShadyDOM=Mb.ShadyDOM||{},Mb.ShadyDOM.force=Tb);var Ub=Pb.register||Pb.ce;Ub&&window.customElements&&(Mb.customElements.forcePolyfill=Ub);/*

 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
*/
(function(){function a(){}function b(t,u){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return Oa.call(t,u);case Node.DOCUMENT_FRAGMENT_NODE:return kc.call(t,u);default:return lc.call(t,u)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function t(z,M){if(z instanceof DocumentFragment)for(var db;db=z.firstChild;)D.call(this,db,M);else D.call(this,
z,M);return z}e=!0;var u=Node.prototype.cloneNode;Node.prototype.cloneNode=function(z){z=u.call(this,z);this instanceof DocumentFragment&&(z.__proto__=DocumentFragment.prototype);return z};DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll;DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector;Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},
configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var D=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var G=Node.prototype.appendChild;Node.prototype.appendChild=function(z){z instanceof DocumentFragment?t.call(this,z,null):G.call(this,z);return z};var V=Node.prototype.removeChild,ea=Node.prototype.replaceChild;Node.prototype.replaceChild=function(z,M){z instanceof DocumentFragment?(t.call(this,z,M),V.call(this,M)):ea.call(this,z,M);return M};Document.prototype.createDocumentFragment=
function(){var z=this.createElement("df");z.__proto__=DocumentFragment.prototype;return z};var ma=Document.prototype.importNode;Document.prototype.importNode=function(z,M){M=ma.call(this,z,M||!1);z instanceof DocumentFragment&&(M.__proto__=DocumentFragment.prototype);return M}}();var f=Node.prototype.cloneNode,g=Document.prototype.createElement,h=Document.prototype.importNode,k=Node.prototype.removeChild,m=Node.prototype.appendChild,p=Node.prototype.replaceChild,w=DOMParser.prototype.parseFromString,
F=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},ba=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},lc=Element.prototype.querySelectorAll,Oa=Document.prototype.querySelectorAll,kc=DocumentFragment.prototype.querySelectorAll,mc=function(){if(!c){var t=document.createElement("template"),u=document.createElement("template");u.content.appendChild(document.createElement("div"));
t.content.appendChild(u);t=t.cloneNode(!0);return 0===t.content.childNodes.length||0===t.content.firstChild.content.childNodes.length||d}}();if(c){var ja=document.implementation.createHTMLDocument("template"),Q=!0,na=document.createElement("style");na.textContent="template{display:none;}";var wa=document.head;wa.insertBefore(na,wa.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var xa=!document.createElement("div").hasOwnProperty("innerHTML");a.T=function(t){if(!t.content&&t.namespaceURI===
document.documentElement.namespaceURI){t.content=ja.createDocumentFragment();for(var u;u=t.firstChild;)m.call(t.content,u);if(xa)t.__proto__=a.prototype;else if(t.cloneNode=function(D){return a.xa(this,D)},Q)try{oa(t),l(t)}catch(D){Q=!1}a.bootstrap(t.content)}};var Pa={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},oa=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return E(this)},set:function(u){var D=
Pa[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(u)||["",""])[1].toLowerCase()];if(D)for(var G=0;G<D.length;G++)u="<"+D[G]+">"+u+"</"+D[G]+">";ja.body.innerHTML=u;for(a.bootstrap(ja);this.content.firstChild;)k.call(this.content,this.content.firstChild);u=ja.body;if(D)for(G=0;G<D.length;G++)u=u.lastChild;for(;u.firstChild;)m.call(this.content,u.firstChild)},configurable:!0})},l=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(u){if(this.parentNode){ja.body.innerHTML=
u;for(u=this.ownerDocument.createDocumentFragment();ja.body.firstChild;)m.call(u,ja.body.firstChild);p.call(this.parentNode,u,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};oa(a.prototype);l(a.prototype);a.bootstrap=function(t){t=b(t,"template");for(var u=0,D=t.length,G;u<D&&(G=t[u]);u++)a.T(G)};document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var t=
g.apply(this,arguments);"template"===t.localName&&a.T(t);return t};DOMParser.prototype.parseFromString=function(){var t=w.apply(this,arguments);a.bootstrap(t);return t};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return E(this)},set:function(t){F.set.call(this,t);a.bootstrap(this)},configurable:!0,enumerable:!0});var q=/[&\u00A0"]/g,r=/[&\u00A0<>]/g,v=function(t){switch(t){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}};
na=function(t){for(var u={},D=0;D<t.length;D++)u[t[D]]=!0;return u};var C=na("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),x=na("style script xmp iframe noembed noframes plaintext noscript".split(" ")),E=function(t,u){"template"===t.localName&&(t=t.content);for(var D="",G=u?u(t):ba.get.call(t),V=0,ea=G.length,ma;V<ea&&(ma=G[V]);V++){a:{var z=ma;var M=t;var db=u;switch(z.nodeType){case Node.ELEMENT_NODE:for(var nc=z.localName,eb="<"+nc,Ag=z.attributes,
Od=0;M=Ag[Od];Od++)eb+=" "+M.name+'="'+M.value.replace(q,v)+'"';eb+=">";z=C[nc]?eb:eb+E(z,db)+"</"+nc+">";break a;case Node.TEXT_NODE:z=z.data;z=M&&x[M.localName]?z:z.replace(r,v);break a;case Node.COMMENT_NODE:z="\x3c!--"+z.data+"--\x3e";break a;default:throw window.console.error(z),Error("not implemented");}}D+=z}return D}}if(c||mc){a.xa=function(t,u){var D=f.call(t,!1);this.T&&this.T(D);u&&(m.call(D.content,f.call(t.content,!0)),pa(D.content,t.content));return D};var pa=function(t,u){if(u.querySelectorAll&&
(u=b(u,"template"),0!==u.length)){t=b(t,"template");for(var D=0,G=t.length,V,ea;D<G;D++)ea=u[D],V=t[D],a&&a.T&&a.T(ea),p.call(V.parentNode,Bg.call(ea,!0),V)}},Bg=Node.prototype.cloneNode=function(t){if(!e&&d&&this instanceof DocumentFragment)if(t)var u=Cg.call(this.ownerDocument,this,!0);else return this.ownerDocument.createDocumentFragment();else u=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?a.xa(this,t):f.call(this,t);
t&&pa(u,this);return u},Cg=Document.prototype.importNode=function(t,u){u=u||!1;if("template"===t.localName)return a.xa(t,u);var D=h.call(this,t,u);if(u){pa(D,t);t=b(D,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var G,V=0;V<t.length;V++){G=t[V];u=g.call(document,"script");u.textContent=G.textContent;for(var ea=G.attributes,ma=0,z;ma<ea.length;ma++)z=ea[ma],u.setAttribute(z.name,z.value);p.call(G.parentNode,u,G)}}return D}}c&&(window.HTMLTemplateElement=
a)})();(function(a){function b(l,q){if("function"===typeof window.CustomEvent)return new CustomEvent(l,q);var r=document.createEvent("CustomEvent");r.initCustomEvent(l,!!q.bubbles,!!q.cancelable,q.detail);return r}function c(l){if(ba)return l.ownerDocument!==document?l.ownerDocument:null;var q=l.__importDoc;if(!q&&l.parentNode){q=l.parentNode;if("function"===typeof q.closest)q=q.closest("link[rel=import]");else for(;!h(q)&&(q=q.parentNode););l.__importDoc=q}return q}function d(l){var q=p(document,"link[rel=import]:not([import-dependency])"),
r=q.length;r?w(q,function(v){return g(v,function(){0===--r&&l()})}):l()}function e(l){function q(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",q),l())}document.addEventListener("readystatechange",q);q()}function f(l){e(function(){return d(function(){return l&&l()})})}function g(l,q){if(l.__loaded)q&&q();else if("script"===l.localName&&!l.src||"style"===l.localName&&!l.firstChild||"style"===l.localName&&"http://www.w3.org/2000/svg"===l.namespaceURI)l.__loaded=
!0,q&&q();else{var r=function(v){l.removeEventListener(v.type,r);l.__loaded=!0;q&&q()};l.addEventListener("load",r);"style"===l.localName&&(wa||xa)||l.addEventListener("error",r)}}function h(l){return l.nodeType===Node.ELEMENT_NODE&&"link"===l.localName&&"import"===l.rel}function k(){var l=this;this.J={};this.Z=0;this.Ia=new MutationObserver(function(q){return l.Ac(q)});this.Ia.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function m(l){w(p(l,"template"),function(q){w(p(q.content,
'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'),function(r){var v=document.createElement("script");w(r.attributes,function(C){return v.setAttribute(C.name,C.value)});v.textContent=r.textContent;r.parentNode.replaceChild(v,r)});m(q.content)})}function p(l,q){return l.childNodes.length?l.querySelectorAll(q):lc}function w(l,q,r){var v=l?l.length:0,C=r?-1:1;for(r=r?v-1:0;r<v&&0<=r;r+=C)q(l[r],r)}var F=document.createElement("link"),ba="import"in
F,lc=F.querySelectorAll("*"),Oa=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return Oa||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var kc=/(url\()([^)]*)(\))/g,mc=/(@import[\s]+(?!url\())([^;]*)(;)/g,ja=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Q={yc:function(l,q){l.href&&l.setAttribute("href",Q.ta(l.getAttribute("href"),q));l.src&&l.setAttribute("src",Q.ta(l.getAttribute("src"),
q));if("style"===l.localName){var r=Q.qb(l.textContent,q,kc);l.textContent=Q.qb(r,q,mc)}},qb:function(l,q,r){return l.replace(r,function(v,C,x,E){v=x.replace(/["']/g,"");q&&(v=Q.ta(v,q));return C+"'"+v+"'"+E})},ta:function(l,q){if(void 0===Q.va){Q.va=!1;try{var r=new URL("b","http://a");r.pathname="c%20d";Q.va="http://a/c%20d"===r.href}catch(v){}}if(Q.va)return(new URL(l,q)).href;r=Q.Ab;r||(r=document.implementation.createHTMLDocument("temp"),Q.Ab=r,r.Na=r.createElement("base"),r.head.appendChild(r.Na),
r.Ma=r.createElement("a"));r.Na.href=q;r.Ma.href=l;return r.Ma.href||l}},na={async:!0,load:function(l,q,r){if(l)if(l.match(/^data:/)){l=l.split(",");var v=l[1];v=-1<l[0].indexOf(";base64")?atob(v):decodeURIComponent(v);q(v)}else{var C=new XMLHttpRequest;C.open("GET",l,na.async);C.onload=function(){var x,E=null!=(x=C.responseURL||C.getResponseHeader("Location"))?x:void 0;E&&0===E.indexOf("/")&&(E=(location.origin||location.protocol+"//"+location.host)+E);x=C.response||C.responseText;304===C.status||
0===C.status||200<=C.status&&300>C.status?q(x,E):r(x)};C.send()}else r("error: href must be specified")}},wa=/Trident/.test(navigator.userAgent),xa=/Edge\/\d./i.test(navigator.userAgent);k.prototype.loadImports=function(l){var q=this;l=p(l,"link[rel=import]");w(l,function(r){return q.nb(r)})};k.prototype.nb=function(l){var q=this,r=l.href;if(void 0!==this.J[r]){var v=this.J[r];v&&v.__loaded&&(l.__import=v,this.lb(l))}else this.Z++,this.J[r]="pending",na.load(r,function(C,x){C=q.Gc(C,x||r);q.J[r]=
C;q.Z--;q.loadImports(C);q.pb()},function(){q.J[r]=null;q.Z--;q.pb()})};k.prototype.Gc=function(l,q){var r=this;if(!l)return document.createDocumentFragment();if(wa||xa)l=l.replace(ja,function(x,E,pa){return-1===x.indexOf("type=")?E+" type=import-disable "+pa:x});var v=document.createElement("template");v.innerHTML=l;if(v.content)l=v.content,m(l);else for(l=document.createDocumentFragment();v.firstChild;)l.appendChild(v.firstChild);if(v=l.querySelector("base"))q=Q.ta(v.getAttribute("href"),q),v.removeAttribute("href");
v=p(l,'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 C=0;w(v,function(x){g(x);Q.yc(x,q);if("style"===x.localName&&r.sb(x)){var E=r.uc(x);g(E);x.parentNode.replaceChild(E,x);x=E}x.setAttribute("import-dependency","");if("script"===x.localName&&!x.src&&x.textContent){if("module"===x.type)throw Error("Inline module scripts are not supported in HTML Imports.");
x.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(x.textContent+("\n//# sourceURL="+q+(C?"-"+C:"")+".js\n")));x.textContent="";C++}});return l};k.prototype.sb=function(l){return xa&&-1<l.textContent.indexOf("@import")};k.prototype.uc=function(l){var q=l.ownerDocument.createElement("style");q.textContent=l.textContent;w(l.attributes,function(r){return q.setAttribute(r.name,r.value)});return q};k.prototype.pb=function(){var l=this;if(!this.Z){this.Ia.disconnect();this.flatten(document);
var q=!1,r=!1,v=function(){r&&q&&(l.loadImports(document),l.Z||(l.Ia.observe(document.head,{childList:!0,subtree:!0}),l.xc()))};this.Wc(function(){r=!0;v()});this.Nc(function(){q=!0;v()})}};k.prototype.flatten=function(l){var q=this;l=p(l,"link[rel=import]");w(l,function(r){var v=q.J[r.href];(r.__import=v)&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(q.J[r.href]=r,r.readyState="loading",r.__import=r,q.flatten(v),r.appendChild(v))})};k.prototype.Nc=function(l){function q(C){if(C<v){var x=r[C],E=document.createElement("script");
x.removeAttribute("import-dependency");w(x.attributes,function(pa){return E.setAttribute(pa.name,pa.value)});Oa=E;x.parentNode.replaceChild(E,x);g(E,function(){Oa=null;q(C+1)})}else l()}var r=p(document,"script[import-dependency]"),v=r.length;q(0)};k.prototype.Wc=function(l){var q=this,r=p(document,"style[import-dependency],link[rel=stylesheet][import-dependency]"),v=r.length;if(v){var C=(wa||xa)&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");w(r,function(x){C&&q.sb(x)&&
x.ownerDocument.defaultView!==window.top&&(x.__loaded=!0);g(x,function(){x.removeAttribute("import-dependency");0===--v&&l()});if(C&&x.parentNode!==document.head){var E=document.createElement(x.localName);E.__appliedElement=x;E.setAttribute("type","import-placeholder");x.parentNode.insertBefore(E,x.nextSibling);for(E=c(x);E&&c(E);)E=c(E);E.parentNode!==document.head&&(E=null);document.head.insertBefore(x,E);x.removeAttribute("type")}})}else l()};k.prototype.xc=function(){var l=this,q=p(document,"link[rel=import]");
w(q,function(r){return l.lb(r)},!0)};k.prototype.lb=function(l){l.__loaded||(l.__loaded=!0,l.import&&(l.import.readyState="complete"),l.dispatchEvent(b(l.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.Ac=function(l){var q=this;w(l,function(r){return w(r.addedNodes,function(v){v&&v.nodeType===Node.ELEMENT_NODE&&(h(v)?q.nb(v):q.loadImports(v))})})};var Pa=null;if(ba)F=p(document,"link[rel=import]"),w(F,function(l){l.import&&"loading"===l.import.readyState||(l.__loaded=
!0)}),F=function(l){l=l.target;h(l)&&(l.__loaded=!0)},document.addEventListener("load",F,!0),document.addEventListener("error",F,!0);else{var oa=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!oa||oa.configurable?Node:Element).prototype,"baseURI",{get:function(){var l=h(this)?this:c(this);return l?l.href:oa&&oa.get?oa.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});Object.defineProperty(HTMLLinkElement.prototype,
"import",{get:function(){return this.__import||null},configurable:!0,enumerable:!0});e(function(){Pa=new k})}f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=ba;a.whenReady=f;a.importForElement=c;a.loadImports=function(l){Pa&&Pa.loadImports(l)}})(window.HTMLImports=window.HTMLImports||{});/*

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
*/
function Vb(){}Vb.prototype.toJSON=function(){return{}};function B(a){a.__shady||(a.__shady=new Vb);return a.__shady}function H(a){return a&&a.__shady};var I=window.ShadyDOM||{};I.Bc=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Wb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");I.m=!!(Wb&&Wb.configurable&&Wb.get);I.inUse=I.force||!I.Bc;I.v=I.noPatch||!1;I.ba=I.preferPerformance;I.Ka="on-demand"===I.v;var Xb=navigator.userAgent.match("Trident");I.vb=Xb;function Yb(a){return(a=H(a))&&void 0!==a.firstChild}function J(a){return a instanceof ShadowRoot}function Zb(a){return(a=(a=H(a))&&a.root)&&a.Xa()}
var $b=Element.prototype,ac=$b.matches||$b.matchesSelector||$b.mozMatchesSelector||$b.msMatchesSelector||$b.oMatchesSelector||$b.webkitMatchesSelector,bc=document.createTextNode(""),cc=0,dc=[];(new MutationObserver(function(){for(;dc.length;)try{dc.shift()()}catch(a){throw bc.textContent=cc++,a;}})).observe(bc,{characterData:!0});function ec(a){dc.push(a);bc.textContent=cc++}
var fc=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function gc(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function hc(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if("length"!==e&&isNaN(e)&&a[e])return a[e];for(var f=ca(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function ic(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
function jc(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function oc(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function K(a,b,c,d){c=void 0===c?"":c;for(var e in b)d&&0<=d.indexOf(e)||oc(a,c+e,b[e])}function pc(a,b){for(var c in b)c in a&&oc(a,c,b[c])}function L(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b}
function qc(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function rc(a){return a instanceof Node?a:document.createTextNode(""+a)}function sc(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(1===b.length)return rc(b[0]);c=document.createDocumentFragment();b=ca(b);for(var d=b.next();!d.done;d=b.next())c.appendChild(rc(d.value));return c};var tc=[],uc;function vc(a){uc||(uc=!0,ec(wc));tc.push(a)}function wc(){uc=!1;for(var a=!!tc.length;tc.length;)tc.shift()();return a}wc.list=tc;function xc(){this.la=!1;this.addedNodes=[];this.removedNodes=[];this.qa=new Set}function yc(a){a.la||(a.la=!0,ec(function(){a.flush()}))}xc.prototype.flush=function(){if(this.la){this.la=!1;var a=this.takeRecords();a.length&&this.qa.forEach(function(b){b(a)})}};xc.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
function zc(a,b){var c=B(a);c.aa||(c.aa=new xc);c.aa.qa.add(b);var d=c.aa;return{Db:b,P:d,$b:a,takeRecords:function(){return d.takeRecords()}}}function Ac(a){var b=a&&a.P;b&&(b.qa.delete(a.Db),b.qa.size||(B(a.$b).aa=null))}
function Bc(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Cc=/[&\u00A0"]/g,Dc=/[&\u00A0<>]/g;function Ec(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Fc(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Gc=Fc("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Hc=Fc("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function Ic(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,m=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var p="<"+k,w=h.attributes,F=0,ba;ba=w[F];F++)p+=" "+ba.name+'="'+ba.value.replace(Cc,Ec)+'"';p+=">";h=Gc[k]?p:p+Ic(h,m)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Hc[k.localName]?h:h.replace(Dc,Ec);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 Jc=I.m,Kc={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Lc={};function Mc(a){Lc[a]=function(b){return b["__shady_native_"+a]}}function Nc(a,b){K(a,b,"__shady_native_");for(var c in b)Mc(c)}function N(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?Kc[d]||(Kc[d]=e.value):Mc(d))}}
var O=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),P=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Oc=document.implementation.createHTMLDocument("inert");function Pc(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var Qc=["firstElementChild","lastElementChild","children","childElementCount"],Rc=["querySelector","querySelectorAll","append","prepend","replaceChildren"];
function Sc(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(N(window.EventTarget.prototype,a),void 0===window.__shady_native_addEventListener&&N(Window.prototype,a)):(N(Node.prototype,a),N(Window.prototype,a));Jc?N(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Nc(Node.prototype,{parentNode:{get:function(){O.currentNode=this;return O.parentNode()}},firstChild:{get:function(){O.currentNode=
this;return O.firstChild()}},lastChild:{get:function(){O.currentNode=this;return O.lastChild()}},previousSibling:{get:function(){O.currentNode=this;return O.previousSibling()}},nextSibling:{get:function(){O.currentNode=this;return O.nextSibling()}},childNodes:{get:function(){var b=[];O.currentNode=this;for(var c=O.firstChild();c;)b.push(c),c=O.nextSibling();return b}},parentElement:{get:function(){P.currentNode=this;return P.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b=
document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if("undefined"===typeof b||null===b)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Pc(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});N(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
N(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){P.currentNode=this;return P.firstChild()}},lastElementChild:{get:function(){P.currentNode=this;return P.lastChild()}},children:{get:function(){var b=[];P.currentNode=this;for(var c=P.firstChild();c;)b.push(c),c=P.nextSibling();return hc(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Jc?(N(Element.prototype,Qc),N(Element.prototype,["previousElementSibling","nextElementSibling",
"innerHTML","className"]),N(HTMLElement.prototype,["children","innerHTML","className"])):(Nc(Element.prototype,a),Nc(Element.prototype,{previousElementSibling:{get:function(){P.currentNode=this;return P.previousSibling()}},nextElementSibling:{get:function(){P.currentNode=this;return P.nextSibling()}},innerHTML:{get:function(){return Ic(this,ic)},set:function(b){var c="template"===this.localName?this.content:this;Pc(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Oc.namespaceURI?
Oc.createElementNS(this.namespaceURI,d):Oc.createElement(d);d.innerHTML=b;for(b="template"===this.localName?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));N(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));N(Element.prototype,Rc);N(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
N(window.HTMLTemplateElement.prototype,["innerHTML"]);Jc?N(DocumentFragment.prototype,Qc):Nc(DocumentFragment.prototype,a);N(DocumentFragment.prototype,Rc);Jc?(N(Document.prototype,Qc),N(Document.prototype,["activeElement"])):Nc(Document.prototype,a);N(Document.prototype,["importNode","getElementById"]);N(Document.prototype,Rc)};var Tc=L({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),Uc=L({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){this.__shady_innerHTML=a}}),Vc=L({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(a){this.__shady_className=
a}});function Wc(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}Wc(Tc);Wc(Uc);Wc(Vc);var Xc=I.m||!0===I.v,Yc=Xc?function(){}:function(a){var b=B(a);b.yb||(b.yb=!0,pc(a,Vc))},Zc=Xc?function(){}:function(a){var b=B(a);b.xb||(b.xb=!0,pc(a,Tc),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!I.v||pc(a,Uc))};var $c="__eventWrappers"+Date.now(),ad=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),bd=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function cd(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.L}else b=!!a,d=c=!1;return{rb:e,capture:b,once:c,passive:d,ob:bd?a:b}}
var dd={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,
drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},ed={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function fd(a){return a instanceof Node?a.__shady_getRootNode():a}
function gd(a,b){var c=[],d=a;for(a=fd(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function hd(a){a.__composedPath||(a.__composedPath=gd(a.target,!0));return a.__composedPath}function id(a,b){if(!J)return a;a=gd(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=fd(d),f!==e&&(g=a.indexOf(f),e=f),!J(f)||-1<g)return d}
function jd(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var kd={focus:!0,blur:!0};function ld(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function md(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!ld(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function nd(a){var b=a.composedPath(),c=b.map(function(k){return id(k,b)}),d=a.bubbles;Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return g}});var e=Event.CAPTURING_PHASE;Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e}});for(var f=b.length-1;0<=f;f--){var g=b[f];e=g===c[f]?Event.AT_TARGET:Event.CAPTURING_PHASE;md(a,g,"capture");if(a.ua)return}for(f=0;f<b.length;f++){g=b[f];var h=g===c[f];if(h||d)if(e=h?Event.AT_TARGET:
Event.BUBBLING_PHASE,md(a,g,"bubble"),a.ua)return}e=0;g=null}function od(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,m=h.capture,p=h.once,w=h.passive;if(b===h.node&&c===k&&d===m&&e===p&&f===w)return g}return-1}function pd(a){wc();return!I.ba&&this instanceof Node&&!fc(document,this)?(a.__target||qd(a,this),nd(a)):this.__shady_native_dispatchEvent(a)}
function rd(a,b,c){var d=cd(c),e=d.capture,f=d.once,g=d.passive,h=d.rb;d=d.ob;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(ed[a])return this.__shady_native_addEventListener(a,b,d);var m=h||this;if(h=b[$c]){if(-1<od(h,m,a,e,f,g))return}else b[$c]=[];h=function(p){f&&this.__shady_removeEventListener(a,b,c);p.__target||qd(p);if(m!==this){var w=Object.getOwnPropertyDescriptor(p,"currentTarget");Object.defineProperty(p,"currentTarget",
{get:function(){return m},configurable:!0});var F=Object.getOwnPropertyDescriptor(p,"eventPhase");Object.defineProperty(p,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}p.__previousCurrentTarget=p.currentTarget;if(!J(m)&&"slot"!==m.localName||-1!=p.composedPath().indexOf(m))if(p.composed||-1<p.composedPath().indexOf(m))if(ld(p)&&p.target===p.relatedTarget)p.eventPhase===Event.BUBBLING_PHASE&&p.stopImmediatePropagation();else if(p.eventPhase===
Event.CAPTURING_PHASE||p.bubbles||p.target===m||m instanceof Window){var ba="function"===k?b.call(m,p):b.handleEvent&&b.handleEvent(p);m!==this&&(w?(Object.defineProperty(p,"currentTarget",w),w=null):delete p.currentTarget,F?(Object.defineProperty(p,"eventPhase",F),F=null):delete p.eventPhase);return ba}};b[$c].push({node:m,type:a,capture:e,once:f,passive:g,Xc:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][e?"capture":"bubble"].push(h);
kd[a]||this.__shady_native_addEventListener(a,h,d)}}}
function sd(a,b,c){if(b){var d=cd(c);c=d.capture;var e=d.once,f=d.passive,g=d.rb;d=d.ob;if(ed[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[$c]}catch(m){}k&&(e=od(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].Xc,k.length||(b[$c]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
function td(){for(var a in kd)window.__shady_native_addEventListener(a,function(b){b.__target||(qd(b),nd(b))},!0)}
var ud=L({get composed(){void 0===this.__composed&&(ad?this.__composed="focusin"===this.type||"focusout"===this.type||ad(this):!1!==this.isTrusted&&(this.__composed=dd[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=gd(this.__target,this.composed));return this.__composedPath},get target(){return id(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=gd(this.__relatedTarget,!0));return id(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ua=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ua=this.__immediatePropagationStopped=!0}});
function qd(a,b){b=void 0===b?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(I.m){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;K(c,ud);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else K(a,ud)}var vd=jd(Event),wd=jd(CustomEvent),xd=jd(MouseEvent);
function yd(){if(!ad&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}
var zd=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return"on"===a.substring(0,2)}),Ad=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return"on"===a.substring(0,2)});function Bd(a){return{set:function(b){var c=B(this),d=a.substring(2);c.K||(c.K={});c.K[a]&&this.removeEventListener(d,c.K[a]);this.__shady_addEventListener(d,b);c.K[a]=b},get:function(){var b=H(this);return b&&b.K&&b.K[a]},configurable:!0}};function Cd(a,b){return{index:a,ca:[],pa:b}}
function Dd(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var m=c.length,p=0;p<k-g&&Ed(a[--h],c[--m]);)p++;h=p}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Cd(e,0);f<d;)b.ca.push(c[f++]);return[b]}if(f==d)return[Cd(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(m=0;m<d;m++)b[m]=Array(h),b[m][0]=m;for(m=0;m<h;m++)b[0][m]=m;for(m=1;m<d;m++)for(p=1;p<h;p++)if(a[k+p-1]===c[g+m-1])b[m][p]=
b[m-1][p-1];else{var w=b[m-1][p]+1,F=b[m][p-1]+1;b[m][p]=w<F?w:F}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],m=b[k-1][g],p=b[k][g-1],w=m<p?m<h?m:h:p<h?p:h,w==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):w==m?(a.push(3),k--,d=m):(a.push(2),g--,d=p));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=Cd(e,0));b.pa++;e++;b.ca.push(c[f]);f++;break;case 2:b||(b=Cd(e,
0));b.pa++;e++;break;case 3:b||(b=Cd(e,0)),b.ca.push(c[f]),f++}b&&k.push(b);return k}function Ed(a,b){return a===b};var Fd=L({dispatchEvent:pd,addEventListener:rd,removeEventListener:sd});var Gd=null;function Hd(){Gd||(Gd=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Gd||null}function Id(a,b,c){var d=Hd();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function Jd(a,b){var c=Hd();c&&c.unscopeNode(a,b)}function Kd(a,b){var c=Hd();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&Kd(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
function Ld(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=Hd();return b?b.currentScopeForNode(a):""}function Md(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&Md(a,b)};var Nd=window.document,Pd=I.ba,Qd=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Rd=Qd&&Qd.get;function Sd(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function Td(a){var b=H(a);if(b&&void 0!==b.sa)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)Td(b);if(a=H(a))a.sa=void 0}function Ud(a){var b=a;if(a&&"slot"===a.localName){var c=H(a);(c=c&&c.U)&&(b=c.length?c[0]:Ud(a.__shady_nextSibling))}return b}
function Vd(a,b,c){if(a=(a=H(a))&&a.aa){if(b)if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var d=0,e=b.childNodes.length;d<e;d++)a.addedNodes.push(b.childNodes[d]);else a.addedNodes.push(b);c&&a.removedNodes.push(c);yc(a)}}
var Zd=L({get parentNode(){var a=H(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=H(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=H(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=H(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=H(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
get childNodes(){if(Yb(this)){var a=H(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(d){return c[d]};return c},get parentElement(){var a=H(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(Rd&&Rd.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(null===a||fc(a,this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(J(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(Yb(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!Yb(this)&&
I.m){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&Sd(this);this.__shady_native_textContent=a}else Sd(this),(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==Nd&&a.ownerDocument!==Nd)return this.__shady_native_insertBefore(a,b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");
if(b){var c=H(b);c=c&&c.parentNode;if(void 0!==c&&c!==this||void 0===c&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;Vd(this,a);var d=[],e=(c=Wd(this))?c.host.localName:Ld(this),f=a.__shady_parentNode;if(f){var g=Ld(a);var h=!!c||!Wd(a)||Pd&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!Pd||void 0===a.__noInsertionPoint&&void 0===
this.__noInsertionPoint)&&!Kd(a,e),m=c&&!a.__noInsertionPoint&&(!Pd||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(m||k)k&&(g=g||Ld(a)),Md(a,function(p){m&&"slot"===p.localName&&d.push(p);if(k){var w=g;Hd()&&(w&&Jd(p,w),(w=Hd())&&w.scopeNode(p,e))}});d.length&&(c.Pa(d),c.u());Yb(this)&&(Xd(a,this,b),h=H(this),h.root?(f=!1,Zb(this)&&h.root.u()):c&&"slot"===this.localName&&(f=!1,c.u()));f?(c=J(this)?this.host:this,b?(b=Ud(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):a.ownerDocument!==
this.ownerDocument&&this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!J(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==Nd)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);Vd(this,null,a);var c=Wd(a),d=c&&c.cc(a),e=H(this);if(Yb(this)&&(Yd(a,this),Zb(this))){e.root.u();var f=!0}if(Hd()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=
Ld(a);Md(a,function(h){Jd(h,g)})}Td(a);c&&((b="slot"===this.localName)&&(f=!0),(d||b)&&c.u());f||(f=J(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if("template"==this.localName)return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=
this.__shady_firstChild;for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=B(this),c=b.sa;void 0===c&&(J(this)?(c=this,b.sa=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.sa=c)));return c}},contains:function(a){return gc(this,a)}});var $d=L({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&a.ka();return(a=H(this))&&a.assignedSlot||null}});function ae(a,b,c){var d=[];be(a,b,c,d);return d}function be(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:(be(e,f,g,h),e=void 0)}if(e)break}}
var ce={get firstElementChild(){var a=H(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=H(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 Yb(this)?hc(Array.prototype.filter.call(jc(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}},de=L((ce.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.__shady_insertBefore(sc.apply(null,y(b)),null)},ce.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.__shady_insertBefore(sc.apply(null,y(b)),this.__shady_firstChild)},ce.replaceChildren=function(a){for(var b=[],c=0;c<
arguments.length;++c)b[c-0]=arguments[c];for(;null!==(c=this.__shady_firstChild);)this.__shady_removeChild(c);this.__shady_insertBefore(sc.apply(null,y(b)),null)},ce)),ee=L({querySelector:function(a){return ae(this,function(b){return ac.call(b,a)},function(b){return!!b})[0]||null},querySelectorAll:function(a,b){if(b){b=Array.prototype.slice.call(this.__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return hc(b.filter(function(d){return d.__shady_getRootNode()==c}))}return hc(ae(this,
function(d){return ac.call(d,a)}))}}),fe=I.ba&&!I.v?qc({},de):de;qc(de,ee);var ge=L({after:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_insertBefore(sc.apply(null,y(b)),d)}},before:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=this.__shady_parentNode;null!==c&&c.__shady_insertBefore(sc.apply(null,y(b)),this)},remove:function(){var a=this.__shady_parentNode;null!==a&&a.__shady_removeChild(this)},replaceWith:function(a){for(var b=[],c=0;c<
arguments.length;++c)b[c-0]=arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_removeChild(this);c.__shady_insertBefore(sc.apply(null,y(b)),d)}}});var he=window.document;function ie(a,b){"slot"===b?(a=a.__shady_parentNode,Zb(a)&&H(a).root.u()):"slot"===a.localName&&"name"===b&&(b=Wd(a))&&(b.rc(a),b.u())}
var je=L({get previousElementSibling(){var a=H(this);if(a&&void 0!==a.previousSibling){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=H(this);if(a&&void 0!==a.nextSibling){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
set slot(a){this.__shady_setAttribute("slot",a)},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==he?this.__shady_native_setAttribute(a,b):Id(this,a,b)||(this.__shady_native_setAttribute(a,b),ie(this,a))},removeAttribute:function(a){this.ownerDocument!==he?this.__shady_native_removeAttribute(a):Id(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):(this.__shady_native_removeAttribute(a),
ie(this,a))}});I.ba||zd.forEach(function(a){je[a]=Bd(a)});
var ne=L({attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!I.vb){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;b.Za(this,a);ke(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;a&&a.length&&(b.Pa(a),b.u());b.host.__shady_native_appendChild(b)}else b=new le(me,this,a);return this.__CE_shadowRoot=b},get shadowRoot(){var a=H(this);return a&&a.Lc||null}});
qc(je,ne);var oe=document.implementation.createHTMLDocument("inert"),pe=L({get innerHTML(){return Yb(this)?Ic("template"===this.localName?this.content:this,jc):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{Sd(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==oe.namespaceURI?oe.createElementNS(this.namespaceURI,b):oe.createElement(b);for(I.m?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var qe=L({blur:function(){var a=H(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});I.ba||Ad.forEach(function(a){qe[a]=Bd(a)});var re=L({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&J(b)&&b.ka();return(b=H(this))?(a&&a.flatten?b.U:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)rd.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.L=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
b,c){if("slot"!==this.localName||"slotchange"===a)sd.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.L=this;d.__shady_removeEventListener(a,b,c)}}});var se=L({getElementById:function(a){return""===a?null:ae(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});var te=L({get activeElement(){var a=I.m?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!J(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=Wd(a);b&&b!==this;)a=b.host,b=Wd(a);return this===document?b?null:a:b===this?a:null}});var ue=window.document,ve=L({importNode:function(a,b){if(a.ownerDocument!==ue||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var we=L({dispatchEvent:pd,addEventListener:rd.bind(window),removeEventListener:sd.bind(window)});var xe={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(xe.parentElement=Zd.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(xe.contains=Zd.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(xe.children=de.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(xe.innerHTML=pe.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(xe.className=je.className);
var ye={EventTarget:[Fd],Node:[Zd,window.EventTarget?null:Fd],Text:[$d],Comment:[$d],CDATASection:[$d],ProcessingInstruction:[$d],Element:[je,de,ge,$d,!I.m||"innerHTML"in Element.prototype?pe:null,window.HTMLSlotElement?null:re],HTMLElement:[qe,xe],HTMLSlotElement:[re],DocumentFragment:[fe,se],Document:[ve,fe,se,te],Window:[we],CharacterData:[ge]},ze=I.m?null:["innerHTML","textContent"];function Ae(a,b,c,d){b.forEach(function(e){return a&&e&&K(a,e,c,d)})}
function Be(a){var b=a?null:ze,c;for(c in ye)Ae(window[c]&&window[c].prototype,ye[c],a,b)}["Text","Comment","CDATASection","ProcessingInstruction"].forEach(function(a){var b=window[a],c=Object.create(b.prototype);c.__shady_protoIsPatched=!0;Ae(c,ye.EventTarget);Ae(c,ye.Node);ye[a]&&Ae(c,ye[a]);b.prototype.__shady_patchedProto=c});function Ce(a){a.__shady_protoIsPatched=!0;Ae(a,ye.EventTarget);Ae(a,ye.Node);Ae(a,ye.Element);Ae(a,ye.HTMLElement);Ae(a,ye.HTMLSlotElement);return a};var De=I.Ka,Ee=I.m;function Fe(a,b){if(De&&!a.__shady_protoIsPatched&&!J(a)){var c=Object.getPrototypeOf(a),d=c.hasOwnProperty("__shady_patchedProto")&&c.__shady_patchedProto;d||(d=Object.create(c),Ce(d),c.__shady_patchedProto=d);Object.setPrototypeOf(a,d)}Ee||(1===b?Yc(a):2===b&&Zc(a))}
function Ge(a,b,c,d){Fe(a,1);d=d||null;var e=B(a),f=d?B(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=H(e.previousSibling))f.nextSibling=a;if(f=H(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
function Xd(a,b,c){Fe(b,2);var d=B(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)Ge(a,b,d,c);else Ge(a,b,d,c)}
function Yd(a,b){var c=B(a);b=B(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(B(a).nextSibling=d);d&&(B(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
function ke(a,b){var c=B(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;Fe(a,2);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=B(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;Fe(c,1)}}};var He=L({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.L=c.L||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.L=c.L||this;this.host.__shady_removeEventListener(a,b,c)}});function Ie(a,b){K(a,He,b);K(a,te,b);K(a,pe,b);K(a,de,b);I.v&&!b?(K(a,Zd,b),K(a,se,b)):I.m||(K(a,Vc),K(a,Tc),K(a,Uc))};var me={},Je=I.deferConnectionCallbacks&&"loading"===document.readyState,Ke;function Le(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function le(a,b,c){if(a!==me)throw new TypeError("Illegal constructor");this.g=null;this.Za(b,c)}n=le.prototype;
n.Za=function(a,b){this.host=a;this.mode=b&&b.mode;ke(this.host);a=B(this.host);a.root=this;a.Lc="closed"!==this.mode?this:null;a=B(this);a.firstChild=a.lastChild=a.parentNode=a.nextSibling=a.previousSibling=null;if(I.preferPerformance)for(;a=this.host.__shady_native_firstChild;)this.host.__shady_native_removeChild(a);else this.u()};n.u=function(){var a=this;this.R||(this.R=!0,vc(function(){return a.ka()}))};n.Rb=function(){for(var a,b=this;b;)b.R&&(a=b),b=b.Qb();return a};
n.Qb=function(){var a=this.host.__shady_getRootNode();if(J(a)){var b=H(this.host);if(b&&0<b.fa)return a}};n.ka=function(){var a=this.R&&this.Rb();a&&a._renderSelf()};n.Mb=function(){!this.Ya&&this.R&&this.ka()};
n._renderSelf=function(){var a=Je;Je=!0;this.R=!1;this.g&&(this.Hb(),this.Fb());if(!I.preferPerformance&&!this.Ya)for(var b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling){var c=H(b);b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b)}this.Ya=!0;Je=a;Ke&&Ke()};
n.Hb=function(){this.oa();for(var a=0,b;a<this.g.length;a++)b=this.g[a],this.Eb(b);for(a=this.host.__shady_firstChild;a;a=a.__shady_nextSibling)this.Sa(a);for(a=0;a<this.g.length;a++){b=this.g[a];var c=H(b);if(!c.assignedNodes.length)for(var d=b.__shady_firstChild;d;d=d.__shady_nextSibling)this.Sa(d,b);(d=(d=H(b.__shady_parentNode))&&d.root)&&(d.Xa()||d.R)&&d._renderSelf();this.Oa(c.U,c.assignedNodes);if(d=c.cb){for(var e=0;e<d.length;e++)H(d[e]).Ca=null;c.cb=null;d.length>c.assignedNodes.length&&
(c.Ha=!0)}c.Ha&&(c.Ha=!1,this.Ua(b))}};n.Sa=function(a,b){var c=B(a),d=c.Ca;c.Ca=null;b||(b=(b=this.i[a.__shady_slot||"__catchall"])&&b[0]);b?(B(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(B(c.assignedSlot).Ha=!0)};n.Eb=function(a){var b=H(a),c=b.assignedNodes;b.assignedNodes=[];b.U=[];if(b.cb=c)for(b=0;b<c.length;b++){var d=H(c[b]);d.Ca=d.assignedSlot;d.assignedSlot===a&&(d.assignedSlot=null)}};
n.Oa=function(a,b){for(var c=0,d=void 0;c<b.length&&(d=b[c]);c++)if("slot"==d.localName){var e=H(d).assignedNodes;e&&e.length&&this.Oa(a,e)}else a.push(b[c])};n.Ua=function(a){a.__shady_native_dispatchEvent(new Event("slotchange"));a=H(a);a.assignedSlot&&this.Ua(a.assignedSlot)};n.Fb=function(){for(var a=this.g,b=[],c=0;c<a.length;c++){var d=a[c].__shady_parentNode,e=H(d);e&&e.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.qc(c===this?this.host:c,this.Gb(c))};
n.Gb=function(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)if(this.Ub(a))for(var c=H(a).U,d=0;d<c.length;d++)b.push(c[d]);else b.push(a);return b};n.Ub=function(a){return"slot"==a.localName};
n.qc=function(a,b){for(var c=ic(a),d=Dd(b,b.length,c,c.length),e=0,f=0,g=void 0;e<d.length&&(g=d[e]);e++){for(var h=0,k=void 0;h<g.ca.length&&(k=g.ca[h]);h++)k.__shady_native_parentNode===a&&a.__shady_native_removeChild(k),c.splice(g.index+f,1);f-=g.pa}e=0;for(f=void 0;e<d.length&&(f=d[e]);e++)for(g=c[f.index],h=f.index;h<f.index+f.pa;h++)k=b[h],a.__shady_native_insertBefore(k,g),c.splice(h,0,k)};n.Lb=function(){this.I=this.I||[];this.g=this.g||[];this.i=this.i||{}};
n.Pa=function(a){this.Lb();this.I.push.apply(this.I,y(a))};n.oa=function(){this.I&&this.I.length&&(this.Yb(this.I),this.I=[])};n.Yb=function(a){for(var b,c=0;c<a.length;c++){var d=a[c];ke(d);var e=d.__shady_parentNode;ke(e);e=H(e);e.fa=(e.fa||0)+1;e=this.ab(d);this.i[e]?(b=b||{},b[e]=!0,this.i[e].push(d)):this.i[e]=[d];this.g.push(d)}if(b)for(var f in b)this.i[f]=this.gb(this.i[f])};n.ab=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.zb=b};
n.gb=function(a){return a.sort(function(b,c){b=Le(b);for(var d=Le(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=jc(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})};n.cc=function(a){if(this.g){this.oa();var b=this.i,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e];if(gc(a,f)){d.splice(e,1);var g=this.g.indexOf(f);0<=g&&(this.g.splice(g,1),(g=H(f.__shady_parentNode))&&g.fa&&g.fa--);e--;this.dc(f);g=!0}}return g}};
n.rc=function(a){if(this.g){this.oa();var b=a.zb,c=this.ab(a);if(c!==b){b=this.i[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.i[c]||(this.i[c]=[]);b.push(a);1<b.length&&(this.i[c]=this.gb(b))}}};n.dc=function(a){a=H(a);var b=a.U;if(b)for(var c=0;c<b.length;c++){var d=b[c],e=d.__shady_native_parentNode;e&&e.__shady_native_removeChild(d)}a.U=[];a.assignedNodes=[]};n.Xa=function(){this.oa();return!(!this.g||!this.g.length)};
(function(a){a.__proto__=DocumentFragment.prototype;Ie(a,"__shady_");Ie(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
configurable:!0})})})(le.prototype);
if(window.customElements&&window.customElements.define&&I.inUse&&!I.preferPerformance){var Me=new Map;Ke=function(){var a=[];Me.forEach(function(d,e){a.push([e,d])});Me.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};Je&&document.addEventListener("readystatechange",function(){Je=!1;Ke()},{once:!0});var Ne=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=
function(){Je?Me.set(this,!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){Je?this.isConnected||Me.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},Oe=window.customElements.define,Pe=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;Oe.call(window.customElements,a,Ne(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=
Pe;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:Pe,configurable:!0})}function Wd(a){a=a.__shady_getRootNode();if(J(a))return a};function Qe(a){this.node=a}n=Qe.prototype;n.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};n.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};n.appendChild=function(a){return this.node.__shady_appendChild(a)};n.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};n.removeChild=function(a){return this.node.__shady_removeChild(a)};n.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
n.cloneNode=function(a){return this.node.__shady_cloneNode(a)};n.getRootNode=function(a){return this.node.__shady_getRootNode(a)};n.contains=function(a){return this.node.__shady_contains(a)};n.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};n.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};n.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};n.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};n.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
n.attachShadow=function(a){return this.node.__shady_attachShadow(a)};n.focus=function(){this.node.__shady_native_focus()};n.blur=function(){this.node.__shady_blur()};n.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};n.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};n.querySelector=function(a){return this.node.__shady_querySelector(a)};
n.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};n.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};n.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_append.apply(this.node,y(b))};n.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_prepend.apply(this.node,y(b))};
n.after=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_after.apply(this.node,y(b))};n.before=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_before.apply(this.node,y(b))};n.remove=function(){return this.node.__shady_remove()};n.replaceWith=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_replaceWith.apply(this.node,y(b))};
fa.Object.defineProperties(Qe.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(J(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(J(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,
get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},
children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(a){this.node.__shady_innerHTML=a}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(a){this.node.__shady_textContent=a}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(a){this.node.__shady_slot=a}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(a){this.node.__shady_className=
a}}});function Re(a){Object.defineProperty(Qe.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})}zd.forEach(function(a){return Re(a)});Ad.forEach(function(a){return Re(a)});var Se=new WeakMap;function Te(a){if(J(a)||a instanceof Qe)return a;var b=Se.get(a);b||(b=new Qe(a),Se.set(a,b));return b};if(I.inUse){var Ue=I.m?function(a){return a}:function(a){Zc(a);Yc(a);return a},ShadyDOM={inUse:I.inUse,patch:Ue,isShadyRoot:J,enqueue:vc,flush:wc,flushInitial:function(a){a.Mb()},settings:I,filterMutations:Bc,observeChildren:zc,unobserveChildren:Ac,deferConnectionCallbacks:I.deferConnectionCallbacks,preferPerformance:I.preferPerformance,handlesDynamicScoping:!0,wrap:I.v?Te:Ue,wrapIfNeeded:!0===I.v?Te:function(a){return a},Wrapper:Qe,composedPath:hd,noPatch:I.v,patchOnDemand:I.Ka,nativeMethods:Kc,
nativeTree:Lc,patchElementProto:Ce};window.ShadyDOM=ShadyDOM;Sc();Be("__shady_");Object.defineProperty(document,"_activeElement",te.activeElement);K(Window.prototype,we,"__shady_");I.v?I.Ka&&K(Element.prototype,ne):(Be(),yd());td();window.Event=vd;window.CustomEvent=wd;window.MouseEvent=xd;window.ShadowRoot=le};var Ve=window.Document.prototype.createElement,We=window.Document.prototype.createElementNS,Xe=window.Document.prototype.importNode,Ye=window.Document.prototype.prepend,Ze=window.Document.prototype.append,$e=window.DocumentFragment.prototype.prepend,af=window.DocumentFragment.prototype.append,bf=window.Node.prototype.cloneNode,cf=window.Node.prototype.appendChild,df=window.Node.prototype.insertBefore,ef=window.Node.prototype.removeChild,ff=window.Node.prototype.replaceChild,gf=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),hf=window.Element.prototype.attachShadow,jf=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),kf=window.Element.prototype.getAttribute,lf=window.Element.prototype.setAttribute,mf=window.Element.prototype.removeAttribute,nf=window.Element.prototype.getAttributeNS,of=window.Element.prototype.setAttributeNS,pf=window.Element.prototype.removeAttributeNS,qf=window.Element.prototype.insertAdjacentElement,rf=window.Element.prototype.insertAdjacentHTML,sf=window.Element.prototype.prepend,
tf=window.Element.prototype.append,uf=window.Element.prototype.before,vf=window.Element.prototype.after,wf=window.Element.prototype.replaceWith,xf=window.Element.prototype.remove,yf=window.HTMLElement,zf=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Af=window.HTMLElement.prototype.insertAdjacentElement,Bf=window.HTMLElement.prototype.insertAdjacentHTML;var Cf=function(){var a=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(b){return a.add(b)});return a}();function Df(a){var b=Cf.has(a);a=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a);return!b&&a}var Ef=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
function R(a){var b=a.isConnected;if(void 0!==b)return b;if(Ef(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Ff(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
function Gf(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function Hf(a,b,c){for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;void 0===c&&(c=new Set);if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)Hf(d,b,c);d=Gf(a,e);continue}else if("template"===f){d=Gf(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Hf(e,b,c)}d=d.firstChild?d.firstChild:Gf(a,d)}};function If(){var a=!(null===Jf||void 0===Jf||!Jf.noDocumentConstructionObserver),b=!(null===Jf||void 0===Jf||!Jf.shadyDomFastWalk);this.Y=[];this.Ba=[];this.O=!1;this.shadyDomFastWalk=b;this.Uc=!a}function Kf(a,b,c,d){var e=window.ShadyDom;if(a.shadyDomFastWalk&&e&&e.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=e.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else Hf(b,c,d)}function Lf(a,b){a.O=!0;a.Y.push(b)}
function Mf(a,b){a.O=!0;a.Ba.push(b)}function Nf(a,b){a.O&&Kf(a,b,function(c){return Of(a,c)})}function Of(a,b){if(a.O&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.Y.length;c++)a.Y[c](b);for(c=0;c<a.Ba.length;c++)a.Ba[c](b)}}function Pf(a,b){var c=[];Kf(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):Qf(a,d)}}
function S(a,b){var c=[];Kf(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
function Rf(a,b,c){c=void 0===c?{}:c;var d=c.Vc,e=c.upgrade||function(g){return Qf(a,g)},f=[];Kf(a,b,function(g){a.O&&Of(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var m=new Set;d&&(d.forEach(function(p){return m.add(p)}),
m.delete(k));Rf(a,k,{Vc:m,upgrade:e})}})}else f.push(g)},d);for(b=0;b<f.length;b++)e(f[b])}function Qf(a,b){try{var c=a.Xb(b.ownerDocument,b.localName);c&&a.sc(b,c)}catch(d){Sf(d)}}n=If.prototype;
n.sc=function(a,b){if(void 0===a.__CE_state){b.constructionStack.push(a);try{try{if(new b.constructorFunction!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback&&a.hasAttributes()){b=b.observedAttributes;for(var c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}}R(a)&&
this.connectedCallback(a)}};n.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){Sf(c)}};n.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){Sf(c)}};n.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;if(f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b))try{f.attributeChangedCallback.call(a,b,c,d,e)}catch(g){Sf(g)}};
n.Xb=function(a,b){var c=a.__CE_registry;if(c&&(a.defaultView||a.__CE_isImportDocument))return Tf(c,b)};
function Uf(a,b,c,d){var e=b.__CE_registry;if(e&&(null===d||"http://www.w3.org/1999/xhtml"===d)&&(e=Tf(e,c)))try{var f=new e.constructorFunction;if(void 0===f.__CE_state||void 0===f.__CE_definition)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==f.namespaceURI)throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(f.hasAttributes())throw Error("Failed to construct '"+
c+"': The constructed element must not have any attributes.");if(null!==f.firstChild)throw Error("Failed to construct '"+c+"': The constructed element must not have any children.");if(null!==f.parentNode)throw Error("Failed to construct '"+c+"': The constructed element must not have a parent node.");if(f.ownerDocument!==b)throw Error("Failed to construct '"+c+"': The constructed element's owner document is incorrect.");if(f.localName!==c)throw Error("Failed to construct '"+c+"': The constructed element's local name is incorrect.");
return f}catch(g){return Sf(g),b=null===d?Ve.call(b,c):We.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,Of(a,b),b}b=null===d?Ve.call(b,c):We.call(b,d,c);Of(a,b);return b}
function Sf(a){var b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.column||a.columnNumber||0,f=void 0;void 0===ErrorEvent.prototype.initErrorEvent?f=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:d,colno:e,error:a}):(f=document.createEvent("ErrorEvent"),f.initErrorEvent("error",!1,!0,b,c,d),f.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});void 0===f.error&&Object.defineProperty(f,"error",
{configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(f);f.defaultPrevented||console.error(a)};function Vf(){var a=this;this.s=void 0;this.eb=new Promise(function(b){a.hc=b})}Vf.prototype.resolve=function(a){if(this.s)throw Error("Already resolved.");this.s=a;this.hc(a)};function Wf(a){var b=document;this.P=void 0;this.H=a;this.ga=b;Rf(this.H,this.ga);"loading"===this.ga.readyState&&(this.P=new MutationObserver(this.Tb.bind(this)),this.P.observe(this.ga,{childList:!0,subtree:!0}))}Wf.prototype.disconnect=function(){this.P&&this.P.disconnect()};Wf.prototype.Tb=function(a){var b=this.ga.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)Rf(this.H,c[d])};function T(a){this.ia=new Map;this.ja=new Map;this.Ra=new Map;this.ya=!1;this.Ga=new Map;this.ha=function(b){return b()};this.N=!1;this.na=[];this.H=a;this.Ta=a.Uc?new Wf(a):void 0}n=T.prototype;n.Jc=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");Xf(this,a);this.ia.set(a,b);this.na.push(a);this.N||(this.N=!0,this.ha(function(){return c.Va()}))};
n.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");Xf(this,a);Yf(this,a,b);this.na.push(a);this.N||(this.N=!0,this.ha(function(){return c.Va()}))};function Xf(a,b){if(!Df(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(Tf(a,b))throw Error("A custom element with name '"+(b+"' has already been defined."));if(a.ya)throw Error("A custom element is already being defined.");}
function Yf(a,b,c){a.ya=!0;var d;try{var e=c.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=function(p){var w=e[p];if(void 0!==w&&!(w instanceof Function))throw Error("The '"+p+"' callback must be a function.");return w};var g=f("connectedCallback");var h=f("disconnectedCallback");var k=f("adoptedCallback");var m=(d=f("attributeChangedCallback"))&&c.observedAttributes||[]}catch(p){throw p;}finally{a.ya=!1}c={localName:b,
constructorFunction:c,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:m,constructionStack:[]};a.ja.set(b,c);a.Ra.set(c.constructorFunction,c);return c}n.upgrade=function(a){Rf(this.H,a)};
n.Va=function(){var a=this;if(!1!==this.N){this.N=!1;for(var b=[],c=this.na,d=new Map,e=0;e<c.length;e++)d.set(c[e],[]);Rf(this.H,document,{upgrade:function(k){if(void 0===k.__CE_state){var m=k.localName,p=d.get(m);p?p.push(k):a.ja.has(m)&&b.push(k)}}});for(e=0;e<b.length;e++)Qf(this.H,b[e]);for(e=0;e<c.length;e++){for(var f=c[e],g=d.get(f),h=0;h<g.length;h++)Qf(this.H,g[h]);(f=this.Ga.get(f))&&f.resolve(void 0)}c.length=0}};n.get=function(a){if(a=Tf(this,a))return a.constructorFunction};
n.whenDefined=function(a){if(!Df(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.Ga.get(a);if(b)return b.eb;b=new Vf;this.Ga.set(a,b);var c=this.ja.has(a)||this.ia.has(a);a=-1===this.na.indexOf(a);c&&a&&b.resolve(void 0);return b.eb};n.polyfillWrapFlushCallback=function(a){this.Ta&&this.Ta.disconnect();var b=this.ha;this.ha=function(c){return a(function(){return b(c)})}};
function Tf(a,b){var c=a.ja.get(b);if(c)return c;if(c=a.ia.get(b)){a.ia.delete(b);try{return Yf(a,b,c())}catch(d){Sf(d)}}}window.CustomElementRegistry=T;T.prototype.define=T.prototype.define;T.prototype.upgrade=T.prototype.upgrade;T.prototype.get=T.prototype.get;T.prototype.whenDefined=T.prototype.whenDefined;T.prototype.polyfillDefineLazy=T.prototype.Jc;T.prototype.polyfillWrapFlushCallback=T.prototype.polyfillWrapFlushCallback;function Zf(a,b,c){function d(e){return function(f){for(var g=[],h=0;h<arguments.length;++h)g[h-0]=arguments[h];h=[];for(var k=[],m=0;m<g.length;m++){var p=g[m];p instanceof Element&&R(p)&&k.push(p);if(p instanceof DocumentFragment)for(p=p.firstChild;p;p=p.nextSibling)h.push(p);else h.push(p)}e.apply(this,g);for(g=0;g<k.length;g++)S(a,k[g]);if(R(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&Pf(a,k)}}void 0!==c.prepend&&(b.prepend=d(c.prepend));void 0!==c.append&&(b.append=d(c.append))}
;function $f(a){Document.prototype.createElement=function(b){return Uf(a,this,b,null)};Document.prototype.importNode=function(b,c){b=Xe.call(this,b,!!c);this.__CE_registry?Rf(a,b):Nf(a,b);return b};Document.prototype.createElementNS=function(b,c){return Uf(a,this,c,b)};Zf(a,Document.prototype,{prepend:Ye,append:Ze})};function ag(a){function b(d){return function(e){for(var f=[],g=0;g<arguments.length;++g)f[g-0]=arguments[g];g=[];for(var h=[],k=0;k<f.length;k++){var m=f[k];m instanceof Element&&R(m)&&h.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)g.push(m);else g.push(m)}d.apply(this,f);for(f=0;f<h.length;f++)S(a,h[f]);if(R(this))for(f=0;f<g.length;f++)h=g[f],h instanceof Element&&Pf(a,h)}}var c=Element.prototype;void 0!==uf&&(c.before=b(uf));void 0!==vf&&(c.after=b(vf));void 0!==
wf&&(c.replaceWith=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=[];for(var g=[],h=0;h<e.length;h++){var k=e[h];k instanceof Element&&R(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}h=R(this);wf.apply(this,e);for(e=0;e<g.length;e++)S(a,g[e]);if(h)for(S(a,this),e=0;e<f.length;e++)g=f[e],g instanceof Element&&Pf(a,g)});void 0!==xf&&(c.remove=function(){var d=R(this);xf.call(this);d&&S(a,this)})};function bg(a){function b(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;R(this)&&(k=[],Kf(a,this,function(w){w!==h&&k.push(w)}));f.set.call(this,g);if(k)for(var m=0;m<k.length;m++){var p=k[m];1===p.__CE_state&&a.disconnectedCallback(p)}this.ownerDocument.__CE_registry?Rf(a,this):Nf(a,this);return g}})}function c(e,f){e.insertAdjacentElement=function(g,h){var k=R(h);g=f.call(this,g,h);k&&S(a,h);R(g)&&Pf(a,h);return g}}
function d(e,f){function g(h,k){for(var m=[];h!==k;h=h.nextSibling)m.push(h);for(k=0;k<m.length;k++)Rf(a,m[k])}e.insertAdjacentHTML=function(h,k){h=h.toLowerCase();if("beforebegin"===h){var m=this.previousSibling;f.call(this,h,k);g(m||this.parentNode.firstChild,this)}else if("afterbegin"===h)m=this.firstChild,f.call(this,h,k),g(this.firstChild,m);else if("beforeend"===h)m=this.lastChild,f.call(this,h,k),g(m||this.firstChild,null);else if("afterend"===h)m=this.nextSibling,f.call(this,h,k),g(this.nextSibling,
m);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");}}hf&&(Element.prototype.attachShadow=function(e){e=hf.call(this,e);if(a.O&&!e.__CE_patched){e.__CE_patched=!0;for(var f=0;f<a.Y.length;f++)a.Y[f](e)}return this.__CE_shadowRoot=e});jf&&jf.get?b(Element.prototype,jf):zf&&zf.get?b(HTMLElement.prototype,zf):Mf(a,function(e){b(e,{enumerable:!0,configurable:!0,get:function(){return bf.call(this,!0).innerHTML},set:function(f){var g=
"template"===this.localName,h=g?this.content:this,k=We.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;0<h.childNodes.length;)ef.call(h,h.childNodes[0]);for(f=g?k.content:k;0<f.childNodes.length;)cf.call(h,f.childNodes[0])}})});Element.prototype.setAttribute=function(e,f){if(1!==this.__CE_state)return lf.call(this,e,f);var g=kf.call(this,e);lf.call(this,e,f);f=kf.call(this,e);a.attributeChangedCallback(this,e,g,f,null)};Element.prototype.setAttributeNS=function(e,f,g){if(1!==this.__CE_state)return of.call(this,
e,f,g);var h=nf.call(this,e,f);of.call(this,e,f,g);g=nf.call(this,e,f);a.attributeChangedCallback(this,f,h,g,e)};Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return mf.call(this,e);var f=kf.call(this,e);mf.call(this,e);null!==f&&a.attributeChangedCallback(this,e,f,null,null)};Element.prototype.removeAttributeNS=function(e,f){if(1!==this.__CE_state)return pf.call(this,e,f);var g=nf.call(this,e,f);pf.call(this,e,f);var h=nf.call(this,e,f);g!==h&&a.attributeChangedCallback(this,
f,g,h,e)};Af?c(HTMLElement.prototype,Af):qf&&c(Element.prototype,qf);Bf?d(HTMLElement.prototype,Bf):rf&&d(Element.prototype,rf);Zf(a,Element.prototype,{prepend:sf,append:tf});ag(a)};var cg={};function dg(a){function b(){var c=this.constructor;var d=document.__CE_registry.Ra.get(c);if(!d)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=Ve.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,Of(a,e),e;var f=e.length-1,g=e[f];if(g===cg)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");e[f]=
cg;Object.setPrototypeOf(g,c.prototype);Of(a,g);return g}b.prototype=yf.prototype;Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});window.HTMLElement=b};function eg(a){function b(c,d){Object.defineProperty(c,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,e);else{var f=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&R(this)){f=Array(h);for(var k=0;k<h;k++)f[k]=g[k]}}d.set.call(this,e);if(f)for(e=0;e<f.length;e++)S(a,f[e])}}})}Node.prototype.insertBefore=function(c,d){if(c instanceof DocumentFragment){var e=Ff(c);c=df.call(this,c,d);if(R(this))for(d=
0;d<e.length;d++)Pf(a,e[d]);return c}e=c instanceof Element&&R(c);d=df.call(this,c,d);e&&S(a,c);R(this)&&Pf(a,c);return d};Node.prototype.appendChild=function(c){if(c instanceof DocumentFragment){var d=Ff(c);c=cf.call(this,c);if(R(this))for(var e=0;e<d.length;e++)Pf(a,d[e]);return c}d=c instanceof Element&&R(c);e=cf.call(this,c);d&&S(a,c);R(this)&&Pf(a,c);return e};Node.prototype.cloneNode=function(c){c=bf.call(this,!!c);this.ownerDocument.__CE_registry?Rf(a,c):Nf(a,c);return c};Node.prototype.removeChild=
function(c){var d=c instanceof Element&&R(c),e=ef.call(this,c);d&&S(a,c);return e};Node.prototype.replaceChild=function(c,d){if(c instanceof DocumentFragment){var e=Ff(c);c=ff.call(this,c,d);if(R(this))for(S(a,d),d=0;d<e.length;d++)Pf(a,e[d]);return c}e=c instanceof Element&&R(c);var f=ff.call(this,c,d),g=R(this);g&&S(a,d);e&&S(a,c);g&&Pf(a,c);return f};gf&&gf.get?b(Node.prototype,gf):Lf(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var d=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==
Node.COMMENT_NODE&&d.push(e.textContent);return d.join("")},set:function(d){for(;this.firstChild;)ef.call(this,this.firstChild);null!=d&&""!==d&&cf.call(this,document.createTextNode(d))}})})};var Jf=window.customElements;function fg(){var a=new If;dg(a);$f(a);Zf(a,DocumentFragment.prototype,{prepend:$e,append:af});eg(a);bg(a);a=new T(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}Jf&&!Jf.forcePolyfill&&"function"==typeof Jf.define&&"function"==typeof Jf.get||fg();window.__CE_installPolyfill=fg;/*

Copyright (c) 2017 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 gg(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
function hg(a){var b=a=a.replace(ig,"").replace(jg,""),c=new gg;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null;d=new gg;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return kg(c,a)}
function kg(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=_expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c),c=c.replace(lg," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=4:c.match(mg)&&(a.type=7,a.keyframesName=a.selector.split(lg).pop()):a.type=0===c.indexOf("--")?
1E3:1);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)kg(f,b);return a}function _expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(b,c){b=c;for(c=6-b.length;c--;)b="0"+b;return"\\"+b})}
function ng(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules;if(e&&!_hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e))for(var f=0,g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=ng(h,b,d);else b?b=a.cssText:(b=a.cssText,b=b.replace(og,"").replace(pg,""),b=b.replace(qg,"").replace(rg,"")),(d=b.trim())&&(d="  "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
function _hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(a){a=a[0];return!!a&&!!a.selector&&0===a.selector.indexOf("--")}var ig=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,jg=/@import[^;]*;/gim,og=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,pg=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,qg=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,rg=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,mg=/^@[^\s]*keyframes/,lg=/\s+/g;var U=!(window.ShadyDOM&&window.ShadyDOM.inUse),sg;function tg(a){sg=a&&a.shimcssproperties?!1:U||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var ug;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(ug=window.ShadyCSS.cssBuild);var vg=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?sg=window.ShadyCSS.nativeCss:window.ShadyCSS?(tg(window.ShadyCSS),window.ShadyCSS=void 0):tg(window.WebComponents&&window.WebComponents.flags);var W=sg;var wg=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,xg=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,yg=/(--[\w-]+)\s*([:,;)]|$)/gi,zg=/(animation\s*:)|(animation-name\s*:)/,Dg=/@media\s(.*)/,Eg=/\{[^}]*\}/g;var Fg=new Set;function Gg(a,b){if(!a)return"";"string"===typeof a&&(a=hg(a));b&&Hg(a,b);return ng(a,W)}function Ig(a){!a.__cssRules&&a.textContent&&(a.__cssRules=hg(a.textContent));return a.__cssRules||null}function Jg(a){return!!a.parent&&7===a.parent.type}function Hg(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&4===f){var g=a.selector.match(Dg);g&&(window.matchMedia(g[1]).matches||(e=!0))}1===f?b(a):c&&7===f?c(a):1E3===f&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)Hg(g,b,c,d)}}
function Kg(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;Lg(e,c,d);return e}var Mg=null;function Ng(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(Mg?Mg.nextSibling:null)||b.firstChild);return Mg=a}function Lg(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);Mg?a.compareDocumentPosition(Mg)===Node.DOCUMENT_POSITION_PRECEDING&&(Mg=a):Mg=a}
function Og(a,b){for(var c=0,d=a.length;b<d;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function Pg(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=Og(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=Pg(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function Qg(a,b){U?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
var Rg=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function Sg(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,da:c}}function Tg(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=Og(a,d);c+=a.slice(d,e+1);d=e}else","===a[d]?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
function Ug(a){if(void 0!==ug)return ug;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
function Vg(a){a=void 0===a?"":a;return""!==a&&W?U?"shadow"===a:"shady"===a:!1};function Wg(){}function Xg(a,b){var c=X;c.ma(a,function(d){c.element(d,b||"")})}n=Wg.prototype;n.ma=function(a,b){a.nodeType===Node.ELEMENT_NODE&&b(a);if(a="template"===a.localName?(a.content||a._content||a).childNodes:a.children||a.childNodes)for(var c=0;c<a.length;c++)this.ma(a[c],b)};
n.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),Qg(a,b)):Qg(a,(d?d+" ":"")+"style-scope "+b)}};function Yg(a,b,c){var d=X;d.ma(a,function(e){d.element(e,b,!0);d.element(e,c)})}function Zg(a,b){var c=X;c.ma(a,function(d){c.element(d,b||"",!0)})}
function $g(a,b,c,d,e){var f=X;e=void 0===e?"":e;""===e&&(U||"shady"===(void 0===d?"":d)?e=Gg(b,c):(a=Sg(a),e=ah(f,b,a.is,a.da,c)+"\n\n"));return e.trim()}function ah(a,b,c,d,e){var f=a.wa(c,d);c=a.Qa(c);return Gg(b,function(g){g.Ec||(a.hb(g,a.Ea,c,f),g.Ec=!0);e&&e(g,c,f)})}n.Qa=function(a){return a?"."+a:""};n.wa=function(a,b){return b?"[is="+a+"]":a};n.hb=function(a,b,c,d){a.selector=a.o=this.ib(a,b,c,d)};
n.ib=function(a,b,c,d){var e=Tg(a.selector);if(!Jg(a)){a=0;for(var f=e.length,g=void 0;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.filter(function(h){return!!h}).join(",")};n.kb=function(a){return a.replace(bh,function(b,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})};
n.bc=function(a){for(var b=[],c;c=a.match(ch);){var d=c.index,e=Og(a,d);if(-1===e)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{La:a,matches:b}};n.fc=function(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])};
n.Ea=function(a,b,c){var d=this,e=!1;a=a.trim();var f=bh.test(a);f&&(a=a.replace(bh,function(k,m,p){return":"+m+"("+p.replace(/\s/g,"")+")"}),a=this.kb(a));var g=ch.test(a);if(g){var h=this.bc(a);a=h.La;h=h.matches}a=a.replace(dh,":host $1");a=a.replace(eh,function(k,m,p){e||(k=d.nc(p,m,b,c),e=e||k.stop,m=k.vc,p=k.value);return m+p});g&&(a=this.fc(a,h));f&&(a=this.kb(a));return a=a.replace(fh,function(k,m,p,w){return'[dir="'+p+'"] '+m+w+", "+m+'[dir="'+p+'"]'+w})};
n.nc=function(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=this.pc(a,d):0!==e&&(a=c?this.jb(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(gh,function(g,h){return" > "+h}))}return{value:a,vc:b,stop:f}};n.jb=function(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(1===d%2)c.push(a[d]);else{var e=a[d];if(""!==e||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")};
n.pc=function(a,b){var c=a.match(hh);return(c=c&&c[2].trim()||"")?c[0].match(ih)?a.replace(hh,function(d,e,f){return b+f}):c.split(ih)[0]===b?c:"should_not_match":a.replace(":host",b)};function jh(a){":root"===a.selector&&(a.selector="html")}n.oc=function(a){return a.match(":host")?"":a.match("::slotted")?this.Ea(a,":not(.style-scope)"):this.jb(a.trim(),":not(.style-scope)")};fa.Object.defineProperties(Wg.prototype,{ea:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var bh=/:(nth[-\w]+)\(([^)]+)\)/,eh=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ih=/[[.:#*]/,dh=/^(::slotted)/,hh=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,gh=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fh=/(.*):dir\((?:(ltr|rtl))\)(.*)/,ch=/:(?:matches|any|-(?:webkit|moz)-any)/,X=new Wg;function kh(a,b,c,d,e){this.B=a||null;this.placeholder=b||null;this.Ja=c||[];this.V=null;this.cssBuild=e||"";this.da=d||"";this.S=this.A=this.G=null}function lh(a){return a?a.__styleInfo:null}function mh(a,b){return a.__styleInfo=b}kh.prototype.Sb=function(){return this.B};kh.prototype._getStyleRules=kh.prototype.Sb;function nh(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var oh=/:host\s*>\s*/,ph=navigator.userAgent.match("Trident");function qh(){}function rh(a){var b={},c=[],d=0;Hg(a,function(f){sh(f);f.index=d++;f=f.j.cssText;for(var g;g=yg.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.Vb=c;a=[];for(var e in b)a.push(e);return a}
function sh(a){if(!a.j){var b={},c={};th(a,c)&&(b.F=c,a.rules=null);b.cssText=a.parsedCssText.replace(Eg,"").replace(wg,"");a.j=b}}function th(a,b){var c=a.j;if(c){if(c.F)return Object.assign(b,c.F),!0}else{c=a.parsedCssText;for(var d;a=wg.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
function uh(a,b,c){b&&(b=0<=b.indexOf(";")?vh(a,b,c):Pg(b,function(d,e,f,g){if(!e)return d+g;(e=uh(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=uh(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
function vh(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){xg.lastIndex=0;if(f=xg.exec(e))e=uh(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=uh(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
function wh(a,b){var c={},d=[];Hg(a,function(e){e.j||sh(e);var f=e.o||e.parsedSelector;b&&e.j.F&&f&&nh.call(b,f)&&(th(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{F:c,key:d}}
function xh(a,b,c,d){b.j||sh(b);if(b.j.F){var e=Sg(a);a=e.is;e=e.da;e=a?X.wa(a,e):"html";var f=b.parsedSelector;var g=!!f.match(oh)||"html"===e&&-1<f.indexOf("html");var 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.o||(b.o=X.ib(b,X.Ea,X.Qa(a),e)),c=b.o||e),g&&"html"===e&&(c=b.o||b.Zc),d({La:c,Dc:h,Yc:g})}}
function yh(a,b,c){var d={},e={};Hg(b,function(f){xh(a,f,c,function(g){nh.call(a._element||a,g.La)&&(g.Dc?th(f,d):th(f,e))})},null,!0);return{Mc:e,Cc:d}}
function zh(a,b,c,d){var e=Sg(b),f=X.wa(e.is,e.da),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=lh(b);e=h.B;h=h.cssBuild;var k=a.Ib(b,e,d);return $g(b,e,function(m){var p="";m.j||sh(m);m.j.cssText&&(p=vh(a,m.j.cssText,c));m.cssText=p;if(!U&&!Jg(m)&&m.cssText){var w=p=m.cssText;null==m.mb&&(m.mb=zg.test(p));if(m.mb)if(null==m.ra){m.ra=[];for(var F in k)w=k[F],w=w(p),p!==w&&(p=w,m.ra.push(F))}else{for(F=0;F<m.ra.length;++F)w=k[m.ra[F]],p=w(p);w=p}m.cssText=
w;a.lc(m,g,f,d)}},h)}qh.prototype.Ib=function(a,b,c){a=b.Vb;b={};if(!U&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.kc(e,c),b[e.keyframesName]=this.Wb(e);return b};qh.prototype.Wb=function(a){return function(b){return b.replace(a.Fc,a.ub)}};qh.prototype.kc=function(a,b){a.Fc=new RegExp("\\b"+a.keyframesName+"(?!\\B|-)","g");a.ub=a.keyframesName+"-"+b;a.o=a.o||a.selector;a.selector=a.o.replace(a.keyframesName,a.ub)};
qh.prototype.lc=function(a,b,c,d){a.o=a.o||a.selector;d="."+d;for(var e=Tg(a.o),f=0,g=e.length,h=void 0;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};function Ah(a,b){var c=Bh,d=Ig(a);a.textContent=Gg(d,function(e){var f=e.cssText=e.parsedCssText;e.j&&e.j.cssText&&(f=f.replace(og,"").replace(pg,""),e.cssText=vh(c,f,b))})}fa.Object.defineProperties(qh.prototype,{wb:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Bh=new qh;var Ch={},Dh=window.customElements;if(Dh&&!U&&!vg){var Eh=Dh.define;Dh.define=function(a,b,c){Ch[a]||(Ch[a]=Ng(a));Eh.call(Dh,a,b,c)}};function Fh(){this.cache={};this.Sc=100}Fh.prototype.tc=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.F[e]!==b[e])return!1}return!0};Fh.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({F:b,styleElement:c,A:d});e.length>this.Sc&&e.shift();this.cache[a]=e};Fh.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.tc(e,b,c))return e}};function Gh(){}var Hh=new RegExp(X.ea+"\\s*([^\\s]*)");function Ih(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Hh))?a[1]:""}function Jh(a){var b=Rg(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?Sg(a).is:""}
function Kh(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=Ih(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===Ug(e)))Zg(e,g);else if(f instanceof ShadowRoot)for(f=Jh(e),f!==g&&Yg(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+X.ea+")"),g=0;g<e.length;g++){f=e[g];
var h=Jh(f);h&&X.element(f,h)}}}}}
if(!(U||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Lh=new MutationObserver(Kh),Mh=function(a){Lh.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Mh(document);else{var Nh=function(){Mh(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Nh):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Nh();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else Nh()})}Gh=function(){Kh(Lh.takeRecords())}};var Oh={};var Ph=Promise.resolve();function Qh(a){if(a=Oh[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function Rh(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function Sh(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,Ph.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var Th={},Uh=new Fh;function Y(){this.fb={};this.M=document.documentElement;var a=new gg;a.rules=[];this.C=mh(this.M,new kh(a));this.za=!1;this.h=this.l=null}n=Y.prototype;n.flush=function(){Gh()};n.Ob=function(a){var b=this.fb[a]=(this.fb[a]||0)+1;return a+"-"+b};n.zc=function(a){return Ig(a)};n.Rc=function(a){return Gg(a)};
n.Nb=function(a){var b=[];a=a.content.querySelectorAll("style");for(var c=0;c<a.length;c++){var d=a[c];if(d.hasAttribute("shady-unscoped")){if(!U){var e=d.textContent;if(!Fg.has(e)){Fg.add(e);var f=document.createElement("style");f.setAttribute("shady-unscoped","");f.textContent=e;document.head.appendChild(f)}d.parentNode.removeChild(d)}}else b.push(d.textContent),d.parentNode.removeChild(d)}return b.join("").trim()};
n.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
n.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!vg){U||Ch[b]||(Ch[b]=Ng(b));a._prepared=!0;a.name=b;a.extends=c;Oh[b]=a;var d=Ug(a),e=Vg(d);c={is:b,extends:c};var f=this.Nb(a)+(Th[b]||"");this.X();if(!e){var g;if(g=!d)g=xg.test(f)||wg.test(f),xg.lastIndex=0,wg.lastIndex=0;var h=hg(f);g&&W&&this.l&&this.l.transformRules(h,b);a._styleAst=h}g=[];W||(g=rh(a._styleAst));if(!g.length||W)b=this.Pb(c,a._styleAst,U?a.content:null,Ch[b]||null,d,e?f:""),a._style=b;a.ac=g}};
n.Kc=function(a,b){Th[b]=a.join(" ")};n.prepareTemplateDom=function(a,b){if(!vg){var c=Ug(a);U||"shady"===c||a._domPrepared||(a._domPrepared=!0,Xg(a.content,b))}};n.Pb=function(a,b,c,d,e,f){f=$g(a,b,null,e,f);return f.length?Kg(f,a.is,c,d):null};n.bb=function(a){var b=Sg(a),c=b.is;b=b.da;var d=Ch[c]||null,e=Oh[c];if(e){c=e._styleAst;var f=e.ac;e=Ug(e);b=new kh(c,d,f,b,e);mh(a,b);return b}};
n.Jb=function(){return!this.l&&window.ShadyCSS&&window.ShadyCSS.ApplyShim?(this.l=window.ShadyCSS.ApplyShim,this.l.invalidCallback=Qh,!0):!1};n.Kb=function(){var a=this;!this.h&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.h=window.ShadyCSS.CustomStyleInterface,this.h.transformCallback=function(b){a.tb(b)},this.h.validateCallback=function(){requestAnimationFrame(function(){(a.h.enqueued||a.za)&&a.flushCustomStyles()})})};n.X=function(){var a=this.Jb();this.Kb();return a};
n.flushCustomStyles=function(){if(!vg){var a=this.X();if(this.h){var b=this.h.processStyles();!a&&!this.h.enqueued||Vg(this.C.cssBuild)||(W?this.C.cssBuild||this.jc(b):(this.ec(b),this.Fa(this.M,this.C),this.Bb(b),this.za&&this.styleDocument()),this.h.enqueued=!1)}}};
n.ec=function(a){var b=this;a=a.map(function(c){return b.h.getStyleForCustomStyle(c)}).filter(function(c){return!!c});a.sort(function(c,d){c=d.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});this.C.B.rules=a.map(function(c){return Ig(c)})};
n.styleElement=function(a,b){if(vg){if(b){lh(a)||mh(a,new kh(null));var c=lh(a);this.$a(c,b);Vh(this,a,c)}}else if(c=lh(a)||this.bb(a))this.Aa(a)||(this.za=!0),b&&this.$a(c,b),W?Vh(this,a,c):(this.flush(),this.Fa(a,c),c.Ja&&c.Ja.length&&this.Cb(a,c))};n.$a=function(a,b){a.V=a.V||{};Object.assign(a.V,b)};
function Vh(a,b,c){var d=Sg(b).is;if(c.V){var e=c.V,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}if(((e=Oh[d])||a.Aa(b))&&(!e||""===Ug(e))&&e&&e._style&&!Rh(e)){if(Rh(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)a.X(),a.l&&a.l.transformRules(e._styleAst,d),e._style.textContent=$g(b,c.B),Sh(e);U&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=$g(b,c.B));c.B=e._styleAst}}
n.Da=function(a){return(a=Rg(a).getRootNode().host)?lh(a)||this.bb(a)?a:this.Da(a):this.M};n.Aa=function(a){return a===this.M};
n.Cb=function(a,b){var c=Sg(a).is,d=Uh.fetch(c,b.G,b.Ja),e=d?d.styleElement:null,f=b.A;b.A=d&&d.A||this.Ob(c);var g=b.A;var h=Bh;h=e?e.textContent||"":zh(h,a,b.G,g);var k=lh(a),m=k.S;m&&!U&&m!==e&&(m._useCount--,0>=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));U?k.S?(k.S.textContent=h,e=k.S):h&&(e=Kg(h,g,a.shadowRoot,k.placeholder)):e?e.parentNode||(ph&&-1<h.indexOf("@media")&&(e.textContent=h),Lg(e,null,k.placeholder)):h&&(e=Kg(h,g,null,k.placeholder));e&&(e._useCount=e._useCount||0,k.S!=
e&&e._useCount++,k.S=e);g=e;U||(e=b.A,k=h=a.getAttribute("class")||"",f&&(k=h.replace(new RegExp("\\s*x-scope\\s*"+f+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+e,h!==k&&Qg(a,k));d||Uh.store(c,b.G,g,b.A);return g};n.Fa=function(a,b){var c=this.Da(a),d=lh(c),e=d.G;c===this.M||e||(this.Fa(c,d),e=d.G);c=Object.create(e||null);e=yh(a,b.B,b.cssBuild);a=wh(d.B,a).F;Object.assign(c,e.Cc,a,e.Mc);this.Zb(c,b.V);a=Bh;d=Object.getOwnPropertyNames(c);e=0;for(var f;e<d.length;e++)f=d[e],c[f]=uh(a,c[f],c);b.G=c};
n.Zb=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};n.styleDocument=function(a){this.styleSubtree(this.M,a)};n.styleSubtree=function(a,b){var c=Rg(a),d=c.shadowRoot,e=this.Aa(a);(d||e)&&this.styleElement(a,b);if(a=e?c:d)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return Rg(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};n.jc=function(a){for(var b=0;b<a.length;b++){var c=this.h.getStyleForCustomStyle(a[b]);c&&this.ic(c)}};
n.Bb=function(a){for(var b=0;b<a.length;b++){var c=this.h.getStyleForCustomStyle(a[b]);c&&Ah(c,this.C.G)}};n.tb=function(a){var b=this,c=Ug(a);c!==this.C.cssBuild&&(this.C.cssBuild=c);if(!Vg(c)){var d=Ig(a);Hg(d,function(e){if(U)jh(e);else{var f=X;e.selector=e.parsedSelector;jh(e);f.hb(e,f.oc)}W&&""===c&&(b.X(),b.l&&b.l.transformRule(e))});W?a.textContent=Gg(d):this.C.B.rules.push(d)}};n.ic=function(a){if(W&&this.l){var b=Ig(a);this.X();this.l.transformRules(b);a.textContent=Gg(b)}};
n.getComputedStyleValue=function(a,b){var c;W||(c=(lh(a)||lh(this.Da(a))).G[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};n.Qc=function(a,b){var c=Rg(a).getRootNode();b=b?("string"===typeof b?b:String(b)).split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===X.ea){c=d[e+1];break}}}c&&b.push(X.ea,c);W||(c=lh(a))&&c.A&&b.push(Bh.wb,c.A);Qg(a,b.join(" "))};n.mc=function(a){return lh(a)};
n.Pc=function(a,b){X.element(a,b)};n.Tc=function(a,b){X.element(a,b,!0)};n.Oc=function(a){return Jh(a)};n.wc=function(a){return Ih(a)};Y.prototype.flush=Y.prototype.flush;Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.Qc;
Y.prototype._styleInfoForNode=Y.prototype.mc;Y.prototype.transformCustomStyleForDocument=Y.prototype.tb;Y.prototype.getStyleAst=Y.prototype.zc;Y.prototype.styleAstToString=Y.prototype.Rc;Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.Pc;Y.prototype.unscopeNode=Y.prototype.Tc;Y.prototype.scopeForNode=Y.prototype.Oc;Y.prototype.currentScopeForNode=Y.prototype.wc;Y.prototype.prepareAdoptedCssText=Y.prototype.Kc;
Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return U}},nativeCss:{get:function(){return W}}});var Z=new Y,Wh,Xh;window.ShadyCSS&&(Wh=window.ShadyCSS.ApplyShim,Xh=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Z.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},flushCustomStyles:function(){Z.flushCustomStyles()},
getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:W,nativeShadow:U,cssBuild:ug,disableRuntime:vg};Wh&&(window.ShadyCSS.ApplyShim=Wh);Xh&&(window.ShadyCSS.CustomStyleInterface=Xh);/*

Copyright (c) 2019 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 Yh=window.customElements,Zh=window.HTMLImports,$h=!1,ai=null;Yh.polyfillWrapFlushCallback&&Yh.polyfillWrapFlushCallback(function(a){ai=a;$h&&a()});function bi(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document);Zh.whenReady(function(){ai&&ai();$h=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}
"complete"!==document.readyState?(window.addEventListener("load",bi),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",bi);bi()})):bi();})();
//# sourceMappingURL=webcomponents-lite.js.map
