mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
7 lines
104 KiB
JavaScript
7 lines
104 KiB
JavaScript
(function(){'use strict';function ee(jt){return jt=te(jt),re(oe(jt),jt)}function te(jt){return jt.replace(Ie.comments,'').replace(Ie.port,'')}function oe(jt){let Wt={start:0,end:jt.length},Bt=Wt;for(let Kt=0,Gt=jt.length;Kt<Gt;Kt++)if(jt[Kt]===Re){Bt.rules||(Bt.rules=[]);let Xt=Bt,Vt=Xt.rules[Xt.rules.length-1];Bt={start:Kt+1,parent:Xt,previous:Vt},Xt.rules.push(Bt)}else jt[Kt]===xe&&(Bt.end=Kt+1,Bt=Bt.parent||Wt);return Wt}function re(jt,Wt){let Bt=Wt.substring(jt.start,jt.end-1);if(jt.parsedCssText=jt.cssText=Bt.trim(),jt.parent){let Gt=jt.previous?jt.previous.end:jt.parent.start;Bt=Wt.substring(Gt,jt.start-1),Bt=ne(Bt),Bt=Bt.replace(Ie.multipleSpaces,' '),Bt=Bt.substring(Bt.lastIndexOf(';')+1);let Xt=jt.parsedSelector=jt.selector=Bt.trim();jt.atRule=0===Xt.indexOf('@'),jt.atRule?0===Xt.indexOf('@media')?jt.type=Pe.MEDIA_RULE:Xt.match(Ie.keyframesRule)&&(jt.type=Pe.KEYFRAMES_RULE,jt.keyframesName=jt.selector.split(Ie.multipleSpaces).pop()):0===Xt.indexOf(Me)?jt.type=Pe.MIXIN_RULE:jt.type=Pe.STYLE_RULE}let Kt=jt.rules;if(Kt)for(let Vt,Gt=0,Xt=Kt.length;Gt<Xt&&(Vt=Kt[Gt]);Gt++)re(Vt,Wt);return jt}function ne(jt){return jt.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let Wt=arguments[1],Bt=6-Wt.length;for(;Bt--;)Wt='0'+Wt;return'\\'+Wt})}function se(jt,Wt,Bt){Bt=Bt||'';let Kt='';if(jt.cssText||jt.rules){let Gt=jt.rules;if(Gt&&!ae(Gt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Kt=se(Yt,Wt,Kt);else Kt=Wt?jt.cssText:le(jt.cssText),Kt=Kt.trim(),Kt&&(Kt=' '+Kt+'\n')}return Kt&&(jt.selector&&(Bt+=jt.selector+' '+Re+'\n'),Bt+=Kt,jt.selector&&(Bt+=xe+'\n\n')),Bt}function ae(jt){return 0===jt[0].selector.indexOf(Me)}function le(jt){return jt=ie(jt),de(jt)}function ie(jt){return jt.replace(Ie.customProp,'').replace(Ie.mixinProp,'')}function de(jt){return jt.replace(Ie.mixinApply,'').replace(Ie.varApply,'')}function he(jt){jt&&(Le=Le&&!jt.shimcssproperties,De=De&&!jt.shimshadow)}function _e(jt,Wt){return'string'==typeof jt&&(jt=ee(jt)),Wt&&ye(jt,Wt),se(jt,Le)}function ue(jt){return!jt.__cssRules&&jt.textContent&&(jt.__cssRules=ee(jt.textContent)),jt.__cssRules}function me(jt){return jt.parent&&jt.parent.type===Pe.KEYFRAMES_RULE}function ye(jt,Wt,Bt,Kt){if(jt){let Gt=!1;if(Kt&&jt.type===Pe.MEDIA_RULE){let Vt=jt.selector.match(Fe.MEDIA_MATCH);Vt&&!window.matchMedia(Vt[1]).matches&&(Gt=!0)}jt.type===Pe.STYLE_RULE?Wt(jt):Bt&&jt.type===Pe.KEYFRAMES_RULE?Bt(jt):jt.type===Pe.MIXIN_RULE&&(Gt=!0);let Xt=jt.rules;if(Xt&&!Gt)for(let zt,Vt=0,Yt=Xt.length;Vt<Yt&&(zt=Xt[Vt]);Vt++)ye(zt,Wt,Bt,Kt)}}function ge(jt,Wt,Bt,Kt){let Gt=be(jt,Wt);return fe(Gt,Bt,Kt)}function fe(jt,Wt,Bt){Wt=Wt||document.head;let Kt=Bt&&Bt.nextSibling||Wt.firstChild;return He=jt,Wt.insertBefore(jt,Kt)}function be(jt,Wt){let Bt=document.createElement('style');return Wt&&Bt.setAttribute('scope',Wt),Bt.textContent=jt,Bt}function ve(jt){let Wt=document.createComment(' Shady DOM styles for '+jt+' '),Bt=He?He.nextSibling:null,Kt=document.head;return Kt.insertBefore(Wt,Bt||Kt.firstChild),He=Wt,Wt}function Ne(jt,Wt){let Bt=0;for(let Kt=Wt,Gt=jt.length;Kt<Gt;Kt++)if('('===jt[Kt])Bt++;else if(')'===jt[Kt]&&0==--Bt)return Kt;return-1}function Ee(jt,Wt){let Bt=jt.indexOf('var(');if(-1===Bt)return Wt(jt,'','','');let Kt=Ne(jt,Bt+3),Gt=jt.substring(Bt+4,Kt),Xt=jt.substring(0,Bt),Vt=Ee(jt.substring(Kt+1),Wt),Yt=Gt.indexOf(',');if(-1===Yt)return Wt(Xt,Gt.trim(),'',Vt);let zt=Gt.substring(0,Yt).trim(),Jt=Gt.substring(Yt+1).trim();return Wt(Xt,zt,Jt,Vt)}function Se(jt,Wt){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(jt,'class',Wt):jt.setAttribute('class',Wt)}function Ce(jt,Wt){let Bt=parseInt(jt/32);Wt[Bt]=(Wt[Bt]||0)|1<<jt%32}function Te(){Ht||(Ht=!0,window.HTMLImports?window.HTMLImports.whenReady(Ae):'complete'===document.readyState?Ae():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&Ae()}))}function Ae(){requestAnimationFrame(()=>{(Ht||kt._elementsHaveApplied)&&kt.updateStyles(),Ht=!1})}(function(){'use strict';var Wt=function(){var zt=document.createEvent('Event');return zt.initEvent('foo',!0,!0),zt.preventDefault(),zt.defaultPrevented}();if(!Wt){var Bt=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(Bt.call(this),Object.defineProperty(this,'defaultPrevented',{get:function(){return!0},configurable:!0}))}}var Kt=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||Kt&&'function'!=typeof window.CustomEvent)&&(window.CustomEvent=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('CustomEvent');return $t.initCustomEvent(zt,!!Jt.bubbles,!!Jt.cancelable,Jt.detail),$t},window.CustomEvent.prototype=window.Event.prototype),!window.Event||Kt&&'function'!=typeof window.Event){var Gt=window.Event;if(window.Event=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('Event');return $t.initEvent(zt,!!Jt.bubbles,!!Jt.cancelable),$t},Gt)for(var Xt in Gt)window.Event[Xt]=Gt[Xt];window.Event.prototype=Gt.prototype}if(!window.MouseEvent||Kt&&'function'!=typeof window.MouseEvent){var Vt=window.MouseEvent;if(window.MouseEvent=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('MouseEvent');return $t.initMouseEvent(zt,!!Jt.bubbles,!!Jt.cancelable,Jt.view||window,Jt.detail,Jt.screenX,Jt.screenY,Jt.clientX,Jt.clientY,Jt.ctrlKey,Jt.altKey,Jt.shiftKey,Jt.metaKey,Jt.button,Jt.relatedTarget),$t},Vt)for(var Xt in Vt)window.MouseEvent[Xt]=Vt[Xt];window.MouseEvent.prototype=Vt.prototype}if(Array.from||(Array.from=function(zt){return[].slice.call(zt)}),!Object.assign){var Yt=function(zt,Jt){for(var Qt,$t=Object.getOwnPropertyNames(Jt),Zt=0;Zt<$t.length;Zt++)Qt=$t[Zt],zt[Qt]=Jt[Qt]};Object.assign=function(zt){for(var Qt,$t=[].slice.call(arguments,1),Zt=0;Zt<$t.length;Zt++)Qt=$t[Zt],Qt&&Yt(zt,Qt);return zt}}})(window.WebComponents),function(jt){'use strict';function Wt(no){return Zt[no]!==void 0}function Bt(){Yt.call(this),this._isInvalid=!0}function Kt(no){return''==no&&Bt.call(this),no.toLowerCase()}function Gt(no){var so=no.charCodeAt(0);return 32<so&&127>so&&-1==[34,35,60,62,63,96].indexOf(so)?no:encodeURIComponent(no)}function Xt(no){var so=no.charCodeAt(0);return 32<so&&127>so&&-1==[34,35,60,62,96].indexOf(so)?no:encodeURIComponent(no)}function Vt(no,so,ao){function lo(So){uo.push(So)}var io=so||'scheme start',po=0,co='',ho=!1,_o=!1,uo=[];loop:for(;(no[po-1]!=eo||0==po)&&!this._isInvalid;){var mo=no[po];switch(io){case'scheme start':if(mo&&to.test(mo))co+=mo.toLowerCase(),io='scheme';else if(!so){co='',io='no scheme';continue}else{lo('Invalid scheme.');break loop}break;case'scheme':if(mo&&oo.test(mo))co+=mo.toLowerCase();else if(':'==mo){if(this._scheme=co,co='',so)break loop;Wt(this._scheme)&&(this._isRelative=!0),io='file'==this._scheme?'relative':this._isRelative&&ao&&ao._scheme==this._scheme?'relative or authority':this._isRelative?'authority first slash':'scheme data'}else if(!so){co='',po=0,io='no scheme';continue}else if(eo==mo)break loop;else{lo('Code point not allowed in scheme: '+mo);break loop}break;case'scheme data':'?'==mo?(this._query='?',io='query'):'#'==mo?(this._fragment='#',io='fragment'):eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._schemeData+=Gt(mo));break;case'no scheme':if(!ao||!Wt(ao._scheme))lo('Missing scheme.'),Bt.call(this);else{io='relative';continue}break;case'relative or authority':if('/'==mo&&'/'==no[po+1])io='authority ignore slashes';else{lo('Expected /, got: '+mo),io='relative';continue}break;case'relative':if(this._isRelative=!0,'file'!=this._scheme&&(this._scheme=ao._scheme),eo==mo){this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query=ao._query,this._username=ao._username,this._password=ao._password;break loop}else if('/'==mo||'\\'==mo)'\\'==mo&&lo('\\ is an invalid code point.'),io='relative slash';else if('?'==mo)this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query='?',this._username=ao._username,this._password=ao._password,io='query';else if('#'==mo)this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query=ao._query,this._fragment='#',this._username=ao._username,this._password=ao._password,io='fragment';else{var yo=no[po+1],go=no[po+2];'file'==this._scheme&&to.test(mo)&&(':'==yo||'|'==yo)&&(eo==go||'/'==go||'\\'==go||'?'==go||'#'==go)||(this._host=ao._host,this._port=ao._port,this._username=ao._username,this._password=ao._password,this._path=ao._path.slice(),this._path.pop()),io='relative path';continue}break;case'relative slash':if('/'==mo||'\\'==mo)'\\'==mo&&lo('\\ is an invalid code point.'),io='file'==this._scheme?'file host':'authority ignore slashes';else{'file'!=this._scheme&&(this._host=ao._host,this._port=ao._port,this._username=ao._username,this._password=ao._password),io='relative path';continue}break;case'authority first slash':if('/'==mo)io='authority second slash';else{lo('Expected \'/\', got: '+mo),io='authority ignore slashes';continue}break;case'authority second slash':if(io='authority ignore slashes','/'!=mo){lo('Expected \'/\', got: '+mo);continue}break;case'authority ignore slashes':if('/'!=mo&&'\\'!=mo){io='authority';continue}else lo('Expected authority, got: '+mo);break;case'authority':if('@'==mo){ho&&(lo('@ already seen.'),co+='%40'),ho=!0;for(var bo,fo=0;fo<co.length;fo++){if(bo=co[fo],'\t'==bo||'\n'==bo||'\r'==bo){lo('Invalid whitespace in authority.');continue}if(':'==bo&&null===this._password){this._password='';continue}var vo=Gt(bo);null===this._password?this._username+=vo:this._password+=vo}co=''}else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){po-=co.length,co='',io='host';continue}else co+=mo;break;case'file host':if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){2==co.length&&to.test(co[0])&&(':'==co[1]||'|'==co[1])?io='relative path':0==co.length?io='relative path start':(this._host=Kt.call(this,co),co='',io='relative path start');continue}else'\t'==mo||'\n'==mo||'\r'==mo?lo('Invalid whitespace in file host.'):co+=mo;break;case'host':case'hostname':if(':'==mo&&!_o){if(this._host=Kt.call(this,co),co='',io='port','hostname'==so)break loop;}else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){if(this._host=Kt.call(this,co),co='',io='relative path start',so)break loop;continue}else'\t'!=mo&&'\n'!=mo&&'\r'!=mo?('['==mo?_o=!0:']'==mo&&(_o=!1),co+=mo):lo('Invalid code point in host/hostname: '+mo);break;case'port':if(/[0-9]/.test(mo))co+=mo;else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo||so){if(''!=co){var No=parseInt(co,10);No!=Zt[this._scheme]&&(this._port=No+''),co=''}if(so)break loop;io='relative path start';continue}else'\t'==mo||'\n'==mo||'\r'==mo?lo('Invalid code point in port: '+mo):Bt.call(this);break;case'relative path start':if('\\'==mo&&lo('\'\\\' not allowed in path.'),io='relative path','/'!=mo&&'\\'!=mo)continue;break;case'relative path':if(eo==mo||'/'==mo||'\\'==mo||!so&&('?'==mo||'#'==mo)){'\\'==mo&&lo('\\ not allowed in relative path.');var Eo;(Eo=Qt[co.toLowerCase()])&&(co=Eo),'..'==co?(this._path.pop(),'/'!=mo&&'\\'!=mo&&this._path.push('')):'.'==co&&'/'!=mo&&'\\'!=mo?this._path.push(''):'.'!=co&&('file'==this._scheme&&0==this._path.length&&2==co.length&&to.test(co[0])&&'|'==co[1]&&(co=co[0]+':'),this._path.push(co)),co='','?'==mo?(this._query='?',io='query'):'#'==mo&&(this._fragment='#',io='fragment')}else'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(co+=Gt(mo));break;case'query':so||'#'!=mo?eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._query+=Xt(mo)):(this._fragment='#',io='fragment');break;case'fragment':eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._fragment+=mo);}po++}}function Yt(){this._scheme='',this._schemeData='',this._username='',this._password=null,this._host='',this._port='',this._path=[],this._query='',this._fragment='',this._isInvalid=!1,this._isRelative=!1}function zt(no,so){so===void 0||so instanceof zt||(so=new zt(so+'')),this._url=no,Yt.call(this);var ao=no.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,'');Vt.call(this,ao,null,so)}var Jt=!1;if(!jt.forceJURL)try{var $t=new URL('b','http://a');$t.pathname='c%20d',Jt='http://a/c%20d'===$t.href}catch(no){}if(!Jt){var Zt=Object.create(null);Zt.ftp=21,Zt.file=0,Zt.gopher=70,Zt.http=80,Zt.https=443,Zt.ws=80,Zt.wss=443;var Qt=Object.create(null);Qt['%2e']='.',Qt['.%2e']='..',Qt['%2e.']='..',Qt['%2e%2e']='..';var eo,to=/[a-zA-Z]/,oo=/[a-zA-Z0-9\+\-\.]/;zt.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var no='';return(''!=this._username||null!=this._password)&&(no=this._username+(null==this._password?'':':'+this._password)+'@'),this.protocol+(this._isRelative?'//'+no+this.host:'')+this.pathname+this._query+this._fragment},set href(no){Yt.call(this),Vt.call(this,no)},get protocol(){return this._scheme+':'},set protocol(no){this._isInvalid||Vt.call(this,no+':','scheme start')},get host(){return this._isInvalid?'':this._port?this._host+':'+this._port:this._host},set host(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'host')},get hostname(){return this._host},set hostname(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'hostname')},get port(){return this._port},set port(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'port')},get pathname(){return this._isInvalid?'':this._isRelative?'/'+this._path.join('/'):this._schemeData},set pathname(no){this._isInvalid||!this._isRelative||(this._path=[],Vt.call(this,no,'relative path start'))},get search(){return this._isInvalid||!this._query||'?'==this._query?'':this._query},set search(no){this._isInvalid||!this._isRelative||(this._query='?','?'==no[0]&&(no=no.slice(1)),Vt.call(this,no,'query'))},get hash(){return this._isInvalid||!this._fragment||'#'==this._fragment?'':this._fragment},set hash(no){this._isInvalid||(this._fragment='#','#'==no[0]&&(no=no.slice(1)),Vt.call(this,no,'fragment'))},get origin(){var no;if(this._isInvalid||!this._scheme)return'';switch(this._scheme){case'data':case'file':case'javascript':case'mailto':return'null';}return no=this.host,no?this._scheme+'://'+no:''}};var ro=jt.URL;ro&&(zt.createObjectURL=function(){return ro.createObjectURL.apply(ro,arguments)},zt.revokeObjectURL=function(no){ro.revokeObjectURL(no)}),jt.URL=zt}}(window),function(){var jt='undefined'==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var eo=Document.prototype.importNode;Document.prototype.importNode=function(){var to=eo.apply(this,arguments);if(to.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var oo=this.createDocumentFragment();return oo.appendChild(to),oo}return to}}();var Wt=Node.prototype.cloneNode,Bt=Document.prototype.createElement,Kt=Document.prototype.importNode,Gt=function(){if(!jt){var eo=document.createElement('template'),to=document.createElement('template');to.content.appendChild(document.createElement('div')),eo.content.appendChild(to);var oo=eo.cloneNode(!0);return 0===oo.content.childNodes.length||0===oo.content.firstChild.content.childNodes.length||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}(),Xt='template',Vt=function(){};if(jt){function eo(ro){Object.defineProperty(ro,'innerHTML',{get:function(){for(var no='',so=this.content.firstChild;so;so=so.nextSibling)no+=so.outerHTML||oo(so.data);return no},set:function(no){for(Yt.body.innerHTML=no,Vt.bootstrap(Yt);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;Yt.body.firstChild;)this.content.appendChild(Yt.body.firstChild)},configurable:!0})}function to(ro){return'&'===ro?'&':'<'===ro?'<':'>'===ro?'>':'\xA0'===ro?' ':void 0}function oo(ro){return ro.replace(Qt,to)}var Yt=document.implementation.createHTMLDocument('template'),zt=!0,Jt=document.createElement('style');Jt.textContent=Xt+'{display:none;}';var $t=document.head;$t.insertBefore(Jt,$t.firstElementChild),Vt.prototype=Object.create(HTMLElement.prototype);var Zt=!document.createElement('div').hasOwnProperty('innerHTML');Vt.decorate=function(ro){if(!ro.content){ro.content=Yt.createDocumentFragment();for(var no;no=ro.firstChild;)ro.content.appendChild(no);if(Zt)ro.__proto__=Vt.prototype;else if(ro.cloneNode=function(so){return Vt._cloneNode(this,so)},zt)try{eo(ro)}catch(so){zt=!1}Vt.bootstrap(ro.content)}},eo(Vt.prototype),Vt.bootstrap=function(ro){for(var lo,no=ro.querySelectorAll(Xt),so=0,ao=no.length;so<ao&&(lo=no[so]);so++)Vt.decorate(lo)},document.addEventListener('DOMContentLoaded',function(){Vt.bootstrap(document)}),Document.prototype.createElement=function(){'use strict';var ro=Bt.apply(this,arguments);return'template'===ro.localName&&Vt.decorate(ro),ro};var Qt=/[&\u00A0<>]/g}(jt||Gt)&&(Vt._cloneNode=function(eo,to){var oo=Wt.call(eo,!1);return this.decorate&&this.decorate(oo),to&&(oo.content.appendChild(Wt.call(eo.content,!0)),this.fixClonedDom(oo.content,eo.content)),oo},Vt.prototype.cloneNode=function(eo){return Vt._cloneNode(this,eo)},Vt.fixClonedDom=function(eo,to){if(to.querySelectorAll)for(var ao,lo,oo=to.querySelectorAll(Xt),ro=eo.querySelectorAll(Xt),no=0,so=ro.length;no<so;no++)lo=oo[no],ao=ro[no],this.decorate&&this.decorate(lo),ao.parentNode.replaceChild(lo.cloneNode(!0),ao)},Node.prototype.cloneNode=function(eo){var to;if(this instanceof DocumentFragment){if(!eo)return this.ownerDocument.createDocumentFragment();to=this.ownerDocument.importNode(this,!0)}else to=Wt.call(this,eo);return eo&&Vt.fixClonedDom(to,this),to},Document.prototype.importNode=function(eo,to){if(eo.localName===Xt)return Vt._cloneNode(eo,to);var oo=Kt.call(this,eo,to);return to&&Vt.fixClonedDom(oo,eo),oo},Gt&&(window.HTMLTemplateElement.prototype.cloneNode=function(eo){return Vt._cloneNode(this,eo)})),jt&&(window.HTMLTemplateElement=Vt)}(),!function(jt,Wt){'object'==typeof exports&&'undefined'!=typeof module?module.exports=Wt():'function'==typeof define&&define.amd?define(Wt):jt.ES6Promise=Wt()}(window,function(){'use strict';function jt(Jo){return'function'==typeof Jo||'object'==typeof Jo&&null!==Jo}function Wt(Jo){return'function'==typeof Jo}function Xt(){return'undefined'==typeof Oo?zt():function(){Oo(Jt)}}function zt(){var Jo=setTimeout;return function(){return Jo(Jt,1)}}function Jt(){for(var Jo=0;Jo<wo;Jo+=2){var $o=jo[Jo],Zo=jo[Jo+1];$o(Zo),jo[Jo]=void 0,jo[Jo+1]=void 0}wo=0}function Zt(Jo,$o){var Zo=arguments,Qo=this,er=new this.constructor(eo);void 0===er[Bo]&&vo(er);var tr=Qo._state;return tr?!function(){var or=Zo[tr-1];Lo(function(){return go(tr,er,or,Qo._result)})}():_o(Qo,er,Jo,$o),er}function Qt(Jo){var $o=this;if(Jo&&'object'==typeof Jo&&Jo.constructor===$o)return Jo;var Zo=new $o(eo);return io(Zo,Jo),Zo}function eo(){}function to(){return new TypeError('You cannot resolve a promise with itself')}function oo(){return new TypeError('A promises callback cannot return that same promise.')}function ro(Jo){try{return Jo.then}catch($o){return Vo.error=$o,Vo}}function no(Jo,$o,Zo,Qo){try{Jo.call($o,Zo,Qo)}catch(er){return er}}function so(Jo,$o,Zo){Lo(function(Qo){var er=!1,tr=no(Zo,$o,function(or){er||(er=!0,$o===or?co(Qo,or):io(Qo,or))},function(or){er||(er=!0,ho(Qo,or))},'Settle: '+(Qo._label||' unknown promise'));!er&&tr&&(er=!0,ho(Qo,tr))},Jo)}function ao(Jo,$o){$o._state===Go?co(Jo,$o._result):$o._state===Xo?ho(Jo,$o._result):_o($o,void 0,function(Zo){return io(Jo,Zo)},function(Zo){return ho(Jo,Zo)})}function lo(Jo,$o,Zo){$o.constructor===Jo.constructor&&Zo===Zt&&$o.constructor.resolve===Qt?ao(Jo,$o):Zo===Vo?ho(Jo,Vo.error):void 0===Zo?co(Jo,$o):Wt(Zo)?so(Jo,$o,Zo):co(Jo,$o)}function io(Jo,$o){Jo===$o?ho(Jo,to()):jt($o)?lo(Jo,$o,ro($o)):co(Jo,$o)}function po(Jo){Jo._onerror&&Jo._onerror(Jo._result),uo(Jo)}function co(Jo,$o){Jo._state===Ko&&(Jo._result=$o,Jo._state=Go,0!==Jo._subscribers.length&&Lo(uo,Jo))}function ho(Jo,$o){Jo._state===Ko&&(Jo._state=Xo,Jo._result=$o,Lo(po,Jo))}function _o(Jo,$o,Zo,Qo){var er=Jo._subscribers,tr=er.length;Jo._onerror=null,er[tr]=$o,er[tr+Go]=Zo,er[tr+Xo]=Qo,0===tr&&Jo._state&&Lo(uo,Jo)}function uo(Jo){var $o=Jo._subscribers,Zo=Jo._state;if(0!==$o.length){for(var Qo=void 0,er=void 0,tr=Jo._result,or=0;or<$o.length;or+=3)Qo=$o[or],er=$o[or+Zo],Qo?go(Zo,Qo,er,tr):er(tr);Jo._subscribers.length=0}}function mo(){this.error=null}function yo(Jo,$o){try{return Jo($o)}catch(Zo){return Yo.error=Zo,Yo}}function go(Jo,$o,Zo,Qo){var er=Wt(Zo),tr,or,rr,nr;if(!er)tr=Qo,rr=!0;else if(tr=yo(Zo,Qo),tr===Yo?(nr=!0,or=tr.error,tr=null):rr=!0,$o===tr)return void ho($o,oo());$o._state!==Ko||(er&&rr?io($o,tr):nr?ho($o,or):Jo===Go?co($o,tr):Jo===Xo&&ho($o,tr))}function fo(Jo,$o){try{$o(function(Zo){io(Jo,Zo)},function(Zo){ho(Jo,Zo)})}catch(Zo){ho(Jo,Zo)}}function bo(){return zo++}function vo(Jo){Jo[Bo]=zo++,Jo._state=void 0,Jo._result=void 0,Jo._subscribers=[]}function No(Jo,$o){this._instanceConstructor=Jo,this.promise=new Jo(eo),this.promise[Bo]||vo(this.promise),Mo($o)?(this._input=$o,this.length=$o.length,this._remaining=$o.length,this._result=Array(this.length),0===this.length?co(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&co(this.promise,this._result))):ho(this.promise,Eo())}function Eo(){return new Error('Array Methods must be provided an Array')}function Ao(){throw new TypeError('You must pass a resolver function as the first argument to the promise constructor')}function Po(){throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.')}function Ro(Jo){this[Bo]=bo(),this._result=this._state=void 0,this._subscribers=[],eo!==Jo&&('function'!=typeof Jo&&Ao(),this instanceof Ro?fo(this,Jo):Po())}var Io=Array.isArray?Array.isArray:function(Jo){return'[object Array]'===Object.prototype.toString.call(Jo)};var Mo=Io,wo=0,Oo=void 0,Do=void 0,Lo=function(Jo,$o){jo[wo]=Jo,jo[wo+1]=$o,wo+=2,2==wo&&(Do?Do(Jt):Wo())},ko='undefined'==typeof window?void 0:window,Ho=ko||{},Fo=Ho.MutationObserver||Ho.WebKitMutationObserver,Uo='undefined'==typeof self&&'undefined'!=typeof process&&'[object process]'==={}.toString.call(process),qo='undefined'!=typeof Uint8ClampedArray&&'undefined'!=typeof importScripts&&'undefined'!=typeof MessageChannel,jo=Array(1e3),Wo;Wo=Uo?function(){return function(){return process.nextTick(Jt)}}():Fo?function(){var Jo=0,$o=new Fo(Jt),Zo=document.createTextNode('');return $o.observe(Zo,{characterData:!0}),function(){Zo.data=Jo=++Jo%2}}():qo?function(){var Jo=new MessageChannel;return Jo.port1.onmessage=Jt,function(){return Jo.port2.postMessage(0)}}():void 0===ko&&'function'==typeof require?function(){try{var Jo=require,$o=Jo('vertx');return Oo=$o.runOnLoop||$o.runOnContext,Xt()}catch(Zo){return zt()}}():zt();var Bo=Math.random().toString(36).substring(16),Ko,Go=1,Xo=2,Vo=new mo,Yo=new mo,zo=0;return No.prototype._enumerate=function(){for(var Jo=this.length,$o=this._input,Zo=0;this._state===Ko&&Zo<Jo;Zo++)this._eachEntry($o[Zo],Zo)},No.prototype._eachEntry=function(Jo,$o){var Zo=this._instanceConstructor,Qo=Zo.resolve;if(Qo===Qt){var er=ro(Jo);if(er===Zt&&Jo._state!==Ko)this._settledAt(Jo._state,$o,Jo._result);else if('function'!=typeof er)this._remaining--,this._result[$o]=Jo;else if(Zo===Ro){var tr=new Zo(eo);lo(tr,Jo,er),this._willSettleAt(tr,$o)}else this._willSettleAt(new Zo(function(or){return or(Jo)}),$o)}else this._willSettleAt(Qo(Jo),$o)},No.prototype._settledAt=function(Jo,$o,Zo){var Qo=this.promise;Qo._state===Ko&&(this._remaining--,Jo===Xo?ho(Qo,Zo):this._result[$o]=Zo),0===this._remaining&&co(Qo,this._result)},No.prototype._willSettleAt=function(Jo,$o){var Zo=this;_o(Jo,void 0,function(Qo){return Zo._settledAt(Go,$o,Qo)},function(Qo){return Zo._settledAt(Xo,$o,Qo)})},Ro.all=function(Jo){return new No(this,Jo).promise},Ro.race=function(Jo){var $o=this;return new $o(Mo(Jo)?function(Zo,Qo){for(var er=Jo.length,tr=0;tr<er;tr++)$o.resolve(Jo[tr]).then(Zo,Qo)}:function(Zo,Qo){return Qo(new TypeError('You must pass an array to race.'))})},Ro.resolve=Qt,Ro.reject=function(Jo){var $o=this,Zo=new $o(eo);return ho(Zo,Jo),Zo},Ro._setScheduler=function(Jo){Do=Jo},Ro._setAsap=function(Jo){Lo=Jo},Ro._asap=Lo,Ro.prototype={constructor:Ro,then:Zt,'catch':function(Jo){return this.then(null,Jo)}},Ro.polyfill=function(){var Jo;if('undefined'!=typeof global)Jo=global;else if('undefined'!=typeof self)Jo=self;else try{Jo=Function('return this')()}catch(Qo){throw new Error('polyfill failed because global object is unavailable in this environment')}var $o=Jo.Promise;if($o){var Zo=null;try{Zo=Object.prototype.toString.call($o.resolve())}catch(Qo){}if('[object Promise]'===Zo&&!$o.cast)return}Jo.Promise=Ro},Ro.Promise=Ro,Ro}),ES6Promise.polyfill(),(jt=>{const Wt=!!('import'in document.createElement('link'));let Bt=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return Bt||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const Kt=/(^\/)|(^#)|(^[\w-\d]*:)/,Gt=/(url\()([^)]*)(\))/g,Xt=/(@import[\s]+(?!url\())([^;]*)(;)/g,Vt=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Yt={fixUrls(uo,mo){uo.href&&uo.setAttribute('href',Yt.replaceAttrUrl(uo.getAttribute('href'),mo)),uo.src&&uo.setAttribute('src',Yt.replaceAttrUrl(uo.getAttribute('src'),mo)),'style'===uo.localName&&Yt.resolveUrlsInStyle(uo,mo)},fixUrlAttributes(uo,mo){const yo=['action','src','href','url','style'];for(let fo,go=0;go<yo.length&&(fo=yo[go]);go++){const bo=uo.attributes[fo],vo=bo&&bo.value;vo&&0>vo.search(/({{|\[\[)/)&&(bo.value='style'===fo?Yt.resolveUrlsInCssText(vo,mo):Yt.replaceAttrUrl(vo,mo))}},fixUrlsInTemplates(uo,mo){const yo=uo.querySelectorAll('template');for(let go=0;go<yo.length;go++)Yt.fixUrlsInTemplate(yo[go],mo)},fixUrlsInTemplate(uo,mo){const yo=uo.content||uo,go=yo.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let fo=0;fo<go.length;fo++){const bo=go[fo];'style'==bo.localName?Yt.resolveUrlsInStyle(bo,mo):Yt.fixUrlAttributes(bo,mo)}Yt.fixUrlsInTemplates(yo,mo)},resolveUrlsInStyle(uo,mo){uo.textContent=Yt.resolveUrlsInCssText(uo.textContent,mo)},resolveUrlsInCssText(uo,mo){let yo=Yt.replaceUrls(uo,mo,Gt);return yo=Yt.replaceUrls(yo,mo,Xt),yo},replaceUrls(uo,mo,yo){return uo.replace(yo,(go,fo,bo,vo)=>{let No=bo.replace(/["']/g,'');return mo&&(No=Yt.resolveUrl(No,mo)),fo+'\''+No+'\''+vo})},replaceAttrUrl(uo,mo){return uo&&Kt.test(uo)?uo:Yt.resolveUrl(uo,mo)},resolveUrl(uo,mo){if(void 0===Yt.__workingURL){Yt.__workingURL=!1;try{const go=new URL('b','http://a');go.pathname='c%20d',Yt.__workingURL='http://a/c%20d'===go.href}catch(go){}}if(Yt.__workingURL)return new URL(uo,mo).href;let yo=Yt.__tempDoc;return yo||(yo=document.implementation.createHTMLDocument('temp'),Yt.__tempDoc=yo,yo.__base=yo.createElement('base'),yo.head.appendChild(yo.__base),yo.__anchor=yo.createElement('a')),yo.__base.href=mo,yo.__anchor.href=uo,yo.__anchor.href||uo}},zt={async:!0,load(uo,mo,yo){if(!uo)yo('error: href must be specified');else if(uo.match(/^data:/)){const go=uo.split(','),fo=go[0];let bo=go[1];bo=-1<fo.indexOf(';base64')?atob(bo):decodeURIComponent(bo),mo(bo)}else{const go=new XMLHttpRequest;go.open('GET',uo,zt.async),go.onload=()=>{let fo=go.getResponseHeader('Location');if(fo&&0===fo.indexOf('/')){const vo=location.origin||location.protocol+'//'+location.host;fo=vo+fo}const bo=go.response||go.responseText;304===go.status||0===go.status||200<=go.status&&300>go.status?mo(bo,fo):yo(bo)},go.send()}}},Jt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),$t='link[rel=import]',Zt='import-disable',Qt=`link[rel=stylesheet][href][type=${Zt}]`,eo=`${$t}, ${Qt},
|
|
style:not([type]), link[rel=stylesheet][href]:not([type]),
|
|
script:not([type]), script[type="application/javascript"],
|
|
script[type="text/javascript"]`,to='import-dependency',oo=`${$t}:not(${to})`,ro=`script[${to}]`,no=`style[${to}],
|
|
link[rel=stylesheet][${to}]`;const ao=uo=>{return uo.nodeType===Node.ELEMENT_NODE&&'link'===uo.localName&&'import'===uo.rel},lo=(uo,mo)=>{if(uo.__loaded)mo&&mo();else if('script'===uo.localName&&!uo.src)uo.__loaded=!0,mo&&mo();else{const yo=go=>{uo.removeEventListener(go.type,yo),uo.__loaded=!0,mo&&mo()};uo.addEventListener('load',yo),Jt&&'style'===uo.localName||uo.addEventListener('error',yo)}},io=uo=>{po(()=>co(()=>uo&&uo()))},po=uo=>{if('loading'!==document.readyState)uo();else{const mo=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',mo),uo())};document.addEventListener('readystatechange',mo)}},co=uo=>{let mo=document.querySelectorAll(oo),yo=mo.length;if(!yo)return void uo();for(let bo,go=0,fo=mo.length;go<fo&&(bo=mo[go]);go++)lo(bo,()=>{0==--yo&&uo()})},ho=uo=>{if(Wt)return uo.ownerDocument;let mo=uo.__ownerImport;if(!mo){for(mo=uo;(mo=mo.parentNode||mo.host)&&!ao(mo););uo.__ownerImport=mo}return mo},_o=(uo,mo)=>{if('function'==typeof window.CustomEvent)return new CustomEvent(uo,mo);const yo=document.createEvent('CustomEvent');return yo.initCustomEvent(uo,!!mo.bubbles,!!mo.cancelable,mo.detail),yo};if(Wt){const uo=document.querySelectorAll($t);for(let fo,yo=0,go=uo.length;yo<go&&(fo=uo[yo]);yo++)fo.import&&'loading'===fo.import.readyState||(fo.__loaded=!0);const mo=yo=>{const go=yo.target;ao(go)&&(go.__loaded=!0)};document.addEventListener('load',mo,!0),document.addEventListener('error',mo,!0)}else new class{constructor(){this.documents={},this.inflight=0,this.dynamicImportsMO=new MutationObserver(uo=>this.handleMutations(uo)),po(()=>{this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document)})}loadImports(uo){const mo=uo.querySelectorAll($t);for(let yo=0,go=mo.length;yo<go;yo++)this.loadImport(mo[yo]);this.processImportsIfLoadingDone()}loadImport(uo){const mo=uo.href;if(void 0!==this.documents[mo]){const yo=this.documents[mo];return void(yo&&yo.__loaded&&(uo.import=yo,this.fireEventIfNeeded(uo)))}this.inflight++,this.documents[mo]='pending',zt.load(mo,(yo,go)=>{const fo=this.makeDocument(yo,go||mo);this.documents[mo]=fo,this.inflight--,this.loadImports(fo)},()=>{this.documents[mo]=null,this.inflight--,this.processImportsIfLoadingDone()})}makeDocument(uo,mo){if(!uo)return document.createDocumentFragment();Jt&&(uo=uo.replace(Vt,(Eo,So,Co)=>{return-1===Eo.indexOf('type=')?`${So} type=${Zt} ${Co}`:Eo}));let yo;const go=document.createElement('template');if(go.innerHTML=uo,go.content)yo=go.content;else for(yo=document.createDocumentFragment();go.firstChild;)yo.appendChild(go.firstChild);const fo=yo.querySelector('base');fo&&(mo=Yt.replaceAttrUrl(fo.getAttribute('href'),mo),fo.removeAttribute('href'));const bo=yo.querySelectorAll('dom-module');for(let So,Eo=0;Eo<bo.length&&(So=bo[Eo]);Eo++)So.setAttribute('assetpath',Yt.replaceAttrUrl(So.getAttribute('assetpath')||'',mo));const vo=yo.querySelectorAll(eo);let No=0;for(let Co,Eo=0,So=vo.length;Eo<So&&(Co=vo[Eo]);Eo++)if(lo(Co),Yt.fixUrls(Co,mo),Co.setAttribute(to,''),'script'===Co.localName&&!Co.src&&Co.textContent){const To=No?`-${No}`:'',Ao=Co.textContent+`\n//# sourceURL=${mo}${To}.js\n`;Co.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(Ao)),Co.textContent='',No++}return Yt.fixUrlsInTemplates(yo,mo),yo}processImportsIfLoadingDone(){if(!this.inflight){this.dynamicImportsMO.disconnect(),this.flatten(document);let uo=!1,mo=!1;const yo=()=>{mo&&uo&&(this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.fireEvents())};this.waitForStyles(()=>{mo=!0,yo()}),this.runScripts(()=>{uo=!0,yo()})}}flatten(uo){const mo=uo.querySelectorAll($t);for(let fo,yo=0,go=mo.length;yo<go&&(fo=mo[yo]);yo++){const bo=this.documents[fo.href];fo.import=bo,bo&&bo.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[fo.href]=fo,fo.readyState='loading',fo.import=fo,this.flatten(bo),fo.appendChild(bo))}}runScripts(uo){const mo=document.querySelectorAll(ro),yo=mo.length,go=fo=>{if(fo<yo){const bo=mo[fo],vo=document.createElement('script');bo.removeAttribute(to);for(let No=0,Eo=bo.attributes.length;No<Eo;No++)vo.setAttribute(bo.attributes[No].name,bo.attributes[No].value);Bt=vo,bo.parentNode.replaceChild(vo,bo),lo(vo,()=>{Bt=null,go(fo+1)})}else uo()};go(0)}waitForStyles(uo){const mo=document.querySelectorAll(no);let yo=mo.length;if(!yo)return void uo();const go=Jt&&!!document.querySelector(Qt);for(let vo,fo=0,bo=mo.length;fo<bo&&(vo=mo[fo]);fo++)if(lo(vo,()=>{vo.removeAttribute(to),0==--yo&&uo()}),go&&vo.parentNode!==document.head){let No=ho(vo);for(;No&&ho(No);)No=ho(No);const Eo=vo.parentNode,So=vo.nextSibling,Co=document.createElement(vo.localName);Co.__appliedElement=vo,Co.setAttribute('type','import-placeholder'),No.parentNode===document.head?document.head.insertBefore(vo,No):document.head.appendChild(vo),Eo.insertBefore(Co,So),vo.removeAttribute('type')}}fireEvents(){const uo=document.querySelectorAll($t);for(let yo,mo=uo.length-1;0<=mo&&(yo=uo[mo]);mo--)this.fireEventIfNeeded(yo)}fireEventIfNeeded(uo){if(!uo.__loaded){uo.__loaded=!0,uo.import&&(uo.import.readyState='complete');const mo=uo.import?'load':'error';uo.dispatchEvent(_o(mo,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(uo){for(let mo=0;mo<uo.length;mo++){const yo=uo[mo];if(yo.addedNodes)for(let go=0;go<yo.addedNodes.length;go++){const fo=yo.addedNodes[go];fo&&fo.nodeType===Node.ELEMENT_NODE&&(ao(fo)?this.loadImport(fo):this.loadImports(fo))}}}};io(()=>document.dispatchEvent(_o('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),jt.useNative=Wt,jt.whenReady=io,jt.importForElement=ho})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';window.WebComponents=window.WebComponents||{flags:{}};var Wt=document.querySelector('script[src*="'+'webcomponents-lite.js'+'"]'),Bt={};if(!Bt.noOpts){if(location.search.slice(1).split('&').forEach(function(Jt){var Zt,$t=Jt.split('=');$t[0]&&(Zt=$t[0].match(/wc-(.+)/))&&(Bt[Zt[1]]=$t[1]||!0)}),Wt)for(var Gt,Kt=0;Gt=Wt.attributes[Kt];Kt++)'src'!==Gt.name&&(Bt[Gt.name]=Gt.value||!0);if(Bt.log&&Bt.log.split){var Xt=Bt.log.split(',');Bt.log={},Xt.forEach(function(Jt){Bt.log[Jt]=!0})}else Bt.log={}}WebComponents.flags=Bt;var Vt=window.WebComponents,Yt=Vt.flags.shadydom;Yt&&(window.ShadyDOM=window.ShadyDOM||{},ShadyDOM.force=Yt);var zt=Vt.flags.register||Vt.flags.ce;zt&&window.customElements&&(customElements.forcePolyfill=zt)}(),function(){'use strict';function jt(Bn,Kn,Gn){return{index:Bn,removed:Kn,addedCount:Gn}}function Wt(Bn){return'ShadyRoot'===Bn.__localName}function Gt(Bn,Kn,Gn){(Kn=Object.getOwnPropertyDescriptor(Kn,Bn))&&Object.defineProperty(Gn,Bn,Kn)}function Xt(Bn,Kn){if(Bn&&Kn)for(var Vn,Gn=Object.getOwnPropertyNames(Kn),Xn=0;Xn<Gn.length&&(Vn=Gn[Xn]);Xn++)Gt(Vn,Kn,Bn);return Bn||Kn}function Zt(){kr=!1;for(var Bn=!!Lr.length;Lr.length;)Lr.shift()();return Bn}function Qt(Bn,Kn){return Bn.__shady&&Bn.__shady[Kn]}function to(Bn){return'&'===Bn?'&':'<'===Bn?'<':'>'===Bn?'>':'"'===Bn?'"':'\xA0'===Bn?' ':void 0}function oo(Bn){return Bn.replace(Ur,to)}function ro(Bn){return Bn.replace(qr,to)}function no(Bn){for(var Kn={},Gn=0;Gn<Bn.length;Gn++)Kn[Bn[Gn]]=!0;return Kn}function so(Bn,Kn,Gn){switch(Bn.nodeType){case Node.ELEMENT_NODE:Kn=Bn.localName;for(var zn,Xn='<'+Kn,Vn=Bn.attributes,Yn=0;zn=Vn[Yn];Yn++)Xn+=' '+zn.name+'="'+oo(zn.value)+'"';return Xn+='>',jr[Kn]?Xn:Xn+ao(Bn,Gn)+'</'+Kn+'>';case Node.TEXT_NODE:return Bn=Bn.data,Kn&&Wr[Kn.localName]?Bn:ro(Bn);case Node.COMMENT_NODE:return'<!--'+Bn.data+'-->';default:throw window.console.error(Bn),Error('not implemented');}}function ao(Bn,Kn){'template'===Bn.localName&&(Bn=Bn.content);for(var zn,Gn='',Xn=Kn?Kn(Bn):Bn.childNodes,Vn=0,Yn=Xn.length;Vn<Yn&&(zn=Xn[Vn]);Vn++)Gn+=so(zn,Bn,Kn);return Gn}function _o(Bn){var Kn=[];for(Kr.currentNode=Bn,Bn=Kr.firstChild();Bn;)Kn.push(Bn),Bn=Kr.nextSibling();return Kn}function Eo(Bn){return{get:function(){var Kn=Hr.getProperty(this,Bn);return void 0===Kn?Br[Bn](this):Kn},configurable:!0}}function So(Bn){for(;Bn.firstChild;)Bn.removeChild(Bn.firstChild)}function Co(){return Jr&&Jr.get?Jr.get.call(document):Ar.settings.hasDescriptors?void 0:document.activeElement}function To(Bn){var Kn=Co();if(!Kn)return null;var Gn=!!Ar.isShadyRoot(Bn);if(!(Bn===document||Gn&&Bn.host!==Kn&&Bn.host.contains(Kn)))return null;for(Gn=Ar.ownerShadyRootForNode(Kn);Gn&&Gn!==Bn;)Kn=Gn.host,Gn=Ar.ownerShadyRootForNode(Kn);return Bn===document?Gn?null:Kn:Gn===Bn?Kn:null}function Ao(Bn,Kn,Gn){for(var Xn in Kn){var Vn=Object.getOwnPropertyDescriptor(Bn,Xn);Vn&&Vn.configurable||!Vn&&Gn?Object.defineProperty(Bn,Xn,Kn[Xn]):Gn&&console.warn('Could not define',Xn,'on',Bn)}}function Io(Bn,Kn,Gn){Xr.patchOutsideElementAccessors(Bn),Gn=Gn||null,Bn.__shady=Bn.__shady||{},Kn.__shady=Kn.__shady||{},Gn&&(Gn.__shady=Gn.__shady||{}),Bn.__shady.previousSibling=Gn?Gn.__shady.previousSibling:Kn.lastChild;var Xn=Bn.__shady.previousSibling;Xn&&Xn.__shady&&(Xn.__shady.nextSibling=Bn),(Xn=Bn.__shady.nextSibling=Gn)&&Xn.__shady&&(Xn.__shady.previousSibling=Bn),Bn.__shady.parentNode=Kn,Gn?Gn===Kn.__shady.firstChild&&(Kn.__shady.firstChild=Bn):(Kn.__shady.lastChild=Bn,Kn.__shady.firstChild||(Kn.__shady.firstChild=Bn)),Kn.__shady.childNodes=null}function Do(Bn,Kn,Gn){var Vn,Xn=Ar.ownerShadyRootForNode(Bn);return Xn&&(Kn.__noInsertionPoint&&!Xn._changePending&&(Xn._skipUpdateInsertionPoints=!0),Vn=jo(Kn,Bn,Xn))&&(Xn._skipUpdateInsertionPoints=!1),Hr.hasProperty(Bn,'firstChild')&&rn.recordInsertBefore(Kn,Bn,Gn),qo(Kn,Bn,Xn,Vn)||Bn.shadyRoot}function Lo(Bn){var Gn,Kn=Hr.hasProperty(Bn,'parentNode')&&Hr.getProperty(Bn,'parentNode'),Xn=Ar.ownerShadyRootForNode(Bn);if(Kn||Xn){Gn=Vo(Bn),Kn&&rn.recordRemoveChild(Bn,Kn);var Vn=Xn&&Bo(Xn,Bn),Kn=Kn&&Xn&&Kn.localName===Xn.getInsertionPointTag();(Vn||Kn)&&(Xn._skipUpdateInsertionPoints=!1,Yo(Xn))}return Go(Bn),Gn}function ko(Bn,Kn,Gn){(Bn=Bn.__shady&&Bn.__shady.observer)&&(Kn&&Bn.addedNodes.push(Kn),Gn&&Bn.removedNodes.push(Gn),Bn.schedule())}function Ho(Bn,Kn){return Kn?(ko(Kn,null,Bn),Lo(Bn)):void(Bn.parentNode&&sn.removeChild.call(Bn.parentNode,Bn),Go(Bn))}function Fo(Bn){return void 0!==Bn.__ownerShadyRoot}function Uo(Bn){if(Bn&&Bn.nodeType){var Kn=Bn.__ownerShadyRoot;return void 0===Kn&&(Kn=Ar.isShadyRoot(Bn)?Bn:(Kn=Bn.parentNode)?Uo(Kn):Bn,document.documentElement.contains(Bn)&&(Bn.__ownerShadyRoot=Kn)),Kn}}function qo(Bn,Kn,Gn,Xn){var Vn=Gn&&Gn.getInsertionPointTag()||'',Yn=Bn.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!Bn.__noInsertionPoint&&Vn&&Bn.querySelector(Vn),zn=Yn&&Yn.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;return((Bn=Yn||Bn.localName===Vn)||Kn.localName===Vn||Xn)&&Gn&&Yo(Gn),(Gn=Wo(Kn))&&Yo(Kn.shadyRoot),Gn||Bn&&!zn}function jo(Bn,Kn,Gn){var Xn,Vn=Gn.getInsertionPointTag();if(Bn.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||Bn.__noInsertionPoint)Bn.localName===Vn&&(rn.recordChildNodes(Kn),rn.recordChildNodes(Bn),Xn=!0);else for(var zn,Jn,Vn=Bn.querySelectorAll(Vn),Yn=0;Yn<Vn.length&&(zn=Vn[Yn]);Yn++)Jn=zn.parentNode,Jn===Bn&&(Jn=Kn),Jn=jo(zn,Jn,Gn),Xn=Xn||Jn;return Xn}function Wo(Bn){return Bn&&Bn.shadyRoot&&Bn.shadyRoot.hasInsertionPoint()}function Bo(Bn,Kn){var Gn;Bn=Bn._insertionPoints;for(var Vn,Xn=0;Xn<Bn.length;Xn++)if(Vn=Bn[Xn],Ko(Kn,Vn))for(var Vn=Vn.assignedNodes({flatten:!0}),Yn=0;Yn<Vn.length;Yn++){Gn=!0;var zn=Vn[Yn],Jn=Br.parentNode(zn);Jn&&sn.removeChild.call(Jn,zn)}return Gn}function Ko(Bn,Kn){for(;Kn;){if(Kn==Bn)return!0;Kn=Kn.parentNode}}function Go(Bn){if(Fo(Bn))for(var Vn,Kn=Bn.childNodes,Gn=0,Xn=Kn.length;Gn<Xn&&(Vn=Kn[Gn]);Gn++)Go(Vn);Bn.__ownerShadyRoot=void 0}function Xo(Bn){for(var Yn,Kn=Bn.assignedNodes({flatten:!0}),Gn=Uo(Bn),Xn=0,Vn=Kn.length;Xn<Vn&&(Yn=Kn[Xn]);Xn++)if(Gn.isFinalDestination(Bn,Yn))return Yn}function Vo(Bn){if(Bn=Bn.parentNode,Wo(Bn))return Yo(Bn.shadyRoot),!0}function Yo(Bn){Bn._changePending=!0,Bn.update()}function zo(Bn,Kn){'slot'===Kn?Vo(Bn):'slot'===Bn.localName&&'name'==Kn&&(Bn=Ar.ownerShadyRootForNode(Bn))&&Bn.update()}function $o(Bn,Kn,Gn,Xn){for(var zn,Vn=0,Yn=Bn.length;Vn<Yn&&(zn=Bn[Vn]);Vn++)if(zn.nodeType===Node.ELEMENT_NODE&&Zo(zn,Kn,Gn,Xn))return!0}function Zo(Bn,Kn,Gn,Xn){var Vn=Kn(Bn);return Vn&&Xn.push(Bn),Gn&&Gn(Vn)?Vn:void $o(Bn.childNodes,Kn,Gn,Xn)}function sr(Bn,Kn){if(Bn.ownerDocument!==document)return sn.importNode.call(document,Bn,Kn);var Gn=sn.importNode.call(document,Bn,!1);if(Kn){Bn=Bn.childNodes,Kn=0;for(var Xn;Kn<Bn.length;Kn++)Xn=sr(Bn[Kn],!0),Gn.appendChild(Xn)}return Gn}function ar(Bn,Kn){var Gn=[],Xn=Bn;for(Bn=Bn===window?window:Bn.getRootNode();Xn;)Gn.push(Xn),Xn=Xn.assignedSlot?Xn.assignedSlot:Xn.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Xn.host&&(Kn||Xn!==Bn)?Xn.host:Xn.parentNode;return Gn[Gn.length-1]===document&&Gn.push(window),Gn}function lr(Bn,Kn){if(!Ar.isShadyRoot)return Bn;Bn=ar(Bn,!0);for(var Xn,Vn,Yn,zn,Gn=0;Gn<Kn.length;Gn++)if(Xn=Kn[Gn],Yn=Xn===window?window:Xn.getRootNode(),Yn!==Vn&&(zn=Bn.indexOf(Yn),Vn=Yn),!Ar.isShadyRoot(Yn)||-1<zn)return Xn}function ir(Bn){var Kn=function(Gn,Xn){return Gn=new Bn(Gn,Xn),Gn.__composed=Xn&&!!Xn.composed,Gn};return Ar.mixin(Kn,Bn),Kn.prototype=Bn.prototype,Kn}function dr(Bn,Kn,Gn){if(Gn=Kn.__handlers&&Kn.__handlers[Bn.type]&&Kn.__handlers[Bn.type][Gn])for(var Vn,Xn=0;(Vn=Gn[Xn])&&(Vn.call(Kn,Bn),!Bn.__immediatePropagationStopped);Xn++);}function pr(Bn){var Gn,Kn=Bn.composedPath();Object.defineProperty(Bn,'currentTarget',{get:function(){return Gn},configurable:!0});for(var Xn=Kn.length-1;0<=Xn;Xn--)if(Gn=Kn[Xn],dr(Bn,Gn,'capture'),Bn.__propagationStopped)return;Object.defineProperty(Bn,'eventPhase',{value:Event.AT_TARGET});for(var Vn,Xn=0;Xn<Kn.length&&!((Gn=Kn[Xn],0===Xn||Gn.shadowRoot&&Gn.shadowRoot===Vn)&&(dr(Bn,Gn,'bubble'),Gn!==window&&(Vn=Gn.getRootNode()),Bn.__propagationStopped));Xn++);}function _r(){for(var Bn in wn)window.addEventListener(Bn,function(Kn){Kn.__target||(ur(Kn),pr(Kn),Kn.stopImmediatePropagation())},!0)}function ur(Bn){Bn.__target=Bn.target,Bn.__relatedTarget=Bn.relatedTarget,Ar.settings.hasDescriptors?Ar.patchPrototype(Bn,Mn):Ar.extend(Bn,Mn)}function yr(Bn){return Rn.renderRootNode(Bn),Hr.getProperty(Bn,'assignedSlot')||null}function gr(Bn,Kn){for(var Gn=Object.getOwnPropertyNames(Kn),Xn=0;Xn<Gn.length;Xn++){var Vn=Gn[Xn],Yn=Object.getOwnPropertyDescriptor(Kn,Vn);Yn.value?Bn[Vn]=Yn.value:Object.defineProperty(Bn,Vn,Yn)}}var br={},vr=0,Nr=1,Er=2,Sr=3,Cr={calcEditDistances:function(Bn,Kn,Gn,Xn,Vn,Yn){Yn=Yn-Vn+1,Gn=Gn-Kn+1;for(var zn=Array(Yn),Jn=0;Jn<Yn;Jn++)zn[Jn]=Array(Gn),zn[Jn][0]=Jn;for(Jn=0;Jn<Gn;Jn++)zn[0][Jn]=Jn;for(Jn=1;Jn<Yn;Jn++)for(var $n=1;$n<Gn;$n++)if(this.equals(Bn[Kn+$n-1],Xn[Vn+Jn-1]))zn[Jn][$n]=zn[Jn-1][$n-1];else{var Zn=zn[Jn-1][$n]+1,Qn=zn[Jn][$n-1]+1;zn[Jn][$n]=Zn<Qn?Zn:Qn}return zn},spliceOperationsFromEditDistances:function(Bn){for(var Kn=Bn.length-1,Gn=Bn[0].length-1,Xn=Bn[Kn][Gn],Vn=[];0<Kn||0<Gn;)if(0==Kn)Vn.push(Er),Gn--;else if(0==Gn)Vn.push(Sr),Kn--;else{var $n,Yn=Bn[Kn-1][Gn-1],zn=Bn[Kn-1][Gn],Jn=Bn[Kn][Gn-1];$n=zn<Jn?zn<Yn?zn:Yn:Jn<Yn?Jn:Yn,$n==Yn?(Yn==Xn?Vn.push(vr):(Vn.push(Nr),Xn=Yn),Kn--,Gn--):$n==zn?(Vn.push(Sr),Kn--,Xn=zn):(Vn.push(Er),Gn--,Xn=Jn)}return Vn.reverse(),Vn},calcSplices:function(Bn,Kn,Gn,Xn,Vn,Yn){var zn=0,Jn=0,$n=Math.min(Gn-Kn,Yn-Vn);if(0==Kn&&0==Vn&&(zn=this.sharedPrefix(Bn,Xn,$n)),Gn==Bn.length&&Yn==Xn.length&&(Jn=this.sharedSuffix(Bn,Xn,$n-zn)),Kn+=zn,Vn+=zn,Gn-=Jn,Yn-=Jn,0==Gn-Kn&&0==Yn-Vn)return[];if(Kn==Gn){for(Bn=jt(Kn,[],0);Vn<Yn;)Bn.removed.push(Xn[Vn++]);return[Bn]}if(Vn==Yn)return[jt(Kn,[],Gn-Kn)];for(Yn=this.spliceOperationsFromEditDistances(this.calcEditDistances(Bn,Kn,Gn,Xn,Vn,Yn)),Bn=void 0,Gn=[],zn=0;zn<Yn.length;zn++)switch(Yn[zn]){case vr:Bn&&(Gn.push(Bn),Bn=void 0),Kn++,Vn++;break;case Nr:Bn||(Bn=jt(Kn,[],0)),Bn.addedCount++,Kn++,Bn.removed.push(Xn[Vn]),Vn++;break;case Er:Bn||(Bn=jt(Kn,[],0)),Bn.addedCount++,Kn++;break;case Sr:Bn||(Bn=jt(Kn,[],0)),Bn.removed.push(Xn[Vn]),Vn++;}return Bn&&Gn.push(Bn),Gn},sharedPrefix:function(Bn,Kn,Gn){for(var Xn=0;Xn<Gn;Xn++)if(!this.equals(Bn[Xn],Kn[Xn]))return Xn;return Gn},sharedSuffix:function(Bn,Kn,Gn){for(var Xn=Bn.length,Vn=Kn.length,Yn=0;Yn<Gn&&this.equals(Bn[--Xn],Kn[--Vn]);)Yn++;return Yn},calculateSplices:function(Bn,Kn){return this.calcSplices(Bn,0,Bn.length,Kn,0,Kn.length)},equals:function(Bn,Kn){return Bn===Kn}};br.calculateSplices=function(Bn,Kn){return Cr.calculateSplices(Bn,Kn)};var Ar={},Pr=window.ShadyDOM||{};Pr.hasNativeShadowDOM=Element.prototype.attachShadow&&Node.prototype.getRootNode;var Rr=Object.getOwnPropertyDescriptor(Node.prototype,'firstChild');Pr.hasDescriptors=!!(Rr&&Rr.configurable&&Rr.get),Pr.inUse=Pr.force||!Pr.hasNativeShadowDOM;var xr=Element.prototype,Ir=xr.matches||xr.matchesSelector||xr.mozMatchesSelector||xr.msMatchesSelector||xr.oMatchesSelector||xr.webkitMatchesSelector,Mr=document.createTextNode(''),wr=0,Or=[];new MutationObserver(function(){for(;Or.length;)try{Or.shift()()}catch(Bn){throw Mr.textContent=wr++,Bn}}).observe(Mr,{characterData:!0}),Ar.settings=Pr,Ar.isShadyRoot=Wt,Ar.ownerShadyRootForNode=function(Bn){if(Bn=Bn.getRootNode(),Wt(Bn))return Bn},Ar.matchesSelector=function(Bn,Kn){return Ir.call(Bn,Kn)},Ar.extend=Xt,Ar.extendAll=function(Bn){for(var Gn=[],Xn=1;Xn<arguments.length;++Xn)Gn[Xn-1]=arguments[Xn];for(Xn=0;Xn<Gn.length;Xn++)Xt(Bn,Gn[Xn]);return Bn},Ar.mixin=function(Bn,Kn){for(var Gn in Kn)Bn[Gn]=Kn[Gn];return Bn},Ar.patchPrototype=function(Bn,Kn){var Gn=Object.getPrototypeOf(Bn);if(!Gn.hasOwnProperty('__patchProto')){var Xn=Object.create(Gn);Xn.__sourceProto=Gn,Xt(Xn,Kn),Gn.__patchProto=Xn}Bn.__proto__=Gn.__patchProto},Ar.microtask=function(Bn){Or.push(Bn),Mr.textContent=wr++};var kr,Dr={},Lr=[];Zt.list=Lr,Dr.enqueue=function(Bn){kr||(kr=!0,Ar.microtask(Zt)),Lr.push(Bn)},Dr.flush=Zt;var Hr={};Hr.getProperty=Qt,Hr.hasProperty=function(Bn,Kn){return void 0!==Qt(Bn,Kn)};var Fr={},Ur=/[&\u00A0"]/g,qr=/[&\u00A0<>]/g,jr=no('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),Wr=no('style script xmp iframe noembed noframes plaintext noscript'.split(' '));Fr.getOuterHTML=so,Fr.getInnerHTML=ao;var Br={},Kr=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Gr=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Br.parentNode=function(Bn){return Kr.currentNode=Bn,Kr.parentNode()},Br.firstChild=function(Bn){return Kr.currentNode=Bn,Kr.firstChild()},Br.lastChild=function(Bn){return Kr.currentNode=Bn,Kr.lastChild()},Br.previousSibling=function(Bn){return Kr.currentNode=Bn,Kr.previousSibling()},Br.nextSibling=function(Bn){return Kr.currentNode=Bn,Kr.nextSibling()},Br.childNodes=_o,Br.parentElement=function(Bn){return Gr.currentNode=Bn,Gr.parentNode()},Br.firstElementChild=function(Bn){return Gr.currentNode=Bn,Gr.firstChild()},Br.lastElementChild=function(Bn){return Gr.currentNode=Bn,Gr.lastChild()},Br.previousElementSibling=function(Bn){return Gr.currentNode=Bn,Gr.previousSibling()},Br.nextElementSibling=function(Bn){return Gr.currentNode=Bn,Gr.nextSibling()},Br.children=function(Bn){var Kn=[];for(Gr.currentNode=Bn,Bn=Gr.firstChild();Bn;)Kn.push(Bn),Bn=Gr.nextSibling();return Kn},Br.innerHTML=function(Bn){return Fr.getInnerHTML(Bn,function(Kn){return _o(Kn)})},Br.textContent=function(Bn){if(Bn.nodeType!==Node.ELEMENT_NODE)return Bn.nodeValue;Bn=document.createTreeWalker(Bn,NodeFilter.SHOW_TEXT,null,!1);for(var Gn,Kn='';Gn=Bn.nextNode();)Kn+=Gn.nodeValue;return Kn};var Xr={},Vr=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Yr=document.implementation.createHTMLDocument('inert'),zr=Yr.createElement('div'),Jr=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),$r={parentElement:Eo('parentElement'),parentNode:Eo('parentNode'),nextSibling:Eo('nextSibling'),previousSibling:Eo('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Bn){this.setAttribute('class',Bn)},configurable:!0},nextElementSibling:{get:function(){if(Hr.hasProperty(this,'nextSibling')){for(var Bn=this.nextSibling;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.nextSibling;return Bn}return Br.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(Hr.hasProperty(this,'previousSibling')){for(var Bn=this.previousSibling;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.previousSibling;return Bn}return Br.previousElementSibling(this)},configurable:!0}},Zr={childNodes:{get:function(){if(Hr.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Bn=this.firstChild;Bn;Bn=Bn.nextSibling)this.__shady.childNodes.push(Bn)}return this.__shady.childNodes}return Br.childNodes(this)},configurable:!0},firstChild:Eo('firstChild'),lastChild:Eo('lastChild'),textContent:{get:function(){if(Hr.hasProperty(this,'firstChild')){for(var Xn,Bn=[],Kn=0,Gn=this.childNodes;Xn=Gn[Kn];Kn++)Xn.nodeType!==Node.COMMENT_NODE&&Bn.push(Xn.textContent);return Bn.join('')}return Br.textContent(this)},set:function(Bn){this.nodeType===Node.ELEMENT_NODE?(So(this),Bn&&this.appendChild(document.createTextNode(Bn))):this.nodeValue=Bn},configurable:!0},firstElementChild:{get:function(){if(Hr.hasProperty(this,'firstChild')){for(var Bn=this.firstChild;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.nextSibling;return Bn}return Br.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(Hr.hasProperty(this,'lastChild')){for(var Bn=this.lastChild;Bn&&Bn.nodeType!==Node.ELEMENT_NODE;)Bn=Bn.previousSibling;return Bn}return Br.lastElementChild(this)},configurable:!0},children:{get:function(){return Hr.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Bn){return Bn.nodeType===Node.ELEMENT_NODE}):Br.children(this)},configurable:!0},innerHTML:{get:function(){var Bn='template'===this.localName?this.content:this;return Hr.hasProperty(this,'firstChild')?Fr.getInnerHTML(Bn):Br.innerHTML(Bn)},set:function(Bn){var Kn='template'===this.localName?this.content:this;for(So(Kn),Vr&&Vr.set?Vr.set.call(zr,Bn):zr.innerHTML=Bn;zr.firstChild;)Kn.appendChild(zr.firstChild)},configurable:!0}},Qr={shadowRoot:{get:function(){return this.shadyRoot},set:function(Bn){this.shadyRoot=Bn},configurable:!0}},en={activeElement:{get:function(){return To(this)},set:function(){},configurable:!0}},tn=Ar.settings.hasDescriptors?function(){}:function(Bn){Bn.__shady&&Bn.__shady.__outsideAccessors||(Bn.__shady=Bn.__shady||{},Bn.__shady.__outsideAccessors=!0,Ao(Bn,$r,!0))},on=Ar.settings.hasDescriptors?function(){}:function(Bn){Bn.__shady&&Bn.__shady.__insideAccessors||(Bn.__shady=Bn.__shady||{},Bn.__shady.__insideAccessors=!0,Ao(Bn,Zr,!0),Ao(Bn,Qr,!0))};Xr.ShadowRootAccessor=Qr,Xr.ActiveElementAccessor=en,Xr.patchAccessors=function(Bn){Ao(Bn,$r),Ao(Bn,Zr),Ao(Bn,en)},Xr.patchShadowRootAccessors=function(Bn){Ao(Bn,Zr,!0),Ao(Bn,en,!0)},Xr.patchOutsideElementAccessors=tn,Xr.patchInsideElementAccessors=on;var rn={};rn.recordInsertBefore=function(Bn,Kn,Gn){if(Xr.patchInsideElementAccessors(Kn),Kn.__shady=Kn.__shady||{},Hr.hasProperty(Kn,'firstChild')&&(Kn.__shady.childNodes=null),Bn.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Xn=Bn.childNodes,Vn=0;Vn<Xn.length;Vn++)Io(Xn[Vn],Kn,Gn);Bn.__shady=Bn.__shady||{},Kn=Hr.hasProperty(Bn,'firstChild')?null:void 0,Bn.__shady.firstChild=Bn.__shady.lastChild=Kn,Bn.__shady.childNodes=Kn}else Io(Bn,Kn,Gn)},rn.recordRemoveChild=function(Bn,Kn){Bn.__shady=Bn.__shady||{},Kn.__shady=Kn.__shady||{},Bn===Kn.__shady.firstChild&&(Kn.__shady.firstChild=Bn.__shady.nextSibling),Bn===Kn.__shady.lastChild&&(Kn.__shady.lastChild=Bn.__shady.previousSibling);var Gn=Bn.__shady.previousSibling,Xn=Bn.__shady.nextSibling;Gn&&(Gn.__shady=Gn.__shady||{},Gn.__shady.nextSibling=Xn),Xn&&(Xn.__shady=Xn.__shady||{},Xn.__shady.previousSibling=Gn),Bn.__shady.parentNode=Bn.__shady.previousSibling=Bn.__shady.nextSibling=void 0,Hr.hasProperty(Kn,'childNodes')&&(Kn.__shady.childNodes=null)},rn.recordChildNodes=function(Bn){if(!Hr.hasProperty(Bn,'firstChild')){Bn.__shady=Bn.__shady||{},Bn.__shady.firstChild=Br.firstChild(Bn),Bn.__shady.lastChild=Br.lastChild(Bn),Xr.patchInsideElementAccessors(Bn);for(var Xn,Kn=Bn.__shady.childNodes=Br.childNodes(Bn),Gn=0;Gn<Kn.length&&(Xn=Kn[Gn]);Gn++)Xn.__shady=Xn.__shady||{},Xn.__shady.parentNode=Bn,Xn.__shady.nextSibling=Kn[Gn+1]||null,Xn.__shady.previousSibling=Kn[Gn-1]||null,Xr.patchOutsideElementAccessors(Xn)}};var sn={},an=Element.prototype.appendChild,ln=Element.prototype.insertBefore,dn=Element.prototype.removeChild,cn=Element.prototype.setAttribute,hn=Element.prototype.removeAttribute,_n=Element.prototype.cloneNode,un=Document.prototype.importNode,mn=Element.prototype.addEventListener,yn=Element.prototype.removeEventListener;sn.appendChild=an,sn.insertBefore=ln,sn.removeChild=dn,sn.setAttribute=cn,sn.removeAttribute=hn,sn.cloneNode=_n,sn.importNode=un,sn.addEventListener=mn,sn.removeEventListener=yn;var gn={},bn='function'==typeof Event?Event:function(Bn,Kn){Kn=Kn||{};var Gn=document.createEvent('Event');return Gn.initEvent(Bn,!!Kn.bubbles,!!Kn.cancelable),Gn},vn=function(Bn){this.root=Bn,this.insertionPointTag='slot'};vn.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)},vn.prototype.hasInsertionPoint=function(){return this.root._insertionPoints&&this.root._insertionPoints.length},vn.prototype.isInsertionPoint=function(Bn){return Bn.localName&&Bn.localName==this.insertionPointTag},vn.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]},vn.prototype.collectPool=function(){for(var Bn=[],Kn=0,Gn=this.root.host.firstChild;Gn;Gn=Gn.nextSibling)Bn[Kn++]=Gn;return Bn},vn.prototype.distributePool=function(Bn,Kn){Bn=[];for(var Yn,Gn=this.root._insertionPoints,Xn=0,Vn=Gn.length;Xn<Vn&&(Yn=Gn[Xn]);Xn++){this.distributeInsertionPoint(Yn,Kn);var zn=Yn.parentNode;zn&&zn.shadyRoot&&this.hasInsertionPoint(zn.shadyRoot)&&Bn.push(zn.shadyRoot)}for(Gn=0;Gn<Kn.length;Gn++)(Yn=Kn[Gn])&&(Yn.__shady=Yn.__shady||{},Yn.__shady.assignedSlot=void 0,(Xn=Br.parentNode(Yn))&&sn.removeChild.call(Xn,Yn));return Bn},vn.prototype.distributeInsertionPoint=function(Bn,Kn){var Gn=Bn.__shady.assignedNodes;Gn&&this.clearAssignedSlots(Bn,!0),Bn.__shady.assignedNodes=[];for(var Jn,Xn=!1,Vn=!1,Yn=0,zn=Kn.length;Yn<zn;Yn++)(Jn=Kn[Yn])&&this.matchesInsertionPoint(Jn,Bn)&&(Jn.__shady._prevAssignedSlot!=Bn&&(Xn=!0),this.distributeNodeInto(Jn,Bn),Kn[Yn]=void 0,Vn=!0);if(!Vn)for(Kn=Bn.childNodes,Vn=0;Vn<Kn.length;Vn++)Jn=Kn[Vn],Jn.__shady._prevAssignedSlot!=Bn&&(Xn=!0),this.distributeNodeInto(Jn,Bn);if(Gn){for(Jn=0;Jn<Gn.length;Jn++)Gn[Jn].__shady._prevAssignedSlot=null;Bn.__shady.assignedNodes.length<Gn.length&&(Xn=!0)}this.setDistributedNodesOnInsertionPoint(Bn),Xn&&this._fireSlotChange(Bn)},vn.prototype.clearAssignedSlots=function(Bn,Kn){var Gn=Bn.__shady.assignedNodes;if(Gn)for(var Vn,Xn=0;Xn<Gn.length;Xn++)Vn=Gn[Xn],Kn&&(Vn.__shady._prevAssignedSlot=Vn.__shady.assignedSlot),Vn.__shady.assignedSlot===Bn&&(Vn.__shady.assignedSlot=null)},vn.prototype.matchesInsertionPoint=function(Bn,Kn){return Kn=(Kn=Kn.getAttribute('name'))?Kn.trim():'',Bn=(Bn=Bn.getAttribute&&Bn.getAttribute('slot'))?Bn.trim():'',Bn==Kn},vn.prototype.distributeNodeInto=function(Bn,Kn){Kn.__shady.assignedNodes.push(Bn),Bn.__shady.assignedSlot=Kn},vn.prototype.setDistributedNodesOnInsertionPoint=function(Bn){var Kn=Bn.__shady.assignedNodes;Bn.__shady.distributedNodes=[];for(var Xn,Gn=0;Gn<Kn.length&&(Xn=Kn[Gn]);Gn++)if(this.isInsertionPoint(Xn)){var Vn=Xn.__shady.distributedNodes;if(Vn)for(var Yn=0;Yn<Vn.length;Yn++)Bn.__shady.distributedNodes.push(Vn[Yn])}else Bn.__shady.distributedNodes.push(Kn[Gn])},vn.prototype._fireSlotChange=function(Bn){Bn.dispatchEvent(new bn('slotchange')),Bn.__shady.assignedSlot&&this._fireSlotChange(Bn.__shady.assignedSlot)},vn.prototype.isFinalDestination=function(Bn){return!Bn.__shady.assignedSlot},gn.default=vn;var Nn={},En={},Sn=function(Bn,Kn){if(Bn!==En)throw new TypeError('Illegal constructor');return Bn=document.createDocumentFragment(),Bn.__proto__=Sn.prototype,Bn._init(Kn),Bn};Sn.prototype=Object.create(DocumentFragment.prototype),Ar.extendAll(Sn.prototype,{_init:function(Bn){this.__localName='ShadyRoot',rn.recordChildNodes(Bn),rn.recordChildNodes(this),Bn.shadowRoot=this,this.host=Bn,this._changePending=this._hasRendered=this._renderPending=!1,this._distributor=new gn.default(this),this.update()},update:function(){var Bn=this;this._renderPending||(this._renderPending=!0,Dr.enqueue(function(){return Bn.render()}))},_getRenderRoot:function(){for(var Bn=this,Kn=this;Kn;)Kn._renderPending&&(Bn=Kn),Kn=Kn._rendererForHost();return Bn},_rendererForHost:function(){var Bn=this.host.getRootNode();if(Ar.isShadyRoot(Bn))for(var Xn,Kn=this.host.childNodes,Gn=0;Gn<Kn.length;Gn++)if(Xn=Kn[Gn],this._distributor.isInsertionPoint(Xn))return Bn},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 Bn=this._distributor.distribute(),Kn=0;Kn<Bn.length;Kn++)Bn[Kn]._render()},updateInsertionPoints:function(){var Bn=this.__insertionPoints;if(Bn)for(var Gn,Kn=0;Kn<Bn.length;Kn++)Gn=Bn[Kn],Gn.getRootNode()!==this&&this._distributor.clearAssignedSlots(Gn);for(Bn=this._insertionPoints=this._distributor.getInsertionPoints(),Kn=0;Kn<Bn.length;Kn++)Gn=Bn[Kn],Gn.__shady=Gn.__shady||{},rn.recordChildNodes(Gn),rn.recordChildNodes(Gn.parentNode)},get _insertionPoints(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set _insertionPoints(Bn){this.__insertionPoints=Bn},hasInsertionPoint:function(){return this._distributor.hasInsertionPoint()},compose:function(){this._composeTree()},_composeTree:function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var Xn,Vn,Bn=this._insertionPoints||[],Kn=0,Gn=Bn.length;Kn<Gn&&(Xn=Bn[Kn]);Kn++)Vn=Xn.parentNode,Vn!==this.host&&Vn!==this&&this._updateChildNodes(Vn,this._composeNode(Vn))},_composeNode:function(Bn){var Kn=[];Bn=(Bn.shadyRoot||Bn).childNodes;for(var Xn,Gn=0;Gn<Bn.length;Gn++)if(Xn=Bn[Gn],this._distributor.isInsertionPoint(Xn))for(var zn,Vn=Xn.__shady.distributedNodes||(Xn.__shady.distributedNodes=[]),Yn=0;Yn<Vn.length;Yn++)zn=Vn[Yn],this.isFinalDestination(Xn,zn)&&Kn.push(zn);else Kn.push(Xn);return Kn},isFinalDestination:function(Bn,Kn){return this._distributor.isFinalDestination(Bn,Kn)},_updateChildNodes:function(Bn,Kn){for(var zn,Gn=Br.childNodes(Bn),Xn=br.calculateSplices(Kn,Gn),Vn=0,Yn=0;Vn<Xn.length&&(zn=Xn[Vn]);Vn++){for(var $n,Jn=0;Jn<zn.removed.length&&($n=zn.removed[Jn]);Jn++)Br.parentNode($n)===Bn&&sn.removeChild.call(Bn,$n),Gn.splice(zn.index+Yn,1);Yn-=zn.addedCount}for(Vn=0;Vn<Xn.length&&(zn=Xn[Vn]);Vn++)for(Yn=Gn[zn.index],Jn=zn.index;Jn<zn.index+zn.addedCount;Jn++)$n=Kn[Jn],sn.insertBefore.call(Bn,$n,Yn),Gn.splice(Jn,0,$n)},getInsertionPointTag:function(){return this._distributor.insertionPointTag}}),Xr.patchShadowRootAccessors(Sn.prototype),Nn.ShadyRoot=Sn,Nn.attachShadow=function(Bn,Kn){if(!Bn)throw'Must provide a host.';if(!Kn)throw'Not enough arguments.';return new Sn(En,Bn)};var Cn={},Tn=function(){this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set};Tn.prototype.schedule=function(){var Bn=this;this._scheduled||(this._scheduled=!0,Ar.microtask(function(){Bn.flush()}))},Tn.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var Bn=this.takeRecords();Bn.length&&this.callbacks.forEach(function(Kn){Kn(Bn)})}},Tn.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var Bn=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],Bn}return[]};Cn.observeChildren=function(Bn,Kn){Bn.__shady=Bn.__shady||{},Bn.__shady.observer||(Bn.__shady.observer=new Tn),Bn.__shady.observer.callbacks.add(Kn);var Gn=Bn.__shady.observer;return{_callback:Kn,_observer:Gn,_node:Bn,takeRecords:function(){return Gn.takeRecords()}}},Cn.unobserveChildren=function(Bn){var Kn=Bn&&Bn._observer;Kn&&(Kn.callbacks.delete(Bn._callback),Kn.callbacks.size||(Bn._node.__shady.observer=null))},Cn.filterMutations=function(Bn,Kn){var Gn=Kn.getRootNode();return Bn.map(function(Xn){var Vn=Gn===Xn.target.getRootNode();if(Vn&&Xn.addedNodes){if(Vn=Array.from(Xn.addedNodes).filter(function(Yn){return Gn===Yn.getRootNode()}),Vn.length)return Xn=Object.create(Xn),Object.defineProperty(Xn,'addedNodes',{value:Vn,configurable:!0}),Xn;}else if(Vn)return Xn}).filter(function(Xn){return Xn})};var Rn={};Rn.getRootNode=Uo,Rn.query=function(Bn,Kn,Gn){var Xn=[];return $o(Bn.childNodes,Kn,Gn,Xn),Xn},Rn.renderRootNode=function(Bn){Bn=Bn.getRootNode(),Ar.isShadyRoot(Bn)&&Bn.render()},Rn.setAttribute=function(Bn,Kn,Gn){window.ShadyCSS&&'class'===Kn&&Bn.ownerDocument===document?window.ShadyCSS.setElementClass(Bn,Gn):(sn.setAttribute.call(Bn,Kn,Gn),zo(Bn,Kn))},Rn.removeAttribute=function(Bn,Kn){sn.removeAttribute.call(Bn,Kn),zo(Bn,Kn)},Rn.insertBefore=function(Bn,Kn,Gn){if(Gn){var Xn=Hr.getProperty(Gn,'parentNode');if(void 0!==Xn&&Xn!==Bn)throw Error('The ref_node to be inserted before is not a child of this node')}return Kn.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(Xn=Hr.getProperty(Kn,'parentNode'),Ho(Kn,Xn)),Do(Bn,Kn,Gn)||(Gn&&(Xn=Ar.ownerShadyRootForNode(Gn))&&(Gn=Gn.localName===Xn.getInsertionPointTag()?Xo(Gn):Gn),Xn=Ar.isShadyRoot(Bn)?Bn.host:Bn,Gn?sn.insertBefore.call(Xn,Kn,Gn):sn.appendChild.call(Xn,Kn)),ko(Bn,Kn),Kn},Rn.removeChild=function(Bn,Kn){if(Kn.parentNode!==Bn)throw Error('The node to be removed is not a child of this node: '+Kn);if(!Lo(Kn)){var Gn=Ar.isShadyRoot(Bn)?Bn.host:Bn,Xn=Br.parentNode(Kn);Gn===Xn&&sn.removeChild.call(Gn,Kn)}return ko(Bn,null,Kn),Kn},Rn.cloneNode=function(Bn,Kn){if('template'==Bn.localName)return sn.cloneNode.call(Bn,Kn);var Gn=sn.cloneNode.call(Bn,!1);if(Kn){Bn=Bn.childNodes,Kn=0;for(var Xn;Kn<Bn.length;Kn++)Xn=Bn[Kn].cloneNode(!0),Gn.appendChild(Xn)}return Gn},Rn.importNode=sr;var xn={},In={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},Mn={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=In[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=ar(this.__target,this.composed)),this.__composedPath},get target(){return lr(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=ar(this.__relatedTarget,!0)),lr(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}},wn={focus:!0,blur:!0},On=ir(window.Event),Dn=ir(window.CustomEvent),Ln=ir(window.MouseEvent);xn.addEventListener=function(Bn,Kn,Gn){if(Kn){var Xn,Vn,Yn;if('object'==typeof Gn?(Xn=!!Gn.capture,Vn=!!Gn.once,Yn=!!Gn.passive):(Xn=!!Gn,Yn=Vn=!1),Kn.__eventWrappers){for(var zn=0;zn<Kn.__eventWrappers.length;zn++)if(Kn.__eventWrappers[zn].node===this&&Kn.__eventWrappers[zn].type===Bn&&Kn.__eventWrappers[zn].capture===Xn&&Kn.__eventWrappers[zn].once===Vn&&Kn.__eventWrappers[zn].passive===Yn)return;}else Kn.__eventWrappers=[];zn=function(Jn){if(Vn&&this.removeEventListener(Bn,Kn,Gn),Jn.__target||ur(Jn),Jn.composed||-1<Jn.composedPath().indexOf(this))if(Jn.eventPhase===Event.BUBBLING_PHASE&&Jn.target===Jn.relatedTarget)Jn.stopImmediatePropagation();else return Kn(Jn)},Kn.__eventWrappers.push({node:this,type:Bn,capture:Xn,once:Vn,passive:Yn,wrapperFn:zn}),wn[Bn]?(this.__handlers=this.__handlers||{},this.__handlers[Bn]=this.__handlers[Bn]||{capture:[],bubble:[]},this.__handlers[Bn][Xn?'capture':'bubble'].push(zn)):sn.addEventListener.call(this,Bn,zn,Gn)}},xn.removeEventListener=function(Bn,Kn,Gn){if(Kn){var Xn,Vn,Yn;'object'==typeof Gn?(Xn=!!Gn.capture,Vn=!!Gn.once,Yn=!!Gn.passive):(Xn=!!Gn,Yn=Vn=!1);var zn;if(Kn.__eventWrappers)for(var Jn=0;Jn<Kn.__eventWrappers.length;Jn++)if(Kn.__eventWrappers[Jn].node===this&&Kn.__eventWrappers[Jn].type===Bn&&Kn.__eventWrappers[Jn].capture===Xn&&Kn.__eventWrappers[Jn].once===Vn&&Kn.__eventWrappers[Jn].passive===Yn){zn=Kn.__eventWrappers.splice(Jn,1)[0].wrapperFn,Kn.__eventWrappers.length||(Kn.__eventWrappers=void 0);break}sn.removeEventListener.call(this,Bn,zn||Kn,Gn),zn&&wn[Bn]&&this.__handlers&&this.__handlers[Bn]&&(Bn=this.__handlers[Bn][Xn?'capture':'bubble'],zn=Bn.indexOf(zn),-1<zn&&Bn.splice(zn,1))}},xn.patchEvents=function(){window.Event=On,window.CustomEvent=Dn,window.MouseEvent=Ln,_r()};var kn={},Hn={addEventListener:xn.addEventListener,removeEventListener:xn.removeEventListener,appendChild:function(Bn){return Rn.insertBefore(this,Bn)},insertBefore:function(Bn,Kn){return Rn.insertBefore(this,Bn,Kn)},removeChild:function(Bn){return Rn.removeChild(this,Bn)},replaceChild:function(Bn,Kn){return this.insertBefore(Bn,Kn),this.removeChild(Kn),Bn},cloneNode:function(Bn){return Rn.cloneNode(this,Bn)},getRootNode:function(Bn){return Rn.getRootNode(this,Bn)},get isConnected(){var Bn=this.ownerDocument;if(Bn&&Bn.contains&&Bn.contains(this)||(Bn=Bn.documentElement)&&Bn.contains&&Bn.contains(this))return!0;for(Bn=this;Bn&&!(Bn instanceof Document);)Bn=Bn.parentNode||(Bn instanceof Nn.ShadyRoot?Bn.host:void 0);return!!(Bn&&Bn instanceof Document)}},Fn={get assignedSlot(){return yr(this)}},Un={querySelector:function(Bn){return Rn.query(this,function(Kn){return Ar.matchesSelector(Kn,Bn)},function(Kn){return!!Kn})[0]||null},querySelectorAll:function(Bn){return Rn.query(this,function(Kn){return Ar.matchesSelector(Kn,Bn)})}},qn={assignedNodes:function(Bn){if('slot'===this.localName)return Rn.renderRootNode(this),this.__shady?(Bn&&Bn.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},jn=Ar.extendAll({setAttribute:function(Bn,Kn){Rn.setAttribute(this,Bn,Kn)},removeAttribute:function(Bn){Rn.removeAttribute(this,Bn)},attachShadow:function(Bn){return Nn.attachShadow(this,Bn)},get slot(){return this.getAttribute('slot')},set slot(Bn){this.setAttribute('slot',Bn)},get assignedSlot(){return yr(this)}},Un,qn);Object.defineProperties(jn,Xr.ShadowRootAccessor);var Wn=Ar.extendAll({importNode:function(Bn,Kn){return Rn.importNode(Bn,Kn)}},Un);Object.defineProperties(Wn,{_activeElement:Xr.ActiveElementAccessor.activeElement}),kn.patchBuiltins=function(){gr(window.Node.prototype,Hn),gr(window.Text.prototype,Fn),gr(window.DocumentFragment.prototype,Un),gr(window.Element.prototype,jn),gr(window.Document.prototype,Wn),window.HTMLSlotElement&&gr(window.HTMLSlotElement.prototype,qn),Ar.settings.hasDescriptors&&(Xr.patchAccessors(window.Node.prototype),Xr.patchAccessors(window.Text.prototype),Xr.patchAccessors(window.DocumentFragment.prototype),Xr.patchAccessors(window.Element.prototype),Xr.patchAccessors((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),Xr.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&Xr.patchAccessors(window.HTMLSlotElement.prototype))},Ar.settings.inUse&&(window.ShadyDOM={inUse:Ar.settings.inUse,patch:function(Bn){return Bn},isShadyRoot:Ar.isShadyRoot,enqueue:Dr.enqueue,flush:Dr.flush,settings:Ar.settings,filterMutations:Cn.filterMutations,observeChildren:Cn.observeChildren,unobserveChildren:Cn.unobserveChildren,nativeMethods:sn,nativeTree:Br},xn.patchEvents(),kn.patchBuiltins(),window.ShadowRoot=Nn.ShadyRoot)}.call(window),function(){'use strict';function jt(Vo){var Yo=uo.has(Vo);return Vo=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Vo),!Yo&&Vo}function Wt(Vo){var Yo=Vo.isConnected;if(void 0!==Yo)return Yo;for(;Vo&&!(Vo.__CE_isImportDocument||Vo instanceof Document);)Vo=Vo.parentNode||(window.ShadowRoot&&Vo instanceof ShadowRoot?Vo.host:void 0);return Vo&&(Vo.__CE_isImportDocument||Vo instanceof Document)}function Bt(Vo,Yo){for(;Yo&&Yo!==Vo&&!Yo.nextSibling;)Yo=Yo.parentNode;return Yo&&Yo!==Vo?Yo.nextSibling:null}function Kt(Vo,Yo,zo){zo=zo?zo:new Set;for(var Jo=Vo;Jo;){if(Jo.nodeType===Node.ELEMENT_NODE){var $o=Jo;Yo($o);var Zo=$o.localName;if('link'===Zo&&'import'===$o.getAttribute('rel')){if(Jo=$o.import,Jo instanceof Node&&!zo.has(Jo))for(zo.add(Jo),Jo=Jo.firstChild;Jo;Jo=Jo.nextSibling)Kt(Jo,Yo,zo);Jo=Bt(Vo,$o);continue}else if('template'===Zo){Jo=Bt(Vo,$o);continue}if($o=$o.__CE_shadowRoot)for($o=$o.firstChild;$o;$o=$o.nextSibling)Kt($o,Yo,zo)}Jo=Jo.firstChild?Jo.firstChild:Bt(Vo,Jo)}}function Gt(Vo,Yo,zo){Vo[Yo]=zo}function Xt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Vt(Vo,Yo,zo){Vo.a.set(Yo,zo),Vo.f.set(zo.constructor,zo)}function Yt(Vo,Yo){Vo.b=!0,Vo.c.push(Yo)}function zt(Vo,Yo){Vo.b&&Kt(Yo,function(zo){return Jt(Vo,zo)})}function Jt(Vo,Yo){if(Vo.b&&!Yo.__CE_patched){Yo.__CE_patched=!0;for(var zo=0;zo<Vo.c.length;zo++)Vo.c[zo](Yo)}}function $t(Vo,Yo){var zo=[];for(Kt(Yo,function($o){return zo.push($o)}),Yo=0;Yo<zo.length;Yo++){var Jo=zo[Yo];1===Jo.__CE_state?Vo.connectedCallback(Jo):eo(Vo,Jo)}}function Zt(Vo,Yo){var zo=[];for(Kt(Yo,function($o){return zo.push($o)}),Yo=0;Yo<zo.length;Yo++){var Jo=zo[Yo];1===Jo.__CE_state&&Vo.disconnectedCallback(Jo)}}function Qt(Vo,Yo,zo){zo=zo?zo:new Set;var Jo=[];if(Kt(Yo,function($o){if('link'===$o.localName&&'import'===$o.getAttribute('rel')){var Zo=$o.import;Zo instanceof Node&&'complete'===Zo.readyState?(Zo.__CE_isImportDocument=!0,Zo.__CE_hasRegistry=!0):$o.addEventListener('load',function(){var Qo=$o.import;Qo.__CE_documentLoadHandled||(Qo.__CE_documentLoadHandled=!0,Qo.__CE_isImportDocument=!0,Qo.__CE_hasRegistry=!0,new Set(zo),zo.delete(Qo),Qt(Vo,Qo,zo))})}else Jo.push($o)},zo),Vo.b)for(Yo=0;Yo<Jo.length;Yo++)Jt(Vo,Jo[Yo]);for(Yo=0;Yo<Jo.length;Yo++)eo(Vo,Jo[Yo])}function eo(Vo,Yo){if(void 0===Yo.__CE_state){var zo=Vo.a.get(Yo.localName);if(zo){zo.constructionStack.push(Yo);var Jo=zo.constructor;try{try{if(new Jo!==Yo)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{zo.constructionStack.pop()}}catch(Qo){throw Yo.__CE_state=2,Qo}if(Yo.__CE_state=1,Yo.__CE_definition=zo,zo.attributeChangedCallback)for(zo=zo.observedAttributes,Jo=0;Jo<zo.length;Jo++){var $o=zo[Jo],Zo=Yo.getAttribute($o);null!==Zo&&Vo.attributeChangedCallback(Yo,$o,null,Zo,null)}Wt(Yo)&&Vo.connectedCallback(Yo)}}}function to(Vo,Yo){this.c=Vo,this.a=Yo,this.b=void 0,Qt(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 oo(Vo){Vo.b&&Vo.b.disconnect()}function ro(){var Vo=this;this.b=this.a=void 0,this.c=new Promise(function(Yo){Vo.b=Yo,Vo.a&&Yo(Vo.a)})}function no(Vo){if(Vo.a)throw Error('Already resolved.');Vo.a=void 0,Vo.b&&Vo.b(void 0)}function so(Vo){this.f=!1,this.a=Vo,this.h=new Map,this.g=function(Yo){return Yo()},this.b=!1,this.c=[],this.j=new to(Vo,document)}function ao(){var Vo=Go;window.HTMLElement=function(){function Yo(){var zo=this.constructor,Jo=Vo.f.get(zo);if(!Jo)throw Error('The custom element being constructed was not registered with `customElements`.');var $o=Jo.constructionStack;if(!$o.length)return $o=mo.call(document,Jo.localName),Object.setPrototypeOf($o,zo.prototype),$o.__CE_state=1,$o.__CE_definition=Jo,Jt(Vo,$o),$o;var Jo=$o.length-1,Zo=$o[Jo];if(Zo===_o)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return $o[Jo]=_o,Object.setPrototypeOf(Zo,zo.prototype),Jt(Vo,Zo),Zo}return Yo.prototype=jo.prototype,Yo}()}function lo(Vo,Yo,zo){Yo.prepend=function(){for(var $o=[],Zo=0;Zo<arguments.length;++Zo)$o[Zo-0]=arguments[Zo];Zo=$o.filter(function(er){return er instanceof Node&&Wt(er)}),zo.i.apply(this,$o);for(var Qo=0;Qo<Zo.length;Qo++)Zt(Vo,Zo[Qo]);if(Wt(this))for(Zo=0;Zo<$o.length;Zo++)Qo=$o[Zo],Qo instanceof Element&&$t(Vo,Qo)},Yo.append=function(){for(var $o=[],Zo=0;Zo<arguments.length;++Zo)$o[Zo-0]=arguments[Zo];Zo=$o.filter(function(er){return er instanceof Node&&Wt(er)}),zo.append.apply(this,$o);for(var Qo=0;Qo<Zo.length;Qo++)Zt(Vo,Zo[Qo]);if(Wt(this))for(Zo=0;Zo<$o.length;Zo++)Qo=$o[Zo],Qo instanceof Element&&$t(Vo,Qo)}}function io(){var Vo=Go;Gt(Document.prototype,'createElement',function(Yo){if(this.__CE_hasRegistry){var zo=Vo.a.get(Yo);if(zo)return new zo.constructor}return Yo=mo.call(this,Yo),Jt(Vo,Yo),Yo}),Gt(Document.prototype,'importNode',function(Yo,zo){return Yo=go.call(this,Yo,zo),this.__CE_hasRegistry?Qt(Vo,Yo):zt(Vo,Yo),Yo}),Gt(Document.prototype,'createElementNS',function(Yo,zo){if(this.__CE_hasRegistry&&(null===Yo||'http://www.w3.org/1999/xhtml'===Yo)){var Jo=Vo.a.get(zo);if(Jo)return new Jo.constructor}return Yo=yo.call(this,Yo,zo),Jt(Vo,Yo),Yo}),lo(Vo,Document.prototype,{i:fo,append:bo})}function po(){function Vo(zo,Jo){Object.defineProperty(zo,'textContent',{enumerable:Jo.enumerable,configurable:!0,get:Jo.get,set:function($o){if(this.nodeType===Node.TEXT_NODE)Jo.set.call(this,$o);else{var Zo;if(this.firstChild){var Qo=this.childNodes,er=Qo.length;if(0<er&&Wt(this))for(var Zo=Array(er),tr=0;tr<er;tr++)Zo[tr]=Qo[tr]}if(Jo.set.call(this,$o),Zo)for($o=0;$o<Zo.length;$o++)Zt(Yo,Zo[$o])}}})}var Yo=Go;Gt(Node.prototype,'insertBefore',function(zo,Jo){if(zo instanceof DocumentFragment){var $o=Array.prototype.slice.apply(zo.childNodes);if(zo=Eo.call(this,zo,Jo),Wt(this))for(Jo=0;Jo<$o.length;Jo++)$t(Yo,$o[Jo]);return zo}return $o=Wt(zo),Jo=Eo.call(this,zo,Jo),$o&&Zt(Yo,zo),Wt(this)&&$t(Yo,zo),Jo}),Gt(Node.prototype,'appendChild',function(zo){if(zo instanceof DocumentFragment){var Jo=Array.prototype.slice.apply(zo.childNodes);if(zo=No.call(this,zo),Wt(this))for(var $o=0;$o<Jo.length;$o++)$t(Yo,Jo[$o]);return zo}return Jo=Wt(zo),$o=No.call(this,zo),Jo&&Zt(Yo,zo),Wt(this)&&$t(Yo,zo),$o}),Gt(Node.prototype,'cloneNode',function(zo){return zo=vo.call(this,zo),this.ownerDocument.__CE_hasRegistry?Qt(Yo,zo):zt(Yo,zo),zo}),Gt(Node.prototype,'removeChild',function(zo){var Jo=Wt(zo),$o=So.call(this,zo);return Jo&&Zt(Yo,zo),$o}),Gt(Node.prototype,'replaceChild',function(zo,Jo){if(zo instanceof DocumentFragment){var $o=Array.prototype.slice.apply(zo.childNodes);if(zo=Co.call(this,zo,Jo),Wt(this))for(Zt(Yo,Jo),Jo=0;Jo<$o.length;Jo++)$t(Yo,$o[Jo]);return zo}var $o=Wt(zo),Zo=Co.call(this,zo,Jo),Qo=Wt(this);return Qo&&Zt(Yo,Jo),$o&&Zt(Yo,zo),Qo&&$t(Yo,zo),Zo}),To&&To.get?Vo(Node.prototype,To):Yt(Yo,function(zo){Vo(zo,{enumerable:!0,configurable:!0,get:function(){for(var Jo=[],$o=0;$o<this.childNodes.length;$o++)Jo.push(this.childNodes[$o].textContent);return Jo.join('')},set:function(Jo){for(;this.firstChild;)So.call(this,this.firstChild);No.call(this,document.createTextNode(Jo))}})})}function co(Vo){var Yo=Element.prototype;Yo.before=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Qo){return Qo instanceof Node&&Wt(Qo)}),Ho.apply(this,Jo);for(var Zo=0;Zo<$o.length;Zo++)Zt(Vo,$o[Zo]);if(Wt(this))for($o=0;$o<Jo.length;$o++)Zo=Jo[$o],Zo instanceof Element&&$t(Vo,Zo)},Yo.after=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Qo){return Qo instanceof Node&&Wt(Qo)}),Fo.apply(this,Jo);for(var Zo=0;Zo<$o.length;Zo++)Zt(Vo,$o[Zo]);if(Wt(this))for($o=0;$o<Jo.length;$o++)Zo=Jo[$o],Zo instanceof Element&&$t(Vo,Zo)},Yo.replaceWith=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];var $o=Jo.filter(function(er){return er instanceof Node&&Wt(er)}),Zo=Wt(this);Uo.apply(this,Jo);for(var Qo=0;Qo<$o.length;Qo++)Zt(Vo,$o[Qo]);if(Zo)for(Zt(Vo,this),$o=0;$o<Jo.length;$o++)Zo=Jo[$o],Zo instanceof Element&&$t(Vo,Zo)},Yo.remove=function(){var zo=Wt(this);qo.call(this),zo&&Zt(Vo,this)}}function ho(){function Vo($o,Zo){Object.defineProperty($o,'innerHTML',{enumerable:Zo.enumerable,configurable:!0,get:Zo.get,set:function(Qo){var tr,er=this;if(Wt(this)&&(tr=[],Kt(this,function(nr){nr!==er&&tr.push(nr)})),Zo.set.call(this,Qo),tr)for(var rr,or=0;or<tr.length;or++)rr=tr[or],1===rr.__CE_state&&zo.disconnectedCallback(rr);return this.ownerDocument.__CE_hasRegistry?Qt(zo,this):zt(zo,this),Qo}})}function Yo($o,Zo){Gt($o,'insertAdjacentElement',function(Qo,er){var tr=Wt(er);return Qo=Zo.call(this,Qo,er),tr&&Zt(zo,er),Wt(Qo)&&$t(zo,er),Qo})}var zo=Go;if(Ao?Gt(Element.prototype,'attachShadow',function($o){return this.__CE_shadowRoot=$o=Ao.call(this,$o)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),Po&&Po.get)Vo(Element.prototype,Po);else if(Wo&&Wo.get)Vo(HTMLElement.prototype,Wo);else{var Jo=mo.call(document,'div');Yt(zo,function($o){Vo($o,{enumerable:!0,configurable:!0,get:function(){return vo.call(this,!0).innerHTML},set:function(Zo){var Qo='template'===this.localName?this.content:this;for(Jo.innerHTML=Zo;0<Qo.childNodes.length;)So.call(Qo,Qo.childNodes[0]);for(;0<Jo.childNodes.length;)No.call(Qo,Jo.childNodes[0])}})})}Gt(Element.prototype,'setAttribute',function($o,Zo){if(1!==this.__CE_state)return xo.call(this,$o,Zo);var Qo=Ro.call(this,$o);xo.call(this,$o,Zo),Zo=Ro.call(this,$o),Qo!==Zo&&zo.attributeChangedCallback(this,$o,Qo,Zo,null)}),Gt(Element.prototype,'setAttributeNS',function($o,Zo,Qo){if(1!==this.__CE_state)return wo.call(this,$o,Zo,Qo);var er=Mo.call(this,$o,Zo);wo.call(this,$o,Zo,Qo),Qo=Mo.call(this,$o,Zo),er!==Qo&&zo.attributeChangedCallback(this,Zo,er,Qo,$o)}),Gt(Element.prototype,'removeAttribute',function($o){if(1!==this.__CE_state)return Io.call(this,$o);var Zo=Ro.call(this,$o);Io.call(this,$o),null!==Zo&&zo.attributeChangedCallback(this,$o,Zo,null,null)}),Gt(Element.prototype,'removeAttributeNS',function($o,Zo){if(1!==this.__CE_state)return Oo.call(this,$o,Zo);var Qo=Mo.call(this,$o,Zo);Oo.call(this,$o,Zo);var er=Mo.call(this,$o,Zo);Qo!==er&&zo.attributeChangedCallback(this,Zo,Qo,er,$o)}),Bo?Yo(HTMLElement.prototype,Bo):Do?Yo(Element.prototype,Do):console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.'),lo(zo,Element.prototype,{i:Lo,append:ko}),co(zo)}var _o=new function(){},uo=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' '));Xt.prototype.connectedCallback=function(Vo){var Yo=Vo.__CE_definition;Yo.connectedCallback&&Yo.connectedCallback.call(Vo)},Xt.prototype.disconnectedCallback=function(Vo){var Yo=Vo.__CE_definition;Yo.disconnectedCallback&&Yo.disconnectedCallback.call(Vo)},Xt.prototype.attributeChangedCallback=function(Vo,Yo,zo,Jo,$o){var Zo=Vo.__CE_definition;Zo.attributeChangedCallback&&-1<Zo.observedAttributes.indexOf(Yo)&&Zo.attributeChangedCallback.call(Vo,Yo,zo,Jo,$o)},to.prototype.f=function(Vo){var Yo=this.a.readyState;for('interactive'!==Yo&&'complete'!==Yo||oo(this),Yo=0;Yo<Vo.length;Yo++)for(var zo=Vo[Yo].addedNodes,Jo=0;Jo<zo.length;Jo++)Qt(this.c,zo[Jo])},so.prototype.l=function(Vo,Yo){var zo=this;if(!(Yo instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!jt(Vo))throw new SyntaxError('The element name \''+Vo+'\' is not valid.');if(this.a.a.get(Vo))throw Error('A custom element with name \''+Vo+'\' has already been defined.');if(this.f)throw Error('A custom element is already being defined.');this.f=!0;var Jo,$o,Zo,Qo,er;try{var tr=function(rr){var nr=or[rr];if(void 0!==nr&&!(nr instanceof Function))throw Error('The \''+rr+'\' callback must be a function.');return nr},or=Yo.prototype;if(!(or instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');Jo=tr('connectedCallback'),$o=tr('disconnectedCallback'),Zo=tr('adoptedCallback'),Qo=tr('attributeChangedCallback'),er=Yo.observedAttributes||[]}catch(rr){return}finally{this.f=!1}Vt(this.a,Vo,{localName:Vo,constructor:Yo,connectedCallback:Jo,disconnectedCallback:$o,adoptedCallback:Zo,attributeChangedCallback:Qo,observedAttributes:er,constructionStack:[]}),this.c.push(Vo),this.b||(this.b=!0,this.g(function(){if(!1!==zo.b)for(zo.b=!1,Qt(zo.a,document);0<zo.c.length;){var rr=zo.c.shift();(rr=zo.h.get(rr))&&no(rr)}}))},so.prototype.get=function(Vo){if(Vo=this.a.a.get(Vo))return Vo.constructor},so.prototype.o=function(Vo){if(!jt(Vo))return Promise.reject(new SyntaxError('\''+Vo+'\' is not a valid custom element name.'));var Yo=this.h.get(Vo);return Yo?Yo.c:(Yo=new ro,this.h.set(Vo,Yo),this.a.a.get(Vo)&&-1===this.c.indexOf(Vo)&&no(Yo),Yo.c)},so.prototype.m=function(Vo){oo(this.j);var Yo=this.g;this.g=function(zo){return Vo(function(){return Yo(zo)})}},window.CustomElementRegistry=so,so.prototype.define=so.prototype.l,so.prototype.get=so.prototype.get,so.prototype.whenDefined=so.prototype.o,so.prototype.polyfillWrapFlushCallback=so.prototype.m;var mo=window.Document.prototype.createElement,yo=window.Document.prototype.createElementNS,go=window.Document.prototype.importNode,fo=window.Document.prototype.prepend,bo=window.Document.prototype.append,vo=window.Node.prototype.cloneNode,No=window.Node.prototype.appendChild,Eo=window.Node.prototype.insertBefore,So=window.Node.prototype.removeChild,Co=window.Node.prototype.replaceChild,To=Object.getOwnPropertyDescriptor(window.Node.prototype,'textContent'),Ao=window.Element.prototype.attachShadow,Po=Object.getOwnPropertyDescriptor(window.Element.prototype,'innerHTML'),Ro=window.Element.prototype.getAttribute,xo=window.Element.prototype.setAttribute,Io=window.Element.prototype.removeAttribute,Mo=window.Element.prototype.getAttributeNS,wo=window.Element.prototype.setAttributeNS,Oo=window.Element.prototype.removeAttributeNS,Do=window.Element.prototype.insertAdjacentElement,Lo=window.Element.prototype.prepend,ko=window.Element.prototype.append,Ho=window.Element.prototype.before,Fo=window.Element.prototype.after,Uo=window.Element.prototype.replaceWith,qo=window.Element.prototype.remove,jo=window.HTMLElement,Wo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),Bo=window.HTMLElement.prototype.insertAdjacentElement,Ko=window.customElements;if(!Ko||Ko.forcePolyfill||'function'!=typeof Ko.define||'function'!=typeof Ko.get){var Go=new Xt;ao(),io(),po(),ho(),document.__CE_hasRegistry=!0;var Xo=new so(Go);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:Xo})}}.call(self);let Pe={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Re='{',xe='}',Ie={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},Me='--',De=!(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?he(window.ShadyCSS):window.WebComponents&&he(window.WebComponents.flags);let He=null,Fe={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 Ue='style-scope';class qe{get SCOPE_NAME(){return Ue}dom(jt,Wt,Bt){jt.__styleScoped?jt.__styleScoped=null:this._transformDom(jt,Wt||'',Bt)}_transformDom(jt,Wt,Bt){jt.nodeType===Node.ELEMENT_NODE&&this.element(jt,Wt,Bt);let Kt='template'===jt.localName?(jt.content||jt._content).childNodes:jt.children||jt.childNodes;if(Kt)for(let Gt=0;Gt<Kt.length;Gt++)this._transformDom(Kt[Gt],Wt,Bt)}element(jt,Wt,Bt){if(Wt)if(jt.classList)Bt?(jt.classList.remove(Ue),jt.classList.remove(Wt)):(jt.classList.add(Ue),jt.classList.add(Wt));else if(jt.getAttribute){let Kt=jt.getAttribute('class');if(!Bt){let Gt=(Kt?Kt+' ':'')+Ue+' '+Wt;Se(jt,Gt)}else if(Kt){let Gt=Kt.replace(Ue,'').replace(Wt,'');Se(jt,Gt)}}}elementStyles(jt,Wt,Bt){let Kt=jt.__cssBuild,Gt=De||'shady'===Kt?_e(Wt,Bt):this.css(Wt,jt.is,jt.extends,Bt)+'\n\n';return Gt.trim()}css(jt,Wt,Bt,Kt){let Gt=this._calcHostScope(Wt,Bt);Wt=this._calcElementScope(Wt);let Xt=this;return _e(jt,function(Vt){Vt.isScoped||(Xt.rule(Vt,Wt,Gt),Vt.isScoped=!0),Kt&&Kt(Vt,Wt,Gt)})}_calcElementScope(jt){return jt?'.'+jt:''}_calcHostScope(jt,Wt){return Wt?'[is='+jt+']':jt}rule(jt,Wt,Bt){this._transformRule(jt,this._transformComplexSelector,Wt,Bt)}_transformRule(jt,Wt,Bt,Kt){jt.selector=jt.transformedSelector=this._transformRuleCss(jt,Wt,Bt,Kt)}_transformRuleCss(jt,Wt,Bt,Kt){let Gt=jt.selector.split(Be);if(!me(jt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Gt[Xt]=Wt.call(this,Yt,Bt,Kt);return Gt.join(Be)}_transformComplexSelector(jt,Wt,Bt){let Kt=!1;return jt=jt.trim(),jt=jt.replace(je,(Gt,Xt,Vt)=>`:${Xt}(${Vt.replace(/\s/g,'')})`),jt=jt.replace(ze,`${Xe} $1`),jt=jt.replace(Ke,(Gt,Xt,Vt)=>{if(!Kt){let Yt=this._transformCompoundSelector(Vt,Xt,Wt,Bt);Kt=Kt||Yt.stop,Xt=Yt.combinator,Vt=Yt.value}return Xt+Vt}),jt}_transformCompoundSelector(jt,Wt,Bt,Kt){let Gt=jt.indexOf(Ye);0<=jt.indexOf(Xe)?jt=this._transformHostSelector(jt,Kt):0!==Gt&&(jt=Bt?this._transformSimpleSelector(jt,Bt):jt);let Xt=!1;0<=Gt&&(Wt='',Xt=!0);let Vt;return Xt&&(Vt=!0,Xt&&(jt=jt.replace($e,(Yt,zt)=>` > ${zt}`))),jt=jt.replace(Ze,(Yt,zt,Jt)=>`[dir="${Jt}"] ${zt}, ${zt}[dir="${Jt}"]`),{value:jt,combinator:Wt,stop:Vt}}_transformSimpleSelector(jt,Wt){let Bt=jt.split(lt);return Bt[0]+=Wt,Bt.join(lt)}_transformHostSelector(jt,Wt){let Bt=jt.match(Je),Kt=Bt&&Bt[2].trim()||'';if(Kt){if(!Kt[0].match(Ge)){let Gt=Kt.split(Ge)[0];return Gt===Wt?Kt:'should_not_match'}return jt.replace(Je,function(Gt,Xt,Vt){return Wt+Vt})}return jt.replace(Xe,Wt)}documentRule(jt){jt.selector=jt.parsedSelector,this.normalizeRootSelector(jt),this._transformRule(jt,this._transformDocumentSelector)}normalizeRootSelector(jt){jt.selector===':root'&&(jt.selector='html')}_transformDocumentSelector(jt){return jt.match(Ye)?this._transformComplexSelector(jt,We):this._transformSimpleSelector(jt.trim(),We)}}let je=/:(nth[-\w]+)\(([^)]+)\)/,We=`:not(.${Ue})`,Be=',',Ke=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ge=/[[.:#*]/,Xe=':host',Ye='::slotted',ze=/^(::slotted)/,Je=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,$e=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ze=/(.*):dir\((?:(ltr|rtl))\)/,lt=':';var ct=new qe,ht={};const _t=Promise.resolve();class mt{static get(jt){return jt.__styleInfo}static set(jt,Wt){return jt.__styleInfo=Wt,Wt}static invalidate(jt){ht[jt]&&(ht[jt]._applyShimInvalid=!0)}static startValidating(jt){const Wt=ht[jt];Wt._validating||(Wt._validating=!0,_t.then(()=>{Wt._applyShimInvalid=!1,Wt._validating=!1}))}constructor(jt,Wt,Bt,Kt,Gt,Xt){this.styleRules=jt||null,this.placeholder=Wt||null,this.ownStylePropertyNames=Bt||[],this.overrideStyleProperties=null,this.elementName=Kt||'',this.cssBuild=Xt||'',this.typeExtension=Gt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const yt=window.Element.prototype,gt=yt.matches||yt.matchesSelector||yt.mozMatchesSelector||yt.msMatchesSelector||yt.oMatchesSelector||yt.webkitMatchesSelector,ft=navigator.userAgent.match('Trident'),bt='x-scope';class vt{get XSCOPE_NAME(){return bt}decorateStyles(jt){let Wt=this,Bt={},Kt=[],Gt=0;ye(jt,function(Vt){Wt.decorateRule(Vt),Vt.index=Gt++,Wt.collectPropertiesInCssText(Vt.propertyInfo.cssText,Bt)},function(Yt){Kt.push(Yt)}),jt._keyframes=Kt;let Xt=[];for(let Vt in Bt)Xt.push(Vt);return Xt}decorateRule(jt){if(jt.propertyInfo)return jt.propertyInfo;let Wt={},Bt={},Kt=this.collectProperties(jt,Bt);return Kt&&(Wt.properties=Bt,jt.rules=null),Wt.cssText=this.collectCssText(jt),jt.propertyInfo=Wt,Wt}collectProperties(jt,Wt){let Bt=jt.propertyInfo;if(!Bt){let Kt,Gt=Fe.VAR_ASSIGN,Xt=jt.parsedCssText,Vt,Yt;for(;Kt=Gt.exec(Xt);)Vt=(Kt[2]||Kt[3]).trim(),('inherit'!==Vt||'unset'!==Vt)&&(Wt[Kt[1].trim()]=Vt),Yt=!0;return Yt}else if(Bt.properties)return Object.assign(Wt,Bt.properties),!0}collectCssText(jt){return this.collectConsumingCssText(jt.parsedCssText)}collectConsumingCssText(jt){return jt.replace(Fe.BRACKETED,'').replace(Fe.VAR_ASSIGN,'')}collectPropertiesInCssText(jt,Wt){for(let Bt,Kt;Bt=Fe.VAR_CONSUMED.exec(jt);)Kt=Bt[1],':'!==Bt[2]&&(Wt[Kt]=!0)}reify(jt){let Wt=Object.getOwnPropertyNames(jt);for(let Kt,Bt=0;Bt<Wt.length;Bt++)Kt=Wt[Bt],jt[Kt]=this.valueForProperty(jt[Kt],jt)}valueForProperty(jt,Wt){if(jt)if(0<=jt.indexOf(';'))jt=this.valueForProperties(jt,Wt);else{let Bt=this;jt=Ee(jt,function(Gt,Xt,Vt,Yt){if(!Xt)return Gt+Yt;let zt=Bt.valueForProperty(Wt[Xt],Wt);return zt&&'initial'!==zt?'apply-shim-inherit'===zt&&(zt='inherit'):zt=Bt.valueForProperty(Wt[Vt]||Vt,Wt)||Vt,Gt+(zt||'')+Yt})}return jt&&jt.trim()||''}valueForProperties(jt,Wt){let Bt=jt.split(';');for(let Gt,Xt,Kt=0;Kt<Bt.length;Kt++)if(Gt=Bt[Kt]){if(Fe.MIXIN_MATCH.lastIndex=0,Xt=Fe.MIXIN_MATCH.exec(Gt),Xt)Gt=this.valueForProperty(Wt[Xt[1]],Wt);else{let Vt=Gt.indexOf(':');if(-1!==Vt){let Yt=Gt.substring(Vt);Yt=Yt.trim(),Yt=this.valueForProperty(Yt,Wt)||Yt,Gt=Gt.substring(0,Vt)+Yt}}Bt[Kt]=Gt&&Gt.lastIndexOf(';')===Gt.length-1?Gt.slice(0,-1):Gt||''}return Bt.join(';')}applyProperties(jt,Wt){let Bt='';jt.propertyInfo||this.decorateRule(jt),jt.propertyInfo.cssText&&(Bt=this.valueForProperties(jt.propertyInfo.cssText,Wt)),jt.cssText=Bt}applyKeyframeTransforms(jt,Wt){let Bt=jt.cssText,Kt=jt.cssText;if(null==jt.hasAnimations&&(jt.hasAnimations=Fe.ANIMATION_MATCH.test(Bt)),jt.hasAnimations){let Gt;if(null==jt.keyframeNamesToTransform)for(let Xt in jt.keyframeNamesToTransform=[],Wt)Gt=Wt[Xt],Kt=Gt(Bt),Bt!==Kt&&(Bt=Kt,jt.keyframeNamesToTransform.push(Xt));else{for(let Xt=0;Xt<jt.keyframeNamesToTransform.length;++Xt)Gt=Wt[jt.keyframeNamesToTransform[Xt]],Bt=Gt(Bt);Kt=Bt}}jt.cssText=Kt}propertyDataFromStyles(jt,Wt){let Bt={},Kt=this,Gt=[];return ye(jt,function(Xt){Xt.propertyInfo||Kt.decorateRule(Xt);let Vt=Xt.transformedSelector||Xt.parsedSelector;Wt&&Xt.propertyInfo.properties&&Vt&>.call(Wt,Vt)&&(Kt.collectProperties(Xt,Bt),Ce(Xt.index,Gt))},null,!0),{properties:Bt,key:Gt}}whenHostOrRootRule(jt,Wt,Bt,Kt){if(Wt.propertyInfo||this.decorateRule(Wt),!!Wt.propertyInfo.properties){let Gt=jt.is?ct._calcHostScope(jt.is,jt.extends):'html',Xt=Wt.parsedSelector,Vt=':host > *'===Xt||'html'===Xt,Yt=0===Xt.indexOf(':host')&&!Vt;if('shady'===Bt&&(Vt=Xt===Gt+' > *.'+Gt||-1!==Xt.indexOf('html'),Yt=!Vt&&0===Xt.indexOf(Gt)),'shadow'===Bt&&(Vt=':host > *'===Xt||'html'===Xt,Yt=Yt&&!Vt),Vt||Yt){let zt=Gt;Yt&&(De&&!Wt.transformedSelector&&(Wt.transformedSelector=ct._transformRuleCss(Wt,ct._transformComplexSelector,ct._calcElementScope(jt.is),Gt)),zt=Wt.transformedSelector||Gt),Kt({selector:zt,isHost:Yt,isRoot:Vt})}}}hostAndRootPropertiesForScope(jt,Wt){let Bt={},Kt={},Gt=this,Xt=Wt&&Wt.__cssBuild;return ye(Wt,function(Vt){Gt.whenHostOrRootRule(jt,Vt,Xt,function(Yt){let zt=jt._element||jt;gt.call(zt,Yt.selector)&&(Yt.isHost?Gt.collectProperties(Vt,Bt):Gt.collectProperties(Vt,Kt))})},null,!0),{rootProps:Kt,hostProps:Bt}}transformStyles(jt,Wt,Bt){let Kt=this,Gt=ct._calcHostScope(jt.is,jt.extends),Xt=jt.extends?'\\'+Gt.slice(0,-1)+'\\]':Gt,Vt=new RegExp(Fe.HOST_PREFIX+Xt+Fe.HOST_SUFFIX),Yt=mt.get(jt).styleRules,zt=this._elementKeyframeTransforms(jt,Yt,Bt);return ct.elementStyles(jt,Yt,function(Jt){Kt.applyProperties(Jt,Wt),De||me(Jt)||!Jt.cssText||(Kt.applyKeyframeTransforms(Jt,zt),Kt._scopeSelector(Jt,Vt,Gt,Bt))})}_elementKeyframeTransforms(jt,Wt,Bt){let Kt=Wt._keyframes,Gt={};if(!De&&Kt)for(let Xt=0,Vt=Kt[Xt];Xt<Kt.length;Vt=Kt[++Xt])this._scopeKeyframes(Vt,Bt),Gt[Vt.keyframesName]=this._keyframesRuleTransformer(Vt);return Gt}_keyframesRuleTransformer(jt){return function(Wt){return Wt.replace(jt.keyframesNameRx,jt.transformedKeyframesName)}}_scopeKeyframes(jt,Wt){jt.keyframesNameRx=new RegExp(jt.keyframesName,'g'),jt.transformedKeyframesName=jt.keyframesName+'-'+Wt,jt.transformedSelector=jt.transformedSelector||jt.selector,jt.selector=jt.transformedSelector.replace(jt.keyframesName,jt.transformedKeyframesName)}_scopeSelector(jt,Wt,Bt,Kt){jt.transformedSelector=jt.transformedSelector||jt.selector;let Gt=jt.transformedSelector,Xt='.'+Kt,Vt=Gt.split(',');for(let Jt,Yt=0,zt=Vt.length;Yt<zt&&(Jt=Vt[Yt]);Yt++)Vt[Yt]=Jt.match(Wt)?Jt.replace(Bt,Xt):Xt+' '+Jt;jt.selector=Vt.join(',')}applyElementScopeSelector(jt,Wt,Bt){let Kt=jt.getAttribute('class')||'',Gt=Kt;Bt&&(Gt=Kt.replace(new RegExp('\\s*'+bt+'\\s*'+Bt+'\\s*','g'),' ')),Gt+=(Gt?' ':'')+bt+' '+Wt,Kt!==Gt&&Se(jt,Gt)}applyElementStyle(jt,Wt,Bt,Kt){let Gt=Kt?Kt.textContent||'':this.transformStyles(jt,Wt,Bt),Xt=mt.get(jt),Vt=Xt.customStyle;return Vt&&!De&&Vt!==Kt&&(Vt._useCount--,0>=Vt._useCount&&Vt.parentNode&&Vt.parentNode.removeChild(Vt)),De?Xt.customStyle?(Xt.customStyle.textContent=Gt,Kt=Xt.customStyle):Gt&&(Kt=ge(Gt,Bt,jt.shadowRoot,Xt.placeholder)):Kt?!Kt.parentNode&&fe(Kt,null,Xt.placeholder):Gt&&(Kt=ge(Gt,Bt,null,Xt.placeholder)),Kt&&(Kt._useCount=Kt._useCount||0,Xt.customStyle!=Kt&&Kt._useCount++,Xt.customStyle=Kt),ft&&(Kt.textContent=Kt.textContent),Kt}applyCustomStyle(jt,Wt){let Bt=ue(jt),Kt=this;jt.textContent=_e(Bt,function(Gt){let Xt=Gt.cssText=Gt.parsedCssText;Gt.propertyInfo&&Gt.propertyInfo.cssText&&(Xt=ie(Xt),Gt.cssText=Kt.valueForProperties(Xt,Wt))})}}var Nt=new vt;let Et={};const St=window.customElements;if(St&&!De){const jt=St.define;St.define=function(Wt,Bt,Kt){return Et[Wt]=ve(Wt),jt.call(St,Wt,Bt,Kt)}}let Tt=Fe.MIXIN_MATCH,At=Fe.VAR_ASSIGN,Pt=/;\s*/m,Rt=/^\s*(initial)|(inherit)\s*$/,xt='_-_';class It{constructor(){this._map={}}set(jt,Wt){jt=jt.trim(),this._map[jt]={properties:Wt,dependants:{}}}get(jt){return jt=jt.trim(),this._map[jt]}}class Mt{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new It,this._separator=xt,this._boundProduceCssProperties=(jt,Wt,Bt,Kt)=>this._produceCssProperties(jt,Wt,Bt,Kt)}detectMixin(jt){const Wt=Tt.test(jt)||At.test(jt);return Tt.lastIndex=0,At.lastIndex=0,Wt}transformStyle(jt,Wt){let Bt=ue(jt);return this.transformRules(Bt,Wt),Bt}transformRules(jt,Wt){this._currentTemplate=ht[Wt],ye(jt,Bt=>{this.transformRule(Bt)}),this._currentTemplate=null}transformRule(jt){jt.cssText=this.transformCssText(jt.parsedCssText),':root'===jt.selector&&(jt.selector=':host > *')}transformCssText(jt){return jt=jt.replace(At,this._boundProduceCssProperties),this._consumeCssProperties(jt)}_getInitialValueForProperty(jt){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(jt)}_consumeCssProperties(jt){for(let Wt;Wt=Tt.exec(jt);){let Bt=Wt[0],Kt=Wt[1],Gt=Wt.index,Xt=Gt+Bt.indexOf('@apply'),Vt=Gt+Bt.length,Yt=jt.slice(0,Xt),zt=jt.slice(Vt),Jt=this._cssTextToMap(Yt),$t=this._atApplyToCssProperties(Kt,Jt);jt=[Yt,$t,zt].join(''),Tt.lastIndex=Gt+$t.length}return jt}_atApplyToCssProperties(jt,Wt){jt=jt.replace(Pt,'');let Bt=[],Kt=this._map.get(jt);if(Kt||(this._map.set(jt,{}),Kt=this._map.get(jt)),Kt){this._currentTemplate&&(Kt.dependants[this._currentTemplate.name]=this._currentTemplate);let Gt,Xt,Vt;for(Gt in Kt.properties)Vt=Wt&&Wt[Gt],Xt=[Gt,': var(',jt,xt,Gt],Vt&&Xt.push(',',Vt),Xt.push(')'),Bt.push(Xt.join(''))}return Bt.join('; ')}_replaceInitialOrInherit(jt,Wt){let Bt=Rt.exec(Wt);return Bt&&(Bt[1]?Wt=Mt._getInitialValueForProperty(jt):Wt='apply-shim-inherit'),Wt}_cssTextToMap(jt){let Wt=jt.split(';'),Bt,Kt,Gt={};for(let Vt,Yt,Xt=0;Xt<Wt.length;Xt++)Vt=Wt[Xt],Vt&&(Yt=Vt.split(':'),1<Yt.length&&(Bt=Yt[0].trim(),Kt=this._replaceInitialOrInherit(Bt,Yt.slice(1).join(':')),Gt[Bt]=Kt));return Gt}_invalidateMixinEntry(jt){for(let Wt in jt.dependants)this._currentTemplate&&Wt===this._currentTemplate.name||mt.invalidate(Wt)}_produceCssProperties(jt,Wt,Bt,Kt){if(Bt&&Ee(Bt,(to,oo)=>{oo&&this._map.get(oo)&&(Kt='@apply '+oo+';')}),!Kt)return jt;let Gt=this._consumeCssProperties(Kt),Xt=jt.slice(0,jt.indexOf('--')),Vt=this._cssTextToMap(Gt),Yt=Vt,zt=this._map.get(Wt),Jt=zt&&zt.properties;Jt?Yt=Object.assign(Object.create(Jt),Vt):this._map.set(Wt,Yt);let Zt,Qt,$t=[],eo=!1;for(Zt in Yt)Qt=Vt[Zt],void 0==Qt&&(Qt='initial'),Jt&&!(Zt in Jt)&&(eo=!0),$t.push(Wt+xt+Zt+': '+Qt);return eo&&this._invalidateMixinEntry(zt),zt&&(zt.properties=Yt),Bt&&(Xt=jt+';'+Xt),Xt+$t.join('; ')+';'}}let wt=new Mt;window.ApplyShim=wt;let Ot=function(){};if(!De){let jt=Xt=>{return Xt.classList&&!Xt.classList.contains(ct.SCOPE_NAME)||Xt instanceof SVGElement&&(!Xt.hasAttribute('class')||0>Xt.getAttribute('class').indexOf(ct.SCOPE_NAME))},Wt=Xt=>{for(let Yt,Vt=0;Vt<Xt.length;Vt++)if(Yt=Xt[Vt],Yt.target!==document.documentElement&&Yt.target!==document.head){for(let Jt,zt=0;zt<Yt.addedNodes.length;zt++)if(Jt=Yt.addedNodes[zt],jt(Jt)){let $t=Jt.getRootNode();if($t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let Zt=$t.host;if(Zt){let Qt=Zt.is||Zt.localName;ct.dom(Jt,Qt)}}}for(let Jt,zt=0;zt<Yt.removedNodes.length;zt++)if(Jt=Yt.removedNodes[zt],Jt.nodeType===Node.ELEMENT_NODE){let $t;if(Jt.classList?$t=Array.from(Jt.classList):Jt.hasAttribute('class')&&($t=Jt.getAttribute('class').split(/\s+/)),void 0!=$t){let Zt=$t.indexOf(ct.SCOPE_NAME);if(0<=Zt){let Qt=$t[Zt+1];Qt&&ct.dom(Jt,Qt,!0)}}}}},Bt=new MutationObserver(Wt),Kt=Xt=>{Bt.observe(Xt,{childList:!0,subtree:!0})},Gt=window.customElements&&!window.customElements.flush;if(Gt)Kt(document);else{let Xt=()=>{Kt(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Xt):requestAnimationFrame(function(){if('loading'===document.readyState){let Vt=function(){Xt(),document.removeEventListener('readystatechange',Vt)};document.addEventListener('readystatechange',Vt)}else Xt()})}Ot=function(){Wt(Bt.takeRecords())}}let Dt=new class{constructor(jt=100){this.cache={},this.typeMax=jt}_validate(jt,Wt,Bt){for(let Gt,Kt=0;Kt<Bt.length;Kt++)if(Gt=Bt[Kt],jt.properties[Gt]!==Wt[Gt])return!1;return!0}store(jt,Wt,Bt,Kt){let Gt=this.cache[jt]||[];Gt.push({properties:Wt,styleElement:Bt,scopeSelector:Kt}),Gt.length>this.typeMax&&Gt.shift(),this.cache[jt]=Gt}fetch(jt,Wt,Bt){let Kt=this.cache[jt];if(Kt)for(let Xt,Gt=Kt.length-1;0<=Gt;Gt--)if(Xt=Kt[Gt],this._validate(Xt,Wt,Bt))return Xt}};class Lt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=mt.set(document.documentElement,new mt({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return De}get nativeCss(){return Le}get nativeCssApply(){return!1}flush(){Ot()}_generateScopeSelector(jt){let Wt=this._scopeCounter[jt]=(this._scopeCounter[jt]||0)+1;return`${jt}-${Wt}`}getStyleAst(jt){return ue(jt)}styleAstToString(jt){return _e(jt)}_gatherStyles(jt){let Wt=jt.content.querySelectorAll('style'),Bt=[];for(let Gt,Kt=0;Kt<Wt.length;Kt++)Gt=Wt[Kt],Bt.push(Gt.textContent),Gt.parentNode.removeChild(Gt);return Bt.join('').trim()}_getCssBuild(jt){let Wt=jt.content.querySelector('style');return Wt?Wt.getAttribute('css-build')||'':''}prepareTemplate(jt,Wt,Bt){if(!jt._prepared){jt._prepared=!0,jt.name=Wt,jt.extends=Bt,ht[Wt]=jt;let Kt=this._getCssBuild(jt),Gt=this._gatherStyles(jt),Xt={is:Wt,extends:Bt,__cssBuild:Kt};this.nativeShadow||ct.dom(jt.content,Wt);let Vt=wt.detectMixin(Gt),Yt=ee(Gt);Vt&&this.nativeCss&&!this.nativeCssApply&&wt.transformRules(Yt,Wt),jt._styleAst=Yt;let zt=[];if(this.nativeCss||(zt=Nt.decorateStyles(jt._styleAst,Xt)),!zt.length||this.nativeCss){let Jt=this.nativeShadow?jt.content:null,$t=Et[Wt],Zt=this._generateStaticStyle(Xt,jt._styleAst,Jt,$t);jt._style=Zt}jt._ownPropertyNames=zt}}_generateStaticStyle(jt,Wt,Bt,Kt){let Gt=ct.elementStyles(jt,Wt);if(Gt.length)return ge(Gt,jt.is,Bt,Kt)}_prepareHost(jt){let Bt,Wt=jt.getAttribute('is')||jt.localName;Wt!==jt.localName&&(Bt=jt.localName);let Xt,Vt,Yt,Kt=Et[Wt],Gt=ht[Wt];return Gt&&(Xt=Gt._styleAst,Vt=Gt._ownPropertyNames,Yt=Gt._cssBuild),mt.set(jt,new mt(Xt,Kt,Vt,Wt,Bt,Yt))}applyStyle(jt,Wt){let Bt=jt.getAttribute('is')||jt.localName,Kt=mt.get(jt),Gt=!!Kt;if(Kt||(Kt=this._prepareHost(jt)),this._isRootOwner(jt)||(this._elementsHaveApplied=!0),window.CustomStyle){let Xt=window.CustomStyle;if(Xt._documentDirty){if(Xt.findStyles(),this.nativeCss?!this.nativeCssApply&&Xt._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),Xt.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),Gt))return}}if(Wt&&(Kt.overrideStyleProperties=Kt.overrideStyleProperties||{},Object.assign(Kt.overrideStyleProperties,Wt)),this.nativeCss){Kt.overrideStyleProperties&&this._updateNativeProperties(jt,Kt.overrideStyleProperties);let Xt=ht[Bt];if(!Xt&&!this._isRootOwner(jt))return;if(Xt&&Xt._applyShimInvalid&&Xt._style){if(Xt._validating||(wt.transformRules(Xt._styleAst,Bt),Xt._style.textContent=ct.elementStyles(jt,Kt.styleRules),mt.startValidating(Bt)),this.nativeShadow){let Vt=jt.shadowRoot;if(Vt){let Yt=Vt.querySelector('style');Yt.textContent=ct.elementStyles(jt,Kt.styleRules)}}Kt.styleRules=Xt._styleAst}}else this._updateProperties(jt,Kt),Kt.ownStylePropertyNames&&Kt.ownStylePropertyNames.length&&this._applyStyleProperties(jt,Kt);if(Gt){let Xt=this._isRootOwner(jt)?jt:jt.shadowRoot;Xt&&this._applyToDescendants(Xt)}}_applyToDescendants(jt){let Wt=jt.children||jt.childNodes;for(let Kt,Bt=0;Bt<Wt.length;Bt++)Kt=Wt[Bt],Kt.shadowRoot&&this.applyStyle(Kt),this._applyToDescendants(Kt)}_styleOwnerForNode(jt){let Wt=jt.getRootNode(),Bt=Wt.host;return Bt?mt.get(Bt)?Bt:this._styleOwnerForNode(Bt):this._documentOwner}_isRootOwner(jt){return jt===this._documentOwner}_applyStyleProperties(jt,Wt){let Bt=jt.getAttribute('is')||jt.localName,Kt=Dt.fetch(Bt,Wt.styleProperties,Wt.ownStylePropertyNames),Gt=Kt&&Kt.scopeSelector,Xt=Kt?Kt.styleElement:null,Vt=Wt.scopeSelector;Wt.scopeSelector=Gt||this._generateScopeSelector(Bt);let Yt=Nt.applyElementStyle(jt,Wt.styleProperties,Wt.scopeSelector,Xt);return this.nativeShadow||Nt.applyElementScopeSelector(jt,Wt.scopeSelector,Vt),Kt||Dt.store(Bt,Wt.styleProperties,Yt,Wt.scopeSelector),Yt}_updateProperties(jt,Wt){let Bt=this._styleOwnerForNode(jt),Kt=mt.get(Bt),Gt=Kt.styleProperties,Xt=Object.create(Gt||null),Vt=Nt.hostAndRootPropertiesForScope(jt,Wt.styleRules),Yt=Nt.propertyDataFromStyles(Kt.styleRules,jt),zt=Yt.properties;Object.assign(Xt,Vt.hostProps,zt,Vt.rootProps),this._mixinOverrideStyles(Xt,Wt.overrideStyleProperties),Nt.reify(Xt),Wt.styleProperties=Xt}_mixinOverrideStyles(jt,Wt){for(let Bt in Wt){let Kt=Wt[Bt];(Kt||0===Kt)&&(jt[Bt]=Kt)}}_updateNativeProperties(jt,Wt){for(let Bt in Wt)null===Bt?jt.style.removeProperty(Bt):jt.style.setProperty(Bt,Wt[Bt])}updateStyles(jt){this.applyStyle(this._documentOwner,jt)}_transformCustomStyleForDocument(jt){let Wt=ue(jt);ye(Wt,Bt=>{De?ct.normalizeRootSelector(Bt):ct.documentRule(Bt),this.nativeCss&&!this.nativeCssApply&&wt.transformRule(Bt)}),this.nativeCss?jt.textContent=_e(Wt):this._documentOwnerStyleInfo.styleRules.rules.push(Wt)}_revalidateApplyShim(jt){if(this.nativeCss&&!this.nativeCssApply){let Wt=ue(jt);wt.transformRules(Wt),jt.textContent=_e(Wt)}}_applyCustomStyleToDocument(jt){this.nativeCss||Nt.applyCustomStyle(jt,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(jt,Wt){let Bt;if(!this.nativeCss){let Kt=mt.get(jt)||mt.get(this._styleOwnerForNode(jt));Bt=Kt.styleProperties[Wt]}return Bt=Bt||window.getComputedStyle(jt).getPropertyValue(Wt),Bt.trim()}setElementClass(jt,Wt){let Bt=jt.getRootNode(),Kt=Wt?Wt.split(/\s/):[],Gt=Bt.host&&Bt.host.localName;if(!Gt){var Xt=jt.getAttribute('class');if(Xt){let Vt=Xt.split(/\s/);for(let Yt=0;Yt<Vt.length;Yt++)if(Vt[Yt]===ct.SCOPE_NAME){Gt=Vt[Yt+1];break}}}if(Gt&&Kt.push(ct.SCOPE_NAME,Gt),!this.nativeCss){let Vt=mt.get(jt);Vt&&Vt.scopeSelector&&Kt.push(Nt.XSCOPE_NAME,Vt.scopeSelector)}Se(jt,Kt.join(' '))}_styleInfoForNode(jt){return mt.get(jt)}}window.ShadyCSS=new Lt;let kt=window.ShadyCSS,Ht=!1,Ft=[],Ut=null;class qt extends HTMLElement{static get _customStyles(){return Ft}static get processHook(){return Ut}static set processHook(jt){Ut=jt}static get _documentDirty(){return Ht}static findStyles(){for(let Wt,jt=0;jt<Ft.length;jt++)if(Wt=Ft[jt],!Wt._style){let Bt=Wt.querySelector('style');if(!Bt)continue;if(Bt.__appliedElement)for(let Gt,Kt=0;Kt<Bt.attributes.length;Kt++)Gt=Bt.attributes[Kt],Bt.__appliedElement.setAttribute(Gt.name,Gt.value);Wt._style=Bt.__appliedElement||Bt,Ut&&Ut(Wt._style),kt._transformCustomStyleForDocument(Wt._style)}}static _revalidateApplyShim(){for(let Wt,jt=0;jt<Ft.length;jt++)Wt=Ft[jt],Wt._style&&kt._revalidateApplyShim(Wt._style)}static applyStyles(){for(let Wt,jt=0;jt<Ft.length;jt++)Wt=Ft[jt],Wt._style&&kt._applyCustomStyleToDocument(Wt._style);Ht=!1}constructor(){super(),Ft.push(this),Te()}}window.CustomStyle=qt,window.customElements.define('custom-style',qt),function(){'use strict';if(customElements&&customElements.polyfillWrapFlushCallback){function Wt(){if(Bt){let Gt=Bt;Bt=null,Gt()}}let Bt,Kt=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(Gt){Bt=Gt,Kt(Wt)}),HTMLImports.whenReady=function(Gt){Kt(function(){Wt(),Gt()})}}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 Bt=document.querySelector('head');Bt.insertBefore(Wt,Bt.firstChild)}(window.WebComponents)})();
|
|
//# sourceMappingURL=webcomponents-lite.js.map
|