Files
webcomponentsjs/webcomponents-hi-ce.js
2017-02-07 14:03:28 -08:00

7 lines
50 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 wt={start:0,end:Mt.length},Lt=wt;for(let Ot=0,kt=Mt.length;Ot<kt;Ot++)if(Mt[Ot]===xe){Lt.rules||(Lt.rules=[]);let Dt=Lt,Ht=Dt.rules[Dt.rules.length-1];Lt={start:Ot+1,parent:Dt,previous:Ht},Dt.rules.push(Lt)}else Mt[Ot]===Te&&(Lt.end=Ot+1,Lt=Lt.parent||wt);return wt}function te(Mt,wt){let Lt=wt.substring(Mt.start,Mt.end-1);if(Mt.parsedCssText=Mt.cssText=Lt.trim(),Mt.parent){let kt=Mt.previous?Mt.previous.end:Mt.parent.start;Lt=wt.substring(kt,Mt.start-1),Lt=re(Lt),Lt=Lt.replace(Re.multipleSpaces,' '),Lt=Lt.substring(Lt.lastIndexOf(';')+1);let Dt=Mt.parsedSelector=Mt.selector=Lt.trim();Mt.atRule=0===Dt.indexOf('@'),Mt.atRule?0===Dt.indexOf('@media')?Mt.type=ve.MEDIA_RULE:Dt.match(Re.keyframesRule)&&(Mt.type=ve.KEYFRAMES_RULE,Mt.keyframesName=Mt.selector.split(Re.multipleSpaces).pop()):0===Dt.indexOf(Ie)?Mt.type=ve.MIXIN_RULE:Mt.type=ve.STYLE_RULE}let Ot=Mt.rules;if(Ot)for(let Ht,kt=0,Dt=Ot.length;kt<Dt&&(Ht=Ot[kt]);kt++)te(Ht,wt);return Mt}function re(Mt){return Mt.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let wt=arguments[1],Lt=6-wt.length;for(;Lt--;)wt='0'+wt;return'\\'+wt})}function ne(Mt,wt,Lt){Lt=Lt||'';let Ot='';if(Mt.cssText||Mt.rules){let kt=Mt.rules;if(kt&&!le(kt))for(let Ut,Dt=0,Ht=kt.length;Dt<Ht&&(Ut=kt[Dt]);Dt++)Ot=ne(Ut,wt,Ot);else Ot=wt?Mt.cssText:oe(Mt.cssText),Ot=Ot.trim(),Ot&&(Ot=' '+Ot+'\n')}return Ot&&(Mt.selector&&(Lt+=Mt.selector+' '+xe+'\n'),Lt+=Ot,Mt.selector&&(Lt+=Te+'\n\n')),Lt}function le(Mt){return 0===Mt[0].selector.indexOf(Ie)}function oe(Mt){return Mt=se(Mt),ae(Mt)}function se(Mt){return Mt.replace(Re.customProp,'').replace(Re.mixinProp,'')}function ae(Mt){return Mt.replace(Re.mixinApply,'').replace(Re.varApply,'')}function de(Mt){Mt&&(Le=Le&&!Mt.shimcssproperties,we=we&&!Mt.shimshadow)}function pe(Mt,wt){return'string'==typeof Mt&&(Mt=_(Mt)),wt&&ye(Mt,wt),ne(Mt,Le)}function me(Mt){return!Mt.__cssRules&&Mt.textContent&&(Mt.__cssRules=_(Mt.textContent)),Mt.__cssRules}function ue(Mt){return Mt.parent&&Mt.parent.type===ve.KEYFRAMES_RULE}function ye(Mt,wt,Lt,Ot){if(Mt){let kt=!1;if(Ot&&Mt.type===ve.MEDIA_RULE){let Ht=Mt.selector.match(De.MEDIA_MATCH);Ht&&!window.matchMedia(Ht[1]).matches&&(kt=!0)}Mt.type===ve.STYLE_RULE?wt(Mt):Lt&&Mt.type===ve.KEYFRAMES_RULE?Lt(Mt):Mt.type===ve.MIXIN_RULE&&(kt=!0);let Dt=Mt.rules;if(Dt&&!kt)for(let Ft,Ht=0,Ut=Dt.length;Ht<Ut&&(Ft=Dt[Ht]);Ht++)ye(Ft,wt,Lt,Ot)}}function he(Mt,wt,Lt,Ot){let kt=fe(Mt,wt);return _e(kt,Lt,Ot)}function _e(Mt,wt,Lt){wt=wt||document.head;let Ot=Lt&&Lt.nextSibling||wt.firstChild;return ke=Mt,wt.insertBefore(Mt,Ot)}function fe(Mt,wt){let Lt=document.createElement('style');return wt&&Lt.setAttribute('scope',wt),Lt.textContent=Mt,Lt}function ge(Mt){let wt=document.createComment(' Shady DOM styles for '+Mt+' '),Lt=ke?ke.nextSibling:null,Ot=document.head;return Ot.insertBefore(wt,Lt||Ot.firstChild),ke=wt,wt}function Se(Mt,wt){let Lt=0;for(let Ot=wt,kt=Mt.length;Ot<kt;Ot++)if('('===Mt[Ot])Lt++;else if(')'===Mt[Ot]&&0==--Lt)return Ot;return-1}function Ce(Mt,wt){let Lt=Mt.indexOf('var(');if(-1===Lt)return wt(Mt,'','','');let Ot=Se(Mt,Lt+3),kt=Mt.substring(Lt+4,Ot),Dt=Mt.substring(0,Lt),Ht=Ce(Mt.substring(Ot+1),wt),Ut=kt.indexOf(',');if(-1===Ut)return wt(Dt,kt.trim(),'',Ht);let Ft=kt.substring(0,Ut).trim(),jt=kt.substring(Ut+1).trim();return wt(Dt,Ft,jt,Ht)}function be(Mt,wt){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(Mt,'class',wt):Mt.setAttribute('class',wt)}function Ee(Mt,wt){let Lt=parseInt(Mt/32);wt[Lt]=(wt[Lt]||0)|1<<Mt%32}function Ne(){Tt||(Tt=!0,window.HTMLImports?window.HTMLImports.whenReady(Ae):'complete'===document.readyState?Ae():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&Ae()}))}function Ae(){requestAnimationFrame(()=>{(Tt||xt._elementsHaveApplied)&&xt.updateStyles(),Tt=!1})}(Mt=>{const wt=!!('import'in document.createElement('link'));let Lt=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return Lt||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const Ot=/(^\/)|(^#)|(^[\w-\d]*:)/,kt=/(url\()([^)]*)(\))/g,Dt=/(@import[\s]+(?!url\())([^;]*)(;)/g,Ht=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Ut={fixUrls(nr,lr){nr.href&&nr.setAttribute('href',Ut.replaceAttrUrl(nr.getAttribute('href'),lr)),nr.src&&nr.setAttribute('src',Ut.replaceAttrUrl(nr.getAttribute('src'),lr)),'style'===nr.localName&&Ut.resolveUrlsInStyle(nr,lr)},fixUrlAttributes(nr,lr){const or=['action','src','href','url','style'];for(let ar,sr=0;sr<or.length&&(ar=or[sr]);sr++){const ir=nr.attributes[ar],dr=ir&&ir.value;dr&&0>dr.search(/({{|\[\[)/)&&(ir.value='style'===ar?Ut.resolveUrlsInCssText(dr,lr):Ut.replaceAttrUrl(dr,lr))}},fixUrlsInTemplates(nr,lr){const or=nr.querySelectorAll('template');for(let sr=0;sr<or.length;sr++)Ut.fixUrlsInTemplate(or[sr],lr)},fixUrlsInTemplate(nr,lr){const or=nr.content||nr,sr=or.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let ar=0;ar<sr.length;ar++){const ir=sr[ar];'style'==ir.localName?Ut.resolveUrlsInStyle(ir,lr):Ut.fixUrlAttributes(ir,lr)}Ut.fixUrlsInTemplates(or,lr)},resolveUrlsInStyle(nr,lr){nr.textContent=Ut.resolveUrlsInCssText(nr.textContent,lr)},resolveUrlsInCssText(nr,lr){let or=Ut.replaceUrls(nr,lr,kt);return or=Ut.replaceUrls(or,lr,Dt),or},replaceUrls(nr,lr,or){return nr.replace(or,(sr,ar,ir,dr)=>{let pr=ir.replace(/["']/g,'');return lr&&(pr=Ut.resolveUrl(pr,lr)),ar+'\''+pr+'\''+dr})},replaceAttrUrl(nr,lr){return nr&&Ot.test(nr)?nr:Ut.resolveUrl(nr,lr)},resolveUrl(nr,lr){if(void 0===Ut.__workingURL){Ut.__workingURL=!1;try{const sr=new URL('b','http://a');sr.pathname='c%20d',Ut.__workingURL='http://a/c%20d'===sr.href}catch(sr){}}if(Ut.__workingURL)return new URL(nr,lr).href;let or=Ut.__tempDoc;return or||(or=document.implementation.createHTMLDocument('temp'),Ut.__tempDoc=or,or.__base=or.createElement('base'),or.head.appendChild(or.__base),or.__anchor=or.createElement('a')),or.__base.href=lr,or.__anchor.href=nr,or.__anchor.href||nr}},Ft={async:!0,load(nr){return new Promise((lr,or)=>{if(!nr)or({resource:'error: href must be specified'});else if(nr.match(/^data:/)){const sr=nr.split(','),ar=sr[0];let ir=sr[1];ir=-1<ar.indexOf(';base64')?atob(ir):decodeURIComponent(ir),lr({resource:ir})}else{const sr=new XMLHttpRequest;sr.open('GET',nr,Ft.async),sr.addEventListener('readystatechange',()=>{if(4===sr.readyState){let ar;try{const dr=sr.getResponseHeader('Location');dr&&(ar='/'===dr.substr(0,1)?location.origin+dr:dr)}catch(dr){console.error(dr.message)}const ir={resource:sr.response||sr.responseText,redirectedUrl:ar};304===sr.status||0===sr.status||200<=sr.status&&300>sr.status?lr(ir):or(ir)}}),sr.send()}})}},jt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),qt='onunhandledrejection'in window,Bt='link[rel=import]',Kt='import-disable',Xt=`link[rel=stylesheet][href][type=${Kt}]`,Wt=`${Bt}, ${Xt},
style:not([type]), link[rel=stylesheet][href]:not([type]),
script:not([type]), script[type="application/javascript"],
script[type="text/javascript"]`,Vt='import-dependency',Gt=`${Bt}:not(${Vt})`,Yt=`script[${Vt}]`,zt=`style[${Vt}],
link[rel=stylesheet][${Vt}]`;const Zt=nr=>{return nr.nodeType===Node.ELEMENT_NODE&&'link'===nr.localName&&'import'===nr.rel},Qt=nr=>{return nr.__loadPromise||(nr.__loadPromise=new Promise(lr=>{'script'!==nr.localName||nr.src?jt&&'style'===nr.localName?nr.addEventListener('load',lr):(nr.addEventListener('load',lr),nr.addEventListener('error',lr)):lr()}).then(()=>{return nr.__loaded=!0,nr})),nr.__loadPromise},Jt=nr=>{er(()=>tr(()=>nr&&nr()))},er=nr=>{if('loading'!==document.readyState)nr();else{const lr=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',lr),nr())};document.addEventListener('readystatechange',lr)}},tr=nr=>{let lr=document.querySelectorAll(Gt);const or=[];for(let ir,sr=0,ar=lr.length;sr<ar&&(ir=lr[sr]);sr++)ir.__loaded||or.push(Qt(ir));if(or.length){let sr=Promise.all(or).then(nr);qt||sr.catch(ar=>{throw console.error(ar.stack),setTimeout(()=>{throw ar}),'unhandledrejection'})}else nr()},rr=nr=>{if(wt)return nr.ownerDocument;let lr=nr.__ownerImport;if(!lr){for(lr=nr;(lr=lr.parentNode||lr.host)&&!Zt(lr););nr.__ownerImport=lr}return lr};if(wt){const nr=document.querySelectorAll(Bt);for(let ar,or=0,sr=nr.length;or<sr&&(ar=nr[or]);or++)ar.import&&'loading'===ar.import.readyState||(ar.__loaded=!0);const lr=or=>{const sr=or.target;Zt(sr)&&(sr.__loaded=!0)};document.addEventListener('load',lr,!0),document.addEventListener('error',lr,!0)}else new class{constructor(){this.documents={},this.inflight=0,er(()=>{new MutationObserver(nr=>this.handleMutations(nr)).observe(document.head,{childList:!0,subtree:!0}),this.load()})}load(nr){let lr=nr?this.whenImportLoaded(nr):this.whenImportsLoaded(document);return lr&&(this.inflight++,lr=lr.then(()=>{if(0==--this.inflight)return this.onLoadedAll()}),!qt&&(lr=lr.catch(or=>{throw console.error(or.stack),setTimeout(()=>{throw or}),'unhandledrejection'}))),lr}whenImportsLoaded(nr){const lr=nr.querySelectorAll(Bt),or=[];for(let sr=0,ar=lr.length;sr<ar;sr++){const ir=this.whenImportLoaded(lr[sr]);ir&&or.push(ir)}return or.length?Promise.all(or).then(()=>nr):null}whenImportLoaded(nr){const lr=nr.href;return void 0===this.documents[lr]?(this.documents[lr]='pending',Ft.load(lr).then(or=>{const sr=this.makeDocument(or.resource,or.redirectedUrl||lr);return this.documents[lr]=sr,this.whenImportsLoaded(sr)},()=>this.documents[lr]=null).then(()=>nr)):null}makeDocument(nr,lr){if(!nr)return document.createDocumentFragment();jt&&(nr=nr.replace(Ht,(cr,mr,ur)=>{return-1===cr.indexOf('type=')?`${mr} type=${Kt} ${ur}`:cr}));let or;const sr=document.createElement('template');if(sr.innerHTML=nr,sr.content)or=sr.content;else for(or=document.createDocumentFragment();sr.firstChild;)or.appendChild(sr.firstChild);const ar=or.querySelector('base');ar&&(lr=Ut.replaceAttrUrl(ar.getAttribute('href'),lr),ar.removeAttribute('href'));const ir=or.querySelectorAll('dom-module');for(let mr,cr=0;cr<ir.length&&(mr=ir[cr]);cr++)mr.setAttribute('assetpath',Ut.replaceAttrUrl(mr.getAttribute('assetpath')||'',lr));const dr=or.querySelectorAll(Wt);let pr=0;for(let ur,cr=0,mr=dr.length;cr<mr&&(ur=dr[cr]);cr++)if(Qt(ur),Ut.fixUrls(ur,lr),ur.setAttribute(Vt,''),'script'===ur.localName&&!ur.src&&ur.textContent){const yr=pr?`-${pr}`:'',hr=ur.textContent+`\n//# sourceURL=${lr}${yr}.js\n`;ur.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(hr)),ur.textContent='',pr++}return Ut.fixUrlsInTemplates(or,lr),or}onLoadedAll(){return this.flatten(document),Promise.all([this.waitForStyles(),this.runScripts()]).then(()=>this.fireEvents())}flatten(nr){const lr=nr.querySelectorAll(Bt);for(let ar,or=0,sr=lr.length;or<sr&&(ar=lr[or]);or++){const ir=this.documents[ar.href];ar.import=ir,ir&&ir.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[ar.href]=ar,ar.readyState='loading',ar.import=ar,this.flatten(ir),ar.appendChild(ir))}}runScripts(){const nr=document.querySelectorAll(Yt);let lr=Promise.resolve();for(let ar,or=0,sr=nr.length;or<sr&&(ar=nr[or]);or++)lr=lr.then(()=>{const ir=document.createElement('script');ar.removeAttribute(Vt);for(let dr=0,pr=ar.attributes.length;dr<pr;dr++)ir.setAttribute(ar.attributes[dr].name,ar.attributes[dr].value);return Lt=ir,ar.parentNode.replaceChild(ir,ar),Qt(ir).then(()=>Lt=null)});return lr}waitForStyles(){const nr=!!document.querySelector(Xt),lr=document.querySelectorAll(zt),or=[];for(let ir,sr=0,ar=lr.length;sr<ar&&(ir=lr[sr]);sr++)if(or.push(Qt(ir).then(()=>ir.removeAttribute(Vt))),nr&&ir.parentNode!==document.head){let dr=rr(ir);for(;dr&&rr(dr);)dr=rr(dr);const pr=ir.parentNode,cr=ir.nextSibling,mr=document.createElement(ir.localName);mr.__appliedElement=ir,mr.setAttribute('type','import-placeholder'),dr.parentNode===document.head?document.head.insertBefore(ir,dr):document.head.appendChild(ir),pr.insertBefore(mr,cr),ir.removeAttribute('type')}return Promise.all(or)}fireEvents(){const nr=document.querySelectorAll(Bt);for(let or,lr=nr.length-1;0<=lr&&(or=nr[lr]);lr--)this.fireEventIfNeeded(or)}fireEventIfNeeded(nr){if(!nr.__loaded){nr.__loaded=!0,nr.import&&(nr.import.readyState='complete');const lr=nr.import?'load':'error';nr.dispatchEvent(new CustomEvent(lr,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(nr){for(let lr=0;lr<nr.length;lr++){const or=nr[lr];if(or.addedNodes)for(let sr=0;sr<or.addedNodes.length;sr++){const ar=or.addedNodes[sr];if(ar&&ar.nodeType===Node.ELEMENT_NODE){const ir=Zt(ar)?[ar]:ar.querySelectorAll(Bt);for(let dr=0;dr<ir.length;dr++){const pr=ir[dr],cr=this.documents[pr.href];void 0===cr?this.load(pr):!this.inflight&&(pr.import=cr,this.fireEventIfNeeded(pr))}}}}}};Jt(()=>document.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),Mt.useNative=wt,Mt.whenReady=Jt,Mt.importForElement=rr})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';function Mt(Dr){var Hr=nr.has(Dr);return Dr=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Dr),!Hr&&Dr}function wt(Dr){var Hr=Dr.isConnected;if(void 0!==Hr)return Hr;for(;Dr&&!(Dr.__CE_isImportDocument||Dr instanceof Document);)Dr=Dr.parentNode||(window.ShadowRoot&&Dr instanceof ShadowRoot?Dr.host:void 0);return Dr&&(Dr.__CE_isImportDocument||Dr instanceof Document)}function Lt(Dr,Hr){for(;Hr&&Hr!==Dr&&!Hr.nextSibling;)Hr=Hr.parentNode;return Hr&&Hr!==Dr?Hr.nextSibling:null}function Ot(Dr,Hr,Ur){Ur=Ur?Ur:new Set;for(var Fr=Dr;Fr;){if(Fr.nodeType===Node.ELEMENT_NODE){var jr=Fr;Hr(jr);var qr=jr.localName;if('link'===qr&&'import'===jr.getAttribute('rel')){if(Fr=jr.import,Fr instanceof Node&&!Ur.has(Fr))for(Ur.add(Fr),Fr=Fr.firstChild;Fr;Fr=Fr.nextSibling)Ot(Fr,Hr,Ur);Fr=Lt(Dr,jr);continue}else if('template'===qr){Fr=Lt(Dr,jr);continue}if(jr=jr.__CE_shadowRoot)for(jr=jr.firstChild;jr;jr=jr.nextSibling)Ot(jr,Hr,Ur)}Fr=Fr.firstChild?Fr.firstChild:Lt(Dr,Fr)}}function kt(Dr,Hr,Ur){Dr[Hr]=Ur}function Dt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Ht(Dr,Hr,Ur){Dr.a.set(Hr,Ur),Dr.f.set(Ur.constructor,Ur)}function Ut(Dr,Hr){Dr.b=!0,Dr.c.push(Hr)}function Ft(Dr,Hr){Dr.b&&Ot(Hr,function(Ur){return jt(Dr,Ur)})}function jt(Dr,Hr){if(Dr.b&&!Hr.__CE_patched){Hr.__CE_patched=!0;for(var Ur=0;Ur<Dr.c.length;Ur++)Dr.c[Ur](Hr)}}function qt(Dr,Hr){var Ur=[];for(Ot(Hr,function(jr){return Ur.push(jr)}),Hr=0;Hr<Ur.length;Hr++){var Fr=Ur[Hr];1===Fr.__CE_state?Dr.connectedCallback(Fr):Xt(Dr,Fr)}}function Bt(Dr,Hr){var Ur=[];for(Ot(Hr,function(jr){return Ur.push(jr)}),Hr=0;Hr<Ur.length;Hr++){var Fr=Ur[Hr];1===Fr.__CE_state&&Dr.disconnectedCallback(Fr)}}function Kt(Dr,Hr,Ur){Ur=Ur?Ur:new Set;var Fr=[];if(Ot(Hr,function(jr){if('link'===jr.localName&&'import'===jr.getAttribute('rel')){var qr=jr.import;qr instanceof Node&&'complete'===qr.readyState?(qr.__CE_isImportDocument=!0,qr.__CE_hasRegistry=!0):jr.addEventListener('load',function(){var Br=jr.import;Br.__CE_documentLoadHandled||(Br.__CE_documentLoadHandled=!0,Br.__CE_isImportDocument=!0,Br.__CE_hasRegistry=!0,new Set(Ur),Ur.delete(Br),Kt(Dr,Br,Ur))})}else Fr.push(jr)},Ur),Dr.b)for(Hr=0;Hr<Fr.length;Hr++)jt(Dr,Fr[Hr]);for(Hr=0;Hr<Fr.length;Hr++)Xt(Dr,Fr[Hr])}function Xt(Dr,Hr){if(void 0===Hr.__CE_state){var Ur=Dr.a.get(Hr.localName);if(Ur){Ur.constructionStack.push(Hr);var Fr=Ur.constructor;try{try{if(new Fr!==Hr)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{Ur.constructionStack.pop()}}catch(Br){throw Hr.__CE_state=2,Br}if(Hr.__CE_state=1,Hr.__CE_definition=Ur,Ur.attributeChangedCallback)for(Ur=Ur.observedAttributes,Fr=0;Fr<Ur.length;Fr++){var jr=Ur[Fr],qr=Hr.getAttribute(jr);null!==qr&&Dr.attributeChangedCallback(Hr,jr,null,qr,null)}wt(Hr)&&Dr.connectedCallback(Hr)}}}function Wt(Dr,Hr){this.c=Dr,this.a=Hr,this.b=void 0,Kt(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(Dr){Dr.b&&Dr.b.disconnect()}function Gt(){var Dr=this;this.b=this.a=void 0,this.c=new Promise(function(Hr){Dr.b=Hr,Dr.a&&Hr(Dr.a)})}function Yt(Dr){if(Dr.a)throw Error('Already resolved.');Dr.a=void 0,Dr.b&&Dr.b(void 0)}function zt(Dr){this.f=!1,this.a=Dr,this.h=new Map,this.g=function(Hr){return Hr()},this.b=!1,this.c=[],this.j=new Wt(Dr,document)}function $t(){var Dr=Or;window.HTMLElement=function(){function Hr(){var Ur=this.constructor,Fr=Dr.f.get(Ur);if(!Fr)throw Error('The custom element being constructed was not registered with `customElements`.');var jr=Fr.constructionStack;if(!jr.length)return jr=lr.call(document,Fr.localName),Object.setPrototypeOf(jr,Ur.prototype),jr.__CE_state=1,jr.__CE_definition=Fr,jt(Dr,jr),jr;var Fr=jr.length-1,qr=jr[Fr];if(qr===rr)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return jr[Fr]=rr,Object.setPrototypeOf(qr,Ur.prototype),jt(Dr,qr),qr}return Hr.prototype=Pr.prototype,Hr}()}function Zt(Dr,Hr,Ur){Hr.prepend=function(){for(var jr=[],qr=0;qr<arguments.length;++qr)jr[qr-0]=arguments[qr];qr=jr.filter(function(Kr){return Kr instanceof Node&&wt(Kr)}),Ur.i.apply(this,jr);for(var Br=0;Br<qr.length;Br++)Bt(Dr,qr[Br]);if(wt(this))for(qr=0;qr<jr.length;qr++)Br=jr[qr],Br instanceof Element&&qt(Dr,Br)},Hr.append=function(){for(var jr=[],qr=0;qr<arguments.length;++qr)jr[qr-0]=arguments[qr];qr=jr.filter(function(Kr){return Kr instanceof Node&&wt(Kr)}),Ur.append.apply(this,jr);for(var Br=0;Br<qr.length;Br++)Bt(Dr,qr[Br]);if(wt(this))for(qr=0;qr<jr.length;qr++)Br=jr[qr],Br instanceof Element&&qt(Dr,Br)}}function Qt(){var Dr=Or;kt(Document.prototype,'createElement',function(Hr){if(this.__CE_hasRegistry){var Ur=Dr.a.get(Hr);if(Ur)return new Ur.constructor}return Hr=lr.call(this,Hr),jt(Dr,Hr),Hr}),kt(Document.prototype,'importNode',function(Hr,Ur){return Hr=sr.call(this,Hr,Ur),this.__CE_hasRegistry?Kt(Dr,Hr):Ft(Dr,Hr),Hr}),kt(Document.prototype,'createElementNS',function(Hr,Ur){if(this.__CE_hasRegistry&&(null===Hr||'http://www.w3.org/1999/xhtml'===Hr)){var Fr=Dr.a.get(Ur);if(Fr)return new Fr.constructor}return Hr=or.call(this,Hr,Ur),jt(Dr,Hr),Hr}),Zt(Dr,Document.prototype,{i:ar,append:ir})}function Jt(){function Dr(Ur,Fr){Object.defineProperty(Ur,'textContent',{enumerable:Fr.enumerable,configurable:!0,get:Fr.get,set:function(jr){if(this.nodeType===Node.TEXT_NODE)Fr.set.call(this,jr);else{var qr;if(this.firstChild){var Br=this.childNodes,Kr=Br.length;if(0<Kr&&wt(this))for(var qr=Array(Kr),Xr=0;Xr<Kr;Xr++)qr[Xr]=Br[Xr]}if(Fr.set.call(this,jr),qr)for(jr=0;jr<qr.length;jr++)Bt(Hr,qr[jr])}}})}var Hr=Or;kt(Node.prototype,'insertBefore',function(Ur,Fr){if(Ur instanceof DocumentFragment){var jr=Array.prototype.slice.apply(Ur.childNodes);if(Ur=cr.call(this,Ur,Fr),wt(this))for(Fr=0;Fr<jr.length;Fr++)qt(Hr,jr[Fr]);return Ur}return jr=wt(Ur),Fr=cr.call(this,Ur,Fr),jr&&Bt(Hr,Ur),wt(this)&&qt(Hr,Ur),Fr}),kt(Node.prototype,'appendChild',function(Ur){if(Ur instanceof DocumentFragment){var Fr=Array.prototype.slice.apply(Ur.childNodes);if(Ur=pr.call(this,Ur),wt(this))for(var jr=0;jr<Fr.length;jr++)qt(Hr,Fr[jr]);return Ur}return Fr=wt(Ur),jr=pr.call(this,Ur),Fr&&Bt(Hr,Ur),wt(this)&&qt(Hr,Ur),jr}),kt(Node.prototype,'cloneNode',function(Ur){return Ur=dr.call(this,Ur),this.ownerDocument.__CE_hasRegistry?Kt(Hr,Ur):Ft(Hr,Ur),Ur}),kt(Node.prototype,'removeChild',function(Ur){var Fr=wt(Ur),jr=mr.call(this,Ur);return Fr&&Bt(Hr,Ur),jr}),kt(Node.prototype,'replaceChild',function(Ur,Fr){if(Ur instanceof DocumentFragment){var jr=Array.prototype.slice.apply(Ur.childNodes);if(Ur=ur.call(this,Ur,Fr),wt(this))for(Bt(Hr,Fr),Fr=0;Fr<jr.length;Fr++)qt(Hr,jr[Fr]);return Ur}var jr=wt(Ur),qr=ur.call(this,Ur,Fr),Br=wt(this);return Br&&Bt(Hr,Fr),jr&&Bt(Hr,Ur),Br&&qt(Hr,Ur),qr}),yr&&yr.get?Dr(Node.prototype,yr):Ut(Hr,function(Ur){Dr(Ur,{enumerable:!0,configurable:!0,get:function(){for(var Fr=[],jr=0;jr<this.childNodes.length;jr++)Fr.push(this.childNodes[jr].textContent);return Fr.join('')},set:function(Fr){for(;this.firstChild;)mr.call(this,this.firstChild);pr.call(this,document.createTextNode(Fr))}})})}function er(Dr){var Hr=Element.prototype;Hr.before=function(){for(var Fr=[],jr=0;jr<arguments.length;++jr)Fr[jr-0]=arguments[jr];jr=Fr.filter(function(Br){return Br instanceof Node&&wt(Br)}),xr.apply(this,Fr);for(var qr=0;qr<jr.length;qr++)Bt(Dr,jr[qr]);if(wt(this))for(jr=0;jr<Fr.length;jr++)qr=Fr[jr],qr instanceof Element&&qt(Dr,qr)},Hr.after=function(){for(var Fr=[],jr=0;jr<arguments.length;++jr)Fr[jr-0]=arguments[jr];jr=Fr.filter(function(Br){return Br instanceof Node&&wt(Br)}),Tr.apply(this,Fr);for(var qr=0;qr<jr.length;qr++)Bt(Dr,jr[qr]);if(wt(this))for(jr=0;jr<Fr.length;jr++)qr=Fr[jr],qr instanceof Element&&qt(Dr,qr)},Hr.replaceWith=function(){for(var Fr=[],jr=0;jr<arguments.length;++jr)Fr[jr-0]=arguments[jr];var jr=Fr.filter(function(Kr){return Kr instanceof Node&&wt(Kr)}),qr=wt(this);Rr.apply(this,Fr);for(var Br=0;Br<jr.length;Br++)Bt(Dr,jr[Br]);if(qr)for(Bt(Dr,this),jr=0;jr<Fr.length;jr++)qr=Fr[jr],qr instanceof Element&&qt(Dr,qr)},Hr.remove=function(){var Ur=wt(this);Ir.call(this),Ur&&Bt(Dr,this)}}function tr(){function Dr(jr,qr){Object.defineProperty(jr,'innerHTML',{enumerable:qr.enumerable,configurable:!0,get:qr.get,set:function(Br){var Xr,Kr=this;if(wt(this)&&(Xr=[],Ot(this,function(Gr){Gr!==Kr&&Xr.push(Gr)})),qr.set.call(this,Br),Xr)for(var Vr,Wr=0;Wr<Xr.length;Wr++)Vr=Xr[Wr],1===Vr.__CE_state&&Ur.disconnectedCallback(Vr);return this.ownerDocument.__CE_hasRegistry?Kt(Ur,this):Ft(Ur,this),Br}})}function Hr(jr,qr){kt(jr,'insertAdjacentElement',function(Br,Kr){var Xr=wt(Kr);return Br=qr.call(this,Br,Kr),Xr&&Bt(Ur,Kr),wt(Br)&&qt(Ur,Kr),Br})}var Ur=Or;if(hr?kt(Element.prototype,'attachShadow',function(jr){return this.__CE_shadowRoot=jr=hr.call(this,jr)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),_r&&_r.get)Dr(Element.prototype,_r);else if(Mr&&Mr.get)Dr(HTMLElement.prototype,Mr);else{var Fr=lr.call(document,'div');Ut(Ur,function(jr){Dr(jr,{enumerable:!0,configurable:!0,get:function(){return dr.call(this,!0).innerHTML},set:function(qr){var Br='template'===this.localName?this.content:this;for(Fr.innerHTML=qr;0<Br.childNodes.length;)mr.call(Br,Br.childNodes[0]);for(;0<Fr.childNodes.length;)pr.call(Br,Fr.childNodes[0])}})})}kt(Element.prototype,'setAttribute',function(jr,qr){if(1!==this.__CE_state)return gr.call(this,jr,qr);var Br=fr.call(this,jr);gr.call(this,jr,qr),qr=fr.call(this,jr),Br!==qr&&Ur.attributeChangedCallback(this,jr,Br,qr,null)}),kt(Element.prototype,'setAttributeNS',function(jr,qr,Br){if(1!==this.__CE_state)return br.call(this,jr,qr,Br);var Kr=Cr.call(this,jr,qr);br.call(this,jr,qr,Br),Br=Cr.call(this,jr,qr),Kr!==Br&&Ur.attributeChangedCallback(this,qr,Kr,Br,jr)}),kt(Element.prototype,'removeAttribute',function(jr){if(1!==this.__CE_state)return Sr.call(this,jr);var qr=fr.call(this,jr);Sr.call(this,jr),null!==qr&&Ur.attributeChangedCallback(this,jr,qr,null,null)}),kt(Element.prototype,'removeAttributeNS',function(jr,qr){if(1!==this.__CE_state)return Er.call(this,jr,qr);var Br=Cr.call(this,jr,qr);Er.call(this,jr,qr);var Kr=Cr.call(this,jr,qr);Br!==Kr&&Ur.attributeChangedCallback(this,qr,Br,Kr,jr)}),wr?Hr(HTMLElement.prototype,wr):Nr?Hr(Element.prototype,Nr):console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.'),Zt(Ur,Element.prototype,{i:Ar,append:vr}),er(Ur)}var rr=new function(){},nr=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' '));Dt.prototype.connectedCallback=function(Dr){var Hr=Dr.__CE_definition;Hr.connectedCallback&&Hr.connectedCallback.call(Dr)},Dt.prototype.disconnectedCallback=function(Dr){var Hr=Dr.__CE_definition;Hr.disconnectedCallback&&Hr.disconnectedCallback.call(Dr)},Dt.prototype.attributeChangedCallback=function(Dr,Hr,Ur,Fr,jr){var qr=Dr.__CE_definition;qr.attributeChangedCallback&&-1<qr.observedAttributes.indexOf(Hr)&&qr.attributeChangedCallback.call(Dr,Hr,Ur,Fr,jr)},Wt.prototype.f=function(Dr){var Hr=this.a.readyState;for('interactive'!==Hr&&'complete'!==Hr||Vt(this),Hr=0;Hr<Dr.length;Hr++)for(var Ur=Dr[Hr].addedNodes,Fr=0;Fr<Ur.length;Fr++)Kt(this.c,Ur[Fr])},zt.prototype.l=function(Dr,Hr){var Ur=this;if(!(Hr instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!Mt(Dr))throw new SyntaxError('The element name \''+Dr+'\' is not valid.');if(this.a.a.get(Dr))throw Error('A custom element with name \''+Dr+'\' has already been defined.');if(this.f)throw Error('A custom element is already being defined.');this.f=!0;var Fr,jr,qr,Br,Kr;try{var Xr=function(Vr){var Gr=Wr[Vr];if(void 0!==Gr&&!(Gr instanceof Function))throw Error('The \''+Vr+'\' callback must be a function.');return Gr},Wr=Hr.prototype;if(!(Wr instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');Fr=Xr('connectedCallback'),jr=Xr('disconnectedCallback'),qr=Xr('adoptedCallback'),Br=Xr('attributeChangedCallback'),Kr=Hr.observedAttributes||[]}catch(Vr){return}finally{this.f=!1}Ht(this.a,Dr,{localName:Dr,constructor:Hr,connectedCallback:Fr,disconnectedCallback:jr,adoptedCallback:qr,attributeChangedCallback:Br,observedAttributes:Kr,constructionStack:[]}),this.c.push(Dr),this.b||(this.b=!0,this.g(function(){if(!1!==Ur.b)for(Ur.b=!1,Kt(Ur.a,document);0<Ur.c.length;){var Vr=Ur.c.shift();(Vr=Ur.h.get(Vr))&&Yt(Vr)}}))},zt.prototype.get=function(Dr){if(Dr=this.a.a.get(Dr))return Dr.constructor},zt.prototype.o=function(Dr){if(!Mt(Dr))return Promise.reject(new SyntaxError('\''+Dr+'\' is not a valid custom element name.'));var Hr=this.h.get(Dr);return Hr?Hr.c:(Hr=new Gt,this.h.set(Dr,Hr),this.a.a.get(Dr)&&-1===this.c.indexOf(Dr)&&Yt(Hr),Hr.c)},zt.prototype.m=function(Dr){Vt(this.j);var Hr=this.g;this.g=function(Ur){return Dr(function(){return Hr(Ur)})}},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 lr=window.Document.prototype.createElement,or=window.Document.prototype.createElementNS,sr=window.Document.prototype.importNode,ar=window.Document.prototype.prepend,ir=window.Document.prototype.append,dr=window.Node.prototype.cloneNode,pr=window.Node.prototype.appendChild,cr=window.Node.prototype.insertBefore,mr=window.Node.prototype.removeChild,ur=window.Node.prototype.replaceChild,yr=Object.getOwnPropertyDescriptor(window.Node.prototype,'textContent'),hr=window.Element.prototype.attachShadow,_r=Object.getOwnPropertyDescriptor(window.Element.prototype,'innerHTML'),fr=window.Element.prototype.getAttribute,gr=window.Element.prototype.setAttribute,Sr=window.Element.prototype.removeAttribute,Cr=window.Element.prototype.getAttributeNS,br=window.Element.prototype.setAttributeNS,Er=window.Element.prototype.removeAttributeNS,Nr=window.Element.prototype.insertAdjacentElement,Ar=window.Element.prototype.prepend,vr=window.Element.prototype.append,xr=window.Element.prototype.before,Tr=window.Element.prototype.after,Rr=window.Element.prototype.replaceWith,Ir=window.Element.prototype.remove,Pr=window.HTMLElement,Mr=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),wr=window.HTMLElement.prototype.insertAdjacentElement,Lr=window.customElements;if(!Lr||Lr.forcePolyfill||'function'!=typeof Lr.define||'function'!=typeof Lr.get){var Or=new Dt;$t(),Qt(),Jt(),tr(),document.__CE_hasRegistry=!0;var kr=new zt(Or);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:kr})}}.call(self);let ve={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},xe='{',Te='}',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},Ie='--',we=!(window.ShadyDOM&&window.ShadyDOM.inUse),Le=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?de(window.ShadyCSS):window.WebComponents&&de(window.WebComponents.flags);let ke=null,De={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 Ue{get SCOPE_NAME(){return He}dom(Mt,wt,Lt){Mt.__styleScoped?Mt.__styleScoped=null:this._transformDom(Mt,wt||'',Lt)}_transformDom(Mt,wt,Lt){Mt.nodeType===Node.ELEMENT_NODE&&this.element(Mt,wt,Lt);let Ot='template'===Mt.localName?(Mt.content||Mt._content).childNodes:Mt.children||Mt.childNodes;if(Ot)for(let kt=0;kt<Ot.length;kt++)this._transformDom(Ot[kt],wt,Lt)}element(Mt,wt,Lt){if(wt)if(Mt.classList)Lt?(Mt.classList.remove(He),Mt.classList.remove(wt)):(Mt.classList.add(He),Mt.classList.add(wt));else if(Mt.getAttribute){let Ot=Mt.getAttribute('class');if(!Lt){let kt=(Ot?Ot+' ':'')+He+' '+wt;be(Mt,kt)}else if(Ot){let kt=Ot.replace(He,'').replace(wt,'');be(Mt,kt)}}}elementStyles(Mt,wt,Lt){let Ot=Mt.__cssBuild,kt=we||'shady'===Ot?pe(wt,Lt):this.css(wt,Mt.is,Mt.extends,Lt)+'\n\n';return kt.trim()}css(Mt,wt,Lt,Ot){let kt=this._calcHostScope(wt,Lt);wt=this._calcElementScope(wt);let Dt=this;return pe(Mt,function(Ht){Ht.isScoped||(Dt.rule(Ht,wt,kt),Ht.isScoped=!0),Ot&&Ot(Ht,wt,kt)})}_calcElementScope(Mt){return Mt?'.'+Mt:''}_calcHostScope(Mt,wt){return wt?'[is='+Mt+']':Mt}rule(Mt,wt,Lt){this._transformRule(Mt,this._transformComplexSelector,wt,Lt)}_transformRule(Mt,wt,Lt,Ot){Mt.selector=Mt.transformedSelector=this._transformRuleCss(Mt,wt,Lt,Ot)}_transformRuleCss(Mt,wt,Lt,Ot){let kt=Mt.selector.split(qe);if(!ue(Mt))for(let Ut,Dt=0,Ht=kt.length;Dt<Ht&&(Ut=kt[Dt]);Dt++)kt[Dt]=wt.call(this,Ut,Lt,Ot);return kt.join(qe)}_transformComplexSelector(Mt,wt,Lt){let Ot=!1;return Mt=Mt.trim(),Mt=Mt.replace(Fe,(kt,Dt,Ht)=>`:${Dt}(${Ht.replace(/\s/g,'')})`),Mt=Mt.replace(Ge,`${Xe} $1`),Mt=Mt.replace(Be,(kt,Dt,Ht)=>{if(!Ot){let Ut=this._transformCompoundSelector(Ht,Dt,wt,Lt);Ot=Ot||Ut.stop,Dt=Ut.combinator,Ht=Ut.value}return Dt+Ht}),Mt}_transformCompoundSelector(Mt,wt,Lt,Ot){let kt=Mt.indexOf(Ve);0<=Mt.indexOf(Xe)?Mt=this._transformHostSelector(Mt,Ot):0!==kt&&(Mt=Lt?this._transformSimpleSelector(Mt,Lt):Mt);let Dt=!1;0<=kt&&(wt='',Dt=!0);let Ht;return Dt&&(Ht=!0,Dt&&(Mt=Mt.replace(ze,(Ut,Ft)=>` > ${Ft}`))),Mt=Mt.replace($e,(Ut,Ft,jt)=>`[dir="${jt}"] ${Ft}, ${Ft}[dir="${jt}"]`),{value:Mt,combinator:wt,stop:Ht}}_transformSimpleSelector(Mt,wt){let Lt=Mt.split(Qe);return Lt[0]+=wt,Lt.join(Qe)}_transformHostSelector(Mt,wt){let Lt=Mt.match(Ye),Ot=Lt&&Lt[2].trim()||'';if(Ot){if(!Ot[0].match(Ke)){let kt=Ot.split(Ke)[0];return kt===wt?Ot:'should_not_match'}return Mt.replace(Ye,function(kt,Dt,Ht){return wt+Ht})}return Mt.replace(Xe,wt)}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,je):this._transformSimpleSelector(Mt.trim(),je)}}let Fe=/:(nth[-\w]+)\(([^)]+)\)/,je=`:not(.${He})`,qe=',',Be=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ke=/[[.:#*]/,Xe=':host',Ve='::slotted',Ge=/^(::slotted)/,Ye=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ze=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,$e=/(.*):dir\((?:(ltr|rtl))\)/,Qe=':';var tt=new Ue,rt={};const nt=Promise.resolve();class lt{static get(Mt){return Mt.__styleInfo}static set(Mt,wt){return Mt.__styleInfo=wt,wt}static invalidate(Mt){rt[Mt]&&(rt[Mt]._applyShimInvalid=!0)}static startValidating(Mt){const wt=rt[Mt];wt._validating||(wt._validating=!0,nt.then(()=>{wt._applyShimInvalid=!1,wt._validating=!1}))}constructor(Mt,wt,Lt,Ot,kt,Dt){this.styleRules=Mt||null,this.placeholder=wt||null,this.ownStylePropertyNames=Lt||[],this.overrideStyleProperties=null,this.elementName=Ot||'',this.cssBuild=Dt||'',this.typeExtension=kt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const ot=window.Element.prototype,st=ot.matches||ot.matchesSelector||ot.mozMatchesSelector||ot.msMatchesSelector||ot.oMatchesSelector||ot.webkitMatchesSelector,it=navigator.userAgent.match('Trident'),dt='x-scope';class pt{get XSCOPE_NAME(){return dt}decorateStyles(Mt){let wt=this,Lt={},Ot=[],kt=0;ye(Mt,function(Ht){wt.decorateRule(Ht),Ht.index=kt++,wt.collectPropertiesInCssText(Ht.propertyInfo.cssText,Lt)},function(Ut){Ot.push(Ut)}),Mt._keyframes=Ot;let Dt=[];for(let Ht in Lt)Dt.push(Ht);return Dt}decorateRule(Mt){if(Mt.propertyInfo)return Mt.propertyInfo;let wt={},Lt={},Ot=this.collectProperties(Mt,Lt);return Ot&&(wt.properties=Lt,Mt.rules=null),wt.cssText=this.collectCssText(Mt),Mt.propertyInfo=wt,wt}collectProperties(Mt,wt){let Lt=Mt.propertyInfo;if(!Lt){let Ot,kt=De.VAR_ASSIGN,Dt=Mt.parsedCssText,Ht,Ut;for(;Ot=kt.exec(Dt);)Ht=(Ot[2]||Ot[3]).trim(),('inherit'!==Ht||'unset'!==Ht)&&(wt[Ot[1].trim()]=Ht),Ut=!0;return Ut}else if(Lt.properties)return Object.assign(wt,Lt.properties),!0}collectCssText(Mt){return this.collectConsumingCssText(Mt.parsedCssText)}collectConsumingCssText(Mt){return Mt.replace(De.BRACKETED,'').replace(De.VAR_ASSIGN,'')}collectPropertiesInCssText(Mt,wt){for(let Lt,Ot;Lt=De.VAR_CONSUMED.exec(Mt);)Ot=Lt[1],':'!==Lt[2]&&(wt[Ot]=!0)}reify(Mt){let wt=Object.getOwnPropertyNames(Mt);for(let Ot,Lt=0;Lt<wt.length;Lt++)Ot=wt[Lt],Mt[Ot]=this.valueForProperty(Mt[Ot],Mt)}valueForProperty(Mt,wt){if(Mt)if(0<=Mt.indexOf(';'))Mt=this.valueForProperties(Mt,wt);else{let Lt=this;Mt=Ce(Mt,function(kt,Dt,Ht,Ut){if(!Dt)return kt+Ut;let Ft=Lt.valueForProperty(wt[Dt],wt);return Ft&&'initial'!==Ft?'apply-shim-inherit'===Ft&&(Ft='inherit'):Ft=Lt.valueForProperty(wt[Ht]||Ht,wt)||Ht,kt+(Ft||'')+Ut})}return Mt&&Mt.trim()||''}valueForProperties(Mt,wt){let Lt=Mt.split(';');for(let kt,Dt,Ot=0;Ot<Lt.length;Ot++)if(kt=Lt[Ot]){if(De.MIXIN_MATCH.lastIndex=0,Dt=De.MIXIN_MATCH.exec(kt),Dt)kt=this.valueForProperty(wt[Dt[1]],wt);else{let Ht=kt.indexOf(':');if(-1!==Ht){let Ut=kt.substring(Ht);Ut=Ut.trim(),Ut=this.valueForProperty(Ut,wt)||Ut,kt=kt.substring(0,Ht)+Ut}}Lt[Ot]=kt&&kt.lastIndexOf(';')===kt.length-1?kt.slice(0,-1):kt||''}return Lt.join(';')}applyProperties(Mt,wt){let Lt='';Mt.propertyInfo||this.decorateRule(Mt),Mt.propertyInfo.cssText&&(Lt=this.valueForProperties(Mt.propertyInfo.cssText,wt)),Mt.cssText=Lt}applyKeyframeTransforms(Mt,wt){let Lt=Mt.cssText,Ot=Mt.cssText;if(null==Mt.hasAnimations&&(Mt.hasAnimations=De.ANIMATION_MATCH.test(Lt)),Mt.hasAnimations){let kt;if(null==Mt.keyframeNamesToTransform)for(let Dt in Mt.keyframeNamesToTransform=[],wt)kt=wt[Dt],Ot=kt(Lt),Lt!==Ot&&(Lt=Ot,Mt.keyframeNamesToTransform.push(Dt));else{for(let Dt=0;Dt<Mt.keyframeNamesToTransform.length;++Dt)kt=wt[Mt.keyframeNamesToTransform[Dt]],Lt=kt(Lt);Ot=Lt}}Mt.cssText=Ot}propertyDataFromStyles(Mt,wt){let Lt={},Ot=this,kt=[];return ye(Mt,function(Dt){Dt.propertyInfo||Ot.decorateRule(Dt);let Ht=Dt.transformedSelector||Dt.parsedSelector;wt&&Dt.propertyInfo.properties&&Ht&&st.call(wt,Ht)&&(Ot.collectProperties(Dt,Lt),Ee(Dt.index,kt))},null,!0),{properties:Lt,key:kt}}whenHostOrRootRule(Mt,wt,Lt,Ot){if(wt.propertyInfo||this.decorateRule(wt),!!wt.propertyInfo.properties){let kt=Mt.is?tt._calcHostScope(Mt.is,Mt.extends):'html',Dt=wt.parsedSelector,Ht=':host > *'===Dt||'html'===Dt,Ut=0===Dt.indexOf(':host')&&!Ht;if('shady'===Lt&&(Ht=Dt===kt+' > *.'+kt||-1!==Dt.indexOf('html'),Ut=!Ht&&0===Dt.indexOf(kt)),'shadow'===Lt&&(Ht=':host > *'===Dt||'html'===Dt,Ut=Ut&&!Ht),Ht||Ut){let Ft=kt;Ut&&(we&&!wt.transformedSelector&&(wt.transformedSelector=tt._transformRuleCss(wt,tt._transformComplexSelector,tt._calcElementScope(Mt.is),kt)),Ft=wt.transformedSelector||kt),Ot({selector:Ft,isHost:Ut,isRoot:Ht})}}}hostAndRootPropertiesForScope(Mt,wt){let Lt={},Ot={},kt=this,Dt=wt&&wt.__cssBuild;return ye(wt,function(Ht){kt.whenHostOrRootRule(Mt,Ht,Dt,function(Ut){let Ft=Mt._element||Mt;st.call(Ft,Ut.selector)&&(Ut.isHost?kt.collectProperties(Ht,Lt):kt.collectProperties(Ht,Ot))})},null,!0),{rootProps:Ot,hostProps:Lt}}transformStyles(Mt,wt,Lt){let Ot=this,kt=tt._calcHostScope(Mt.is,Mt.extends),Dt=Mt.extends?'\\'+kt.slice(0,-1)+'\\]':kt,Ht=new RegExp(De.HOST_PREFIX+Dt+De.HOST_SUFFIX),Ut=lt.get(Mt).styleRules,Ft=this._elementKeyframeTransforms(Mt,Ut,Lt);return tt.elementStyles(Mt,Ut,function(jt){Ot.applyProperties(jt,wt),we||ue(jt)||!jt.cssText||(Ot.applyKeyframeTransforms(jt,Ft),Ot._scopeSelector(jt,Ht,kt,Lt))})}_elementKeyframeTransforms(Mt,wt,Lt){let Ot=wt._keyframes,kt={};if(!we&&Ot)for(let Dt=0,Ht=Ot[Dt];Dt<Ot.length;Ht=Ot[++Dt])this._scopeKeyframes(Ht,Lt),kt[Ht.keyframesName]=this._keyframesRuleTransformer(Ht);return kt}_keyframesRuleTransformer(Mt){return function(wt){return wt.replace(Mt.keyframesNameRx,Mt.transformedKeyframesName)}}_scopeKeyframes(Mt,wt){Mt.keyframesNameRx=new RegExp(Mt.keyframesName,'g'),Mt.transformedKeyframesName=Mt.keyframesName+'-'+wt,Mt.transformedSelector=Mt.transformedSelector||Mt.selector,Mt.selector=Mt.transformedSelector.replace(Mt.keyframesName,Mt.transformedKeyframesName)}_scopeSelector(Mt,wt,Lt,Ot){Mt.transformedSelector=Mt.transformedSelector||Mt.selector;let kt=Mt.transformedSelector,Dt='.'+Ot,Ht=kt.split(',');for(let jt,Ut=0,Ft=Ht.length;Ut<Ft&&(jt=Ht[Ut]);Ut++)Ht[Ut]=jt.match(wt)?jt.replace(Lt,Dt):Dt+' '+jt;Mt.selector=Ht.join(',')}applyElementScopeSelector(Mt,wt,Lt){let Ot=Mt.getAttribute('class')||'',kt=Ot;Lt&&(kt=Ot.replace(new RegExp('\\s*'+dt+'\\s*'+Lt+'\\s*','g'),' ')),kt+=(kt?' ':'')+dt+' '+wt,Ot!==kt&&be(Mt,kt)}applyElementStyle(Mt,wt,Lt,Ot){let kt=Ot?Ot.textContent||'':this.transformStyles(Mt,wt,Lt),Dt=lt.get(Mt),Ht=Dt.customStyle;return Ht&&!we&&Ht!==Ot&&(Ht._useCount--,0>=Ht._useCount&&Ht.parentNode&&Ht.parentNode.removeChild(Ht)),we?Dt.customStyle?(Dt.customStyle.textContent=kt,Ot=Dt.customStyle):kt&&(Ot=he(kt,Lt,Mt.shadowRoot,Dt.placeholder)):Ot?!Ot.parentNode&&_e(Ot,null,Dt.placeholder):kt&&(Ot=he(kt,Lt,null,Dt.placeholder)),Ot&&(Ot._useCount=Ot._useCount||0,Dt.customStyle!=Ot&&Ot._useCount++,Dt.customStyle=Ot),it&&(Ot.textContent=Ot.textContent),Ot}applyCustomStyle(Mt,wt){let Lt=me(Mt),Ot=this;Mt.textContent=pe(Lt,function(kt){let Dt=kt.cssText=kt.parsedCssText;kt.propertyInfo&&kt.propertyInfo.cssText&&(Dt=se(Dt),kt.cssText=Ot.valueForProperties(Dt,wt))})}}var ct=new pt;let mt={};const ut=window.customElements;if(ut&&!we){const Mt=ut.define;ut.define=function(wt,Lt,Ot){return mt[wt]=ge(wt),Mt.call(ut,wt,Lt,Ot)}}let ht=De.MIXIN_MATCH,_t=De.VAR_ASSIGN,ft=/;\s*/m,gt=/^\s*(initial)|(inherit)\s*$/,St='_-_';class Ct{constructor(){this._map={}}set(Mt,wt){Mt=Mt.trim(),this._map[Mt]={properties:wt,dependants:{}}}get(Mt){return Mt=Mt.trim(),this._map[Mt]}}class bt{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new Ct,this._separator=St,this._boundProduceCssProperties=(Mt,wt,Lt,Ot)=>this._produceCssProperties(Mt,wt,Lt,Ot)}detectMixin(Mt){const wt=ht.test(Mt)||_t.test(Mt);return ht.lastIndex=0,_t.lastIndex=0,wt}transformStyle(Mt,wt){let Lt=me(Mt);return this.transformRules(Lt,wt),Lt}transformRules(Mt,wt){this._currentTemplate=rt[wt],ye(Mt,Lt=>{this.transformRule(Lt)}),this._currentTemplate=null}transformRule(Mt){Mt.cssText=this.transformCssText(Mt.parsedCssText),':root'===Mt.selector&&(Mt.selector=':host > *')}transformCssText(Mt){return Mt=Mt.replace(_t,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 wt;wt=ht.exec(Mt);){let Lt=wt[0],Ot=wt[1],kt=wt.index,Dt=kt+Lt.indexOf('@apply'),Ht=kt+Lt.length,Ut=Mt.slice(0,Dt),Ft=Mt.slice(Ht),jt=this._cssTextToMap(Ut),qt=this._atApplyToCssProperties(Ot,jt);Mt=[Ut,qt,Ft].join(''),ht.lastIndex=kt+qt.length}return Mt}_atApplyToCssProperties(Mt,wt){Mt=Mt.replace(ft,'');let Lt=[],Ot=this._map.get(Mt);if(Ot||(this._map.set(Mt,{}),Ot=this._map.get(Mt)),Ot){this._currentTemplate&&(Ot.dependants[this._currentTemplate.name]=this._currentTemplate);let kt,Dt,Ht;for(kt in Ot.properties)Ht=wt&&wt[kt],Dt=[kt,': var(',Mt,St,kt],Ht&&Dt.push(',',Ht),Dt.push(')'),Lt.push(Dt.join(''))}return Lt.join('; ')}_replaceInitialOrInherit(Mt,wt){let Lt=gt.exec(wt);return Lt&&(Lt[1]?wt=bt._getInitialValueForProperty(Mt):wt='apply-shim-inherit'),wt}_cssTextToMap(Mt){let wt=Mt.split(';'),Lt,Ot,kt={};for(let Ht,Ut,Dt=0;Dt<wt.length;Dt++)Ht=wt[Dt],Ht&&(Ut=Ht.split(':'),1<Ut.length&&(Lt=Ut[0].trim(),Ot=this._replaceInitialOrInherit(Lt,Ut.slice(1).join(':')),kt[Lt]=Ot));return kt}_invalidateMixinEntry(Mt){for(let wt in Mt.dependants)this._currentTemplate&&wt===this._currentTemplate.name||lt.invalidate(wt)}_produceCssProperties(Mt,wt,Lt,Ot){if(Lt&&Ce(Lt,(Wt,Vt)=>{Vt&&this._map.get(Vt)&&(Ot='@apply '+Vt+';')}),!Ot)return Mt;let kt=this._consumeCssProperties(Ot),Dt=Mt.slice(0,Mt.indexOf('--')),Ht=this._cssTextToMap(kt),Ut=Ht,Ft=this._map.get(wt),jt=Ft&&Ft.properties;jt?Ut=Object.assign(Object.create(jt),Ht):this._map.set(wt,Ut);let Bt,Kt,qt=[],Xt=!1;for(Bt in Ut)Kt=Ht[Bt],void 0==Kt&&(Kt='initial'),jt&&!(Bt in jt)&&(Xt=!0),qt.push(wt+St+Bt+': '+Kt);return Xt&&this._invalidateMixinEntry(Ft),Ft&&(Ft.properties=Ut),Lt&&(Dt=Mt+';'+Dt),Dt+qt.join('; ')+';'}}let Et=new bt;window.ApplyShim=Et;let Nt=function(){};if(!we){let Mt=Dt=>{return Dt.classList&&!Dt.classList.contains(tt.SCOPE_NAME)||Dt instanceof SVGElement&&(!Dt.hasAttribute('class')||0>Dt.getAttribute('class').indexOf(tt.SCOPE_NAME))},wt=Dt=>{for(let Ut,Ht=0;Ht<Dt.length;Ht++)if(Ut=Dt[Ht],Ut.target!==document.documentElement&&Ut.target!==document.head){for(let jt,Ft=0;Ft<Ut.addedNodes.length;Ft++)if(jt=Ut.addedNodes[Ft],Mt(jt)){let qt=jt.getRootNode();if(qt.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let Bt=qt.host;if(Bt){let Kt=Bt.is||Bt.localName;tt.dom(jt,Kt)}}}for(let jt,Ft=0;Ft<Ut.removedNodes.length;Ft++)if(jt=Ut.removedNodes[Ft],jt.nodeType===Node.ELEMENT_NODE){let qt;if(jt.classList?qt=Array.from(jt.classList):jt.hasAttribute('class')&&(qt=jt.getAttribute('class').split(/\s+/)),void 0!=qt){let Bt=qt.indexOf(tt.SCOPE_NAME);if(0<=Bt){let Kt=qt[Bt+1];Kt&&tt.dom(jt,Kt,!0)}}}}},Lt=new MutationObserver(wt),Ot=Dt=>{Lt.observe(Dt,{childList:!0,subtree:!0})},kt=window.customElements&&!window.customElements.flush;if(kt)Ot(document);else{let Dt=()=>{Ot(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Dt):requestAnimationFrame(function(){if('loading'===document.readyState){let Ht=function(){Dt(),document.removeEventListener('readystatechange',Ht)};document.addEventListener('readystatechange',Ht)}else Dt()})}Nt=function(){wt(Lt.takeRecords())}}let At=new class{constructor(Mt=100){this.cache={},this.typeMax=Mt}_validate(Mt,wt,Lt){for(let kt,Ot=0;Ot<Lt.length;Ot++)if(kt=Lt[Ot],Mt.properties[kt]!==wt[kt])return!1;return!0}store(Mt,wt,Lt,Ot){let kt=this.cache[Mt]||[];kt.push({properties:wt,styleElement:Lt,scopeSelector:Ot}),kt.length>this.typeMax&&kt.shift(),this.cache[Mt]=kt}fetch(Mt,wt,Lt){let Ot=this.cache[Mt];if(Ot)for(let Dt,kt=Ot.length-1;0<=kt;kt--)if(Dt=Ot[kt],this._validate(Dt,wt,Lt))return Dt}};class vt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=lt.set(document.documentElement,new lt({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return we}get nativeCss(){return Le}get nativeCssApply(){return!1}flush(){Nt()}_generateScopeSelector(Mt){let wt=this._scopeCounter[Mt]=(this._scopeCounter[Mt]||0)+1;return`${Mt}-${wt}`}getStyleAst(Mt){return me(Mt)}styleAstToString(Mt){return pe(Mt)}_gatherStyles(Mt){let wt=Mt.content.querySelectorAll('style'),Lt=[];for(let kt,Ot=0;Ot<wt.length;Ot++)kt=wt[Ot],Lt.push(kt.textContent),kt.parentNode.removeChild(kt);return Lt.join('').trim()}_getCssBuild(Mt){let wt=Mt.content.querySelector('style');return wt?wt.getAttribute('css-build')||'':''}prepareTemplate(Mt,wt,Lt){if(!Mt._prepared){Mt._prepared=!0,Mt.name=wt,Mt.extends=Lt,rt[wt]=Mt;let Ot=this._getCssBuild(Mt),kt=this._gatherStyles(Mt),Dt={is:wt,extends:Lt,__cssBuild:Ot};this.nativeShadow||tt.dom(Mt.content,wt);let Ht=Et.detectMixin(kt),Ut=_(kt);Ht&&this.nativeCss&&!this.nativeCssApply&&Et.transformRules(Ut,wt),Mt._styleAst=Ut;let Ft=[];if(this.nativeCss||(Ft=ct.decorateStyles(Mt._styleAst,Dt)),!Ft.length||this.nativeCss){let jt=this.nativeShadow?Mt.content:null,qt=mt[wt],Bt=this._generateStaticStyle(Dt,Mt._styleAst,jt,qt);Mt._style=Bt}Mt._ownPropertyNames=Ft}}_generateStaticStyle(Mt,wt,Lt,Ot){let kt=tt.elementStyles(Mt,wt);if(kt.length)return he(kt,Mt.is,Lt,Ot)}_prepareHost(Mt){let Lt,wt=Mt.getAttribute('is')||Mt.localName;wt!==Mt.localName&&(Lt=Mt.localName);let Dt,Ht,Ut,Ot=mt[wt],kt=rt[wt];return kt&&(Dt=kt._styleAst,Ht=kt._ownPropertyNames,Ut=kt._cssBuild),lt.set(Mt,new lt(Dt,Ot,Ht,wt,Lt,Ut))}applyStyle(Mt,wt){let Lt=Mt.getAttribute('is')||Mt.localName,Ot=lt.get(Mt),kt=!!Ot;if(Ot||(Ot=this._prepareHost(Mt)),this._isRootOwner(Mt)||(this._elementsHaveApplied=!0),window.CustomStyle){let Dt=window.CustomStyle;if(Dt._documentDirty){if(Dt.findStyles(),this.nativeCss?!this.nativeCssApply&&Dt._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),Dt.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),kt))return}}if(wt&&(Ot.overrideStyleProperties=Ot.overrideStyleProperties||{},Object.assign(Ot.overrideStyleProperties,wt)),this.nativeCss){Ot.overrideStyleProperties&&this._updateNativeProperties(Mt,Ot.overrideStyleProperties);let Dt=rt[Lt];if(!Dt&&!this._isRootOwner(Mt))return;if(Dt&&Dt._applyShimInvalid&&Dt._style){if(Dt._validating||(Et.transformRules(Dt._styleAst,Lt),Dt._style.textContent=tt.elementStyles(Mt,Ot.styleRules),lt.startValidating(Lt)),this.nativeShadow){let Ht=Mt.shadowRoot;if(Ht){let Ut=Ht.querySelector('style');Ut.textContent=tt.elementStyles(Mt,Ot.styleRules)}}Ot.styleRules=Dt._styleAst}}else this._updateProperties(Mt,Ot),Ot.ownStylePropertyNames&&Ot.ownStylePropertyNames.length&&this._applyStyleProperties(Mt,Ot);if(kt){let Dt=this._isRootOwner(Mt)?Mt:Mt.shadowRoot;Dt&&this._applyToDescendants(Dt)}}_applyToDescendants(Mt){let wt=Mt.children||Mt.childNodes;for(let Ot,Lt=0;Lt<wt.length;Lt++)Ot=wt[Lt],Ot.shadowRoot&&this.applyStyle(Ot),this._applyToDescendants(Ot)}_styleOwnerForNode(Mt){let wt=Mt.getRootNode(),Lt=wt.host;return Lt?lt.get(Lt)?Lt:this._styleOwnerForNode(Lt):this._documentOwner}_isRootOwner(Mt){return Mt===this._documentOwner}_applyStyleProperties(Mt,wt){let Lt=Mt.getAttribute('is')||Mt.localName,Ot=At.fetch(Lt,wt.styleProperties,wt.ownStylePropertyNames),kt=Ot&&Ot.scopeSelector,Dt=Ot?Ot.styleElement:null,Ht=wt.scopeSelector;wt.scopeSelector=kt||this._generateScopeSelector(Lt);let Ut=ct.applyElementStyle(Mt,wt.styleProperties,wt.scopeSelector,Dt);return this.nativeShadow||ct.applyElementScopeSelector(Mt,wt.scopeSelector,Ht),Ot||At.store(Lt,wt.styleProperties,Ut,wt.scopeSelector),Ut}_updateProperties(Mt,wt){let Lt=this._styleOwnerForNode(Mt),Ot=lt.get(Lt),kt=Ot.styleProperties,Dt=Object.create(kt||null),Ht=ct.hostAndRootPropertiesForScope(Mt,wt.styleRules),Ut=ct.propertyDataFromStyles(Ot.styleRules,Mt),Ft=Ut.properties;Object.assign(Dt,Ht.hostProps,Ft,Ht.rootProps),this._mixinOverrideStyles(Dt,wt.overrideStyleProperties),ct.reify(Dt),wt.styleProperties=Dt}_mixinOverrideStyles(Mt,wt){for(let Lt in wt){let Ot=wt[Lt];(Ot||0===Ot)&&(Mt[Lt]=Ot)}}_updateNativeProperties(Mt,wt){for(let Lt in wt)null===Lt?Mt.style.removeProperty(Lt):Mt.style.setProperty(Lt,wt[Lt])}updateStyles(Mt){this.applyStyle(this._documentOwner,Mt)}_transformCustomStyleForDocument(Mt){let wt=me(Mt);ye(wt,Lt=>{we?tt.normalizeRootSelector(Lt):tt.documentRule(Lt),this.nativeCss&&!this.nativeCssApply&&Et.transformRule(Lt)}),this.nativeCss?Mt.textContent=pe(wt):this._documentOwnerStyleInfo.styleRules.rules.push(wt)}_revalidateApplyShim(Mt){if(this.nativeCss&&!this.nativeCssApply){let wt=me(Mt);Et.transformRules(wt),Mt.textContent=pe(wt)}}_applyCustomStyleToDocument(Mt){this.nativeCss||ct.applyCustomStyle(Mt,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(Mt,wt){let Lt;if(!this.nativeCss){let Ot=lt.get(Mt)||lt.get(this._styleOwnerForNode(Mt));Lt=Ot.styleProperties[wt]}return Lt=Lt||window.getComputedStyle(Mt).getPropertyValue(wt),Lt.trim()}setElementClass(Mt,wt){let Lt=Mt.getRootNode(),Ot=wt?wt.split(/\s/):[],kt=Lt.host&&Lt.host.localName;if(!kt){var Dt=Mt.getAttribute('class');if(Dt){let Ht=Dt.split(/\s/);for(let Ut=0;Ut<Ht.length;Ut++)if(Ht[Ut]===tt.SCOPE_NAME){kt=Ht[Ut+1];break}}}if(kt&&Ot.push(tt.SCOPE_NAME,kt),!this.nativeCss){let Ht=lt.get(Mt);Ht&&Ht.scopeSelector&&Ot.push(ct.XSCOPE_NAME,Ht.scopeSelector)}be(Mt,Ot.join(' '))}_styleInfoForNode(Mt){return lt.get(Mt)}}window.ShadyCSS=new vt;let xt=window.ShadyCSS,Tt=!1,Rt=[],It=null;class Pt extends HTMLElement{static get _customStyles(){return Rt}static get processHook(){return It}static set processHook(Mt){It=Mt}static get _documentDirty(){return Tt}static findStyles(){for(let wt,Mt=0;Mt<Rt.length;Mt++)if(wt=Rt[Mt],!wt._style){let Lt=wt.querySelector('style');if(!Lt)continue;if(Lt.__appliedElement)for(let kt,Ot=0;Ot<Lt.attributes.length;Ot++)kt=Lt.attributes[Ot],Lt.__appliedElement.setAttribute(kt.name,kt.value);wt._style=Lt.__appliedElement||Lt,It&&It(wt._style),xt._transformCustomStyleForDocument(wt._style)}}static _revalidateApplyShim(){for(let wt,Mt=0;Mt<Rt.length;Mt++)wt=Rt[Mt],wt._style&&xt._revalidateApplyShim(wt._style)}static applyStyles(){for(let wt,Mt=0;Mt<Rt.length;Mt++)wt=Rt[Mt],wt._style&&xt._applyCustomStyleToDocument(wt._style);Tt=!1}constructor(){super(),Rt.push(this),Ne()}}window.CustomStyle=Pt,window.customElements.define('custom-style',Pt),function(){'use strict';if(customElements&&customElements.polyfillWrapFlushCallback){function wt(){if(Lt){let kt=Lt;Lt=null,kt()}}let Lt,Ot=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(kt){Lt=kt,Ot(wt)}),HTMLImports.whenReady=function(kt){Ot(function(){wt(),kt()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var wt=document.createElement('style');wt.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var Lt=document.querySelector('head');Lt.insertBefore(wt,Lt.firstChild)}(window.WebComponents)})();
//# sourceMappingURL=webcomponents-hi-ce.js.map