mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 15:53:12 +00:00
3 lines
74 KiB
JavaScript
3 lines
74 KiB
JavaScript
(function(){'use strict';function _(Ut){return Ut=j(Ut),ee($(Ut),Ut)}function j(Ut){return Ut.replace(Ie.comments,'').replace(Ie.port,'')}function $(Ut){let Wt=new xe;Wt.start=0,Wt.end=Ut.length;let Bt=Wt;for(let qt=0,jt=Ut.length;qt<jt;qt++)if(Ut[qt]===Me){Bt.rules||(Bt.rules=[]);let Kt=Bt,Gt=Kt.rules[Kt.rules.length-1]||null;Bt=new xe,Bt.start=qt+1,Bt.parent=Kt,Bt.previous=Gt,Kt.rules.push(Bt)}else Ut[qt]===De&&(Bt.end=qt+1,Bt=Bt.parent||Wt);return Wt}function ee(Ut,Wt){let Bt=Wt.substring(Ut.start,Ut.end-1);if(Ut.parsedCssText=Ut.cssText=Bt.trim(),Ut.parent){let jt=Ut.previous?Ut.previous.end:Ut.parent.start;Bt=Wt.substring(jt,Ut.start-1),Bt=te(Bt),Bt=Bt.replace(Ie.multipleSpaces,' '),Bt=Bt.substring(Bt.lastIndexOf(';')+1);let Kt=Ut.parsedSelector=Ut.selector=Bt.trim();Ut.atRule=0===Kt.indexOf('@'),Ut.atRule?0===Kt.indexOf('@media')?Ut.type=Oe.MEDIA_RULE:Kt.match(Ie.keyframesRule)&&(Ut.type=Oe.KEYFRAMES_RULE,Ut.keyframesName=Ut.selector.split(Ie.multipleSpaces).pop()):0===Kt.indexOf(we)?Ut.type=Oe.MIXIN_RULE:Ut.type=Oe.STYLE_RULE}let qt=Ut.rules;if(qt)for(let Gt,jt=0,Kt=qt.length;jt<Kt&&(Gt=qt[jt]);jt++)ee(Gt,Wt);return Ut}function te(Ut){return Ut.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 oe(Ut,Wt,Bt=''){let qt='';if(Ut.cssText||Ut.rules){let jt=Ut.rules;if(jt&&!re(jt))for(let Yt,Kt=0,Gt=jt.length;Kt<Gt&&(Yt=jt[Kt]);Kt++)qt=oe(Yt,Wt,qt);else qt=Wt?Ut.cssText:se(Ut.cssText),qt=qt.trim(),qt&&(qt=' '+qt+'\n')}return qt&&(Ut.selector&&(Bt+=Ut.selector+' '+Me+'\n'),Bt+=qt,Ut.selector&&(Bt+=De+'\n\n')),Bt}function re(Ut){let Wt=Ut[0];return!!Wt&&!!Wt.selector&&0===Wt.selector.indexOf(we)}function se(Ut){return Ut=ne(Ut),le(Ut)}function ne(Ut){return Ut.replace(Ie.customProp,'').replace(Ie.mixinProp,'')}function le(Ut){return Ut.replace(Ie.mixinApply,'').replace(Ie.varApply,'')}function ae(Ut){Ut&&(He=He&&!Ut.nativeCss&&!Ut.shimcssproperties,Fe=Fe&&!Ut.nativeShadow&&!Ut.shimshadow)}function de(Ut,Wt){return Ut?('string'==typeof Ut&&(Ut=_(Ut)),Wt&&he(Ut,Wt),oe(Ut,He)):''}function ie(Ut){return!Ut.__cssRules&&Ut.textContent&&(Ut.__cssRules=_(Ut.textContent)),Ut.__cssRules||null}function pe(Ut){return!!Ut.parent&&Ut.parent.type===Oe.KEYFRAMES_RULE}function he(Ut,Wt,Bt,qt){if(Ut){let jt=!1,Kt=Ut.type;if(qt&&Kt===Oe.MEDIA_RULE){let Yt=Ut.selector.match(je);Yt&&!window.matchMedia(Yt[1]).matches&&(jt=!0)}Kt===Oe.STYLE_RULE?Wt(Ut):Bt&&Kt===Oe.KEYFRAMES_RULE?Bt(Ut):Kt===Oe.MIXIN_RULE&&(jt=!0);let Gt=Ut.rules;if(Gt&&!jt)for(let Xt,Yt=0,Vt=Gt.length;Yt<Vt&&(Xt=Gt[Yt]);Yt++)he(Xt,Wt,Bt,qt)}}function _e(Ut,Wt,Bt,qt){let jt=ue(Ut,Wt);return me(jt,Bt,qt),jt}function ue(Ut,Wt){let Bt=document.createElement('style');return Wt&&Bt.setAttribute('scope',Wt),Bt.textContent=Ut,Bt}function ye(Ut){let Wt=document.createComment(' Shady DOM styles for '+Ut+' '),Bt=Ve?Ve.nextSibling:null,qt=document.head;return qt.insertBefore(Wt,Bt||qt.firstChild),Ve=Wt,Wt}function me(Ut,Wt,Bt){Wt=Wt||document.head;let qt=Bt&&Bt.nextSibling||Wt.firstChild;if(Wt.insertBefore(Ut,qt),!Ve)Ve=Ut;else{let jt=Ut.compareDocumentPosition(Ve);jt===Node.DOCUMENT_POSITION_PRECEDING&&(Ve=Ut)}}function ge(Ut,Wt){let Bt=0;for(let qt=Wt,jt=Ut.length;qt<jt;qt++)if('('===Ut[qt])Bt++;else if(')'===Ut[qt]&&0==--Bt)return qt;return-1}function fe(Ut,Wt){let Bt=Ut.indexOf('var(');if(-1===Bt)return Wt(Ut,'','','');let qt=ge(Ut,Bt+3),jt=Ut.substring(Bt+4,qt),Kt=Ut.substring(0,Bt),Gt=fe(Ut.substring(qt+1),Wt),Yt=jt.indexOf(',');if(-1===Yt)return Wt(Kt,jt.trim(),'',Gt);let Vt=jt.substring(0,Yt).trim(),Xt=jt.substring(Yt+1).trim();return Wt(Kt,Vt,Xt,Gt)}function Se(Ut,Wt){Fe?Ut.setAttribute('class',Wt):window.ShadyDOM.nativeMethods.setAttribute.call(Ut,'class',Wt)}function Ne(Ut){let Wt=Ut.localName,Bt='',qt='';return Wt?-1<Wt.indexOf('-')?Bt=Wt:(qt=Wt,Bt=Ut.getAttribute&&Ut.getAttribute('is')||''):(Bt=Ut.is,qt=Ut.extends),{is:Bt,typeExtension:qt}}function Ce(Ut,Wt){let Bt=parseInt(Ut/32,10);Wt[Bt]=(Wt[Bt]||0)|1<<Ut%32}function be(Ut){let Wt=vt[Ut];Wt&&Ee(Wt)}function Ee(Ut){Ut._applyShimInvalid=!0}function ve(Ut){return!Ut._applyShimInvalid}function Pe(Ut){return Ut._validating}function Te(Ut){Ut._validating||(Ut._validating=!0,Pt.then(function(){Ut._applyShimInvalid=!1,Ut._validating=!1}))}function Re(Ut){Rt?Rt(Ut):(!Tt&&(Tt=new Promise(Wt=>{At=Wt}),'complete'===document.readyState?At():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&At()})),Tt.then(function(){Ut&&Ut()}))}function Ae(Ut,Wt){for(let Bt in Wt)null===Bt?Ut.style.removeProperty(Bt):Ut.style.setProperty(Bt,Wt[Bt])}(function(){'use strict';function Ut(Mr,Dr,Ir){return{index:Mr,removed:Dr,addedCount:Ir}}function Wt(Mr,Dr,Ir,wr,Lr,kr){var Fr=0,Hr=0,Ur=Math.min(Ir-Dr,kr-Lr);if(0==Dr&&0==Lr)a:{for(Fr=0;Fr<Ur;Fr++)if(Mr[Fr]!==wr[Fr])break a;Fr=Ur}if(Ir==Mr.length&&kr==wr.length){for(var Hr=Ur-Fr,Ur=Mr.length,Wr=wr.length,Br=0;Br<Hr&&Bt(Mr[--Ur],wr[--Wr]);)Br++;Hr=Br}if(Dr+=Fr,Lr+=Fr,Ir-=Hr,kr-=Hr,0==Ir-Dr&&0==kr-Lr)return[];if(Dr==Ir){for(Ir=Ut(Dr,[],0);Lr<kr;)Ir.removed.push(wr[Lr++]);return[Ir]}if(Lr==kr)return[Ut(Dr,[],Ir-Dr)];for(Fr=Dr,Hr=Lr,kr=kr-Hr+1,Ur=Ir-Fr+1,Ir=Array(kr),Wr=0;Wr<kr;Wr++)Ir[Wr]=Array(Ur),Ir[Wr][0]=Wr;for(Wr=0;Wr<Ur;Wr++)Ir[0][Wr]=Wr;for(Wr=1;Wr<kr;Wr++)for(Br=1;Br<Ur;Br++)if(Mr[Fr+Br-1]===wr[Hr+Wr-1])Ir[Wr][Br]=Ir[Wr-1][Br-1];else{var qr=Ir[Wr-1][Br]+1,jr=Ir[Wr][Br-1]+1;Ir[Wr][Br]=qr<jr?qr:jr}for(kr=Ir.length-1,Fr=Ir[0].length-1,Hr=Ir[kr][Fr],Mr=[];0<kr||0<Fr;)0==kr?(Mr.push(2),Fr--):0==Fr?(Mr.push(3),kr--):(Ur=Ir[kr-1][Fr-1],Wr=Ir[kr-1][Fr],Br=Ir[kr][Fr-1],qr=Wr<Br?Wr<Ur?Wr:Ur:Br<Ur?Br:Ur,qr==Ur?(Ur==Hr?Mr.push(0):(Mr.push(1),Hr=Ur),kr--,Fr--):qr==Wr?(Mr.push(3),kr--,Hr=Wr):(Mr.push(2),Fr--,Hr=Br));for(Mr.reverse(),Ir=void 0,kr=[],Fr=0;Fr<Mr.length;Fr++)switch(Mr[Fr]){case 0:Ir&&(kr.push(Ir),Ir=void 0),Dr++,Lr++;break;case 1:Ir||(Ir=Ut(Dr,[],0)),Ir.addedCount++,Dr++,Ir.removed.push(wr[Lr]),Lr++;break;case 2:Ir||(Ir=Ut(Dr,[],0)),Ir.addedCount++,Dr++;break;case 3:Ir||(Ir=Ut(Dr,[],0)),Ir.removed.push(wr[Lr]),Lr++;}return Ir&&kr.push(Ir),kr}function Bt(Mr,Dr){return Mr===Dr}function qt(Mr){return'ShadyRoot'===Mr.__localName}function jt(Mr,Dr){if(Mr&&Dr)for(var Lr,Ir=Object.getOwnPropertyNames(Dr),wr=0;wr<Ir.length&&(Lr=Ir[wr]);wr++){var kr=Lr,Hr=Object.getOwnPropertyDescriptor(Dr,kr);Hr&&Object.defineProperty(Mr,kr,Hr)}return Mr||Dr}function Kt(){wo=!1;for(var Mr=!!Io.length;Io.length;)Io.shift()();return Mr}function Gt(Mr,Dr){return Mr.__shady&&Mr.__shady[Dr]}function Yt(Mr){return'&'===Mr?'&':'<'===Mr?'<':'>'===Mr?'>':'"'===Mr?'"':'\xA0'===Mr?' ':void 0}function Vt(Mr){for(var Dr={},Ir=0;Ir<Mr.length;Ir++)Dr[Mr[Ir]]=!0;return Dr}function Xt(Mr,Dr,Ir){switch(Mr.nodeType){case Node.ELEMENT_NODE:Dr=Mr.localName;for(var Fr,wr='<'+Dr,Lr=Mr.attributes,kr=0;Fr=Lr[kr];kr++)wr+=' '+Fr.name+'="'+Fr.value.replace(Fo,Yt)+'"';return wr+='>',Uo[Dr]?wr:wr+zt(Mr,Ir)+'</'+Dr+'>';case Node.TEXT_NODE:return Mr=Mr.data,Dr&&Wo[Dr.localName]?Mr:Mr.replace(Ho,Yt);case Node.COMMENT_NODE:return'<!--'+Mr.data+'-->';default:throw window.console.error(Mr),Error('not implemented');}}function zt(Mr,Dr){'template'===Mr.localName&&(Mr=Mr.content);for(var Fr,Ir='',wr=Dr?Dr(Mr):Mr.childNodes,Lr=0,kr=wr.length;Lr<kr&&(Fr=wr[Lr]);Lr++)Ir+=Xt(Fr,Mr,Dr);return Ir}function $t(Mr){var Dr=[];for(qo.currentNode=Mr,Mr=qo.firstChild();Mr;)Dr.push(Mr),Mr=qo.nextSibling();return Dr}function Jt(Mr){return{get:function(){var Dr=Lo.getProperty(this,Mr);return void 0===Dr?Bo[Mr](this):Dr},configurable:!0}}function Zt(Mr,Dr,Ir){for(var wr in Dr){var Lr=Object.getOwnPropertyDescriptor(Mr,wr);Lr&&Lr.configurable||!Lr&&Ir?Object.defineProperty(Mr,wr,Dr[wr]):Ir&&console.warn('Could not define',wr,'on',Mr)}}function Qt(Mr,Dr,Ir){Ko.patchOutsideElementAccessors(Mr),Ir=Ir||null,Mr.__shady=Mr.__shady||{},Dr.__shady=Dr.__shady||{},Ir&&(Ir.__shady=Ir.__shady||{}),Mr.__shady.previousSibling=Ir?Ir.__shady.previousSibling:Dr.lastChild;var wr=Mr.__shady.previousSibling;wr&&wr.__shady&&(wr.__shady.nextSibling=Mr),(wr=Mr.__shady.nextSibling=Ir)&&wr.__shady&&(wr.__shady.previousSibling=Mr),Mr.__shady.parentNode=Dr,Ir?Ir===Dr.__shady.firstChild&&(Dr.__shady.firstChild=Mr):(Dr.__shady.lastChild=Mr,Dr.__shady.firstChild||(Dr.__shady.firstChild=Mr)),Dr.__shady.childNodes=null}function eo(Mr){this.root=Mr,this.insertionPointTag='slot'}function to(Mr,Dr){if(Mr!==_r)throw new TypeError('Illegal constructor');return Mr=document.createDocumentFragment(),Mr.__proto__=to.prototype,Mr._init(Dr),Mr}function oo(Mr){var Ir,Dr=Lo.hasProperty(Mr,'parentNode')&&Lo.getProperty(Mr,'parentNode'),wr=vo.ownerShadyRootForNode(Mr);if(Dr||wr){Ir=ao(Mr),Dr&&er.recordRemoveChild(Mr,Dr);var Lr;if(Lr=wr){var kr;Lr=wr._insertionPoints;for(var Fr=0;Fr<Lr.length;Fr++){var Ur,Hr=Lr[Fr];a:{for(Ur=Hr;Ur;){if(Ur==Mr){Ur=!0;break a}Ur=Ur.parentNode}Ur=void 0}if(Ur)for(Hr=Hr.assignedNodes({flatten:!0}),Ur=0;Ur<Hr.length;Ur++){kr=!0;var Wr=Hr[Ur],Br=Bo.parentNode(Wr);Br&&tr.removeChild.call(Br,Wr)}}Lr=kr}kr=Lr,Dr=Dr&&wr&&Dr.localName===wr.getInsertionPointTag(),(kr||Dr)&&(wr._skipUpdateInsertionPoints=!1,io(wr))}return lo(Mr),Ir}function ro(Mr,Dr,Ir){(Mr=Mr.__shady&&Mr.__shady.observer)&&(Dr&&Mr.addedNodes.push(Dr),Ir&&Mr.removedNodes.push(Ir),Mr.schedule())}function so(Mr){if(Mr&&Mr.nodeType){var Dr=Mr.__ownerShadyRoot;return void 0===Dr&&(Dr=vo.isShadyRoot(Mr)?Mr:(Dr=Mr.parentNode)?so(Dr):Mr,document.documentElement.contains(Mr)&&(Mr.__ownerShadyRoot=Dr)),Dr}}function no(Mr,Dr,Ir){var wr,Lr=Ir.getInsertionPointTag();if(Mr.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||Mr.__noInsertionPoint)Mr.localName===Lr&&(er.recordChildNodes(Dr),er.recordChildNodes(Mr),wr=!0);else for(var Fr,Hr,Lr=Mr.querySelectorAll(Lr),kr=0;kr<Lr.length&&(Fr=Lr[kr]);kr++)Hr=Fr.parentNode,Hr===Mr&&(Hr=Dr),Hr=no(Fr,Hr,Ir),wr=wr||Hr;return wr}function lo(Mr){if(void 0!==Mr.__ownerShadyRoot)for(var Lr,Dr=Mr.childNodes,Ir=0,wr=Dr.length;Ir<wr&&(Lr=Dr[Ir]);Ir++)lo(Lr);Mr.__ownerShadyRoot=void 0}function ao(Mr){if((Mr=Mr.parentNode)&&Mr.shadyRoot&&Mr.shadyRoot.hasInsertionPoint())return io(Mr.shadyRoot),!0}function io(Mr){Mr._changePending=!0,Mr.update()}function po(Mr,Dr){'slot'===Dr?ao(Mr):'slot'===Mr.localName&&'name'==Dr&&(Mr=vo.ownerShadyRootForNode(Mr))&&Mr.update()}function co(Mr,Dr,Ir,wr){for(var Fr,Lr=0,kr=Mr.length;Lr<kr&&(Fr=Mr[Lr]);Lr++){var Hr;if(Hr=Fr.nodeType===Node.ELEMENT_NODE){Hr=Fr;var Ur=Dr,Wr=Ir,Br=wr,qr=Ur(Hr);qr&&Br.push(Hr),Wr&&Wr(qr)?Hr=qr:(co(Hr.childNodes,Ur,Wr,Br),Hr=void 0)}if(Hr)return!0}}function ho(Mr,Dr){if(Mr.ownerDocument!==document)return tr.importNode.call(document,Mr,Dr);var Ir=tr.importNode.call(document,Mr,!1);if(Dr){Mr=Mr.childNodes,Dr=0;for(var wr;Dr<Mr.length;Dr++)wr=ho(Mr[Dr],!0),Ir.appendChild(wr)}return Ir}function _o(){this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set}function uo(Mr,Dr){var Ir=[],wr=Mr;for(Mr=Mr===window?window:Mr.getRootNode();wr;)Ir.push(wr),wr=wr.assignedSlot?wr.assignedSlot:wr.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&wr.host&&(Dr||wr!==Mr)?wr.host:wr.parentNode;return Ir[Ir.length-1]===document&&Ir.push(window),Ir}function yo(Mr,Dr){if(!vo.isShadyRoot)return Mr;Mr=uo(Mr,!0);for(var wr,Lr,kr,Fr,Ir=0;Ir<Dr.length;Ir++)if(wr=Dr[Ir],kr=wr===window?window:wr.getRootNode(),kr!==Lr&&(Fr=Mr.indexOf(kr),Lr=kr),!vo.isShadyRoot(kr)||-1<Fr)return wr}function mo(Mr){function Dr(Ir,wr){return Ir=new Mr(Ir,wr),Ir.__composed=wr&&!!wr.composed,Ir}return vo.mixin(Dr,Mr),Dr.prototype=Mr.prototype,Dr}function go(Mr,Dr,Ir){if(Ir=Dr.__handlers&&Dr.__handlers[Mr.type]&&Dr.__handlers[Mr.type][Ir])for(var Lr,wr=0;(Lr=Ir[wr])&&(Lr.call(Dr,Mr),!Mr.__immediatePropagationStopped);wr++);}function fo(Mr){var Ir,Dr=Mr.composedPath();Object.defineProperty(Mr,'currentTarget',{get:function(){return Ir},configurable:!0});for(var wr=Dr.length-1;0<=wr;wr--)if(Ir=Dr[wr],go(Mr,Ir,'capture'),Mr.__propagationStopped)return;Object.defineProperty(Mr,'eventPhase',{value:Event.AT_TARGET});for(var Lr,wr=0;wr<Dr.length&&!((Ir=Dr[wr],0===wr||Ir.shadowRoot&&Ir.shadowRoot===Lr)&&(go(Mr,Ir,'bubble'),Ir!==window&&(Lr=Ir.getRootNode()),Mr.__propagationStopped));wr++);}function So(){for(var Mr in Nr)window.addEventListener(Mr,function(Dr){Dr.__target||(No(Dr),fo(Dr),Dr.stopImmediatePropagation())},!0)}function No(Mr){Mr.__target=Mr.target,Mr.__relatedTarget=Mr.relatedTarget,vo.settings.hasDescriptors?vo.patchPrototype(Mr,Sr):vo.extend(Mr,Sr)}function Co(Mr){return ur.renderRootNode(Mr),Lo.getProperty(Mr,'assignedSlot')||null}function bo(Mr,Dr){for(var Ir=Object.getOwnPropertyNames(Dr),wr=0;wr<Ir.length;wr++){var Lr=Ir[wr],kr=Object.getOwnPropertyDescriptor(Dr,Lr);kr.value?Mr[Lr]=kr.value:Object.defineProperty(Mr,Lr,kr)}}var Eo={};Eo.calculateSplices=function(Mr,Dr){return Wt(Mr,0,Mr.length,Dr,0,Dr.length)};var vo={},Po=window.ShadyDOM||{};Po.hasNativeShadowDOM=Element.prototype.attachShadow&&Node.prototype.getRootNode;var To=Object.getOwnPropertyDescriptor(Node.prototype,'firstChild');Po.hasDescriptors=!!(To&&To.configurable&&To.get),Po.inUse=Po.force||!Po.hasNativeShadowDOM;var Ro=Element.prototype,Ao=Ro.matches||Ro.matchesSelector||Ro.mozMatchesSelector||Ro.msMatchesSelector||Ro.oMatchesSelector||Ro.webkitMatchesSelector,xo=document.createTextNode(''),Oo=0,Mo=[];new MutationObserver(function(){for(;Mo.length;)try{Mo.shift()()}catch(Mr){throw xo.textContent=Oo++,Mr}}).observe(xo,{characterData:!0}),vo.settings=Po,vo.isShadyRoot=qt,vo.ownerShadyRootForNode=function(Mr){if(Mr=Mr.getRootNode(),qt(Mr))return Mr},vo.matchesSelector=function(Mr,Dr){return Ao.call(Mr,Dr)},vo.extend=jt,vo.extendAll=function(Mr){for(var Ir=[],wr=1;wr<arguments.length;++wr)Ir[wr-1]=arguments[wr];for(wr=0;wr<Ir.length;wr++)jt(Mr,Ir[wr]);return Mr},vo.mixin=function(Mr,Dr){for(var Ir in Dr)Mr[Ir]=Dr[Ir];return Mr},vo.patchPrototype=function(Mr,Dr){var Ir=Object.getPrototypeOf(Mr);if(!Ir.hasOwnProperty('__patchProto')){var wr=Object.create(Ir);wr.__sourceProto=Ir,jt(wr,Dr),Ir.__patchProto=wr}Mr.__proto__=Ir.__patchProto},vo.microtask=function(Mr){Mo.push(Mr),xo.textContent=Oo++};var wo,Do={},Io=[];Kt.list=Io,Do.enqueue=function(Mr){wo||(wo=!0,vo.microtask(Kt)),Io.push(Mr)},Do.flush=Kt;var Lo={};Lo.getProperty=Gt,Lo.hasProperty=function(Mr,Dr){return void 0!==Gt(Mr,Dr)};var ko={},Fo=/[&\u00A0"]/g,Ho=/[&\u00A0<>]/g,Uo=Vt('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),Wo=Vt('style script xmp iframe noembed noframes plaintext noscript'.split(' '));ko.getOuterHTML=Xt,ko.getInnerHTML=zt;var Bo={},qo=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),jo=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Bo.parentNode=function(Mr){return qo.currentNode=Mr,qo.parentNode()},Bo.firstChild=function(Mr){return qo.currentNode=Mr,qo.firstChild()},Bo.lastChild=function(Mr){return qo.currentNode=Mr,qo.lastChild()},Bo.previousSibling=function(Mr){return qo.currentNode=Mr,qo.previousSibling()},Bo.nextSibling=function(Mr){return qo.currentNode=Mr,qo.nextSibling()},Bo.childNodes=$t,Bo.parentElement=function(Mr){return jo.currentNode=Mr,jo.parentNode()},Bo.firstElementChild=function(Mr){return jo.currentNode=Mr,jo.firstChild()},Bo.lastElementChild=function(Mr){return jo.currentNode=Mr,jo.lastChild()},Bo.previousElementSibling=function(Mr){return jo.currentNode=Mr,jo.previousSibling()},Bo.nextElementSibling=function(Mr){return jo.currentNode=Mr,jo.nextSibling()},Bo.children=function(Mr){var Dr=[];for(jo.currentNode=Mr,Mr=jo.firstChild();Mr;)Dr.push(Mr),Mr=jo.nextSibling();return Dr},Bo.innerHTML=function(Mr){return ko.getInnerHTML(Mr,function(Dr){return $t(Dr)})},Bo.textContent=function(Mr){if(Mr.nodeType!==Node.ELEMENT_NODE)return Mr.nodeValue;Mr=document.createTreeWalker(Mr,NodeFilter.SHOW_TEXT,null,!1);for(var Ir,Dr='';Ir=Mr.nextNode();)Dr+=Ir.nodeValue;return Dr};var Ko={},Go=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Yo=document.implementation.createHTMLDocument('inert').createElement('div'),Vo=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),Xo={parentElement:Jt('parentElement'),parentNode:Jt('parentNode'),nextSibling:Jt('nextSibling'),previousSibling:Jt('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Mr){this.setAttribute('class',Mr)},configurable:!0},nextElementSibling:{get:function(){if(Lo.hasProperty(this,'nextSibling')){for(var Mr=this.nextSibling;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.nextSibling;return Mr}return Bo.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(Lo.hasProperty(this,'previousSibling')){for(var Mr=this.previousSibling;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.previousSibling;return Mr}return Bo.previousElementSibling(this)},configurable:!0}},zo={childNodes:{get:function(){if(Lo.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Mr=this.firstChild;Mr;Mr=Mr.nextSibling)this.__shady.childNodes.push(Mr)}return this.__shady.childNodes}return Bo.childNodes(this)},configurable:!0},firstChild:Jt('firstChild'),lastChild:Jt('lastChild'),textContent:{get:function(){if(Lo.hasProperty(this,'firstChild')){for(var wr,Mr=[],Dr=0,Ir=this.childNodes;wr=Ir[Dr];Dr++)wr.nodeType!==Node.COMMENT_NODE&&Mr.push(wr.textContent);return Mr.join('')}return Bo.textContent(this)},set:function(Mr){if(this.nodeType!==Node.ELEMENT_NODE)this.nodeValue=Mr;else{for(;this.firstChild;)this.removeChild(this.firstChild);Mr&&this.appendChild(document.createTextNode(Mr))}},configurable:!0},firstElementChild:{get:function(){if(Lo.hasProperty(this,'firstChild')){for(var Mr=this.firstChild;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.nextSibling;return Mr}return Bo.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(Lo.hasProperty(this,'lastChild')){for(var Mr=this.lastChild;Mr&&Mr.nodeType!==Node.ELEMENT_NODE;)Mr=Mr.previousSibling;return Mr}return Bo.lastElementChild(this)},configurable:!0},children:{get:function(){return Lo.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Mr){return Mr.nodeType===Node.ELEMENT_NODE}):Bo.children(this)},configurable:!0},innerHTML:{get:function(){var Mr='template'===this.localName?this.content:this;return Lo.hasProperty(this,'firstChild')?ko.getInnerHTML(Mr):Bo.innerHTML(Mr)},set:function(Mr){for(var Dr='template'===this.localName?this.content:this;Dr.firstChild;)Dr.removeChild(Dr.firstChild);for(Go&&Go.set?Go.set.call(Yo,Mr):Yo.innerHTML=Mr;Yo.firstChild;)Dr.appendChild(Yo.firstChild)},configurable:!0}},$o={shadowRoot:{get:function(){return this.shadyRoot},set:function(Mr){this.shadyRoot=Mr},configurable:!0}},Jo={activeElement:{get:function(){var Mr;if(Mr=Vo&&Vo.get?Vo.get.call(document):vo.settings.hasDescriptors?void 0:document.activeElement,Mr&&Mr.nodeType){var Dr=!!vo.isShadyRoot(this);if(this===document||Dr&&this.host!==Mr&&this.host.contains(Mr)){for(Dr=vo.ownerShadyRootForNode(Mr);Dr&&Dr!==this;)Mr=Dr.host,Dr=vo.ownerShadyRootForNode(Mr);Mr=this===document?Dr?null:Mr:Dr===this?Mr:null}else Mr=null}else Mr=null;return Mr},set:function(){},configurable:!0}},Zo=vo.settings.hasDescriptors?function(){}:function(Mr){Mr.__shady&&Mr.__shady.__outsideAccessors||(Mr.__shady=Mr.__shady||{},Mr.__shady.__outsideAccessors=!0,Zt(Mr,Xo,!0))},Qo=vo.settings.hasDescriptors?function(){}:function(Mr){Mr.__shady&&Mr.__shady.__insideAccessors||(Mr.__shady=Mr.__shady||{},Mr.__shady.__insideAccessors=!0,Zt(Mr,zo,!0),Zt(Mr,$o,!0))};Ko.ShadowRootAccessor=$o,Ko.ActiveElementAccessor=Jo,Ko.patchAccessors=function(Mr){Zt(Mr,Xo),Zt(Mr,zo),Zt(Mr,Jo)},Ko.patchShadowRootAccessors=function(Mr){Zt(Mr,zo,!0),Zt(Mr,Jo,!0)},Ko.patchOutsideElementAccessors=Zo,Ko.patchInsideElementAccessors=Qo;var er={};er.recordInsertBefore=function(Mr,Dr,Ir){if(Ko.patchInsideElementAccessors(Dr),Dr.__shady=Dr.__shady||{},Lo.hasProperty(Dr,'firstChild')&&(Dr.__shady.childNodes=null),Mr.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var wr=Mr.childNodes,Lr=0;Lr<wr.length;Lr++)Qt(wr[Lr],Dr,Ir);Mr.__shady=Mr.__shady||{},Dr=Lo.hasProperty(Mr,'firstChild')?null:void 0,Mr.__shady.firstChild=Mr.__shady.lastChild=Dr,Mr.__shady.childNodes=Dr}else Qt(Mr,Dr,Ir)},er.recordRemoveChild=function(Mr,Dr){Mr.__shady=Mr.__shady||{},Dr.__shady=Dr.__shady||{},Mr===Dr.__shady.firstChild&&(Dr.__shady.firstChild=Mr.__shady.nextSibling),Mr===Dr.__shady.lastChild&&(Dr.__shady.lastChild=Mr.__shady.previousSibling);var Ir=Mr.__shady.previousSibling,wr=Mr.__shady.nextSibling;Ir&&(Ir.__shady=Ir.__shady||{},Ir.__shady.nextSibling=wr),wr&&(wr.__shady=wr.__shady||{},wr.__shady.previousSibling=Ir),Mr.__shady.parentNode=Mr.__shady.previousSibling=Mr.__shady.nextSibling=void 0,Lo.hasProperty(Dr,'childNodes')&&(Dr.__shady.childNodes=null)},er.recordChildNodes=function(Mr){if(!Lo.hasProperty(Mr,'firstChild')){Mr.__shady=Mr.__shady||{},Mr.__shady.firstChild=Bo.firstChild(Mr),Mr.__shady.lastChild=Bo.lastChild(Mr),Ko.patchInsideElementAccessors(Mr);for(var wr,Dr=Mr.__shady.childNodes=Bo.childNodes(Mr),Ir=0;Ir<Dr.length&&(wr=Dr[Ir]);Ir++)wr.__shady=wr.__shady||{},wr.__shady.parentNode=Mr,wr.__shady.nextSibling=Dr[Ir+1]||null,wr.__shady.previousSibling=Dr[Ir-1]||null,Ko.patchOutsideElementAccessors(wr)}};var tr={},or=Element.prototype.insertBefore,rr=Element.prototype.removeChild,sr=Element.prototype.setAttribute,nr=Element.prototype.removeAttribute,lr=Element.prototype.cloneNode,ar=Document.prototype.importNode,dr=Element.prototype.addEventListener,ir=Element.prototype.removeEventListener;tr.appendChild=Element.prototype.appendChild,tr.insertBefore=or,tr.removeChild=rr,tr.setAttribute=sr,tr.removeAttribute=nr,tr.cloneNode=lr,tr.importNode=ar,tr.addEventListener=dr,tr.removeEventListener=ir;var pr={},cr='function'==typeof Event?Event:function(Mr,Dr){Dr=Dr||{};var Ir=document.createEvent('Event');return Ir.initEvent(Mr,!!Dr.bubbles,!!Dr.cancelable),Ir};eo.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)},eo.prototype.hasInsertionPoint=function(){return this.root._insertionPoints&&this.root._insertionPoints.length},eo.prototype.isInsertionPoint=function(Mr){return Mr.localName&&Mr.localName==this.insertionPointTag},eo.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]},eo.prototype.collectPool=function(){for(var Mr=[],Dr=0,Ir=this.root.host.firstChild;Ir;Ir=Ir.nextSibling)Mr[Dr++]=Ir;return Mr},eo.prototype.distributePool=function(Mr,Dr){Mr=[];for(var kr,Ir=this.root._insertionPoints,wr=0,Lr=Ir.length;wr<Lr&&(kr=Ir[wr]);wr++){this.distributeInsertionPoint(kr,Dr);var Fr=kr.parentNode;Fr&&Fr.shadyRoot&&Fr.shadyRoot.hasInsertionPoint()&&Mr.push(Fr.shadyRoot)}for(Ir=0;Ir<Dr.length;Ir++)(kr=Dr[Ir])&&(kr.__shady=kr.__shady||{},kr.__shady.assignedSlot=void 0,(wr=Bo.parentNode(kr))&&tr.removeChild.call(wr,kr));return Mr},eo.prototype.distributeInsertionPoint=function(Mr,Dr){var Ir=Mr.__shady.assignedNodes;Ir&&this.clearAssignedSlots(Mr,!0),Mr.__shady.assignedNodes=[];for(var Hr,wr=!1,Lr=!1,kr=0,Fr=Dr.length;kr<Fr;kr++)(Hr=Dr[kr])&&this.matchesInsertionPoint(Hr,Mr)&&(Hr.__shady._prevAssignedSlot!=Mr&&(wr=!0),this.distributeNodeInto(Hr,Mr),Dr[kr]=void 0,Lr=!0);if(!Lr)for(Dr=Mr.childNodes,Lr=0;Lr<Dr.length;Lr++)Hr=Dr[Lr],Hr.__shady._prevAssignedSlot!=Mr&&(wr=!0),this.distributeNodeInto(Hr,Mr);if(Ir){for(Hr=0;Hr<Ir.length;Hr++)Ir[Hr].__shady._prevAssignedSlot=null;Mr.__shady.assignedNodes.length<Ir.length&&(wr=!0)}this.setDistributedNodesOnInsertionPoint(Mr),wr&&this._fireSlotChange(Mr)},eo.prototype.clearAssignedSlots=function(Mr,Dr){var Ir=Mr.__shady.assignedNodes;if(Ir)for(var Lr,wr=0;wr<Ir.length;wr++)Lr=Ir[wr],Dr&&(Lr.__shady._prevAssignedSlot=Lr.__shady.assignedSlot),Lr.__shady.assignedSlot===Mr&&(Lr.__shady.assignedSlot=null)},eo.prototype.matchesInsertionPoint=function(Mr,Dr){return Dr=(Dr=Dr.getAttribute('name'))?Dr.trim():'',Mr=(Mr=Mr.getAttribute&&Mr.getAttribute('slot'))?Mr.trim():'',Mr==Dr},eo.prototype.distributeNodeInto=function(Mr,Dr){Dr.__shady.assignedNodes.push(Mr),Mr.__shady.assignedSlot=Dr},eo.prototype.setDistributedNodesOnInsertionPoint=function(Mr){var Dr=Mr.__shady.assignedNodes;Mr.__shady.distributedNodes=[];for(var wr,Ir=0;Ir<Dr.length&&(wr=Dr[Ir]);Ir++)if(this.isInsertionPoint(wr)){var Lr=wr.__shady.distributedNodes;if(Lr)for(var kr=0;kr<Lr.length;kr++)Mr.__shady.distributedNodes.push(Lr[kr])}else Mr.__shady.distributedNodes.push(Dr[Ir])},eo.prototype._fireSlotChange=function(Mr){Mr.dispatchEvent(new cr('slotchange')),Mr.__shady.assignedSlot&&this._fireSlotChange(Mr.__shady.assignedSlot)},eo.prototype.isFinalDestination=function(Mr){return!Mr.__shady.assignedSlot},pr.default=eo;var hr={},_r={};to.prototype=Object.create(DocumentFragment.prototype),to.prototype._init=function(Mr){this.__localName='ShadyRoot',er.recordChildNodes(Mr),er.recordChildNodes(this),Mr.shadowRoot=this,this.host=Mr,this._changePending=this._hasRendered=this._renderPending=!1,this._distributor=new pr.default(this),this.update()},to.prototype.update=function(){var Mr=this;this._renderPending||(this._renderPending=!0,Do.enqueue(function(){return Mr.render()}))},to.prototype._getRenderRoot=function(){for(var Mr=this,Dr=this;Dr;)Dr._renderPending&&(Mr=Dr),Dr=Dr._rendererForHost();return Mr},to.prototype._rendererForHost=function(){var Mr=this.host.getRootNode();if(vo.isShadyRoot(Mr))for(var wr,Dr=this.host.childNodes,Ir=0;Ir<Dr.length;Ir++)if(wr=Dr[Ir],this._distributor.isInsertionPoint(wr))return Mr},to.prototype.render=function(){this._renderPending&&this._getRenderRoot()._render()},to.prototype._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},to.prototype.forceRender=function(){this._renderPending=!0,this.render()},to.prototype.distribute=function(){for(var Mr=this._distributor.distribute(),Dr=0;Dr<Mr.length;Dr++)Mr[Dr]._render()},to.prototype.updateInsertionPoints=function(){var Mr=this.__insertionPoints;if(Mr)for(var Ir,Dr=0;Dr<Mr.length;Dr++)Ir=Mr[Dr],Ir.getRootNode()!==this&&this._distributor.clearAssignedSlots(Ir);for(Mr=this._insertionPoints=this._distributor.getInsertionPoints(),Dr=0;Dr<Mr.length;Dr++)Ir=Mr[Dr],Ir.__shady=Ir.__shady||{},er.recordChildNodes(Ir),er.recordChildNodes(Ir.parentNode)},to.prototype.hasInsertionPoint=function(){return this._distributor.hasInsertionPoint()},to.prototype.compose=function(){this._composeTree()},to.prototype._composeTree=function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var wr,Lr,Mr=this._insertionPoints||[],Dr=0,Ir=Mr.length;Dr<Ir&&(wr=Mr[Dr]);Dr++)Lr=wr.parentNode,Lr!==this.host&&Lr!==this&&this._updateChildNodes(Lr,this._composeNode(Lr))},to.prototype._composeNode=function(Mr){var Dr=[];Mr=(Mr.shadyRoot||Mr).childNodes;for(var wr,Ir=0;Ir<Mr.length;Ir++)if(wr=Mr[Ir],this._distributor.isInsertionPoint(wr))for(var Fr,Lr=wr.__shady.distributedNodes||(wr.__shady.distributedNodes=[]),kr=0;kr<Lr.length;kr++)Fr=Lr[kr],this.isFinalDestination(wr,Fr)&&Dr.push(Fr);else Dr.push(wr);return Dr},to.prototype.isFinalDestination=function(Mr,Dr){return this._distributor.isFinalDestination(Mr,Dr)},to.prototype._updateChildNodes=function(Mr,Dr){for(var Fr,Ir=Bo.childNodes(Mr),wr=Eo.calculateSplices(Dr,Ir),Lr=0,kr=0;Lr<wr.length&&(Fr=wr[Lr]);Lr++){for(var Ur,Hr=0;Hr<Fr.removed.length&&(Ur=Fr.removed[Hr]);Hr++)Bo.parentNode(Ur)===Mr&&tr.removeChild.call(Mr,Ur),Ir.splice(Fr.index+kr,1);kr-=Fr.addedCount}for(Lr=0;Lr<wr.length&&(Fr=wr[Lr]);Lr++)for(kr=Ir[Fr.index],Hr=Fr.index;Hr<Fr.index+Fr.addedCount;Hr++)Ur=Dr[Hr],tr.insertBefore.call(Mr,Ur,kr),Ir.splice(Hr,0,Ur)},to.prototype.getInsertionPointTag=function(){return this._distributor.insertionPointTag},Object.defineProperty(to.prototype,'_insertionPoints',{get:function(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set:function(Mr){this.__insertionPoints=Mr},configurable:!0}),Ko.patchShadowRootAccessors(to.prototype),hr.ShadyRoot=to,hr.attachShadow=function(Mr,Dr){if(!Mr)throw'Must provide a host.';if(!Dr)throw'Not enough arguments.';return new to(_r,Mr)};var ur={},yr=null;ur.getRootNode=so,ur.query=function(Mr,Dr,Ir){var wr=[];return co(Mr.childNodes,Dr,Ir,wr),wr},ur.renderRootNode=function(Mr){Mr=Mr.getRootNode(),vo.isShadyRoot(Mr)&&Mr.render()},ur.setAttribute=function(Mr,Dr,Ir){yr||(yr=window.ShadyCSS&&window.ShadyCSS.ScopingShim),yr&&'class'===Dr&&Mr.ownerDocument===document?yr.setElementClass(Mr,Ir):(tr.setAttribute.call(Mr,Dr,Ir),po(Mr,Dr))},ur.removeAttribute=function(Mr,Dr){tr.removeAttribute.call(Mr,Dr),po(Mr,Dr)},ur.insertBefore=function(Mr,Dr,Ir){if(Ir){var wr=Lo.getProperty(Ir,'parentNode');if(void 0!==wr&&wr!==Mr||void 0===wr&&Bo.parentNode(Ir)!==Mr)throw Error('Failed to execute \'insertBefore\' on \'Node\': The node before which the new node is to be inserted is not a child of this node.')}if(Ir===Dr)return Dr;Dr.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(wr=Lo.getProperty(Dr,'parentNode'),wr?(ro(wr,null,Dr),oo(Dr)):(Dr.parentNode&&tr.removeChild.call(Dr.parentNode,Dr),lo(Dr)));var kr,wr=Ir,Lr=vo.ownerShadyRootForNode(Mr);Lr&&(Dr.__noInsertionPoint&&!Lr._changePending&&(Lr._skipUpdateInsertionPoints=!0),kr=no(Dr,Mr,Lr))&&(Lr._skipUpdateInsertionPoints=!1),Lo.hasProperty(Mr,'firstChild')&&er.recordInsertBefore(Dr,Mr,wr);var Fr=kr,Hr=Lr&&Lr.getInsertionPointTag()||'',Ur=Dr.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!Dr.__noInsertionPoint&&Hr&&Dr.querySelector(Hr);if(kr=Ur&&Ur.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE,((Ur=Ur||Dr.localName===Hr)||Mr.localName===Hr||Fr)&&Lr&&io(Lr),(Lr=Mr&&Mr.shadyRoot&&Mr.shadyRoot.hasInsertionPoint())&&io(Mr.shadyRoot),!(Lr||Ur&&!kr||Mr.shadyRoot||wr&&vo.isShadyRoot(wr.parentNode)&&wr.parentNode._renderPending)){if(Ir&&(wr=vo.ownerShadyRootForNode(Ir))){var Wr;if(Ir.localName===wr.getInsertionPointTag())a:{for(wr=Ir.assignedNodes({flatten:!0}),Lr=so(Ir),kr=0,Fr=wr.length;kr<Fr&&(Wr=wr[kr]);kr++)if(Lr.isFinalDestination(Ir,Wr))break a;Wr=void 0}else Wr=Ir;Ir=Wr}Wr=vo.isShadyRoot(Mr)?Mr.host:Mr,Ir?tr.insertBefore.call(Wr,Dr,Ir):tr.appendChild.call(Wr,Dr)}return ro(Mr,Dr),Dr},ur.removeChild=function(Mr,Dr){if(Dr.parentNode!==Mr)throw Error('The node to be removed is not a child of this node: '+Dr);if(!oo(Dr)){var Ir=vo.isShadyRoot(Mr)?Mr.host:Mr,wr=Bo.parentNode(Dr);Ir===wr&&tr.removeChild.call(Ir,Dr)}return ro(Mr,null,Dr),Dr},ur.cloneNode=function(Mr,Dr){if('template'==Mr.localName)return tr.cloneNode.call(Mr,Dr);var Ir=tr.cloneNode.call(Mr,!1);if(Dr){Mr=Mr.childNodes,Dr=0;for(var wr;Dr<Mr.length;Dr++)wr=Mr[Dr].cloneNode(!0),Ir.appendChild(wr)}return Ir},ur.importNode=ho;var mr={};_o.prototype.schedule=function(){var Mr=this;this._scheduled||(this._scheduled=!0,vo.microtask(function(){Mr.flush()}))},_o.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var Mr=this.takeRecords();Mr.length&&this.callbacks.forEach(function(Dr){Dr(Mr)})}},_o.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var Mr=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],Mr}return[]},mr.observeChildren=function(Mr,Dr){Mr.__shady=Mr.__shady||{},Mr.__shady.observer||(Mr.__shady.observer=new _o),Mr.__shady.observer.callbacks.add(Dr);var Ir=Mr.__shady.observer;return{_callback:Dr,_observer:Ir,_node:Mr,takeRecords:function(){return Ir.takeRecords()}}},mr.unobserveChildren=function(Mr){var Dr=Mr&&Mr._observer;Dr&&(Dr.callbacks.delete(Mr._callback),Dr.callbacks.size||(Mr._node.__shady.observer=null))},mr.filterMutations=function(Mr,Dr){var Ir=Dr.getRootNode();return Mr.map(function(wr){var Lr=Ir===wr.target.getRootNode();if(Lr&&wr.addedNodes){if(Lr=Array.from(wr.addedNodes).filter(function(kr){return Ir===kr.getRootNode()}),Lr.length)return wr=Object.create(wr),Object.defineProperty(wr,'addedNodes',{value:Lr,configurable:!0}),wr;}else if(Lr)return wr}).filter(function(wr){return wr})};var gr={},fr={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},Sr={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=fr[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=uo(this.__target,this.composed)),this.__composedPath},get target(){return yo(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=uo(this.__relatedTarget,!0)),yo(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}},Nr={focus:!0,blur:!0},Cr=mo(window.Event),br=mo(window.CustomEvent),Er=mo(window.MouseEvent);gr.addEventListener=function(Mr,Dr,Ir){if(Dr){var wr,Lr,kr;if('object'==typeof Ir?(wr=!!Ir.capture,Lr=!!Ir.once,kr=!!Ir.passive):(wr=!!Ir,kr=Lr=!1),Dr.__eventWrappers){for(var Fr=0;Fr<Dr.__eventWrappers.length;Fr++)if(Dr.__eventWrappers[Fr].node===this&&Dr.__eventWrappers[Fr].type===Mr&&Dr.__eventWrappers[Fr].capture===wr&&Dr.__eventWrappers[Fr].once===Lr&&Dr.__eventWrappers[Fr].passive===kr)return;}else Dr.__eventWrappers=[];Fr=function(Hr){if(Lr&&this.removeEventListener(Mr,Dr,Ir),Hr.__target||No(Hr),Hr.composed||-1<Hr.composedPath().indexOf(this))if(Hr.eventPhase===Event.BUBBLING_PHASE&&Hr.target===Hr.relatedTarget)Hr.stopImmediatePropagation();else return Dr(Hr)},Dr.__eventWrappers.push({node:this,type:Mr,capture:wr,once:Lr,passive:kr,wrapperFn:Fr}),Nr[Mr]?(this.__handlers=this.__handlers||{},this.__handlers[Mr]=this.__handlers[Mr]||{capture:[],bubble:[]},this.__handlers[Mr][wr?'capture':'bubble'].push(Fr)):tr.addEventListener.call(this,Mr,Fr,Ir)}},gr.removeEventListener=function(Mr,Dr,Ir){if(Dr){var wr,Lr,kr;'object'==typeof Ir?(wr=!!Ir.capture,Lr=!!Ir.once,kr=!!Ir.passive):(wr=!!Ir,kr=Lr=!1);var Fr;if(Dr.__eventWrappers)for(var Hr=0;Hr<Dr.__eventWrappers.length;Hr++)if(Dr.__eventWrappers[Hr].node===this&&Dr.__eventWrappers[Hr].type===Mr&&Dr.__eventWrappers[Hr].capture===wr&&Dr.__eventWrappers[Hr].once===Lr&&Dr.__eventWrappers[Hr].passive===kr){Fr=Dr.__eventWrappers.splice(Hr,1)[0].wrapperFn,Dr.__eventWrappers.length||(Dr.__eventWrappers=void 0);break}tr.removeEventListener.call(this,Mr,Fr||Dr,Ir),Fr&&Nr[Mr]&&this.__handlers&&this.__handlers[Mr]&&(Mr=this.__handlers[Mr][wr?'capture':'bubble'],Fr=Mr.indexOf(Fr),-1<Fr&&Mr.splice(Fr,1))}},gr.patchEvents=function(){window.Event=Cr,window.CustomEvent=br,window.MouseEvent=Er,So()};var vr={},Pr={addEventListener:gr.addEventListener,removeEventListener:gr.removeEventListener,appendChild:function(Mr){return ur.insertBefore(this,Mr)},insertBefore:function(Mr,Dr){return ur.insertBefore(this,Mr,Dr)},removeChild:function(Mr){return ur.removeChild(this,Mr)},replaceChild:function(Mr,Dr){return this.insertBefore(Mr,Dr),this.removeChild(Dr),Mr},cloneNode:function(Mr){return ur.cloneNode(this,Mr)},getRootNode:function(Mr){return ur.getRootNode(this,Mr)},get isConnected(){var Mr=this.ownerDocument;if(Mr&&Mr.contains&&Mr.contains(this)||(Mr=Mr.documentElement)&&Mr.contains&&Mr.contains(this))return!0;for(Mr=this;Mr&&!(Mr instanceof Document);)Mr=Mr.parentNode||(Mr instanceof hr.ShadyRoot?Mr.host:void 0);return!!(Mr&&Mr instanceof Document)}},Tr={get assignedSlot(){return Co(this)}},Rr={querySelector:function(Mr){return ur.query(this,function(Dr){return vo.matchesSelector(Dr,Mr)},function(Dr){return!!Dr})[0]||null},querySelectorAll:function(Mr){return ur.query(this,function(Dr){return vo.matchesSelector(Dr,Mr)})}},Ar={assignedNodes:function(Mr){if('slot'===this.localName)return ur.renderRootNode(this),this.__shady?(Mr&&Mr.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},xr=vo.extendAll({setAttribute:function(Mr,Dr){ur.setAttribute(this,Mr,Dr)},removeAttribute:function(Mr){ur.removeAttribute(this,Mr)},attachShadow:function(Mr){return hr.attachShadow(this,Mr)},get slot(){return this.getAttribute('slot')},set slot(Mr){this.setAttribute('slot',Mr)},get assignedSlot(){return Co(this)}},Rr,Ar);Object.defineProperties(xr,Ko.ShadowRootAccessor);var Or=vo.extendAll({importNode:function(Mr,Dr){return ur.importNode(Mr,Dr)}},Rr);Object.defineProperties(Or,{_activeElement:Ko.ActiveElementAccessor.activeElement}),vr.patchBuiltins=function(){bo(window.Node.prototype,Pr),bo(window.Text.prototype,Tr),bo(window.DocumentFragment.prototype,Rr),bo(window.Element.prototype,xr),bo(window.Document.prototype,Or),window.HTMLSlotElement&&bo(window.HTMLSlotElement.prototype,Ar),vo.settings.hasDescriptors&&(Ko.patchAccessors(window.Node.prototype),Ko.patchAccessors(window.Text.prototype),Ko.patchAccessors(window.DocumentFragment.prototype),Ko.patchAccessors(window.Element.prototype),Ko.patchAccessors((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),Ko.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&Ko.patchAccessors(window.HTMLSlotElement.prototype))},vo.settings.inUse&&(window.ShadyDOM={},window.ShadyDOM.inUse=vo.settings.inUse,window.ShadyDOM.patch=function(Mr){return Mr},window.ShadyDOM.isShadyRoot=vo.isShadyRoot,window.ShadyDOM.enqueue=Do.enqueue,window.ShadyDOM.flush=Do.flush,window.ShadyDOM.settings=vo.settings,window.ShadyDOM.filterMutations=mr.filterMutations,window.ShadyDOM.observeChildren=mr.observeChildren,window.ShadyDOM.unobserveChildren=mr.unobserveChildren,window.ShadyDOM.nativeMethods=tr,window.ShadyDOM.nativeTree=Bo,gr.patchEvents(),vr.patchBuiltins(),window.ShadowRoot=hr.ShadyRoot)}).call(self),function(){'use strict';function Ut(Go){var Yo=ho.has(Go);return Go=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Go),!Yo&&Go}function Wt(Go){var Yo=Go.isConnected;if(void 0!==Yo)return Yo;for(;Go&&!(Go.__CE_isImportDocument||Go instanceof Document);)Go=Go.parentNode||(window.ShadowRoot&&Go instanceof ShadowRoot?Go.host:void 0);return Go&&(Go.__CE_isImportDocument||Go instanceof Document)}function Bt(Go,Yo){for(;Yo&&Yo!==Go&&!Yo.nextSibling;)Yo=Yo.parentNode;return Yo&&Yo!==Go?Yo.nextSibling:null}function qt(Go,Yo,Vo){Vo=Vo?Vo:new Set;for(var Xo=Go;Xo;){if(Xo.nodeType===Node.ELEMENT_NODE){var zo=Xo;Yo(zo);var $o=zo.localName;if('link'===$o&&'import'===zo.getAttribute('rel')){if(Xo=zo.import,Xo instanceof Node&&!Vo.has(Xo))for(Vo.add(Xo),Xo=Xo.firstChild;Xo;Xo=Xo.nextSibling)qt(Xo,Yo,Vo);Xo=Bt(Go,zo);continue}else if('template'===$o){Xo=Bt(Go,zo);continue}if(zo=zo.__CE_shadowRoot)for(zo=zo.firstChild;zo;zo=zo.nextSibling)qt(zo,Yo,Vo)}Xo=Xo.firstChild?Xo.firstChild:Bt(Go,Xo)}}function jt(Go,Yo,Vo){Go[Yo]=Vo}function Kt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Gt(Go,Yo,Vo){Go.a.set(Yo,Vo),Go.f.set(Vo.constructor,Vo)}function Yt(Go,Yo){Go.b=!0,Go.c.push(Yo)}function Vt(Go,Yo){Go.b&&qt(Yo,function(Vo){return Xt(Go,Vo)})}function Xt(Go,Yo){if(Go.b&&!Yo.__CE_patched){Yo.__CE_patched=!0;for(var Vo=0;Vo<Go.c.length;Vo++)Go.c[Vo](Yo)}}function zt(Go,Yo){var Vo=[];for(qt(Yo,function(zo){return Vo.push(zo)}),Yo=0;Yo<Vo.length;Yo++){var Xo=Vo[Yo];1===Xo.__CE_state?Go.connectedCallback(Xo):Zt(Go,Xo)}}function $t(Go,Yo){var Vo=[];for(qt(Yo,function(zo){return Vo.push(zo)}),Yo=0;Yo<Vo.length;Yo++){var Xo=Vo[Yo];1===Xo.__CE_state&&Go.disconnectedCallback(Xo)}}function Jt(Go,Yo,Vo){Vo=Vo?Vo:new Set;var Xo=[];if(qt(Yo,function(zo){if('link'===zo.localName&&'import'===zo.getAttribute('rel')){var $o=zo.import;$o instanceof Node&&'complete'===$o.readyState?($o.__CE_isImportDocument=!0,$o.__CE_hasRegistry=!0):zo.addEventListener('load',function(){var Jo=zo.import;Jo.__CE_documentLoadHandled||(Jo.__CE_documentLoadHandled=!0,Jo.__CE_isImportDocument=!0,Jo.__CE_hasRegistry=!0,new Set(Vo),Vo.delete(Jo),Jt(Go,Jo,Vo))})}else Xo.push(zo)},Vo),Go.b)for(Yo=0;Yo<Xo.length;Yo++)Xt(Go,Xo[Yo]);for(Yo=0;Yo<Xo.length;Yo++)Zt(Go,Xo[Yo])}function Zt(Go,Yo){if(void 0===Yo.__CE_state){var Vo=Go.a.get(Yo.localName);if(Vo){Vo.constructionStack.push(Yo);var Xo=Vo.constructor;try{try{if(new Xo!==Yo)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{Vo.constructionStack.pop()}}catch(Jo){throw Yo.__CE_state=2,Jo}if(Yo.__CE_state=1,Yo.__CE_definition=Vo,Vo.attributeChangedCallback)for(Vo=Vo.observedAttributes,Xo=0;Xo<Vo.length;Xo++){var zo=Vo[Xo],$o=Yo.getAttribute(zo);null!==$o&&Go.attributeChangedCallback(Yo,zo,null,$o,null)}Wt(Yo)&&Go.connectedCallback(Yo)}}}function Qt(Go,Yo){this.c=Go,this.a=Yo,this.b=void 0,Jt(this.c,this.a),'loading'===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function eo(Go){Go.b&&Go.b.disconnect()}function to(){var Go=this;this.b=this.a=void 0,this.c=new Promise(function(Yo){Go.b=Yo,Go.a&&Yo(Go.a)})}function oo(Go){if(Go.a)throw Error('Already resolved.');Go.a=void 0,Go.b&&Go.b(void 0)}function ro(Go){this.f=!1,this.a=Go,this.h=new Map,this.g=function(Yo){return Yo()},this.b=!1,this.c=[],this.j=new Qt(Go,document)}function so(){var Go=jo;window.HTMLElement=function(){function Yo(){var Vo=this.constructor,Xo=Go.f.get(Vo);if(!Xo)throw Error('The custom element being constructed was not registered with `customElements`.');var zo=Xo.constructionStack;if(!zo.length)return zo=_o.call(document,Xo.localName),Object.setPrototypeOf(zo,Vo.prototype),zo.__CE_state=1,zo.__CE_definition=Xo,Xt(Go,zo),zo;var Xo=zo.length-1,$o=zo[Xo];if($o===co)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return zo[Xo]=co,Object.setPrototypeOf($o,Vo.prototype),Xt(Go,$o),$o}return Yo.prototype=Uo.prototype,Yo}()}function no(Go,Yo,Vo){Yo.prepend=function(){for(var zo=[],$o=0;$o<arguments.length;++$o)zo[$o-0]=arguments[$o];$o=zo.filter(function(Zo){return Zo instanceof Node&&Wt(Zo)}),Vo.i.apply(this,zo);for(var Jo=0;Jo<$o.length;Jo++)$t(Go,$o[Jo]);if(Wt(this))for($o=0;$o<zo.length;$o++)Jo=zo[$o],Jo instanceof Element&&zt(Go,Jo)},Yo.append=function(){for(var zo=[],$o=0;$o<arguments.length;++$o)zo[$o-0]=arguments[$o];$o=zo.filter(function(Zo){return Zo instanceof Node&&Wt(Zo)}),Vo.append.apply(this,zo);for(var Jo=0;Jo<$o.length;Jo++)$t(Go,$o[Jo]);if(Wt(this))for($o=0;$o<zo.length;$o++)Jo=zo[$o],Jo instanceof Element&&zt(Go,Jo)}}function lo(){var Go=jo;jt(Document.prototype,'createElement',function(Yo){if(this.__CE_hasRegistry){var Vo=Go.a.get(Yo);if(Vo)return new Vo.constructor}return Yo=_o.call(this,Yo),Xt(Go,Yo),Yo}),jt(Document.prototype,'importNode',function(Yo,Vo){return Yo=yo.call(this,Yo,Vo),this.__CE_hasRegistry?Jt(Go,Yo):Vt(Go,Yo),Yo}),jt(Document.prototype,'createElementNS',function(Yo,Vo){if(this.__CE_hasRegistry&&(null===Yo||'http://www.w3.org/1999/xhtml'===Yo)){var Xo=Go.a.get(Vo);if(Xo)return new Xo.constructor}return Yo=uo.call(this,Yo,Vo),Xt(Go,Yo),Yo}),no(Go,Document.prototype,{i:mo,append:go})}function ao(){function Go(Vo,Xo){Object.defineProperty(Vo,'textContent',{enumerable:Xo.enumerable,configurable:!0,get:Xo.get,set:function(zo){if(this.nodeType===Node.TEXT_NODE)Xo.set.call(this,zo);else{var $o;if(this.firstChild){var Jo=this.childNodes,Zo=Jo.length;if(0<Zo&&Wt(this))for(var $o=Array(Zo),Qo=0;Qo<Zo;Qo++)$o[Qo]=Jo[Qo]}if(Xo.set.call(this,zo),$o)for(zo=0;zo<$o.length;zo++)$t(Yo,$o[zo])}}})}var Yo=jo;jt(Node.prototype,'insertBefore',function(Vo,Xo){if(Vo instanceof DocumentFragment){var zo=Array.prototype.slice.apply(Vo.childNodes);if(Vo=No.call(this,Vo,Xo),Wt(this))for(Xo=0;Xo<zo.length;Xo++)zt(Yo,zo[Xo]);return Vo}return zo=Wt(Vo),Xo=No.call(this,Vo,Xo),zo&&$t(Yo,Vo),Wt(this)&&zt(Yo,Vo),Xo}),jt(Node.prototype,'appendChild',function(Vo){if(Vo instanceof DocumentFragment){var Xo=Array.prototype.slice.apply(Vo.childNodes);if(Vo=So.call(this,Vo),Wt(this))for(var zo=0;zo<Xo.length;zo++)zt(Yo,Xo[zo]);return Vo}return Xo=Wt(Vo),zo=So.call(this,Vo),Xo&&$t(Yo,Vo),Wt(this)&&zt(Yo,Vo),zo}),jt(Node.prototype,'cloneNode',function(Vo){return Vo=fo.call(this,Vo),this.ownerDocument.__CE_hasRegistry?Jt(Yo,Vo):Vt(Yo,Vo),Vo}),jt(Node.prototype,'removeChild',function(Vo){var Xo=Wt(Vo),zo=Co.call(this,Vo);return Xo&&$t(Yo,Vo),zo}),jt(Node.prototype,'replaceChild',function(Vo,Xo){if(Vo instanceof DocumentFragment){var zo=Array.prototype.slice.apply(Vo.childNodes);if(Vo=bo.call(this,Vo,Xo),Wt(this))for($t(Yo,Xo),Xo=0;Xo<zo.length;Xo++)zt(Yo,zo[Xo]);return Vo}var zo=Wt(Vo),$o=bo.call(this,Vo,Xo),Jo=Wt(this);return Jo&&$t(Yo,Xo),zo&&$t(Yo,Vo),Jo&&zt(Yo,Vo),$o}),Eo&&Eo.get?Go(Node.prototype,Eo):Yt(Yo,function(Vo){Go(Vo,{enumerable:!0,configurable:!0,get:function(){for(var Xo=[],zo=0;zo<this.childNodes.length;zo++)Xo.push(this.childNodes[zo].textContent);return Xo.join('')},set:function(Xo){for(;this.firstChild;)Co.call(this,this.firstChild);So.call(this,document.createTextNode(Xo))}})})}function io(Go){var Yo=Element.prototype;Yo.before=function(){for(var Xo=[],zo=0;zo<arguments.length;++zo)Xo[zo-0]=arguments[zo];zo=Xo.filter(function(Jo){return Jo instanceof Node&&Wt(Jo)}),Lo.apply(this,Xo);for(var $o=0;$o<zo.length;$o++)$t(Go,zo[$o]);if(Wt(this))for(zo=0;zo<Xo.length;zo++)$o=Xo[zo],$o instanceof Element&&zt(Go,$o)},Yo.after=function(){for(var Xo=[],zo=0;zo<arguments.length;++zo)Xo[zo-0]=arguments[zo];zo=Xo.filter(function(Jo){return Jo instanceof Node&&Wt(Jo)}),ko.apply(this,Xo);for(var $o=0;$o<zo.length;$o++)$t(Go,zo[$o]);if(Wt(this))for(zo=0;zo<Xo.length;zo++)$o=Xo[zo],$o instanceof Element&&zt(Go,$o)},Yo.replaceWith=function(){for(var Xo=[],zo=0;zo<arguments.length;++zo)Xo[zo-0]=arguments[zo];var zo=Xo.filter(function(Zo){return Zo instanceof Node&&Wt(Zo)}),$o=Wt(this);Fo.apply(this,Xo);for(var Jo=0;Jo<zo.length;Jo++)$t(Go,zo[Jo]);if($o)for($t(Go,this),zo=0;zo<Xo.length;zo++)$o=Xo[zo],$o instanceof Element&&zt(Go,$o)},Yo.remove=function(){var Vo=Wt(this);Ho.call(this),Vo&&$t(Go,this)}}function po(){function Go(zo,$o){Object.defineProperty(zo,'innerHTML',{enumerable:$o.enumerable,configurable:!0,get:$o.get,set:function(Jo){var Qo,Zo=this;if(Wt(this)&&(Qo=[],qt(this,function(or){or!==Zo&&Qo.push(or)})),$o.set.call(this,Jo),Qo)for(var tr,er=0;er<Qo.length;er++)tr=Qo[er],1===tr.__CE_state&&Vo.disconnectedCallback(tr);return this.ownerDocument.__CE_hasRegistry?Jt(Vo,this):Vt(Vo,this),Jo}})}function Yo(zo,$o){jt(zo,'insertAdjacentElement',function(Jo,Zo){var Qo=Wt(Zo);return Jo=$o.call(this,Jo,Zo),Qo&&$t(Vo,Zo),Wt(Jo)&&zt(Vo,Zo),Jo})}var Vo=jo;if(vo?jt(Element.prototype,'attachShadow',function(zo){return this.__CE_shadowRoot=zo=vo.call(this,zo)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),Po&&Po.get)Go(Element.prototype,Po);else if(Wo&&Wo.get)Go(HTMLElement.prototype,Wo);else{var Xo=_o.call(document,'div');Yt(Vo,function(zo){Go(zo,{enumerable:!0,configurable:!0,get:function(){return fo.call(this,!0).innerHTML},set:function($o){var Jo='template'===this.localName?this.content:this;for(Xo.innerHTML=$o;0<Jo.childNodes.length;)Co.call(Jo,Jo.childNodes[0]);for(;0<Xo.childNodes.length;)So.call(Jo,Xo.childNodes[0])}})})}jt(Element.prototype,'setAttribute',function(zo,$o){if(1!==this.__CE_state)return Ro.call(this,zo,$o);var Jo=To.call(this,zo);Ro.call(this,zo,$o),$o=To.call(this,zo),Jo!==$o&&Vo.attributeChangedCallback(this,zo,Jo,$o,null)}),jt(Element.prototype,'setAttributeNS',function(zo,$o,Jo){if(1!==this.__CE_state)return Oo.call(this,zo,$o,Jo);var Zo=xo.call(this,zo,$o);Oo.call(this,zo,$o,Jo),Jo=xo.call(this,zo,$o),Zo!==Jo&&Vo.attributeChangedCallback(this,$o,Zo,Jo,zo)}),jt(Element.prototype,'removeAttribute',function(zo){if(1!==this.__CE_state)return Ao.call(this,zo);var $o=To.call(this,zo);Ao.call(this,zo),null!==$o&&Vo.attributeChangedCallback(this,zo,$o,null,null)}),jt(Element.prototype,'removeAttributeNS',function(zo,$o){if(1!==this.__CE_state)return Mo.call(this,zo,$o);var Jo=xo.call(this,zo,$o);Mo.call(this,zo,$o);var Zo=xo.call(this,zo,$o);Jo!==Zo&&Vo.attributeChangedCallback(this,$o,Jo,Zo,zo)}),Bo?Yo(HTMLElement.prototype,Bo):Do?Yo(Element.prototype,Do):console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.'),no(Vo,Element.prototype,{i:Io,append:wo}),io(Vo)}var co=new function(){},ho=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' '));Kt.prototype.connectedCallback=function(Go){var Yo=Go.__CE_definition;Yo.connectedCallback&&Yo.connectedCallback.call(Go)},Kt.prototype.disconnectedCallback=function(Go){var Yo=Go.__CE_definition;Yo.disconnectedCallback&&Yo.disconnectedCallback.call(Go)},Kt.prototype.attributeChangedCallback=function(Go,Yo,Vo,Xo,zo){var $o=Go.__CE_definition;$o.attributeChangedCallback&&-1<$o.observedAttributes.indexOf(Yo)&&$o.attributeChangedCallback.call(Go,Yo,Vo,Xo,zo)},Qt.prototype.f=function(Go){var Yo=this.a.readyState;for('interactive'!==Yo&&'complete'!==Yo||eo(this),Yo=0;Yo<Go.length;Yo++)for(var Vo=Go[Yo].addedNodes,Xo=0;Xo<Vo.length;Xo++)Jt(this.c,Vo[Xo])},ro.prototype.l=function(Go,Yo){var Vo=this;if(!(Yo instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!Ut(Go))throw new SyntaxError('The element name \''+Go+'\' is not valid.');if(this.a.a.get(Go))throw Error('A custom element with name \''+Go+'\' has already been defined.');if(this.f)throw Error('A custom element is already being defined.');this.f=!0;var Xo,zo,$o,Jo,Zo;try{var Qo=function(tr){var or=er[tr];if(void 0!==or&&!(or instanceof Function))throw Error('The \''+tr+'\' callback must be a function.');return or},er=Yo.prototype;if(!(er instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');Xo=Qo('connectedCallback'),zo=Qo('disconnectedCallback'),$o=Qo('adoptedCallback'),Jo=Qo('attributeChangedCallback'),Zo=Yo.observedAttributes||[]}catch(tr){return}finally{this.f=!1}Gt(this.a,Go,{localName:Go,constructor:Yo,connectedCallback:Xo,disconnectedCallback:zo,adoptedCallback:$o,attributeChangedCallback:Jo,observedAttributes:Zo,constructionStack:[]}),this.c.push(Go),this.b||(this.b=!0,this.g(function(){if(!1!==Vo.b)for(Vo.b=!1,Jt(Vo.a,document);0<Vo.c.length;){var tr=Vo.c.shift();(tr=Vo.h.get(tr))&&oo(tr)}}))},ro.prototype.get=function(Go){if(Go=this.a.a.get(Go))return Go.constructor},ro.prototype.o=function(Go){if(!Ut(Go))return Promise.reject(new SyntaxError('\''+Go+'\' is not a valid custom element name.'));var Yo=this.h.get(Go);return Yo?Yo.c:(Yo=new to,this.h.set(Go,Yo),this.a.a.get(Go)&&-1===this.c.indexOf(Go)&&oo(Yo),Yo.c)},ro.prototype.m=function(Go){eo(this.j);var Yo=this.g;this.g=function(Vo){return Go(function(){return Yo(Vo)})}},window.CustomElementRegistry=ro,ro.prototype.define=ro.prototype.l,ro.prototype.get=ro.prototype.get,ro.prototype.whenDefined=ro.prototype.o,ro.prototype.polyfillWrapFlushCallback=ro.prototype.m;var _o=window.Document.prototype.createElement,uo=window.Document.prototype.createElementNS,yo=window.Document.prototype.importNode,mo=window.Document.prototype.prepend,go=window.Document.prototype.append,fo=window.Node.prototype.cloneNode,So=window.Node.prototype.appendChild,No=window.Node.prototype.insertBefore,Co=window.Node.prototype.removeChild,bo=window.Node.prototype.replaceChild,Eo=Object.getOwnPropertyDescriptor(window.Node.prototype,'textContent'),vo=window.Element.prototype.attachShadow,Po=Object.getOwnPropertyDescriptor(window.Element.prototype,'innerHTML'),To=window.Element.prototype.getAttribute,Ro=window.Element.prototype.setAttribute,Ao=window.Element.prototype.removeAttribute,xo=window.Element.prototype.getAttributeNS,Oo=window.Element.prototype.setAttributeNS,Mo=window.Element.prototype.removeAttributeNS,Do=window.Element.prototype.insertAdjacentElement,Io=window.Element.prototype.prepend,wo=window.Element.prototype.append,Lo=window.Element.prototype.before,ko=window.Element.prototype.after,Fo=window.Element.prototype.replaceWith,Ho=window.Element.prototype.remove,Uo=window.HTMLElement,Wo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),Bo=window.HTMLElement.prototype.insertAdjacentElement,qo=window.customElements;if(!qo||qo.forcePolyfill||'function'!=typeof qo.define||'function'!=typeof qo.get){var jo=new Kt;so(),lo(),ao(),po(),document.__CE_hasRegistry=!0;var Ko=new ro(jo);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:Ko})}}.call(self);class xe{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText='',this.cssText='',this.atRule=!1,this.type=0,this.keyframesName='',this.selector='',this.parsedSelector=''}}const Oe={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Me='{',De='}',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},we='--';let Fe=!(window.ShadyDOM&&window.ShadyDOM.inUse),He=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?ae(window.ShadyCSS):window.WebComponents&&ae(window.WebComponents.flags);const Ue=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,We=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Be=/(--[\w-]+)\s*([:,;)]|$)/gi,qe=/(animation\s*:)|(animation-name\s*:)/,je=/@media[^(]*(\([^)]*\))/,Ke=/\{[^}]*\}/g;let Ve=null;const Xe='style-scope';class ze{get SCOPE_NAME(){return Xe}dom(Ut,Wt,Bt){Ut.__styleScoped?Ut.__styleScoped=null:this._transformDom(Ut,Wt||'',Bt)}_transformDom(Ut,Wt,Bt){Ut.nodeType===Node.ELEMENT_NODE&&this.element(Ut,Wt,Bt);let qt='template'===Ut.localName?(Ut.content||Ut._content).childNodes:Ut.children||Ut.childNodes;if(qt)for(let jt=0;jt<qt.length;jt++)this._transformDom(qt[jt],Wt,Bt)}element(Ut,Wt,Bt){if(Wt)if(Ut.classList)Bt?(Ut.classList.remove(Xe),Ut.classList.remove(Wt)):(Ut.classList.add(Xe),Ut.classList.add(Wt));else if(Ut.getAttribute){let qt=Ut.getAttribute('class');if(!Bt){let jt=(qt?qt+' ':'')+Xe+' '+Wt;Se(Ut,jt)}else if(qt){let jt=qt.replace(Xe,'').replace(Wt,'');Se(Ut,jt)}}}elementStyles(Ut,Wt,Bt){let qt=Ut.__cssBuild,jt='';if(Fe||'shady'===qt)jt=de(Wt,Bt);else{let{is:Kt,typeExtension:Gt}=Ne(Ut);jt=this.css(Wt,Kt,Gt,Bt)+'\n\n'}return jt.trim()}css(Ut,Wt,Bt,qt){let jt=this._calcHostScope(Wt,Bt);Wt=this._calcElementScope(Wt);let Kt=this;return de(Ut,function(Gt){Gt.isScoped||(Kt.rule(Gt,Wt,jt),Gt.isScoped=!0),qt&&qt(Gt,Wt,jt)})}_calcElementScope(Ut){return Ut?'.'+Ut:''}_calcHostScope(Ut,Wt){return Wt?`[is=${Ut}]`:Ut}rule(Ut,Wt,Bt){this._transformRule(Ut,this._transformComplexSelector,Wt,Bt)}_transformRule(Ut,Wt,Bt,qt){Ut.selector=Ut.transformedSelector=this._transformRuleCss(Ut,Wt,Bt,qt)}_transformRuleCss(Ut,Wt,Bt,qt){let jt=Ut.selector.split(Ze);if(!pe(Ut))for(let Yt,Kt=0,Gt=jt.length;Kt<Gt&&(Yt=jt[Kt]);Kt++)jt[Kt]=Wt.call(this,Yt,Bt,qt);return jt.join(Ze)}_transformComplexSelector(Ut,Wt,Bt){let qt=!1;return Ut=Ut.trim(),Ut=Ut.replace($e,(jt,Kt,Gt)=>`:${Kt}(${Gt.replace(/\s/g,'')})`),Ut=Ut.replace(st,`${tt} $1`),Ut=Ut.replace(Qe,(jt,Kt,Gt)=>{if(!qt){let Yt=this._transformCompoundSelector(Gt,Kt,Wt,Bt);qt=qt||Yt.stop,Kt=Yt.combinator,Gt=Yt.value}return Kt+Gt}),Ut}_transformCompoundSelector(Ut,Wt,Bt,qt){let jt=Ut.indexOf(rt);0<=Ut.indexOf(tt)?Ut=this._transformHostSelector(Ut,qt):0!==jt&&(Ut=Bt?this._transformSimpleSelector(Ut,Bt):Ut);let Kt=!1;0<=jt&&(Wt='',Kt=!0);let Gt;return Kt&&(Gt=!0,Kt&&(Ut=Ut.replace(lt,(Yt,Vt)=>` > ${Vt}`))),Ut=Ut.replace(at,(Yt,Vt,Xt)=>`[dir="${Xt}"] ${Vt}, ${Vt}[dir="${Xt}"]`),{value:Ut,combinator:Wt,stop:Gt}}_transformSimpleSelector(Ut,Wt){let Bt=Ut.split(it);return Bt[0]+=Wt,Bt.join(it)}_transformHostSelector(Ut,Wt){let Bt=Ut.match(nt),qt=Bt&&Bt[2].trim()||'';if(qt){if(!qt[0].match(et)){let jt=qt.split(et)[0];return jt===Wt?qt:'should_not_match'}return Ut.replace(nt,function(jt,Kt,Gt){return Wt+Gt})}return Ut.replace(tt,Wt)}documentRule(Ut){Ut.selector=Ut.parsedSelector,this.normalizeRootSelector(Ut),this._transformRule(Ut,this._transformDocumentSelector)}normalizeRootSelector(Ut){Ut.selector===':root'&&(Ut.selector='html')}_transformDocumentSelector(Ut){return Ut.match(rt)?this._transformComplexSelector(Ut,Je):this._transformSimpleSelector(Ut.trim(),Je)}}let $e=/:(nth[-\w]+)\(([^)]+)\)/,Je=`:not(.${Xe})`,Ze=',',Qe=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,et=/[[.:#*]/,tt=':host',rt='::slotted',st=/^(::slotted)/,nt=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,lt=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,at=/(.*):dir\((?:(ltr|rtl))\)/,it=':';var ht=new ze;const _t='__styleInfo';class ut{static get(Ut){return Ut?Ut[_t]:null}static set(Ut,Wt){return Ut[_t]=Wt,Wt}constructor(Ut,Wt,Bt,qt,jt,Kt){this.styleRules=Ut||null,this.placeholder=Wt||null,this.ownStylePropertyNames=Bt||[],this.overrideStyleProperties=null,this.elementName=qt||'',this.cssBuild=Kt||'',this.typeExtension=jt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}_getStyleRules(){return this.styleRules}}ut.prototype._getStyleRules=ut.prototype._getStyleRules;const yt=(Ut=>Ut.matches||Ut.matchesSelector||Ut.mozMatchesSelector||Ut.msMatchesSelector||Ut.oMatchesSelector||Ut.webkitMatchesSelector)(window.Element.prototype),mt=navigator.userAgent.match('Trident'),gt='x-scope';class ft{get XSCOPE_NAME(){return gt}decorateStyles(Ut){let Wt=this,Bt={},qt=[],jt=0;he(Ut,function(Gt){Wt.decorateRule(Gt),Gt.index=jt++,Wt.collectPropertiesInCssText(Gt.propertyInfo.cssText,Bt)},function(Yt){qt.push(Yt)}),Ut._keyframes=qt;let Kt=[];for(let Gt in Bt)Kt.push(Gt);return Kt}decorateRule(Ut){if(Ut.propertyInfo)return Ut.propertyInfo;let Wt={},Bt={},qt=this.collectProperties(Ut,Bt);return qt&&(Wt.properties=Bt,Ut.rules=null),Wt.cssText=this.collectCssText(Ut),Ut.propertyInfo=Wt,Wt}collectProperties(Ut,Wt){let Bt=Ut.propertyInfo;if(!Bt){let qt,Kt=Ut.parsedCssText,Gt,Yt;for(;qt=Ue.exec(Kt);)Gt=(qt[2]||qt[3]).trim(),('inherit'!==Gt||'unset'!==Gt)&&(Wt[qt[1].trim()]=Gt),Yt=!0;return Yt}else if(Bt.properties)return Object.assign(Wt,Bt.properties),!0}collectCssText(Ut){return this.collectConsumingCssText(Ut.parsedCssText)}collectConsumingCssText(Ut){return Ut.replace(Ke,'').replace(Ue,'')}collectPropertiesInCssText(Ut,Wt){for(let Bt,qt;Bt=Be.exec(Ut);)qt=Bt[1],':'!==Bt[2]&&(Wt[qt]=!0)}reify(Ut){let Wt=Object.getOwnPropertyNames(Ut);for(let qt,Bt=0;Bt<Wt.length;Bt++)qt=Wt[Bt],Ut[qt]=this.valueForProperty(Ut[qt],Ut)}valueForProperty(Ut,Wt){if(Ut)if(0<=Ut.indexOf(';'))Ut=this.valueForProperties(Ut,Wt);else{let Bt=this;Ut=fe(Ut,function(jt,Kt,Gt,Yt){if(!Kt)return jt+Yt;let Vt=Bt.valueForProperty(Wt[Kt],Wt);return Vt&&'initial'!==Vt?'apply-shim-inherit'===Vt&&(Vt='inherit'):Vt=Bt.valueForProperty(Wt[Gt]||Gt,Wt)||Gt,jt+(Vt||'')+Yt})}return Ut&&Ut.trim()||''}valueForProperties(Ut,Wt){let Bt=Ut.split(';');for(let jt,Kt,qt=0;qt<Bt.length;qt++)if(jt=Bt[qt]){if(We.lastIndex=0,Kt=We.exec(jt),Kt)jt=this.valueForProperty(Wt[Kt[1]],Wt);else{let Gt=jt.indexOf(':');if(-1!==Gt){let Yt=jt.substring(Gt);Yt=Yt.trim(),Yt=this.valueForProperty(Yt,Wt)||Yt,jt=jt.substring(0,Gt)+Yt}}Bt[qt]=jt&&jt.lastIndexOf(';')===jt.length-1?jt.slice(0,-1):jt||''}return Bt.join(';')}applyProperties(Ut,Wt){let Bt='';Ut.propertyInfo||this.decorateRule(Ut),Ut.propertyInfo.cssText&&(Bt=this.valueForProperties(Ut.propertyInfo.cssText,Wt)),Ut.cssText=Bt}applyKeyframeTransforms(Ut,Wt){let Bt=Ut.cssText,qt=Ut.cssText;if(null==Ut.hasAnimations&&(Ut.hasAnimations=qe.test(Bt)),Ut.hasAnimations){let jt;if(null==Ut.keyframeNamesToTransform)for(let Kt in Ut.keyframeNamesToTransform=[],Wt)jt=Wt[Kt],qt=jt(Bt),Bt!==qt&&(Bt=qt,Ut.keyframeNamesToTransform.push(Kt));else{for(let Kt=0;Kt<Ut.keyframeNamesToTransform.length;++Kt)jt=Wt[Ut.keyframeNamesToTransform[Kt]],Bt=jt(Bt);qt=Bt}}Ut.cssText=qt}propertyDataFromStyles(Ut,Wt){let Bt={},qt=this,jt=[];return he(Ut,function(Kt){Kt.propertyInfo||qt.decorateRule(Kt);let Gt=Kt.transformedSelector||Kt.parsedSelector;Wt&&Kt.propertyInfo.properties&&Gt&&yt.call(Wt,Gt)&&(qt.collectProperties(Kt,Bt),Ce(Kt.index,jt))},null,!0),{properties:Bt,key:jt}}whenHostOrRootRule(Ut,Wt,Bt,qt){if(Wt.propertyInfo||this.decorateRule(Wt),!!Wt.propertyInfo.properties){let{is:jt,typeExtension:Kt}=Ne(Ut),Gt=Ut.is?ht._calcHostScope(jt,Kt):'html',Yt=Wt.parsedSelector,Vt=':host > *'===Yt||'html'===Yt,Xt=0===Yt.indexOf(':host')&&!Vt;if('shady'===Bt&&(Vt=Yt===Gt+' > *.'+Gt||-1!==Yt.indexOf('html'),Xt=!Vt&&0===Yt.indexOf(Gt)),'shadow'===Bt&&(Vt=':host > *'===Yt||'html'===Yt,Xt=Xt&&!Vt),Vt||Xt){let zt=Gt;Xt&&(Fe&&!Wt.transformedSelector&&(Wt.transformedSelector=ht._transformRuleCss(Wt,ht._transformComplexSelector,ht._calcElementScope(jt),Gt)),zt=Wt.transformedSelector||Gt),qt({selector:zt,isHost:Xt,isRoot:Vt})}}}hostAndRootPropertiesForScope(Ut,Wt){let Bt={},qt={},jt=this,Kt=Wt&&Wt.__cssBuild;return he(Wt,function(Gt){jt.whenHostOrRootRule(Ut,Gt,Kt,function(Yt){let Vt=Ut._element||Ut;yt.call(Vt,Yt.selector)&&(Yt.isHost?jt.collectProperties(Gt,Bt):jt.collectProperties(Gt,qt))})},null,!0),{rootProps:qt,hostProps:Bt}}transformStyles(Ut,Wt,Bt){let qt=this,{is:jt,typeExtension:Kt}=Ne(Ut),Gt=ht._calcHostScope(jt,Kt),Yt=Ut.extends?'\\'+Gt.slice(0,-1)+'\\]':Gt,Vt=new RegExp('(?:^|[^.#[:])'+Yt+'($|[.:[\\s>+~])'),Xt=ut.get(Ut).styleRules,zt=this._elementKeyframeTransforms(Ut,Xt,Bt);return ht.elementStyles(Ut,Xt,function($t){qt.applyProperties($t,Wt),Fe||pe($t)||!$t.cssText||(qt.applyKeyframeTransforms($t,zt),qt._scopeSelector($t,Vt,Gt,Bt))})}_elementKeyframeTransforms(Ut,Wt,Bt){let qt=Wt._keyframes,jt={};if(!Fe&&qt)for(let Kt=0,Gt=qt[Kt];Kt<qt.length;Gt=qt[++Kt])this._scopeKeyframes(Gt,Bt),jt[Gt.keyframesName]=this._keyframesRuleTransformer(Gt);return jt}_keyframesRuleTransformer(Ut){return function(Wt){return Wt.replace(Ut.keyframesNameRx,Ut.transformedKeyframesName)}}_scopeKeyframes(Ut,Wt){Ut.keyframesNameRx=new RegExp(Ut.keyframesName,'g'),Ut.transformedKeyframesName=Ut.keyframesName+'-'+Wt,Ut.transformedSelector=Ut.transformedSelector||Ut.selector,Ut.selector=Ut.transformedSelector.replace(Ut.keyframesName,Ut.transformedKeyframesName)}_scopeSelector(Ut,Wt,Bt,qt){Ut.transformedSelector=Ut.transformedSelector||Ut.selector;let jt=Ut.transformedSelector,Kt='.'+qt,Gt=jt.split(',');for(let Xt,Yt=0,Vt=Gt.length;Yt<Vt&&(Xt=Gt[Yt]);Yt++)Gt[Yt]=Xt.match(Wt)?Xt.replace(Bt,Kt):Kt+' '+Xt;Ut.selector=Gt.join(',')}applyElementScopeSelector(Ut,Wt,Bt){let qt=Ut.getAttribute('class')||'',jt=qt;Bt&&(jt=qt.replace(new RegExp('\\s*'+gt+'\\s*'+Bt+'\\s*','g'),' ')),jt+=(jt?' ':'')+gt+' '+Wt,qt!==jt&&Se(Ut,jt)}applyElementStyle(Ut,Wt,Bt,qt){let jt=qt?qt.textContent||'':this.transformStyles(Ut,Wt,Bt),Kt=ut.get(Ut),Gt=Kt.customStyle;return Gt&&!Fe&&Gt!==qt&&(Gt._useCount--,0>=Gt._useCount&&Gt.parentNode&&Gt.parentNode.removeChild(Gt)),Fe?Kt.customStyle?(Kt.customStyle.textContent=jt,qt=Kt.customStyle):jt&&(qt=_e(jt,Bt,Ut.shadowRoot,Kt.placeholder)):qt?!qt.parentNode&&me(qt,null,Kt.placeholder):jt&&(qt=_e(jt,Bt,null,Kt.placeholder)),qt&&(qt._useCount=qt._useCount||0,Kt.customStyle!=qt&&qt._useCount++,Kt.customStyle=qt),mt&&(qt.textContent=qt.textContent),qt}applyCustomStyle(Ut,Wt){let Bt=ie(Ut),qt=this;Ut.textContent=de(Bt,function(jt){let Kt=jt.cssText=jt.parsedCssText;jt.propertyInfo&&jt.propertyInfo.cssText&&(Kt=ne(Kt),jt.cssText=qt.valueForProperties(Kt,Wt))})}}var St=new ft;let Nt={};const Ct=window.customElements;if(Ct&&!Fe){const Ut=Ct.define;Ct.define=(Bt,qt,jt)=>{return Nt[Bt]=ye(Bt),Ut.call(Ct,Bt,qt,jt)}}let Et=function(){};if(!Fe){let Ut=Kt=>{return Kt.classList&&!Kt.classList.contains(ht.SCOPE_NAME)||Kt instanceof window.SVGElement&&(!Kt.hasAttribute('class')||0>Kt.getAttribute('class').indexOf(ht.SCOPE_NAME))},Wt=Kt=>{for(let Yt,Gt=0;Gt<Kt.length;Gt++)if(Yt=Kt[Gt],Yt.target!==document.documentElement&&Yt.target!==document.head){for(let Xt,Vt=0;Vt<Yt.addedNodes.length;Vt++)if(Xt=Yt.addedNodes[Vt],Ut(Xt)){let zt=Xt.getRootNode();if(zt.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let $t=zt.host;if($t){let{is:Jt}=Ne($t);ht.dom(Xt,Jt)}}}for(let Xt,Vt=0;Vt<Yt.removedNodes.length;Vt++)if(Xt=Yt.removedNodes[Vt],Xt.nodeType===Node.ELEMENT_NODE){let zt;if(Xt.classList?zt=Array.from(Xt.classList):Xt.hasAttribute('class')&&(zt=Xt.getAttribute('class').split(/\s+/)),void 0!=zt){let $t=zt.indexOf(ht.SCOPE_NAME);if(0<=$t){let Jt=zt[$t+1];Jt&&ht.dom(Xt,Jt,!0)}}}}},Bt=new MutationObserver(Wt),qt=Kt=>{Bt.observe(Kt,{childList:!0,subtree:!0})},jt=window.customElements&&!window.customElements.flush;if(jt)qt(document);else{let Kt=()=>{qt(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Kt):requestAnimationFrame(function(){if('loading'===document.readyState){let Gt=function(){Kt(),document.removeEventListener('readystatechange',Gt)};document.addEventListener('readystatechange',Gt)}else Kt()})}Et=function(){Wt(Bt.takeRecords())}}const vt={},Pt=Promise.resolve();let Tt=null,Rt=window.HTMLImports&&window.HTMLImports.whenReady||null,At;const xt='__seenByShadyCSS',Ot='__shadyCSSCachedStyle';let Mt=null,Dt=null;class It{constructor(){this.customStyles=[],this.enqueued=!1}enqueueDocumentValidation(){this.enqueued||!Dt||(this.enqueued=!0,Re(Dt))}addCustomStyle(Ut){Ut[xt]||(Ut[xt]=!0,this.customStyles.push(Ut),this.enqueueDocumentValidation())}getStyleForCustomStyle(Ut){if(Ut[Ot])return Ut[Ot];let Wt;return Wt=Ut.getStyle?Ut.getStyle():Ut,Wt}processStyles(){let Ut=this.customStyles;for(let Bt,Wt=0;Wt<Ut.length;Wt++)if(Bt=Ut[Wt],!Bt[Ot]){let qt=this.getStyleForCustomStyle(Bt);if(qt){let jt=qt.__appliedElement;if(jt)for(let Yt,Gt=0;Gt<qt.attributes.length;Gt++)Yt=qt.attributes[Gt],jt.setAttribute(Yt.name,Yt.value);let Kt=jt||qt;Mt&&Mt(Kt),Bt[Ot]=Kt}}return Ut}}It.prototype.addCustomStyle=It.prototype.addCustomStyle,It.prototype.getStyleForCustomStyle=It.prototype.getStyleForCustomStyle,It.prototype.processStyles=It.prototype.processStyles,Object.defineProperties(It.prototype,{transformCallback:{get(){return Mt},set(Ut){Mt=Ut}},validateCallback:{get(){return Dt},set(Ut){let Wt=!1;Dt||(Wt=!0),Dt=Ut,Wt&&this.enqueueDocumentValidation()}}});const wt=new class{constructor(Ut=100){this.cache={},this.typeMax=Ut}_validate(Ut,Wt,Bt){for(let jt,qt=0;qt<Bt.length;qt++)if(jt=Bt[qt],Ut.properties[jt]!==Wt[jt])return!1;return!0}store(Ut,Wt,Bt,qt){let jt=this.cache[Ut]||[];jt.push({properties:Wt,styleElement:Bt,scopeSelector:qt}),jt.length>this.typeMax&&jt.shift(),this.cache[Ut]=jt}fetch(Ut,Wt,Bt){let qt=this.cache[Ut];if(qt)for(let Kt,jt=qt.length-1;0<=jt;jt--)if(Kt=qt[jt],this._validate(Kt,Wt,Bt))return Kt}};class Lt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement;let Ut=new xe;Ut.rules=[],this._documentOwnerStyleInfo=ut.set(this._documentOwner,new ut(Ut)),this._elementsHaveApplied=!1,this._applyShim=null,this._customStyleInterface=null,Re(()=>{this._ensure()})}flush(){Et()}_generateScopeSelector(Ut){let Wt=this._scopeCounter[Ut]=(this._scopeCounter[Ut]||0)+1;return`${Ut}-${Wt}`}getStyleAst(Ut){return ie(Ut)}styleAstToString(Ut){return de(Ut)}_gatherStyles(Ut){let Wt=Ut.content.querySelectorAll('style'),Bt=[];for(let jt,qt=0;qt<Wt.length;qt++)jt=Wt[qt],Bt.push(jt.textContent),jt.parentNode.removeChild(jt);return Bt.join('').trim()}_getCssBuild(Ut){let Wt=Ut.content.querySelector('style');return Wt?Wt.getAttribute('css-build')||'':''}prepareTemplate(Ut,Wt,Bt){if(!Ut._prepared){Ut._prepared=!0,Ut.name=Wt,Ut.extends=Bt,vt[Wt]=Ut;let qt=this._getCssBuild(Ut),jt=this._gatherStyles(Ut),Kt={is:Wt,extends:Bt,__cssBuild:qt};Fe||ht.dom(Ut.content,Wt),this._ensure();let Gt=this._applyShim.detectMixin(jt),Yt=_(jt);Gt&&He&&this._applyShim.transformRules(Yt,Wt),Ut._styleAst=Yt,Ut._cssBuild=qt;let Vt=[];if(He||(Vt=St.decorateStyles(Ut._styleAst,Kt)),!Vt.length||He){let Xt=Fe?Ut.content:null,zt=Nt[Wt],$t=this._generateStaticStyle(Kt,Ut._styleAst,Xt,zt);Ut._style=$t}Ut._ownPropertyNames=Vt}}_generateStaticStyle(Ut,Wt,Bt,qt){let jt=ht.elementStyles(Ut,Wt);if(jt.length)return _e(jt,Ut.is,Bt,qt)}_prepareHost(Ut){let Kt,Gt,Yt,{is:Wt,typeExtension:Bt}=Ne(Ut),qt=Nt[Wt],jt=vt[Wt];return jt&&(Kt=jt._styleAst,Gt=jt._ownPropertyNames,Yt=jt._cssBuild),ut.set(Ut,new ut(Kt,qt,Gt,Wt,Bt,Yt))}_ensureApplyShim(){this._applyShim||(window.ShadyCSS.ApplyShim?(this._applyShim=window.ShadyCSS.ApplyShim,this._applyShim.invalidCallback=be):this._applyShim={['detectMixin'](){return!1},['transformRule'](){},['transformRules'](){}})}_ensureCustomStyleInterface(){this._customStyleInterface||(window.ShadyCSS.CustomStyleInterface?(this._customStyleInterface=window.ShadyCSS.CustomStyleInterface,this._customStyleInterface.transformCallback=Ut=>{this.transformCustomStyleForDocument(Ut)},this._customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{(this._customStyleInterface.enqueued||this._elementsHaveApplied)&&this.flushCustomStyles()})}):this._customStyleInterface={['processStyles'](){},enqueued:!1,['getStyleForCustomStyle'](){return null}})}_ensure(){this._ensureApplyShim(),this._ensureCustomStyleInterface()}flushCustomStyles(){this._ensure();let Ut=this._customStyleInterface.processStyles();this._customStyleInterface.enqueued&&(He?this._revalidateCustomStyleApplyShim(Ut):(this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),this._applyCustomStyles(Ut)),this._customStyleInterface.enqueued=!1,this._elementsHaveApplied&&!He&&this.styleDocument())}styleElement(Ut,Wt){let{is:Bt}=Ne(Ut),qt=ut.get(Ut);if(qt||(qt=this._prepareHost(Ut)),this._isRootOwner(Ut)||(this._elementsHaveApplied=!0),Wt&&(qt.overrideStyleProperties=qt.overrideStyleProperties||{},Object.assign(qt.overrideStyleProperties,Wt)),!He)this._updateProperties(Ut,qt),qt.ownStylePropertyNames&&qt.ownStylePropertyNames.length&&this._applyStyleProperties(Ut,qt);else{qt.overrideStyleProperties&&Ae(Ut,qt.overrideStyleProperties);let jt=vt[Bt];if(!jt&&!this._isRootOwner(Ut))return;if(jt&&jt._style&&!ve(jt)){if(Pe(jt)||(this._ensure(),this._applyShim.transformRules(jt._styleAst,Bt),jt._style.textContent=ht.elementStyles(Ut,qt.styleRules),Te(jt)),Fe){let Kt=Ut.shadowRoot;if(Kt){let Gt=Kt.querySelector('style');Gt.textContent=ht.elementStyles(Ut,qt.styleRules)}}qt.styleRules=jt._styleAst}}}_styleOwnerForNode(Ut){let Wt=Ut.getRootNode(),Bt=Wt.host;return Bt?ut.get(Bt)?Bt:this._styleOwnerForNode(Bt):this._documentOwner}_isRootOwner(Ut){return Ut===this._documentOwner}_applyStyleProperties(Ut,Wt){let Bt=Ne(Ut).is,qt=wt.fetch(Bt,Wt.styleProperties,Wt.ownStylePropertyNames),jt=qt&&qt.scopeSelector,Kt=qt?qt.styleElement:null,Gt=Wt.scopeSelector;Wt.scopeSelector=jt||this._generateScopeSelector(Bt);let Yt=St.applyElementStyle(Ut,Wt.styleProperties,Wt.scopeSelector,Kt);return Fe||St.applyElementScopeSelector(Ut,Wt.scopeSelector,Gt),qt||wt.store(Bt,Wt.styleProperties,Yt,Wt.scopeSelector),Yt}_updateProperties(Ut,Wt){let Bt=this._styleOwnerForNode(Ut),qt=ut.get(Bt),jt=qt.styleProperties,Kt=Object.create(jt||null),Gt=St.hostAndRootPropertiesForScope(Ut,Wt.styleRules),Yt=St.propertyDataFromStyles(qt.styleRules,Ut),Vt=Yt.properties;Object.assign(Kt,Gt.hostProps,Vt,Gt.rootProps),this._mixinOverrideStyles(Kt,Wt.overrideStyleProperties),St.reify(Kt),Wt.styleProperties=Kt}_mixinOverrideStyles(Ut,Wt){for(let Bt in Wt){let qt=Wt[Bt];(qt||0===qt)&&(Ut[Bt]=qt)}}styleDocument(Ut){this.styleSubtree(this._documentOwner,Ut)}styleSubtree(Ut,Wt){let Bt=Ut.shadowRoot;(Bt||this._isRootOwner(Ut))&&this.styleElement(Ut,Wt);let qt=Bt&&(Bt.children||Bt.childNodes);if(qt)for(let Kt,jt=0;jt<qt.length;jt++)Kt=qt[jt],this.styleSubtree(Kt);else{let jt=Ut.children||Ut.childNodes;if(jt)for(let Gt,Kt=0;Kt<jt.length;Kt++)Gt=jt[Kt],this.styleSubtree(Gt)}}_revalidateCustomStyleApplyShim(Ut){for(let Wt=0;Wt<Ut.length;Wt++){let Bt=Ut[Wt],qt=this._customStyleInterface.getStyleForCustomStyle(Bt);qt&&this._revalidateApplyShim(qt)}}_applyCustomStyles(Ut){for(let Wt=0;Wt<Ut.length;Wt++){let Bt=Ut[Wt],qt=this._customStyleInterface.getStyleForCustomStyle(Bt);qt&&St.applyCustomStyle(qt,this._documentOwnerStyleInfo.styleProperties)}}transformCustomStyleForDocument(Ut){let Wt=ie(Ut);he(Wt,Bt=>{Fe?ht.normalizeRootSelector(Bt):ht.documentRule(Bt),He&&(this._ensure(),this._applyShim.transformRule(Bt))}),He?Ut.textContent=de(Wt):this._documentOwnerStyleInfo.styleRules.rules.push(Wt)}_revalidateApplyShim(Ut){if(He){let Wt=ie(Ut);this._ensure(),this._applyShim.transformRules(Wt),Ut.textContent=de(Wt)}}getComputedStyleValue(Ut,Wt){let Bt;if(!He){let qt=ut.get(Ut)||ut.get(this._styleOwnerForNode(Ut));Bt=qt.styleProperties[Wt]}return Bt=Bt||window.getComputedStyle(Ut).getPropertyValue(Wt),Bt?Bt.trim():''}setElementClass(Ut,Wt){let Bt=Ut.getRootNode(),qt=Wt?Wt.split(/\s/):[],jt=Bt.host&&Bt.host.localName;if(!jt){var Kt=Ut.getAttribute('class');if(Kt){let Gt=Kt.split(/\s/);for(let Yt=0;Yt<Gt.length;Yt++)if(Gt[Yt]===ht.SCOPE_NAME){jt=Gt[Yt+1];break}}}if(jt&&qt.push(ht.SCOPE_NAME,jt),!He){let Gt=ut.get(Ut);Gt&&Gt.scopeSelector&&qt.push(St.XSCOPE_NAME,Gt.scopeSelector)}Se(Ut,qt.join(' '))}_styleInfoForNode(Ut){return ut.get(Ut)}}Lt.prototype.flush=Lt.prototype.flush,Lt.prototype.prepareTemplate=Lt.prototype.prepareTemplate,Lt.prototype.styleElement=Lt.prototype.styleElement,Lt.prototype.styleDocument=Lt.prototype.styleDocument,Lt.prototype.styleSubtree=Lt.prototype.styleSubtree,Lt.prototype.getComputedStyleValue=Lt.prototype.getComputedStyleValue,Lt.prototype.setElementClass=Lt.prototype.setElementClass,Lt.prototype._styleInfoForNode=Lt.prototype._styleInfoForNode,Lt.prototype.transformCustomStyleForDocument=Lt.prototype.transformCustomStyleForDocument,Lt.prototype.getStyleAst=Lt.prototype.getStyleAst,Lt.prototype.styleAstToString=Lt.prototype.styleAstToString,Lt.prototype.flushCustomStyles=Lt.prototype.flushCustomStyles,Object.defineProperties(Lt.prototype,{nativeShadow:{get(){return Fe}},nativeCss:{get(){return He}}});const kt=new Lt;let Ft,Ht;window.ShadyCSS&&(Ft=window.ShadyCSS.ApplyShim,Ht=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:kt,prepareTemplate(Ut,Wt,Bt){kt.flushCustomStyles(),kt.prepareTemplate(Ut,Wt,Bt)},styleSubtree(Ut,Wt){kt.flushCustomStyles(),kt.styleSubtree(Ut,Wt)},styleElement(Ut){kt.flushCustomStyles(),kt.styleElement(Ut)},styleDocument(Ut){kt.flushCustomStyles(),kt.styleDocument(Ut)},getComputedStyleValue(Ut,Wt){return kt.getComputedStyleValue(Ut,Wt)},nativeCss:He,nativeShadow:Fe},Ft&&(window.ShadyCSS.ApplyShim=Ft),Ht&&(window.ShadyCSS.CustomStyleInterface=Ht)})();
|
|
//# sourceMappingURL=webcomponents-sd-ce.js.map
|