@haxtheweb/haxcms-nodejs
Version:
HAXcms single and multisite nodejs server, api, and administration
10 lines • 74.7 kB
JavaScript
/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(){var e;function aa(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}}function p(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:aa(e)}}function q(e){if(!(e instanceof Array)){e=p(e);for(var n,r=[];!(n=e.next()).done;)r.push(n.value);e=r}return e}var n=function ba(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<e.length;++n){var r=e[n];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function da(){}function t(e){return e.__shady||(e.__shady=new da),e.__shady}function v(e){return e&&e.__shady}da.prototype.toJSON=function(){return{}};var r=window.ShadyDOM||{};r.xa=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var i,o=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");r.j=!!(o&&o.configurable&&o.get),r.Z=r.force||!r.xa,r.s=r.noPatch||!1,r.L=r.preferPerformance,r.ba="on-demand"===r.s;var s=r.querySelectorImplementation;function ia(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function x(e){return(e=v(e))&&void 0!==e.firstChild}function y(e){return e instanceof ShadowRoot}function ja(e){return(e=(e=v(e))&&e.root)&&ka(e)}i=-1<["native","selectorEngine"].indexOf(s)?s:void 0,r.Ka=i,r.la=navigator.userAgent.match("Trident");var d=Element.prototype,l=d.matches||d.matchesSelector||d.mozMatchesSelector||d.msMatchesSelector||d.oMatchesSelector||d.webkitMatchesSelector,u=document.createTextNode(""),h=0,_=[];function pa(e){_.push(e),u.textContent=h++}new MutationObserver((function(){for(;_.length;)try{_.shift()()}catch(e){throw u.textContent=h++,e}})).observe(u,{characterData:!0});var f=document.contains?function(e,n){return e.__shady_native_contains(n)}:function(e,n){return e===n||e.documentElement&&e.documentElement.__shady_native_contains(n)};function ra(e,n){for(;n;){if(n==e)return!0;n=n.__shady_parentNode}return!1}function sa(e){for(var n=e.length-1;0<=n;n--){var r=e[n],i=r.getAttribute("id")||r.getAttribute("name");i&&"length"!==i&&isNaN(i)&&(e[i]=r)}return e.item=function(n){return e[n]},e.namedItem=function(n){if("length"!==n&&isNaN(n)&&e[n])return e[n];for(var r=p(e),i=r.next();!i.done;i=r.next())if(((i=i.value).getAttribute("id")||i.getAttribute("name"))==n)return i;return null},e}function ta(e){var n=[];for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)n.push(e);return n}function ua(e){var n=[];for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n.push(e);return n}function va(e,n,r){if(r.configurable=!0,r.value)e[n]=r.value;else try{Object.defineProperty(e,n,r)}catch(e){}}function A(e,n,r,i){for(var o in r=void 0===r?"":r,n)i&&0<=i.indexOf(o)||va(e,r+o,n[o])}function wa(e,n){for(var r in n)r in e&&va(e,r,n[r])}function B(e){var n={};return Object.getOwnPropertyNames(e).forEach((function(r){n[r]=Object.getOwnPropertyDescriptor(e,r)})),n}function xa(e,n){for(var r,i=Object.getOwnPropertyNames(n),o=0;o<i.length;o++)e[r=i[o]]=n[r]}function ya(e){return e instanceof Node?e:document.createTextNode(""+e)}function C(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];if(1===n.length)return ya(n[0]);r=document.createDocumentFragment();for(var i=(n=p(n)).next();!i.done;i=n.next())r.appendChild(ya(i.value));return r}function za(e){var n;for(n=void 0===n?1:n;0<n;n--)e=e.reduce((function(e,n){return Array.isArray(n)?e.push.apply(e,q(n)):e.push(n),e}),[]);return e}var m,g=[];function Da(e){m||(m=!0,pa(Ea)),g.push(e)}function Ea(){m=!1;for(var e=!!g.length;g.length;)g.shift()();return e}function Fa(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.R=new Set}Ea.list=g,Fa.prototype.flush=function(){if(this.g){this.g=!1;var e=this.takeRecords();e.length&&this.R.forEach((function(n){n(e)}))}},Fa.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var N=/[&\u00A0"]/g,E=/[&\u00A0<>]/g;function Ma(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Na(e){for(var n={},r=0;r<e.length;r++)n[e[r]]=!0;return n}var S=Na("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),w=Na("style script xmp iframe noembed noframes plaintext noscript".split(" "));function Ra(e,n){"template"===e.localName&&(e=e.content);for(var r="",i=n?n(e):e.childNodes,o=0,s=i.length,d=void 0;o<s&&(d=i[o]);o++){e:{var l=d,u=e,h=n;switch(l.nodeType){case Node.ELEMENT_NODE:for(var _,f="<"+(u=l.localName),m=l.attributes,g=0;_=m[g];g++)f+=" "+_.name+'="'+_.value.replace(N,Ma)+'"';f+=">",l=S[u]?f:f+Ra(l,h)+"</"+u+">";break e;case Node.TEXT_NODE:l=l.data,l=u&&w[u.localName]?l:l.replace(E,Ma);break e;case Node.COMMENT_NODE:l="\x3c!--"+l.data+"--\x3e";break e;default:throw window.console.error(l),Error("not implemented")}}r+=l}return r}var T=r.j,M={querySelector:function(e){return this.__shady_native_querySelector(e)},querySelectorAll:function(e){return this.__shady_native_querySelectorAll(e)}},P={};function Va(e){P[e]=function(n){return n["__shady_native_"+e]}}function Wa(e,n){for(var r in A(e,n,"__shady_native_"),n)Va(r)}function D(e,n){n=void 0===n?[]:n;for(var r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(e,i);o&&(Object.defineProperty(e,"__shady_native_"+i,o),o.value?M[i]||(M[i]=o.value):Va(i))}}var L=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),R=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),j=document.implementation.createHTMLDocument("inert");function Ya(e){for(var n;n=e.__shady_native_firstChild;)e.__shady_native_removeChild(n)}var k=["firstElementChild","lastElementChild","children","childElementCount"],F=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var V=B({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),z=B({get textContent(){return this.__shady_textContent},set textContent(e){this.__shady_textContent=e},get innerHTML(){return this.__shady_innerHTML},set innerHTML(e){this.__shady_innerHTML=e}}),K=B({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(e){this.__shady_className=e}});function eb(e){for(var n in e){var r=e[n];r&&(r.enumerable=!1)}}eb(V),eb(z),eb(K);var J,Z=r.j||!0===r.s,$=Z?function(){}:function(e){var n=t(e);n.na||(n.na=!0,wa(e,K))},ne=Z?function(){}:function(e){var n=t(e);n.ma||(n.ma=!0,wa(e,V),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!r.s||wa(e,z))},re="__eventWrappers"+Date.now(),se=(J=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(e){return J.get.call(e)}:null,ue=function(){function a(){}var e=!1,n={get capture(){return e=!0,!1}};return window.addEventListener("test",a,n),window.removeEventListener("test",a,n),e}();function lb(e){if(null===e||"object"!=typeof e&&"function"!=typeof e)var n=!!e,r=!1;else{n=!!e.capture,r=!!e.once;var i=e.F}return{ja:i,capture:n,once:r,ia:ue?e:n}}var _e={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},pe={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function ob(e){return e instanceof Node?e.__shady_getRootNode():e}function pb(e,n){var r=[],i=e;for(e=ob(e);i;)r.push(i),i=i.__shady_assignedSlot?i.__shady_assignedSlot:i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&i.host&&(n||i!==e)?i.host:i.__shady_parentNode;return r[r.length-1]===document&&r.push(window),r}function rb(e,n){if(!y)return e;e=pb(e,!0);for(var r,i,o=0,s=void 0,d=void 0;o<n.length;o++)if((i=ob(r=n[o]))!==s&&(d=e.indexOf(i),s=i),!y(i)||-1<d)return r}var ye={get composed(){return void 0===this.__composed&&(se?this.__composed="focusin"===this.type||"focusout"===this.type||se(this):!1!==this.isTrusted&&(this.__composed=_e[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=pb(this.__target,this.composed)),this.__composedPath},get target(){return rb(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=pb(this.__relatedTarget,!0)),rb(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.W=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.W=this.__immediatePropagationStopped=!0}},Ee=r.j&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function ub(e){function b(n,r){return(n=new e(n,r)).__composed=r&&!!r.composed,n}return b.__proto__=e,b.prototype=e.prototype,b}Ee&&(Object.defineProperty(ye,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(ye,"__shady_native_eventPhase",Ee));var Te={focus:!0,blur:!0};function wb(e){return e.__target!==e.target||e.__relatedTarget!==e.relatedTarget}function xb(e,n,r){if(r=n.__handlers&&n.__handlers[e.type]&&n.__handlers[e.type][r])for(var i,o=0;(i=r[o])&&(!wb(e)||e.target!==e.relatedTarget)&&(i.call(n,e),!e.__immediatePropagationStopped);o++);}var xe=new Event("e").hasOwnProperty("currentTarget");function zb(e){var n=(e=xe?Object.create(e):e).composedPath(),r=n.map((function(e){return rb(e,n)})),i=e.bubbles,o=Object.getOwnPropertyDescriptor(e,"currentTarget");Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return u}});var s=Event.CAPTURING_PHASE,d=Object.getOwnPropertyDescriptor(e,"eventPhase");Object.defineProperty(e,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return s}});try{for(var l=n.length-1;0<=l;l--){var u=n[l];if(s=u===r[l]?Event.AT_TARGET:Event.CAPTURING_PHASE,xb(e,u,"capture"),e.W)return}for(l=0;l<n.length;l++){var h=(u=n[l])===r[l];if((h||i)&&(s=h?Event.AT_TARGET:Event.BUBBLING_PHASE,xb(e,u,"bubble"),e.W))break}}finally{xe||(o?Object.defineProperty(e,"currentTarget",o):delete e.currentTarget,d?Object.defineProperty(e,"eventPhase",d):delete e.eventPhase)}}function Ab(e,n,r,i){for(var o=0;o<e.length;o++){var s=e[o],d=s.type,l=s.capture;if(n===s.node&&r===d&&i===l)return o}return-1}function Bb(e){return Ea(),!r.L&&this instanceof Node&&!f(document,this)?(e.__target||Cb(e,this),zb(e)):this.__shady_native_dispatchEvent(e)}function Db(e,n,r){var i=this,o=lb(r),s=o.capture,d=o.once,l=o.ja;if(o=o.ia,n){var u=typeof n;if(("function"===u||"object"===u)&&("object"!==u||n.handleEvent&&"function"==typeof n.handleEvent)){if(pe[e])return this.__shady_native_addEventListener(e,n,o);var h=l||this;if(l=n[re]){if(-1<Ab(l,h,e,s))return}else n[re]=[];l=function(o){if(d&&i.__shady_removeEventListener(e,n,r),o.__target||Cb(o),h!==i){var l=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return h},configurable:!0});var _=Object.getOwnPropertyDescriptor(o,"eventPhase");Object.defineProperty(o,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return s?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(o.__previousCurrentTarget=o.currentTarget,(!y(h)&&"slot"!==h.localName||-1!=o.composedPath().indexOf(h))&&(o.composed||-1<o.composedPath().indexOf(h)))if(wb(o)&&o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===h||h instanceof Window){var f="function"===u?n.call(h,o):n.handleEvent&&n.handleEvent(o);return h!==i&&(l?(Object.defineProperty(o,"currentTarget",l),l=null):delete o.currentTarget,_?(Object.defineProperty(o,"eventPhase",_),_=null):delete o.eventPhase),f}},n[re].push({node:h,type:e,capture:s,Ia:l}),this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][s?"capture":"bubble"].push(l),Te[e]||this.__shady_native_addEventListener(e,l,o)}}}function Eb(e,n,r){if(n){var i=lb(r);r=i.capture;var o=i.ja;if(i=i.ia,pe[e])return this.__shady_native_removeEventListener(e,n,i);var s=o||this;o=void 0;var d=null;try{d=n[re]}catch(e){}d&&(-1<(s=Ab(d,s,e,r))&&(o=d.splice(s,1)[0].Ia,d.length||(n[re]=void 0))),this.__shady_native_removeEventListener(e,o||n,i),o&&this.__handlers&&this.__handlers[e]&&(-1<(n=(e=this.__handlers[e][r?"capture":"bubble"]).indexOf(o))&&e.splice(n,1))}}var Fe=B(ye);function Cb(e,n){if(n=void 0===n?e.target:n,e.__target=n,e.__relatedTarget=e.relatedTarget,r.j){if(!(n=Object.getPrototypeOf(e)).hasOwnProperty("__shady_patchedProto")){var i=Object.create(n);i.__shady_sourceProto=n,A(i,Fe),n.__shady_patchedProto=i}e.__proto__=n.__shady_patchedProto}else A(e,Fe)}var Ue=ub(Event),We=ub(CustomEvent),Ve=ub(MouseEvent);var ze=Object.getOwnPropertyNames(Element.prototype).filter((function(e){return"on"===e.substring(0,2)})),Ze=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(e){return"on"===e.substring(0,2)}));function Nb(e){return{set:function(n){var r=t(this),i=e.substring(2);r.D||(r.D={}),r.D[e]&&this.removeEventListener(i,r.D[e]),this.__shady_addEventListener(i,n),r.D[e]=n},get:function(){var n=v(this);return n&&n.D&&n.D[e]},configurable:!0}}function Ob(e,n){return{index:e,M:[],P:n}}function Pb(e,n,r,i){var o=0,s=0,d=0,l=0,u=Math.min(n-o,i-s);if(0==o&&0==s)e:{for(d=0;d<u;d++)if(e[d]!==r[d])break e;d=u}if(n==e.length&&i==r.length){l=e.length;for(var h=r.length,_=0;_<u-d&&Qb(e[--l],r[--h]);)_++;l=_}if(s+=d,i-=l,0==(n-=l)-(o+=d)&&0==i-s)return[];if(o==n){for(n=Ob(o,0);s<i;)n.M.push(r[s++]);return[n]}if(s==i)return[Ob(o,n-o)];for(i=i-(d=s)+1,l=n-(u=o)+1,n=Array(i),h=0;h<i;h++)n[h]=Array(l),n[h][0]=h;for(h=0;h<l;h++)n[0][h]=h;for(h=1;h<i;h++)for(_=1;_<l;_++)if(e[u+_-1]===r[d+h-1])n[h][_]=n[h-1][_-1];else{var f=n[h-1][_]+1,m=n[h][_-1]+1;n[h][_]=f<m?f:m}for(u=n.length-1,d=n[0].length-1,i=n[u][d],e=[];0<u||0<d;)0==u?(e.push(2),d--):0==d?(e.push(3),u--):(l=n[u-1][d-1],(f=(h=n[u-1][d])<(_=n[u][d-1])?h<l?h:l:_<l?_:l)==l?(l==i?e.push(0):(e.push(1),i=l),u--,d--):f==h?(e.push(3),u--,i=h):(e.push(2),d--,i=_));for(e.reverse(),n=void 0,u=[],d=0;d<e.length;d++)switch(e[d]){case 0:n&&(u.push(n),n=void 0),o++,s++;break;case 1:n||(n=Ob(o,0)),n.P++,o++,n.M.push(r[s]),s++;break;case 2:n||(n=Ob(o,0)),n.P++,o++;break;case 3:n||(n=Ob(o,0)),n.M.push(r[s]),s++}return n&&u.push(n),u}function Qb(e,n){return e===n}var et=B({dispatchEvent:Bb,addEventListener:Db,removeEventListener:Eb}),tt=null;function G(){return tt||(tt=window.ShadyCSS&&window.ShadyCSS.ScopingShim),tt||null}function Tb(e,n,r){var i=G();return!(!i||"class"!==n)&&(i.setElementClass(e,r),!0)}function Ub(e,n){var r=G();r&&r.unscopeNode(e,n)}function Vb(e,n){var r=G();if(!r)return!0;if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(r=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)r=r&&Vb(e,n);return r}return e.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(e)===n}function Wb(e){if(e.nodeType!==Node.ELEMENT_NODE)return"";var n=G();return n?n.currentScopeForNode(e):""}function Xb(e,n){if(e)for(e.nodeType===Node.ELEMENT_NODE&&n(e),e=e.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType===Node.ELEMENT_NODE&&Xb(e,n)}var nt=window.document,rt=r.L,it=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),ot=it&&it.get;function bc(e){for(var n;n=e.__shady_firstChild;)e.__shady_removeChild(n)}function cc(e){var n=v(e);if(n&&void 0!==n.V)for(n=e.__shady_firstChild;n;n=n.__shady_nextSibling)cc(n);(e=v(e))&&(e.V=void 0)}function dc(e){var n=e;if(e&&"slot"===e.localName){var r=v(e);(r=r&&r.H)&&(n=r.length?r[0]:dc(e.__shady_nextSibling))}return n}function ec(e,n,r){if(e=(e=v(e))&&e.K){if(n)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var i=0,o=n.childNodes.length;i<o;i++)e.addedNodes.push(n.childNodes[i]);else e.addedNodes.push(n);r&&e.removedNodes.push(r),function Ga(e){e.g||(e.g=!0,pa((function(){e.flush()})))}(e)}}var st=B({get parentNode(){var e=v(this);return void 0!==(e=e&&e.parentNode)?e:this.__shady_native_parentNode},get firstChild(){var e=v(this);return void 0!==(e=e&&e.firstChild)?e:this.__shady_native_firstChild},get lastChild(){var e=v(this);return void 0!==(e=e&&e.lastChild)?e:this.__shady_native_lastChild},get nextSibling(){var e=v(this);return void 0!==(e=e&&e.nextSibling)?e:this.__shady_native_nextSibling},get previousSibling(){var e=v(this);return void 0!==(e=e&&e.previousSibling)?e:this.__shady_native_previousSibling},get childNodes(){if(x(this)){var e=v(this);if(!e.childNodes){e.childNodes=[];for(var n=this.__shady_firstChild;n;n=n.__shady_nextSibling)e.childNodes.push(n)}var r=e.childNodes}else r=this.__shady_native_childNodes;return r.item=function(e){return r[e]},r},get parentElement(){var e=v(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:this.__shady_native_parentElement},get isConnected(){if(ot&&ot.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(null===e||f(e,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.__shady_parentNode||(y(e)?e.host:void 0);return!!(e&&e instanceof Document)},get textContent(){if(x(this)){for(var e=[],n=this.__shady_firstChild;n;n=n.__shady_nextSibling)n.nodeType!==Node.COMMENT_NODE&&e.push(n.__shady_textContent);return e.join("")}return this.__shady_native_textContent},set textContent(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!x(this)&&r.j){var n=this.__shady_firstChild;(n!=this.__shady_lastChild||n&&n.nodeType!=Node.TEXT_NODE)&&bc(this),this.__shady_native_textContent=e}else bc(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(e));break;default:this.nodeValue=e}},insertBefore:function(e,n){if(this.ownerDocument!==nt&&e.ownerDocument!==nt)return this.__shady_native_insertBefore(e,n),e;if(e===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var r=v(n);if(void 0!==(r=r&&r.parentNode)&&r!==this||void 0===r&&n.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;ec(this,e);var i=[],o=(r=H(this))?r.host.localName:Wb(this),s=e.__shady_parentNode;if(s){var d=Wb(e),l=!!r||!H(e)||rt&&void 0!==this.__noInsertionPoint;s.__shady_removeChild(e,l)}s=!0;var u=(!rt||void 0===e.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Vb(e,o),h=r&&!e.__noInsertionPoint&&(!rt||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(h||u)&&(u&&(d=d||Wb(e)),Xb(e,(function(e){if(h&&"slot"===e.localName&&i.push(e),u){var n=d;G()&&(n&&Ub(e,n),(n=G())&&n.scopeNode(e,o))}}))),i.length&&(fc(r),r.i.push.apply(r.i,q(i)),I(r)),x(this)&&(function gc(e,n,r){Yc(n,2);var i=t(n);if(void 0!==i.firstChild&&(i.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(e=e.__shady_native_firstChild;e;e=e.__shady_native_nextSibling)Zc(e,n,i,r);else Zc(e,n,i,r)}(e,this,n),(l=v(this)).root?(s=!1,ja(this)&&I(l.root)):r&&"slot"===this.localName&&(s=!1,I(r))),s?(r=y(this)?this.host:this,n?(n=dc(n),r.__shady_native_insertBefore(e,n)):r.__shady_native_appendChild(e)):e.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(e),e},appendChild:function(e){if(this!=e||!y(e))return this.__shady_insertBefore(e)},removeChild:function(e,n){if(n=void 0!==n&&n,this.ownerDocument!==nt)return this.__shady_native_removeChild(e);if(e.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+e);ec(this,null,e);var r=H(e),i=r&&function hc(e,n){if(e.g){yc(e);var r,i=e.h;for(r in i)for(var o=i[r],s=0;s<o.length;s++){var d=o[s];if(ra(n,d)){o.splice(s,1);var l=e.g.indexOf(d);if(0<=l&&(e.g.splice(l,1),(l=v(d.__shady_parentNode))&&l.O&&l.O--),s--,l=(d=v(d)).H)for(var u=0;u<l.length;u++){var h=l[u],_=h.__shady_native_parentNode;_&&_.__shady_native_removeChild(h)}d.H=[],d.assignedNodes=[],l=!0}}return l}}(r,e),o=v(this);if(x(this)&&(function ic(e,n){var r=t(e);n=t(n),e===n.firstChild&&(n.firstChild=r.nextSibling),e===n.lastChild&&(n.lastChild=r.previousSibling),e=r.previousSibling;var i=r.nextSibling;e&&(t(e).nextSibling=i),i&&(t(i).previousSibling=e),r.parentNode=r.previousSibling=r.nextSibling=void 0,void 0!==n.childNodes&&(n.childNodes=null)}(e,this),ja(this))){I(o.root);var s=!0}if(G()&&!n&&r&&e.nodeType!==Node.TEXT_NODE){var d=Wb(e);Xb(e,(function(e){Ub(e,d)}))}return cc(e),r&&((n="slot"===this.localName)&&(s=!0),(i||n)&&I(r)),s||(s=y(this)?this.host:this,(!o.root&&"slot"!==e.localName||s===e.__shady_native_parentNode)&&s.__shady_native_removeChild(e)),e},replaceChild:function(e,n){return this.__shady_insertBefore(e,n),this.__shady_removeChild(n),e},cloneNode:function(e){if("template"==this.localName)return this.__shady_native_cloneNode(e);var n=this.__shady_native_cloneNode(!1);if(e&&n.nodeType!==Node.ATTRIBUTE_NODE){e=this.__shady_firstChild;for(var r;e;e=e.__shady_nextSibling)r=e.__shady_cloneNode(!0),n.__shady_appendChild(r)}return n},getRootNode:function(e){if(this&&this.nodeType){var n=t(this),r=n.V;return void 0===r&&(y(this)?(r=this,n.V=r):(r=(r=this.__shady_parentNode)?r.__shady_getRootNode(e):this,document.documentElement.__shady_native_contains(this)&&(n.V=r))),r}},contains:function(e){return ra(this,e)}}),at=B({get assignedSlot(){var e=this.__shady_parentNode;return(e=e&&e.__shady_shadowRoot)&&kc(e),(e=v(this))&&e.assignedSlot||null}}),dt=new Map;function nc(e,n,r,i){for(i=void 0===i||i;n<e.length;n++)if("\\"===e[n]&&n<e.length-1&&"\n"!==e[n+1])n++;else{if(-1!==r.indexOf(e[n]))return n;if(i&&dt.has(e[n])){var o=dt.get(e[n]);n=nc(e,n+1,[o.end],o.U)}}return e.length}function pc(e,n,r){var i=[];return qc(e,n,r,i),i}function qc(e,n,r,i){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var o;if(o=e.nodeType===Node.ELEMENT_NODE){var s=n,d=r,l=i,u=s(o=e);u&&l.push(o),d&&d(u)?o=u:(qc(o,s,d,l),o=void 0)}if(o)break}}[["(",{end:")",U:!0}],["[",{end:"]",U:!0}],['"',{end:'"',U:!1}],["'",{end:"'",U:!1}]].forEach((function(e){var n=p(e);e=n.next().value,n=n.next().value,dt.set(e,n)}));var lt={get firstElementChild(){var e=v(this);if(e&&void 0!==e.firstChild){for(e=this.__shady_firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_firstElementChild},get lastElementChild(){var e=v(this);if(e&&void 0!==e.lastChild){for(e=this.__shady_lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_lastElementChild},get children(){return x(this)?sa(Array.prototype.filter.call(ua(this),(function(e){return e.nodeType===Node.ELEMENT_NODE}))):this.__shady_native_children},get childElementCount(){var e=this.__shady_children;return e?e.length:0}},ut=B((lt.append=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];this.__shady_insertBefore(C.apply(null,q(n)),null)},lt.prepend=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];this.__shady_insertBefore(C.apply(null,q(n)),this.__shady_firstChild)},lt.replaceChildren=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];for(;null!==(r=this.__shady_firstChild);)this.__shady_removeChild(r);this.__shady_insertBefore(C.apply(null,q(n)),null)},lt));function sc(e,n){function c(n,r){return(n===e||-1===r.indexOf(":scope"))&&l.call(n,r)}var r=function oc(e){function b(){if(0<r.length){for(;" "===r[r.length-1];)r.pop();n.push({fa:r.filter((function(e,n){return 0==n%2})),ua:r.filter((function(e,n){return 1==n%2}))}),r.length=0}}for(var n=[],r=[],i=0;i<e.length;){var o=r[r.length-1],s=nc(e,i,[","," ",">","+","~"]),d=s===i?e[i]:e.substring(i,s);","===d?b():-1!==[void 0," ",">","+","~"].indexOf(o)&&" "===d||(" "===o&&-1!==[">","+","~"].indexOf(d)?r[r.length-1]=d:r.push(d)),i=s+(s===i?1:0)}return b(),n}(n);if(1>r.length)return[];for(n=za(pc(e,(function(){return!0})).map((function(e){return za(r.map((function(n){var r=n.fa,i=r.length-1;return c(e,r[i])?{target:e,I:n,J:e,index:i}:[]})))})));n.some((function(e){return 0<e.index}));)n=za(n.map((function(e){if(0>=e.index)return e;var n=e.target,r=e.J,i=e.I;e=e.index-1;var o=i.ua[e],s=i.fa[e];if(" "===o){for(o=[],r=r.__shady_parentElement;r;r=r.__shady_parentElement)c(r,s)&&o.push({target:n,I:i,J:r,index:e});return o}if(">"===o)return c(r=r.__shady_parentElement,s)?{target:n,I:i,J:r,index:e}:[];if("+"===o)return(r=r.__shady_previousElementSibling)&&c(r,s)?{target:n,I:i,J:r,index:e}:[];if("~"===o){for(o=[],r=r.__shady_previousElementSibling;r;r=r.__shady_previousElementSibling)c(r,s)&&o.push({target:n,I:i,J:r,index:e});return o}throw Error("Unrecognized combinator: '"+o+"'.")})));return function Aa(e){for(var n=[],r=new Set,i=(e=p(e)).next();!i.done;i=e.next())i=i.value,r.has(i)||(n.push(i),r.add(i));return n}(n.map((function(e){return e.target})))}var ht=r.querySelectorImplementation,ct=B({querySelector:function(e){if("native"===ht){for(var n=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e)),r=this.__shady_getRootNode(),i=(n=p(n)).next();!i.done;i=n.next())if((i=i.value).__shady_getRootNode()==r)return i;return null}if("selectorEngine"===ht)return sc(this,e)[0]||null;if(void 0===ht)return pc(this,(function(n){return l.call(n,e)}),(function(e){return!!e}))[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+ht+"'")},querySelectorAll:function(e,n){if(n||"native"===ht){n=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(e));var r=this.__shady_getRootNode();return sa(n.filter((function(e){return e.__shady_getRootNode()==r})))}if("selectorEngine"===ht)return sa(sc(this,e));if(void 0===ht)return sa(pc(this,(function(n){return l.call(n,e)})));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+ht+"'")}}),_t=r.L&&!r.s?xa({},ut):ut;xa(ut,ct);var ft=B({after:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];if(null!==(r=this.__shady_parentNode)){var i=this.__shady_nextSibling;r.__shady_insertBefore(C.apply(null,q(n)),i)}},before:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];null!==(r=this.__shady_parentNode)&&r.__shady_insertBefore(C.apply(null,q(n)),this)},remove:function(){var e=this.__shady_parentNode;null!==e&&e.__shady_removeChild(this)},replaceWith:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];if(null!==(r=this.__shady_parentNode)){var i=this.__shady_nextSibling;r.__shady_removeChild(this),r.__shady_insertBefore(C.apply(null,q(n)),i)}}}),pt=window.document;function xc(e,n){if("slot"===n)ja(e=e.__shady_parentNode)&&I(v(e).root);else if("slot"===e.localName&&"name"===n&&(n=H(e))){if(n.g){yc(n);var r=e.oa,i=zc(e);if(i!==r){var o=(r=n.h[r]).indexOf(e);0<=o&&r.splice(o,1),(r=n.h[i]||(n.h[i]=[])).push(e),1<r.length&&(n.h[i]=Ac(r))}}I(n)}}var vt=B({get previousElementSibling(){var e=v(this);if(e&&void 0!==e.previousSibling){for(e=this.__shady_previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_previousSibling;return e}return this.__shady_native_previousElementSibling},get nextElementSibling(){var e=v(this);if(e&&void 0!==e.nextSibling){for(e=this.__shady_nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.__shady_nextSibling;return e}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},set slot(e){this.__shady_setAttribute("slot",e)},get className(){return this.getAttribute("class")||""},set className(e){this.__shady_setAttribute("class",e)},setAttribute:function(e,n){this.ownerDocument!==pt?this.__shady_native_setAttribute(e,n):Tb(this,e,n)||(this.__shady_native_setAttribute(e,n),xc(this,e))},removeAttribute:function(e){this.ownerDocument!==pt?this.__shady_native_removeAttribute(e):Tb(this,e,"")?""===this.getAttribute(e)&&this.__shady_native_removeAttribute(e):(this.__shady_native_removeAttribute(e),xc(this,e))},toggleAttribute:function(e,n){return this.ownerDocument!==pt?this.__shady_native_toggleAttribute(e,n):Tb(this,e,"")?""!==this.getAttribute(e)||n?void 0:this.__shady_native_toggleAttribute(e,n):(n=this.__shady_native_toggleAttribute(e,n),xc(this,e),n)}});r.L||ze.forEach((function(e){vt[e]=Nb(e)}));var yt=B({attachShadow:function(e){if(!this)throw Error("Must provide a host.");if(!e)throw Error("Not enough arguments.");if(e.shadyUpgradeFragment&&!r.la){var n=e.shadyUpgradeFragment;if(n.__proto__=ShadowRoot.prototype,Cc(n,this,e),Dc(n,n),e=n.__noInsertionPoint?null:n.querySelectorAll("slot"),n.__noInsertionPoint=void 0,e&&e.length){var i=n;fc(i),i.i.push.apply(i.i,q(e)),I(n)}n.host.__shady_native_appendChild(n)}else n=new Ec(jt,this,e);return this.__CE_shadowRoot=n},get shadowRoot(){var e=v(this);return e&&e.Ba||null}});xa(vt,yt);var mt=document.implementation.createHTMLDocument("inert"),gt=B({get innerHTML(){return x(this)?Ra("template"===this.localName?this.content:this,ua):this.__shady_native_innerHTML},set innerHTML(e){if("template"===this.localName)this.__shady_native_innerHTML=e;else{bc(this);var n=this.localName||"div";for(n=this.namespaceURI&&this.namespaceURI!==mt.namespaceURI?mt.createElementNS(this.namespaceURI,n):mt.createElement(n),r.j?n.__shady_native_innerHTML=e:n.innerHTML=e;e=n.__shady_firstChild;)this.__shady_insertBefore(e)}}}),bt=B({blur:function(){var e=v(this);(e=(e=e&&e.root)&&e.activeElement)?e.__shady_blur():this.__shady_native_blur()}});r.L||Ze.forEach((function(e){bt[e]=Nb(e)}));var Nt=B({assignedNodes:function(e){if("slot"===this.localName){var n=this.__shady_getRootNode();return n&&y(n)&&kc(n),(n=v(this))&&(e&&e.flatten?n.H:n.assignedNodes)||[]}},addEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)Db.call(this,e,n,r);else{"object"!=typeof r&&(r={capture:!!r});var i=this.__shady_parentNode;if(!i)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.F=this,i.__shady_addEventListener(e,n,r)}},removeEventListener:function(e,n,r){if("slot"!==this.localName||"slotchange"===e)Eb.call(this,e,n,r);else{"object"!=typeof r&&(r={capture:!!r});var i=this.__shady_parentNode;if(!i)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");r.F=this,i.__shady_removeEventListener(e,n,r)}}}),Et=B({getElementById:function(e){return""===e?null:pc(this,(function(n){return n.id==e}),(function(e){return!!e}))[0]||null}});function Mc(e,n){for(var r;n&&!e.has(r=n.__shady_getRootNode());)n=r.host;return n}var St="__shady_native_"+ia(),Ct=B({get activeElement(){var e=r.j?document.__shady_native_activeElement:document.activeElement;if(!e||!e.nodeType)return null;var n=!!y(this);if(!(this===document||n&&this.host!==e&&this.host.__shady_native_contains(e)))return null;for(n=H(e);n&&n!==this;)n=H(e=n.host);return this===document?n?null:e:n===this?e:null},elementsFromPoint:function(e,n){if(e=document[St](e,n),this===document&&r.useNativeDocumentEFP)return e;e=[].slice.call(e),n=function Nc(e){var n=new Set;for(n.add(e);y(e)&&e.host;)e=e.host.__shady_getRootNode(),n.add(e);return n}(this);for(var i=new Set,o=0;o<e.length;o++)i.add(Mc(n,e[o]));var s=[];return i.forEach((function(e){return s.push(e)})),s},elementFromPoint:function(e,n){return this===document&&r.useNativeDocumentEFP?this.__shady_native_elementFromPoint(e,n):this.__shady_elementsFromPoint(e,n)[0]||null}}),wt=window.document,Tt=B({importNode:function(e,n){if(e.ownerDocument!==wt||"template"===e.localName)return this.__shady_native_importNode(e,n);var r=this.__shady_native_importNode(e,!1);if(n)for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling)n=this.__shady_importNode(e,!0),r.__shady_appendChild(n);return r}}),Ot=B({dispatchEvent:Bb,addEventListener:Db.bind(window),removeEventListener:Eb.bind(window)}),xt={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(xt.parentElement=st.parentElement),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(xt.contains=st.contains),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(xt.children=ut.children),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(xt.innerHTML=gt.innerHTML),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(xt.className=vt.className);var Dt={EventTarget:[et],Node:[st,window.EventTarget?null:et],Text:[at],Comment:[at],CDATASection:[at],ProcessingInstruction:[at],Element:[vt,ut,ft,at,!r.j||"innerHTML"in Element.prototype?gt:null,window.HTMLSlotElement?null:Nt],HTMLElement:[bt,xt],HTMLSlotElement:[Nt],DocumentFragment:[_t,Et],Document:[Tt,_t,Et,Ct],Window:[Ot],CharacterData:[ft],XMLHttpRequest:[window.EventTarget?null:et]},At=r.j?null:["innerHTML","textContent"];function O(e,n,r,i){n.forEach((function(n){return e&&n&&A(e,n,r,i)}))}function Uc(e){var n,r=e?null:At;for(n in Dt)O(window[n]&&window[n].prototype,Dt[n],e,r)}function Vc(e){return e.__shady_protoIsPatched=!0,O(e,Dt.EventTarget),O(e,Dt.Node),O(e,Dt.Element),O(e,Dt.HTMLElement),O(e,Dt.HTMLSlotElement),e}["Text","Comment","CDATASection","ProcessingInstruction"].forEach((function(e){var n=window[e],r=Object.create(n.prototype);r.__shady_protoIsPatched=!0,O(r,Dt.EventTarget),O(r,Dt.Node),Dt[e]&&O(r,Dt[e]),n.prototype.__shady_patchedProto=r}));var Mt=r.ba,Pt=r.j;function Yc(e,n){if(Mt&&!e.__shady_protoIsPatched&&!y(e)){var r=Object.getPrototypeOf(e),i=r.hasOwnProperty("__shady_patchedProto")&&r.__shady_patchedProto;i||(Vc(i=Object.create(r)),r.__shady_patchedProto=i),Object.setPrototypeOf(e,i)}Pt||(1===n?$(e):2===n&&ne(e))}function Zc(e,n,r,i){Yc(e,1),i=i||null;var o=t(e),s=i?t(i):null;o.previousSibling=i?s.previousSibling:n.__shady_lastChild,(s=v(o.previousSibling))&&(s.nextSibling=e),(s=v(o.nextSibling=i))&&(s.previousSibling=e),o.parentNode=n,i?i===r.firstChild&&(r.firstChild=e):(r.lastChild=e,r.firstChild||(r.firstChild=e)),r.childNodes=null}function Dc(e,n){var r=t(e);if(n||void 0===r.firstChild){r.childNodes=null;var i=r.firstChild=e.__shady_native_firstChild;for(r.lastChild=e.__shady_native_lastChild,Yc(e,2),r=i,i=void 0;r;r=r.__shady_native_nextSibling){var o=t(r);o.parentNode=n||e,o.nextSibling=r.__shady_native_nextSibling,o.previousSibling=i||null,i=r,Yc(r,1)}}}var Lt=B({addEventListener:function(e,n,r){"object"!=typeof r&&(r={capture:!!r}),r.F=r.F||this,this.host.__shady_addEventListener(e,n,r)},removeEventListener:function(e,n,r){"object"!=typeof r&&(r={capture:!!r}),r.F=r.F||this,this.host.__shady_removeEventListener(e,n,r)}});function ad(e,n){A(e,Lt,n),A(e,Ct,n),A(e,gt,n),A(e,ut,n),r.s&&!n?(A(e,st,n),A(e,Et,n)):r.j||(A(e,K),A(e,V),A(e,z))}var Rt,jt={},It=r.deferConnectionCallbacks&&"loading"===document.readyState;function cd(e){var n=[];do{n.unshift(e)}while(e=e.__shady_parentNode);return n}function Ec(e,n,r){if(e!==jt)throw new TypeError("Illegal constructor");this.g=null,Cc(this,n,r)}function Cc(e,n,i){if(e.host=n,e.mode=i&&i.mode,Dc(e.host),(n=t(e.host)).root=e,n.Ba="closed"!==e.mode?e:null,(n=t(e)).firstChild=n.lastChild=n.parentNode=n.nextSibling=n.previousSibling=null,r.preferPerformance)for(;n=e.host.__shady_native_firstChild;)e.host.__shady_native_removeChild(n);else I(e)}function I(e){e.G||(e.G=!0,Da((function(){return kc(e)})))}function kc(e){var n;if(n=e.G){for(var r;e;)e.G&&(r=e),y(e=(n=e).host.__shady_getRootNode())&&(n=v(n.host))&&0<n.O||(e=void 0);n=r}(r=n)&&r._renderSelf()}function dd(e,n,r){var i=t(n),o=i.X;i.X=null,r||(r=(e=e.h[n.__shady_slot||"__catchall"])&&e[0]),r?(t(r).assignedNodes.push(n),i.assignedSlot=r):i.assignedSlot=void 0,o!==i.assignedSlot&&i.assignedSlot&&(t(i.assignedSlot).Y=!0)}function ed(e,n,r){for(var i=0,o=void 0;i<r.length&&(o=r[i]);i++)if("slot"==o.localName){var s=v(o).assignedNodes;s&&s.length&&ed(e,n,s)}else n.push(r[i])}function fd(e,n){n.__shady_native_dispatchEvent(new Event("slotchange")),(n=v(n)).assignedSlot&&fd(e,n.assignedSlot)}function fc(e){e.i=e.i||[],e.g=e.g||[],e.h=e.h||{}}function yc(e){if(e.i&&e.i.length){for(var n,r=e.i,i=0;i<r.length;i++){var o=r[i];Dc(o);var s=o.__shady_parentNode;Dc(s),(s=v(s)).O=(s.O||0)+1,s=zc(o),e.h[s]?((n=n||{})[s]=!0,e.h[s].push(o)):e.h[s]=[o],e.g.push(o)}if(n)for(var d in n)e.h[d]=Ac(e.h[d]);e.i=[]}}function zc(e){var n=e.name||e.getAttribute("name")||"__catchall";return e.oa=n}function Ac(e){return e.sort((function(e,n){e=cd(e);for(var r=cd(n),i=0;i<e.length;i++){n=e[i];var o=r[i];if(n!==o)return(e=ua(n.__shady_parentNode)).indexOf(n)-e.indexOf(o)}}))}function ka(e){return yc(e),!(!e.g||!e.g.length)}if(Ec.prototype._renderSelf=function(){var e=It;if(It=!0,this.G=!1,this.g){yc(this);for(var n,i=0;i<this.g.length;i++){var o=v(n=this.g[i]),s=o.assignedNodes;if(o.assignedNodes=[],o.H=[],o.ea=s)for(o=0;o<s.length;o++){var d=v(s[o]);d.X=d.assignedSlot,d.assignedSlot===n&&(d.assignedSlot=null)}}for(i=this.host.__shady_firstChild;i;i=i.__shady_nextSibling)dd(this,i);for(i=0;i<this.g.length;i++){if(!(s=v(n=this.g[i])).assignedNodes.length)for(o=n.__shady_firstChild;o;o=o.__shady_nextSibling)dd(this,o,n);if((o=(o=v(n.__shady_parentNode))&&o.root)&&(ka(o)||o.G)&&o._renderSelf(),ed(this,s.H,s.assignedNodes),o=s.ea){for(d=0;d<o.length;d++)v(o[d]).X=null;s.ea=null,o.length>s.assignedNodes.length&&(s.Y=!0)}s.Y&&(s.Y=!1,fd(this,n))}for(n=this.g,i=[],s=0;s<n.length;s++)(d=v(o=n[s].__shady_parentNode))&&d.root||!(0>i.indexOf(o))||i.push(o);for(n=0;n<i.length;n++){for(s=(d=i[n])===this?this.host:d,o=[],d=d.__shady_firstChild;d;d=d.__shady_nextSibling)if("slot"==d.localName)for(var l=v(d).H,u=0;u<l.length;u++)o.push(l[u]);else o.push(d);d=ta(s),l=Pb(o,o.length,d,d.length);for(var h=u=0,_=void 0;u<l.length&&(_=l[u]);u++){for(var f=0,m=void 0;f<_.M.length&&(m=_.M[f]);f++)m.__shady_native_parentNode===s&&s.__shady_native_removeChild(m),d.splice(_.index+h,1);h-=_.P}for(h=0,_=void 0;h<l.length&&(_=l[h]);h++)for(u=d[_.index],f=_.index;f<_.index+_.P;f++)m=o[f],s.__shady_native_insertBefore(m,u),d.splice(f,0,m)}}if(!r.preferPerformance&&!this.da)for(i=this.host.__shady_firstChild;i;i=i.__shady_nextSibling)n=v(i),i.__shady_native_parentNode!==this.host||"slot"!==i.localName&&n.assignedSlot||this.host.__shady_native_removeChild(i);this.da=!0,It=e,Rt&&Rt()},function(e){e.__proto__=DocumentFragment.prototype,ad(e,"__shady_"),ad(e),Object.defineProperties(e,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach((function(n){Object.defineProperty(e,n,{value:void 0,configurable:!0})})),["ownerDocument","baseURI","isConnected"].forEach((function(n){Object.defineProperty(e,n,{get:function(){return this.host[n]},configurable:!0})}))}(Ec.prototype),window.customElements&&window.customElements.define&&r.Z&&!r.preferPerformance){var Bt=new Map;Rt=function(){var e=[];Bt.forEach((function(n,r){e.push([r,n])})),Bt.clear();for(var n=0;n<e.length;n++){var r=e[n][0];e[n][1]?r.__shadydom_connectedCallback():r.__shadydom_disconnectedCallback()}},It&&document.addEventListener("readystatechange",(function(){It=!1,Rt()}),{once:!0});var kt=window.customElements.define,jd=function(e,n){var r=n.prototype.connectedCallback,i=n.prototype.disconnectedCallback;kt.call(window.customElements,e,function(e,n,r){var i=0,o="__isConnected"+i++;return(n||r)&&(e.prototype.connectedCallback=e.prototype.__shadydom_connectedCallback=function(){It?Bt.set(this,!0):this[o]||(this[o]=!0,n&&n.call(this))},e.prototype.disconnectedCallback=e.prototype.__shadydom_disconnectedCallback=function(){It?this.isConnected||Bt.set(this,!1):this[o]&&(this[o]=!1,r&&r.call(this))}),e}(n,r,i)),n.prototype.connectedCallback=r,n.prototype.disconnectedCallback=i};window.customElements.define=jd,Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:jd,configurable:!0})}function H(e){if(y(e=e.__shady_getRootNode()))return e}function Q(e){this.node=e}function kd(e){Object.defineProperty(Q.prototype,e,{get:function(){return this.node["__shady_"+e]},set:function(n){this.node["__shady_"+e]=n},configurable:!0})}(e=Q.prototype).addEventListener=function(e,n,r){return this.node.__shady_addEventListener(e,n,r)},e.removeEventListener=function(e,n,r){return this.node.__shady_removeEventListener(e,n,r)},e.appendChild=function(e){return this.node.__shady_appendChild(e)},e.insertBefore=function(e,n){return this.node.__shady_insertBefore(e,n)},e.removeChild=function(e){return this.node.__shady_removeChild(e)},e.replaceChild=function(e,n){return this.node.__shady_replaceChild(e,n)},e.cloneNode=function(e){return this.node.__shady_cloneNode(e)},e.getRootNode=function(e){return this.node.__shady_getRootNode(e)},e.contains=function(e){return this.node.__shady_contains(e)},e.dispatchEvent=function(e){return this.node.__shady_dispatchEvent(e)},e.setAttribute=function(e,n){this.node.__shady_setAttribute(e,n)},e.getAttribute=function(e){return this.node.__shady_native_getAttribute(e)},e.removeAttribute=function(e){this.node.__shady_removeAttribute(e)},e.toggleAttribute=function(e,n){return this.node.__shady_toggleAttribute(e,n)},e.attachShadow=function(e){return this.node.__shady_attachShadow(e)},e.focus=function(){this.node.__shady_native_focus()},e.blur=function(){this.node.__shady_blur()},e.importNode=function(e,n){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(e,n)},e.getElementById=function(e){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(e)},e.elementsFromPoint=function(e,n){return this.node.__shady_elementsFromPoint(e,n)},e.elementFromPoint=function(e,n){return this.node.__shady_elementFromPoint(e,n)},e.querySelector=function(e){return this.node.__shady_querySelector(e)},e.querySelectorAll=function(e,n){return this.node.__shady_querySelectorAll(e,n)},e.assignedNodes=function(e){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(e)},e.append=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];return this.node.__shady_append.apply(this.node,q(n))},e.prepend=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];return this.node.__shady_prepend.apply(this.node,q(n))},e.after=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];return this.node.__shady_after.apply(this.node,q(n))},e.before=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];return this.node.__shady_before.apply(this.node,q(n))},e.remove=function(){return this.node.__shady_remove()},e.replaceWith=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];return this.node.__shady_replaceWith.apply(this.node,q(n))},n.Object.defineProperties(Q.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(y(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(y(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(e){this.node.__shady_innerHTML=e}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(e){this.node.__shady_textContent=e}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(e){this.node.__shady_slot=e}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(e){this.node.__shady_className=e}}}),ze.forEach((function(e){return kd(e)})),Ze.forEach((function(e){return kd(e)}));var Ht=new WeakMap;function md(e){if(y(e)||e instanceof Q)return e;var n=Ht.get(e);return n||(n=new Q(e),Ht.set(e,n)),n}if(r.Z){var Ft=r.j?function(e){return e}:function(e){return ne(e),$(e),e},Ut={inUse:r.Z,patch:Ft,isShadyRoot:y,enqueue:Da,flush:Ea,flushInitial:function(e){!e.da&&e.G&&kc(e)},settings:r,filterMutations:function Ja(e,n){var r=n.getRootNode();return e.map((function(e){var n=r===e.target.getRootNode();if(n&&e.addedNodes){if((n=[].slice.call(e.addedNodes).filter((function(e){return r===e.getRootNode()}))).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:n,configurable:!0}),e}else if(n)return e})).filter((function(e){return e}))},observeChildren:function Ha(e,n){var r=t(e);r.K||(r.K=new Fa),r.K.R.add(n);var i=r.K;return{pa:n,ra:i,qa:e,takeRecords:function(){return i.takeRecords()}}},unobserveChildren:function Ia(e){var n=e&&e.ra;n&&(n.R.delete(e.pa),n.R.size||(t(e.qa).K=null))},deferConnectionCallbacks:r.deferConnectionCallbacks,preferPerformance:r.preferPerformance,handlesDynamicScoping:!0,wrap:r.s?md:Ft,wrapIfNeeded:!0===r.s?md:function(e){return e},Wrapper:Q,composedPath:function qb(e){return e.__composedPath||(e.__composedPath=pb(e.target,!0)),e.__composedPath},noPatch:r.s,patchOnDemand:r.ba,nativeMethods:M,nativeTree:P,patchElementProto:Vc,querySelectorImplementation:r.querySelectorImplementation};window.ShadyDOM=Ut,function ab(){var e=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(D(window.EventTarget.prototype,e),void 0===window.__shady_native_addEventListener&&D(Window.prototype,e)):(D(Node.prototype,e),D(Window.prototype,e),D(XMLHttpRequest.prototype,e)),T?D(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Wa(Node.prototype,{parentNode:{get:function(){return L.currentNode=this,L.parentNode()}},firstChild:{get:function(){return L.currentNode=this,L.firstChild()}},lastChild:{get:function(){return L.currentNode=this,L.lastChild()}},previousSibling:{get:function(){return L.currentNode=this,L.previousSibling()}},nextSibling:{get:function(){return L.currentNode=this,L.nextSibling()}},childNodes:{get:function(){var e=[];L.currentNode=this;for(var n=L.firstChild();n;)e.push(n),n=L.nextSibling();return e}},parentElement:{get:function(){return R.currentNode=this,R.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var e,n=document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),r="";e=n.nextNode();)r+=e.nodeValue;return r;default:return this.nodeValue}},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Ya(this),(0<e.length||this.