Files
webcomponentsjs/webcomponents-hi-sd-ce.js
Steven Orvell faff06a80a update builds!
2017-02-06 23:27:40 -08:00

7 lines
83 KiB
JavaScript

(function(){'use strict';function _(Mt){return Mt=$(Mt),te(ee(Mt),Mt)}function $(Mt){return Mt.replace(Re.comments,'').replace(Re.port,'')}function ee(Mt){let Ot={start:0,end:Mt.length},wt=Ot;for(let Dt=0,Lt=Mt.length;Dt<Lt;Dt++)if(Mt[Dt]===Ae){wt.rules||(wt.rules=[]);let kt=wt,Ht=kt.rules[kt.rules.length-1];wt={start:Dt+1,parent:kt,previous:Ht},kt.rules.push(wt)}else Mt[Dt]===Pe&&(wt.end=Dt+1,wt=wt.parent||Ot);return Ot}function te(Mt,Ot){let wt=Ot.substring(Mt.start,Mt.end-1);if(Mt.parsedCssText=Mt.cssText=wt.trim(),Mt.parent){let Lt=Mt.previous?Mt.previous.end:Mt.parent.start;wt=Ot.substring(Lt,Mt.start-1),wt=oe(wt),wt=wt.replace(Re.multipleSpaces,' '),wt=wt.substring(wt.lastIndexOf(';')+1);let kt=Mt.parsedSelector=Mt.selector=wt.trim();Mt.atRule=0===kt.indexOf('@'),Mt.atRule?0===kt.indexOf('@media')?Mt.type=Te.MEDIA_RULE:kt.match(Re.keyframesRule)&&(Mt.type=Te.KEYFRAMES_RULE,Mt.keyframesName=Mt.selector.split(Re.multipleSpaces).pop()):0===kt.indexOf(xe)?Mt.type=Te.MIXIN_RULE:Mt.type=Te.STYLE_RULE}let Dt=Mt.rules;if(Dt)for(let Ht,Lt=0,kt=Dt.length;Lt<kt&&(Ht=Dt[Lt]);Lt++)te(Ht,Ot);return Mt}function oe(Mt){return Mt.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let Ot=arguments[1],wt=6-Ot.length;for(;wt--;)Ot='0'+Ot;return'\\'+Ot})}function re(Mt,Ot,wt){wt=wt||'';let Dt='';if(Mt.cssText||Mt.rules){let Lt=Mt.rules;if(Lt&&!ne(Lt))for(let Ft,kt=0,Ht=Lt.length;kt<Ht&&(Ft=Lt[kt]);kt++)Dt=re(Ft,Ot,Dt);else Dt=Ot?Mt.cssText:se(Mt.cssText),Dt=Dt.trim(),Dt&&(Dt=' '+Dt+'\n')}return Dt&&(Mt.selector&&(wt+=Mt.selector+' '+Ae+'\n'),wt+=Dt,Mt.selector&&(wt+=Pe+'\n\n')),wt}function ne(Mt){return 0===Mt[0].selector.indexOf(xe)}function se(Mt){return Mt=ae(Mt),le(Mt)}function ae(Mt){return Mt.replace(Re.customProp,'').replace(Re.mixinProp,'')}function le(Mt){return Mt.replace(Re.mixinApply,'').replace(Re.varApply,'')}function ie(Mt){Mt&&(we=we&&!Mt.shimcssproperties,Oe=Oe&&!Mt.shimshadow)}function pe(Mt,Ot){return'string'==typeof Mt&&(Mt=_(Mt)),Ot&&ue(Mt,Ot),re(Mt,we)}function he(Mt){return!Mt.__cssRules&&Mt.textContent&&(Mt.__cssRules=_(Mt.textContent)),Mt.__cssRules}function _e(Mt){return Mt.parent&&Mt.parent.type===Te.KEYFRAMES_RULE}function ue(Mt,Ot,wt,Dt){if(Mt){let Lt=!1;if(Dt&&Mt.type===Te.MEDIA_RULE){let Ht=Mt.selector.match(ke.MEDIA_MATCH);Ht&&!window.matchMedia(Ht[1]).matches&&(Lt=!0)}Mt.type===Te.STYLE_RULE?Ot(Mt):wt&&Mt.type===Te.KEYFRAMES_RULE?wt(Mt):Mt.type===Te.MIXIN_RULE&&(Lt=!0);let kt=Mt.rules;if(kt&&!Lt)for(let Ut,Ht=0,Ft=kt.length;Ht<Ft&&(Ut=kt[Ht]);Ht++)ue(Ut,Ot,wt,Dt)}}function me(Mt,Ot,wt,Dt){let Lt=ge(Mt,Ot);return ye(Lt,wt,Dt)}function ye(Mt,Ot,wt){Ot=Ot||document.head;let Dt=wt&&wt.nextSibling||Ot.firstChild;return Le=Mt,Ot.insertBefore(Mt,Dt)}function ge(Mt,Ot){let wt=document.createElement('style');return Ot&&wt.setAttribute('scope',Ot),wt.textContent=Mt,wt}function fe(Mt){let Ot=document.createComment(' Shady DOM styles for '+Mt+' '),wt=Le?Le.nextSibling:null,Dt=document.head;return Dt.insertBefore(Ot,wt||Dt.firstChild),Le=Ot,Ot}function Ne(Mt,Ot){let wt=0;for(let Dt=Ot,Lt=Mt.length;Dt<Lt;Dt++)if('('===Mt[Dt])wt++;else if(')'===Mt[Dt]&&0==--wt)return Dt;return-1}function be(Mt,Ot){let wt=Mt.indexOf('var(');if(-1===wt)return Ot(Mt,'','','');let Dt=Ne(Mt,wt+3),Lt=Mt.substring(wt+4,Dt),kt=Mt.substring(0,wt),Ht=be(Mt.substring(Dt+1),Ot),Ft=Lt.indexOf(',');if(-1===Ft)return Ot(kt,Lt.trim(),'',Ht);let Ut=Lt.substring(0,Ft).trim(),Wt=Lt.substring(Ft+1).trim();return Ot(kt,Ut,Wt,Ht)}function Se(Mt,Ot){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(Mt,'class',Ot):Mt.setAttribute('class',Ot)}function Ee(Mt,Ot){let wt=parseInt(Mt/32);Ot[wt]=(Ot[wt]||0)|1<<Mt%32}function Ce(){Pt||(Pt=!0,window.HTMLImports?window.HTMLImports.whenReady(ve):'complete'===document.readyState?ve():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&ve()}))}function ve(){requestAnimationFrame(()=>{(Pt||At._elementsHaveApplied)&&At.updateStyles(),Pt=!1})}(Mt=>{const Ot=!!('import'in document.createElement('link'));let wt=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return wt||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const Dt=/(^\/)|(^#)|(^[\w-\d]*:)/,Lt=/(url\()([^)]*)(\))/g,kt=/(@import[\s]+(?!url\())([^;]*)(;)/g,Ht=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Ft={fixUrls(ro,no){ro.href&&ro.setAttribute('href',Ft.replaceAttrUrl(ro.getAttribute('href'),no)),ro.src&&ro.setAttribute('src',Ft.replaceAttrUrl(ro.getAttribute('src'),no)),'style'===ro.localName&&Ft.resolveUrlsInStyle(ro,no)},fixUrlAttributes(ro,no){const so=['action','src','href','url','style'];for(let lo,ao=0;ao<so.length&&(lo=so[ao]);ao++){const io=ro.attributes[lo],po=io&&io.value;po&&0>po.search(/({{|\[\[)/)&&(io.value='style'===lo?Ft.resolveUrlsInCssText(po,no):Ft.replaceAttrUrl(po,no))}},fixUrlsInTemplates(ro,no){const so=ro.querySelectorAll('template');for(let ao=0;ao<so.length;ao++)Ft.fixUrlsInTemplate(so[ao],no)},fixUrlsInTemplate(ro,no){const so=ro.content||ro,ao=so.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let lo=0;lo<ao.length;lo++){const io=ao[lo];'style'==io.localName?Ft.resolveUrlsInStyle(io,no):Ft.fixUrlAttributes(io,no)}Ft.fixUrlsInTemplates(so,no)},resolveUrlsInStyle(ro,no){ro.textContent=Ft.resolveUrlsInCssText(ro.textContent,no)},resolveUrlsInCssText(ro,no){let so=Ft.replaceUrls(ro,no,Lt);return so=Ft.replaceUrls(so,no,kt),so},replaceUrls(ro,no,so){return ro.replace(so,(ao,lo,io,po)=>{let co=io.replace(/["']/g,'');return no&&(co=Ft.resolveUrl(co,no)),lo+'\''+co+'\''+po})},replaceAttrUrl(ro,no){return ro&&Dt.test(ro)?ro:Ft.resolveUrl(ro,no)},resolveUrl(ro,no){if(void 0===Ft.__workingURL){Ft.__workingURL=!1;try{const ao=new URL('b','http://a');ao.pathname='c%20d',Ft.__workingURL='http://a/c%20d'===ao.href}catch(ao){}}if(Ft.__workingURL)return new URL(ro,no).href;let so=Ft.__tempDoc;return so||(so=document.implementation.createHTMLDocument('temp'),Ft.__tempDoc=so,so.__base=so.createElement('base'),so.head.appendChild(so.__base),so.__anchor=so.createElement('a')),so.__base.href=no,so.__anchor.href=ro,so.__anchor.href||ro}},Ut={async:!0,load(ro){return new Promise((no,so)=>{if(!ro)so({resource:'error: href must be specified'});else if(ro.match(/^data:/)){const ao=ro.split(','),lo=ao[0];let io=ao[1];io=-1<lo.indexOf(';base64')?atob(io):decodeURIComponent(io),no({resource:io})}else{const ao=new XMLHttpRequest;ao.open('GET',ro,Ut.async),ao.addEventListener('readystatechange',()=>{if(4===ao.readyState){let lo;try{const po=ao.getResponseHeader('Location');po&&(lo='/'===po.substr(0,1)?location.origin+po:po)}catch(po){console.error(po.message)}const io={resource:ao.response||ao.responseText,redirectedUrl:lo};304===ao.status||0===ao.status||200<=ao.status&&300>ao.status?no(io):so(io)}}),ao.send()}})}},Wt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),qt='onunhandledrejection'in window,Bt='link[rel=import]',jt='import-disable',Gt=`link[rel=stylesheet][href][type=${jt}]`,Xt=`${Bt}, ${Gt},
style:not([type]), link[rel=stylesheet][href]:not([type]),
script:not([type]), script[type="application/javascript"],
script[type="text/javascript"]`,Vt='import-dependency',Kt=`${Bt}:not(${Vt})`,Yt=`script[${Vt}]`,zt=`style[${Vt}],
link[rel=stylesheet][${Vt}]`;const Zt=ro=>{return ro.nodeType===Node.ELEMENT_NODE&&'link'===ro.localName&&'import'===ro.rel},Qt=ro=>{return ro.__loadPromise||(ro.__loadPromise=new Promise(no=>{'script'!==ro.localName||ro.src?Wt&&'style'===ro.localName?ro.addEventListener('load',no):(ro.addEventListener('load',no),ro.addEventListener('error',no)):no()}).then(()=>{return ro.__loaded=!0,ro})),ro.__loadPromise},Jt=ro=>{eo(()=>to(()=>ro&&ro()))},eo=ro=>{if('loading'!==document.readyState)ro();else{const no=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',no),ro())};document.addEventListener('readystatechange',no)}},to=ro=>{let no=document.querySelectorAll(Kt);const so=[];for(let io,ao=0,lo=no.length;ao<lo&&(io=no[ao]);ao++)io.__loaded||so.push(Qt(io));if(so.length){let ao=Promise.all(so).then(ro);qt||ao.catch(lo=>{throw console.error(lo.stack),setTimeout(()=>{throw lo}),'unhandledrejection'})}else ro()},oo=ro=>{if(Ot)return ro.ownerDocument;let no=ro.__ownerImport;if(!no){for(no=ro;(no=no.parentNode||no.host)&&!Zt(no););ro.__ownerImport=no}return no};if(Ot){const ro=document.querySelectorAll(Bt);for(let lo,so=0,ao=ro.length;so<ao&&(lo=ro[so]);so++)lo.import&&'loading'===lo.import.readyState||(lo.__loaded=!0);const no=so=>{const ao=so.target;Zt(ao)&&(ao.__loaded=!0)};document.addEventListener('load',no,!0),document.addEventListener('error',no,!0)}else new class{constructor(){this.documents={},this.inflight=0,eo(()=>{new MutationObserver(ro=>this.handleMutations(ro)).observe(document.head,{childList:!0,subtree:!0}),this.load()})}load(ro){let no=ro?this.whenImportLoaded(ro):this.whenImportsLoaded(document);return no&&(this.inflight++,no=no.then(()=>{if(0==--this.inflight)return this.onLoadedAll()}),!qt&&(no=no.catch(so=>{throw console.error(so.stack),setTimeout(()=>{throw so}),'unhandledrejection'}))),no}whenImportsLoaded(ro){const no=ro.querySelectorAll(Bt),so=[];for(let ao=0,lo=no.length;ao<lo;ao++){const io=this.whenImportLoaded(no[ao]);io&&so.push(io)}return so.length?Promise.all(so).then(()=>ro):null}whenImportLoaded(ro){const no=ro.href;return void 0===this.documents[no]?(this.documents[no]='pending',Ut.load(no).then(so=>{const ao=this.makeDocument(so.resource,so.redirectedUrl||no);return this.documents[no]=ao,this.whenImportsLoaded(ao)},()=>this.documents[no]=null).then(()=>ro)):null}makeDocument(ro,no){if(!ro)return document.createDocumentFragment();Wt&&(ro=ro.replace(Ht,(ho,_o,uo)=>{return-1===ho.indexOf('type=')?`${_o} type=${jt} ${uo}`:ho}));let so;const ao=document.createElement('template');if(ao.innerHTML=ro,ao.content)so=ao.content;else for(so=document.createDocumentFragment();ao.firstChild;)so.appendChild(ao.firstChild);const lo=so.querySelector('base');lo&&(no=Ft.replaceAttrUrl(lo.getAttribute('href'),no),lo.removeAttribute('href'));const io=so.querySelectorAll('dom-module');for(let _o,ho=0;ho<io.length&&(_o=io[ho]);ho++)_o.setAttribute('assetpath',Ft.replaceAttrUrl(_o.getAttribute('assetpath')||'',no));const po=so.querySelectorAll(Xt);let co=0;for(let uo,ho=0,_o=po.length;ho<_o&&(uo=po[ho]);ho++)if(Qt(uo),Ft.fixUrls(uo,no),uo.setAttribute(Vt,''),'script'===uo.localName&&!uo.src&&uo.textContent){const mo=co?`-${co}`:'',yo=uo.textContent+`\n//# sourceURL=${no}${mo}.js\n`;uo.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(yo)),uo.textContent='',co++}return Ft.fixUrlsInTemplates(so,no),so}onLoadedAll(){return this.flatten(document),Promise.all([this.waitForStyles(),this.runScripts()]).then(()=>this.fireEvents())}flatten(ro){const no=ro.querySelectorAll(Bt);for(let lo,so=0,ao=no.length;so<ao&&(lo=no[so]);so++){const io=this.documents[lo.href];lo.import=io,io&&io.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[lo.href]=lo,lo.readyState='loading',lo.import=lo,this.flatten(io),lo.appendChild(io))}}runScripts(){const ro=document.querySelectorAll(Yt);let no=Promise.resolve();for(let lo,so=0,ao=ro.length;so<ao&&(lo=ro[so]);so++)no=no.then(()=>{const io=document.createElement('script');lo.removeAttribute(Vt);for(let po=0,co=lo.attributes.length;po<co;po++)io.setAttribute(lo.attributes[po].name,lo.attributes[po].value);return wt=io,lo.parentNode.replaceChild(io,lo),Qt(io).then(()=>wt=null)});return no}waitForStyles(){const ro=!!document.querySelector(Gt),no=document.querySelectorAll(zt),so=[];for(let io,ao=0,lo=no.length;ao<lo&&(io=no[ao]);ao++)if(so.push(Qt(io).then(()=>io.removeAttribute(Vt))),ro&&io.parentNode!==document.head){let po=oo(io);for(;po&&oo(po);)po=oo(po);const co=io.parentNode,ho=io.nextSibling,_o=document.createElement(io.localName);_o.__appliedElement=io,_o.setAttribute('type','import-placeholder'),po.parentNode===document.head?document.head.insertBefore(io,po):document.head.appendChild(io),co.insertBefore(_o,ho),io.removeAttribute('type')}return Promise.all(so)}fireEvents(){const ro=document.querySelectorAll(Bt);for(let so,no=ro.length-1;0<=no&&(so=ro[no]);no--)this.fireEventIfNeeded(so)}fireEventIfNeeded(ro){if(!ro.__loaded){ro.__loaded=!0,ro.import&&(ro.import.readyState='complete');const no=ro.import?'load':'error';ro.dispatchEvent(new CustomEvent(no,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(ro){for(let no=0;no<ro.length;no++){const so=ro[no];if(so.addedNodes)for(let ao=0;ao<so.addedNodes.length;ao++){const lo=so.addedNodes[ao];if(lo&&lo.nodeType===Node.ELEMENT_NODE){const io=Zt(lo)?[lo]:lo.querySelectorAll(Bt);for(let po=0;po<io.length;po++){const co=io[po],ho=this.documents[co.href];void 0===ho?this.load(co):!this.inflight&&(co.import=ho,this.fireEventIfNeeded(co))}}}}}};Jt(()=>document.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),Mt.useNative=Ot,Mt.whenReady=Jt,Mt.importForElement=oo})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';function Mt(Ln,kn,Hn){return{index:Ln,removed:kn,addedCount:Hn}}function Ot(Ln){return'ShadyRoot'===Ln.__localName}function Lt(Ln,kn,Hn){(kn=Object.getOwnPropertyDescriptor(kn,Ln))&&Object.defineProperty(Hn,Ln,kn)}function kt(Ln,kn){if(Ln&&kn)for(var Un,Hn=Object.getOwnPropertyNames(kn),Fn=0;Fn<Hn.length&&(Un=Hn[Fn]);Fn++)Lt(Un,kn,Ln);return Ln||kn}function qt(){for(Ar=!1,Pr++;Tr.length;)Tr.shift()();vr&&vr.flush&&vr.flush();var Ln=Pr>100;if(Tr.length&&!Ln&&qt(),Pr=0,Ln)throw Error('Loop detected in ShadyDOM distribution, aborting.')}function Bt(Ln,kn){return Ln.__shady&&Ln.__shady[kn]}function Gt(Ln){return'&'===Ln?'&amp;':'<'===Ln?'&lt;':'>'===Ln?'&gt;':'"'===Ln?'&quot;':'\xA0'===Ln?'&nbsp;':void 0}function Xt(Ln){return Ln.replace(Mr,Gt)}function Vt(Ln){return Ln.replace(Or,Gt)}function Kt(Ln){for(var kn={},Hn=0;Hn<Ln.length;Hn++)kn[Ln[Hn]]=!0;return kn}function Yt(Ln,kn,Hn){switch(Ln.nodeType){case Node.ELEMENT_NODE:kn=Ln.localName;for(var qn,Fn='<'+kn,Un=Ln.attributes,Wn=0;qn=Un[Wn];Wn++)Fn+=' '+qn.name+'="'+Xt(qn.value)+'"';return Fn+='>',wr[kn]?Fn:Fn+zt(Ln,Hn)+'</'+kn+'>';case Node.TEXT_NODE:return Ln=Ln.data,kn&&Dr[kn.localName]?Ln:Vt(Ln);case Node.COMMENT_NODE:return'<!--'+Ln.data+'-->';default:throw window.console.error(Ln),Error('not implemented');}}function zt(Ln,kn){'template'===Ln.localName&&(Ln=Ln.content);for(var qn,Hn='',Fn=kn?kn(Ln):Ln.childNodes,Un=0,Wn=Fn.length;Un<Wn&&(qn=Fn[Un]);Un++)Hn+=Yt(qn,Ln,kn);return Hn}function to(Ln){var kn=[];for(kr.currentNode=Ln,Ln=kr.firstChild();Ln;)kn.push(Ln),Ln=kr.nextSibling();return kn}function co(Ln){return{get:function(){var kn=xr.getProperty(this,Ln);return void 0===kn?Lr[Ln](this):kn},configurable:!0}}function ho(Ln){for(;Ln.firstChild;)Ln.removeChild(Ln.firstChild)}function _o(){return Br&&Br.get?Br.get.call(document):mr.settings.hasDescriptors?void 0:document.activeElement}function uo(Ln){var kn=_o();if(!kn)return null;var Hn=!!mr.isShadyRoot(Ln);if(!(Ln===document||Hn&&Ln.host!==kn&&Ln.host.contains(kn)))return null;for(Hn=mr.ownerShadyRootForNode(kn);Hn&&Hn!==Ln;)kn=Hn.host,Hn=mr.ownerShadyRootForNode(kn);return Ln===document?Hn?null:kn:Hn===Ln?kn:null}function mo(Ln,kn,Hn){for(var Fn in kn){var Un=Object.getOwnPropertyDescriptor(Ln,Fn);Un&&Un.configurable||!Un&&Hn?Object.defineProperty(Ln,Fn,kn[Fn]):Hn&&console.warn('Could not define',Fn,'on',Ln)}}function No(Ln,kn,Hn){Fr.patchOutsideElementAccessors(Ln),Hn=Hn||null,Ln.__shady=Ln.__shady||{},kn.__shady=kn.__shady||{},Hn&&(Hn.__shady=Hn.__shady||{}),Ln.__shady.previousSibling=Hn?Hn.__shady.previousSibling:kn.lastChild;var Fn=Ln.__shady.previousSibling;Fn&&Fn.__shady&&(Fn.__shady.nextSibling=Ln),(Fn=Ln.__shady.nextSibling=Hn)&&Fn.__shady&&(Fn.__shady.previousSibling=Ln),Ln.__shady.parentNode=kn,Hn?Hn===kn.__shady.firstChild&&(kn.__shady.firstChild=Ln):(kn.__shady.lastChild=Ln,kn.__shady.firstChild||(kn.__shady.firstChild=Ln)),kn.__shady.childNodes=null}function Co(Ln,kn,Hn){var Un,Fn=mr.ownerShadyRootForNode(Ln);return Fn&&(kn.__noInsertionPoint&&!Fn._changePending&&(Fn._skipUpdateInsertionPoints=!0),Un=Io(kn,Ln,Fn))&&(Fn._skipUpdateInsertionPoints=!1),xr.hasProperty(Ln,'firstChild')&&zr.recordInsertBefore(kn,Ln,Hn),xo(kn,Ln,Fn,Un)||Ln.shadyRoot}function vo(Ln){var Hn,kn=xr.hasProperty(Ln,'parentNode')&&xr.getProperty(Ln,'parentNode'),Fn=mr.ownerShadyRootForNode(Ln);if(kn||Fn){Hn=ko(Ln),kn&&zr.recordRemoveChild(Ln,kn);var Un=Fn&&Oo(Fn,Ln),kn=kn&&Fn&&kn.localName===Fn.getInsertionPointTag();(Un||kn)&&(Fn._skipUpdateInsertionPoints=!1,Ho(Fn))}return Do(Ln),Hn}function To(Ln,kn,Hn){(Ln=Ln.__shady&&Ln.__shady.observer)&&(kn&&Ln.addedNodes.push(kn),Hn&&Ln.removedNodes.push(Hn),Ln.schedule())}function Ao(Ln,kn){return kn?(To(kn,null,Ln),vo(Ln)):void(Ln.parentNode&&Zr.removeChild.call(Ln.parentNode,Ln),Do(Ln))}function Po(Ln){return void 0!==Ln.__ownerShadyRoot}function Ro(Ln){if(Ln&&Ln.nodeType){var kn=Ln.__ownerShadyRoot;return void 0===kn&&(kn=mr.isShadyRoot(Ln)?Ln:(kn=Ln.parentNode)?Ro(kn):Ln,document.documentElement.contains(Ln)&&(Ln.__ownerShadyRoot=kn)),kn}}function xo(Ln,kn,Hn,Fn){var Un=Hn&&Hn.getInsertionPointTag()||'',Wn=Ln.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!Ln.__noInsertionPoint&&Un&&Ln.querySelector(Un),qn=Wn&&Wn.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;return((Ln=Wn||Ln.localName===Un)||kn.localName===Un||Fn)&&Hn&&Ho(Hn),(Hn=Mo(kn))&&Ho(kn.shadyRoot),Hn||Ln&&!qn}function Io(Ln,kn,Hn){var Fn,Un=Hn.getInsertionPointTag();if(Ln.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||Ln.__noInsertionPoint)Ln.localName===Un&&(zr.recordChildNodes(kn),zr.recordChildNodes(Ln),Fn=!0);else for(var qn,Bn,Un=Ln.querySelectorAll(Un),Wn=0;Wn<Un.length&&(qn=Un[Wn]);Wn++)Bn=qn.parentNode,Bn===Ln&&(Bn=kn),Bn=Io(qn,Bn,Hn),Fn=Fn||Bn;return Fn}function Mo(Ln){return Ln&&Ln.shadyRoot&&Ln.shadyRoot.hasInsertionPoint()}function Oo(Ln,kn){var Hn;Ln=Ln._insertionPoints;for(var Un,Fn=0;Fn<Ln.length;Fn++)if(Un=Ln[Fn],wo(kn,Un))for(var Un=Un.assignedNodes({flatten:!0}),Wn=0;Wn<Un.length;Wn++){Hn=!0;var qn=Un[Wn],Bn=Lr.parentNode(qn);Bn&&Zr.removeChild.call(Bn,qn)}return Hn}function wo(Ln,kn){for(;kn;){if(kn==Ln)return!0;kn=kn.parentNode}}function Do(Ln){if(Po(Ln))for(var Un,kn=Ln.childNodes,Hn=0,Fn=kn.length;Hn<Fn&&(Un=kn[Hn]);Hn++)Do(Un);Ln.__ownerShadyRoot=void 0}function Lo(Ln){for(var Wn,kn=Ln.assignedNodes({flatten:!0}),Hn=Ro(Ln),Fn=0,Un=kn.length;Fn<Un&&(Wn=kn[Fn]);Fn++)if(Hn.isFinalDestination(Ln,Wn))return Wn}function ko(Ln){if(Ln=Ln.parentNode,Mo(Ln))return Ho(Ln.shadyRoot),!0}function Ho(Ln){Ln._changePending=!0,Ln.update()}function Fo(Ln,kn){'slot'===kn?ko(Ln):'slot'===Ln.localName&&'name'==kn&&(Ln=mr.ownerShadyRootForNode(Ln))&&Ln.update()}function Wo(Ln,kn,Hn,Fn){for(var qn,Un=0,Wn=Ln.length;Un<Wn&&(qn=Ln[Un]);Un++)if(qn.nodeType===Node.ELEMENT_NODE&&qo(qn,kn,Hn,Fn))return!0}function qo(Ln,kn,Hn,Fn){var Un=kn(Ln);return Un&&Fn.push(Ln),Hn&&Hn(Un)?Un:void Wo(Ln.childNodes,kn,Hn,Fn)}function Yo(Ln,kn){if(Ln.ownerDocument!==document)return Zr.importNode.call(document,Ln,kn);var Hn=Zr.importNode.call(document,Ln,!1);if(kn){Ln=Ln.childNodes,kn=0;for(var Fn;kn<Ln.length;kn++)Fn=Yo(Ln[kn],!0),Hn.appendChild(Fn)}return Hn}function zo(Ln,kn){var Hn=[],Fn=Ln;for(Ln=Ln===window?window:Ln.getRootNode();Fn;)Hn.push(Fn),Fn=Fn.assignedSlot?Fn.assignedSlot:Fn.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Fn.host&&(kn||Fn!==Ln)?Fn.host:Fn.parentNode;return Hn[Hn.length-1]===document&&Hn.push(window),Hn}function $o(Ln,kn){if(!mr.isShadyRoot)return Ln;Ln=zo(Ln,!0);for(var Fn,Un,Wn,qn,Hn=0;Hn<kn.length;Hn++)if(Fn=kn[Hn],Wn=Fn===window?window:Fn.getRootNode(),Wn!==Un&&(qn=Ln.indexOf(Wn),Un=Wn),!mr.isShadyRoot(Wn)||-1<qn)return Fn}function Zo(Ln){var kn=function(Hn,Fn){return Hn=new Ln(Hn,Fn),Hn.__composed=Fn&&!!Fn.composed,Hn};return mr.mixin(kn,Ln),kn.prototype=Ln.prototype,kn}function Qo(Ln,kn,Hn){if(Hn=kn.__handlers&&kn.__handlers[Ln.type]&&kn.__handlers[Ln.type][Hn])for(var Un,Fn=0;(Un=Hn[Fn])&&(Un.call(kn,Ln),!Ln.__immediatePropagationStopped);Fn++);}function Jo(Ln){var Hn,kn=Ln.composedPath();Object.defineProperty(Ln,'currentTarget',{get:function(){return Hn},configurable:!0});for(var Fn=kn.length-1;0<=Fn;Fn--)if(Hn=kn[Fn],Qo(Ln,Hn,'capture'),Ln.__propagationStopped)return;Object.defineProperty(Ln,'eventPhase',{value:Event.AT_TARGET});for(var Un,Fn=0;Fn<kn.length&&!((Hn=kn[Fn],0===Fn||Hn.shadowRoot&&Hn.shadowRoot===Un)&&(Qo(Ln,Hn,'bubble'),Hn!==window&&(Un=Hn.getRootNode()),Ln.__propagationStopped));Fn++);}function or(){for(var Ln in vn)window.addEventListener(Ln,function(kn){kn.__target||(rr(kn),Jo(kn),kn.stopImmediatePropagation())},!0)}function rr(Ln){Ln.__target=Ln.target,Ln.__relatedTarget=Ln.relatedTarget,mr.settings.hasDescriptors?mr.patchPrototype(Ln,Cn):mr.extend(Ln,Cn)}function sr(Ln){return bn.renderRootNode(Ln),xr.getProperty(Ln,'assignedSlot')||null}function ar(Ln,kn){for(var Hn=Object.getOwnPropertyNames(kn),Fn=0;Fn<Hn.length;Fn++){var Un=Hn[Fn],Wn=Object.getOwnPropertyDescriptor(kn,Un);Wn.value?Ln[Un]=Wn.value:Object.defineProperty(Ln,Un,Wn)}}var dr={},ir=0,pr=1,cr=2,hr=3,_r={calcEditDistances:function(Ln,kn,Hn,Fn,Un,Wn){Wn=Wn-Un+1,Hn=Hn-kn+1;for(var qn=Array(Wn),Bn=0;Bn<Wn;Bn++)qn[Bn]=Array(Hn),qn[Bn][0]=Bn;for(Bn=0;Bn<Hn;Bn++)qn[0][Bn]=Bn;for(Bn=1;Bn<Wn;Bn++)for(var jn=1;jn<Hn;jn++)if(this.equals(Ln[kn+jn-1],Fn[Un+Bn-1]))qn[Bn][jn]=qn[Bn-1][jn-1];else{var Gn=qn[Bn-1][jn]+1,Xn=qn[Bn][jn-1]+1;qn[Bn][jn]=Gn<Xn?Gn:Xn}return qn},spliceOperationsFromEditDistances:function(Ln){for(var kn=Ln.length-1,Hn=Ln[0].length-1,Fn=Ln[kn][Hn],Un=[];0<kn||0<Hn;)if(0==kn)Un.push(cr),Hn--;else if(0==Hn)Un.push(hr),kn--;else{var jn,Wn=Ln[kn-1][Hn-1],qn=Ln[kn-1][Hn],Bn=Ln[kn][Hn-1];jn=qn<Bn?qn<Wn?qn:Wn:Bn<Wn?Bn:Wn,jn==Wn?(Wn==Fn?Un.push(ir):(Un.push(pr),Fn=Wn),kn--,Hn--):jn==qn?(Un.push(hr),kn--,Fn=qn):(Un.push(cr),Hn--,Fn=Bn)}return Un.reverse(),Un},calcSplices:function(Ln,kn,Hn,Fn,Un,Wn){var qn=0,Bn=0,jn=Math.min(Hn-kn,Wn-Un);if(0==kn&&0==Un&&(qn=this.sharedPrefix(Ln,Fn,jn)),Hn==Ln.length&&Wn==Fn.length&&(Bn=this.sharedSuffix(Ln,Fn,jn-qn)),kn+=qn,Un+=qn,Hn-=Bn,Wn-=Bn,0==Hn-kn&&0==Wn-Un)return[];if(kn==Hn){for(Ln=Mt(kn,[],0);Un<Wn;)Ln.removed.push(Fn[Un++]);return[Ln]}if(Un==Wn)return[Mt(kn,[],Hn-kn)];for(Wn=this.spliceOperationsFromEditDistances(this.calcEditDistances(Ln,kn,Hn,Fn,Un,Wn)),Ln=void 0,Hn=[],qn=0;qn<Wn.length;qn++)switch(Wn[qn]){case ir:Ln&&(Hn.push(Ln),Ln=void 0),kn++,Un++;break;case pr:Ln||(Ln=Mt(kn,[],0)),Ln.addedCount++,kn++,Ln.removed.push(Fn[Un]),Un++;break;case cr:Ln||(Ln=Mt(kn,[],0)),Ln.addedCount++,kn++;break;case hr:Ln||(Ln=Mt(kn,[],0)),Ln.removed.push(Fn[Un]),Un++;}return Ln&&Hn.push(Ln),Hn},sharedPrefix:function(Ln,kn,Hn){for(var Fn=0;Fn<Hn;Fn++)if(!this.equals(Ln[Fn],kn[Fn]))return Fn;return Hn},sharedSuffix:function(Ln,kn,Hn){for(var Fn=Ln.length,Un=kn.length,Wn=0;Wn<Hn&&this.equals(Ln[--Fn],kn[--Un]);)Wn++;return Wn},calculateSplices:function(Ln,kn){return this.calcSplices(Ln,0,Ln.length,kn,0,kn.length)},equals:function(Ln,kn){return Ln===kn}};dr.calculateSplices=function(Ln,kn){return _r.calculateSplices(Ln,kn)};var mr={},yr=window.ShadyDOM||{};yr.hasNativeShadowDOM=Element.prototype.attachShadow&&Node.prototype.getRootNode;var gr=Object.getOwnPropertyDescriptor(Node.prototype,'firstChild');yr.hasDescriptors=!!(gr&&gr.configurable&&gr.get),yr.inUse=yr.force||!yr.hasNativeShadowDOM;var fr=Element.prototype,Nr=fr.matches||fr.matchesSelector||fr.mozMatchesSelector||fr.msMatchesSelector||fr.oMatchesSelector||fr.webkitMatchesSelector,br,Sr=document.createTextNode(''),Er=0;br={then:function(Ln){var kn=new MutationObserver(function(){kn.disconnect(),Ln()});kn.observe(Sr,{characterData:!0}),Sr.textContent=Er++}},mr.settings=yr,mr.isShadyRoot=Ot,mr.ownerShadyRootForNode=function(Ln){if(Ln=Ln.getRootNode(),Ot(Ln))return Ln},mr.matchesSelector=function(Ln,kn){return Nr.call(Ln,kn)},mr.extend=kt,mr.extendAll=function(Ln){for(var Hn=[],Fn=1;Fn<arguments.length;++Fn)Hn[Fn-1]=arguments[Fn];for(Fn=0;Fn<Hn.length;Fn++)kt(Ln,Hn[Fn]);return Ln},mr.mixin=function(Ln,kn){for(var Hn in kn)Ln[Hn]=kn[Hn];return Ln},mr.patchPrototype=function(Ln,kn){var Hn=Object.getPrototypeOf(Ln);if(!Hn.hasOwnProperty('__patchProto')){var Fn=Object.create(Hn);Fn.__sourceProto=Hn,kt(Fn,kn),Hn.__patchProto=Fn}Ln.__proto__=Hn.__patchProto},mr.promish=br;var Ar,Cr={},vr=window.customElements,Tr=[],Pr=0;qt.list=Tr,Cr.enqueue=function(Ln){Ar||(Ar=!0,mr.promish.then(qt)),Tr.push(Ln)},Cr.flush=qt;var xr={};xr.getProperty=Bt,xr.hasProperty=function(Ln,kn){return void 0!==Bt(Ln,kn)};var Ir={},Mr=/[&\u00A0"]/g,Or=/[&\u00A0<>]/g,wr=Kt('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),Dr=Kt('style script xmp iframe noembed noframes plaintext noscript'.split(' '));Ir.getOuterHTML=Yt,Ir.getInnerHTML=zt;var Lr={},kr=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Hr=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Lr.parentNode=function(Ln){return kr.currentNode=Ln,kr.parentNode()},Lr.firstChild=function(Ln){return kr.currentNode=Ln,kr.firstChild()},Lr.lastChild=function(Ln){return kr.currentNode=Ln,kr.lastChild()},Lr.previousSibling=function(Ln){return kr.currentNode=Ln,kr.previousSibling()},Lr.nextSibling=function(Ln){return kr.currentNode=Ln,kr.nextSibling()},Lr.childNodes=to,Lr.parentElement=function(Ln){return Hr.currentNode=Ln,Hr.parentNode()},Lr.firstElementChild=function(Ln){return Hr.currentNode=Ln,Hr.firstChild()},Lr.lastElementChild=function(Ln){return Hr.currentNode=Ln,Hr.lastChild()},Lr.previousElementSibling=function(Ln){return Hr.currentNode=Ln,Hr.previousSibling()},Lr.nextElementSibling=function(Ln){return Hr.currentNode=Ln,Hr.nextSibling()},Lr.children=function(Ln){var kn=[];for(Hr.currentNode=Ln,Ln=Hr.firstChild();Ln;)kn.push(Ln),Ln=Hr.nextSibling();return kn},Lr.innerHTML=function(Ln){return Ir.getInnerHTML(Ln,function(kn){return to(kn)})},Lr.textContent=function(Ln){if(Ln.nodeType!==Node.ELEMENT_NODE)return Ln.nodeValue;Ln=document.createTreeWalker(Ln,NodeFilter.SHOW_TEXT,null,!1);for(var Hn,kn='';Hn=Ln.nextNode();)kn+=Hn.nodeValue;return kn};var Fr={},Ur=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Wr=document.implementation.createHTMLDocument('inert'),qr=Wr.createElement('div'),Br=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),jr={parentElement:co('parentElement'),parentNode:co('parentNode'),nextSibling:co('nextSibling'),previousSibling:co('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Ln){this.setAttribute('class',Ln)},configurable:!0},nextElementSibling:{get:function(){if(xr.hasProperty(this,'nextSibling')){for(var Ln=this.nextSibling;Ln&&Ln.nodeType!==Node.ELEMENT_NODE;)Ln=Ln.nextSibling;return Ln}return Lr.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(xr.hasProperty(this,'previousSibling')){for(var Ln=this.previousSibling;Ln&&Ln.nodeType!==Node.ELEMENT_NODE;)Ln=Ln.previousSibling;return Ln}return Lr.previousElementSibling(this)},configurable:!0}},Gr={childNodes:{get:function(){if(xr.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Ln=this.firstChild;Ln;Ln=Ln.nextSibling)this.__shady.childNodes.push(Ln)}return this.__shady.childNodes}return Lr.childNodes(this)},configurable:!0},firstChild:co('firstChild'),lastChild:co('lastChild'),textContent:{get:function(){if(xr.hasProperty(this,'firstChild')){for(var Fn,Ln=[],kn=0,Hn=this.childNodes;Fn=Hn[kn];kn++)Fn.nodeType!==Node.COMMENT_NODE&&Ln.push(Fn.textContent);return Ln.join('')}return Lr.textContent(this)},set:function(Ln){this.nodeType===Node.ELEMENT_NODE?(ho(this),Ln&&this.appendChild(document.createTextNode(Ln))):this.nodeValue=Ln},configurable:!0},firstElementChild:{get:function(){if(xr.hasProperty(this,'firstChild')){for(var Ln=this.firstChild;Ln&&Ln.nodeType!==Node.ELEMENT_NODE;)Ln=Ln.nextSibling;return Ln}return Lr.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(xr.hasProperty(this,'lastChild')){for(var Ln=this.lastChild;Ln&&Ln.nodeType!==Node.ELEMENT_NODE;)Ln=Ln.previousSibling;return Ln}return Lr.lastElementChild(this)},configurable:!0},children:{get:function(){return xr.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Ln){return Ln.nodeType===Node.ELEMENT_NODE}):Lr.children(this)},configurable:!0},innerHTML:{get:function(){var Ln='template'===this.localName?this.content:this;return xr.hasProperty(this,'firstChild')?Ir.getInnerHTML(Ln):Lr.innerHTML(Ln)},set:function(Ln){var kn='template'===this.localName?this.content:this;for(ho(kn),Ur&&Ur.set?Ur.set.call(qr,Ln):qr.innerHTML=Ln;qr.firstChild;)kn.appendChild(qr.firstChild)},configurable:!0}},Xr={shadowRoot:{get:function(){return this.shadyRoot},set:function(Ln){this.shadyRoot=Ln},configurable:!0}},Vr={activeElement:{get:function(){return uo(this)},set:function(){},configurable:!0}},Kr=mr.settings.hasDescriptors?function(){}:function(Ln){Ln.__shady&&Ln.__shady.__outsideAccessors||(Ln.__shady=Ln.__shady||{},Ln.__shady.__outsideAccessors=!0,mo(Ln,jr,!0))},Yr=mr.settings.hasDescriptors?function(){}:function(Ln){Ln.__shady&&Ln.__shady.__insideAccessors||(Ln.__shady=Ln.__shady||{},Ln.__shady.__insideAccessors=!0,mo(Ln,Gr,!0),mo(Ln,Xr,!0))};Fr.ShadowRootAccessor=Xr,Fr.ActiveElementAccessor=Vr,Fr.patchAccessors=function(Ln){mo(Ln,jr),mo(Ln,Gr),mo(Ln,Vr)},Fr.patchShadowRootAccessors=function(Ln){mo(Ln,Gr,!0),mo(Ln,Vr,!0)},Fr.patchOutsideElementAccessors=Kr,Fr.patchInsideElementAccessors=Yr;var zr={};zr.recordInsertBefore=function(Ln,kn,Hn){if(Fr.patchInsideElementAccessors(kn),kn.__shady=kn.__shady||{},xr.hasProperty(kn,'firstChild')&&(kn.__shady.childNodes=null),Ln.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Fn=Ln.childNodes,Un=0;Un<Fn.length;Un++)No(Fn[Un],kn,Hn);Ln.__shady=Ln.__shady||{},kn=xr.hasProperty(Ln,'firstChild')?null:void 0,Ln.__shady.firstChild=Ln.__shady.lastChild=kn,Ln.__shady.childNodes=kn}else No(Ln,kn,Hn)},zr.recordRemoveChild=function(Ln,kn){Ln.__shady=Ln.__shady||{},kn.__shady=kn.__shady||{},Ln===kn.__shady.firstChild&&(kn.__shady.firstChild=Ln.__shady.nextSibling),Ln===kn.__shady.lastChild&&(kn.__shady.lastChild=Ln.__shady.previousSibling);var Hn=Ln.__shady.previousSibling,Fn=Ln.__shady.nextSibling;Hn&&(Hn.__shady=Hn.__shady||{},Hn.__shady.nextSibling=Fn),Fn&&(Fn.__shady=Fn.__shady||{},Fn.__shady.previousSibling=Hn),Ln.__shady.parentNode=Ln.__shady.previousSibling=Ln.__shady.nextSibling=void 0,xr.hasProperty(kn,'childNodes')&&(kn.__shady.childNodes=null)},zr.recordChildNodes=function(Ln){if(!xr.hasProperty(Ln,'firstChild')){Ln.__shady=Ln.__shady||{},Ln.__shady.firstChild=Lr.firstChild(Ln),Ln.__shady.lastChild=Lr.lastChild(Ln),Fr.patchInsideElementAccessors(Ln);for(var Fn,kn=Ln.__shady.childNodes=Lr.childNodes(Ln),Hn=0;Hn<kn.length&&(Fn=kn[Hn]);Hn++)Fn.__shady=Fn.__shady||{},Fn.__shady.parentNode=Ln,Fn.__shady.nextSibling=kn[Hn+1]||null,Fn.__shady.previousSibling=kn[Hn-1]||null,Fr.patchOutsideElementAccessors(Fn)}};var Zr={},Qr=Element.prototype.appendChild,Jr=Element.prototype.insertBefore,en=Element.prototype.removeChild,tn=Element.prototype.setAttribute,on=Element.prototype.removeAttribute,rn=Element.prototype.cloneNode,nn=Document.prototype.importNode,sn=Element.prototype.addEventListener,an=Element.prototype.removeEventListener;Zr.appendChild=Qr,Zr.insertBefore=Jr,Zr.removeChild=en,Zr.setAttribute=tn,Zr.removeAttribute=on,Zr.cloneNode=rn,Zr.importNode=nn,Zr.addEventListener=sn,Zr.removeEventListener=an;var ln={},dn='function'==typeof Event?Event:function(Ln,kn){kn=kn||{};var Hn=document.createEvent('Event');return Hn.initEvent(Ln,!!kn.bubbles,!!kn.cancelable),Hn},cn=function(Ln){this.root=Ln,this.insertionPointTag='slot'};cn.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)},cn.prototype.hasInsertionPoint=function(){return this.root._insertionPoints&&this.root._insertionPoints.length},cn.prototype.isInsertionPoint=function(Ln){return Ln.localName&&Ln.localName==this.insertionPointTag},cn.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]},cn.prototype.collectPool=function(){for(var Ln=[],kn=0,Hn=this.root.host.firstChild;Hn;Hn=Hn.nextSibling)Ln[kn++]=Hn;return Ln},cn.prototype.distributePool=function(Ln,kn){Ln=[];for(var Wn,Hn=this.root._insertionPoints,Fn=0,Un=Hn.length;Fn<Un&&(Wn=Hn[Fn]);Fn++){this.distributeInsertionPoint(Wn,kn);var qn=Wn.parentNode;qn&&qn.shadyRoot&&this.hasInsertionPoint(qn.shadyRoot)&&Ln.push(qn.shadyRoot)}for(Hn=0;Hn<kn.length;Hn++)(Wn=kn[Hn])&&(Wn.__shady=Wn.__shady||{},Wn.__shady.assignedSlot=void 0,(Fn=Lr.parentNode(Wn))&&Zr.removeChild.call(Fn,Wn));return Ln},cn.prototype.distributeInsertionPoint=function(Ln,kn){var Hn=Ln.__shady.assignedNodes;Hn&&this.clearAssignedSlots(Ln,!0),Ln.__shady.assignedNodes=[];for(var Bn,Fn=!1,Un=!1,Wn=0,qn=kn.length;Wn<qn;Wn++)(Bn=kn[Wn])&&this.matchesInsertionPoint(Bn,Ln)&&(Bn.__shady._prevAssignedSlot!=Ln&&(Fn=!0),this.distributeNodeInto(Bn,Ln),kn[Wn]=void 0,Un=!0);if(!Un)for(kn=Ln.childNodes,Un=0;Un<kn.length;Un++)Bn=kn[Un],Bn.__shady._prevAssignedSlot!=Ln&&(Fn=!0),this.distributeNodeInto(Bn,Ln);if(Hn){for(Bn=0;Bn<Hn.length;Bn++)Hn[Bn].__shady._prevAssignedSlot=null;Ln.__shady.assignedNodes.length<Hn.length&&(Fn=!0)}this.setDistributedNodesOnInsertionPoint(Ln),Fn&&this._fireSlotChange(Ln)},cn.prototype.clearAssignedSlots=function(Ln,kn){var Hn=Ln.__shady.assignedNodes;if(Hn)for(var Un,Fn=0;Fn<Hn.length;Fn++)Un=Hn[Fn],kn&&(Un.__shady._prevAssignedSlot=Un.__shady.assignedSlot),Un.__shady.assignedSlot===Ln&&(Un.__shady.assignedSlot=null)},cn.prototype.matchesInsertionPoint=function(Ln,kn){return kn=(kn=kn.getAttribute('name'))?kn.trim():'',Ln=(Ln=Ln.getAttribute&&Ln.getAttribute('slot'))?Ln.trim():'',Ln==kn},cn.prototype.distributeNodeInto=function(Ln,kn){kn.__shady.assignedNodes.push(Ln),Ln.__shady.assignedSlot=kn},cn.prototype.setDistributedNodesOnInsertionPoint=function(Ln){var kn=Ln.__shady.assignedNodes;Ln.__shady.distributedNodes=[];for(var Fn,Hn=0;Hn<kn.length&&(Fn=kn[Hn]);Hn++)if(this.isInsertionPoint(Fn)){var Un=Fn.__shady.distributedNodes;if(Un)for(var Wn=0;Wn<Un.length;Wn++)Ln.__shady.distributedNodes.push(Un[Wn])}else Ln.__shady.distributedNodes.push(kn[Hn])},cn.prototype._fireSlotChange=function(Ln){Ln.dispatchEvent(new dn('slotchange')),Ln.__shady.assignedSlot&&this._fireSlotChange(Ln.__shady.assignedSlot)},cn.prototype.isFinalDestination=function(Ln){return!Ln.__shady.assignedSlot},ln.default=cn;var hn={},_n={},un=function(Ln,kn){if(Ln!==_n)throw new TypeError('Illegal constructor');return Ln=document.createDocumentFragment(),Ln.__proto__=un.prototype,Ln._init(kn),Ln};un.prototype=Object.create(DocumentFragment.prototype),mr.extendAll(un.prototype,{_init:function(Ln){this.__localName='ShadyRoot',zr.recordChildNodes(Ln),zr.recordChildNodes(this),Ln.shadowRoot=this,this.host=Ln,this._changePending=this._hasRendered=this._renderPending=!1,this._distributor=new ln.default(this),this.update()},update:function(){var Ln=this;this._renderPending||(this._renderPending=!0,Cr.enqueue(function(){return Ln.render()}))},_getRenderRoot:function(){for(var Ln=this,kn=this;kn;)kn._renderPending&&(Ln=kn),kn=kn._rendererForHost();return Ln},_rendererForHost:function(){var Ln=this.host.getRootNode();if(mr.isShadyRoot(Ln))for(var Fn,kn=this.host.childNodes,Hn=0;Hn<kn.length;Hn++)if(Fn=kn[Hn],this._distributor.isInsertionPoint(Fn))return Ln},render:function(){this._renderPending&&this._getRenderRoot()._render()},_render:function(){this._changePending=this._renderPending=!1,this._skipUpdateInsertionPoints?this._hasRendered||(this._insertionPoints=[]):this.updateInsertionPoints(),this._skipUpdateInsertionPoints=!1,this.distribute(),this.compose(),this._hasRendered=!0},forceRender:function(){this._renderPending=!0,this.render()},distribute:function(){for(var Ln=this._distributor.distribute(),kn=0;kn<Ln.length;kn++)Ln[kn]._render()},updateInsertionPoints:function(){var Ln=this.__insertionPoints;if(Ln)for(var Hn,kn=0;kn<Ln.length;kn++)Hn=Ln[kn],Hn.getRootNode()!==this&&this._distributor.clearAssignedSlots(Hn);for(Ln=this._insertionPoints=this._distributor.getInsertionPoints(),kn=0;kn<Ln.length;kn++)Hn=Ln[kn],Hn.__shady=Hn.__shady||{},zr.recordChildNodes(Hn),zr.recordChildNodes(Hn.parentNode)},get _insertionPoints(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set _insertionPoints(Ln){this.__insertionPoints=Ln},hasInsertionPoint:function(){return this._distributor.hasInsertionPoint()},compose:function(){this._composeTree()},_composeTree:function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var Fn,Un,Ln=this._insertionPoints||[],kn=0,Hn=Ln.length;kn<Hn&&(Fn=Ln[kn]);kn++)Un=Fn.parentNode,Un!==this.host&&Un!==this&&this._updateChildNodes(Un,this._composeNode(Un))},_composeNode:function(Ln){var kn=[];Ln=(Ln.shadyRoot||Ln).childNodes;for(var Fn,Hn=0;Hn<Ln.length;Hn++)if(Fn=Ln[Hn],this._distributor.isInsertionPoint(Fn))for(var qn,Un=Fn.__shady.distributedNodes||(Fn.__shady.distributedNodes=[]),Wn=0;Wn<Un.length;Wn++)qn=Un[Wn],this.isFinalDestination(Fn,qn)&&kn.push(qn);else kn.push(Fn);return kn},isFinalDestination:function(Ln,kn){return this._distributor.isFinalDestination(Ln,kn)},_updateChildNodes:function(Ln,kn){for(var qn,Hn=Lr.childNodes(Ln),Fn=dr.calculateSplices(kn,Hn),Un=0,Wn=0;Un<Fn.length&&(qn=Fn[Un]);Un++){for(var jn,Bn=0;Bn<qn.removed.length&&(jn=qn.removed[Bn]);Bn++)Lr.parentNode(jn)===Ln&&Zr.removeChild.call(Ln,jn),Hn.splice(qn.index+Wn,1);Wn-=qn.addedCount}for(Un=0;Un<Fn.length&&(qn=Fn[Un]);Un++)for(Wn=Hn[qn.index],Bn=qn.index;Bn<qn.index+qn.addedCount;Bn++)jn=kn[Bn],Zr.insertBefore.call(Ln,jn,Wn),Hn.splice(Bn,0,jn)},getInsertionPointTag:function(){return this._distributor.insertionPointTag}}),Fr.patchShadowRootAccessors(un.prototype),hn.ShadyRoot=un,hn.attachShadow=function(Ln,kn){if(!Ln)throw'Must provide a host.';if(!kn)throw'Not enough arguments.';return new un(_n,Ln)};var mn={},yn=function(){this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set};yn.prototype.schedule=function(){var Ln=this;this._scheduled||(this._scheduled=!0,mr.promish.then(function(){Ln.flush()}))},yn.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var Ln=this.takeRecords();Ln.length&&this.callbacks.forEach(function(kn){kn(Ln)})}},yn.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var Ln=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],Ln}return[]};mn.observeChildren=function(Ln,kn){Ln.__shady=Ln.__shady||{},Ln.__shady.observer||(Ln.__shady.observer=new yn),Ln.__shady.observer.callbacks.add(kn);var Hn=Ln.__shady.observer;return{_callback:kn,_observer:Hn,_node:Ln,takeRecords:function(){return Hn.takeRecords()}}},mn.unobserveChildren=function(Ln){var kn=Ln&&Ln._observer;kn&&(kn.callbacks.delete(Ln._callback),kn.callbacks.size||(Ln._node.__shady.observer=null))},mn.filterMutations=function(Ln,kn){var Hn=kn.getRootNode();return Ln.map(function(Fn){var Un=Hn===Fn.target.getRootNode();if(Un&&Fn.addedNodes){if(Un=Array.from(Fn.addedNodes).filter(function(Wn){return Hn===Wn.getRootNode()}),Un.length)return Fn=Object.create(Fn),Object.defineProperty(Fn,'addedNodes',{value:Un,configurable:!0}),Fn;}else if(Un)return Fn}).filter(function(Fn){return Fn})};var bn={};bn.getRootNode=Ro,bn.query=function(Ln,kn,Hn){var Fn=[];return Wo(Ln.childNodes,kn,Hn,Fn),Fn},bn.renderRootNode=function(Ln){Ln=Ln.getRootNode(),mr.isShadyRoot(Ln)&&Ln.render()},bn.setAttribute=function(Ln,kn,Hn){window.ShadyCSS&&'class'===kn&&Ln.ownerDocument===document?window.ShadyCSS.setElementClass(Ln,Hn):(Zr.setAttribute.call(Ln,kn,Hn),Fo(Ln,kn))},bn.removeAttribute=function(Ln,kn){Zr.removeAttribute.call(Ln,kn),Fo(Ln,kn)},bn.insertBefore=function(Ln,kn,Hn){if(Hn){var Fn=xr.getProperty(Hn,'parentNode');if(void 0!==Fn&&Fn!==Ln)throw Error('The ref_node to be inserted before is not a child of this node')}return kn.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(Fn=xr.getProperty(kn,'parentNode'),Ao(kn,Fn)),Co(Ln,kn,Hn)||(Hn&&(Fn=mr.ownerShadyRootForNode(Hn))&&(Hn=Hn.localName===Fn.getInsertionPointTag()?Lo(Hn):Hn),Fn=mr.isShadyRoot(Ln)?Ln.host:Ln,Hn?Zr.insertBefore.call(Fn,kn,Hn):Zr.appendChild.call(Fn,kn)),To(Ln,kn),kn},bn.removeChild=function(Ln,kn){if(kn.parentNode!==Ln)throw Error('The node to be removed is not a child of this node: '+kn);if(!vo(kn)){var Hn=mr.isShadyRoot(Ln)?Ln.host:Ln,Fn=Lr.parentNode(kn);Hn===Fn&&Zr.removeChild.call(Hn,kn)}return To(Ln,null,kn),kn},bn.cloneNode=function(Ln,kn){if('template'==Ln.localName)return Zr.cloneNode.call(Ln,kn);var Hn=Zr.cloneNode.call(Ln,!1);if(kn){Ln=Ln.childNodes,kn=0;for(var Fn;kn<Ln.length;kn++)Fn=Ln[kn].cloneNode(!0),Hn.appendChild(Fn)}return Hn},bn.importNode=Yo;var Sn={},En={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},Cn={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=En[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=zo(this.__target,this.composed)),this.__composedPath},get target(){return $o(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=zo(this.__relatedTarget,!0)),$o(this.currentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.__propagationStopped=this.__immediatePropagationStopped=!0}},vn={focus:!0,blur:!0},Tn=Zo(window.Event),An=Zo(window.CustomEvent),Pn=Zo(window.MouseEvent);Sn.addEventListener=function(Ln,kn,Hn){if(kn){var Fn,Un,Wn;if('object'==typeof Hn?(Fn=!!Hn.capture,Un=!!Hn.once,Wn=!!Hn.passive):(Fn=!!Hn,Wn=Un=!1),kn.__eventWrappers){for(var qn=0;qn<kn.__eventWrappers.length;qn++)if(kn.__eventWrappers[qn].node===this&&kn.__eventWrappers[qn].type===Ln&&kn.__eventWrappers[qn].capture===Fn&&kn.__eventWrappers[qn].once===Un&&kn.__eventWrappers[qn].passive===Wn)return;}else kn.__eventWrappers=[];qn=function(Bn){if(Un&&this.removeEventListener(Ln,kn,Hn),Bn.__target||rr(Bn),Bn.composed||-1<Bn.composedPath().indexOf(this))if(Bn.eventPhase===Event.BUBBLING_PHASE&&Bn.target===Bn.relatedTarget)Bn.stopImmediatePropagation();else return kn(Bn)},kn.__eventWrappers.push({node:this,type:Ln,capture:Fn,once:Un,passive:Wn,wrapperFn:qn}),vn[Ln]?(this.__handlers=this.__handlers||{},this.__handlers[Ln]=this.__handlers[Ln]||{capture:[],bubble:[]},this.__handlers[Ln][Fn?'capture':'bubble'].push(qn)):Zr.addEventListener.call(this,Ln,qn,Hn)}},Sn.removeEventListener=function(Ln,kn,Hn){if(kn){var Fn,Un,Wn;'object'==typeof Hn?(Fn=!!Hn.capture,Un=!!Hn.once,Wn=!!Hn.passive):(Fn=!!Hn,Wn=Un=!1);var qn;if(kn.__eventWrappers)for(var Bn=0;Bn<kn.__eventWrappers.length;Bn++)if(kn.__eventWrappers[Bn].node===this&&kn.__eventWrappers[Bn].type===Ln&&kn.__eventWrappers[Bn].capture===Fn&&kn.__eventWrappers[Bn].once===Un&&kn.__eventWrappers[Bn].passive===Wn){qn=kn.__eventWrappers.splice(Bn,1)[0].wrapperFn,kn.__eventWrappers.length||(kn.__eventWrappers=void 0);break}Zr.removeEventListener.call(this,Ln,qn||kn,Hn),qn&&vn[Ln]&&this.__handlers&&this.__handlers[Ln]&&(Ln=this.__handlers[Ln][Fn?'capture':'bubble'],qn=Ln.indexOf(qn),-1<qn&&Ln.splice(qn,1))}},Sn.patchEvents=function(){window.Event=Tn,window.CustomEvent=An,window.MouseEvent=Pn,or()};var Rn={},xn={addEventListener:Sn.addEventListener,removeEventListener:Sn.removeEventListener,appendChild:function(Ln){return bn.insertBefore(this,Ln)},insertBefore:function(Ln,kn){return bn.insertBefore(this,Ln,kn)},removeChild:function(Ln){return bn.removeChild(this,Ln)},replaceChild:function(Ln,kn){return this.insertBefore(Ln,kn),this.removeChild(kn),Ln},cloneNode:function(Ln){return bn.cloneNode(this,Ln)},getRootNode:function(Ln){return bn.getRootNode(this,Ln)},get isConnected(){var Ln=this.ownerDocument;if(Ln&&Ln.contains&&Ln.contains(this)||(Ln=Ln.documentElement)&&Ln.contains&&Ln.contains(this))return!0;for(Ln=this;Ln&&!(Ln instanceof Document);)Ln=Ln.parentNode||(Ln instanceof hn.ShadyRoot?Ln.host:void 0);return!!(Ln&&Ln instanceof Document)}},In={get assignedSlot(){return sr(this)}},Mn={querySelector:function(Ln){return bn.query(this,function(kn){return mr.matchesSelector(kn,Ln)},function(kn){return!!kn})[0]||null},querySelectorAll:function(Ln){return bn.query(this,function(kn){return mr.matchesSelector(kn,Ln)})}},On={assignedNodes:function(Ln){if('slot'===this.localName)return bn.renderRootNode(this),this.__shady?(Ln&&Ln.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},wn=mr.extendAll({setAttribute:function(Ln,kn){bn.setAttribute(this,Ln,kn)},removeAttribute:function(Ln){bn.removeAttribute(this,Ln)},attachShadow:function(Ln){return hn.attachShadow(this,Ln)},get slot(){return this.getAttribute('slot')},set slot(Ln){this.setAttribute('slot',Ln)},get assignedSlot(){return sr(this)}},Mn,On);Object.defineProperties(wn,Fr.ShadowRootAccessor);var Dn=mr.extendAll({importNode:function(Ln,kn){return bn.importNode(Ln,kn)}},Mn);Object.defineProperties(Dn,{_activeElement:Fr.ActiveElementAccessor.activeElement}),Rn.patchBuiltins=function(){ar(window.Node.prototype,xn),ar(window.Text.prototype,In),ar(window.DocumentFragment.prototype,Mn),ar(window.Element.prototype,wn),ar(window.Document.prototype,Dn),window.HTMLSlotElement&&ar(window.HTMLSlotElement.prototype,On),mr.settings.hasDescriptors&&(Fr.patchAccessors(window.Node.prototype),Fr.patchAccessors(window.Text.prototype),Fr.patchAccessors(window.DocumentFragment.prototype),Fr.patchAccessors(window.Element.prototype),Fr.patchAccessors((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),Fr.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&Fr.patchAccessors(window.HTMLSlotElement.prototype))},mr.settings.inUse&&(window.ShadyDOM={inUse:mr.settings.inUse,patch:function(Ln){return Ln},isShadyRoot:mr.isShadyRoot,enqueue:Cr.enqueue,flush:Cr.flush,settings:mr.settings,filterMutations:mn.filterMutations,observeChildren:mn.observeChildren,unobserveChildren:mn.unobserveChildren,nativeMethods:Zr,nativeTree:Lr},Sn.patchEvents(),Rn.patchBuiltins(),window.ShadowRoot=hn.ShadyRoot)}.call(void 0),function(){'use strict';function Mt(Fo){var Uo=ro.has(Fo);return Fo=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Fo),!Uo&&Fo}function Ot(Fo){var Uo=Fo.isConnected;if(void 0!==Uo)return Uo;for(;Fo&&!(Fo.__CE_isImportDocument||Fo instanceof Document);)Fo=Fo.parentNode||(window.ShadowRoot&&Fo instanceof ShadowRoot?Fo.host:void 0);return Fo&&(Fo.__CE_isImportDocument||Fo instanceof Document)}function wt(Fo,Uo){for(;Uo&&Uo!==Fo&&!Uo.nextSibling;)Uo=Uo.parentNode;return Uo&&Uo!==Fo?Uo.nextSibling:null}function Dt(Fo,Uo,Wo){Wo=Wo?Wo:new Set;for(var qo=Fo;qo;){if(qo.nodeType===Node.ELEMENT_NODE){var Bo=qo;Uo(Bo);var jo=Bo.localName;if('link'===jo&&'import'===Bo.getAttribute('rel')){if(qo=Bo.import,qo instanceof Node&&!Wo.has(qo))for(Wo.add(qo),qo=qo.firstChild;qo;qo=qo.nextSibling)Dt(qo,Uo,Wo);qo=wt(Fo,Bo);continue}else if('template'===jo){qo=wt(Fo,Bo);continue}if(Bo=Bo.__CE_shadowRoot)for(Bo=Bo.firstChild;Bo;Bo=Bo.nextSibling)Dt(Bo,Uo,Wo)}qo=qo.firstChild?qo.firstChild:wt(Fo,qo)}}function Lt(Fo,Uo,Wo){Fo[Uo]=Wo}function kt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Ht(Fo,Uo,Wo){Fo.a.set(Uo,Wo),Fo.f.set(Wo.constructor,Wo)}function Ft(Fo,Uo){Fo.b=!0,Fo.c.push(Uo)}function Ut(Fo,Uo){Fo.b&&Dt(Uo,function(Wo){return Wt(Fo,Wo)})}function Wt(Fo,Uo){if(Fo.b&&!Uo.__CE_patched){Uo.__CE_patched=!0;for(var Wo=0;Wo<Fo.c.length;Wo++)Fo.c[Wo](Uo)}}function qt(Fo,Uo){var Wo=[];for(Dt(Uo,function(Bo){return Wo.push(Bo)}),Uo=0;Uo<Wo.length;Uo++){var qo=Wo[Uo];qo.__CE_state===no.custom?Fo.connectedCallback(qo):Gt(Fo,qo)}}function Bt(Fo,Uo){var Wo=[];for(Dt(Uo,function(Bo){return Wo.push(Bo)}),Uo=0;Uo<Wo.length;Uo++){var qo=Wo[Uo];qo.__CE_state===no.custom&&Fo.disconnectedCallback(qo)}}function jt(Fo,Uo,Wo){Wo=Wo?Wo:new Set;var qo=[];if(Dt(Uo,function(Bo){if('link'===Bo.localName&&'import'===Bo.getAttribute('rel')){var jo=Bo.import;jo instanceof Node&&'complete'===jo.readyState?(jo.__CE_isImportDocument=!0,jo.__CE_hasRegistry=!0):Bo.addEventListener('load',function(){var Go=Bo.import;Go.__CE_documentLoadHandled||(Go.__CE_documentLoadHandled=!0,Go.__CE_isImportDocument=!0,Go.__CE_hasRegistry=!0,new Set(Wo),Wo.delete(Go),jt(Fo,Go,Wo))})}else qo.push(Bo)},Wo),Fo.b)for(Uo=0;Uo<qo.length;Uo++)Wt(Fo,qo[Uo]);for(Uo=0;Uo<qo.length;Uo++)Gt(Fo,qo[Uo])}function Gt(Fo,Uo){if(void 0===Uo.__CE_state){var Wo=Fo.a.get(Uo.localName);if(Wo){Wo.constructionStack.push(Uo);var qo=Wo.constructor;try{try{if(new qo!==Uo)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{Wo.constructionStack.pop()}}catch(Go){throw Uo.__CE_state=no.failed,Go}if(Uo.__CE_state=no.custom,Uo.__CE_definition=Wo,Wo.attributeChangedCallback)for(Wo=Wo.observedAttributes,qo=0;qo<Wo.length;qo++){var Bo=Wo[qo],jo=Uo.getAttribute(Bo);null!==jo&&Fo.attributeChangedCallback(Uo,Bo,null,jo,null)}Ot(Uo)&&Fo.connectedCallback(Uo)}}}function Xt(Fo,Uo){this.c=Fo,this.a=Uo,this.b=void 0,jt(this.c,this.a),'loading'===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function Vt(Fo){Fo.b&&Fo.b.disconnect()}function Kt(){var Fo=this;this.b=this.a=void 0,this.c=new Promise(function(Uo){Fo.b=Uo,Fo.a&&Uo(Fo.a)})}function Yt(Fo){if(Fo.a)throw Error('Already resolved.');Fo.a=void 0,Fo.b&&Fo.b(void 0)}function zt(Fo){this.f=!1,this.a=Fo,this.h=new Map,this.g=function(Uo){return Uo()},this.b=!1,this.c=[],this.j=new Xt(Fo,document)}function $t(){var Fo=ko;window.HTMLElement=function(){function Uo(){var Wo=this.constructor,qo=Fo.f.get(Wo);if(!qo)throw Error('The custom element being constructed was not registered with `customElements`.');var Bo=qo.constructionStack;if(!Bo.length)return Bo=so.call(document,qo.localName),Object.setPrototypeOf(Bo,Wo.prototype),Bo.__CE_state=no.custom,Bo.__CE_definition=qo,Wt(Fo,Bo),Bo;var qo=Bo.length-1,jo=Bo[qo];if(jo===oo)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return Bo[qo]=oo,Object.setPrototypeOf(jo,Wo.prototype),Wt(Fo,jo),jo}return Uo.prototype=Oo.prototype,Uo}()}function Zt(Fo,Uo,Wo){Uo.prepend=function(){for(var Bo=[],jo=0;jo<arguments.length;++jo)Bo[jo-0]=arguments[jo];jo=Bo.filter(function(Xo){return Xo instanceof Node&&Ot(Xo)}),Wo.i.apply(this,Bo);for(var Go=0;Go<jo.length;Go++)Bt(Fo,jo[Go]);if(Ot(this))for(jo=0;jo<Bo.length;jo++)Go=Bo[jo],Go instanceof Element&&qt(Fo,Go)},Uo.append=function(){for(var Bo=[],jo=0;jo<arguments.length;++jo)Bo[jo-0]=arguments[jo];jo=Bo.filter(function(Xo){return Xo instanceof Node&&Ot(Xo)}),Wo.append.apply(this,Bo);for(var Go=0;Go<jo.length;Go++)Bt(Fo,jo[Go]);if(Ot(this))for(jo=0;jo<Bo.length;jo++)Go=Bo[jo],Go instanceof Element&&qt(Fo,Go)}}function Qt(){var Fo=ko;Lt(Document.prototype,'createElement',function(Uo){if(this.__CE_hasRegistry){var Wo=Fo.a.get(Uo);if(Wo)return new Wo.constructor}return Uo=so.call(this,Uo),Wt(Fo,Uo),Uo}),Lt(Document.prototype,'importNode',function(Uo,Wo){return Uo=lo.call(this,Uo,Wo),this.__CE_hasRegistry?jt(Fo,Uo):Ut(Fo,Uo),Uo}),Lt(Document.prototype,'createElementNS',function(Uo,Wo){if(this.__CE_hasRegistry&&(null===Uo||'http://www.w3.org/1999/xhtml'===Uo)){var qo=Fo.a.get(Wo);if(qo)return new qo.constructor}return Uo=ao.call(this,Uo,Wo),Wt(Fo,Uo),Uo}),Zt(Fo,Document.prototype,{i:io,append:po})}function Jt(){function Fo(Wo,qo){Object.defineProperty(Wo,'textContent',{enumerable:qo.enumerable,configurable:!0,get:qo.get,set:function(Bo){if(this.nodeType===Node.TEXT_NODE)qo.set.call(this,Bo);else{var jo;if(this.firstChild){var Go=this.childNodes,Xo=Go.length;if(0<Xo&&Ot(this))for(var jo=Array(Xo),Vo=0;Vo<Xo;Vo++)jo[Vo]=Go[Vo]}if(qo.set.call(this,Bo),jo)for(Bo=0;Bo<jo.length;Bo++)Bt(Uo,jo[Bo])}}})}var Uo=ko;Lt(Node.prototype,'insertBefore',function(Wo,qo){if(Wo instanceof DocumentFragment){var Bo=Array.prototype.slice.apply(Wo.childNodes);if(Wo=_o.call(this,Wo,qo),Ot(this))for(qo=0;qo<Bo.length;qo++)qt(Uo,Bo[qo]);return Wo}return Bo=Ot(Wo),qo=_o.call(this,Wo,qo),Bo&&Bt(Uo,Wo),Ot(this)&&qt(Uo,Wo),qo}),Lt(Node.prototype,'appendChild',function(Wo){if(Wo instanceof DocumentFragment){var qo=Array.prototype.slice.apply(Wo.childNodes);if(Wo=ho.call(this,Wo),Ot(this))for(var Bo=0;Bo<qo.length;Bo++)qt(Uo,qo[Bo]);return Wo}return qo=Ot(Wo),Bo=ho.call(this,Wo),qo&&Bt(Uo,Wo),Ot(this)&&qt(Uo,Wo),Bo}),Lt(Node.prototype,'cloneNode',function(Wo){return Wo=co.call(this,Wo),this.ownerDocument.__CE_hasRegistry?jt(Uo,Wo):Ut(Uo,Wo),Wo}),Lt(Node.prototype,'removeChild',function(Wo){var qo=Ot(Wo),Bo=uo.call(this,Wo);return qo&&Bt(Uo,Wo),Bo}),Lt(Node.prototype,'replaceChild',function(Wo,qo){if(Wo instanceof DocumentFragment){var Bo=Array.prototype.slice.apply(Wo.childNodes);if(Wo=mo.call(this,Wo,qo),Ot(this))for(Bt(Uo,qo),qo=0;qo<Bo.length;qo++)qt(Uo,Bo[qo]);return Wo}var Bo=Ot(Wo),jo=mo.call(this,Wo,qo),Go=Ot(this);return Go&&Bt(Uo,qo),Bo&&Bt(Uo,Wo),Go&&qt(Uo,Wo),jo}),yo&&yo.get?Fo(Node.prototype,yo):Ft(Uo,function(Wo){Fo(Wo,{enumerable:!0,configurable:!0,get:function(){for(var qo=[],Bo=0;Bo<this.childNodes.length;Bo++)qo.push(this.childNodes[Bo].textContent);return qo.join('')},set:function(qo){for(;this.firstChild;)uo.call(this,this.firstChild);ho.call(this,document.createTextNode(qo))}})})}function eo(Fo){var Uo=Element.prototype;Uo.before=function(){for(var qo=[],Bo=0;Bo<arguments.length;++Bo)qo[Bo-0]=arguments[Bo];Bo=qo.filter(function(Go){return Go instanceof Node&&Ot(Go)}),Ro.apply(this,qo);for(var jo=0;jo<Bo.length;jo++)Bt(Fo,Bo[jo]);if(Ot(this))for(Bo=0;Bo<qo.length;Bo++)jo=qo[Bo],jo instanceof Element&&qt(Fo,jo)},Uo.after=function(){for(var qo=[],Bo=0;Bo<arguments.length;++Bo)qo[Bo-0]=arguments[Bo];Bo=qo.filter(function(Go){return Go instanceof Node&&Ot(Go)}),xo.apply(this,qo);for(var jo=0;jo<Bo.length;jo++)Bt(Fo,Bo[jo]);if(Ot(this))for(Bo=0;Bo<qo.length;Bo++)jo=qo[Bo],jo instanceof Element&&qt(Fo,jo)},Uo.replaceWith=function(){for(var qo=[],Bo=0;Bo<arguments.length;++Bo)qo[Bo-0]=arguments[Bo];var Bo=qo.filter(function(Xo){return Xo instanceof Node&&Ot(Xo)}),jo=Ot(this);Io.apply(this,qo);for(var Go=0;Go<Bo.length;Go++)Bt(Fo,Bo[Go]);if(jo)for(Bt(Fo,this),Bo=0;Bo<qo.length;Bo++)jo=qo[Bo],jo instanceof Element&&qt(Fo,jo)},Uo.remove=function(){var Wo=Ot(this);Mo.call(this),Wo&&Bt(Fo,this)}}function to(){function Fo(Bo,jo){Object.defineProperty(Bo,'innerHTML',{enumerable:jo.enumerable,configurable:!0,get:jo.get,set:function(Go){var Xo=Array.prototype.slice.apply(this.childNodes);if(jo.set.call(this,Go),Ot(this))for(var Vo=0;Vo<Xo.length;Vo++)Bt(Wo,Xo[Vo]);return this.ownerDocument.__CE_hasRegistry?jt(Wo,this):Ut(Wo,this),Go}})}function Uo(Bo,jo){Lt(Bo,'insertAdjacentElement',function(Go,Xo){var Vo=Ot(Xo);return Go=jo.call(this,Go,Xo),Vo&&Bt(Wo,Xo),Ot(Go)&&qt(Wo,Xo),Go})}var Wo=ko;if(go?Lt(Element.prototype,'attachShadow',function(Bo){return this.__CE_shadowRoot=Bo=go.call(this,Bo)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),fo&&fo.get)Fo(Element.prototype,fo);else if(wo&&wo.get)Fo(HTMLElement.prototype,wo);else{var qo=so.call(document,'div');Ft(Wo,function(Bo){Fo(Bo,{enumerable:!0,configurable:!0,get:function(){return co.call(this,!0).innerHTML},set:function(jo){var Go='template'===this.localName?this.content:this;for(qo.innerHTML=jo;0<Go.childNodes.length;)uo.call(Go,Go.childNodes[0]);for(;0<qo.childNodes.length;)ho.call(Go,qo.childNodes[0])}})})}Lt(Element.prototype,'setAttribute',function(Bo,jo){if(this.__CE_state!==no.custom)return bo.call(this,Bo,jo);var Go=No.call(this,Bo);bo.call(this,Bo,jo),jo=No.call(this,Bo),Go!==jo&&Wo.attributeChangedCallback(this,Bo,Go,jo,null)}),Lt(Element.prototype,'setAttributeNS',function(Bo,jo,Go){if(this.__CE_state!==no.custom)return Co.call(this,Bo,jo,Go);var Xo=Eo.call(this,Bo,jo);Co.call(this,Bo,jo,Go),Go=Eo.call(this,Bo,jo),Xo!==Go&&Wo.attributeChangedCallback(this,jo,Xo,Go,Bo)}),Lt(Element.prototype,'removeAttribute',function(Bo){if(this.__CE_state!==no.custom)return So.call(this,Bo);var jo=No.call(this,Bo);So.call(this,Bo),null!==jo&&Wo.attributeChangedCallback(this,Bo,jo,null,null)}),Lt(Element.prototype,'removeAttributeNS',function(Bo,jo){if(this.__CE_state!==no.custom)return vo.call(this,Bo,jo);var Go=Eo.call(this,Bo,jo);vo.call(this,Bo,jo);var Xo=Eo.call(this,Bo,jo);Go!==Xo&&Wo.attributeChangedCallback(this,jo,Go,Xo,Bo)}),Do?Uo(HTMLElement.prototype,Do):To?Uo(Element.prototype,To):console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.'),Zt(Wo,Element.prototype,{i:Ao,append:Po}),eo(Wo)}var oo=new function(){},ro=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' ')),no={custom:1,failed:2};kt.prototype.connectedCallback=function(Fo){var Uo=Fo.__CE_definition;Uo.connectedCallback&&Uo.connectedCallback.call(Fo)},kt.prototype.disconnectedCallback=function(Fo){var Uo=Fo.__CE_definition;Uo.disconnectedCallback&&Uo.disconnectedCallback.call(Fo)},kt.prototype.attributeChangedCallback=function(Fo,Uo,Wo,qo,Bo){var jo=Fo.__CE_definition;jo.attributeChangedCallback&&-1<jo.observedAttributes.indexOf(Uo)&&jo.attributeChangedCallback.call(Fo,Uo,Wo,qo,Bo)},Xt.prototype.f=function(Fo){var Uo=this.a.readyState;for('interactive'!==Uo&&'complete'!==Uo||Vt(this),Uo=0;Uo<Fo.length;Uo++)for(var Wo=Fo[Uo].addedNodes,qo=0;qo<Wo.length;qo++)jt(this.c,Wo[qo])},zt.prototype.l=function(Fo,Uo){var Wo=this;if(!(Uo instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!Mt(Fo))throw new SyntaxError('The element name \''+Fo+'\' is not valid.');if(this.a.a.get(Fo))throw Error('A custom element with name \''+Fo+'\' has already been defined.');if(this.f)throw Error('A custom element is already being defined.');this.f=!0;var qo,Bo,jo,Go,Xo;try{var Vo=function(Yo){var zo=Ko[Yo];if(void 0!==zo&&!(zo instanceof Function))throw Error('The \''+Yo+'\' callback must be a function.');return zo},Ko=Uo.prototype;if(!(Ko instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');qo=Vo('connectedCallback'),Bo=Vo('disconnectedCallback'),jo=Vo('adoptedCallback'),Go=Vo('attributeChangedCallback'),Xo=Uo.observedAttributes||[]}catch(Yo){return}finally{this.f=!1}Ht(this.a,Fo,{localName:Fo,constructor:Uo,connectedCallback:qo,disconnectedCallback:Bo,adoptedCallback:jo,attributeChangedCallback:Go,observedAttributes:Xo,constructionStack:[]}),this.c.push(Fo),this.b||(this.b=!0,this.g(function(){if(!1!==Wo.b)for(Wo.b=!1,jt(Wo.a,document);0<Wo.c.length;){var Yo=Wo.c.shift();(Yo=Wo.h.get(Yo))&&Yt(Yo)}}))},zt.prototype.get=function(Fo){if(Fo=this.a.a.get(Fo))return Fo.constructor},zt.prototype.o=function(Fo){if(!Mt(Fo))return Promise.reject(new SyntaxError('\''+Fo+'\' is not a valid custom element name.'));var Uo=this.h.get(Fo);return Uo?Uo.c:(Uo=new Kt,this.h.set(Fo,Uo),this.a.a.get(Fo)&&-1===this.c.indexOf(Fo)&&Yt(Uo),Uo.c)},zt.prototype.m=function(Fo){Vt(this.j);var Uo=this.g;this.g=function(Wo){return Fo(function(){return Uo(Wo)})}},window.CustomElementRegistry=zt,zt.prototype.define=zt.prototype.l,zt.prototype.get=zt.prototype.get,zt.prototype.whenDefined=zt.prototype.o,zt.prototype.polyfillWrapFlushCallback=zt.prototype.m;var so=window.Document.prototype.createElement,ao=window.Document.prototype.createElementNS,lo=window.Document.prototype.importNode,io=window.Document.prototype.prepend,po=window.Document.prototype.append,co=window.Node.prototype.cloneNode,ho=window.Node.prototype.appendChild,_o=window.Node.prototype.insertBefore,uo=window.Node.prototype.removeChild,mo=window.Node.prototype.replaceChild,yo=Object.getOwnPropertyDescriptor(window.Node.prototype,'textContent'),go=window.Element.prototype.attachShadow,fo=Object.getOwnPropertyDescriptor(window.Element.prototype,'innerHTML'),No=window.Element.prototype.getAttribute,bo=window.Element.prototype.setAttribute,So=window.Element.prototype.removeAttribute,Eo=window.Element.prototype.getAttributeNS,Co=window.Element.prototype.setAttributeNS,vo=window.Element.prototype.removeAttributeNS,To=window.Element.prototype.insertAdjacentElement,Ao=window.Element.prototype.prepend,Po=window.Element.prototype.append,Ro=window.Element.prototype.before,xo=window.Element.prototype.after,Io=window.Element.prototype.replaceWith,Mo=window.Element.prototype.remove,Oo=window.HTMLElement,wo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),Do=window.HTMLElement.prototype.insertAdjacentElement,Lo=window.customElements;if(!Lo||Lo.forcePolyfill||'function'!=typeof Lo.define||'function'!=typeof Lo.get){var ko=new kt;$t(),Qt(),Jt(),to(),document.__CE_hasRegistry=!0;var Ho=new zt(ko);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:Ho})}}.call(self);let Te={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Ae='{',Pe='}',Re={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},xe='--',Oe=!(window.ShadyDOM&&window.ShadyDOM.inUse),we=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?ie(window.ShadyCSS):window.WebComponents&&ie(window.WebComponents.flags);let Le=null,ke={VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:'(?:^|[^.#[:])',HOST_SUFFIX:'($|[.:[\\s>+~])'};const He='style-scope';class Fe{get SCOPE_NAME(){return He}dom(Mt,Ot,wt){Mt.__styleScoped?Mt.__styleScoped=null:this._transformDom(Mt,Ot||'',wt)}_transformDom(Mt,Ot,wt){Mt.nodeType===Node.ELEMENT_NODE&&this.element(Mt,Ot,wt);let Dt='template'===Mt.localName?(Mt.content||Mt._content).childNodes:Mt.children||Mt.childNodes;if(Dt)for(let Lt=0;Lt<Dt.length;Lt++)this._transformDom(Dt[Lt],Ot,wt)}element(Mt,Ot,wt){if(Ot)if(Mt.classList)wt?(Mt.classList.remove(He),Mt.classList.remove(Ot)):(Mt.classList.add(He),Mt.classList.add(Ot));else if(Mt.getAttribute){let Dt=Mt.getAttribute('class');if(!wt){let Lt=(Dt?Dt+' ':'')+He+' '+Ot;Se(Mt,Lt)}else if(Dt){let Lt=Dt.replace(He,'').replace(Ot,'');Se(Mt,Lt)}}}elementStyles(Mt,Ot,wt){let Dt=Mt.__cssBuild,Lt=Oe||'shady'===Dt?pe(Ot,wt):this.css(Ot,Mt.is,Mt.extends,wt)+'\n\n';return Lt.trim()}css(Mt,Ot,wt,Dt){let Lt=this._calcHostScope(Ot,wt);Ot=this._calcElementScope(Ot);let kt=this;return pe(Mt,function(Ht){Ht.isScoped||(kt.rule(Ht,Ot,Lt),Ht.isScoped=!0),Dt&&Dt(Ht,Ot,Lt)})}_calcElementScope(Mt){return Mt?'.'+Mt:''}_calcHostScope(Mt,Ot){return Ot?'[is='+Mt+']':Mt}rule(Mt,Ot,wt){this._transformRule(Mt,this._transformComplexSelector,Ot,wt)}_transformRule(Mt,Ot,wt,Dt){Mt.selector=Mt.transformedSelector=this._transformRuleCss(Mt,Ot,wt,Dt)}_transformRuleCss(Mt,Ot,wt,Dt){let Lt=Mt.selector.split(qe);if(!_e(Mt))for(let Ft,kt=0,Ht=Lt.length;kt<Ht&&(Ft=Lt[kt]);kt++)Lt[kt]=Ot.call(this,Ft,wt,Dt);return Lt.join(qe)}_transformComplexSelector(Mt,Ot,wt){let Dt=!1;return Mt=Mt.trim(),Mt=Mt.replace(Ue,(Lt,kt,Ht)=>`:${kt}(${Ht.replace(/\s/g,'')})`),Mt=Mt.replace(Ke,`${Ge} $1`),Mt=Mt.replace(Be,(Lt,kt,Ht)=>{if(!Dt){let Ft=this._transformCompoundSelector(Ht,kt,Ot,wt);Dt=Dt||Ft.stop,kt=Ft.combinator,Ht=Ft.value}return kt+Ht}),Mt}_transformCompoundSelector(Mt,Ot,wt,Dt){let Lt=Mt.indexOf(Ve);0<=Mt.indexOf(Ge)?Mt=this._transformHostSelector(Mt,Dt):0!==Lt&&(Mt=wt?this._transformSimpleSelector(Mt,wt):Mt);let kt=!1;0<=Lt&&(Ot='',kt=!0);let Ht;return kt&&(Ht=!0,kt&&(Mt=Mt.replace(ze,(Ft,Ut)=>` > ${Ut}`))),Mt=Mt.replace($e,(Ft,Ut,Wt)=>`[dir="${Wt}"] ${Ut}, ${Ut}[dir="${Wt}"]`),{value:Mt,combinator:Ot,stop:Ht}}_transformSimpleSelector(Mt,Ot){let wt=Mt.split(Qe);return wt[0]+=Ot,wt.join(Qe)}_transformHostSelector(Mt,Ot){let wt=Mt.match(Ye),Dt=wt&&wt[2].trim()||'';if(Dt){if(!Dt[0].match(je)){let Lt=Dt.split(je)[0];return Lt===Ot?Dt:'should_not_match'}return Mt.replace(Ye,function(Lt,kt,Ht){return Ot+Ht})}return Mt.replace(Ge,Ot)}documentRule(Mt){Mt.selector=Mt.parsedSelector,this.normalizeRootSelector(Mt),this._transformRule(Mt,this._transformDocumentSelector)}normalizeRootSelector(Mt){Mt.selector===':root'&&(Mt.selector='html')}_transformDocumentSelector(Mt){return Mt.match(Ve)?this._transformComplexSelector(Mt,We):this._transformSimpleSelector(Mt.trim(),We)}}let Ue=/:(nth[-\w]+)\(([^)]+)\)/,We=`:not(.${He})`,qe=',',Be=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,je=/[[.:#*]/,Ge=':host',Ve='::slotted',Ke=/^(::slotted)/,Ye=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ze=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,$e=/(.*):dir\((?:(ltr|rtl))\)/,Qe=':';var tt=new Fe,ot={};const rt=Promise.resolve();class nt{static get(Mt){return Mt.__styleInfo}static set(Mt,Ot){return Mt.__styleInfo=Ot,Ot}static invalidate(Mt){ot[Mt]&&(ot[Mt]._applyShimInvalid=!0)}static startValidating(Mt){const Ot=ot[Mt];Ot._validating||(Ot._validating=!0,rt.then(()=>{Ot._applyShimInvalid=!1,Ot._validating=!1}))}constructor(Mt,Ot,wt,Dt,Lt,kt){this.styleRules=Mt||null,this.placeholder=Ot||null,this.ownStylePropertyNames=wt||[],this.overrideStyleProperties=null,this.elementName=Dt||'',this.cssBuild=kt||'',this.typeExtension=Lt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const st=window.Element.prototype,lt=st.matches||st.matchesSelector||st.mozMatchesSelector||st.msMatchesSelector||st.oMatchesSelector||st.webkitMatchesSelector,dt=navigator.userAgent.match('Trident'),it='x-scope';class pt{get XSCOPE_NAME(){return it}decorateStyles(Mt){let Ot=this,wt={},Dt=[],Lt=0;ue(Mt,function(Ht){Ot.decorateRule(Ht),Ht.index=Lt++,Ot.collectPropertiesInCssText(Ht.propertyInfo.cssText,wt)},function(Ft){Dt.push(Ft)}),Mt._keyframes=Dt;let kt=[];for(let Ht in wt)kt.push(Ht);return kt}decorateRule(Mt){if(Mt.propertyInfo)return Mt.propertyInfo;let Ot={},wt={},Dt=this.collectProperties(Mt,wt);return Dt&&(Ot.properties=wt,Mt.rules=null),Ot.cssText=this.collectCssText(Mt),Mt.propertyInfo=Ot,Ot}collectProperties(Mt,Ot){let wt=Mt.propertyInfo;if(!wt){let Dt,Lt=ke.VAR_ASSIGN,kt=Mt.parsedCssText,Ht,Ft;for(;Dt=Lt.exec(kt);)Ht=(Dt[2]||Dt[3]).trim(),('inherit'!==Ht||'unset'!==Ht)&&(Ot[Dt[1].trim()]=Ht),Ft=!0;return Ft}else if(wt.properties)return Object.assign(Ot,wt.properties),!0}collectCssText(Mt){return this.collectConsumingCssText(Mt.parsedCssText)}collectConsumingCssText(Mt){return Mt.replace(ke.BRACKETED,'').replace(ke.VAR_ASSIGN,'')}collectPropertiesInCssText(Mt,Ot){for(let wt,Dt;wt=ke.VAR_CONSUMED.exec(Mt);)Dt=wt[1],':'!==wt[2]&&(Ot[Dt]=!0)}reify(Mt){let Ot=Object.getOwnPropertyNames(Mt);for(let Dt,wt=0;wt<Ot.length;wt++)Dt=Ot[wt],Mt[Dt]=this.valueForProperty(Mt[Dt],Mt)}valueForProperty(Mt,Ot){if(Mt)if(0<=Mt.indexOf(';'))Mt=this.valueForProperties(Mt,Ot);else{let wt=this;Mt=be(Mt,function(Lt,kt,Ht,Ft){if(!kt)return Lt+Ft;let Ut=wt.valueForProperty(Ot[kt],Ot);return Ut&&'initial'!==Ut?'apply-shim-inherit'===Ut&&(Ut='inherit'):Ut=wt.valueForProperty(Ot[Ht]||Ht,Ot)||Ht,Lt+(Ut||'')+Ft})}return Mt&&Mt.trim()||''}valueForProperties(Mt,Ot){let wt=Mt.split(';');for(let Lt,kt,Dt=0;Dt<wt.length;Dt++)if(Lt=wt[Dt]){if(ke.MIXIN_MATCH.lastIndex=0,kt=ke.MIXIN_MATCH.exec(Lt),kt)Lt=this.valueForProperty(Ot[kt[1]],Ot);else{let Ht=Lt.indexOf(':');if(-1!==Ht){let Ft=Lt.substring(Ht);Ft=Ft.trim(),Ft=this.valueForProperty(Ft,Ot)||Ft,Lt=Lt.substring(0,Ht)+Ft}}wt[Dt]=Lt&&Lt.lastIndexOf(';')===Lt.length-1?Lt.slice(0,-1):Lt||''}return wt.join(';')}applyProperties(Mt,Ot){let wt='';Mt.propertyInfo||this.decorateRule(Mt),Mt.propertyInfo.cssText&&(wt=this.valueForProperties(Mt.propertyInfo.cssText,Ot)),Mt.cssText=wt}applyKeyframeTransforms(Mt,Ot){let wt=Mt.cssText,Dt=Mt.cssText;if(null==Mt.hasAnimations&&(Mt.hasAnimations=ke.ANIMATION_MATCH.test(wt)),Mt.hasAnimations){let Lt;if(null==Mt.keyframeNamesToTransform)for(let kt in Mt.keyframeNamesToTransform=[],Ot)Lt=Ot[kt],Dt=Lt(wt),wt!==Dt&&(wt=Dt,Mt.keyframeNamesToTransform.push(kt));else{for(let kt=0;kt<Mt.keyframeNamesToTransform.length;++kt)Lt=Ot[Mt.keyframeNamesToTransform[kt]],wt=Lt(wt);Dt=wt}}Mt.cssText=Dt}propertyDataFromStyles(Mt,Ot){let wt={},Dt=this,Lt=[];return ue(Mt,function(kt){kt.propertyInfo||Dt.decorateRule(kt);let Ht=kt.transformedSelector||kt.parsedSelector;Ot&&kt.propertyInfo.properties&&Ht&&lt.call(Ot,Ht)&&(Dt.collectProperties(kt,wt),Ee(kt.index,Lt))},null,!0),{properties:wt,key:Lt}}whenHostOrRootRule(Mt,Ot,wt,Dt){if(Ot.propertyInfo||this.decorateRule(Ot),!!Ot.propertyInfo.properties){let Lt=Mt.is?tt._calcHostScope(Mt.is,Mt.extends):'html',kt=Ot.parsedSelector,Ht=':host > *'===kt||'html'===kt,Ft=0===kt.indexOf(':host')&&!Ht;if('shady'===wt&&(Ht=kt===Lt+' > *.'+Lt||-1!==kt.indexOf('html'),Ft=!Ht&&0===kt.indexOf(Lt)),'shadow'===wt&&(Ht=':host > *'===kt||'html'===kt,Ft=Ft&&!Ht),Ht||Ft){let Ut=Lt;Ft&&(Oe&&!Ot.transformedSelector&&(Ot.transformedSelector=tt._transformRuleCss(Ot,tt._transformComplexSelector,tt._calcElementScope(Mt.is),Lt)),Ut=Ot.transformedSelector||Lt),Dt({selector:Ut,isHost:Ft,isRoot:Ht})}}}hostAndRootPropertiesForScope(Mt,Ot){let wt={},Dt={},Lt=this,kt=Ot&&Ot.__cssBuild;return ue(Ot,function(Ht){Lt.whenHostOrRootRule(Mt,Ht,kt,function(Ft){let Ut=Mt._element||Mt;lt.call(Ut,Ft.selector)&&(Ft.isHost?Lt.collectProperties(Ht,wt):Lt.collectProperties(Ht,Dt))})},null,!0),{rootProps:Dt,hostProps:wt}}transformStyles(Mt,Ot,wt){let Dt=this,Lt=tt._calcHostScope(Mt.is,Mt.extends),kt=Mt.extends?'\\'+Lt.slice(0,-1)+'\\]':Lt,Ht=new RegExp(ke.HOST_PREFIX+kt+ke.HOST_SUFFIX),Ft=nt.get(Mt).styleRules,Ut=this._elementKeyframeTransforms(Mt,Ft,wt);return tt.elementStyles(Mt,Ft,function(Wt){Dt.applyProperties(Wt,Ot),Oe||_e(Wt)||!Wt.cssText||(Dt.applyKeyframeTransforms(Wt,Ut),Dt._scopeSelector(Wt,Ht,Lt,wt))})}_elementKeyframeTransforms(Mt,Ot,wt){let Dt=Ot._keyframes,Lt={};if(!Oe&&Dt)for(let kt=0,Ht=Dt[kt];kt<Dt.length;Ht=Dt[++kt])this._scopeKeyframes(Ht,wt),Lt[Ht.keyframesName]=this._keyframesRuleTransformer(Ht);return Lt}_keyframesRuleTransformer(Mt){return function(Ot){return Ot.replace(Mt.keyframesNameRx,Mt.transformedKeyframesName)}}_scopeKeyframes(Mt,Ot){Mt.keyframesNameRx=new RegExp(Mt.keyframesName,'g'),Mt.transformedKeyframesName=Mt.keyframesName+'-'+Ot,Mt.transformedSelector=Mt.transformedSelector||Mt.selector,Mt.selector=Mt.transformedSelector.replace(Mt.keyframesName,Mt.transformedKeyframesName)}_scopeSelector(Mt,Ot,wt,Dt){Mt.transformedSelector=Mt.transformedSelector||Mt.selector;let Lt=Mt.transformedSelector,kt='.'+Dt,Ht=Lt.split(',');for(let Wt,Ft=0,Ut=Ht.length;Ft<Ut&&(Wt=Ht[Ft]);Ft++)Ht[Ft]=Wt.match(Ot)?Wt.replace(wt,kt):kt+' '+Wt;Mt.selector=Ht.join(',')}applyElementScopeSelector(Mt,Ot,wt){let Dt=Mt.getAttribute('class')||'',Lt=Dt;wt&&(Lt=Dt.replace(new RegExp('\\s*'+it+'\\s*'+wt+'\\s*','g'),' ')),Lt+=(Lt?' ':'')+it+' '+Ot,Dt!==Lt&&Se(Mt,Lt)}applyElementStyle(Mt,Ot,wt,Dt){let Lt=Dt?Dt.textContent||'':this.transformStyles(Mt,Ot,wt),kt=nt.get(Mt),Ht=kt.customStyle;return Ht&&!Oe&&Ht!==Dt&&(Ht._useCount--,0>=Ht._useCount&&Ht.parentNode&&Ht.parentNode.removeChild(Ht)),Oe?kt.customStyle?(kt.customStyle.textContent=Lt,Dt=kt.customStyle):Lt&&(Dt=me(Lt,wt,Mt.shadowRoot,kt.placeholder)):Dt?!Dt.parentNode&&ye(Dt,null,kt.placeholder):Lt&&(Dt=me(Lt,wt,null,kt.placeholder)),Dt&&(Dt._useCount=Dt._useCount||0,kt.customStyle!=Dt&&Dt._useCount++,kt.customStyle=Dt),dt&&(Dt.textContent=Dt.textContent),Dt}applyCustomStyle(Mt,Ot){let wt=he(Mt),Dt=this;Mt.textContent=pe(wt,function(Lt){let kt=Lt.cssText=Lt.parsedCssText;Lt.propertyInfo&&Lt.propertyInfo.cssText&&(kt=ae(kt),Lt.cssText=Dt.valueForProperties(kt,Ot))})}}var ct=new pt;let ht={};const _t=window.customElements;if(_t&&!Oe){const Mt=_t.define;_t.define=function(Ot,wt,Dt){return ht[Ot]=fe(Ot),Mt.call(_t,Ot,wt,Dt)}}let mt=ke.MIXIN_MATCH,yt=ke.VAR_ASSIGN,gt=/;\s*/m,ft=/^\s*(initial)|(inherit)\s*$/,Nt='_-_';class bt{constructor(){this._map={}}set(Mt,Ot){Mt=Mt.trim(),this._map[Mt]={properties:Ot,dependants:{}}}get(Mt){return Mt=Mt.trim(),this._map[Mt]}}class St{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new bt,this._separator=Nt,this._boundProduceCssProperties=(Mt,Ot,wt,Dt)=>this._produceCssProperties(Mt,Ot,wt,Dt)}detectMixin(Mt){const Ot=mt.test(Mt)||yt.test(Mt);return mt.lastIndex=0,yt.lastIndex=0,Ot}transformStyle(Mt,Ot){let wt=he(Mt);return this.transformRules(wt,Ot),wt}transformRules(Mt,Ot){this._currentTemplate=ot[Ot],ue(Mt,wt=>{this.transformRule(wt)}),this._currentTemplate=null}transformRule(Mt){Mt.cssText=this.transformCssText(Mt.parsedCssText),':root'===Mt.selector&&(Mt.selector=':host > *')}transformCssText(Mt){return Mt=Mt.replace(yt,this._boundProduceCssProperties),this._consumeCssProperties(Mt)}_getInitialValueForProperty(Mt){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(Mt)}_consumeCssProperties(Mt){for(let Ot;Ot=mt.exec(Mt);){let wt=Ot[0],Dt=Ot[1],Lt=Ot.index,kt=Lt+wt.indexOf('@apply'),Ht=Lt+wt.length,Ft=Mt.slice(0,kt),Ut=Mt.slice(Ht),Wt=this._cssTextToMap(Ft),qt=this._atApplyToCssProperties(Dt,Wt);Mt=[Ft,qt,Ut].join(''),mt.lastIndex=Lt+qt.length}return Mt}_atApplyToCssProperties(Mt,Ot){Mt=Mt.replace(gt,'');let wt=[],Dt=this._map.get(Mt);if(Dt||(this._map.set(Mt,{}),Dt=this._map.get(Mt)),Dt){this._currentTemplate&&(Dt.dependants[this._currentTemplate.name]=this._currentTemplate);let Lt,kt,Ht;for(Lt in Dt.properties)Ht=Ot&&Ot[Lt],kt=[Lt,': var(',Mt,Nt,Lt],Ht&&kt.push(',',Ht),kt.push(')'),wt.push(kt.join(''))}return wt.join('; ')}_replaceInitialOrInherit(Mt,Ot){let wt=ft.exec(Ot);return wt&&(wt[1]?Ot=St._getInitialValueForProperty(Mt):Ot='apply-shim-inherit'),Ot}_cssTextToMap(Mt){let Ot=Mt.split(';'),wt,Dt,Lt={};for(let Ht,Ft,kt=0;kt<Ot.length;kt++)Ht=Ot[kt],Ht&&(Ft=Ht.split(':'),1<Ft.length&&(wt=Ft[0].trim(),Dt=this._replaceInitialOrInherit(wt,Ft.slice(1).join(':')),Lt[wt]=Dt));return Lt}_invalidateMixinEntry(Mt){for(let Ot in Mt.dependants)this._currentTemplate&&Ot===this._currentTemplate.name||nt.invalidate(Ot)}_produceCssProperties(Mt,Ot,wt,Dt){if(wt&&be(wt,(Xt,Vt)=>{Vt&&this._map.get(Vt)&&(Dt='@apply '+Vt+';')}),!Dt)return Mt;let Lt=this._consumeCssProperties(Dt),kt=Mt.slice(0,Mt.indexOf('--')),Ht=this._cssTextToMap(Lt),Ft=Ht,Ut=this._map.get(Ot),Wt=Ut&&Ut.properties;Wt?Ft=Object.assign(Object.create(Wt),Ht):this._map.set(Ot,Ft);let Bt,jt,qt=[],Gt=!1;for(Bt in Ft)jt=Ht[Bt],void 0==jt&&(jt='initial'),Wt&&!(Bt in Wt)&&(Gt=!0),qt.push(Ot+Nt+Bt+': '+jt);return Gt&&this._invalidateMixinEntry(Ut),Ut&&(Ut.properties=Ft),wt&&(kt=Mt+';'+kt),kt+qt.join('; ')+';'}}let Et=new St;window.ApplyShim=Et;let Ct=function(){};if(!Oe){let Mt=kt=>{return kt.classList&&!kt.classList.contains(tt.SCOPE_NAME)||kt instanceof SVGElement&&(!kt.hasAttribute('class')||0>kt.getAttribute('class').indexOf(tt.SCOPE_NAME))},Ot=kt=>{for(let Ft,Ht=0;Ht<kt.length;Ht++)if(Ft=kt[Ht],Ft.target!==document.documentElement&&Ft.target!==document.head){for(let Wt,Ut=0;Ut<Ft.addedNodes.length;Ut++)if(Wt=Ft.addedNodes[Ut],Mt(Wt)){let qt=Wt.getRootNode();if(qt.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let Bt=qt.host;if(Bt){let jt=Bt.is||Bt.localName;tt.dom(Wt,jt)}}}for(let Wt,Ut=0;Ut<Ft.removedNodes.length;Ut++)if(Wt=Ft.removedNodes[Ut],Wt.nodeType===Node.ELEMENT_NODE){let qt;if(Wt.classList?qt=Array.from(Wt.classList):Wt.hasAttribute('class')&&(qt=Wt.getAttribute('class').split(/\s+/)),void 0!=qt){let Bt=qt.indexOf(tt.SCOPE_NAME);if(0<=Bt){let jt=qt[Bt+1];jt&&tt.dom(Wt,jt,!0)}}}}},wt=new MutationObserver(Ot),Dt=kt=>{wt.observe(kt,{childList:!0,subtree:!0})},Lt=window.customElements&&!window.customElements.flush;if(Lt)Dt(document);else{let kt=()=>{Dt(document.body)};window.HTMLImports?window.HTMLImports.whenReady(kt):requestAnimationFrame(function(){if('loading'===document.readyState){let Ht=function(){kt(),document.removeEventListener('readystatechange',Ht)};document.addEventListener('readystatechange',Ht)}else kt()})}Ct=function(){Ot(wt.takeRecords())}}let vt=new class{constructor(Mt=100){this.cache={},this.typeMax=Mt}_validate(Mt,Ot,wt){for(let Lt,Dt=0;Dt<wt.length;Dt++)if(Lt=wt[Dt],Mt.properties[Lt]!==Ot[Lt])return!1;return!0}store(Mt,Ot,wt,Dt){let Lt=this.cache[Mt]||[];Lt.push({properties:Ot,styleElement:wt,scopeSelector:Dt}),Lt.length>this.typeMax&&Lt.shift(),this.cache[Mt]=Lt}fetch(Mt,Ot,wt){let Dt=this.cache[Mt];if(Dt)for(let kt,Lt=Dt.length-1;0<=Lt;Lt--)if(kt=Dt[Lt],this._validate(kt,Ot,wt))return kt}};class Tt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=nt.set(document.documentElement,new nt({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return Oe}get nativeCss(){return we}get nativeCssApply(){return!1}flush(){Ct()}_generateScopeSelector(Mt){let Ot=this._scopeCounter[Mt]=(this._scopeCounter[Mt]||0)+1;return`${Mt}-${Ot}`}getStyleAst(Mt){return he(Mt)}styleAstToString(Mt){return pe(Mt)}_gatherStyles(Mt){let Ot=Mt.content.querySelectorAll('style'),wt=[];for(let Lt,Dt=0;Dt<Ot.length;Dt++)Lt=Ot[Dt],wt.push(Lt.textContent),Lt.parentNode.removeChild(Lt);return wt.join('').trim()}_getCssBuild(Mt){let Ot=Mt.content.querySelector('style');return Ot?Ot.getAttribute('css-build')||'':''}prepareTemplate(Mt,Ot,wt){if(!Mt._prepared){Mt._prepared=!0,Mt.name=Ot,Mt.extends=wt,ot[Ot]=Mt;let Dt=this._getCssBuild(Mt),Lt=this._gatherStyles(Mt),kt={is:Ot,extends:wt,__cssBuild:Dt};this.nativeShadow||tt.dom(Mt.content,Ot);let Ht=Et.detectMixin(Lt),Ft=_(Lt);Ht&&this.nativeCss&&!this.nativeCssApply&&Et.transformRules(Ft,Ot),Mt._styleAst=Ft;let Ut=[];if(this.nativeCss||(Ut=ct.decorateStyles(Mt._styleAst,kt)),!Ut.length||this.nativeCss){let Wt=this.nativeShadow?Mt.content:null,qt=ht[Ot],Bt=this._generateStaticStyle(kt,Mt._styleAst,Wt,qt);Mt._style=Bt}Mt._ownPropertyNames=Ut}}_generateStaticStyle(Mt,Ot,wt,Dt){let Lt=tt.elementStyles(Mt,Ot);if(Lt.length)return me(Lt,Mt.is,wt,Dt)}_prepareHost(Mt){let wt,Ot=Mt.getAttribute('is')||Mt.localName;Ot!==Mt.localName&&(wt=Mt.localName);let kt,Ht,Ft,Dt=ht[Ot],Lt=ot[Ot];return Lt&&(kt=Lt._styleAst,Ht=Lt._ownPropertyNames,Ft=Lt._cssBuild),nt.set(Mt,new nt(kt,Dt,Ht,Ot,wt,Ft))}applyStyle(Mt,Ot){let wt=Mt.getAttribute('is')||Mt.localName,Dt=nt.get(Mt),Lt=!!Dt;if(Dt||(Dt=this._prepareHost(Mt)),this._isRootOwner(Mt)||(this._elementsHaveApplied=!0),window.CustomStyle){let kt=window.CustomStyle;if(kt._documentDirty){if(kt.findStyles(),this.nativeCss?!this.nativeCssApply&&kt._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),kt.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),Lt))return}}if(Ot&&(Dt.overrideStyleProperties=Dt.overrideStyleProperties||{},Object.assign(Dt.overrideStyleProperties,Ot)),this.nativeCss){Dt.overrideStyleProperties&&this._updateNativeProperties(Mt,Dt.overrideStyleProperties);let kt=ot[wt];if(!kt&&!this._isRootOwner(Mt))return;if(kt&&kt._applyShimInvalid&&kt._style){if(kt._validating||(Et.transformRules(kt._styleAst,wt),kt._style.textContent=tt.elementStyles(Mt,Dt.styleRules),nt.startValidating(wt)),this.nativeShadow){let Ht=Mt.shadowRoot;if(Ht){let Ft=Ht.querySelector('style');Ft.textContent=tt.elementStyles(Mt,Dt.styleRules)}}Dt.styleRules=kt._styleAst}}else this._updateProperties(Mt,Dt),Dt.ownStylePropertyNames&&Dt.ownStylePropertyNames.length&&this._applyStyleProperties(Mt,Dt);if(Lt){let kt=this._isRootOwner(Mt)?Mt:Mt.shadowRoot;kt&&this._applyToDescendants(kt)}}_applyToDescendants(Mt){let Ot=Mt.children||Mt.childNodes;for(let Dt,wt=0;wt<Ot.length;wt++)Dt=Ot[wt],Dt.shadowRoot&&this.applyStyle(Dt),this._applyToDescendants(Dt)}_styleOwnerForNode(Mt){let Ot=Mt.getRootNode(),wt=Ot.host;return wt?nt.get(wt)?wt:this._styleOwnerForNode(wt):this._documentOwner}_isRootOwner(Mt){return Mt===this._documentOwner}_applyStyleProperties(Mt,Ot){let wt=Mt.getAttribute('is')||Mt.localName,Dt=vt.fetch(wt,Ot.styleProperties,Ot.ownStylePropertyNames),Lt=Dt&&Dt.scopeSelector,kt=Dt?Dt.styleElement:null,Ht=Ot.scopeSelector;Ot.scopeSelector=Lt||this._generateScopeSelector(wt);let Ft=ct.applyElementStyle(Mt,Ot.styleProperties,Ot.scopeSelector,kt);return this.nativeShadow||ct.applyElementScopeSelector(Mt,Ot.scopeSelector,Ht),Dt||vt.store(wt,Ot.styleProperties,Ft,Ot.scopeSelector),Ft}_updateProperties(Mt,Ot){let wt=this._styleOwnerForNode(Mt),Dt=nt.get(wt),Lt=Dt.styleProperties,kt=Object.create(Lt||null),Ht=ct.hostAndRootPropertiesForScope(Mt,Ot.styleRules),Ft=ct.propertyDataFromStyles(Dt.styleRules,Mt),Ut=Ft.properties;Object.assign(kt,Ht.hostProps,Ut,Ht.rootProps),this._mixinOverrideStyles(kt,Ot.overrideStyleProperties),ct.reify(kt),Ot.styleProperties=kt}_mixinOverrideStyles(Mt,Ot){for(let wt in Ot){let Dt=Ot[wt];(Dt||0===Dt)&&(Mt[wt]=Dt)}}_updateNativeProperties(Mt,Ot){for(let wt in Ot)null===wt?Mt.style.removeProperty(wt):Mt.style.setProperty(wt,Ot[wt])}updateStyles(Mt){this.applyStyle(this._documentOwner,Mt)}_transformCustomStyleForDocument(Mt){let Ot=he(Mt);ue(Ot,wt=>{Oe?tt.normalizeRootSelector(wt):tt.documentRule(wt),this.nativeCss&&!this.nativeCssApply&&Et.transformRule(wt)}),this.nativeCss?Mt.textContent=pe(Ot):this._documentOwnerStyleInfo.styleRules.rules.push(Ot)}_revalidateApplyShim(Mt){if(this.nativeCss&&!this.nativeCssApply){let Ot=he(Mt);Et.transformRules(Ot),Mt.textContent=pe(Ot)}}_applyCustomStyleToDocument(Mt){this.nativeCss||ct.applyCustomStyle(Mt,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(Mt,Ot){let wt;if(!this.nativeCss){let Dt=nt.get(Mt)||nt.get(this._styleOwnerForNode(Mt));wt=Dt.styleProperties[Ot]}return wt=wt||window.getComputedStyle(Mt).getPropertyValue(Ot),wt.trim()}setElementClass(Mt,Ot){let wt=Mt.getRootNode(),Dt=Ot?Ot.split(/\s/):[],Lt=wt.host&&wt.host.localName;if(!Lt){var kt=Mt.getAttribute('class');if(kt){let Ht=kt.split(/\s/);for(let Ft=0;Ft<Ht.length;Ft++)if(Ht[Ft]===tt.SCOPE_NAME){Lt=Ht[Ft+1];break}}}if(Lt&&Dt.push(tt.SCOPE_NAME,Lt),!this.nativeCss){let Ht=nt.get(Mt);Ht&&Ht.scopeSelector&&Dt.push(ct.XSCOPE_NAME,Ht.scopeSelector)}Se(Mt,Dt.join(' '))}_styleInfoForNode(Mt){return nt.get(Mt)}}window.ShadyCSS=new Tt;let At=window.ShadyCSS,Pt=!1,Rt=[],xt=null;class It extends HTMLElement{static get _customStyles(){return Rt}static get processHook(){return xt}static set processHook(Mt){xt=Mt}static get _documentDirty(){return Pt}static findStyles(){for(let Ot,Mt=0;Mt<Rt.length;Mt++)if(Ot=Rt[Mt],!Ot._style){let wt=Ot.querySelector('style');if(!wt)continue;if(wt.__appliedElement)for(let Lt,Dt=0;Dt<wt.attributes.length;Dt++)Lt=wt.attributes[Dt],wt.__appliedElement.setAttribute(Lt.name,Lt.value);Ot._style=wt.__appliedElement||wt,xt&&xt(Ot._style),At._transformCustomStyleForDocument(Ot._style)}}static _revalidateApplyShim(){for(let Ot,Mt=0;Mt<Rt.length;Mt++)Ot=Rt[Mt],Ot._style&&At._revalidateApplyShim(Ot._style)}static applyStyles(){for(let Ot,Mt=0;Mt<Rt.length;Mt++)Ot=Rt[Mt],Ot._style&&At._applyCustomStyleToDocument(Ot._style);Pt=!1}constructor(){super(),Rt.push(this),Ce()}}window.CustomStyle=It,window.customElements.define('custom-style',It),function(){'use strict';if(customElements&&customElements.polyfillWrapFlushCallback){function Ot(){if(wt){let Lt=wt;wt=null,Lt()}}let wt,Dt=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(Lt){wt=Lt,Dt(Ot)}),HTMLImports.whenReady=function(Lt){Dt(function(){Ot(),Lt()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var Ot=document.createElement('style');Ot.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var wt=document.querySelector('head');wt.insertBefore(Ot,wt.firstChild)}(window.WebComponents)})();
//# sourceMappingURL=webcomponents-hi-sd-ce.js.map