/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';var n,p="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function ba(){ba=function(){};p.Symbol||(p.Symbol=ca)}var ca=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}();
function da(){ba();var a=p.Symbol.iterator;a||(a=p.Symbol.iterator=p.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});da=function(){}}function ea(a){var b=0;return fa(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function fa(a){da();a={next:a};a[p.Symbol.iterator]=function(){return this};return a}function ha(a){da();ba();da();var b=a[Symbol.iterator];return b?b.call(a):ea(a)}
function ia(a){if(!(a instanceof Array)){a=ha(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function la(){}la.prototype.toJSON=function(){return{}};function q(a){a.__shady||(a.__shady=new la);return a.__shady}function r(a){return a&&a.__shady};var t=window.ShadyDOM||{};t.sa=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var ma=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");t.i=!!(ma&&ma.configurable&&ma.get);t.V=t.force||!t.sa;t.v=t.noPatch||!1;t.ea=t.preferPerformance;var na=navigator.userAgent.match("Trident");t.ha=na;function u(a){return(a=r(a))&&void 0!==a.firstChild}function v(a){return"ShadyRoot"===a.ma}function oa(a){return(a=(a=r(a))&&a.root)&&pa(a)}
var w=Element.prototype,qa=w.matches||w.matchesSelector||w.mozMatchesSelector||w.msMatchesSelector||w.oMatchesSelector||w.webkitMatchesSelector,ra=document.createTextNode(""),sa=0,ta=[];(new MutationObserver(function(){for(;ta.length;)try{ta.shift()()}catch(a){throw ra.textContent=sa++,a;}})).observe(ra,{characterData:!0});function ua(a){ta.push(a);ra.textContent=sa++}var va=!!document.contains;function wa(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function xa(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(b){return a[b]};a.namedItem=function(b){if("length"!==b&&isNaN(b)&&a[b])return a[b];for(var c=ha(a),d=c.next();!d.done;d=c.next())if(d=d.value,(d.getAttribute("id")||d.getAttribute("name"))==b)return d;return null};return a}function ya(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
function za(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function x(a,b,c,d){c=void 0===c?"":c;for(var e in b){var f=b[e];if(!(d&&0<=d.indexOf(e))){f.configurable=!0;var g=c+e;if(f.value)a[g]=f.value;else try{Object.defineProperty(a,g,f)}catch(h){}}}}function y(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b};var Aa=[],Ba;function Ca(a){Ba||(Ba=!0,ua(Da));Aa.push(a)}function Da(){Ba=!1;for(var a=!!Aa.length;Aa.length;)Aa.shift()();return a}Da.list=Aa;function Ea(){this.a=!1;this.addedNodes=[];this.removedNodes=[];this.L=new Set}function Fa(a){a.a||(a.a=!0,ua(function(){a.flush()}))}Ea.prototype.flush=function(){if(this.a){this.a=!1;var a=this.takeRecords();a.length&&this.L.forEach(function(b){b(a)})}};Ea.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 Ga(a,b){var c=q(a);c.G||(c.G=new Ea);c.G.L.add(b);var d=c.G;return{la:b,B:d,na:a,takeRecords:function(){return d.takeRecords()}}}function Ha(a){var b=a&&a.B;b&&(b.L.delete(a.la),b.L.size||(q(a.na).G=null))}
function Ia(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})};var Ja=/[&\u00A0"]/g,Ka=/[&\u00A0<>]/g;function La(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Ma(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Na=Ma("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Oa=Ma("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function Pa(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,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var m="<"+k,B=h.attributes,ja=0,ka;ka=B[ja];ja++)m+=" "+ka.name+'="'+ka.value.replace(Ja,La)+'"';m+=">";h=Na[k]?m:m+Pa(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Oa[k.localName]?h:h.replace(Ka,La);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 Qa=t.i,Ra={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Sa={};function Ua(a){Sa[a]=function(b){return b["__shady_native_"+a]}}function Va(a,b){x(a,b,"__shady_native_");for(var c in b)Ua(c)}function z(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?Ra[d]||(Ra[d]=e.value):Ua(d))}}
var A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),C=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Wa=document.implementation.createHTMLDocument("inert");function Xa(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var Ya=["firstElementChild","lastElementChild","children","childElementCount"],Za=["querySelector","querySelectorAll"];
function $a(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?z(window.EventTarget.prototype,a):(z(Node.prototype,a),z(Window.prototype,a));Qa?z(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Va(Node.prototype,{parentNode:{get:function(){A.currentNode=this;return A.parentNode()}},firstChild:{get:function(){A.currentNode=this;return A.firstChild()}},lastChild:{get:function(){A.currentNode=
this;return A.lastChild()}},previousSibling:{get:function(){A.currentNode=this;return A.previousSibling()}},nextSibling:{get:function(){A.currentNode=this;return A.nextSibling()}},childNodes:{get:function(){var a=[];A.currentNode=this;for(var c=A.firstChild();c;)a.push(c),c=A.nextSibling();return a}},parentElement:{get:function(){C.currentNode=this;return C.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var a=document.createTreeWalker(this,
NodeFilter.SHOW_TEXT,null,!1),c="",d;d=a.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Xa(this);(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(a),void 0);break;default:this.nodeValue=a}}}});z(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
z(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){C.currentNode=this;return C.firstChild()}},lastElementChild:{get:function(){C.currentNode=this;return C.lastChild()}},children:{get:function(){var a=[];C.currentNode=this;for(var c=C.firstChild();c;)a.push(c),c=C.nextSibling();return xa(a)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Qa?(z(Element.prototype,Ya),z(Element.prototype,["previousElementSibling","nextElementSibling",
"innerHTML","className"]),z(HTMLElement.prototype,["children","innerHTML","className"])):(Va(Element.prototype,a),Va(Element.prototype,{previousElementSibling:{get:function(){C.currentNode=this;return C.previousSibling()}},nextElementSibling:{get:function(){C.currentNode=this;return C.nextSibling()}},innerHTML:{get:function(){return Pa(this,ya)},set:function(a){var b="template"===this.localName?this.content:this;Xa(b);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Wa.namespaceURI?
Wa.createElementNS(this.namespaceURI,d):Wa.createElement(d);d.innerHTML=a;for(a="template"===this.localName?d.content:d;d=a.__shady_native_firstChild;)b.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(a){this.setAttribute("class",a)}}}));z(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));z(Element.prototype,Za);z(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
z(window.HTMLTemplateElement.prototype,["innerHTML"]);Qa?z(DocumentFragment.prototype,Ya):Va(DocumentFragment.prototype,a);z(DocumentFragment.prototype,Za);Qa?(z(Document.prototype,Ya),z(Document.prototype,["activeElement"])):Va(Document.prototype,a);z(Document.prototype,["importNode","getElementById"]);z(Document.prototype,Za)};var ab=y({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}}),bb=y({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){return this.__shady_innerHTML=a}}),cb=y({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){return this.__shady_className=a}});function db(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}db(ab);db(bb);db(cb);var eb=t.i||t.v,fb=eb?function(){}:function(a){var b=q(a);b.ja||(b.ja=!0,x(a,cb))},gb=eb?function(){}:function(a){var b=q(a);b.ia||(b.ia=!0,x(a,ab),window.customElements&&!t.v||x(a,bb))};var hb="__eventWrappers"+Date.now(),ib=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),jb=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 kb(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.A}else b=!!a,d=c=!1;return{fa:e,capture:b,once:c,passive:d,da:jb?a:b}}
var lb={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},mb={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function nb(a){return a instanceof Node?a.__shady_getRootNode():a}
function ob(a,b){var c=[],d=a;for(a=nb(a);d;)c.push(d),d.__shady_assignedSlot?d=d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d=d.host:d=d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function pb(a){a.__composedPath||(a.__composedPath=ob(a.target,!0));return a.__composedPath}function qb(a,b){if(!v)return a;a=ob(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=nb(d),f!==e&&(g=a.indexOf(f),e=f),!v(f)||-1<g)return d}
function rb(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}b.__proto__=a;b.prototype=a.prototype;return b}var sb={focus:!0,blur:!0};function tb(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function ub(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!tb(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function vb(a){var b=a.composedPath();Object.defineProperty(a,"currentTarget",{get:function(){return d},configurable:!0});for(var c=b.length-1;0<=c;c--){var d=b[c];ub(a,d,"capture");if(a.R)return}Object.defineProperty(a,"eventPhase",{get:function(){return Event.AT_TARGET}});var e;for(c=0;c<b.length;c++){d=b[c];var f=r(d);f=f&&f.root;if(0===c||f&&f===e)if(ub(a,d,"bubble"),d!==window&&(e=d.__shady_getRootNode()),a.R)break}}
function wb(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,l=h.capture,m=h.once,B=h.passive;if(b===h.node&&c===k&&d===l&&e===m&&f===B)return g}return-1}function xb(a){Da();return this.__shady_native_dispatchEvent(a)}
function yb(a,b,c){var d=kb(c),e=d.capture,f=d.once,g=d.passive,h=d.fa;d=d.da;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(mb[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[hb]){if(-1<wb(h,l,a,e,f,g))return}else b[hb]=[];h=function(d){f&&this.__shady_removeEventListener(a,b,c);d.__target||zb(d);if(l!==this){var e=Object.getOwnPropertyDescriptor(d,"currentTarget");Object.defineProperty(d,"currentTarget",
{get:function(){return l},configurable:!0})}d.__previousCurrentTarget=d.currentTarget;if(!v(l)&&"slot"!==l.localName||-1!=d.composedPath().indexOf(l))if(d.composed||-1<d.composedPath().indexOf(l))if(tb(d)&&d.target===d.relatedTarget)d.eventPhase===Event.BUBBLING_PHASE&&d.stopImmediatePropagation();else if(d.eventPhase===Event.CAPTURING_PHASE||d.bubbles||d.target===l||l instanceof Window){var g="function"===k?b.call(l,d):b.handleEvent&&b.handleEvent(d);l!==this&&(e?(Object.defineProperty(d,"currentTarget",
e),e=null):delete d.currentTarget);return g}};b[hb].push({node:l,type:a,capture:e,once:f,passive:g,Ea:h});sb[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][e?"capture":"bubble"].push(h)):this.__shady_native_addEventListener(a,h,d)}}}
function Ab(a,b,c){if(b){var d=kb(c);c=d.capture;var e=d.once,f=d.passive,g=d.fa;d=d.da;if(mb[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[hb]}catch(l){}k&&(e=wb(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].Ea,k.length||(b[hb]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&sb[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
function Bb(){for(var a in sb)window.__shady_native_addEventListener(a,function(a){a.__target||(zb(a),vb(a))},!0)}
var Cb=y({get composed(){void 0===this.__composed&&(ib?this.__composed="focusin"===this.type||"focusout"===this.type||ib(this):!1!==this.isTrusted&&(this.__composed=lb[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=ob(this.__target,this.composed));return this.__composedPath},get target(){return qb(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=ob(this.__relatedTarget,!0));return qb(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.R=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.R=this.__immediatePropagationStopped=!0}});
function zb(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(t.i){var b=Object.getPrototypeOf(a);if(!Object.hasOwnProperty(b,"__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;x(c,Cb);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else x(a,Cb)}var Db=rb(Event),Eb=rb(CustomEvent),Fb=rb(MouseEvent);
function Gb(){if(!ib&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var a=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(a)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}var Hb=Object.getOwnPropertyNames(Document.prototype).filter(function(a){return"on"===a.substring(0,2)});function Ib(a,b){return{index:a,H:[],K:b}}
function Jb(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 l=c.length,m=0;m<k-g&&Kb(a[--h],c[--l]);)m++;h=m}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Ib(e,0);f<d;)b.H.push(c[f++]);return[b]}if(f==d)return[Ib(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(m=1;m<h;m++)if(a[k+m-1]===c[g+l-1])b[l][m]=
b[l-1][m-1];else{var B=b[l-1][m]+1,ja=b[l][m-1]+1;b[l][m]=B<ja?B:ja}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],l=b[k-1][g],m=b[k][g-1],B=l<m?l<h?l:h:m<h?m:h,B==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):B==l?(a.push(3),k--,d=l):(a.push(2),g--,d=m));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=Ib(e,0));b.K++;e++;b.H.push(c[f]);f++;break;case 2:b||(b=Ib(e,
0));b.K++;e++;break;case 3:b||(b=Ib(e,0)),b.H.push(c[f]),f++}b&&k.push(b);return k}function Kb(a,b){return a===b};function Lb(a,b,c,d){fb(a);d=d||null;var e=q(a),f=d?q(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=r(e.previousSibling))f.nextSibling=a;if(f=r(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 Mb(a,b,c){gb(b);var d=q(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)Lb(a,b,d,c);else Lb(a,b,d,c)}
function Nb(a,b){var c=q(a);b=q(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(q(a).nextSibling=d);d&&(q(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
function Ob(a,b){var c=q(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;gb(a);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=q(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;fb(c)}}};var Pb=null;function D(){Pb||(Pb=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Pb||null}function Qb(a,b,c){var d=D();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function Rb(a,b){var c=D();c&&c.unscopeNode(a,b)}function Sb(a,b){var c=D();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&&Sb(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
function Tb(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=D();return b?b.currentScopeForNode(a):""}function Ub(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&&Ub(a,b)};var Vb=window.document,Wb=t.ea,Xb=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Yb=Xb&&Xb.get;function Zb(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function $b(a){var b=r(a);if(b&&void 0!==b.N)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)$b(b);if(a=r(a))a.N=void 0}function ac(a){var b=a;a&&"slot"===a.localName&&(b=(b=(b=r(a))&&b.D)&&b.length?b[0]:ac(a.__shady_nextSibling));return b}
function bc(a,b,c){if(a=(a=r(a))&&a.G)b&&(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?a.addedNodes.push.apply(a.addedNodes,ia(b.childNodes)):a.addedNodes.push(b)),c&&a.removedNodes.push(c),Fa(a)}
var ec=y({get parentNode(){var a=r(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=r(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=r(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=r(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=r(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
get childNodes(){if(u(this)){var a=r(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(a){return c[a]};return c},get parentElement(){var a=r(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(Yb&&Yb.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(va){if(a.__shady_native_contains(this))return!0}else if(a.documentElement&&a.documentElement.__shady_native_contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(v(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(u(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(!u(this)&&t.i){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&Zb(this);this.__shady_native_textContent=a}else Zb(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!==Vb&&a.ownerDocument!==Vb)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=r(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;bc(this,a);var d=[],e=(c=E(this))?c.host.localName:Tb(this),f=a.__shady_parentNode;if(f){var g=Tb(a);var h=!!c||!E(a)||
Wb&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!Wb||void 0===a.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Sb(a,e),l=c&&!a.__noInsertionPoint&&(!Wb||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||Tb(a)),Ub(a,function(a){l&&"slot"===a.localName&&d.push(a);if(k){var b=g;D()&&(b&&Rb(a,b),(b=D())&&b.scopeNode(a,e))}});d.length&&(cc(c),c.c.push.apply(c.c,ia(d)),F(c));u(this)&&(Mb(a,this,b),c=r(this),oa(this)?(F(c.root),f=!1):c.root&&(f=!1));f?(c=v(this)?
this.host:this,b?(b=ac(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||!v(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==Vb)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);bc(this,null,a);var c=E(a),d=c&&dc(c,
a),e=r(this);if(u(this)&&(Nb(a,this),oa(this))){F(e.root);var f=!0}if(D()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=Tb(a);Ub(a,function(a){Rb(a,g)})}$b(a);c&&((b=this&&"slot"===this.localName)&&(f=!0),(d||b)&&F(c));f||(f=v(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=q(this),c=b.N;void 0===c&&(v(this)?(c=this,b.N=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.N=c)));return c}},contains:function(a){return wa(this,a)}});function fc(a,b,c){var d=[];gc(a,b,c,d);return d}function gc(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:(gc(e,f,g,h),e=void 0)}if(e)break}}
var G=y({get firstElementChild(){var a=r(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=r(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 u(this)?xa(Array.prototype.filter.call(za(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}}),hc=y({querySelector:function(a){return fc(this,function(b){return qa.call(b,a)},function(a){return!!a})[0]||null},querySelectorAll:function(a,b){if(b){b=Array.prototype.slice.call(this.__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return xa(b.filter(function(a){return a.__shady_getRootNode()==c}))}return xa(fc(this,function(b){return qa.call(b,
a)}))}}),ic=t.ea&&!t.v?Object.assign({},G):G;Object.assign(G,hc);var jc=y({getElementById:function(a){return""===a?null:fc(this,function(b){return b.id==a},function(a){return!!a})[0]||null}});var kc=y({get activeElement(){var a=t.i?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!v(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=E(a);b&&b!==this;)a=b.host,b=E(a);return this===document?b?null:a:b===this?a:null}});var lc=document.implementation.createHTMLDocument("inert"),mc=y({get innerHTML(){return u(this)?Pa("template"===this.localName?this.content:this,za):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{Zb(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==lc.namespaceURI?lc.createElementNS(this.namespaceURI,b):lc.createElement(b);for(t.i?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var nc=y({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.A=c.A||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.A=c.A||this;this.host.__shady_removeEventListener(a,b,c)}});function oc(a,b){x(a,nc,b);x(a,kc,b);x(a,mc,b);x(a,G,b);t.v&&!b?(x(a,ec,b),x(a,jc,b)):t.i||(x(a,cb),x(a,ab),x(a,bb))};var pc={},H=t.deferConnectionCallbacks&&"loading"===document.readyState,qc;function rc(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function sc(a,b,c){if(a!==pc)throw new TypeError("Illegal constructor");this.a=null;tc(this,b,c)}
function tc(a,b,c){a.ma="ShadyRoot";a.host=b;a.mode=c&&c.mode;Ob(a.host);b=q(a.host);b.root=a;b.wa="closed"!==a.mode?a:null;b=q(a);b.firstChild=b.lastChild=b.parentNode=b.nextSibling=b.previousSibling=null;if(t.preferPerformance)for(;b=a.host.__shady_native_firstChild;)a.host.__shady_native_removeChild(b);else F(a)}function F(a){a.C||(a.C=!0,Ca(function(){return uc(a)}))}
function uc(a){var b;if(b=a.C){for(var c;a;)a:{a.C&&(c=a),b=a;a=b.host.__shady_getRootNode();if(v(a)&&(b=r(b.host))&&0<b.J)break a;a=void 0}b=c}(c=b)&&c._renderSelf()}
sc.prototype._renderSelf=function(){var a=H;H=!0;this.C=!1;if(this.a){vc(this);for(var b=0,c;b<this.a.length;b++){c=this.a[b];var d=r(c),e=d.assignedNodes;d.assignedNodes=[];d.D=[];if(d.Z=e)for(d=0;d<e.length;d++){var f=r(e[d]);f.S=f.assignedSlot;f.assignedSlot===c&&(f.assignedSlot=null)}}for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)wc(this,b);for(b=0;b<this.a.length;b++){c=this.a[b];e=r(c);if(!e.assignedNodes.length)for(d=c.__shady_firstChild;d;d=d.__shady_nextSibling)wc(this,d,c);
(d=(d=r(c.__shady_parentNode))&&d.root)&&(pa(d)||d.C)&&d._renderSelf();xc(this,e.D,e.assignedNodes);if(d=e.Z){for(f=0;f<d.length;f++)r(d[f]).S=null;e.Z=null;d.length>e.assignedNodes.length&&(e.T=!0)}e.T&&(e.T=!1,yc(this,c))}c=this.a;b=[];for(e=0;e<c.length;e++)d=c[e].__shady_parentNode,(f=r(d))&&f.root||!(0>b.indexOf(d))||b.push(d);for(c=0;c<b.length;c++){f=b[c];e=f===this?this.host:f;d=[];for(f=f.__shady_firstChild;f;f=f.__shady_nextSibling)if("slot"==f.localName)for(var g=r(f).D,h=0;h<g.length;h++)d.push(g[h]);
else d.push(f);f=ya(e);g=Jb(d,d.length,f,f.length);for(var k=h=0,l=void 0;h<g.length&&(l=g[h]);h++){for(var m=0,B=void 0;m<l.H.length&&(B=l.H[m]);m++)B.__shady_native_parentNode===e&&e.__shady_native_removeChild(B),f.splice(l.index+k,1);k-=l.K}k=0;for(l=void 0;k<g.length&&(l=g[k]);k++)for(h=f[l.index],m=l.index;m<l.index+l.K;m++)B=d[m],e.__shady_native_insertBefore(B,h),f.splice(m,0,B)}}if(!t.preferPerformance&&!this.Y)for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)c=r(b),b.__shady_native_parentNode!==
this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b);this.Y=!0;H=a;qc&&qc()};function wc(a,b,c){var d=q(b),e=d.S;d.S=null;c||(c=(a=a.b[b.__shady_slot||"__catchall"])&&a[0]);c?(q(c).assignedNodes.push(b),d.assignedSlot=c):d.assignedSlot=void 0;e!==d.assignedSlot&&d.assignedSlot&&(q(d.assignedSlot).T=!0)}function xc(a,b,c){for(var d=0,e=void 0;d<c.length&&(e=c[d]);d++)if("slot"==e.localName){var f=r(e).assignedNodes;f&&f.length&&xc(a,b,f)}else b.push(c[d])}
function yc(a,b){b.__shady_native_dispatchEvent(new Event("slotchange"));b=r(b);b.assignedSlot&&yc(a,b.assignedSlot)}function cc(a){a.c=a.c||[];a.a=a.a||[];a.b=a.b||{}}function vc(a){if(a.c&&a.c.length){for(var b=a.c,c,d=0;d<b.length;d++){var e=b[d];Ob(e);var f=e.__shady_parentNode;Ob(f);f=r(f);f.J=(f.J||0)+1;f=zc(e);a.b[f]?(c=c||{},c[f]=!0,a.b[f].push(e)):a.b[f]=[e];a.a.push(e)}if(c)for(var g in c)a.b[g]=Ac(a.b[g]);a.c=[]}}
function zc(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.ka=b}function Ac(a){return a.sort(function(a,c){a=rc(a);for(var b=rc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=za(c.__shady_parentNode),a.indexOf(c)-a.indexOf(f)}})}
function dc(a,b){if(a.a){vc(a);var c=a.b,d;for(d in c)for(var e=c[d],f=0;f<e.length;f++){var g=e[f];if(wa(b,g)){e.splice(f,1);var h=a.a.indexOf(g);0<=h&&(a.a.splice(h,1),(h=r(g.__shady_parentNode))&&h.J&&h.J--);f--;g=r(g);if(h=g.D)for(var k=0;k<h.length;k++){var l=h[k],m=l.__shady_native_parentNode;m&&m.__shady_native_removeChild(l)}g.D=[];g.assignedNodes=[];h=!0}}return h}}function pa(a){vc(a);return!(!a.a||!a.a.length)}
(function(a){a.__proto__=DocumentFragment.prototype;oc(a,"__shady_");oc(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})})})(sc.prototype);
if(window.customElements&&t.V&&!t.preferPerformance){var Bc=new Map;qc=function(){var a=[];Bc.forEach(function(b,c){a.push([c,b])});Bc.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};H&&document.addEventListener("readystatechange",function(){H=!1;qc()},{once:!0});var Cc=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=function(){H?Bc.set(this,
!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){H?this.isConnected||Bc.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},Dc=window.customElements.define,define=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;Dc.call(window.customElements,a,Cc(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=define;Object.defineProperty(window.CustomElementRegistry.prototype,
"define",{value:define,configurable:!0})}function E(a){a=a.__shady_getRootNode();if(v(a))return a};function I(a){this.node=a}n=I.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.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)};
p.Object.defineProperties(I.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(v(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(v(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){return this.node.__shady_className=a}}});
Hb.forEach(function(a){Object.defineProperty(I.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})});var Ec=new WeakMap;function Fc(a){if(v(a)||a instanceof I)return a;var b=Ec.get(a);b||(b=new I(a),Ec.set(a,b));return b};var Gc=y({dispatchEvent:xb,addEventListener:yb,removeEventListener:Ab});var Hc=y({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&uc(a);return(a=r(this))&&a.assignedSlot||null}});var Ic=window.document;function Jc(a,b){if("slot"===b)a=a.__shady_parentNode,oa(a)&&F(r(a).root);else if("slot"===a.localName&&"name"===b&&(b=E(a))){if(b.a){vc(b);var c=a.ka,d=zc(a);if(d!==c){c=b.b[c];var e=c.indexOf(a);0<=e&&c.splice(e,1);c=b.b[d]||(b.b[d]=[]);c.push(a);1<c.length&&(b.b[d]=Ac(c))}}F(b)}}
var Kc=y({get previousElementSibling(){var a=r(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=r(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 shadowRoot(){var a=r(this);return a&&a.wa||null},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==Ic?this.__shady_native_setAttribute(a,b):Qb(this,a,b)||(this.__shady_native_setAttribute(a,b),Jc(this,a))},removeAttribute:function(a){this.ownerDocument!==Ic?this.__shady_native_removeAttribute(a):Qb(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):
(this.__shady_native_removeAttribute(a),Jc(this,a))},attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!t.ha){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;tc(b,this,a);Ob(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;if(a&&a.length){var c=b;cc(c);c.c.push.apply(c.c,ia(a));F(b)}b.host.__shady_native_appendChild(b)}else b=new sc(pc,this,a);return b}});var Lc=y({blur:function(){var a=r(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});Hb.forEach(function(a){Lc[a]={set:function(b){var c=q(this),d=a.substring(2);c.w||(c.w={});c.w[a]&&this.removeEventListener(d,c.w[a]);this.__shady_addEventListener(d,b);c.w[a]=b},get:function(){var b=r(this);return b&&b.w&&b.w[a]},configurable:!0}});var Mc=y({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&v(b)&&uc(b);return(b=r(this))?(a&&a.flatten?b.D:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)yb.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.A=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
b,c){if("slot"!==this.localName||"slotchange"===a)Ab.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.A=this;d.__shady_removeEventListener(a,b,c)}}});var Nc=window.document,Oc=y({importNode:function(a,b){if(a.ownerDocument!==Nc||"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 Pc=y({dispatchEvent:xb,addEventListener:yb.bind(window),removeEventListener:Ab.bind(window)});var J={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(J.parentElement=ec.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(J.contains=ec.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(J.children=G.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(J.innerHTML=mc.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(J.className=Kc.className);
var Qc={EventTarget:[Gc],Node:[ec,window.EventTarget?null:Gc],Text:[Hc],Element:[Kc,G,Hc,!t.i||"innerHTML"in Element.prototype?mc:null,window.HTMLSlotElement?null:Mc],HTMLElement:[Lc,J],HTMLSlotElement:[Mc],DocumentFragment:[ic,jc],Document:[Oc,ic,jc,kc],Window:[Pc]},Rc=t.i?null:["innerHTML","textContent"];function Sc(a){var b=a?null:Rc,c={},d;for(d in Qc)c.O=window[d]&&window[d].prototype,Qc[d].forEach(function(c){return function(d){return c.O&&d&&x(c.O,d,a,b)}}(c)),c={O:c.O}};if(t.V){var ShadyDOM={inUse:t.V,patch:function(a){gb(a);fb(a);return a},isShadyRoot:v,enqueue:Ca,flush:Da,flushInitial:function(a){!a.Y&&a.C&&uc(a)},settings:t,filterMutations:Ia,observeChildren:Ga,unobserveChildren:Ha,deferConnectionCallbacks:t.deferConnectionCallbacks,preferPerformance:t.preferPerformance,handlesDynamicScoping:!0,wrap:t.v?Fc:function(a){return a},Wrapper:I,composedPath:pb,noPatch:t.v,nativeMethods:Ra,nativeTree:Sa};window.ShadyDOM=ShadyDOM;$a();Sc("__shady_");Object.defineProperty(document,
"_activeElement",kc.activeElement);x(Window.prototype,Pc,"__shady_");t.v||(Sc(),Gb());Bb();window.Event=Db;window.CustomEvent=Eb;window.MouseEvent=Fb;window.ShadowRoot=sc};/*

 Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Tc=window.Document.prototype.createElement,Uc=window.Document.prototype.createElementNS,Vc=window.Document.prototype.importNode,Wc=window.Document.prototype.prepend,Xc=window.Document.prototype.append,Yc=window.DocumentFragment.prototype.prepend,Zc=window.DocumentFragment.prototype.append,$c=window.Node.prototype.cloneNode,ad=window.Node.prototype.appendChild,bd=window.Node.prototype.insertBefore,cd=window.Node.prototype.removeChild,dd=window.Node.prototype.replaceChild,ed=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),fd=window.Element.prototype.attachShadow,gd=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),hd=window.Element.prototype.getAttribute,id=window.Element.prototype.setAttribute,jd=window.Element.prototype.removeAttribute,kd=window.Element.prototype.getAttributeNS,ld=window.Element.prototype.setAttributeNS,md=window.Element.prototype.removeAttributeNS,nd=window.Element.prototype.insertAdjacentElement,od=window.Element.prototype.insertAdjacentHTML,pd=window.Element.prototype.prepend,
qd=window.Element.prototype.append,rd=window.Element.prototype.before,sd=window.Element.prototype.after,td=window.Element.prototype.replaceWith,ud=window.Element.prototype.remove,vd=window.HTMLElement,wd=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),xd=window.HTMLElement.prototype.insertAdjacentElement,yd=window.HTMLElement.prototype.insertAdjacentHTML;var zd=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(a){return zd.add(a)});function Ad(a){var b=zd.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}var Bd=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
function K(a){var b=a.isConnected;if(void 0!==b)return b;if(Bd(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 Cd(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 Dd(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function Ed(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)Ed(d,b,c);d=Dd(a,e);continue}else if("template"===f){d=Dd(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Ed(e,b,c)}d=d.firstChild?d.firstChild:Dd(a,d)}}function L(a,b,c){a[b]=c};function Fd(){var a=M&&M.noDocumentConstructionObserver,b=M&&M.shadyDomFastWalk;this.b=[];this.c=[];this.a=!1;this.shadyDomFastWalk=b;this.f=!a}function Gd(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 Ed(b,c,d)}function Hd(a,b){a.a=!0;a.b.push(b)}function Id(a,b){a.a=!0;a.c.push(b)}
function Jd(a,b){a.a&&Gd(a,b,function(b){return Kd(a,b)})}function Kd(a,b){if(a.a&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.b.length;c++)a.b[c](b);for(c=0;c<a.c.length;c++)a.c[c](b)}}function N(a,b){var c=[];Gd(a,b,function(a){return c.push(a)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):Ld(a,d)}}function O(a,b){var c=[];Gd(a,b,function(a){return c.push(a)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
function P(a,b,c){c=void 0===c?{}:c;var d=c.Da,e=c.P||function(b){return Ld(a,b)},f=[];Gd(a,b,function(b){a.a&&Kd(a,b);if("link"===b.localName&&"import"===b.getAttribute("rel")){var c=b.import;c instanceof Node&&(c.__CE_isImportDocument=!0,c.__CE_registry=document.__CE_registry);c&&"complete"===c.readyState?c.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var c=b.import;if(!c.__CE_documentLoadHandled){c.__CE_documentLoadHandled=!0;var f=new Set;d&&(d.forEach(function(a){return f.add(a)}),
f.delete(c));P(a,c,{Da:f,P:e})}})}else f.push(b)},d);for(b=0;b<f.length;b++)e(f[b])}
function Ld(a,b){try{a:{var c=b.ownerDocument;if("http://www.w3.org/1999/xhtml"===b.namespaceURI){var d=c.__CE_registry;if(d&&(c.defaultView||c.__CE_isImportDocument)){var e=d.a.get(b.localName);break a}}e=void 0}if(e&&void 0===b.__CE_state){e.constructionStack.push(b);try{try{if(new e.constructorFunction!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{e.constructionStack.pop()}}catch(k){throw b.__CE_state=2,k;}b.__CE_state=1;b.__CE_definition=
e;if(e.attributeChangedCallback&&b.hasAttributes()){var f=e.observedAttributes;for(e=0;e<f.length;e++){var g=f[e],h=b.getAttribute(g);null!==h&&a.attributeChangedCallback(b,g,null,h,null)}}K(b)&&a.connectedCallback(b)}}catch(k){Md(k)}}Fd.prototype.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){Md(c)}};Fd.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){Md(c)}};
Fd.prototype.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){Md(g)}};
function Nd(a,b,c,d){var e=b.__CE_registry;if(e&&(null===d||"http://www.w3.org/1999/xhtml"===d)&&(e=e.a.get(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 Md(g),b=null===d?Tc.call(b,c):Uc.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,Kd(a,b),b}b=null===d?Tc.call(b,c):Uc.call(b,d,c);Kd(a,b);return b}
function Md(a){var b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.a||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 Od(a){var b=document;this.b=a;this.a=b;this.B=void 0;P(this.b,this.a);"loading"===this.a.readyState&&(this.B=new MutationObserver(this.c.bind(this)),this.B.observe(this.a,{childList:!0,subtree:!0}))}function Pd(a){a.B&&a.B.disconnect()}Od.prototype.c=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||Pd(this);for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)P(this.b,c[d])};function Qd(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a)})}function Rd(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0)};function Q(a){this.a=new Map;this.ba=new Map;this.f=!1;this.b=a;this.U=new Map;this.u=function(a){return a()};this.c=!1;this.F=[];this.ca=a.f?new Od(a):void 0}n=Q.prototype;
n.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Ad(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.has(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.f)throw Error("A custom element is already being defined.");this.f=!0;var d;try{var e=function(a){var b=f[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");
return b},f=b.prototype;if(!(f instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var g=e("connectedCallback");var h=e("disconnectedCallback");var k=e("adoptedCallback");var l=(d=e("attributeChangedCallback"))&&b.observedAttributes||[]}catch(m){throw m;}finally{this.f=!1}b={localName:a,constructorFunction:b,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:l,constructionStack:[]};this.a.set(a,
b);this.ba.set(b.constructorFunction,b);this.F.push(b);this.c||(this.c=!0,this.u(function(){return Sd(c)}))};n.P=function(a){P(this.b,a)};
function Sd(a){if(!1!==a.c){a.c=!1;for(var b=a.F,c=[],d=new Map,e=0;e<b.length;e++)d.set(b[e].localName,[]);P(a.b,document,{P:function(b){if(void 0===b.__CE_state){var e=b.localName,f=d.get(e);f?f.push(b):a.a.has(e)&&c.push(b)}}});for(e=0;e<c.length;e++)Ld(a.b,c[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=d.get(f.localName);for(var g=0;g<f.length;g++)Ld(a.b,f[g]);(e=a.U.get(e))&&Rd(e)}}}n.get=function(a){if(a=this.a.get(a))return a.constructorFunction};
n.whenDefined=function(a){if(!Ad(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.U.get(a);if(b)return b.c;b=new Qd;this.U.set(a,b);this.a.get(a)&&!this.F.some(function(b){return b.localName===a})&&Rd(b);return b.c};n.polyfillWrapFlushCallback=function(a){this.ca&&Pd(this.ca);var b=this.u;this.u=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=Q;Q.prototype.define=Q.prototype.define;Q.prototype.upgrade=Q.prototype.P;
Q.prototype.get=Q.prototype.get;Q.prototype.whenDefined=Q.prototype.whenDefined;Q.prototype.polyfillWrapFlushCallback=Q.prototype.polyfillWrapFlushCallback;var Td=new function(){};function Ud(a){window.HTMLElement=function(){function b(){var b=this.constructor;var d=document.__CE_registry.ba.get(b);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=Tc.call(document,d.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=d,Kd(a,e),e;var f=e.length-1,g=e[f];if(g===Td)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");
e[f]=Td;Object.setPrototypeOf(g,b.prototype);Kd(a,g);return g}b.prototype=vd.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}()};function Vd(a,b,c){function d(b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];e=[];for(var f=[],l=0;l<d.length;l++){var m=d[l];m instanceof Element&&K(m)&&f.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)e.push(m);else e.push(m)}b.apply(this,d);for(d=0;d<f.length;d++)O(a,f[d]);if(K(this))for(d=0;d<e.length;d++)f=e[d],f instanceof Element&&N(a,f)}}void 0!==c.prepend&&(b.prepend=d(c.prepend));void 0!==c.append&&(b.append=d(c.append))};function Wd(a){L(Document.prototype,"createElement",function(b){return Nd(a,this,b,null)});L(Document.prototype,"importNode",function(b,c){b=Vc.call(this,b,!!c);this.__CE_registry?P(a,b):Jd(a,b);return b});L(Document.prototype,"createElementNS",function(b,c){return Nd(a,this,c,b)});Vd(a,Document.prototype,{prepend:Wc,append:Xc})};function Xd(a){function b(b,d){Object.defineProperty(b,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,b);else{var c=void 0;if(this.firstChild){var e=this.childNodes,h=e.length;if(0<h&&K(this)){c=Array(h);for(var k=0;k<h;k++)c[k]=e[k]}}d.set.call(this,b);if(c)for(b=0;b<c.length;b++)O(a,c[b])}}})}L(Node.prototype,"insertBefore",function(b,d){if(b instanceof DocumentFragment){var c=Cd(b);b=bd.call(this,b,d);if(K(this))for(d=
0;d<c.length;d++)N(a,c[d]);return b}c=b instanceof Element&&K(b);d=bd.call(this,b,d);c&&O(a,b);K(this)&&N(a,b);return d});L(Node.prototype,"appendChild",function(b){if(b instanceof DocumentFragment){var c=Cd(b);b=ad.call(this,b);if(K(this))for(var e=0;e<c.length;e++)N(a,c[e]);return b}c=b instanceof Element&&K(b);e=ad.call(this,b);c&&O(a,b);K(this)&&N(a,b);return e});L(Node.prototype,"cloneNode",function(b){b=$c.call(this,!!b);this.ownerDocument.__CE_registry?P(a,b):Jd(a,b);return b});L(Node.prototype,
"removeChild",function(b){var c=b instanceof Element&&K(b),e=cd.call(this,b);c&&O(a,b);return e});L(Node.prototype,"replaceChild",function(b,d){if(b instanceof DocumentFragment){var c=Cd(b);b=dd.call(this,b,d);if(K(this))for(O(a,d),d=0;d<c.length;d++)N(a,c[d]);return b}c=b instanceof Element&&K(b);var f=dd.call(this,b,d),g=K(this);g&&O(a,d);c&&O(a,b);g&&N(a,b);return f});ed&&ed.get?b(Node.prototype,ed):Hd(a,function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var a=[],b=this.firstChild;b;b=
b.nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.textContent);return a.join("")},set:function(a){for(;this.firstChild;)cd.call(this,this.firstChild);null!=a&&""!==a&&ad.call(this,document.createTextNode(a))}})})};function Yd(a){function b(b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];e=[];for(var h=[],k=0;k<d.length;k++){var l=d[k];l instanceof Element&&K(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l);else e.push(l)}b.apply(this,d);for(d=0;d<h.length;d++)O(a,h[d]);if(K(this))for(d=0;d<e.length;d++)h=e[d],h instanceof Element&&N(a,h)}}var c=Element.prototype;void 0!==rd&&(c.before=b(rd));void 0!==sd&&(c.after=b(sd));void 0!==td&&
L(c,"replaceWith",function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var g=[],h=0;h<c.length;h++){var k=c[h];k instanceof Element&&K(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)d.push(k);else d.push(k)}h=K(this);td.apply(this,c);for(c=0;c<g.length;c++)O(a,g[c]);if(h)for(O(a,this),c=0;c<d.length;c++)g=d[c],g instanceof Element&&N(a,g)});void 0!==ud&&L(c,"remove",function(){var b=K(this);ud.call(this);b&&O(a,this)})};function Zd(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;K(this)&&(e=[],Gd(a,this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f<e.length;f++){var g=e[f];1===g.__CE_state&&a.disconnectedCallback(g)}this.ownerDocument.__CE_registry?P(a,this):Jd(a,this);return b}})}function c(b,c){L(b,"insertAdjacentElement",function(b,d){var e=K(d);b=c.call(this,b,d);e&&O(a,d);K(b)&&N(a,d);return b})}
function d(b,c){function d(b,c){for(var d=[];b!==c;b=b.nextSibling)d.push(b);for(c=0;c<d.length;c++)P(a,d[c])}L(b,"insertAdjacentHTML",function(a,b){a=a.toLowerCase();if("beforebegin"===a){var e=this.previousSibling;c.call(this,a,b);d(e||this.parentNode.firstChild,this)}else if("afterbegin"===a)e=this.firstChild,c.call(this,a,b),d(this.firstChild,e);else if("beforeend"===a)e=this.lastChild,c.call(this,a,b),d(e||this.firstChild,null);else if("afterend"===a)e=this.nextSibling,c.call(this,a,b),d(this.nextSibling,
e);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");})}fd&&L(Element.prototype,"attachShadow",function(b){b=fd.call(this,b);if(a.a&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.b.length;c++)a.b[c](b)}return this.__CE_shadowRoot=b});gd&&gd.get?b(Element.prototype,gd):wd&&wd.get?b(HTMLElement.prototype,wd):Id(a,function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return $c.call(this,!0).innerHTML},
set:function(a){var b="template"===this.localName,c=b?this.content:this,d=Uc.call(document,this.namespaceURI,this.localName);for(d.innerHTML=a;0<c.childNodes.length;)cd.call(c,c.childNodes[0]);for(a=b?d.content:d;0<a.childNodes.length;)ad.call(c,a.childNodes[0])}})});L(Element.prototype,"setAttribute",function(b,c){if(1!==this.__CE_state)return id.call(this,b,c);var d=hd.call(this,b);id.call(this,b,c);c=hd.call(this,b);a.attributeChangedCallback(this,b,d,c,null)});L(Element.prototype,"setAttributeNS",
function(b,c,d){if(1!==this.__CE_state)return ld.call(this,b,c,d);var e=kd.call(this,b,c);ld.call(this,b,c,d);d=kd.call(this,b,c);a.attributeChangedCallback(this,c,e,d,b)});L(Element.prototype,"removeAttribute",function(b){if(1!==this.__CE_state)return jd.call(this,b);var c=hd.call(this,b);jd.call(this,b);null!==c&&a.attributeChangedCallback(this,b,c,null,null)});L(Element.prototype,"removeAttributeNS",function(b,c){if(1!==this.__CE_state)return md.call(this,b,c);var d=kd.call(this,b,c);md.call(this,
b,c);var e=kd.call(this,b,c);d!==e&&a.attributeChangedCallback(this,c,d,e,b)});xd?c(HTMLElement.prototype,xd):nd?c(Element.prototype,nd):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");yd?d(HTMLElement.prototype,yd):od?d(Element.prototype,od):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Vd(a,Element.prototype,{prepend:pd,append:qd});Yd(a)};var M=window.customElements;function $d(){var a=new Fd;Ud(a);Wd(a);Vd(a,DocumentFragment.prototype,{prepend:Yc,append:Zc});Xd(a);Zd(a);a=new Q(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}M&&!M.forcePolyfill&&"function"==typeof M.define&&"function"==typeof M.get||$d();window.__CE_installPolyfill=$d;/*

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 ae(){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 be(a){a=a.replace(ce,"").replace(de,"");var b=ee,c=a,d=new ae;d.start=0;d.end=c.length;for(var e=d,f=0,g=c.length;f<g;f++)if("{"===c[f]){e.rules||(e.rules=[]);var h=e,k=h.rules[h.rules.length-1]||null;e=new ae;e.start=f+1;e.parent=h;e.previous=k;h.rules.push(e)}else"}"===c[f]&&(e.end=f+1,e=e.parent||d);return b(d,a)}
function ee(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=fe(c),c=c.replace(ge," "),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=he:c.match(ie)&&(a.type=je,a.keyframesName=a.selector.split(ge).pop()):a.type=0===c.indexOf("--")?ke:le);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)ee(f,
b);return a}function fe(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}
function me(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=me(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(ne,"").replace(oe,""),b=b.replace(pe,"").replace(qe,"")),(d=b.trim())&&(d="  "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
var le=1,je=7,he=4,ke=1E3,ce=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,de=/@import[^;]*;/gim,ne=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,oe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,pe=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,qe=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ie=/^@[^\s]*keyframes/,ge=/\s+/g;var R=!(window.ShadyDOM&&window.ShadyDOM.inUse),re;function se(a){re=a&&a.shimcssproperties?!1:R||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var te;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(te=window.ShadyCSS.cssBuild);var ue=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?re=window.ShadyCSS.nativeCss:window.ShadyCSS?(se(window.ShadyCSS),window.ShadyCSS=void 0):se(window.WebComponents&&window.WebComponents.flags);var S=re,ve=te;var we=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,xe=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ye=/(--[\w-]+)\s*([:,;)]|$)/gi,ze=/(animation\s*:)|(animation-name\s*:)/,Ae=/@media\s(.*)/,Be=/\{[^}]*\}/g;var Ce=new Set;function De(a,b){if(!a)return"";"string"===typeof a&&(a=be(a));b&&Ee(a,b);return me(a,S)}function Fe(a){!a.__cssRules&&a.textContent&&(a.__cssRules=be(a.textContent));return a.__cssRules||null}function Ge(a){return!!a.parent&&a.parent.type===je}function Ee(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===he){var g=a.selector.match(Ae);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===le?b(a):c&&f===je?c(a):f===ke&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)Ee(g,b,c,d)}}
function He(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;Ie(e,c,d);return e}var T=null;function Je(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(T?T.nextSibling:null)||b.firstChild);return T=a}function Ie(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);T?a.compareDocumentPosition(T)===Node.DOCUMENT_POSITION_PRECEDING&&(T=a):T=a}
function Ke(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 Le(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=Ke(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=Le(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 Me(a,b){R?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
var Ne=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function U(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,I:c}}function Oe(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=Ke(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 Pe(a){if(void 0!==ve)return ve;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 Qe(a){a=void 0===a?"":a;return""!==a&&S?R?"shadow"===a:"shady"===a:!1};function Re(){}function Se(a,b){Te(V,a,function(a){W(a,b||"")})}function Te(a,b,c){b.nodeType===Node.ELEMENT_NODE&&c(b);var d;"template"===b.localName?d=(b.content||b._content||b).childNodes:d=b.children||b.childNodes;if(d)for(b=0;b<d.length;b++)Te(a,d[b],c)}
function W(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,""),Me(a,b)):Me(a,(d?d+" ":"")+"style-scope "+b)}}function Ue(a,b,c){Te(V,a,function(a){W(a,b,!0);W(a,c)})}function Ve(a,b){Te(V,a,function(a){W(a,b||"",!0)})}
function We(a,b,c,d,e){var f=V;e=void 0===e?"":e;""===e&&(R||"shady"===(void 0===d?"":d)?e=De(b,c):(a=U(a),e=Xe(f,b,a.is,a.I,c)+"\n\n"));return e.trim()}function Xe(a,b,c,d,e){var f=Ye(c,d);c=c?"."+c:"";return De(b,function(b){b.c||(b.selector=b.h=Ze(a,b,a.b,c,f),b.c=!0);e&&e(b,c,f)})}function Ye(a,b){return b?"[is="+a+"]":a}
function Ze(a,b,c,d,e){var f=Oe(b.selector);if(!Ge(b)){b=0;for(var g=f.length,h=void 0;b<g&&(h=f[b]);b++)f[b]=c.call(a,h,d,e)}return f.filter(function(a){return!!a}).join(",")}function $e(a){return a.replace(af,function(a,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})}
function bf(a){for(var b=[],c;c=a.match(cf);){var d=c.index,e=Ke(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{X:a,matches:b}}function df(a,b){var c=a.split("\ue000");return b.reduce(function(a,b,f){return a+b+c[f+1]},c[0])}
Re.prototype.b=function(a,b,c){var d=!1;a=a.trim();var e=af.test(a);e&&(a=a.replace(af,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"}),a=$e(a));var f=cf.test(a);if(f){var g=bf(a);a=g.X;g=g.matches}a=a.replace(ef,":host $1");a=a.replace(ff,function(a,e,f){d||(a=gf(f,e,b,c),d=d||a.stop,e=a.pa,f=a.value);return e+f});f&&(a=df(a,g));e&&(a=$e(a));return a=a.replace(hf,function(a,b,c,d){return'[dir="'+c+'"] '+b+d+", "+b+'[dir="'+c+'"]'+d})};
function gf(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=jf(a,d):0!==e&&(a=c?kf(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(lf,function(a,b){return" > "+b}))}return{value:a,pa:b,stop:f}}function kf(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("")}
function jf(a,b){var c=a.match(mf);return(c=c&&c[2].trim()||"")?c[0].match(nf)?a.replace(mf,function(a,c,f){return b+f}):c.split(nf)[0]===b?c:"should_not_match":a.replace(":host",b)}function of(a){":root"===a.selector&&(a.selector="html")}Re.prototype.c=function(a){return a.match(":host")?"":a.match("::slotted")?this.b(a,":not(.style-scope)"):kf(a.trim(),":not(.style-scope)")};p.Object.defineProperties(Re.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var af=/:(nth[-\w]+)\(([^)]+)\)/,ff=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,nf=/[[.:#*]/,ef=/^(::slotted)/,mf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,lf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,hf=/(.*):dir\((?:(ltr|rtl))\)(.*)/,cf=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new Re;function pf(a,b,c,d,e){this.s=a||null;this.b=b||null;this.W=c||[];this.j=null;this.cssBuild=e||"";this.I=d||"";this.a=this.l=this.o=null}function X(a){return a?a.__styleInfo:null}function qf(a,b){return a.__styleInfo=b}pf.prototype.c=function(){return this.s};pf.prototype._getStyleRules=pf.prototype.c;function rf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var sf=navigator.userAgent.match("Trident");function tf(){}function uf(a){var b={},c=[],d=0;Ee(a,function(a){vf(a);a.index=d++;a=a.g.cssText;for(var c;c=ye.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a}
function vf(a){if(!a.g){var b={},c={};wf(a,c)&&(b.m=c,a.rules=null);b.cssText=a.parsedCssText.replace(Be,"").replace(we,"");a.g=b}}function wf(a,b){var c=a.g;if(c){if(c.m)return Object.assign(b,c.m),!0}else{c=a.parsedCssText;for(var d;a=we.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
function xf(a,b,c){b&&(b=0<=b.indexOf(";")?yf(a,b,c):Le(b,function(b,e,f,g){if(!e)return b+g;(e=xf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=xf(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""}
function yf(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){xe.lastIndex=0;if(f=xe.exec(e))e=xf(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=xf(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 zf(a,b){var c={},d=[];Ee(a,function(a){a.g||vf(a);var e=a.h||a.parsedSelector;b&&a.g.m&&e&&rf.call(b,e)&&(wf(a,c),a=a.index,e=parseInt(a/32,10),d[e]=(d[e]||0)|1<<a%32)},null,!0);return{m:c,key:d}}
function Af(a,b,c,d){b.g||vf(b);if(b.g.m){var e=U(a);a=e.is;e=e.I;e=a?Ye(a,e):"html";var f=b.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.h||(b.h=Ze(V,b,V.b,a?"."+a:"",e)),c=b.h||e),d({X:c,ua:h,Fa:g})}}function Bf(a,b,c){var d={},e={};Ee(b,function(b){Af(a,b,c,function(c){rf.call(a._element||a,c.X)&&(c.ua?wf(b,d):wf(b,e))})},null,!0);return{xa:e,ta:d}}
function Cf(a,b,c,d){var e=U(b),f=Ye(e.is,e.I),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.s;h=h.cssBuild;var k=Df(e,d);return We(b,e,function(b){var e="";b.g||vf(b);b.g.cssText&&(e=yf(a,b.g.cssText,c));b.cssText=e;if(!R&&!Ge(b)&&b.cssText){var h=e=b.cssText;null==b.aa&&(b.aa=ze.test(e));if(b.aa)if(null==b.M){b.M=[];for(var l in k)h=k[l],h=h(e),e!==h&&(e=h,b.M.push(l))}else{for(l=0;l<b.M.length;++l)h=k[b.M[l]],e=h(e);h=e}b.cssText=h;b.h=b.h||b.selector;
e="."+d;l=Oe(b.h);h=0;for(var ka=l.length,Ta=void 0;h<ka&&(Ta=l[h]);h++)l[h]=Ta.match(g)?Ta.replace(f,e):e+" "+Ta;b.selector=l.join(",")}},h)}function Df(a,b){a=a.b;var c={};if(!R&&a)for(var d=0,e=a[d];d<a.length;e=a[++d]){var f=e,g=b;f.f=new RegExp("\\b"+f.keyframesName+"(?!\\B|-)","g");f.a=f.keyframesName+"-"+g;f.h=f.h||f.selector;f.selector=f.h.replace(f.keyframesName,f.a);c[e.keyframesName]=Ef(e)}return c}function Ef(a){return function(b){return b.replace(a.f,a.a)}}
function Ff(a,b){var c=Gf,d=Fe(a);a.textContent=De(d,function(a){var d=a.cssText=a.parsedCssText;a.g&&a.g.cssText&&(d=d.replace(ne,"").replace(oe,""),a.cssText=yf(c,d,b))})}p.Object.defineProperties(tf.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Gf=new tf;var Hf={},If=window.customElements;if(If&&!R&&!ue){var Jf=If.define;If.define=function(a,b,c){Hf[a]||(Hf[a]=Je(a));Jf.call(If,a,b,c)}};function Kf(){this.cache={}}Kf.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({m:b,styleElement:c,l:d});100<e.length&&e.shift();this.cache[a]=e};function Lf(){}var Mf=new RegExp(V.a+"\\s*([^\\s]*)");function Nf(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Mf))?a[1]:""}function Of(a){var b=Ne(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?U(a).is:""}
function Pf(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=Nf(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===Pe(e)))Ve(e,g);else if(f instanceof ShadowRoot)for(f=Of(e),f!==g&&Ue(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+V.a+")"),g=0;g<e.length;g++){f=e[g];
var h=Of(f);h&&W(f,h)}}}}}
if(!(R||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Qf=new MutationObserver(Pf),Rf=function(a){Qf.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Rf(document);else{var Sf=function(){Rf(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Sf):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Sf();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else Sf()})}Lf=function(){Pf(Qf.takeRecords())}}var Tf=Lf;var Uf={};var Vf=Promise.resolve();function Wf(a){if(a=Uf[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function Xf(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function Yf(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,Vf.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var Zf={},$f=new Kf;function Y(){this.F={};this.c=document.documentElement;var a=new ae;a.rules=[];this.f=qf(this.c,new pf(a));this.u=!1;this.b=this.a=null}n=Y.prototype;n.flush=function(){Tf()};n.ra=function(a){return Fe(a)};n.Ba=function(a){return De(a)};n.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
n.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!ue){R||Hf[b]||(Hf[b]=Je(b));a._prepared=!0;a.name=b;a.extends=c;Uf[b]=a;var d=Pe(a),e=Qe(d);c={is:b,extends:c};for(var f=[],g=a.content.querySelectorAll("style"),h=0;h<g.length;h++){var k=g[h];if(k.hasAttribute("shady-unscoped")){if(!R){var l=k.textContent;Ce.has(l)||(Ce.add(l),l=k.cloneNode(!0),document.head.appendChild(l));k.parentNode.removeChild(k)}}else f.push(k.textContent),k.parentNode.removeChild(k)}f=f.join("").trim()+(Zf[b]||"");
ag(this);if(!e){if(g=!d)g=xe.test(f)||we.test(f),xe.lastIndex=0,we.lastIndex=0;h=be(f);g&&S&&this.a&&this.a.transformRules(h,b);a._styleAst=h}g=[];S||(g=uf(a._styleAst));if(!g.length||S)h=R?a.content:null,b=Hf[b]||null,d=We(c,a._styleAst,null,d,e?f:""),d=d.length?He(d,c.is,h,b):null,a._style=d;a.a=g}};n.va=function(a,b){Zf[b]=a.join(" ")};n.prepareTemplateDom=function(a,b){if(!ue){var c=Pe(a);R||"shady"===c||a._domPrepared||(a._domPrepared=!0,Se(a.content,b))}};
function bg(a){var b=U(a),c=b.is;b=b.I;var d=Hf[c]||null,e=Uf[c];if(e){c=e._styleAst;var f=e.a;e=Pe(e);b=new pf(c,d,f,b,e);qf(a,b);return b}}function cg(a){!a.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(a.b=window.ShadyCSS.CustomStyleInterface,a.b.transformCallback=function(b){a.ga(b)},a.b.validateCallback=function(){requestAnimationFrame(function(){(a.b.enqueued||a.u)&&a.flushCustomStyles()})})}
function ag(a){!a.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(a.a=window.ShadyCSS.ApplyShim,a.a.invalidCallback=Wf);cg(a)}
n.flushCustomStyles=function(){if(!ue&&(ag(this),this.b)){var a=this.b.processStyles();if(this.b.enqueued&&!Qe(this.f.cssBuild)){if(S){if(!this.f.cssBuild)for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);if(c&&S&&this.a){var d=Fe(c);ag(this);this.a.transformRules(d);c.textContent=De(d)}}}else{dg(this,this.c,this.f);for(b=0;b<a.length;b++)(c=this.b.getStyleForCustomStyle(a[b]))&&Ff(c,this.f.o);this.u&&this.styleDocument()}this.b.enqueued=!1}}};
n.styleElement=function(a,b){if(ue){if(b){X(a)||qf(a,new pf(null));var c=X(a);c.j=c.j||{};Object.assign(c.j,b);eg(this,a,c)}}else if(c=X(a)||bg(a))if(a!==this.c&&(this.u=!0),b&&(c.j=c.j||{},Object.assign(c.j,b)),S)eg(this,a,c);else if(this.flush(),dg(this,a,c),c.W&&c.W.length){b=U(a).is;var d;a:{if(d=$f.cache[b])for(var e=d.length-1;0<=e;e--){var f=d[e];b:{var g=c.W;for(var h=0;h<g.length;h++){var k=g[h];if(f.m[k]!==c.o[k]){g=!1;break b}}g=!0}if(g){d=f;break a}}d=void 0}g=d?d.styleElement:null;e=
c.l;(f=d&&d.l)||(f=this.F[b]=(this.F[b]||0)+1,f=b+"-"+f);c.l=f;f=c.l;h=Gf;h=g?g.textContent||"":Cf(h,a,c.o,f);k=X(a);var l=k.a;l&&!R&&l!==g&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));R?k.a?(k.a.textContent=h,g=k.a):h&&(g=He(h,f,a.shadowRoot,k.b)):g?g.parentNode||(sf&&-1<h.indexOf("@media")&&(g.textContent=h),Ie(g,null,k.b)):h&&(g=He(h,f,null,k.b));g&&(g._useCount=g._useCount||0,k.a!=g&&g._useCount++,k.a=g);f=g;R||(g=c.l,k=h=a.getAttribute("class")||"",e&&(k=h.replace(new RegExp("\\s*x-scope\\s*"+
e+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+g,h!==k&&Me(a,k));d||$f.store(b,c.o,f,c.l)}};
function eg(a,b,c){var d=U(b).is;if(c.j){var e=c.j,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}e=Uf[d];if(!(!e&&b!==a.c||e&&""!==Pe(e))&&e&&e._style&&!Xf(e)){if(Xf(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)ag(a),a.a&&a.a.transformRules(e._styleAst,d),e._style.textContent=We(b,c.s),Yf(e);R&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=We(b,c.s));c.s=e._styleAst}}
function fg(a,b){return(b=Ne(b).getRootNode().host)?X(b)||bg(b)?b:fg(a,b):a.c}function dg(a,b,c){var d=fg(a,b),e=X(d),f=e.o;d===a.c||f||(dg(a,d,e),f=e.o);a=Object.create(f||null);d=Bf(b,c.s,c.cssBuild);b=zf(e.s,b).m;Object.assign(a,d.ta,b,d.xa);b=c.j;for(var g in b)if((e=b[g])||0===e)a[g]=e;g=Gf;b=Object.getOwnPropertyNames(a);for(e=0;e<b.length;e++)d=b[e],a[d]=xf(g,a[d],a);c.o=a}n.styleDocument=function(a){this.styleSubtree(this.c,a)};
n.styleSubtree=function(a,b){var c=Ne(a),d=c.shadowRoot;(d||a===this.c)&&this.styleElement(a,b);if(a=d&&(d.children||d.childNodes))for(c=0;c<a.length;c++)this.styleSubtree(a[c]);else if(c=c.children||c.childNodes)for(a=0;a<c.length;a++)this.styleSubtree(c[a])};
n.ga=function(a){var b=this,c=Pe(a);c!==this.f.cssBuild&&(this.f.cssBuild=c);if(!Qe(c)){var d=Fe(a);Ee(d,function(a){if(R)of(a);else{var d=V;a.selector=a.parsedSelector;of(a);a.selector=a.h=Ze(d,a,d.c,void 0,void 0)}S&&""===c&&(ag(b),b.a&&b.a.transformRule(a))});S?a.textContent=De(d):this.f.s.rules.push(d)}};n.getComputedStyleValue=function(a,b){var c;S||(c=(X(a)||X(fg(this,a))).o[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
n.Aa=function(a,b){var c=Ne(a).getRootNode(),d;b?d=("string"===typeof b?b:String(b)).split(/\s/):d=[];b=c.host&&c.host.localName;if(!b&&(c=a.getAttribute("class"))){c=c.split(/\s/);for(var e=0;e<c.length;e++)if(c[e]===V.a){b=c[e+1];break}}b&&d.push(V.a,b);S||(b=X(a))&&b.l&&d.push(Gf.a,b.l);Me(a,d.join(" "))};n.oa=function(a){return X(a)};n.za=function(a,b){W(a,b)};n.Ca=function(a,b){W(a,b,!0)};n.ya=function(a){return Of(a)};n.qa=function(a){return Nf(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.Aa;Y.prototype._styleInfoForNode=Y.prototype.oa;Y.prototype.transformCustomStyleForDocument=Y.prototype.ga;Y.prototype.getStyleAst=Y.prototype.ra;Y.prototype.styleAstToString=Y.prototype.Ba;
Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.za;Y.prototype.unscopeNode=Y.prototype.Ca;Y.prototype.scopeForNode=Y.prototype.ya;Y.prototype.currentScopeForNode=Y.prototype.qa;Y.prototype.prepareAdoptedCssText=Y.prototype.va;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return R}},nativeCss:{get:function(){return S}}});var Z=new Y,gg,hg;window.ShadyCSS&&(gg=window.ShadyCSS.ApplyShim,hg=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:S,nativeShadow:R,cssBuild:ve,disableRuntime:ue};gg&&(window.ShadyCSS.ApplyShim=gg);hg&&(window.ShadyCSS.CustomStyleInterface=hg);}).call(this);

//# sourceMappingURL=webcomponents-sd-ce.js.map
