@m3e/core 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.min.js CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright (c) 2025 matraic
4
4
  * See LICENSE file in the project root for full license text.
5
5
  */
6
- import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,html as r,css as a,LitElement as o}from"lit";function n(e,t,s,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(a<3?r(o):a>3?r(t,s,o):r(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o}function l(e,t,s,i){if("a"===s&&!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"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function h(e,t,s,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,s):r?r.value=s:t.set(e,s),s}var d,c,p,m,u,v,f,y,g,b,x,w,$,k,_,E,S,A,C,z,L,M,W,P,T,F,H,D,O,U,N,I,R,B,q,V,j,K,X,Z,G,J,Y,Q,ee,te,se,ie,re,ae,oe,ne,le,he,de,ce,pe,me,ue,ve,fe,ye,ge,be,xe,we,$e,ke,_e;"function"==typeof SuppressedError&&SuppressedError;class Ee{constructor(e,t){d.set(this,void 0),c.set(this,void 0),p.set(this,new Set),h(this,d,e,"f"),h(this,c,t.target,"f"),l(this,d,"f").addController(this)}get targets(){return l(this,p,"f").values()}hostConnected(){null!==l(this,c,"f")&&this.observe(l(this,c,"f")??l(this,d,"f"))}hostDisconnected(){l(this,p,"f").forEach(e=>this.unobserve(e)),l(this,p,"f").clear()}observe(e){l(this,p,"f").has(e)||(l(this,p,"f").add(e),this._observe(e))}isObserving(e){return l(this,p,"f").has(e)}unobserve(e){l(this,p,"f").delete(e)&&this._unobserve(e)}}d=new WeakMap,c=new WeakMap,p=new WeakMap;class Se extends Ee{constructor(e,t){super(e,t),m.add(this),u.set(this,void 0),v.set(this,e=>l(this,m,"m",y).call(this,e)),f.set(this,e=>l(this,m,"m",g).call(this,e)),h(this,u,t.callback,"f")}_observe(e){e.addEventListener("keydown",l(this,v,"f")),e.addEventListener("focusin",l(this,v,"f")),e.addEventListener("focusout",l(this,f,"f"))}_unobserve(e){e.removeEventListener("keydown",l(this,v,"f")),e.removeEventListener("focusin",l(this,v,"f")),e.removeEventListener("focusout",l(this,f,"f"))}}u=new WeakMap,v=new WeakMap,f=new WeakMap,m=new WeakSet,y=function(e){const t=e.target;l(this,u,"f").call(this,!0,t.matches(":focus-visible")||matchMedia("(forced-colors: active)").matches,t)},g=function(e){l(this,u,"f").call(this,!1,!1,e.target)};class Ae extends Ee{constructor(e,t){super(e,t),b.add(this),x.set(this,void 0),w.set(this,new Map),$.set(this,new Map),k.set(this,e=>l(this,b,"m",C).call(this,e)),_.set(this,e=>l(this,b,"m",z).call(this,e)),h(this,x,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)l(this,b,"m",E).call(this,e)}_observe(e){e.addEventListener("pointerenter",l(this,k,"f")),e.addEventListener("pointerleave",l(this,_,"f"))}_unobserve(e){e.removeEventListener("pointerenter",l(this,k,"f")),e.removeEventListener("pointerleave",l(this,_,"f"))}}x=new WeakMap,w=new WeakMap,$=new WeakMap,k=new WeakMap,_=new WeakMap,b=new WeakSet,E=function(e){l(this,b,"m",S).call(this,e),l(this,b,"m",A).call(this,e)},S=function(e){return!!l(this,w,"f").has(e)&&(clearTimeout(l(this,w,"f").get(e)),l(this,w,"f").delete(e))},A=function(e){return!!l(this,$,"f").has(e)&&(clearTimeout(l(this,$,"f").get(e)),l(this,$,"f").delete(e))},C=function(e){const t=e.target;l(this,b,"m",A).call(this,t),this.startDelay>0?(l(this,b,"m",S).call(this,t),l(this,w,"f").set(t,setTimeout(()=>{l(this,w,"f").delete(t),l(this,x,"f").call(this,!0,t)},this.startDelay))):l(this,x,"f").call(this,!0,t)},z=function(e){const t=e.target;l(this,b,"m",S).call(this,t)||(this.endDelay>0?(l(this,b,"m",A).call(this,t),l(this,$,"f").set(t,setTimeout(()=>{l(this,$,"f").delete(t),l(this,x,"f").call(this,!1,t)},this.endDelay))):l(this,x,"f").call(this,!1,t))};class Ce extends Ee{constructor(t,s){super(t,s),L.set(this,void 0),M.set(this,void 0),W.set(this,!1),P.set(this,void 0),T.set(this,!0),h(this,L,t,"f"),h(this,M,s.callback,"f"),h(this,W,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?h(this,P,new IntersectionObserver((e,t)=>{l(this,M,"f").call(this,e,t),l(this,L,"f").requestUpdate()},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){l(this,P,"f")&&!l(this,W,"f")&&l(this,T,"f")&&l(this,M,"f").call(this,[],l(this,P,"f")),h(this,T,!1,"f")}_observe(e){l(this,P,"f")?.observe(e),h(this,T,!0,"f"),l(this,L,"f").requestUpdate()}_unobserve(e){l(this,P,"f")?.unobserve(e)}}L=new WeakMap,M=new WeakMap,W=new WeakMap,P=new WeakMap,T=new WeakMap;class ze extends Ee{constructor(e,t){super(e,t),F.add(this),H.set(this,void 0),D.set(this,void 0),O.set(this,new Set),U.set(this,new Map),N.set(this,e=>l(this,F,"m",R).call(this,e)),I.set(this,e=>l(this,F,"m",B).call(this,e)),h(this,H,t.callback,"f"),h(this,D,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",l(this,N,"f")),e.addEventListener("touchend",l(this,I,"f")),e.addEventListener("touchcancel",l(this,I,"f"))}_unobserve(e){e.removeEventListener("touchstart",l(this,N,"f")),e.removeEventListener("touchend",l(this,I,"f")),e.removeEventListener("touchcancel",l(this,I,"f"))}}H=new WeakMap,D=new WeakMap,O=new WeakMap,U=new WeakMap,N=new WeakMap,I=new WeakMap,F=new WeakSet,R=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,U,"f").set(t,setTimeout(()=>{l(this,O,"f").add(t),l(this,U,"f").delete(t),l(this,H,"f").call(this,!0,t)},l(this,D,"f")))}},B=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,O,"f").has(t)&&(l(this,H,"f").call(this,!1,t),l(this,O,"f").delete(t)),l(this,U,"f").has(t)&&(clearTimeout(l(this,U,"f").get(t)),l(this,U,"f").delete(t))}};class Le extends Ee{constructor(t,s){super(t,s),q.set(this,void 0),V.set(this,void 0),j.set(this,!1),K.set(this,void 0),X.set(this,void 0),Z.set(this,!0),h(this,q,t,"f"),h(this,V,s.callback,"f"),h(this,j,s.skipInitial??!1,"f"),h(this,K,s.config,"f"),e||(window.MutationObserver?h(this,X,new MutationObserver((e,t)=>{l(this,V,"f").call(this,e,t),l(this,q,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(l(this,X,"f")&&!l(this,j,"f")&&l(this,Z,"f")){const e=l(this,X,"f").takeRecords();e.length>0&&l(this,V,"f").call(this,e,l(this,X,"f"))}h(this,Z,!1,"f")}hostDisconnected(){super.hostDisconnected(),l(this,X,"f")?.disconnect()}_observe(e){l(this,X,"f")?.observe(e,l(this,K,"f")),h(this,Z,!0,"f"),l(this,q,"f").requestUpdate()}_unobserve(){l(this,X,"f")?.disconnect();for(const e of this.targets)l(this,X,"f")?.observe(e,l(this,K,"f"))}}q=new WeakMap,V=new WeakMap,j=new WeakMap,K=new WeakMap,X=new WeakMap,Z=new WeakMap;class Me extends Ee{constructor(e,t){super(e,t),G.add(this),J.set(this,void 0),Y.set(this,void 0),Q.set(this,void 0),ee.set(this,new Map),te.set(this,void 0),se.set(this,e=>l(this,G,"m",ne).call(this,e)),ie.set(this,e=>l(this,G,"m",le).call(this,e)),re.set(this,e=>l(this,G,"m",he).call(this,e)),ae.set(this,e=>l(this,G,"m",de).call(this,e)),oe.set(this,e=>l(this,G,"m",ce).call(this,e)),h(this,J,t.capture,"f"),h(this,Y,t.callback,"f"),h(this,Q,t.isPressedKey,"f"),h(this,te,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",l(this,ie,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchend",l(this,re,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchcancel",l(this,re,"f"),{capture:l(this,J,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",l(this,ie,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchend",l(this,re,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchcancel",l(this,re,"f"),{capture:l(this,J,"f")}),super.hostDisconnected(),l(this,ee,"f").clear()}_observe(e){e.addEventListener("pointerdown",l(this,se,"f"),{capture:l(this,J,"f")}),l(this,Q,"f")&&(e.addEventListener("keydown",l(this,ae,"f"),{capture:l(this,J,"f")}),e.addEventListener("keyup",l(this,oe,"f"),{capture:l(this,J,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",l(this,se,"f"),{capture:l(this,J,"f")}),l(this,Q,"f")&&(e.removeEventListener("keydown",l(this,ae,"f"),{capture:l(this,J,"f")}),e.removeEventListener("keyup",l(this,oe,"f"),{capture:l(this,J,"f")}))}}J=new WeakMap,Y=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,ae=new WeakMap,oe=new WeakMap,G=new WeakSet,ne=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){l(this,ee,"f").has(t)||(l(this,ee,"f").set(t,performance.now()),l(this,Y,"f").call(this,!0,{x:e.x,y:e.y},t));break}},le=function(e){if("mouse"===e.pointerType&&e.button>1)return;const t=e.x,s=e.y;for(const e of l(this,ee,"f").keys()){const i=l(this,te,"f")-(performance.now()-l(this,ee,"f").get(e));i>0?setTimeout(()=>{l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e))}},he=function(e){const t=e.touches[0]?.clientX??0,s=e.touches[0]?.clientY??0;for(const e of l(this,ee,"f").keys()){const i=l(this,te,"f")-(performance.now()-l(this,ee,"f").get(e));i>0?setTimeout(()=>{l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e))}},de=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(l(this,Q,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!l(this,ee,"f").has(t))){l(this,ee,"f").set(t,performance.now());const e=t.getBoundingClientRect();l(this,Y,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},ce=function(e){const t=e.target;if(l(this,ee,"f").has(t)&&l(this,Q,"f")?.call(this,e.key)){const e=l(this,te,"f")-(performance.now()-l(this,ee,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{l(this,ee,"f").delete(t),l(this,Y,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(l(this,ee,"f").delete(t),l(this,Y,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}};class We extends Ee{constructor(t,s){super(t,s),pe.set(this,void 0),me.set(this,void 0),ue.set(this,void 0),ve.set(this,void 0),fe.set(this,void 0),ye.set(this,!0),h(this,pe,t,"f"),h(this,me,s.callback,"f"),h(this,ue,s.skipInitial??!1,"f"),h(this,ve,s.config,"f"),e||(window.ResizeObserver?h(this,fe,new ResizeObserver((e,t)=>{l(this,me,"f").call(this,e,t),l(this,pe,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){l(this,fe,"f")&&!l(this,ue,"f")&&l(this,ye,"f")&&l(this,me,"f").call(this,[],l(this,fe,"f")),h(this,ye,!1,"f")}_observe(e){l(this,fe,"f")?.observe(e,l(this,ve,"f")),h(this,ye,!0,"f"),l(this,pe,"f").requestUpdate()}_unobserve(e){l(this,fe,"f")?.unobserve(e)}}function Pe(e){const t=Symbol("_id");return(s,i,r)=>{const a=r.value;return r.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>a.apply(this,s),e)},r}}pe=new WeakMap,me=new WeakMap,ue=new WeakMap,ve=new WeakMap,fe=new WeakMap,ye=new WeakMap;class Te extends Ee{constructor(e,t){super(e,t),ge.add(this),be.set(this,void 0),xe.set(this,void 0),we.set(this,e=>l(this,ge,"m",_e).call(this,e)),$e.set(this,new Map),h(this,be,!0===t.debounce,"f"),h(this,xe,t.callback,"f")}getScrollContainers(e){return l(this,$e,"f").get(e)}_observe(e){const t=l(this,ge,"m",ke).call(this,e);if(t.length>0){l(this,$e,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",l(this,we,"f"),{passive:!0})}}_unobserve(e){if(l(this,$e,"f").has(e)){for(const t of l(this,$e,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",l(this,we,"f"));l(this,$e,"f").delete(e)}}_debounceCallback(e){l(this,xe,"f").call(this,e)}}be=new WeakMap,xe=new WeakMap,we=new WeakMap,$e=new WeakMap,ge=new WeakSet,ke=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},_e=function(e){const t=e.target===document?document.documentElement:e.target;l(this,be,"f")?this._debounceCallback(t):l(this,xe,"f").call(this,t)},n([Pe(40)],Te.prototype,"_debounceCallback",null);
6
+ import{isServer as e,nothing as t,noChange as s,unsafeCSS as i,html as r,css as a,LitElement as o}from"lit";function n(e,t,s,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(a<3?r(o):a>3?r(t,s,o):r(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o}function l(e,t,s,i){if("a"===s&&!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"===s?i:"a"===s?i.call(e):i?i.value:t.get(e)}function h(e,t,s,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,s):r?r.value=s:t.set(e,s),s}var d,c,p,m,u,v,f,y,g,b,x,w,$,k,_,E,S,A,C,z,L,M,W,P,T,F,H,D,O,U,N,I,R,B,V,q,j,K,X,Z,G,J,Y,Q,ee,te,se,ie,re,ae,oe,ne,le,he,de,ce,pe,me,ue,ve,fe,ye,ge,be,xe,we,$e,ke,_e;"function"==typeof SuppressedError&&SuppressedError;class Ee{constructor(e,t){d.set(this,void 0),c.set(this,void 0),p.set(this,new Set),h(this,d,e,"f"),h(this,c,t.target,"f"),l(this,d,"f").addController(this)}get targets(){return l(this,p,"f").values()}hostConnected(){null!==l(this,c,"f")&&this.observe(l(this,c,"f")??l(this,d,"f"))}hostDisconnected(){l(this,p,"f").forEach(e=>this.unobserve(e)),l(this,p,"f").clear()}observe(e){l(this,p,"f").has(e)||(l(this,p,"f").add(e),this._observe(e))}isObserving(e){return l(this,p,"f").has(e)}unobserve(e){l(this,p,"f").delete(e)&&this._unobserve(e)}}d=new WeakMap,c=new WeakMap,p=new WeakMap;class Se extends Ee{constructor(e,t){super(e,t),m.add(this),u.set(this,void 0),v.set(this,e=>l(this,m,"m",y).call(this,e)),f.set(this,e=>l(this,m,"m",g).call(this,e)),h(this,u,t.callback,"f")}_observe(e){e.addEventListener("keydown",l(this,v,"f")),e.addEventListener("focusin",l(this,v,"f")),e.addEventListener("focusout",l(this,f,"f"))}_unobserve(e){e.removeEventListener("keydown",l(this,v,"f")),e.removeEventListener("focusin",l(this,v,"f")),e.removeEventListener("focusout",l(this,f,"f"))}}u=new WeakMap,v=new WeakMap,f=new WeakMap,m=new WeakSet,y=function(e){const t=e.target;l(this,u,"f").call(this,!0,t.matches(":focus-visible")||matchMedia("(forced-colors: active)").matches,t)},g=function(e){l(this,u,"f").call(this,!1,!1,e.target)};class Ae extends Ee{constructor(e,t){super(e,t),b.add(this),x.set(this,void 0),w.set(this,new Map),$.set(this,new Map),k.set(this,e=>l(this,b,"m",C).call(this,e)),_.set(this,e=>l(this,b,"m",z).call(this,e)),h(this,x,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)l(this,b,"m",E).call(this,e)}_observe(e){e.addEventListener("pointerenter",l(this,k,"f")),e.addEventListener("pointerleave",l(this,_,"f"))}_unobserve(e){e.removeEventListener("pointerenter",l(this,k,"f")),e.removeEventListener("pointerleave",l(this,_,"f"))}}x=new WeakMap,w=new WeakMap,$=new WeakMap,k=new WeakMap,_=new WeakMap,b=new WeakSet,E=function(e){l(this,b,"m",S).call(this,e),l(this,b,"m",A).call(this,e)},S=function(e){return!!l(this,w,"f").has(e)&&(clearTimeout(l(this,w,"f").get(e)),l(this,w,"f").delete(e))},A=function(e){return!!l(this,$,"f").has(e)&&(clearTimeout(l(this,$,"f").get(e)),l(this,$,"f").delete(e))},C=function(e){const t=e.target;l(this,b,"m",A).call(this,t),this.startDelay>0?(l(this,b,"m",S).call(this,t),l(this,w,"f").set(t,setTimeout(()=>{l(this,w,"f").delete(t),l(this,x,"f").call(this,!0,t)},this.startDelay))):l(this,x,"f").call(this,!0,t)},z=function(e){const t=e.target;l(this,b,"m",S).call(this,t)||(this.endDelay>0?(l(this,b,"m",A).call(this,t),l(this,$,"f").set(t,setTimeout(()=>{l(this,$,"f").delete(t),l(this,x,"f").call(this,!1,t)},this.endDelay))):l(this,x,"f").call(this,!1,t))};class Ce extends Ee{constructor(t,s){super(t,s),L.set(this,void 0),M.set(this,void 0),W.set(this,!1),P.set(this,void 0),T.set(this,!0),h(this,L,t,"f"),h(this,M,s.callback,"f"),h(this,W,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?h(this,P,new IntersectionObserver((e,t)=>{l(this,M,"f").call(this,e,t),l(this,L,"f").requestUpdate()},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){l(this,P,"f")&&!l(this,W,"f")&&l(this,T,"f")&&l(this,M,"f").call(this,[],l(this,P,"f")),h(this,T,!1,"f")}_observe(e){l(this,P,"f")?.observe(e),h(this,T,!0,"f"),l(this,L,"f").requestUpdate()}_unobserve(e){l(this,P,"f")?.unobserve(e)}}L=new WeakMap,M=new WeakMap,W=new WeakMap,P=new WeakMap,T=new WeakMap;class ze extends Ee{constructor(e,t){super(e,t),F.add(this),H.set(this,void 0),D.set(this,void 0),O.set(this,new Set),U.set(this,new Map),N.set(this,e=>l(this,F,"m",R).call(this,e)),I.set(this,e=>l(this,F,"m",B).call(this,e)),h(this,H,t.callback,"f"),h(this,D,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",l(this,N,"f")),e.addEventListener("touchend",l(this,I,"f")),e.addEventListener("touchcancel",l(this,I,"f"))}_unobserve(e){e.removeEventListener("touchstart",l(this,N,"f")),e.removeEventListener("touchend",l(this,I,"f")),e.removeEventListener("touchcancel",l(this,I,"f"))}}H=new WeakMap,D=new WeakMap,O=new WeakMap,U=new WeakMap,N=new WeakMap,I=new WeakMap,F=new WeakSet,R=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,U,"f").set(t,setTimeout(()=>{l(this,O,"f").add(t),l(this,U,"f").delete(t),l(this,H,"f").call(this,!0,t)},l(this,D,"f")))}},B=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,O,"f").has(t)&&(l(this,H,"f").call(this,!1,t),l(this,O,"f").delete(t)),l(this,U,"f").has(t)&&(clearTimeout(l(this,U,"f").get(t)),l(this,U,"f").delete(t))}};class Le extends Ee{constructor(t,s){super(t,s),V.set(this,void 0),q.set(this,void 0),j.set(this,!1),K.set(this,void 0),X.set(this,void 0),Z.set(this,!0),h(this,V,t,"f"),h(this,q,s.callback,"f"),h(this,j,s.skipInitial??!1,"f"),h(this,K,s.config,"f"),e||(window.MutationObserver?h(this,X,new MutationObserver((e,t)=>{l(this,q,"f").call(this,e,t),l(this,V,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(l(this,X,"f")&&!l(this,j,"f")&&l(this,Z,"f")){const e=l(this,X,"f").takeRecords();e.length>0&&l(this,q,"f").call(this,e,l(this,X,"f"))}h(this,Z,!1,"f")}hostDisconnected(){super.hostDisconnected(),l(this,X,"f")?.disconnect()}_observe(e){l(this,X,"f")?.observe(e,l(this,K,"f")),h(this,Z,!0,"f"),l(this,V,"f").requestUpdate()}_unobserve(){l(this,X,"f")?.disconnect();for(const e of this.targets)l(this,X,"f")?.observe(e,l(this,K,"f"))}}V=new WeakMap,q=new WeakMap,j=new WeakMap,K=new WeakMap,X=new WeakMap,Z=new WeakMap;class Me extends Ee{constructor(e,t){super(e,t),G.add(this),J.set(this,void 0),Y.set(this,void 0),Q.set(this,void 0),ee.set(this,new Map),te.set(this,void 0),se.set(this,e=>l(this,G,"m",ne).call(this,e)),ie.set(this,e=>l(this,G,"m",le).call(this,e)),re.set(this,e=>l(this,G,"m",he).call(this,e)),ae.set(this,e=>l(this,G,"m",de).call(this,e)),oe.set(this,e=>l(this,G,"m",ce).call(this,e)),h(this,J,t.capture,"f"),h(this,Y,t.callback,"f"),h(this,Q,t.isPressedKey,"f"),h(this,te,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",l(this,ie,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchend",l(this,re,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchcancel",l(this,re,"f"),{capture:l(this,J,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",l(this,ie,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchend",l(this,re,"f"),{capture:l(this,J,"f")}),document.addEventListener("touchcancel",l(this,re,"f"),{capture:l(this,J,"f")}),super.hostDisconnected(),l(this,ee,"f").clear()}_observe(e){e.addEventListener("pointerdown",l(this,se,"f"),{capture:l(this,J,"f")}),l(this,Q,"f")&&(e.addEventListener("keydown",l(this,ae,"f"),{capture:l(this,J,"f")}),e.addEventListener("keyup",l(this,oe,"f"),{capture:l(this,J,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",l(this,se,"f"),{capture:l(this,J,"f")}),l(this,Q,"f")&&(e.removeEventListener("keydown",l(this,ae,"f"),{capture:l(this,J,"f")}),e.removeEventListener("keyup",l(this,oe,"f"),{capture:l(this,J,"f")}))}}J=new WeakMap,Y=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,ae=new WeakMap,oe=new WeakMap,G=new WeakSet,ne=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){l(this,ee,"f").has(t)||(l(this,ee,"f").set(t,performance.now()),l(this,Y,"f").call(this,!0,{x:e.x,y:e.y},t));break}},le=function(e){if("mouse"===e.pointerType&&e.button>1)return;const t=e.x,s=e.y;for(const e of l(this,ee,"f").keys()){const i=l(this,te,"f")-(performance.now()-l(this,ee,"f").get(e));i>0?setTimeout(()=>{l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e))}},he=function(e){const t=e.touches[0]?.clientX??0,s=e.touches[0]?.clientY??0;for(const e of l(this,ee,"f").keys()){const i=l(this,te,"f")-(performance.now()-l(this,ee,"f").get(e));i>0?setTimeout(()=>{l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ee,"f").delete(e),l(this,Y,"f").call(this,!1,{x:t,y:s},e))}},de=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(l(this,Q,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!l(this,ee,"f").has(t))){l(this,ee,"f").set(t,performance.now());const e=t.getBoundingClientRect();l(this,Y,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},ce=function(e){const t=e.target;if(l(this,ee,"f").has(t)&&l(this,Q,"f")?.call(this,e.key)){const e=l(this,te,"f")-(performance.now()-l(this,ee,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{l(this,ee,"f").delete(t),l(this,Y,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(l(this,ee,"f").delete(t),l(this,Y,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}};class We extends Ee{constructor(t,s){super(t,s),pe.set(this,void 0),me.set(this,void 0),ue.set(this,void 0),ve.set(this,void 0),fe.set(this,void 0),ye.set(this,!0),h(this,pe,t,"f"),h(this,me,s.callback,"f"),h(this,ue,s.skipInitial??!1,"f"),h(this,ve,s.config,"f"),e||(window.ResizeObserver?h(this,fe,new ResizeObserver((e,t)=>{l(this,me,"f").call(this,e,t),l(this,pe,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){l(this,fe,"f")&&!l(this,ue,"f")&&l(this,ye,"f")&&l(this,me,"f").call(this,[],l(this,fe,"f")),h(this,ye,!1,"f")}_observe(e){l(this,fe,"f")?.observe(e,l(this,ve,"f")),h(this,ye,!0,"f"),l(this,pe,"f").requestUpdate()}_unobserve(e){l(this,fe,"f")?.unobserve(e)}}function Pe(e){const t=Symbol("_id");return(s,i,r)=>{const a=r.value;return r.value=function(...s){clearTimeout(this[t]),this[t]=setTimeout(()=>a.apply(this,s),e)},r}}pe=new WeakMap,me=new WeakMap,ue=new WeakMap,ve=new WeakMap,fe=new WeakMap,ye=new WeakMap;class Te extends Ee{constructor(e,t){super(e,t),ge.add(this),be.set(this,void 0),xe.set(this,void 0),we.set(this,e=>l(this,ge,"m",_e).call(this,e)),$e.set(this,new Map),h(this,be,!0===t.debounce,"f"),h(this,xe,t.callback,"f")}getScrollContainers(e){return l(this,$e,"f").get(e)}_observe(e){const t=l(this,ge,"m",ke).call(this,e);if(t.length>0){l(this,$e,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",l(this,we,"f"),{passive:!0})}}_unobserve(e){if(l(this,$e,"f").has(e)){for(const t of l(this,$e,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",l(this,we,"f"));l(this,$e,"f").delete(e)}}_debounceCallback(e){l(this,xe,"f").call(this,e)}}be=new WeakMap,xe=new WeakMap,we=new WeakMap,$e=new WeakMap,ge=new WeakSet,ke=function(e){const t=new Array;let s=e;for(;s;){const e=getComputedStyle(s);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(s),s=s.parentElement}return t},_e=function(e){const t=e.target===document?document.documentElement:e.target;l(this,be,"f")?this._debounceCallback(t):l(this,xe,"f").call(this,t)},n([Pe(40)],Te.prototype,"_debounceCallback",null);
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
11
  */
12
- const Fe=1;let He=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const De="important",Oe=" !"+De;const Ue=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends He{constructor(e){if(super(e),e.type!==Fe||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(Oe);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?De:""):i[e]=s}}return s}});function Ne(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Ie=Symbol("internals");function Re(e){return Ne(e,Ie)}const Be=Symbol("_internals");function qe(e,t){class s extends e{get[Ie](){return this[Be]??(this[Be]=this.attachInternals())}}return s.formAssociated=t,s}
12
+ const Fe=1;let He=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const De="important",Oe=" !"+De;const Ue=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends He{constructor(e){if(super(e),e.type!==Fe||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return t}update(e,[t]){const{style:i}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(const e in t){const s=t[e];if(null!=s){this._previousStyleProperties.add(e);const t="string"==typeof s&&s.endsWith(Oe);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?De:""):i[e]=s}}return s}});function Ne(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Ie=Symbol("internals");function Re(e){return Ne(e,Ie)}const Be=Symbol("_internals");function Ve(e,t){class s extends e{get[Ie](){return this[Be]??(this[Be]=this.attachInternals())}}return s.formAssociated=t,s}
13
13
  /**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const Ve=e=>(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},je=globalThis,Ke=je.ShadowRoot&&(void 0===je.ShadyCSS||je.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xe=Symbol(),Ze=new WeakMap;
17
+ */const qe=e=>(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},je=globalThis,Ke=je.ShadowRoot&&(void 0===je.ShadyCSS||je.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xe=Symbol(),Ze=new WeakMap;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2019 Google LLC
@@ -35,43 +35,39 @@ const mt={attribute:!0,type:String,converter:ht,reflect:!1,hasChanged:dt},ut=(e=
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
37
37
  * SPDX-License-Identifier: BSD-3-Clause
38
- */const ft=(e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,s),s);
38
+ */
39
39
  /**
40
40
  * @license
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */function yt(e,t){return(t,s,i)=>ft(t,s,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}
44
- /**
45
- * @license
46
- * Copyright 2021 Google LLC
47
- * SPDX-License-Identifier: BSD-3-Clause
48
- */function gt(e){return Ne(e,"checked")}function bt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function xt(e){return Ne(e,"indeterminate")&&gt(e)}function wt(e){class t extends(bt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function $t(e){return Ne(e,"selected")}function kt(e){class t extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function _t(e){return gt(e)||$t(e)}function Et(e){return gt(e)&&e.checked||$t(e)&&e.selected}function St(e,t){gt(e)?e.checked=t:e.selected=t}function At(e){return Ne(e,"dirty","pristine","markAsDirty","markAsPristine")}const Ct=Symbol("_eventHandler");function zt(e){var t;return t=Ct,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return this.classList.contains("-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[Ct])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[Ct])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function Lt(e){return Ne(e,"touched","untouched","markAsTouched","markAsUntouched")}const Mt=Symbol("_eventHandler");function Wt(e){var t;return t=Mt,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return this.classList.contains("-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[Mt],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Mt],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const Pt={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},Tt={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},Ft={...Tt,calc:e=>i(`calc(max(${e}, ${Tt.scale}) * ${Tt.size})`)},Ht=`color-mix(in srgb, var(--m3e-elevation-color, ${Pt.shadow}) 20%, transparent)`,Dt=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],Ot=`color-mix(in srgb, var(--m3e-elevation-color, ${Pt.shadow}) 14%, transparent)`,Ut=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],Nt=`color-mix(in srgb, var(--m3e-elevation-color, ${Pt.shadow}) 12%, transparent)`,It=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function Rt(e){return`${Ht} ${Dt[e]},${Ot} ${Ut[e]},${Nt} ${It[e]}`}const Bt={level0:i(`var(--md-sys-elevation-level0, ${Rt(0)})`),level1:i(`var(--md-sys-elevation-level1, ${Rt(1)})`),level2:i(`var(--md-sys-elevation-level2, ${Rt(3)})`),level3:i(`var(--md-sys-elevation-level3, ${Rt(6)})`),level4:i(`var(--md-sys-elevation-level4, ${Rt(8)})`),level5:i(`var(--md-sys-elevation-level5, ${Rt(12)})`)},qt={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},Vt={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},jt={easing:qt,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:Vt},Kt={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},Xt={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},Zt={color:Pt,elevation:Bt,motion:jt,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${Xt.extraLarge} ${Xt.extraLarge} ${Xt.none} ${Xt.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${Xt.extraLarge})`),extraLargeEnd:i(`${Xt.none} ${Xt.extraLarge} ${Xt.extraLarge} ${Xt.none}`),extraLargeStart:i(`${Xt.extraLarge} ${Xt.none} ${Xt.none} ${Xt.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${Xt.large} ${Xt.large} ${Xt.none} ${Xt.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${Xt.none} ${Xt.large} ${Xt.large} ${Xt.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${Xt.large} ${Xt.none} ${Xt.none} ${Xt.large})`),large:i(`var(--md-sys-shape-corner-large, ${Xt.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${Xt.medium})`),mediumTop:i(`${Xt.medium} ${Xt.medium} ${Xt.none} ${Xt.none}`),mediumEnd:i(`${Xt.none} ${Xt.medium} ${Xt.medium} ${Xt.none}`),mediumStart:i(`${Xt.medium} ${Xt.none} ${Xt.none} ${Xt.medium}`),small:i(`var(--md-sys-shape-corner-small, ${Xt.small})`),smallTop:i(`${Xt.small} ${Xt.small} ${Xt.none} ${Xt.none}`),smallEnd:i(`${Xt.none} ${Xt.small} ${Xt.small} ${Xt.none}`),smallStart:i(`${Xt.small} ${Xt.none} ${Xt.none} ${Xt.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${Xt.extraSmall} ${Xt.extraSmall} ${Xt.none} ${Xt.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${Xt.extraSmall})`),extraSmallEnd:i(`${Xt.none} ${Xt.extraSmall} ${Xt.extraSmall} ${Xt.none}`),extraSmallStart:i(`${Xt.extraSmall} ${Xt.none} ${Xt.none} ${Xt.extraSmall}`),extraSmallBottom:i(`${Xt.none} ${Xt.none} ${Xt.extraSmall} ${Xt.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${Xt.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${Xt.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${Xt.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${Xt.extraExtraLarge})`),value:Xt}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:Kt,density:Ft};function Gt(e){return Ne(e,"disabled")}function Jt(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return n([vt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Yt(e){return Ne(e,"disabledInteractive")&&Gt(e)}const Qt=["click","dblclick","auxclick","keydown","keyup"],es=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],ts=Symbol("_suppressedEventHandler");function ss(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&es.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Qt.forEach(e=>this.addEventListener(e,this[ts],!0)),super.connectedCallback()}disconnectedCallback(){Qt.forEach(e=>this.removeEventListener(e,this[ts],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=ts,n([vt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const is=Symbol("updateLabels");function rs(e){return Ne(e,"labels")&&Re(e)}const as=Symbol("_eventHandler");function os(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[is]()}}get labels(){return this[Ie].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[as]),this.addEventListener("change",this[as])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[as]),this.removeEventListener("change",this[as])}update(e){super.update(e),this[is]()}[(t=as,is)](){const e=this.hasAttribute("tabindex"),t=Gt(this)&&this.disabled||Yt(this)&&this.disabledInteractive,s=Lt(this)&&this.touched&&(this.ariaInvalid||this.classList.contains("-invalid"));for(const i of this.labels??[])i.style.userSelect=e?"none":"",i.style.cursor=!t&&e?"pointer":"",i.style.color=t?`color-mix(in srgb, ${Zt.color.onSurface} 38%, transparent)`:s?`${Zt.color.error}`:""}}return s.formAssociated=!0,s}const ns=Symbol("formValue"),ls=Symbol("defaultValue");function hs(e){return Ne(e,"disabled","form","name")&&rs(e)&&Re(e)}const ds=Symbol("_defaultValue"),cs=Symbol("_defaultIndeterminate"),ps=Symbol("_formDisabled");function ms(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[Ie].form}get labels(){return this[Ie].labels}get[(t=cs,s=ps,ns)](){return null}get[ls](){return this[ds]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[ps]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),gt(this)?(this[ds]=this.checked,xt(this)&&(this[cs]=this.indeterminate)):"value"in this&&(this[ds]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ie].setFormValue(this[ns])}formDisabledCallback(e){const t=this.disabled;this[ps]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){gt(this)?(this.checked=!0===this[ds],xt(this)&&(this.indeterminate=this[cs])):"value"in this&&(this.value=this[ls]),At(this)&&this.markAsPristine(),Lt(this)&&this.markAsUntouched()}}return i.formAssociated=!0,n([vt({noAccessor:!0})],i.prototype,"name",null),n([vt({type:Boolean})],i.prototype,"disabled",null),i}const us=Symbol("validate");function vs(e){return Ne(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&hs(e)}const fs=Symbol("_updateValidity"),ys=Symbol("_validityMessage");function gs(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Ie].willValidate}get validity(){return this[fs](),this[Ie].validity}get validationMessage(){return this[fs](),this[Ie].validationMessage}[(s=new WeakSet,us)](){return this[ys]?{customError:!0}:void 0}reportValidity(){return Lt(this)&&this.markAsTouched(),this[fs](),this[Ie].reportValidity()}checkValidity(){return this[fs](),this[Ie].checkValidity()}setCustomValidity(e){this[ys]=e||void 0,this[fs]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[fs]()}firstUpdated(e){super.firstUpdated(e),this[fs]()}[fs](){if(e||!this.isConnected)return;const t=this[us](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[ys]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[Ie].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),rs(this)&&this[is]?.()}}return i=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},r}function bs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const xs=Symbol("_tabindex");function ws(e){var t;return t=xs,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[xs]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[xs]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[xs]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[xs]}`)}}}function $s(e){return Ne(e,"name","type","value")&&Re(e)}const ks=Symbol("_clickHandler");function _s(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Gt(this)&&this.disabled||Yt(this)&&this.disabledInteractive)return;const t=this[Ie].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[Ie].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[ks])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ks])}}return t=ks,s.formAssociated=!0,n([vt()],s.prototype,"name",null),n([vt()],s.prototype,"value",null),n([vt()],s.prototype,"type",void 0),s}function Es(e){return Ne(e,"htmlFor","control","attach","detach")}const Ss=Symbol("_control"),As=Symbol("_firstUpdated");function Cs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[Ss]}firstUpdated(e){super.firstUpdated(e),this[As]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode()?.querySelector(`#${this.htmlFor}`);e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))}else this.control&&this[As]&&this.detach()}attach(e){this[Ss]=e}detach(){this[Ss]=null}}return t=Ss,s=As,n([vt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function zs(e,t=!0){var s,i,r;return i=new WeakMap,s=new WeakSet,r=function(e){e.defaultPrevented||e.target!==e.currentTarget||Gt(this)&&this.disabled||Yt(this)&&this.disabledInteractive||(" "===e.key||t&&"Enter"===e.key)&&this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0}))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,e=>l(this,s,"m",r).call(this,e))}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",l(this,i,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",l(this,i,"f"))}}}
43
+ */
44
+ function ft(e,t){return(t,s,i)=>((e,t,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,s),s))(t,s,{get(){return(t=>t.renderRoot?.querySelector(e)??null)(this)}})}function yt(e){return Ne(e,"checked")}function gt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function bt(e){return Ne(e,"indeterminate")&&yt(e)}function xt(e){class t extends(gt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function wt(e){return Ne(e,"selected")}function $t(e){class t extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function kt(e){return yt(e)||wt(e)}function _t(e){return yt(e)&&e.checked||wt(e)&&e.selected}function Et(e,t){yt(e)?e.checked=t:e.selected=t}function St(e){return Ne(e,"dirty","pristine","markAsDirty","markAsPristine")}const At=Symbol("_eventHandler");function Ct(e){var t;return t=At,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return this.classList.contains("-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[At])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[At])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function zt(e){return Ne(e,"touched","untouched","markAsTouched","markAsUntouched")}const Lt=Symbol("_eventHandler");function Mt(e){var t;return t=Lt,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return this.classList.contains("-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[Lt],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Lt],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const Wt={primary:i("var(--md-sys-color-primary, #6750A4)"),onPrimary:i("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:i("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:i("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:i("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:i("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:i("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:i("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:i("var(--md-sys-color-secondary, #625B71)"),onSecondary:i("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:i("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:i("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:i("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:i("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:i("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:i("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:i("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:i("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:i("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:i("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:i("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:i("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:i("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:i("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:i("var(--md-sys-color-error, #B3261E)"),onError:i("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:i("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:i("var(--md-sys-color-on-error-container, #8C1D18)"),surface:i("var(--md-sys-color-surface, #FEF7FF)"),onSurface:i("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:i("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:i("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:i("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:i("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:i("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:i("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:i("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:i("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:i("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:i("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:i("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:i("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:i("var(--md-sys-color-outline, #79747E)"),outlineVariant:i("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:i("var(--md-sys-color-shadow, #000000)"),scrim:i("var(--md-sys-color-scrim, #000000)")},Pt={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},Tt={...Pt,calc:e=>i(`calc(max(${e}, ${Pt.scale}) * ${Pt.size})`)},Ft=`color-mix(in srgb, var(--m3e-elevation-color, ${Wt.shadow}) 20%, transparent)`,Ht=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],Dt=`color-mix(in srgb, var(--m3e-elevation-color, ${Wt.shadow}) 14%, transparent)`,Ot=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],Ut=`color-mix(in srgb, var(--m3e-elevation-color, ${Wt.shadow}) 12%, transparent)`,Nt=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function It(e){return`${Ft} ${Ht[e]},${Dt} ${Ot[e]},${Ut} ${Nt[e]}`}const Rt={level0:i(`var(--md-sys-elevation-level0, ${It(0)})`),level1:i(`var(--md-sys-elevation-level1, ${It(1)})`),level2:i(`var(--md-sys-elevation-level2, ${It(3)})`),level3:i(`var(--md-sys-elevation-level3, ${It(6)})`),level4:i(`var(--md-sys-elevation-level4, ${It(8)})`),level5:i(`var(--md-sys-elevation-level5, ${It(12)})`)},Bt={emphasized:i("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:i("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:i("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:i("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:i("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:i("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},Vt={fastSpatial:i("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:i("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:i("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:i("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:i("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:i("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},qt={easing:Bt,duration:{short1:i("var(--md-sys-motion-duration-short-1, 50ms)"),short2:i("var(--md-sys-motion-duration-short-2, 100ms)"),short3:i("var(--md-sys-motion-duration-short-3, 150ms)"),short4:i("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:i("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:i("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:i("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:i("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:i("var(--md-sys-motion-duration-long-1, 450ms)"),long2:i("var(--md-sys-motion-duration-long-2, 500ms)"),long3:i("var(--md-sys-motion-duration-long-3, 550ms)"),long4:i("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:i("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:i("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:i("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:i("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:Vt},jt={width:i("var(--m3e-scrollbar-width, auto)"),thinWidth:i("var(--m3e-scrollbar-thin-width, thin)"),color:i("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},Kt={none:i("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:i("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:i("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:i("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:i("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:i("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:i("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:i("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:i("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},Xt={color:Wt,elevation:Rt,motion:qt,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${Kt.extraLarge} ${Kt.extraLarge} ${Kt.none} ${Kt.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${Kt.extraLarge})`),extraLargeEnd:i(`${Kt.none} ${Kt.extraLarge} ${Kt.extraLarge} ${Kt.none}`),extraLargeStart:i(`${Kt.extraLarge} ${Kt.none} ${Kt.none} ${Kt.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${Kt.large} ${Kt.large} ${Kt.none} ${Kt.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${Kt.none} ${Kt.large} ${Kt.large} ${Kt.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${Kt.large} ${Kt.none} ${Kt.none} ${Kt.large})`),large:i(`var(--md-sys-shape-corner-large, ${Kt.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${Kt.medium})`),mediumTop:i(`${Kt.medium} ${Kt.medium} ${Kt.none} ${Kt.none}`),mediumEnd:i(`${Kt.none} ${Kt.medium} ${Kt.medium} ${Kt.none}`),mediumStart:i(`${Kt.medium} ${Kt.none} ${Kt.none} ${Kt.medium}`),small:i(`var(--md-sys-shape-corner-small, ${Kt.small})`),smallTop:i(`${Kt.small} ${Kt.small} ${Kt.none} ${Kt.none}`),smallEnd:i(`${Kt.none} ${Kt.small} ${Kt.small} ${Kt.none}`),smallStart:i(`${Kt.small} ${Kt.none} ${Kt.none} ${Kt.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${Kt.extraSmall} ${Kt.extraSmall} ${Kt.none} ${Kt.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${Kt.extraSmall})`),extraSmallEnd:i(`${Kt.none} ${Kt.extraSmall} ${Kt.extraSmall} ${Kt.none}`),extraSmallStart:i(`${Kt.extraSmall} ${Kt.none} ${Kt.none} ${Kt.extraSmall}`),extraSmallBottom:i(`${Kt.none} ${Kt.none} ${Kt.extraSmall} ${Kt.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${Kt.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${Kt.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${Kt.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${Kt.extraExtraLarge})`),value:Kt}},state:{focusStateLayerOpacity:i("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:i("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:i("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:i("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:i("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:i("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:i("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:i("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:i("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:i("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:i("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:i("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:i("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:i("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:i("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:i("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:i("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:jt,density:Tt};function Zt(e){return Ne(e,"disabled")}function Gt(e,t=!0){class s extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return n([vt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function Jt(e){return Ne(e,"disabledInteractive")&&Zt(e)}const Yt=["click","dblclick","auxclick","keydown","keyup"],Qt=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],es=Symbol("_suppressedEventHandler");function ts(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Qt.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Yt.forEach(e=>this.addEventListener(e,this[es],!0)),super.connectedCallback()}disconnectedCallback(){Yt.forEach(e=>this.removeEventListener(e,this[es],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=es,n([vt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const ss=Symbol("updateLabels");function is(e){return Ne(e,"labels")&&Re(e)}const rs=Symbol("_eventHandler");function as(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[ss]()}}get labels(){return this[Ie].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[rs]),this.addEventListener("change",this[rs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[rs]),this.removeEventListener("change",this[rs])}update(e){super.update(e),this[ss]()}[(t=rs,ss)](){const e=this.hasAttribute("tabindex"),t=Zt(this)&&this.disabled||Jt(this)&&this.disabledInteractive,s=zt(this)&&this.touched&&(this.ariaInvalid||this.classList.contains("-invalid"));for(const i of this.labels??[])i.style.userSelect=e?"none":"",i.style.cursor=!t&&e?"pointer":"",!t&&e?i.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):i.style.removeProperty("-webkit-tap-highlight-color"),i.style.color=t?`color-mix(in srgb, ${Xt.color.onSurface} 38%, transparent)`:s?`${Xt.color.error}`:""}}return s.formAssociated=!0,s}const os=Symbol("formValue"),ns=Symbol("defaultValue");function ls(e){return Ne(e,"disabled","form","name")&&is(e)&&Re(e)}const hs=Symbol("_defaultValue"),ds=Symbol("_defaultIndeterminate"),cs=Symbol("_formDisabled");function ps(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[Ie].form}get labels(){return this[Ie].labels}get[(t=ds,s=cs,os)](){return null}get[ns](){return this[hs]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[cs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),yt(this)?(this[hs]=this.checked,bt(this)&&(this[ds]=this.indeterminate)):"value"in this&&(this[hs]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ie].setFormValue(this[os])}formDisabledCallback(e){const t=this.disabled;this[cs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){yt(this)?(this.checked=!0===this[hs],bt(this)&&(this.indeterminate=this[ds])):"value"in this&&(this.value=this[ns]),St(this)&&this.markAsPristine(),zt(this)&&this.markAsUntouched()}}return i.formAssociated=!0,n([vt({noAccessor:!0})],i.prototype,"name",null),n([vt({type:Boolean})],i.prototype,"disabled",null),i}const ms=Symbol("validate");function us(e){return Ne(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&ls(e)}const vs=Symbol("_updateValidity"),fs=Symbol("_validityMessage");function ys(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Ie].willValidate}get validity(){return this[vs](),this[Ie].validity}get validationMessage(){return this[vs](),this[Ie].validationMessage}[(s=new WeakSet,ms)](){return this[fs]?{customError:!0}:void 0}reportValidity(){return zt(this)&&this.markAsTouched(),this[vs](),this[Ie].reportValidity()}checkValidity(){return this[vs](),this[Ie].checkValidity()}setCustomValidity(e){this[fs]=e||void 0,this[vs]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[vs]()}firstUpdated(e){super.firstUpdated(e),this[vs]()}[vs](){if(e||!this.isConnected)return;const t=this[ms](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[fs]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[Ie].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),is(this)&&this[ss]?.()}}return i=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},r}function gs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const bs=Symbol("_tabindex");function xs(e){var t;return t=bs,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[bs]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[bs]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[bs]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[bs]}`)}}}function ws(e){return Ne(e,"name","type","value")&&Re(e)}const $s=Symbol("_clickHandler");function ks(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Zt(this)&&this.disabled||Jt(this)&&this.disabledInteractive)return;const t=this[Ie].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[Ie].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[$s])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[$s])}}return t=$s,s.formAssociated=!0,n([vt()],s.prototype,"name",null),n([vt()],s.prototype,"value",null),n([vt()],s.prototype,"type",void 0),s}function _s(e){return Ne(e,"htmlFor","control","attach","detach")}const Es=Symbol("_control"),Ss=Symbol("_firstUpdated");function As(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[Es]}firstUpdated(e){super.firstUpdated(e),this[Ss]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode()?.querySelector(`#${this.htmlFor}`);e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))}else this.control&&this[Ss]&&this.detach()}attach(e){this[Es]=e}detach(){this[Es]=null}}return t=Es,s=Ss,n([vt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function Cs(e,t=!0){var s,i,r;return i=new WeakMap,s=new WeakSet,r=function(e){e.defaultPrevented||e.target!==e.currentTarget||Zt(this)&&this.disabled||Jt(this)&&this.disabledInteractive||(" "===e.key||t&&"Enter"===e.key)&&this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0}))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,e=>l(this,s,"m",r).call(this,e))}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",l(this,i,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",l(this,i,"f"))}}}
49
45
  /**
50
46
  * @license
51
47
  * Copyright 2017 Google LLC
52
48
  * SPDX-License-Identifier: BSD-3-Clause
53
- */const Ls=globalThis,Ms=Ls.trustedTypes,Ws=Ms?Ms.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ps="$lit$",Ts=`lit$${Math.random().toFixed(9).slice(2)}$`,Fs="?"+Ts,Hs=`<${Fs}>`,Ds=document,Os=()=>Ds.createComment(""),Us=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Ns=Array.isArray,Is="[ \t\n\f\r]",Rs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bs=/-->/g,qs=/>/g,Vs=RegExp(`>|${Is}(?:([^\\s"'>=/]+)(${Is}*=${Is}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),js=/'/g,Ks=/"/g,Xs=/^(?:script|style|textarea|title)$/i,Zs=Symbol.for("lit-noChange"),Gs=Symbol.for("lit-nothing"),Js=new WeakMap,Ys=Ds.createTreeWalker(Ds,129);function Qs(e,t){if(!Ns(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ws?Ws.createHTML(t):t}const ei=(e,t)=>{const s=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",o=Rs;for(let t=0;t<s;t++){const s=e[t];let n,l,h=-1,d=0;for(;d<s.length&&(o.lastIndex=d,l=o.exec(s),null!==l);)d=o.lastIndex,o===Rs?"!--"===l[1]?o=Bs:void 0!==l[1]?o=qs:void 0!==l[2]?(Xs.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=Vs):void 0!==l[3]&&(o=Vs):o===Vs?">"===l[0]?(o=r??Rs,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,n=l[1],o=void 0===l[3]?Vs:'"'===l[3]?Ks:js):o===Ks||o===js?o=Vs:o===Bs||o===qs?o=Rs:(o=Vs,r=void 0);const c=o===Vs&&e[t+1].startsWith("/>")?" ":"";a+=o===Rs?s+Hs:h>=0?(i.push(n),s.slice(0,h)+Ps+s.slice(h)+Ts+c):s+Ts+(-2===h?t:c)}return[Qs(e,a+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class ti{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let r=0,a=0;const o=e.length-1,n=this.parts,[l,h]=ei(e,t);if(this.el=ti.createElement(l,s),Ys.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=Ys.nextNode())&&n.length<o;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(Ps)){const t=h[a++],s=i.getAttribute(e).split(Ts),o=/([.?@])?(.*)/.exec(t);n.push({type:1,index:r,name:o[2],strings:s,ctor:"."===o[1]?oi:"?"===o[1]?ni:"@"===o[1]?li:ai}),i.removeAttribute(e)}else e.startsWith(Ts)&&(n.push({type:6,index:r}),i.removeAttribute(e));if(Xs.test(i.tagName)){const e=i.textContent.split(Ts),t=e.length-1;if(t>0){i.textContent=Ms?Ms.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],Os()),Ys.nextNode(),n.push({type:2,index:++r});i.append(e[t],Os())}}}else if(8===i.nodeType)if(i.data===Fs)n.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(Ts,e+1));)n.push({type:7,index:r}),e+=Ts.length-1}r++}}static createElement(e,t){const s=Ds.createElement("template");return s.innerHTML=e,s}}function si(e,t,s=e,i){if(t===Zs)return t;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const a=Us(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(e),r._$AT(e,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(t=si(e,r._$AS(e,t.values),r,i)),t}class ii{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,i=(e?.creationScope??Ds).importNode(t,!0);Ys.currentNode=i;let r=Ys.nextNode(),a=0,o=0,n=s[0];for(;void 0!==n;){if(a===n.index){let t;2===n.type?t=new ri(r,r.nextSibling,this,e):1===n.type?t=new n.ctor(r,n.name,n.strings,this,e):6===n.type&&(t=new hi(r,this,e)),this._$AV.push(t),n=s[++o]}a!==n?.index&&(r=Ys.nextNode(),a++)}return Ys.currentNode=Ds,i}p(e){let t=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}}class ri{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,i){this.type=2,this._$AH=Gs,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=si(this,e,t),Us(e)?e===Gs||null==e||""===e?(this._$AH!==Gs&&this._$AR(),this._$AH=Gs):e!==this._$AH&&e!==Zs&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>Ns(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Gs&&Us(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ds.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:s}=e,i="number"==typeof s?this._$AC(e):(void 0===s.el&&(s.el=ti.createElement(Qs(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new ii(i,this),s=e.u(this.options);e.p(t),this.T(s),this._$AH=e}}_$AC(e){let t=Js.get(e.strings);return void 0===t&&Js.set(e.strings,t=new ti(e)),t}k(e){Ns(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,i=0;for(const r of e)i===t.length?t.push(s=new ri(this.O(Os()),this.O(Os()),this,this.options)):s=t[i],s._$AI(r),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class ai{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,r){this.type=1,this._$AH=Gs,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Gs}_$AI(e,t=this,s,i){const r=this.strings;let a=!1;if(void 0===r)e=si(this,e,t,0),a=!Us(e)||e!==this._$AH&&e!==Zs,a&&(this._$AH=e);else{const i=e;let o,n;for(e=r[0],o=0;o<r.length-1;o++)n=si(this,i[s+o],t,o),n===Zs&&(n=this._$AH[o]),a||=!Us(n)||n!==this._$AH[o],n===Gs?e=Gs:e!==Gs&&(e+=(n??"")+r[o+1]),this._$AH[o]=n}a&&!i&&this.j(e)}j(e){e===Gs?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class oi extends ai{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Gs?void 0:e}}class ni extends ai{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Gs)}}class li extends ai{constructor(e,t,s,i,r){super(e,t,s,i,r),this.type=5}_$AI(e,t=this){if((e=si(this,e,t,0)??Gs)===Zs)return;const s=this._$AH,i=e===Gs&&s!==Gs||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==Gs&&(s===Gs||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class hi{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){si(this,e)}}const di=Ls.litHtmlPolyfillSupport;di?.(ti,ri),(Ls.litHtmlVersions??=[]).push("3.3.1");
49
+ */const zs=globalThis,Ls=zs.trustedTypes,Ms=Ls?Ls.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ws="$lit$",Ps=`lit$${Math.random().toFixed(9).slice(2)}$`,Ts="?"+Ps,Fs=`<${Ts}>`,Hs=document,Ds=()=>Hs.createComment(""),Os=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Us=Array.isArray,Ns="[ \t\n\f\r]",Is=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rs=/-->/g,Bs=/>/g,Vs=RegExp(`>|${Ns}(?:([^\\s"'>=/]+)(${Ns}*=${Ns}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),qs=/'/g,js=/"/g,Ks=/^(?:script|style|textarea|title)$/i,Xs=Symbol.for("lit-noChange"),Zs=Symbol.for("lit-nothing"),Gs=new WeakMap,Js=Hs.createTreeWalker(Hs,129);function Ys(e,t){if(!Us(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ms?Ms.createHTML(t):t}const Qs=(e,t)=>{const s=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",o=Is;for(let t=0;t<s;t++){const s=e[t];let n,l,h=-1,d=0;for(;d<s.length&&(o.lastIndex=d,l=o.exec(s),null!==l);)d=o.lastIndex,o===Is?"!--"===l[1]?o=Rs:void 0!==l[1]?o=Bs:void 0!==l[2]?(Ks.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=Vs):void 0!==l[3]&&(o=Vs):o===Vs?">"===l[0]?(o=r??Is,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,n=l[1],o=void 0===l[3]?Vs:'"'===l[3]?js:qs):o===js||o===qs?o=Vs:o===Rs||o===Bs?o=Is:(o=Vs,r=void 0);const c=o===Vs&&e[t+1].startsWith("/>")?" ":"";a+=o===Is?s+Fs:h>=0?(i.push(n),s.slice(0,h)+Ws+s.slice(h)+Ps+c):s+Ps+(-2===h?t:c)}return[Ys(e,a+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class ei{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let r=0,a=0;const o=e.length-1,n=this.parts,[l,h]=Qs(e,t);if(this.el=ei.createElement(l,s),Js.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=Js.nextNode())&&n.length<o;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(Ws)){const t=h[a++],s=i.getAttribute(e).split(Ps),o=/([.?@])?(.*)/.exec(t);n.push({type:1,index:r,name:o[2],strings:s,ctor:"."===o[1]?ai:"?"===o[1]?oi:"@"===o[1]?ni:ri}),i.removeAttribute(e)}else e.startsWith(Ps)&&(n.push({type:6,index:r}),i.removeAttribute(e));if(Ks.test(i.tagName)){const e=i.textContent.split(Ps),t=e.length-1;if(t>0){i.textContent=Ls?Ls.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],Ds()),Js.nextNode(),n.push({type:2,index:++r});i.append(e[t],Ds())}}}else if(8===i.nodeType)if(i.data===Ts)n.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(Ps,e+1));)n.push({type:7,index:r}),e+=Ps.length-1}r++}}static createElement(e,t){const s=Hs.createElement("template");return s.innerHTML=e,s}}function ti(e,t,s=e,i){if(t===Xs)return t;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const a=Os(t)?void 0:t._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(e),r._$AT(e,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(t=ti(e,r._$AS(e,t.values),r,i)),t}class si{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,i=(e?.creationScope??Hs).importNode(t,!0);Js.currentNode=i;let r=Js.nextNode(),a=0,o=0,n=s[0];for(;void 0!==n;){if(a===n.index){let t;2===n.type?t=new ii(r,r.nextSibling,this,e):1===n.type?t=new n.ctor(r,n.name,n.strings,this,e):6===n.type&&(t=new li(r,this,e)),this._$AV.push(t),n=s[++o]}a!==n?.index&&(r=Js.nextNode(),a++)}return Js.currentNode=Hs,i}p(e){let t=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}}class ii{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,i){this.type=2,this._$AH=Zs,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ti(this,e,t),Os(e)?e===Zs||null==e||""===e?(this._$AH!==Zs&&this._$AR(),this._$AH=Zs):e!==this._$AH&&e!==Xs&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>Us(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Zs&&Os(this._$AH)?this._$AA.nextSibling.data=e:this.T(Hs.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:s}=e,i="number"==typeof s?this._$AC(e):(void 0===s.el&&(s.el=ei.createElement(Ys(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new si(i,this),s=e.u(this.options);e.p(t),this.T(s),this._$AH=e}}_$AC(e){let t=Gs.get(e.strings);return void 0===t&&Gs.set(e.strings,t=new ei(e)),t}k(e){Us(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,i=0;for(const r of e)i===t.length?t.push(s=new ii(this.O(Ds()),this.O(Ds()),this,this.options)):s=t[i],s._$AI(r),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class ri{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,r){this.type=1,this._$AH=Zs,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Zs}_$AI(e,t=this,s,i){const r=this.strings;let a=!1;if(void 0===r)e=ti(this,e,t,0),a=!Os(e)||e!==this._$AH&&e!==Xs,a&&(this._$AH=e);else{const i=e;let o,n;for(e=r[0],o=0;o<r.length-1;o++)n=ti(this,i[s+o],t,o),n===Xs&&(n=this._$AH[o]),a||=!Os(n)||n!==this._$AH[o],n===Zs?e=Zs:e!==Zs&&(e+=(n??"")+r[o+1]),this._$AH[o]=n}a&&!i&&this.j(e)}j(e){e===Zs?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ai extends ri{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Zs?void 0:e}}class oi extends ri{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Zs)}}class ni extends ri{constructor(e,t,s,i,r){super(e,t,s,i,r),this.type=5}_$AI(e,t=this){if((e=ti(this,e,t,0)??Zs)===Xs)return;const s=this._$AH,i=e===Zs&&s!==Zs||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==Zs&&(s===Zs||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class li{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){ti(this,e)}}const hi=zs.litHtmlPolyfillSupport;hi?.(ei,ii),(zs.litHtmlVersions??=[]).push("3.3.1");
54
50
  /**
55
51
  * @license
56
52
  * Copyright 2018 Google LLC
57
53
  * SPDX-License-Identifier: BSD-3-Clause
58
54
  */
59
- const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"download","href","rel","target")}const ui=Symbol("_clickHandler");function vi(e){var s,i,a,o,h;class d extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(Yt(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[ui]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ui])}[(s=new WeakSet,h=ui,pi)](){const e=Gt(this)&&this.disabled,n=Yt(this)&&this.disabledInteractive;return e||n||!this.href?t:r`<a
55
+ const di=e=>e??Zs,ci=Symbol("renderPseudoLink");function pi(e){return Ne(e,"download","href","rel","target")}const mi=Symbol("_clickHandler");function ui(e){var s,i,a,o,h;class d extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(Jt(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[mi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[mi])}[(s=new WeakSet,h=mi,ci)](){const e=Zt(this)&&this.disabled,n=Jt(this)&&this.disabledInteractive;return e||n||!this.href?t:r`<a
60
56
  href="${this.href}"
61
- target="${ci(this.target||void 0)}"
62
- rel="${ci(this.rel||void 0)}"
63
- download="${ci(this.download||void 0)}"
57
+ target="${di(this.target||void 0)}"
58
+ rel="${di(this.rel||void 0)}"
59
+ download="${di(this.download||void 0)}"
64
60
  tabindex="-1"
65
61
  aria-hidden="true"
66
62
  @pointerdown="${l(this,s,"m",i)}"
67
63
  @focus="${l(this,s,"m",a)}"
68
64
  @blur="${l(this,s,"m",o)}"
69
- ></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},a=function(e){e.target.blur(),this.focus()},o=function(e){e.target.setAttribute("aria-hidden","true")},n([vt()],d.prototype,"href",void 0),n([vt()],d.prototype,"target",void 0),n([vt()],d.prototype,"rel",void 0),n([vt({reflect:!1})],d.prototype,"download",null),d}function fi(e){return Ne(e,"readOnly")}function yi(e,t=!0){class s extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return n([vt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function gi(e){return Ne(e,"required","optional")}function bi(e){class t extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function xi(e){return gi(e)&&vs(e)}function wi(e){return class extends e{[us](){const e=super[us]();if(!e&&this.required){if(gt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function $i(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function ki(e){return Ne(e,"vertical")}function _i(e){class t extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}function Ei(e,t=!1){let s="";switch(e.nodeType){case Node.TEXT_NODE:s=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const i of e.assignedNodes({flatten:!0}))s+=Ei(i,t);else for(const i of e.childNodes)s+=Ei(i,t)}return t&&(s=s.trim()),s}function Si(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Ai(e){return e.assignedNodes({flatten:!0}).length>0}function Ci(){return e||matchMedia("(prefers-reduced-motion)").matches}function zi(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}var Li,Mi,Wi,Pi,Ti,Fi,Hi;let Di=class extends(bs(o,"opening","opened","closing","closed")){constructor(){super(...arguments),Li.add(this),Mi.set(this,!1),Wi.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!l(this,Mi,"f"))return this.open&&(h(this,Wi,!0,"f"),l(this,Li,"m",Ti).call(this)),void h(this,Mi,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(h(this,Wi,!0,"f"),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),l(this,Li,"m",Fi).call(this),this.classList.toggle("-no-animate",!1),l(this,Li,"m",Hi).call(this),Ci()?(this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(l(this,Li,"m",Ti).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened")))},{once:!0})):(this.classList.toggle("-opening",!1),this.classList.toggle("-closing",!0),this.dispatchEvent(new Event("closing")),l(this,Li,"m",Hi).call(this),l(this,Wi,"f")&&this.classList.toggle("-no-animate",!1),Ci()?(l(this,Li,"m",Fi).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{l(this,Li,"m",Fi).call(this),this.addEventListener("transitionend",()=>{this.open||(this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return r`<slot @slotchange="${l(this,Li,"m",Pi)}"></slot>`}};Mi=new WeakMap,Wi=new WeakMap,Li=new WeakSet,Pi=function(){h(this,Mi,!0,"f")},Ti=function(){this.style.height="auto"},Fi=function(){this.style.height=""},Hi=function(){this.style.height=`${this.scrollHeight}px`},Di.styles=a`
65
+ ></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},a=function(e){e.target.blur(),this.focus()},o=function(e){e.target.setAttribute("aria-hidden","true")},n([vt()],d.prototype,"href",void 0),n([vt()],d.prototype,"target",void 0),n([vt()],d.prototype,"rel",void 0),n([vt({reflect:!1})],d.prototype,"download",null),d}function vi(e){return Ne(e,"readOnly")}function fi(e,t=!0){class s extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return n([vt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function yi(e){return Ne(e,"required","optional")}function gi(e){class t extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function bi(e){return yi(e)&&us(e)}function xi(e){return class extends e{[ms](){const e=super[ms]();if(!e&&this.required){if(yt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function wi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function $i(e){return Ne(e,"vertical")}function ki(e){class t extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return n([vt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}function _i(e,t=!1){let s="";switch(e.nodeType){case Node.TEXT_NODE:s=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const i of e.assignedNodes({flatten:!0}))s+=_i(i,t);else for(const i of e.childNodes)s+=_i(i,t)}return t&&(s=s.trim()),s}function Ei(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Si(e){return e.assignedNodes({flatten:!0}).length>0}function Ai(){return e||matchMedia("(prefers-reduced-motion)").matches}function Ci(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}var zi,Li,Mi,Wi,Pi,Ti,Fi;let Hi=class extends(gs(o,"opening","opened","closing","closed")){constructor(){super(...arguments),zi.add(this),Li.set(this,!1),Mi.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!l(this,Li,"f"))return this.open&&(h(this,Mi,!0,"f"),l(this,zi,"m",Pi).call(this)),void h(this,Li,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(h(this,Mi,!0,"f"),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),l(this,zi,"m",Ti).call(this),this.classList.toggle("-no-animate",!1),l(this,zi,"m",Fi).call(this),Ai()?(this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(l(this,zi,"m",Pi).call(this),this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened")))},{once:!0})):(this.classList.toggle("-opening",!1),this.classList.toggle("-closing",!0),this.dispatchEvent(new Event("closing")),l(this,zi,"m",Fi).call(this),l(this,Mi,"f")&&this.classList.toggle("-no-animate",!1),Ai()?(l(this,zi,"m",Ti).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{l(this,zi,"m",Ti).call(this),this.addEventListener("transitionend",()=>{this.open||(this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return r`<slot @slotchange="${l(this,zi,"m",Wi)}"></slot>`}};Li=new WeakMap,Mi=new WeakMap,zi=new WeakSet,Wi=function(){h(this,Li,!0,"f")},Pi=function(){this.style.height="auto"},Ti=function(){this.style.height=""},Fi=function(){this.style.height=`${this.scrollHeight}px`},Hi.styles=a`
70
66
  :host {
71
67
  display: block;
72
68
  height: 0px;
73
69
  overflow: hidden;
74
- transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${Zt.motion.duration.medium1})\n ${Zt.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Zt.motion.duration.medium1})\n ${Zt.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Zt.motion.duration.medium1})\n ${Zt.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Zt.motion.duration.medium1})\n ${Zt.motion.easing.standard}`)};
70
+ transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${Xt.motion.duration.medium1})\n ${Xt.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${Xt.motion.duration.medium1})\n ${Xt.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${Xt.motion.duration.medium1})\n ${Xt.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${Xt.motion.duration.medium1})\n ${Xt.motion.easing.standard}`)};
75
71
  }
76
72
  :host(:not(.-closing):not([open])) {
77
73
  visibility: hidden;
@@ -95,7 +91,7 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
95
91
  transition: none;
96
92
  }
97
93
  }
98
- `,n([vt({type:Boolean,reflect:!0})],Di.prototype,"open",void 0),Di=n([Ve("m3e-collapsible")],Di);const Oi=i(`var(--m3e-elevation-lift-duration, ${Zt.motion.duration.short4})`),Ui=i(`var(--m3e-elevation-lift-easing, ${Zt.motion.easing.standard})`),Ni=i(`var(--m3e-elevation-settle-duration, ${Zt.motion.duration.short3})`),Ii=i(`var(--m3e-elevation-settle-easing, ${Zt.motion.easing.standardAccelerate})`),Ri=i(`var(--m3e-elevation-level, ${Zt.elevation.level0})`),Bi=i(`var(--m3e-elevation-hover-level, ${Zt.elevation.level0})`),qi=i(`var(--m3e-elevation-focus-level, ${Zt.elevation.level0})`),Vi=i(`var(--m3e-elevation-pressed-level, ${Zt.elevation.level0})`);var ji,Ki,Xi,Zi,Gi,Ji,Yi;let Qi=class extends(Cs($i(o,"none"))){constructor(){super(...arguments),ji.add(this),Ki.set(this,new Ae(this,{target:null,callback:e=>l(this,ji,"m",Gi).call(this,e)})),Xi.set(this,new Se(this,{target:null,callback:e=>l(this,ji,"m",Ji).call(this,e)})),Zi.set(this,new Me(this,{target:null,callback:e=>l(this,ji,"m",Yi).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),l(this,Ki,"f").observe(e),l(this,Xi,"f").observe(e),l(this,Zi,"f").observe(e)}detach(){this.control&&(l(this,Ki,"f").unobserve(this.control),l(this,Xi,"f").unobserve(this.control),l(this,Zi,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return r`<div class="shadow"></div>`}};Ki=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,ji=new WeakSet,Gi=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Ji=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Yi=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Qi.styles=a`
94
+ `,n([vt({type:Boolean,reflect:!0})],Hi.prototype,"open",void 0),Hi=n([qe("m3e-collapsible")],Hi);const Di=i(`var(--m3e-elevation-lift-duration, ${Xt.motion.duration.short4})`),Oi=i(`var(--m3e-elevation-lift-easing, ${Xt.motion.easing.standard})`),Ui=i(`var(--m3e-elevation-settle-duration, ${Xt.motion.duration.short3})`),Ni=i(`var(--m3e-elevation-settle-easing, ${Xt.motion.easing.standardAccelerate})`),Ii=i(`var(--m3e-elevation-level, ${Xt.elevation.level0})`),Ri=i(`var(--m3e-elevation-hover-level, ${Xt.elevation.level0})`),Bi=i(`var(--m3e-elevation-focus-level, ${Xt.elevation.level0})`),Vi=i(`var(--m3e-elevation-pressed-level, ${Xt.elevation.level0})`);var qi,ji,Ki,Xi,Zi,Gi,Ji;let Yi=class extends(As(wi(o,"none"))){constructor(){super(...arguments),qi.add(this),ji.set(this,new Ae(this,{target:null,callback:e=>l(this,qi,"m",Zi).call(this,e)})),Ki.set(this,new Se(this,{target:null,callback:e=>l(this,qi,"m",Gi).call(this,e)})),Xi.set(this,new Me(this,{target:null,callback:e=>l(this,qi,"m",Ji).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),l(this,ji,"f").observe(e),l(this,Ki,"f").observe(e),l(this,Xi,"f").observe(e)}detach(){this.control&&(l(this,ji,"f").unobserve(this.control),l(this,Ki,"f").unobserve(this.control),l(this,Xi,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return r`<div class="shadow"></div>`}};ji=new WeakMap,Ki=new WeakMap,Xi=new WeakMap,qi=new WeakSet,Zi=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Gi=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Ji=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Yi.styles=a`
99
95
  :host {
100
96
  display: block;
101
97
  }
@@ -113,51 +109,51 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
113
109
  .shadow.focus,
114
110
  .shadow.pressed {
115
111
  will-change: box-shadow;
116
- transition: ${i(`box-shadow ${Ni} ${Ii};`)};
112
+ transition: ${i(`box-shadow ${Ui} ${Ni};`)};
117
113
  }
118
114
  .shadow.hover {
119
115
  will-change: box-shadow;
120
- transition: ${i(`box-shadow ${Oi} ${Ui};`)};
116
+ transition: ${i(`box-shadow ${Di} ${Oi};`)};
121
117
  }
122
118
  .shadow {
123
- box-shadow: ${Ri};
119
+ box-shadow: ${Ii};
124
120
  }
125
121
  .shadow.focus {
126
- box-shadow: ${qi};
122
+ box-shadow: ${Bi};
127
123
  }
128
124
  .shadow.hover {
129
- box-shadow: ${Bi};
125
+ box-shadow: ${Ri};
130
126
  }
131
127
  .shadow.pressed {
132
128
  box-shadow: ${Vi};
133
129
  }
134
130
  :host([level="0"]) .shadow {
135
- --m3e-elevation-level: ${Zt.elevation.level0};
136
- --m3e-elevation-hover-level: ${Zt.elevation.level1};
131
+ --m3e-elevation-level: ${Xt.elevation.level0};
132
+ --m3e-elevation-hover-level: ${Xt.elevation.level1};
137
133
  }
138
134
  :host([level="1"]) .shadow {
139
- --m3e-elevation-level: ${Zt.elevation.level1};
140
- --m3e-elevation-hover-level: ${Zt.elevation.level2};
135
+ --m3e-elevation-level: ${Xt.elevation.level1};
136
+ --m3e-elevation-hover-level: ${Xt.elevation.level2};
141
137
  }
142
138
  :host([level="2"]) .shadow {
143
- --m3e-elevation-level: ${Zt.elevation.level2};
144
- --m3e-elevation-hover-level: ${Zt.elevation.level3};
139
+ --m3e-elevation-level: ${Xt.elevation.level2};
140
+ --m3e-elevation-hover-level: ${Xt.elevation.level3};
145
141
  }
146
142
  :host([level="3"]) .shadow {
147
- --m3e-elevation-level: ${Zt.elevation.level3};
148
- --m3e-elevation-hover-level: ${Zt.elevation.level4};
143
+ --m3e-elevation-level: ${Xt.elevation.level3};
144
+ --m3e-elevation-hover-level: ${Xt.elevation.level4};
149
145
  }
150
146
  :host([level="4"]) .shadow {
151
- --m3e-elevation-level: ${Zt.elevation.level4};
152
- --m3e-elevation-hover-level: ${Zt.elevation.level5};
147
+ --m3e-elevation-level: ${Xt.elevation.level4};
148
+ --m3e-elevation-hover-level: ${Xt.elevation.level5};
153
149
  }
154
150
  :host([level="5"]) .shadow {
155
- --m3e-elevation-level: ${Zt.elevation.level5};
156
- --m3e-elevation-hover-level: ${Ri};
151
+ --m3e-elevation-level: ${Xt.elevation.level5};
152
+ --m3e-elevation-hover-level: ${Ii};
157
153
  }
158
154
  :host([level]) .shadow {
159
- --m3e-elevation-focus-level: ${Ri};
160
- --m3e-elevation-pressed-level: ${Ri};
155
+ --m3e-elevation-focus-level: ${Ii};
156
+ --m3e-elevation-pressed-level: ${Ii};
161
157
  }
162
158
  @media (prefers-reduced-motion) {
163
159
  .shadow.resting,
@@ -172,7 +168,7 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
172
168
  display: none;
173
169
  }
174
170
  }
175
- `,n([yt(".shadow")],Qi.prototype,"_shadow",void 0),n([vt({type:Boolean,reflect:!0})],Qi.prototype,"disabled",void 0),n([vt({type:Number,reflect:!0})],Qi.prototype,"level",void 0),Qi=n([Ve("m3e-elevation")],Qi);const er=i(`var(--m3e-focus-ring-color, ${Zt.color.secondary})`),tr=i(`var(--m3e-focus-ring-duration, ${Zt.motion.duration.long2})`),sr=i("var(--m3e-focus-ring-thickness, 0.1875rem)"),ir=i("var(--m3e-focus-ring-visibility, visible)"),rr=i("var(--m3e-focus-ring-growth-factor, 2)");var ar,or,nr;let lr=class extends(Cs($i(o,"none"))){constructor(){super(...arguments),ar.add(this),or.set(this,new Se(this,{target:null,callback:(e,t)=>l(this,ar,"m",nr).call(this,t)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(e){super.attach(e),l(this,or,"f").observe(e)}detach(){this.control&&l(this,or,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return r`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};or=new WeakMap,ar=new WeakSet,nr=function(e){this.disabled||(e?this.show():this.hide())},lr.styles=a`
171
+ `,n([ft(".shadow")],Yi.prototype,"_shadow",void 0),n([vt({type:Boolean,reflect:!0})],Yi.prototype,"disabled",void 0),n([vt({type:Number,reflect:!0})],Yi.prototype,"level",void 0),Yi=n([qe("m3e-elevation")],Yi);const Qi=i(`var(--m3e-focus-ring-color, ${Xt.color.secondary})`),er=i(`var(--m3e-focus-ring-duration, ${Xt.motion.duration.long2})`),tr=i("var(--m3e-focus-ring-thickness, 0.1875rem)"),sr=i("var(--m3e-focus-ring-visibility, visible)"),ir=i("var(--m3e-focus-ring-growth-factor, 2)");var rr,ar,or;let nr=class extends(As(wi(o,"none"))){constructor(){super(...arguments),rr.add(this),ar.set(this,new Se(this,{target:null,callback:(e,t)=>l(this,rr,"m",or).call(this,t)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(e){super.attach(e),l(this,ar,"f").observe(e)}detach(){this.control&&l(this,ar,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return r`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};ar=new WeakMap,rr=new WeakSet,or=function(e){this.disabled||(e?this.show():this.hide())},nr.styles=a`
176
172
  :host {
177
173
  display: block;
178
174
  position: absolute;
@@ -193,34 +189,34 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
193
189
  pointer-events: none;
194
190
  border-radius: inherit;
195
191
  z-index: 1;
196
- outline-color: ${er};
197
- outline-width: ${sr};
198
- visibility: ${ir};
192
+ outline-color: ${Qi};
193
+ outline-width: ${tr};
194
+ visibility: ${sr};
199
195
  }
200
196
  .outline.visible {
201
197
  outline-style: solid;
202
198
  }
203
199
  :host(:not([inward])) .outline {
204
- outline-offset: calc(${sr} / ${rr});
200
+ outline-offset: calc(${tr} / ${ir});
205
201
  }
206
202
  :host([inward]) .outline {
207
- outline-offset: calc(0px - ${sr});
203
+ outline-offset: calc(0px - ${tr});
208
204
  }
209
205
  :host(:not([inward])) .outline.visible {
210
- animation: grow-shrink ${tr};
206
+ animation: grow-shrink ${er};
211
207
  }
212
208
  :host([inward]) .outline.visible {
213
- animation: shrink-grow ${tr};
209
+ animation: shrink-grow ${er};
214
210
  }
215
211
  @keyframes grow-shrink {
216
212
  50% {
217
- outline-width: calc(${sr} * ${rr});
213
+ outline-width: calc(${tr} * ${ir});
218
214
  }
219
215
  }
220
216
  @keyframes shrink-grow {
221
217
  50% {
222
- outline-offset: calc(0px - calc(${sr} * ${rr}));
223
- outline-width: calc(${sr} * ${rr});
218
+ outline-offset: calc(0px - calc(${tr} * ${ir}));
219
+ outline-width: calc(${tr} * ${ir});
224
220
  }
225
221
  }
226
222
  @media (prefers-reduced-motion) {
@@ -234,11 +230,11 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
234
230
  outline-color: Highlight;
235
231
  }
236
232
  }
237
- `,n([yt(".outline")],lr.prototype,"_outline",void 0),n([vt({type:Boolean,reflect:!0})],lr.prototype,"inward",void 0),n([vt({type:Boolean,reflect:!0})],lr.prototype,"disabled",void 0),lr=n([Ve("m3e-focus-ring")],lr);let hr=class extends(wt(Jt($i(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor">
233
+ `,n([ft(".outline")],nr.prototype,"_outline",void 0),n([vt({type:Boolean,reflect:!0})],nr.prototype,"inward",void 0),n([vt({type:Boolean,reflect:!0})],nr.prototype,"disabled",void 0),nr=n([qe("m3e-focus-ring")],nr);let lr=class extends(xt(Gt(wi(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor">
238
234
  <path Required d="M240-440v-80h480v80H240Z" />
239
235
  </svg>`:this.checked?r`<svg viewBox="0 -960 960 960" fill="currentColor">
240
236
  <path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" />
241
- </svg>`:t}};hr.styles=a`
237
+ </svg>`:t}};lr.styles=a`
242
238
  :host {
243
239
  display: inline-block;
244
240
  vertical-align: middle;
@@ -254,16 +250,16 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
254
250
  }
255
251
  :host(:not([disabled])[checked]),
256
252
  :host(:not([disabled])[indeterminate]) {
257
- background-color: var(--m3e-checkbox-selected-container-color, ${Zt.color.primary});
258
- color: var(--m3e-checkbox-selected-icon-color, ${Zt.color.onPrimary});
253
+ background-color: var(--m3e-checkbox-selected-container-color, ${Xt.color.primary});
254
+ color: var(--m3e-checkbox-selected-icon-color, ${Xt.color.onPrimary});
259
255
  }
260
256
  :host(:not([disabled]):not([checked]):not([indeterminate])) {
261
- border-color: var(--m3e-checkbox-unselected-outline-color, ${Zt.color.onSurfaceVariant});
257
+ border-color: var(--m3e-checkbox-unselected-outline-color, ${Xt.color.onSurfaceVariant});
262
258
  }
263
259
  :host([disabled]:not([checked]):not([indeterminate])) {
264
260
  border-color: color-mix(
265
261
  in srgb,
266
- var(--m3e-checkbox-unselected-disabled-outline-color, ${Zt.color.onSurface})
262
+ var(--m3e-checkbox-unselected-disabled-outline-color, ${Xt.color.onSurface})
267
263
  var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%),
268
264
  transparent
269
265
  );
@@ -272,25 +268,25 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
272
268
  :host([disabled][indeterminate]) {
273
269
  background-color: color-mix(
274
270
  in srgb,
275
- var(--m3e-checkbox-selected-disabled-container-color, ${Zt.color.onSurface})
271
+ var(--m3e-checkbox-selected-disabled-container-color, ${Xt.color.onSurface})
276
272
  var(--m3e-checkbox-selected-disabled-container-opacity, 38%),
277
273
  transparent
278
274
  );
279
275
  color: color-mix(
280
276
  in srgb,
281
- var(--m3e-checkbox-selected-disabled-icon-color, ${Zt.color.surface})
277
+ var(--m3e-checkbox-selected-disabled-icon-color, ${Xt.color.surface})
282
278
  var(--m3e-checkbox-selected-disabled-icon-opacity, 100%),
283
279
  transparent
284
280
  );
285
281
  }
286
- `,hr=n([Ve("m3e-pseudo-checkbox")],hr);let dr=class extends(bt(Jt($i(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<svg class="icon" viewBox="0 0 20 20">
282
+ `,lr=n([qe("m3e-pseudo-checkbox")],lr);let hr=class extends(gt(Gt(wi(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<svg class="icon" viewBox="0 0 20 20">
287
283
  <mask id="cutout2">
288
284
  <rect width="100%" height="100%" fill="white"></rect>
289
285
  <circle cx="10" cy="10" r="8" fill="black"></circle>
290
286
  </mask>
291
287
  <circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle>
292
288
  <circle class="inner circle" cx="10" cy="10" r="5"></circle>
293
- </svg>`}};dr.styles=a`
289
+ </svg>`}};hr.styles=a`
294
290
  :host {
295
291
  display: inline-block;
296
292
  vertical-align: middle;
@@ -306,15 +302,15 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
306
302
  opacity: 0;
307
303
  }
308
304
  :host(:not([checked])) {
309
- color: var(--m3e-radio-unselected-icon-color, ${Zt.color.onSurfaceVariant});
305
+ color: var(--m3e-radio-unselected-icon-color, ${Xt.color.onSurfaceVariant});
310
306
  }
311
307
  :host([checked]) {
312
- color: var(--m3e-radio-selected-icon-color, ${Zt.color.primary});
308
+ color: var(--m3e-radio-selected-icon-color, ${Xt.color.primary});
313
309
  }
314
310
  :host([disabled]) {
315
- color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Zt.color.onSurface}) 38%, transparent);
311
+ color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${Xt.color.onSurface}) 38%, transparent);
316
312
  }
317
- `,dr=n([Ve("m3e-pseudo-radio")],dr);const cr=i(`var(--m3e-ripple-color, ${Zt.color.onSurface})`),pr=i(`var(--m3e-ripple-opacity, ${Zt.state.pressedStateLayerOpacity})`),mr=i(`var(--m3e-ripple-enter-duration, ${Zt.motion.duration.long4})`),ur=i(`var(--m3e-ripple-exit-duration, ${Zt.motion.duration.short2})`),vr=i("var(--m3e-ripple-scale-factor, 2.5)");var fr,yr,gr,br,xr,wr;let $r=class extends(Cs($i(o,"none"))){constructor(){super(...arguments),fr.add(this),yr.set(this,null),gr.set(this,new Me(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>l(this,fr,"m",wr).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null,this.trigger=null}get visible(){return null!==l(this,yr,"f")}show(e,t,s=!1){l(this,fr,"m",br).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let r=this.radius;if(!r||isNaN(r)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));r=Math.sqrt(s*s+a*a)}const a=e-i.left,o=t-i.top;h(this,yr,document.createElement("div"),"f"),l(this,yr,"f").classList.add("ripple"),s&&l(this,yr,"f").classList.add("persistent"),l(this,yr,"f").style.left=a-r+"px",l(this,yr,"f").style.top=o-r+"px",l(this,yr,"f").style.width=2*r+"px",l(this,yr,"f").style.height=2*r+"px",l(this,yr,"f").addEventListener("animationend",()=>l(this,fr,"m",xr).call(this,s),{once:!0}),l(this,yr,"f").addEventListener("transitionend",()=>l(this,fr,"m",br).call(this),{once:!0}),this.shadowRoot?.appendChild(l(this,yr,"f"))}hide(){l(this,yr,"f")?.classList.add("exit")}attach(e){super.attach(e),l(this,gr,"f").observe(e)}detach(){this.control&&l(this,gr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),l(this,fr,"m",br).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var kr;yr=new WeakMap,gr=new WeakMap,fr=new WeakSet,br=function(){l(this,yr,"f")?.remove(),h(this,yr,null,"f")},xr=function(e){e?l(this,yr,"f")?.classList.add("pressed"):this.hide()},wr=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},$r.styles=a`
313
+ `,hr=n([qe("m3e-pseudo-radio")],hr);const dr=i(`var(--m3e-ripple-color, ${Xt.color.onSurface})`),cr=i(`var(--m3e-ripple-opacity, ${Xt.state.pressedStateLayerOpacity})`),pr=i(`var(--m3e-ripple-enter-duration, ${Xt.motion.duration.long4})`),mr=i(`var(--m3e-ripple-exit-duration, ${Xt.motion.duration.short2})`),ur=i("var(--m3e-ripple-scale-factor, 2.5)");var vr,fr,yr,gr,br,xr;let wr=class extends(As(wi(o,"none"))){constructor(){super(...arguments),vr.add(this),fr.set(this,null),yr.set(this,new Me(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>l(this,vr,"m",xr).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null,this.trigger=null}get visible(){return null!==l(this,fr,"f")}show(e,t,s=!1){l(this,vr,"m",gr).call(this);const i=this.getBoundingClientRect();this.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let r=this.radius;if(!r||isNaN(r)){const s=Math.max(Math.abs(e-i.left),Math.abs(e-i.right)),a=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));r=Math.sqrt(s*s+a*a)}const a=e-i.left,o=t-i.top;h(this,fr,document.createElement("div"),"f"),l(this,fr,"f").classList.add("ripple"),s&&l(this,fr,"f").classList.add("persistent"),l(this,fr,"f").style.left=a-r+"px",l(this,fr,"f").style.top=o-r+"px",l(this,fr,"f").style.width=2*r+"px",l(this,fr,"f").style.height=2*r+"px",l(this,fr,"f").addEventListener("animationend",()=>l(this,vr,"m",br).call(this,s),{once:!0}),l(this,fr,"f").addEventListener("transitionend",()=>l(this,vr,"m",gr).call(this),{once:!0}),this.shadowRoot?.appendChild(l(this,fr,"f"))}hide(){l(this,fr,"f")?.classList.add("exit")}attach(e){super.attach(e),l(this,yr,"f").observe(e)}detach(){this.control&&l(this,yr,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),l(this,vr,"m",gr).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var $r;fr=new WeakMap,yr=new WeakMap,vr=new WeakSet,gr=function(){l(this,fr,"f")?.remove(),h(this,fr,null,"f")},br=function(e){e?l(this,fr,"f")?.classList.add("pressed"):this.hide()},xr=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},wr.styles=a`
318
314
  :host {
319
315
  display: block;
320
316
  position: absolute;
@@ -337,36 +333,36 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
337
333
  bottom: 0;
338
334
  pointer-events: none;
339
335
  transform: scale(0);
340
- border-radius: ${Zt.shape.corner.full};
341
- background-color: color-mix(in srgb, ${cr} ${pr}, transparent);
336
+ border-radius: ${Xt.shape.corner.full};
337
+ background-color: color-mix(in srgb, ${dr} ${cr}, transparent);
342
338
  will-change: background-color, opacity;
343
339
  }
344
340
  .ripple:not(.persistent) {
345
- animation: ripple ${mr} linear;
341
+ animation: ripple ${pr} linear;
346
342
  }
347
343
  .ripple.persistent {
348
- animation: persistent-ripple ${mr} linear;
344
+ animation: persistent-ripple ${pr} linear;
349
345
  }
350
346
  .ripple.persistent.pressed {
351
- transform: scale(${vr});
347
+ transform: scale(${ur});
352
348
  }
353
349
  .ripple.exit {
354
- transition: opacity ${ur} cubic-bezier(0, 0, 0.2, 0.1);
350
+ transition: opacity ${mr} cubic-bezier(0, 0, 0.2, 0.1);
355
351
  opacity: 0;
356
352
  }
357
353
  @keyframes persistent-ripple {
358
354
  to {
359
- transform: scale(${vr});
355
+ transform: scale(${ur});
360
356
  }
361
357
  }
362
358
  @keyframes ripple {
363
359
  to {
364
- transform: scale(${vr});
360
+ transform: scale(${ur});
365
361
  }
366
362
  }
367
363
  @media (prefers-reduced-motion) {
368
364
  .ripple {
369
- transform: scale(${vr});
365
+ transform: scale(${ur});
370
366
  }
371
367
  .ripple:not(.persistent),
372
368
  .ripple.persistent {
@@ -381,34 +377,34 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
381
377
  display: none;
382
378
  }
383
379
  }
384
- `,n([vt({type:Boolean,reflect:!0})],$r.prototype,"disabled",void 0),n([vt({type:Boolean,reflect:!0})],$r.prototype,"centered",void 0),n([vt({type:Boolean,reflect:!0})],$r.prototype,"unbounded",void 0),n([vt({type:Number})],$r.prototype,"radius",void 0),n([vt()],$r.prototype,"trigger",void 0),$r=n([Ve("m3e-ripple")],$r);let _r=class extends o{constructor(){super(...arguments),kr.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",l(this,kr,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",l(this,kr,"f")),"none"!==this.dividers&&this.addEventListener("scroll",l(this,kr,"f")))}render(){return r`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;this.classList.toggle("-above",e),this.classList.toggle("-below",t)}};var Er,Sr;kr=new WeakMap,_r.styles=a`
380
+ `,n([vt({type:Boolean,reflect:!0})],wr.prototype,"disabled",void 0),n([vt({type:Boolean,reflect:!0})],wr.prototype,"centered",void 0),n([vt({type:Boolean,reflect:!0})],wr.prototype,"unbounded",void 0),n([vt({type:Number})],wr.prototype,"radius",void 0),n([vt()],wr.prototype,"trigger",void 0),wr=n([qe("m3e-ripple")],wr);let kr=class extends o{constructor(){super(...arguments),$r.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",l(this,$r,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",l(this,$r,"f")),"none"!==this.dividers&&this.addEventListener("scroll",l(this,$r,"f")))}render(){return r`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;this.classList.toggle("-above",e),this.classList.toggle("-below",t)}};var _r,Er,Sr,Ar;$r=new WeakMap,kr.styles=a`
385
381
  :host {
386
382
  display: block;
387
383
  overflow-y: auto;
388
384
  position: relative;
389
385
  box-sizing: border-box;
390
- scrollbar-color: ${Zt.scrollbar.color};
386
+ scrollbar-color: ${Xt.scrollbar.color};
391
387
  border-top: var(--m3e-divider-thickness, 1px) solid transparent;
392
388
  border-bottom: var(--m3e-divider-thickness, 1px) solid transparent;
393
- outline: var(--m3e-focus-ring-color, ${Zt.color.secondary});
389
+ outline: var(--m3e-focus-ring-color, ${Xt.color.secondary});
394
390
  outline-width: var(--m3e-focus-ring-thickness, 0.25rem);
395
391
  outline-offset: calc(var(--m3e-focus-ring-thickness, 0.25rem) / 2);
396
392
  }
397
393
  :host([thin]) {
398
- scrollbar-width: ${Zt.scrollbar.thinWidth};
394
+ scrollbar-width: ${Xt.scrollbar.thinWidth};
399
395
  }
400
396
  :host(:not([thin])) {
401
- scrollbar-width: ${Zt.scrollbar.width};
397
+ scrollbar-width: ${Xt.scrollbar.width};
402
398
  }
403
399
  :host(:not(:focus-visible).-above) {
404
- border-top-color: var(--m3e-divider-color, ${Zt.color.outlineVariant});
400
+ border-top-color: var(--m3e-divider-color, ${Xt.color.outlineVariant});
405
401
  }
406
402
  :host(:not(:focus-visible).-below) {
407
- border-bottom-color: var(--m3e-divider-color, ${Zt.color.outlineVariant});
403
+ border-bottom-color: var(--m3e-divider-color, ${Xt.color.outlineVariant});
408
404
  }
409
405
  :host(:focus-visible) {
410
406
  outline-style: solid;
411
- animation: grow-shrink var(--m3e-focus-ring-duration, ${Zt.motion.duration.long2});
407
+ animation: grow-shrink var(--m3e-focus-ring-duration, ${Xt.motion.duration.long2});
412
408
  }
413
409
  @keyframes grow-shrink {
414
410
  50% {
@@ -432,7 +428,7 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
432
428
  animation: none;
433
429
  }
434
430
  }
435
- `,n([vt()],_r.prototype,"dividers",void 0),n([vt({type:Boolean,reflect:!0})],_r.prototype,"thin",void 0),n([Pe(40)],_r.prototype,"_updateScroll",null),_r=n([Ve("m3e-scroll-container")],_r);let Ar=class extends o{constructor(){super(...arguments),Er.add(this),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),this.classList.toggle("-no-animate",!0)}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&this.classList.toggle("-no-animate",!0),l(this,Er,"m",Sr).call(this),null!==this.selectedIndex&&this.classList.contains("-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&this.classList.toggle("-no-animate",!1)}))}render(){return r`<slot @slotchange="${l(this,Er,"m",Sr)}"></slot>`}};Er=new WeakSet,Sr=function(){const e=this.selectedIndex??this._items.length;for(let t=0;t<this._items.length;t++){const s=this._items[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},Ar.styles=a`
431
+ `,n([vt()],kr.prototype,"dividers",void 0),n([vt({type:Boolean,reflect:!0})],kr.prototype,"thin",void 0),n([Pe(40)],kr.prototype,"_updateScroll",null),kr=n([qe("m3e-scroll-container")],kr);let Cr=class extends o{constructor(){super(...arguments),_r.add(this),Er.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),this.classList.toggle("-no-animate",!0)}update(e){super.update(e),e.has("selectedIndex")&&(null===this.selectedIndex&&this.classList.toggle("-no-animate",!0),l(this,_r,"m",Ar).call(this),null!==this.selectedIndex&&this.classList.contains("-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&this.classList.toggle("-no-animate",!1)}))}render(){return r`<slot @slotchange="${l(this,_r,"m",Sr)}"></slot>`}};Er=new WeakMap,_r=new WeakSet,Sr=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of l(this,Er,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");h(this,Er,t,"f"),l(this,_r,"m",Ar).call(this)},Ar=function(){const e=this.selectedIndex??l(this,Er,"f").length;for(let t=0;t<l(this,Er,"f").length;t++){const s=l(this,Er,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},Cr.styles=a`
436
432
  :host {
437
433
  display: flex;
438
434
  position: relative;
@@ -441,7 +437,7 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
441
437
  ::slotted(*) {
442
438
  width: 100%;
443
439
  top: 0;
444
- transition: ${i(`left var(--m3e-slide-animation-duration, ${Zt.motion.duration.long2}) ${Zt.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Zt.motion.duration.long2}) ${Zt.motion.easing.standard} allow-discrete`)};
440
+ transition: ${i(`left var(--m3e-slide-animation-duration, ${Xt.motion.duration.long2}) ${Xt.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${Xt.motion.duration.long2}) ${Xt.motion.easing.standard} allow-discrete`)};
445
441
  }
446
442
  ::slotted(.-before),
447
443
  ::slotted(.-after) {
@@ -467,7 +463,7 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
467
463
  transition: none;
468
464
  }
469
465
  }
470
- `,n([function(e){return(t,s)=>{const{slot:i,selector:r}=e??{},a="slot"+(i?`[name=${i}]`:":not([name])");return ft(t,s,{get(){const t=this.renderRoot?.querySelector(a),s=t?.assignedElements(e)??[];return void 0===r?s:s.filter(e=>e.matches(r))}})}}({flatten:!0})],Ar.prototype,"_items",void 0),n([vt({attribute:"selected-index",type:Number,reflect:!0})],Ar.prototype,"selectedIndex",void 0),Ar=n([Ve("m3e-slide")],Ar);const Cr=i(`var(--m3e-state-layer-hover-color, ${Zt.color.onSurface})`),zr=i(`var(--m3e-state-layer-hover-opacity, ${Zt.state.hoverStateLayerOpacity})`),Lr=i(`var(--m3e-state-layer-focus-color, ${Zt.color.onSurface})`),Mr=i(`var(--m3e-state-layer-focus-opacity, ${Zt.state.focusStateLayerOpacity})`),Wr=i(`var(--m3e-state-layer-duration, ${Zt.motion.duration.medium1})`),Pr=i(`var(--m3e-state-layer-easing, ${Zt.motion.easing.standard})`);var Tr,Fr,Hr,Dr,Or;let Ur=class extends(Cs($i(o,"none"))){constructor(){super(...arguments),Tr.add(this),Fr.set(this,new Ae(this,{target:null,callback:e=>l(this,Tr,"m",Dr).call(this,e)})),Hr.set(this,new Se(this,{target:null,callback:(e,t)=>l(this,Tr,"m",Or).call(this,e&&t)})),this.disabled=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),l(this,Fr,"f").observe(e),l(this,Hr,"f").observe(e)}detach(){this.control&&(l(this,Fr,"f").unobserve(this.control),l(this,Hr,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused"))}render(){return r`<div class="layer"></div>`}};Fr=new WeakMap,Hr=new WeakMap,Tr=new WeakSet,Dr=function(e){this.disabled||(e?this.show("hover"):this.hide("hover"))},Or=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Ur.styles=a`
466
+ `,n([vt({attribute:"selected-index",type:Number,reflect:!0})],Cr.prototype,"selectedIndex",void 0),Cr=n([qe("m3e-slide")],Cr);const zr=i(`var(--m3e-state-layer-hover-color, ${Xt.color.onSurface})`),Lr=i(`var(--m3e-state-layer-hover-opacity, ${Xt.state.hoverStateLayerOpacity})`),Mr=i(`var(--m3e-state-layer-focus-color, ${Xt.color.onSurface})`),Wr=i(`var(--m3e-state-layer-focus-opacity, ${Xt.state.focusStateLayerOpacity})`),Pr=i(`var(--m3e-state-layer-duration, ${Xt.motion.duration.medium1})`),Tr=i(`var(--m3e-state-layer-easing, ${Xt.motion.easing.standard})`);var Fr,Hr,Dr,Or,Ur;let Nr=class extends(As(wi(o,"none"))){constructor(){super(...arguments),Fr.add(this),Hr.set(this,new Ae(this,{target:null,callback:e=>l(this,Fr,"m",Or).call(this,e)})),Dr.set(this,new Se(this,{target:null,callback:(e,t)=>l(this,Fr,"m",Ur).call(this,e&&t)})),this.disabled=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(e){super.attach(e),l(this,Hr,"f").observe(e),l(this,Dr,"f").observe(e)}detach(){this.control&&(l(this,Hr,"f").unobserve(this.control),l(this,Dr,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused"))}render(){return r`<div class="layer"></div>`}};Hr=new WeakMap,Dr=new WeakMap,Fr=new WeakSet,Or=function(e){this.disabled||(e?this.show("hover"):this.hide("hover"))},Ur=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Nr.styles=a`
471
467
  :host {
472
468
  display: block;
473
469
  }
@@ -483,13 +479,13 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
483
479
  }
484
480
  .layer {
485
481
  will-change: background-color;
486
- transition: ${i(`background-color ${Wr} ${Pr}`)};
482
+ transition: ${i(`background-color ${Pr} ${Tr}`)};
487
483
  }
488
484
  .layer.focused {
489
- background-color: color-mix(in srgb, ${Lr} ${Mr}, transparent);
485
+ background-color: color-mix(in srgb, ${Mr} ${Wr}, transparent);
490
486
  }
491
487
  .layer.hover {
492
- background-color: color-mix(in srgb, ${Cr} ${zr}, transparent);
488
+ background-color: color-mix(in srgb, ${zr} ${Lr}, transparent);
493
489
  }
494
490
  @media (prefers-reduced-motion) {
495
491
  .layer {
@@ -501,7 +497,7 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
501
497
  display: none;
502
498
  }
503
499
  }
504
- `,n([yt(".layer")],Ur.prototype,"_layer",void 0),n([vt({type:Boolean,reflect:!0})],Ur.prototype,"disabled",void 0),Ur=n([Ve("m3e-state-layer")],Ur);let Nr=class extends o{render(){return r`<span class="base"><slot></slot></span>`}};var Ir,Rr,Br,qr,Vr,jr,Kr,Xr;Nr.styles=a`
500
+ `,n([ft(".layer")],Nr.prototype,"_layer",void 0),n([vt({type:Boolean,reflect:!0})],Nr.prototype,"disabled",void 0),Nr=n([qe("m3e-state-layer")],Nr);let Ir=class extends o{render(){return r`<span class="base"><slot></slot></span>`}};var Rr,Br,Vr,qr,jr,Kr,Xr,Zr;Ir.styles=a`
505
501
  :host {
506
502
  flex: 1 1 auto;
507
503
  display: inline-flex;
@@ -516,16 +512,16 @@ const ci=e=>e??Gs,pi=Symbol("renderPseudoLink");function mi(e){return Ne(e,"down
516
512
  text-overflow: ellipsis;
517
513
  white-space: nowrap;
518
514
  }
519
- `,Nr=n([Ve("m3e-text-overflow")],Nr);let Zr=Xr=class extends o{constructor(){super(),Ir.add(this),Rr.set(this,"m3e-text-highlight-"+Xr.__nextId++),Br.set(this,new Array),qr.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,qr,new CSSStyleSheet,"f"),l(this,qr,"f").replaceSync(a`
520
- ::highlight(${i(l(this,Rr,"f"))}) {
521
- background-color: var(--m3e-text-highlight-container-color, ${Zt.color.secondaryContainer});
522
- color: var(--m3e-text-highlight-color, ${Zt.color.onSecondaryContainer});
515
+ `,Ir=n([qe("m3e-text-overflow")],Ir);let Gr=Zr=class extends o{constructor(){super(),Rr.add(this),Br.set(this,"m3e-text-highlight-"+Zr.__nextId++),Vr.set(this,new Array),qr.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,qr,new CSSStyleSheet,"f"),l(this,qr,"f").replaceSync(a`
516
+ ::highlight(${i(l(this,Br,"f"))}) {
517
+ background-color: var(--m3e-text-highlight-container-color, ${Xt.color.secondaryContainer});
518
+ color: var(--m3e-text-highlight-color, ${Xt.color.onSecondaryContainer});
523
519
  text-decoration: var(--m3e-text-highlight-decoration);
524
520
  text-shadow: var(--m3e-text-highlight-shadow);
525
521
  }
526
- `.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return l(this,Br,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,qr,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,qr,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,qr,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,Ir,"m",Kr).call(this)}render(){return r`<slot @slotchange="${l(this,Ir,"m",Kr)}"></slot>`}};Rr=new WeakMap,Br=new WeakMap,qr=new WeakMap,Ir=new WeakSet,Vr=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},jr=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Ir,"m",Vr).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Ir,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Ir,"m",Vr).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Ir,"m",e).call(this,t,s)}})},Kr=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,Rr,"f")),l(this,Br,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,Br,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,Ir,"m",jr).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,Br,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let r=0;for(;r<s.length;){const e=s.indexOf(t,r);if(-1===e)break;i.push(e),r=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f"),l(this,Br,"f").length>0&&CSS.highlights.set(l(this,Rr,"f"),new Highlight(...l(this,Br,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,Br,"f")],bubbles:!1,composed:!1}))},Zr.styles=a`
522
+ `.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return l(this,Vr,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,qr,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,qr,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,qr,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,Rr,"m",Xr).call(this)}render(){return r`<slot @slotchange="${l(this,Rr,"m",Xr)}"></slot>`}};Br=new WeakMap,Vr=new WeakMap,qr=new WeakMap,Rr=new WeakSet,jr=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},Kr=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Rr,"m",jr).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Rr,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Rr,"m",jr).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Rr,"m",e).call(this,t,s)}})},Xr=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,Br,"f")),l(this,Vr,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,Vr,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,Rr,"m",Kr).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,Vr,e.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:s})=>{const i=new Array;let r=0;for(;r<s.length;){const e=s.indexOf(t,r);if(-1===e)break;i.push(e),r=e+t.length}return i.map(s=>{const i=new Range;return i.setStart(e,s),i.setEnd(e,s+t.length),i})}).flat(),"f"),l(this,Vr,"f").length>0&&CSS.highlights.set(l(this,Br,"f"),new Highlight(...l(this,Vr,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,Vr,"f")],bubbles:!1,composed:!1}))},Gr.styles=a`
527
523
  :host {
528
524
  display: contents;
529
525
  }
530
- `,Zr.__nextId=0,n([vt({type:Boolean,reflect:!0})],Zr.prototype,"disabled",void 0),n([vt()],Zr.prototype,"term",void 0),n([vt({attribute:"case-sensitive",type:Boolean})],Zr.prototype,"caseSensitive",void 0),Zr=Xr=n([Ve("m3e-text-highlight")],Zr);export{qe as AttachInternals,bt as Checked,wt as CheckedIndeterminate,gs as ConstraintValidation,Zt as DesignToken,zt as Dirty,Jt as Disabled,ss as DisabledInteractive,bs as EventAttribute,Se as FocusController,ws as Focusable,ms as FormAssociated,_s as FormSubmitter,Ae as HoverController,Cs as HtmlFor,Ce as IntersectionController,zs as KeyboardClick,os as Labelled,vi as LinkButton,ze as LongPressController,Di as M3eCollapsibleElement,Qi as M3eElevationElement,lr as M3eFocusRingElement,hr as M3ePseudoCheckboxElement,dr as M3ePseudoRadioElement,$r as M3eRippleElement,_r as M3eScrollContainerElement,Ar as M3eSlide,Ur as M3eStateLayerElement,Zr as M3eTextHighlightElement,Nr as M3eTextOverflowElement,Le as MutationController,Me as PressedController,yi as ReadOnly,bi as Required,wi as RequiredConstraintValidation,We as ResizeController,$i as Role,Te as ScrollController,kt as Selected,Wt as Touched,_i as Vertical,St as checkOrSelect,Pe as debounce,ls as defaultValue,ns as formValue,Ei as getTextContent,Si as guid,Ai as hasAssignedNodes,Ne as hasKeys,Ie as internals,Re as isAttachInternalsMixin,xt as isCheckedIndeterminateMixin,gt as isCheckedMixin,Et as isCheckedOrSelected,_t as isCheckedOrSelectedMixin,vs as isConstraintValidationMixin,At as isDirtyMixin,Yt as isDisabledInteractiveMixin,Gt as isDisabledMixin,hs as isFormAssociatedMixin,$s as isFormSubmitterMixin,Es as isHtmlForMixin,rs as isLabelledMixin,mi as isLinkButtonMixin,fi as isReadOnlyMixin,xi as isRequiredConstraintValidationMixin,gi as isRequiredMixin,$t as isSelectedMixin,Lt as isTouchedMixin,ki as isVerticalMixin,Ci as prefersReducedMotion,pi as renderPseudoLink,Ue as safeStyleMap,zi as scrollIntoViewIfNeeded,is as updateLabels,us as validate};
526
+ `,Gr.__nextId=0,n([vt({type:Boolean,reflect:!0})],Gr.prototype,"disabled",void 0),n([vt()],Gr.prototype,"term",void 0),n([vt({attribute:"case-sensitive",type:Boolean})],Gr.prototype,"caseSensitive",void 0),Gr=Zr=n([qe("m3e-text-highlight")],Gr);export{Ve as AttachInternals,gt as Checked,xt as CheckedIndeterminate,ys as ConstraintValidation,Xt as DesignToken,Ct as Dirty,Gt as Disabled,ts as DisabledInteractive,gs as EventAttribute,Se as FocusController,xs as Focusable,ps as FormAssociated,ks as FormSubmitter,Ae as HoverController,As as HtmlFor,Ce as IntersectionController,Cs as KeyboardClick,as as Labelled,ui as LinkButton,ze as LongPressController,Hi as M3eCollapsibleElement,Yi as M3eElevationElement,nr as M3eFocusRingElement,lr as M3ePseudoCheckboxElement,hr as M3ePseudoRadioElement,wr as M3eRippleElement,kr as M3eScrollContainerElement,Cr as M3eSlideElement,Nr as M3eStateLayerElement,Gr as M3eTextHighlightElement,Ir as M3eTextOverflowElement,Le as MutationController,Me as PressedController,fi as ReadOnly,gi as Required,xi as RequiredConstraintValidation,We as ResizeController,wi as Role,Te as ScrollController,$t as Selected,Mt as Touched,ki as Vertical,Et as checkOrSelect,Pe as debounce,ns as defaultValue,os as formValue,_i as getTextContent,Ei as guid,Si as hasAssignedNodes,Ne as hasKeys,Ie as internals,Re as isAttachInternalsMixin,bt as isCheckedIndeterminateMixin,yt as isCheckedMixin,_t as isCheckedOrSelected,kt as isCheckedOrSelectedMixin,us as isConstraintValidationMixin,St as isDirtyMixin,Jt as isDisabledInteractiveMixin,Zt as isDisabledMixin,ls as isFormAssociatedMixin,ws as isFormSubmitterMixin,_s as isHtmlForMixin,is as isLabelledMixin,pi as isLinkButtonMixin,vi as isReadOnlyMixin,bi as isRequiredConstraintValidationMixin,yi as isRequiredMixin,wt as isSelectedMixin,zt as isTouchedMixin,$i as isVerticalMixin,Ai as prefersReducedMotion,ci as renderPseudoLink,Ue as safeStyleMap,Ci as scrollIntoViewIfNeeded,ss as updateLabels,ms as validate};
531
527
  //# sourceMappingURL=index.min.js.map