`}renderMenuItems(){return n.dy``}renderElevation(){return n.dy``}getSurfaceClasses(){return{open:this.open,fixed:"fixed"===this.positioning,"has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&(0,p.kE)(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const o=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const i=this.openCloseAnimationSignal.start(),a=e.offsetHeight,n="UP"===o,r=this.items,s=250/r.length,l=e.animate([{height:"0px"},{height:`${a}px`}],{duration:500,easing:d.Xt.EMPHASIZED}),c=t.animate([{transform:n?`translateY(-${a}px)`:""},{transform:""}],{duration:500,easing:d.Xt.EMPHASIZED}),p=e.animate([{opacity:0},{opacity:1}],50),h=[];for(let e=0;e{t.classList.toggle("md-menu-hidden",!1)})),h.push([t,o])}let u=e=>{};const m=new Promise((e=>{u=e}));return i.addEventListener("abort",(()=>{l.cancel(),c.cancel(),p.cancel(),h.forEach((([e,t])=>{e.classList.toggle("md-menu-hidden",!1),t.cancel()})),u(!0)})),l.addEventListener("finish",(()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),u(!1)})),await m}animateClose(){let e;const t=new Promise((t=>{e=t})),o=this.surfaceEl,i=this.slotEl;if(!o||!i)return e(!1),t;const a="UP"===this.openDirection;this.dispatchEvent(new Event("closing")),o.classList.toggle("animating",!0);const n=this.openCloseAnimationSignal.start(),r=o.offsetHeight,s=this.items,l=150,c=50/s.length,p=o.animate([{height:`${r}px`},{height:.35*r+"px"}],{duration:l,easing:d.Xt.EMPHASIZED_ACCELERATE}),h=i.animate([{transform:""},{transform:a?`translateY(-${.65*r}px)`:""}],{duration:l,easing:d.Xt.EMPHASIZED_ACCELERATE}),u=o.animate([{opacity:1},{opacity:0}],{duration:50,delay:100}),m=[];for(let e=0;e{t.classList.toggle("md-menu-hidden",!0)})),m.push([t,o])}return n.addEventListener("abort",(()=>{p.cancel(),h.cancel(),u.cancel(),m.forEach((([e,t])=>{t.cancel(),e.classList.toggle("md-menu-hidden",!1)})),e(!1)})),p.addEventListener("finish",(()=>{o.classList.toggle("animating",!1),m.forEach((([e])=>{e.classList.toggle("md-menu-hidden",!1)})),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)})),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1;this.slotItems.forEach((e=>{e.close?.()}))}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}(0,i.gn)([(0,a.IO)(".menu")],w.prototype,"surfaceEl",void 0),(0,i.gn)([(0,a.IO)("slot")],w.prototype,"slotEl",void 0),(0,i.gn)([(0,a.Cb)()],w.prototype,"anchor",void 0),(0,i.gn)([(0,a.Cb)()],w.prototype,"positioning",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean})],w.prototype,"quick",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,attribute:"has-overflow"})],w.prototype,"hasOverflow",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,reflect:!0})],w.prototype,"open",void 0),(0,i.gn)([(0,a.Cb)({type:Number,attribute:"x-offset"})],w.prototype,"xOffset",void 0),(0,i.gn)([(0,a.Cb)({type:Number,attribute:"y-offset"})],w.prototype,"yOffset",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,attribute:"no-horizontal-flip"})],w.prototype,"noHorizontalFlip",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,attribute:"no-vertical-flip"})],w.prototype,"noVerticalFlip",void 0),(0,i.gn)([(0,a.Cb)({type:Number,attribute:"typeahead-delay"})],w.prototype,"typeaheadDelay",void 0),(0,i.gn)([(0,a.Cb)({attribute:"anchor-corner"})],w.prototype,"anchorCorner",void 0),(0,i.gn)([(0,a.Cb)({attribute:"menu-corner"})],w.prototype,"menuCorner",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,attribute:"stay-open-on-outside-click"})],w.prototype,"stayOpenOnOutsideClick",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,attribute:"stay-open-on-focusout"})],w.prototype,"stayOpenOnFocusout",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,attribute:"skip-restore-focus"})],w.prototype,"skipRestoreFocus",void 0),(0,i.gn)([(0,a.Cb)({attribute:"default-focus"})],w.prototype,"defaultFocus",void 0),(0,i.gn)([(0,a.Cb)({type:Boolean,attribute:"no-navigation-wrap"})],w.prototype,"noNavigationWrap",void 0),(0,i.gn)([(0,a.NH)({flatten:!0})],w.prototype,"slotItems",void 0),(0,i.gn)([(0,a.SB)()],w.prototype,"typeaheadActive",void 0);const E=n.iv`:host{--md-elevation-level:var(--md-menu-container-elevation, 2);--md-elevation-shadow-color:var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape,var(--md-sys-shape-corner-extra-small,4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:0;box-sizing:border-box;background-color:var(--md-menu-container-color,var(--md-sys-color-surface-container,#f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:8px}.has-overflow:not([popover]) .items{overflow:visible}.animating .items,.has-overflow.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors:active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}}`;let _=class extends w{};_.styles=[E],_=(0,i.gn)([(0,a.Mo)("md-menu")],_)},23111:function(e,t,o){o.d(t,{M:()=>b});var i=o("9065"),a=o("50778"),n=o("57243"),r=o("35359"),s=o("19799"),d=o("43921");var l,c;(c=l||(l={}))[c.INACTIVE=0]="INACTIVE",c[c.TOUCH_DELAY=1]="TOUCH_DELAY",c[c.HOLDING=2]="HOLDING",c[c.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK";const p=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],h=n.sk?null:window.matchMedia("(forced-colors: active)");class u extends n.oi{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=l.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new s.J(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return n.dy``}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==l.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state!==l.HOLDING)return this.state===l.TOUCH_DELAY?(this.state=l.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=l.WAITING_FOR_CLICK}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e))return this.state=l.WAITING_FOR_CLICK,void this.startPressAnimation(e);this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=l.TOUCH_DELAY,await new Promise((e=>{setTimeout(e,150)})),this.state===l.TOUCH_DELAY&&(this.state=l.HOLDING,this.startPressAnimation(e)))}}handleClick(){this.disabled||(this.state!==l.WAITING_FOR_CLICK?this.state===l.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:t}=this.getBoundingClientRect(),o=Math.max(e,t),i=Math.max(.35*o,75),a=Math.floor(.2*o),n=Math.sqrt(t**2+e**2)+10;this.initialSize=a,this.rippleScale=""+(n+i)/a,this.rippleSize=`${a}px`}getNormalizedPointerEventCoords(e){const{scrollX:t,scrollY:o}=window,{left:i,top:a}=this.getBoundingClientRect(),n=t+i,r=o+a,{pageX:s,pageY:d}=e;return{x:s-n,y:d-r}}getTranslationCoordinates(e){const{height:t,width:o}=this.getBoundingClientRect(),i={x:(o-this.initialSize)/2,y:(t-this.initialSize)/2};let a;return a=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:o/2,y:t/2},a={x:a.x-this.initialSize/2,y:a.y-this.initialSize/2},{startPoint:a,endPoint:i}}startPressAnimation(e){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:t,endPoint:o}=this.getTranslationCoordinates(e),i=`${t.x}px, ${t.y}px`,a=`${o.x}px, ${o.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${i}) scale(1)`,`translate(${a}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:d.Xt.STANDARD,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=l.INACTIVE;const e=this.growAnimation;let t=1/0;"number"==typeof e?.currentTime?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to("ms").value),t>=225?this.pressed=!1:(await new Promise((e=>{setTimeout(e,225-t)})),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if("pointerenter"===e.type||"pointerleave"===e.type)return!this.isTouch(e);const t=1===e.buttons;return this.isTouch(e)||t}inBounds({x:e,y:t}){const{top:o,left:i,bottom:a,right:n}=this.getBoundingClientRect();return e>=i&&e<=n&&t>=o&&t<=a}isTouch({pointerType:e}){return"touch"===e}async handleEvent(e){if(!h?.matches)switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e)}}onControlChange(e,t){if(!n.sk)for(const o of p)e?.removeEventListener(o,this),t?.addEventListener(o,this)}}(0,i.gn)([(0,a.Cb)({type:Boolean,reflect:!0})],u.prototype,"disabled",void 0),(0,i.gn)([(0,a.SB)()],u.prototype,"hovered",void 0),(0,i.gn)([(0,a.SB)()],u.prototype,"pressed",void 0),(0,i.gn)([(0,a.IO)(".surface")],u.prototype,"mdRoot",void 0);const m=n.iv`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors:active){:host{display:none}}.surface,:host{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:transparent}.surface::after,.surface::before{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color,var(--md-sys-color-on-surface,#1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side,var(--md-ripple-pressed-color,var(--md-sys-color-on-surface,#1d1b20)) max(100% - 70px,65%),transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color,var(--md-sys-color-on-surface,#1d1b20));opacity:var(--md-ripple-hover-opacity, .08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, .12);transition-duration:105ms}`;let b=class extends u{};b.styles=[m],b=(0,i.gn)([(0,a.Mo)("md-ripple")],b)},75351:function(e,t,o){o.d(t,{Ud:function(){return h}});o(39527),o(13334),o(34595);const i=Symbol("Comlink.proxy"),a=Symbol("Comlink.endpoint"),n=Symbol("Comlink.releaseProxy"),r=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),d=e=>"object"==typeof e&&null!==e||"function"==typeof e,l=new Map([["proxy",{canHandle:e=>d(e)&&e[i],serialize(e){const{port1:t,port2:o}=new MessageChannel;return c(e,t),[o,[o]]},deserialize:e=>(e.start(),h(e))}],["throw",{canHandle:e=>d(e)&&s in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function c(e,t=globalThis,o=["*"]){t.addEventListener("message",(function a(n){if(!n||!n.data)return;if(!function(e,t){for(const o of e){if(t===o||"*"===o)return!0;if(o instanceof RegExp&&o.test(t))return!0}return!1}(o,n.origin))return void console.warn(`Invalid origin '${n.origin}' for comlink proxy`);const{id:d,type:l,path:h}=Object.assign({path:[]},n.data),u=(n.data.argumentList||[]).map(w);let m;try{const t=h.slice(0,-1).reduce(((e,t)=>e[t]),e),o=h.reduce(((e,t)=>e[t]),e);switch(l){case"GET":m=o;break;case"SET":t[h.slice(-1)[0]]=w(n.data.value),m=!0;break;case"APPLY":m=o.apply(t,u);break;case"CONSTRUCT":m=function(e){return Object.assign(e,{[i]:!0})}(new o(...u));break;case"ENDPOINT":{const{port1:t,port2:o}=new MessageChannel;c(e,o),m=function(e,t){return x.set(e,t),e}(t,[t])}break;case"RELEASE":m=void 0;break;default:return}}catch(e){m={value:e,[s]:0}}Promise.resolve(m).catch((e=>({value:e,[s]:0}))).then((o=>{const[i,n]=y(o);t.postMessage(Object.assign(Object.assign({},i),{id:d}),n),"RELEASE"===l&&(t.removeEventListener("message",a),p(t),r in e&&"function"==typeof e[r]&&e[r]())})).catch((e=>{const[o,i]=y({value:new TypeError("Unserializable return value"),[s]:0});t.postMessage(Object.assign(Object.assign({},o),{id:d}),i)}))})),t.start&&t.start()}function p(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function h(e,t){const o=new Map;return e.addEventListener("message",(function(e){const{data:t}=e;if(!t||!t.id)return;const i=o.get(t.id);if(i)try{i(t)}finally{o.delete(t.id)}})),g(e,o,[],t)}function u(e){if(e)throw new Error("Proxy has been released and is not useable")}function m(e){return E(e,new Map,{type:"RELEASE"}).then((()=>{p(e)}))}const b=new WeakMap,f="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(b.get(e)||0)-1;b.set(e,t),0===t&&m(e)}));function g(e,t,o=[],i=function(){}){let r=!1;const s=new Proxy(i,{get(i,a){if(u(r),a===n)return()=>{!function(e){f&&f.unregister(e)}(s),m(e),t.clear(),r=!0};if("then"===a){if(0===o.length)return{then:()=>s};const i=E(e,t,{type:"GET",path:o.map((e=>e.toString()))}).then(w);return i.then.bind(i)}return g(e,t,[...o,a])},set(i,a,n){u(r);const[s,d]=y(n);return E(e,t,{type:"SET",path:[...o,a].map((e=>e.toString())),value:s},d).then(w)},apply(i,n,s){u(r);const d=o[o.length-1];if(d===a)return E(e,t,{type:"ENDPOINT"}).then(w);if("bind"===d)return g(e,t,o.slice(0,-1));const[l,c]=v(s);return E(e,t,{type:"APPLY",path:o.map((e=>e.toString())),argumentList:l},c).then(w)},construct(i,a){u(r);const[n,s]=v(a);return E(e,t,{type:"CONSTRUCT",path:o.map((e=>e.toString())),argumentList:n},s).then(w)}});return function(e,t){const o=(b.get(t)||0)+1;b.set(t,o),f&&f.register(e,t,e)}(s,e),s}function v(e){const t=e.map(y);return[t.map((e=>e[0])),(o=t.map((e=>e[1])),Array.prototype.concat.apply([],o))];var o}const x=new WeakMap;function y(e){for(const[t,o]of l)if(o.canHandle(e)){const[i,a]=o.serialize(e);return[{type:"HANDLER",name:t,value:i},a]}return[{type:"RAW",value:e},x.get(e)||[]]}function w(e){switch(e.type){case"HANDLER":return l.get(e.name).deserialize(e.value);case"RAW":return e.value}}function E(e,t,o,i){return new Promise((a=>{const n=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");t.set(n,a),e.start&&e.start(),e.postMessage(Object.assign({id:n},o),i)}))}},85601:function(e,t,o){o(92745),o(92519),o(42179),o(89256),o(24931),o(88463),o(57449),o(19814),o(39527),o(99790),o(41360),o(13334),o(21478);!function(e){const t=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,n=new WeakMap,r=new WeakMap,s=new WeakMap,d=new WeakMap,l=new WeakMap,c=new WeakMap,p=new WeakMap,h=new WeakMap,u=new WeakMap,m=new WeakMap,b=new WeakMap,f={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function g(e){const t=a.get(e),{form:o}=t;L(e,o,t),I(e,t.labels)}const v=(e,t=!1)=>{const o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>a.has(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let i=o.nextNode();const n=!t||e.disabled;for(;i;)i.formDisabledCallback&&n&&C(i,e.disabled),i=o.nextNode()},x={attributes:!0,attributeFilter:["disabled","name"]},y=N()?new MutationObserver((e=>{for(const t of e){const e=t.target;if("disabled"===t.attributeName&&(e.constructor.formAssociated?C(e,e.hasAttribute("disabled")):"fieldset"===e.localName&&v(e)),"name"===t.attributeName&&e.constructor.formAssociated){const t=a.get(e),o=l.get(e);t.setFormValue(o)}}})):{};function w(e){e.forEach((e=>{const{addedNodes:t,removedNodes:o}=e,n=Array.from(t),r=Array.from(o);n.forEach((e=>{var t;if(a.has(e)&&e.constructor.formAssociated&&g(e),c.has(e)){const t=c.get(e);Object.keys(f).filter((e=>null!==t[e])).forEach((o=>{e.setAttribute(f[o],t[o])})),c.delete(e)}if(b.has(e)){const t=b.get(e);e.setAttribute("internals-valid",t.validity.valid.toString()),e.setAttribute("internals-invalid",(!t.validity.valid).toString()),e.setAttribute("aria-invalid",(!t.validity.valid).toString()),b.delete(e)}if("form"===e.localName){const t=d.get(e),o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>!a.has(e)||!e.constructor.formAssociated||t&&t.has(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});let i=o.nextNode();for(;i;)g(i),i=o.nextNode()}"fieldset"===e.localName&&(null===(t=y.observe)||void 0===t||t.call(y,e,x),v(e,!0))})),r.forEach((e=>{const t=a.get(e);if(t&&i.get(t)&&R(t),s.has(e)){s.get(e).disconnect()}}))}))}function E(e){e.forEach((e=>{const{removedNodes:t}=e;t.forEach((t=>{const o=u.get(e.target);a.has(t)&&$(t),o.disconnect()}))}))}!N()||new MutationObserver(w);const _={childList:!0,subtree:!0},C=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},R=e=>{i.get(e).forEach((e=>{e.remove()})),i.set(e,[])},A=(e,t)=>{const o=document.createElement("input");return o.type="hidden",o.name=e.getAttribute("name"),e.after(o),i.get(t).push(o),o},I=(e,t)=>{if(t.length){Array.from(t).forEach((t=>t.addEventListener("click",e.click.bind(e))));let o=t[0].id;t[0].id||(o=`${t[0].htmlFor}_Label`,t[0].id=o),e.setAttribute("aria-labelledby",o)}},k=e=>{const t=Array.from(e.elements).filter((e=>!e.tagName.includes("-")&&e.validity)).map((e=>e.validity.valid)),o=d.get(e)||[],i=[...t,...Array.from(o).filter((e=>e.isConnected)).map((e=>a.get(e).validity.valid))].includes(!1);e.toggleAttribute("internals-invalid",i),e.toggleAttribute("internals-valid",!i)},T=e=>{k(P(e.target))},S=e=>{k(P(e.target))},O=e=>{const t=d.get(e.target);t&&t.size&&t.forEach((e=>{e.constructor.formAssociated&&e.formResetCallback&&e.formResetCallback.apply(e)}))},L=(e,t,o)=>{if(t){const i=d.get(t);if(i)i.add(e);else{const o=new Set;o.add(e),d.set(t,o),(e=>{const t=["button[type=submit]","input[type=submit]","button:not([type])"].map((e=>`${e}:not([disabled])`)).map((t=>`${t}:not([form])${e.id?`,${t}[form='${e.id}']`:""}`)).join(",");e.addEventListener("click",(o=>{if(o.target.closest(t)){const t=d.get(e);if(e.noValidate)return;t.size&&Array.from(t).reverse().map((e=>a.get(e).reportValidity())).includes(!1)&&o.preventDefault()}}))})(t),t.addEventListener("reset",O),t.addEventListener("input",T),t.addEventListener("change",S)}r.set(t,{ref:e,internals:o}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout((()=>{e.formAssociatedCallback.apply(e,[t])}),0),k(t)}},P=e=>{let t=e.parentNode;return t&&"FORM"!==t.tagName&&(t=P(t)),t},z=(e,t,o=DOMException)=>{if(!e.constructor.formAssociated)throw new o(t)},M=(e,t,o)=>{const i=d.get(e);return i&&i.size&&i.forEach((e=>{a.get(e)[o]()||(t=!1)})),t},$=e=>{if(e.constructor.formAssociated){const t=a.get(e),{labels:o,form:i}=t;I(e,o),L(e,i,t)}};function N(){return"undefined"!=typeof MutationObserver}class D{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const F=e=>{let t=!0;for(let o in e)"valid"!==o&&!1!==e[o]&&(t=!1);return t},B=new WeakMap;function H(e,t){e.toggleAttribute(t,!0),e.part&&e.part.add(t)}class W extends Set{static get isPolyfilled(){return!0}constructor(e){if(super(),!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");B.set(this,e)}add(e){if(!/^--/.test(e)||"string"!=typeof e)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);const t=super.add(e),o=B.get(this),i=`state${e}`;return o.isConnected?H(o,i):setTimeout((()=>{H(o,i)})),t}clear(){for(let[e]of this.entries())this.delete(e);super.clear()}delete(e){const t=super.delete(e),o=B.get(this);return o.isConnected?(o.toggleAttribute(`state${e}`,!1),o.part&&o.part.remove(`state${e}`)):setTimeout((()=>{o.toggleAttribute(`state${e}`,!1),o.part&&o.part.remove(`state${e}`)})),t}}function V(e,t,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(e):i?i.value:t.get(e)}var U;class j{constructor(e){U.set(this,void 0),function(e,t,o,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?a.call(e,o):a?a.value=o:t.set(e,o)}(this,U,e,"f");for(let t=0;t{for(let o in f){t[o]=null;let i=null;const a=f[o];Object.defineProperty(t,o,{get:()=>i,set(o){i=o,e.isConnected?e.setAttribute(a,o):c.set(e,t)}})}})(e,this),((e,t)=>{var o;i.set(t,[]),null===(o=y.observe)||void 0===o||o.call(y,e,x)})(e,this),Object.seal(this),n instanceof DocumentFragment&&(e=>{var t,o;const i=new MutationObserver(E);(null===(t=null===window||void 0===window?void 0:window.ShadyDOM)||void 0===t?void 0:t.inUse)&&e.mode&&e.host&&(e=e.host),null===(o=i.observe)||void 0===o||o.call(i,e,{childList:!0}),u.set(e,i)})(n)}checkValidity(){const e=t.get(this);if(z(e,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const i=o.get(this);if(!i.valid){const t=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});e.dispatchEvent(t)}return i.valid}get form(){const e=t.get(this);let o;return z(e,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===e.constructor.formAssociated&&(o=P(e)),o}get labels(){const e=t.get(this);z(e,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const o=e.getAttribute("id"),i=e.getRootNode();return i&&o?i.querySelectorAll(`[for="${o}"]`):[]}reportValidity(){const e=t.get(this);if(z(e,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const o=this.checkValidity(),i=h.get(this);if(i&&!e.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!o&&i&&(e.focus(),i.focus()),o}setFormValue(e){const o=t.get(this);if(z(o,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),R(this),null==e||e instanceof FormData)null!=e&&e instanceof FormData&&Array.from(e).reverse().forEach((([e,t])=>{if("string"==typeof t){const i=A(o,this);i.name=e,i.value=t}}));else if(o.getAttribute("name")){A(o,this).value=e}l.set(o,e)}setValidity(e,i,a){const r=t.get(this);if(z(r,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!e)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");h.set(this,a);const s=o.get(this),d={};for(const t in e)d[t]=e[t];var l;0===Object.keys(d).length&&((l=s).badInput=!1,l.customError=!1,l.patternMismatch=!1,l.rangeOverflow=!1,l.rangeUnderflow=!1,l.stepMismatch=!1,l.tooLong=!1,l.tooShort=!1,l.typeMismatch=!1,l.valid=!0,l.valueMissing=!1);const c=Object.assign(Object.assign({},s),d);delete c.valid;const{valid:p}=((e,t,o)=>(e.valid=F(t),Object.keys(t).forEach((o=>e[o]=t[o])),o&&k(o),e))(s,c,this.form);if(!p&&!i)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");n.set(this,p?"":i),r.isConnected?(r.toggleAttribute("internals-invalid",!p),r.toggleAttribute("internals-valid",p),r.setAttribute("aria-invalid",`${!p}`)):b.set(r,this)}get shadowRoot(){const e=t.get(this),o=p.get(e);return o||null}get validationMessage(){const e=t.get(this);return z(e,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),n.get(this)}get validity(){const e=t.get(this);z(e,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element.");return o.get(this)}get willValidate(){const e=t.get(this);return z(e,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(e.disabled||e.hasAttribute("disabled")||e.hasAttribute("readonly"))}}let G=!1,q=!1;function Y(e){q||(q=!0,window.CustomStateSet=W,e&&(HTMLElement.prototype.attachInternals=function(...t){const o=e.call(this,t);return o.states=new W(this),o}))}function X(e=!0){if(!G){if(G=!0,"undefined"!=typeof window&&(window.ElementInternals=K),"undefined"!=typeof CustomElementRegistry){const t=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(e,o,i){if(o.formAssociated){const e=o.prototype.connectedCallback;o.prototype.connectedCallback=function(){m.has(this)||(m.set(this,!0),this.hasAttribute("disabled")&&C(this,!0)),null!=e&&e.apply(this),$(this)}}t.call(this,e,o,i)}}if("undefined"!=typeof HTMLElement&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(a.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new K(this)}),"undefined"!=typeof Element){function o(...e){const t=i.apply(this,e);if(p.set(this,t),N()){const e=new MutationObserver(w);window.ShadyDOM?e.observe(this,_):e.observe(t,_),s.set(this,e)}return t}const i=Element.prototype.attachShadow;Element.prototype.attachShadow=o}if(N()&&"undefined"!=typeof document){new MutationObserver(w).observe(document.documentElement,_)}"undefined"!=typeof HTMLFormElement&&function(){const e=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...t){let o=e.apply(this,t);return M(this,o,"checkValidity")};const t=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...e){let o=t.apply(this,e);return M(this,o,"reportValidity")};const{get:o}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...e){const t=o.call(this,...e),i=Array.from(d.get(this)||[]);if(0===i.length)return t;const a=Array.from(t).concat(i).sort(((e,t)=>e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:0));return new j(a)}})}(),(e||"undefined"!=typeof window&&!window.CustomStateSet)&&Y()}}!!customElements.polyfillWrapFlushCallback||(!function(){if("undefined"==typeof window||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);const o=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every((e=>e in o.internals))}()?X(!1):"undefined"==typeof window||window.CustomStateSet||Y(HTMLElement.prototype.attachInternals)),e.forceCustomStateSetPolyfill=Y,e.forceElementInternalsPolyfill=X,Object.defineProperty(e,"__esModule",{value:!0})}({})},79840:function(e,t,o){o.d(t,{i0:()=>r,dy:()=>l});o("92745"),o("39527"),o("34595");var i=o("2841");const a=Symbol.for(""),n=e=>{if((null==e?void 0:e.r)===a)return null==e?void 0:e._$litStatic$},r=(e,...t)=>({_$litStatic$:t.reduce(((t,o,i)=>t+(e=>{if(void 0!==e._$litStatic$)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+e[i+1]),e[0]),r:a}),s=new Map,d=e=>(t,...o)=>{const i=o.length;let a,r;const d=[],l=[];let c,p=0,h=!1;for(;p