@m3e/core 1.0.6 → 1.1.0

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,34 +3,34 @@
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,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)}}function Se(){return!e&&matchMedia("(forced-colors: active)").matches}function Ae(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+=Ae(i,t);else for(const i of e.childNodes)s+=Ae(i,t)}return t&&(s=s.trim()),s}function Ce(){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 ze(e){return e.assignedNodes({flatten:!0}).length>0}function Le(){return e||matchMedia("(prefers-reduced-motion)").matches}function Me(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}d=new WeakMap,c=new WeakMap,p=new WeakMap;class We 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")||Se(),t)},g=function(e){l(this,u,"f").call(this,!1,!1,e.target)};class Pe 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 Te 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 Fe 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 He 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 De 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 Oe 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 Ue(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 Ne 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([Ue(40)],Ne.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 n}from"lit";function o(e,t,s,i){var r,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,s,n):r(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}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 c,d,p,m,u,f,v,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,X,Z,K,Y,Q,G,J,ee,te,se,ie,re,ae,ne,oe,le,he,ce,de,pe,me,ue,fe,ve,ye,ge,be,xe,we,$e,ke,_e;"function"==typeof SuppressedError&&SuppressedError;class Ee{constructor(e,t){c.set(this,void 0),d.set(this,void 0),p.set(this,new Set),h(this,c,e,"f"),h(this,d,t.target,"f"),l(this,c,"f").addController(this)}get targets(){return l(this,p,"f").values()}hostConnected(){null!==l(this,d,"f")&&this.observe(l(this,d,"f")??l(this,c,"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)}}function Se(){return!e&&matchMedia("(forced-colors: active)").matches}function Ae(e,t,s){return e+(t-e)*s}function Ce(e,t,s,i){return{x:Math.pow(1-i,2)*e.x+2*(1-i)*i*t.x+Math.pow(i,2)*s.x,y:Math.pow(1-i,2)*e.y+2*(1-i)*i*t.y+Math.pow(i,2)*s.y}}function ze(e,t,s,i,r){return{x:Math.pow(1-r,3)*e.x+3*Math.pow(1-r,2)*r*t.x+3*(1-r)*Math.pow(r,2)*s.x+Math.pow(r,3)*i.x,y:Math.pow(1-r,3)*e.y+3*Math.pow(1-r,2)*r*t.y+3*(1-r)*Math.pow(r,2)*s.y+Math.pow(r,3)*i.y}}function Le(e,t){const s=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let i={x:0,y:0},r={x:0,y:0};const a=[];for(const e of s)if("M"===e.type)i={x:e.nums[0],y:e.nums[1]},r=i;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},s=t.x-i.x,r=t.y-i.y;a.push({type:"L",pts:[i,t],length:Math.hypot(s,r)}),i=t}else if("H"===e.type){const t={x:e.nums[0],y:i.y},s=t.x-i.x;a.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("V"===e.type){const t={x:i.x,y:e.nums[0]},s=t.y-i.y;a.push({type:"L",pts:[i,t],length:Math.abs(s)}),i=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]};let r=0,n=i;const o=20;for(let e=1;e<=o;e++){const a=Ce(i,t,s,e/o);r+=Math.hypot(a.x-n.x,a.y-n.y),n=a}a.push({type:"Q",pts:[i,t,s],length:r}),i=s}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},s={x:e.nums[2],y:e.nums[3]},r={x:e.nums[4],y:e.nums[5]};let n=0,o=i;const l=20;for(let e=1;e<=l;e++){const a=ze(i,t,s,r,e/l);n+=Math.hypot(a.x-o.x,a.y-o.y),o=a}a.push({type:"C",pts:[i,t,s,r],length:n}),i=r}else if("Z"===e.type){const e=r.x-i.x,t=r.y-i.y;a.push({type:"L",pts:[i,r],length:Math.hypot(e,t)}),i=r}const n=a.reduce((e,t)=>e+t.length,0),o=n/(t-1),l=[];let h=0,c=0;for(let e=0;e<t;e++){const t=e*o;for(;c<a.length&&h+a[c].length<t;)h+=a[c].length,c++;const s=a[c];if(!s)break;const i=(t-h)/s.length;if("L"===s.type){const[e,t]=s.pts;l.push({x:Ae(e.x,t.x,i),y:Ae(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,r]=s.pts;l.push(Ce(e,t,r,i))}else if("C"===s.type){const[e,t,r,a]=s.pts;l.push(ze(e,t,r,a,i))}}return l}function Me(e,t,s){return Math.max(t,Math.min(s,e))}function We(e,t){const s=e.length,i=new Array(s);for(let r=0;r<s;r++)i[r]=e[(r+t)%s];return i}function Pe(e,t){const s=e.length;let i=0,r=1/0;for(let a=0;a<s;a++){let n=0;for(let i=0;i<s;i++){const o=t[(i+a)%s],l=e[i],h=o.x-l.x,c=o.y-l.y;if(n+=h*h+c*c,n>=r)break}n<r&&(r=n,i=a)}return i}function Te(e){let t=0;const s=e.length;for(let i=0;i<s;i++){const r=e[i],a=e[(i+1)%s];t+=r.x*a.y-a.x*r.y}return t/2}function Fe(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,s=1/0,i=-1/0,r=-1/0;for(const a of e)a.x<t&&(t=a.x),a.x>i&&(i=a.x),a.y<s&&(s=a.y),a.y>r&&(r=a.y);return{minX:t,minY:s,maxX:i,maxY:r,width:i-t,height:r-s}}(e),s=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),i=Math.max(t.width,t.height)||1,r=s.map(e=>({x:e.x/i,y:e.y/i})),a=t.width/i,n=t.height/i,o=(1-a)/2,l=(1-n)/2;return r.map(e=>({x:e.x+o,y:e.y+l}))}),s=t[0],i=Math.sign(Te(s));for(let e=1;e<t.length;e++){let r=t[e];const a=Math.sign(Te(r));0!==a&&a!==i&&(r=r.slice().reverse());const n=Pe(s,r);t[e]=We(r,n)}return t}(e.map(e=>Le(e,t))).map(e=>function(e){const t=e.map(e=>{const t=Me(100*e.x,0,100),s=Me(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`});return`${t.join(", ")}`}(e))}function He(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+=He(i,t);else for(const i of e.childNodes)s+=He(i,t)}return t&&(s=s.trim()),s}function De(){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 Oe(e){return e.assignedNodes({flatten:!0}).length>0}function Ue(){return e||matchMedia("(prefers-reduced-motion)").matches}function Ne(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}c=new WeakMap,d=new WeakMap,p=new WeakMap;class Ie extends Ee{constructor(e,t){super(e,t),m.add(this),u.set(this,void 0),f.set(this,e=>l(this,m,"m",y).call(this,e)),v.set(this,e=>l(this,m,"m",g).call(this,e)),h(this,u,t.callback,"f")}_observe(e){e.addEventListener("keydown",l(this,f,"f")),e.addEventListener("focusin",l(this,f,"f")),e.addEventListener("focusout",l(this,v,"f"))}_unobserve(e){e.removeEventListener("keydown",l(this,f,"f")),e.removeEventListener("focusin",l(this,f,"f")),e.removeEventListener("focusout",l(this,v,"f"))}}u=new WeakMap,f=new WeakMap,v=new WeakMap,m=new WeakSet,y=function(e){const t=e.target;l(this,u,"f").call(this,!0,t.matches(":focus-visible")||Se(),t)},g=function(e){l(this,u,"f").call(this,!1,!1,e.target)};class Re 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 Be 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 Ve 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 qe extends Ee{constructor(t,s){super(t,s),V.set(this,void 0),q.set(this,void 0),j.set(this,!1),X.set(this,void 0),Z.set(this,void 0),K.set(this,!0),h(this,V,t,"f"),h(this,q,s.callback,"f"),h(this,j,s.skipInitial??!1,"f"),h(this,X,s.config,"f"),e||(window.MutationObserver?h(this,Z,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,Z,"f")&&!l(this,j,"f")&&l(this,K,"f")){const e=l(this,Z,"f").takeRecords();e.length>0&&l(this,q,"f").call(this,e,l(this,Z,"f"))}h(this,K,!1,"f")}hostDisconnected(){super.hostDisconnected(),l(this,Z,"f")?.disconnect()}_observe(e){l(this,Z,"f")?.observe(e,l(this,X,"f")),h(this,K,!0,"f"),l(this,V,"f").requestUpdate()}_unobserve(){l(this,Z,"f")?.disconnect();for(const e of this.targets)l(this,Z,"f")?.observe(e,l(this,X,"f"))}}V=new WeakMap,q=new WeakMap,j=new WeakMap,X=new WeakMap,Z=new WeakMap,K=new WeakMap;class je extends Ee{constructor(e,t){super(e,t),Y.add(this),Q.set(this,void 0),G.set(this,void 0),J.set(this,void 0),ee.set(this,new Map),te.set(this,void 0),se.set(this,e=>l(this,Y,"m",oe).call(this,e)),ie.set(this,e=>l(this,Y,"m",le).call(this,e)),re.set(this,e=>l(this,Y,"m",he).call(this,e)),ae.set(this,e=>l(this,Y,"m",ce).call(this,e)),ne.set(this,e=>l(this,Y,"m",de).call(this,e)),h(this,Q,t.capture,"f"),h(this,G,t.callback,"f"),h(this,J,t.isPressedKey,"f"),h(this,te,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",l(this,ie,"f"),{capture:l(this,Q,"f")}),document.addEventListener("touchend",l(this,re,"f"),{capture:l(this,Q,"f")}),document.addEventListener("touchcancel",l(this,re,"f"),{capture:l(this,Q,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",l(this,ie,"f"),{capture:l(this,Q,"f")}),document.addEventListener("touchend",l(this,re,"f"),{capture:l(this,Q,"f")}),document.addEventListener("touchcancel",l(this,re,"f"),{capture:l(this,Q,"f")}),super.hostDisconnected(),l(this,ee,"f").clear()}_observe(e){e.addEventListener("pointerdown",l(this,se,"f"),{capture:l(this,Q,"f")}),l(this,J,"f")&&(e.addEventListener("keydown",l(this,ae,"f"),{capture:l(this,Q,"f")}),e.addEventListener("keyup",l(this,ne,"f"),{capture:l(this,Q,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",l(this,se,"f"),{capture:l(this,Q,"f")}),l(this,J,"f")&&(e.removeEventListener("keydown",l(this,ae,"f"),{capture:l(this,Q,"f")}),e.removeEventListener("keyup",l(this,ne,"f"),{capture:l(this,Q,"f")}))}}Q=new WeakMap,G=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,ae=new WeakMap,ne=new WeakMap,Y=new WeakSet,oe=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,G,"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,G,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ee,"f").delete(e),l(this,G,"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,G,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ee,"f").delete(e),l(this,G,"f").call(this,!1,{x:t,y:s},e))}},ce=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(l(this,J,"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,G,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},de=function(e){const t=e.target;if(l(this,ee,"f").has(t)&&l(this,J,"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,G,"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,G,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}};class Xe extends Ee{constructor(t,s){super(t,s),pe.set(this,void 0),me.set(this,void 0),ue.set(this,void 0),fe.set(this,void 0),ve.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,fe,s.config,"f"),e||(window.ResizeObserver?h(this,ve,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,ve,"f")&&!l(this,ue,"f")&&l(this,ye,"f")&&l(this,me,"f").call(this,[],l(this,ve,"f")),h(this,ye,!1,"f")}_observe(e){l(this,ve,"f")?.observe(e,l(this,fe,"f")),h(this,ye,!0,"f"),l(this,pe,"f").requestUpdate()}_unobserve(e){l(this,ve,"f")?.unobserve(e)}}function Ze(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,fe=new WeakMap,ve=new WeakMap,ye=new WeakMap;class Ke 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)},o([Ze(40)],Ke.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 Ie=1;let Re=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 Be="important",Ve=" !"+Be;const qe=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Re{constructor(e){if(super(e),e.type!==Ie||"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(Ve);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?Be:""):i[e]=s}}return s}});function je(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const Ke=Symbol("internals");function Xe(e){return je(e,Ke)}const Ze=Symbol("_internals");function Ge(e,t){class s extends e{get[Ke](){return this[Ze]??(this[Ze]=this.attachInternals())}}return s.formAssociated=t,s}
12
+ const Ye=1;let Qe=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 Ge="important",Je=" !"+Ge;const et=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends Qe{constructor(e){if(super(e),e.type!==Ye||"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(Je);e.includes("-")||t?i.setProperty(e,t?s.slice(0,-11):s,t?Ge:""):i[e]=s}}return s}});function tt(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const st=Symbol("internals");function it(e){return tt(e,st)}const rt=Symbol("_internals");function at(e,t){class s extends e{get[st](){return this[rt]??(this[rt]=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 Je=e=>(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},Ye=globalThis,Qe=Ye.ShadowRoot&&(void 0===Ye.ShadyCSS||Ye.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,et=Symbol(),tt=new WeakMap;
17
+ */const nt=e=>(t,s)=>{void 0!==s?s.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ot=globalThis,lt=ot.ShadowRoot&&(void 0===ot.ShadyCSS||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ht=Symbol(),ct=new WeakMap;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2019 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */let st=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Qe&&void 0===e){const s=void 0!==t&&1===t.length;s&&(e=tt.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&tt.set(t,e))}return e}toString(){return this.cssText}};const it=Qe?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return(e=>new st("string"==typeof e?e:e+"",void 0,et))(t)})(e):e,{is:rt,defineProperty:at,getOwnPropertyDescriptor:ot,getOwnPropertyNames:nt,getOwnPropertySymbols:lt,getPrototypeOf:ht}=Object,dt=globalThis,ct=dt.trustedTypes,pt=ct?ct.emptyScript:"",mt=dt.reactiveElementPolyfillSupport,ut=(e,t)=>e,vt={toAttribute(e,t){switch(t){case Boolean:e=e?pt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=null!==e;break;case Number:s=null===e?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch(e){s=null}}return s}},ft=(e,t)=>!rt(e,t),yt={attribute:!0,type:String,converter:vt,reflect:!1,useDefault:!1,hasChanged:ft};
22
+ */let dt=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==ht)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(lt&&void 0===e){const s=void 0!==t&&1===t.length;s&&(e=ct.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&ct.set(t,e))}return e}toString(){return this.cssText}};const pt=lt?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return(e=>new dt("string"==typeof e?e:e+"",void 0,ht))(t)})(e):e,{is:mt,defineProperty:ut,getOwnPropertyDescriptor:ft,getOwnPropertyNames:vt,getOwnPropertySymbols:yt,getPrototypeOf:gt}=Object,bt=globalThis,xt=bt.trustedTypes,wt=xt?xt.emptyScript:"",$t=bt.reactiveElementPolyfillSupport,kt=(e,t)=>e,_t={toAttribute(e,t){switch(t){case Boolean:e=e?wt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=null!==e;break;case Number:s=null===e?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch(e){s=null}}return s}},Et=(e,t)=>!mt(e,t),St={attribute:!0,type:String,converter:_t,reflect:!1,useDefault:!1,hasChanged:Et};
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */Symbol.metadata??=Symbol("metadata"),dt.litPropertyMetadata??=new WeakMap;class gt extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=yt){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(e,s,t);void 0!==i&&at(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){const{get:i,set:r}=ot(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const a=i?.call(this);r?.call(this,t),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??yt}static _$Ei(){if(this.hasOwnProperty(ut("elementProperties")))return;const e=ht(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ut("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ut("properties"))){const e=this.properties,t=[...nt(e),...lt(e)];for(const s of t)this.createProperty(s,e[s])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const s=this._$Eu(e,t);void 0!==s&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const e of s)t.unshift(it(e))}else void 0!==e&&t.push(it(e));return t}static _$Eu(e,t){const s=t.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const s of t.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(Qe)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const s of t){const t=document.createElement("style"),i=Ye.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=s.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$ET(e,t){const s=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:vt).toAttribute(t,s.type);this._$Em=e,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(e,t){const s=this.constructor,i=s._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=s.getPropertyOptions(i),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:vt;this._$Em=i;const a=r.fromAttribute(t,e.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,t,s){if(void 0!==e){const i=this.constructor,r=this[e];if(s??=i.getPropertyOptions(e),!((s.hasChanged??ft)(r,t)||s.useDefault&&s.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,s))))return;this.C(e,t,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:s,reflect:i,wrapped:r},a){s&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==r||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||s||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,s]of e){const{wrapped:e}=s,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,s,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}gt.elementStyles=[],gt.shadowRootOptions={mode:"open"},gt[ut("elementProperties")]=new Map,gt[ut("finalized")]=new Map,mt?.({ReactiveElement:gt}),(dt.reactiveElementVersions??=[]).push("2.1.1");
27
+ */Symbol.metadata??=Symbol("metadata"),bt.litPropertyMetadata??=new WeakMap;class At extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=St){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(e,s,t);void 0!==i&&ut(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){const{get:i,set:r}=ft(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){const a=i?.call(this);r?.call(this,t),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??St}static _$Ei(){if(this.hasOwnProperty(kt("elementProperties")))return;const e=gt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(kt("properties"))){const e=this.properties,t=[...vt(e),...yt(e)];for(const s of t)this.createProperty(s,e[s])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const s=this._$Eu(e,t);void 0!==s&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const e of s)t.unshift(pt(e))}else void 0!==e&&t.push(pt(e));return t}static _$Eu(e,t){const s=t.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const s of t.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(lt)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const s of t){const t=document.createElement("style"),i=ot.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=s.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$ET(e,t){const s=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:_t).toAttribute(t,s.type);this._$Em=e,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(e,t){const s=this.constructor,i=s._$Eh.get(e);if(void 0!==i&&this._$Em!==i){const e=s.getPropertyOptions(i),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:_t;this._$Em=i;const a=r.fromAttribute(t,e.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(e,t,s){if(void 0!==e){const i=this.constructor,r=this[e];if(s??=i.getPropertyOptions(e),!((s.hasChanged??Et)(r,t)||s.useDefault&&s.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,s))))return;this.C(e,t,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:s,reflect:i,wrapped:r},a){s&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==r||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||s||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,s]of e){const{wrapped:e}=s,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,s,i)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}At.elementStyles=[],At.shadowRootOptions={mode:"open"},At[kt("elementProperties")]=new Map,At[kt("finalized")]=new Map,$t?.({ReactiveElement:At}),(bt.reactiveElementVersions??=[]).push("2.1.1");
28
28
  /**
29
29
  * @license
30
30
  * Copyright 2017 Google LLC
31
31
  * SPDX-License-Identifier: BSD-3-Clause
32
32
  */
33
- const bt={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:ft},xt=(e=bt,t,s)=>{const{kind:i,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),a.set(s.name,e),"accessor"===i){const{name:i}=s;return{set(s){const r=t.get.call(this);t.set.call(this,s),this.requestUpdate(i,r,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){const{name:i}=s;return function(s){const r=this[i];t.call(this,s),this.requestUpdate(i,r,e)}}throw Error("Unsupported decorator location: "+i)};function wt(e){return(t,s)=>"object"==typeof s?xt(e,t,s):((e,t,s)=>{const i=t.hasOwnProperty(s);return t.constructor.createProperty(s,e),i?Object.getOwnPropertyDescriptor(t,s):void 0})(e,t,s)}
33
+ const Ct={attribute:!0,type:String,converter:_t,reflect:!1,hasChanged:Et},zt=(e=Ct,t,s)=>{const{kind:i,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),a.set(s.name,e),"accessor"===i){const{name:i}=s;return{set(s){const r=t.get.call(this);t.set.call(this,s),this.requestUpdate(i,r,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){const{name:i}=s;return function(s){const r=this[i];t.call(this,s),this.requestUpdate(i,r,e)}}throw Error("Unsupported decorator location: "+i)};function Lt(e){return(t,s)=>"object"==typeof s?zt(e,t,s):((e,t,s)=>{const i=t.hasOwnProperty(s);return t.constructor.createProperty(s,e),i?Object.getOwnPropertyDescriptor(t,s):void 0})(e,t,s)}
34
34
  /**
35
35
  * @license
36
36
  * Copyright 2017 Google LLC
@@ -41,487 +41,16 @@ const bt={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:ft},xt=(e=
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
43
  */
44
- function $t(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 kt(e){return je(e,"checked")}function _t(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([wt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Et(e){return je(e,"indeterminate")&&kt(e)}function St(e){class t extends(_t(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([wt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function At(e){return je(e,"selected")}function Ct(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([wt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function zt(e){return kt(e)||At(e)}function Lt(e){return kt(e)&&e.checked||At(e)&&e.selected}function Mt(e,t){kt(e)?e.checked=t:e.selected=t}function Wt(e){return je(e,"dirty","pristine","markAsDirty","markAsPristine")}const Pt=Symbol("_eventHandler");function Tt(e){var t;return t=Pt,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[Pt])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[Pt])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function Ft(e){return je(e,"touched","untouched","markAsTouched","markAsUntouched")}const Ht=Symbol("_eventHandler");function Dt(e){var t;return t=Ht,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[Ht],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Ht],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const Ot={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)")},Ut={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},Nt={...Ut,calc:e=>i(`calc(max(${e}, ${Ut.scale}) * ${Ut.size})`)},It=`color-mix(in srgb, var(--m3e-elevation-color, ${Ot.shadow}) 20%, transparent)`,Rt=["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"],Bt=`color-mix(in srgb, var(--m3e-elevation-color, ${Ot.shadow}) 14%, transparent)`,Vt=["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"],qt=`color-mix(in srgb, var(--m3e-elevation-color, ${Ot.shadow}) 12%, transparent)`,jt=["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 Kt(e){return`${It} ${Rt[e]},${Bt} ${Vt[e]},${qt} ${jt[e]}`}const Xt={level0:i(`var(--md-sys-elevation-level0, ${Kt(0)})`),level1:i(`var(--md-sys-elevation-level1, ${Kt(1)})`),level2:i(`var(--md-sys-elevation-level2, ${Kt(3)})`),level3:i(`var(--md-sys-elevation-level3, ${Kt(6)})`),level4:i(`var(--md-sys-elevation-level4, ${Kt(8)})`),level5:i(`var(--md-sys-elevation-level5, ${Kt(12)})`)},Zt={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))")},Gt={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:Zt,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:Gt},Yt={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)")},Qt={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)")},es={color:Ot,elevation:Xt,motion:Jt,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${Qt.extraLarge} ${Qt.extraLarge} ${Qt.none} ${Qt.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${Qt.extraLarge})`),extraLargeEnd:i(`${Qt.none} ${Qt.extraLarge} ${Qt.extraLarge} ${Qt.none}`),extraLargeStart:i(`${Qt.extraLarge} ${Qt.none} ${Qt.none} ${Qt.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${Qt.large} ${Qt.large} ${Qt.none} ${Qt.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${Qt.none} ${Qt.large} ${Qt.large} ${Qt.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${Qt.large} ${Qt.none} ${Qt.none} ${Qt.large})`),large:i(`var(--md-sys-shape-corner-large, ${Qt.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${Qt.medium})`),mediumTop:i(`${Qt.medium} ${Qt.medium} ${Qt.none} ${Qt.none}`),mediumEnd:i(`${Qt.none} ${Qt.medium} ${Qt.medium} ${Qt.none}`),mediumStart:i(`${Qt.medium} ${Qt.none} ${Qt.none} ${Qt.medium}`),small:i(`var(--md-sys-shape-corner-small, ${Qt.small})`),smallTop:i(`${Qt.small} ${Qt.small} ${Qt.none} ${Qt.none}`),smallEnd:i(`${Qt.none} ${Qt.small} ${Qt.small} ${Qt.none}`),smallStart:i(`${Qt.small} ${Qt.none} ${Qt.none} ${Qt.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${Qt.extraSmall} ${Qt.extraSmall} ${Qt.none} ${Qt.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${Qt.extraSmall})`),extraSmallEnd:i(`${Qt.none} ${Qt.extraSmall} ${Qt.extraSmall} ${Qt.none}`),extraSmallStart:i(`${Qt.extraSmall} ${Qt.none} ${Qt.none} ${Qt.extraSmall}`),extraSmallBottom:i(`${Qt.none} ${Qt.none} ${Qt.extraSmall} ${Qt.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${Qt.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${Qt.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${Qt.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${Qt.extraExtraLarge})`),value:Qt}},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:Yt,density:Nt};function ts(e){return je(e,"disabled")}function ss(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([wt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function is(e){return je(e,"disabledInteractive")&&ts(e)}const rs=["click","dblclick","auxclick","keydown","keyup"],as=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],os=Symbol("_suppressedEventHandler");function ns(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&as.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){rs.forEach(e=>this.addEventListener(e,this[os],!0)),super.connectedCallback()}disconnectedCallback(){rs.forEach(e=>this.removeEventListener(e,this[os],!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=os,n([wt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const ls=Symbol("updateLabels");function hs(e){return je(e,"labels")&&Xe(e)}const ds=Symbol("_eventHandler");function cs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[ls]()}}get labels(){return this[Ke].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[ds]),this.addEventListener("change",this[ds])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[ds]),this.removeEventListener("change",this[ds])}update(e){super.update(e),this[ls]()}[(t=ds,ls)](){const e=this.hasAttribute("tabindex"),t=ts(this)&&this.disabled||is(this)&&this.disabledInteractive,s=Ft(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, ${es.color.onSurface} 38%, transparent)`:s?`${es.color.error}`:""}}return s.formAssociated=!0,s}const ps=Symbol("formValue"),ms=Symbol("defaultValue");function us(e){return je(e,"disabled","form","name")&&hs(e)&&Xe(e)}const vs=Symbol("_defaultValue"),fs=Symbol("_defaultIndeterminate"),ys=Symbol("_formDisabled");function gs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[Ke].form}get labels(){return this[Ke].labels}get[(t=fs,s=ys,ps)](){return null}get[ms](){return this[vs]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[ys]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),kt(this)?(this[vs]=this.checked,Et(this)&&(this[fs]=this.indeterminate)):"value"in this&&(this[vs]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ke].setFormValue(this[ps])}formDisabledCallback(e){const t=this.disabled;this[ys]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){kt(this)?(this.checked=!0===this[vs],Et(this)&&(this.indeterminate=this[fs])):"value"in this&&(this.value=this[ms]),Wt(this)&&this.markAsPristine(),Ft(this)&&this.markAsUntouched()}}return i.formAssociated=!0,n([wt({noAccessor:!0})],i.prototype,"name",null),n([wt({type:Boolean})],i.prototype,"disabled",null),i}const bs=Symbol("validate");function xs(e){return je(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&us(e)}const ws=Symbol("_updateValidity"),$s=Symbol("_validityMessage");function ks(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[Ke].willValidate}get validity(){return this[ws](),this[Ke].validity}get validationMessage(){return this[ws](),this[Ke].validationMessage}[(s=new WeakSet,bs)](){return this[$s]?{customError:!0}:void 0}reportValidity(){return Ft(this)&&this.markAsTouched(),this[ws](),this[Ke].reportValidity()}checkValidity(){return this[ws](),this[Ke].checkValidity()}setCustomValidity(e){this[$s]=e||void 0,this[ws]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[ws]()}firstUpdated(e){super.firstUpdated(e),this[ws]()}[ws](){if(e||!this.isConnected)return;const t=this[bs](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[$s]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[Ke].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),hs(this)&&this[ls]?.()}}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 _s(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 Es=Symbol("_tabindex");function Ss(e){var t;return t=Es,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Es]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Es]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Es]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Es]}`)}}}function As(e){return je(e,"name","type","value")&&Xe(e)}const Cs=Symbol("_clickHandler");function zs(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||ts(this)&&this.disabled||is(this)&&this.disabledInteractive)return;const t=this[Ke].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[Ke].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[Cs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Cs])}}return t=Cs,s.formAssociated=!0,n([wt()],s.prototype,"name",null),n([wt()],s.prototype,"value",null),n([wt()],s.prototype,"type",void 0),s}function Ls(e){return je(e,"htmlFor","control","attach","detach")}const Ms=Symbol("_control"),Ws=Symbol("_firstUpdated");function Ps(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[Ms]}firstUpdated(e){super.firstUpdated(e),this[Ws]=!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[Ws]&&this.detach()}attach(e){this[Ms]=e}detach(){this[Ms]=null}}return t=Ms,s=Ws,n([wt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function Ts(e,t=!0){var s,i,r;return i=new WeakMap,s=new WeakSet,r=function(e){e.defaultPrevented||e.target!==e.currentTarget||ts(this)&&this.disabled||is(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"))}}}
44
+ function Mt(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 Wt(e){return tt(e,"checked")}function Pt(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 o([Lt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Tt(e){return tt(e,"indeterminate")&&Wt(e)}function Ft(e){class t extends(Pt(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 o([Lt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function Ht(e){return tt(e,"selected")}function Dt(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 o([Lt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function Ot(e){return Wt(e)||Ht(e)}function Ut(e){return Wt(e)&&e.checked||Ht(e)&&e.selected}function Nt(e,t){Wt(e)?e.checked=t:e.selected=t}function It(e){return tt(e,"dirty","pristine","markAsDirty","markAsPristine")}const Rt=Symbol("_eventHandler");function Bt(e){var t;return t=Rt,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[Rt])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[Rt])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function Vt(e){return tt(e,"touched","untouched","markAsTouched","markAsUntouched")}const qt=Symbol("_eventHandler");function jt(e){var t;return t=qt,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[qt],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[qt],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const Xt={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)")},Zt={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},Kt={...Zt,calc:e=>i(`calc(max(${e}, ${Zt.scale}) * ${Zt.size})`)},Yt=`color-mix(in srgb, var(--m3e-elevation-color, ${Xt.shadow}) 20%, transparent)`,Qt=["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"],Gt=`color-mix(in srgb, var(--m3e-elevation-color, ${Xt.shadow}) 14%, transparent)`,Jt=["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"],es=`color-mix(in srgb, var(--m3e-elevation-color, ${Xt.shadow}) 12%, transparent)`,ts=["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 ss(e){return`${Yt} ${Qt[e]},${Gt} ${Jt[e]},${es} ${ts[e]}`}const is={level0:i(`var(--md-sys-elevation-level0, ${ss(0)})`),level1:i(`var(--md-sys-elevation-level1, ${ss(1)})`),level2:i(`var(--md-sys-elevation-level2, ${ss(3)})`),level3:i(`var(--md-sys-elevation-level3, ${ss(6)})`),level4:i(`var(--md-sys-elevation-level4, ${ss(8)})`),level5:i(`var(--md-sys-elevation-level5, ${ss(12)})`)},rs={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))")},as={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))")},ns={easing:rs,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:as},os={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)")},ls={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)")},hs={color:Xt,elevation:is,motion:ns,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${ls.extraLarge} ${ls.extraLarge} ${ls.none} ${ls.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${ls.extraLarge})`),extraLargeEnd:i(`${ls.none} ${ls.extraLarge} ${ls.extraLarge} ${ls.none}`),extraLargeStart:i(`${ls.extraLarge} ${ls.none} ${ls.none} ${ls.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${ls.large} ${ls.large} ${ls.none} ${ls.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${ls.none} ${ls.large} ${ls.large} ${ls.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${ls.large} ${ls.none} ${ls.none} ${ls.large})`),large:i(`var(--md-sys-shape-corner-large, ${ls.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${ls.medium})`),mediumTop:i(`${ls.medium} ${ls.medium} ${ls.none} ${ls.none}`),mediumEnd:i(`${ls.none} ${ls.medium} ${ls.medium} ${ls.none}`),mediumStart:i(`${ls.medium} ${ls.none} ${ls.none} ${ls.medium}`),small:i(`var(--md-sys-shape-corner-small, ${ls.small})`),smallTop:i(`${ls.small} ${ls.small} ${ls.none} ${ls.none}`),smallEnd:i(`${ls.none} ${ls.small} ${ls.small} ${ls.none}`),smallStart:i(`${ls.small} ${ls.none} ${ls.none} ${ls.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${ls.extraSmall} ${ls.extraSmall} ${ls.none} ${ls.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${ls.extraSmall})`),extraSmallEnd:i(`${ls.none} ${ls.extraSmall} ${ls.extraSmall} ${ls.none}`),extraSmallStart:i(`${ls.extraSmall} ${ls.none} ${ls.none} ${ls.extraSmall}`),extraSmallBottom:i(`${ls.none} ${ls.none} ${ls.extraSmall} ${ls.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${ls.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${ls.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${ls.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${ls.extraExtraLarge})`),value:ls}},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:os,density:Kt};function cs(e){return tt(e,"disabled")}function ds(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 o([Lt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function ps(e){return tt(e,"disabledInteractive")&&cs(e)}const ms=["click","dblclick","auxclick","keydown","keyup"],us=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],fs=Symbol("_suppressedEventHandler");function vs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&us.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){ms.forEach(e=>this.addEventListener(e,this[fs],!0)),super.connectedCallback()}disconnectedCallback(){ms.forEach(e=>this.removeEventListener(e,this[fs],!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=fs,o([Lt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const ys=Symbol("updateLabels");function gs(e){return tt(e,"labels")&&it(e)}const bs=Symbol("_eventHandler");function xs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[ys]()}}get labels(){return this[st].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[bs]),this.addEventListener("change",this[bs])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[bs]),this.removeEventListener("change",this[bs])}update(e){super.update(e),this[ys]()}[(t=bs,ys)](){const e=this.hasAttribute("tabindex"),t=cs(this)&&this.disabled||ps(this)&&this.disabledInteractive,s=Vt(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, ${hs.color.onSurface} 38%, transparent)`:s?`${hs.color.error}`:""}}return s.formAssociated=!0,s}const ws=Symbol("formValue"),$s=Symbol("defaultValue");function ks(e){return tt(e,"disabled","form","name")&&gs(e)&&it(e)}const _s=Symbol("_defaultValue"),Es=Symbol("_defaultIndeterminate"),Ss=Symbol("_formDisabled");function As(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[st].form}get labels(){return this[st].labels}get[(t=Es,s=Ss,ws)](){return null}get[$s](){return this[_s]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Ss]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Wt(this)?(this[_s]=this.checked,Tt(this)&&(this[Es]=this.indeterminate)):"value"in this&&(this[_s]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[st].setFormValue(this[ws])}formDisabledCallback(e){const t=this.disabled;this[Ss]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Wt(this)?(this.checked=!0===this[_s],Tt(this)&&(this.indeterminate=this[Es])):"value"in this&&(this.value=this[$s]),It(this)&&this.markAsPristine(),Vt(this)&&this.markAsUntouched()}}return i.formAssociated=!0,o([Lt({noAccessor:!0})],i.prototype,"name",null),o([Lt({type:Boolean})],i.prototype,"disabled",null),i}const Cs=Symbol("validate");function zs(e){return tt(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&ks(e)}const Ls=Symbol("_updateValidity"),Ms=Symbol("_validityMessage");function Ws(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[st].willValidate}get validity(){return this[Ls](),this[st].validity}get validationMessage(){return this[Ls](),this[st].validationMessage}[(s=new WeakSet,Cs)](){return this[Ms]?{customError:!0}:void 0}reportValidity(){return Vt(this)&&this.markAsTouched(),this[Ls](),this[st].reportValidity()}checkValidity(){return this[Ls](),this[st].checkValidity()}setCustomValidity(e){this[Ms]=e||void 0,this[Ls]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ls]()}firstUpdated(e){super.firstUpdated(e),this[Ls]()}[Ls](){if(e||!this.isConnected)return;const t=this[Cs](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[Ms]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[st].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),gs(this)&&this[ys]?.()}}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 Ps(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 Ts=Symbol("_tabindex");function Fs(e){var t;return t=Ts,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Ts]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Ts]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Ts]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Ts]}`)}}}function Hs(e){return tt(e,"name","type","value")&&it(e)}const Ds=Symbol("_clickHandler");function Os(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||cs(this)&&this.disabled||ps(this)&&this.disabledInteractive)return;const t=this[st].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[st].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[Ds])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Ds])}}return t=Ds,s.formAssociated=!0,o([Lt()],s.prototype,"name",null),o([Lt()],s.prototype,"value",null),o([Lt()],s.prototype,"type",void 0),s}function Us(e){return tt(e,"htmlFor","control","attach","detach")}const Ns=Symbol("_control"),Is=Symbol("_firstUpdated");function Rs(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[Ns]}firstUpdated(e){super.firstUpdated(e),this[Is]=!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[Is]&&this.detach()}attach(e){this[Ns]=e}detach(){this[Ns]=null}}return t=Ns,s=Is,o([Lt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function Bs(e,t=!0){var s,i,r;return i=new WeakMap,s=new WeakSet,r=function(e){e.defaultPrevented||e.target!==e.currentTarget||cs(this)&&this.disabled||ps(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"))}}}
45
45
  /**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */const Fs=globalThis,Hs=Fs.trustedTypes,Ds=Hs?Hs.createPolicy("lit-html",{createHTML:e=>e}):void 0,Os="$lit$",Us=`lit$${Math.random().toFixed(9).slice(2)}$`,Ns="?"+Us,Is=`<${Ns}>`,Rs=document,Bs=()=>Rs.createComment(""),Vs=e=>null===e||"object"!=typeof e&&"function"!=typeof e,qs=Array.isArray,js="[ \t\n\f\r]",Ks=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xs=/-->/g,Zs=/>/g,Gs=RegExp(`>|${js}(?:([^\\s"'>=/]+)(${js}*=${js}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Js=/'/g,Ys=/"/g,Qs=/^(?:script|style|textarea|title)$/i,ei=Symbol.for("lit-noChange"),ti=Symbol.for("lit-nothing"),si=new WeakMap,ii=Rs.createTreeWalker(Rs,129);function ri(e,t){if(!qs(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ds?Ds.createHTML(t):t}const ai=(e,t)=>{const s=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",o=Ks;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===Ks?"!--"===l[1]?o=Xs:void 0!==l[1]?o=Zs:void 0!==l[2]?(Qs.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=Gs):void 0!==l[3]&&(o=Gs):o===Gs?">"===l[0]?(o=r??Ks,h=-1):void 0===l[1]?h=-2:(h=o.lastIndex-l[2].length,n=l[1],o=void 0===l[3]?Gs:'"'===l[3]?Ys:Js):o===Ys||o===Js?o=Gs:o===Xs||o===Zs?o=Ks:(o=Gs,r=void 0);const c=o===Gs&&e[t+1].startsWith("/>")?" ":"";a+=o===Ks?s+Is:h>=0?(i.push(n),s.slice(0,h)+Os+s.slice(h)+Us+c):s+Us+(-2===h?t:c)}return[ri(e,a+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class oi{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]=ai(e,t);if(this.el=oi.createElement(l,s),ii.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=ii.nextNode())&&n.length<o;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(Os)){const t=h[a++],s=i.getAttribute(e).split(Us),o=/([.?@])?(.*)/.exec(t);n.push({type:1,index:r,name:o[2],strings:s,ctor:"."===o[1]?ci:"?"===o[1]?pi:"@"===o[1]?mi:di}),i.removeAttribute(e)}else e.startsWith(Us)&&(n.push({type:6,index:r}),i.removeAttribute(e));if(Qs.test(i.tagName)){const e=i.textContent.split(Us),t=e.length-1;if(t>0){i.textContent=Hs?Hs.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],Bs()),ii.nextNode(),n.push({type:2,index:++r});i.append(e[t],Bs())}}}else if(8===i.nodeType)if(i.data===Ns)n.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(Us,e+1));)n.push({type:7,index:r}),e+=Us.length-1}r++}}static createElement(e,t){const s=Rs.createElement("template");return s.innerHTML=e,s}}function ni(e,t,s=e,i){if(t===ei)return t;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const a=Vs(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=ni(e,r._$AS(e,t.values),r,i)),t}class li{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??Rs).importNode(t,!0);ii.currentNode=i;let r=ii.nextNode(),a=0,o=0,n=s[0];for(;void 0!==n;){if(a===n.index){let t;2===n.type?t=new hi(r,r.nextSibling,this,e):1===n.type?t=new n.ctor(r,n.name,n.strings,this,e):6===n.type&&(t=new ui(r,this,e)),this._$AV.push(t),n=s[++o]}a!==n?.index&&(r=ii.nextNode(),a++)}return ii.currentNode=Rs,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 hi{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,i){this.type=2,this._$AH=ti,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=ni(this,e,t),Vs(e)?e===ti||null==e||""===e?(this._$AH!==ti&&this._$AR(),this._$AH=ti):e!==this._$AH&&e!==ei&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>qs(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!==ti&&Vs(this._$AH)?this._$AA.nextSibling.data=e:this.T(Rs.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=oi.createElement(ri(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new li(i,this),s=e.u(this.options);e.p(t),this.T(s),this._$AH=e}}_$AC(e){let t=si.get(e.strings);return void 0===t&&si.set(e.strings,t=new oi(e)),t}k(e){qs(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 hi(this.O(Bs()),this.O(Bs()),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 di{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,r){this.type=1,this._$AH=ti,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=ti}_$AI(e,t=this,s,i){const r=this.strings;let a=!1;if(void 0===r)e=ni(this,e,t,0),a=!Vs(e)||e!==this._$AH&&e!==ei,a&&(this._$AH=e);else{const i=e;let o,n;for(e=r[0],o=0;o<r.length-1;o++)n=ni(this,i[s+o],t,o),n===ei&&(n=this._$AH[o]),a||=!Vs(n)||n!==this._$AH[o],n===ti?e=ti:e!==ti&&(e+=(n??"")+r[o+1]),this._$AH[o]=n}a&&!i&&this.j(e)}j(e){e===ti?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ci extends di{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ti?void 0:e}}class pi extends di{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ti)}}class mi extends di{constructor(e,t,s,i,r){super(e,t,s,i,r),this.type=5}_$AI(e,t=this){if((e=ni(this,e,t,0)??ti)===ei)return;const s=this._$AH,i=e===ti&&s!==ti||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==ti&&(s===ti||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 ui{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){ni(this,e)}}const vi=Fs.litHtmlPolyfillSupport;vi?.(oi,hi),(Fs.litHtmlVersions??=[]).push("3.3.1");
49
+ */const Vs=globalThis,qs=Vs.trustedTypes,js=qs?qs.createPolicy("lit-html",{createHTML:e=>e}):void 0,Xs="$lit$",Zs=`lit$${Math.random().toFixed(9).slice(2)}$`,Ks="?"+Zs,Ys=`<${Ks}>`,Qs=document,Gs=()=>Qs.createComment(""),Js=e=>null===e||"object"!=typeof e&&"function"!=typeof e,ei=Array.isArray,ti="[ \t\n\f\r]",si=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ii=/-->/g,ri=/>/g,ai=RegExp(`>|${ti}(?:([^\\s"'>=/]+)(${ti}*=${ti}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ni=/'/g,oi=/"/g,li=/^(?:script|style|textarea|title)$/i,hi=Symbol.for("lit-noChange"),ci=Symbol.for("lit-nothing"),di=new WeakMap,pi=Qs.createTreeWalker(Qs,129);function mi(e,t){if(!ei(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==js?js.createHTML(t):t}const ui=(e,t)=>{const s=e.length-1,i=[];let r,a=2===t?"<svg>":3===t?"<math>":"",n=si;for(let t=0;t<s;t++){const s=e[t];let o,l,h=-1,c=0;for(;c<s.length&&(n.lastIndex=c,l=n.exec(s),null!==l);)c=n.lastIndex,n===si?"!--"===l[1]?n=ii:void 0!==l[1]?n=ri:void 0!==l[2]?(li.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=ai):void 0!==l[3]&&(n=ai):n===ai?">"===l[0]?(n=r??si,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,o=l[1],n=void 0===l[3]?ai:'"'===l[3]?oi:ni):n===oi||n===ni?n=ai:n===ii||n===ri?n=si:(n=ai,r=void 0);const d=n===ai&&e[t+1].startsWith("/>")?" ":"";a+=n===si?s+Ys:h>=0?(i.push(o),s.slice(0,h)+Xs+s.slice(h)+Zs+d):s+Zs+(-2===h?t:d)}return[mi(e,a+(e[s]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]};class fi{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let r=0,a=0;const n=e.length-1,o=this.parts,[l,h]=ui(e,t);if(this.el=fi.createElement(l,s),pi.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=pi.nextNode())&&o.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(Xs)){const t=h[a++],s=i.getAttribute(e).split(Zs),n=/([.?@])?(.*)/.exec(t);o.push({type:1,index:r,name:n[2],strings:s,ctor:"."===n[1]?xi:"?"===n[1]?wi:"@"===n[1]?$i:bi}),i.removeAttribute(e)}else e.startsWith(Zs)&&(o.push({type:6,index:r}),i.removeAttribute(e));if(li.test(i.tagName)){const e=i.textContent.split(Zs),t=e.length-1;if(t>0){i.textContent=qs?qs.emptyScript:"";for(let s=0;s<t;s++)i.append(e[s],Gs()),pi.nextNode(),o.push({type:2,index:++r});i.append(e[t],Gs())}}}else if(8===i.nodeType)if(i.data===Ks)o.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(Zs,e+1));)o.push({type:7,index:r}),e+=Zs.length-1}r++}}static createElement(e,t){const s=Qs.createElement("template");return s.innerHTML=e,s}}function vi(e,t,s=e,i){if(t===hi)return t;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const a=Js(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=vi(e,r._$AS(e,t.values),r,i)),t}class yi{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??Qs).importNode(t,!0);pi.currentNode=i;let r=pi.nextNode(),a=0,n=0,o=s[0];for(;void 0!==o;){if(a===o.index){let t;2===o.type?t=new gi(r,r.nextSibling,this,e):1===o.type?t=new o.ctor(r,o.name,o.strings,this,e):6===o.type&&(t=new ki(r,this,e)),this._$AV.push(t),o=s[++n]}a!==o?.index&&(r=pi.nextNode(),a++)}return pi.currentNode=Qs,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 gi{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,i){this.type=2,this._$AH=ci,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=vi(this,e,t),Js(e)?e===ci||null==e||""===e?(this._$AH!==ci&&this._$AR(),this._$AH=ci):e!==this._$AH&&e!==hi&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>ei(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!==ci&&Js(this._$AH)?this._$AA.nextSibling.data=e:this.T(Qs.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=fi.createElement(mi(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(t);else{const e=new yi(i,this),s=e.u(this.options);e.p(t),this.T(s),this._$AH=e}}_$AC(e){let t=di.get(e.strings);return void 0===t&&di.set(e.strings,t=new fi(e)),t}k(e){ei(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 gi(this.O(Gs()),this.O(Gs()),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 bi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,r){this.type=1,this._$AH=ci,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=ci}_$AI(e,t=this,s,i){const r=this.strings;let a=!1;if(void 0===r)e=vi(this,e,t,0),a=!Js(e)||e!==this._$AH&&e!==hi,a&&(this._$AH=e);else{const i=e;let n,o;for(e=r[0],n=0;n<r.length-1;n++)o=vi(this,i[s+n],t,n),o===hi&&(o=this._$AH[n]),a||=!Js(o)||o!==this._$AH[n],o===ci?e=ci:e!==ci&&(e+=(o??"")+r[n+1]),this._$AH[n]=o}a&&!i&&this.j(e)}j(e){e===ci?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class xi extends bi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ci?void 0:e}}class wi extends bi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ci)}}class $i extends bi{constructor(e,t,s,i,r){super(e,t,s,i,r),this.type=5}_$AI(e,t=this){if((e=vi(this,e,t,0)??ci)===hi)return;const s=this._$AH,i=e===ci&&s!==ci||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==ci&&(s===ci||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 ki{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){vi(this,e)}}const _i=Vs.litHtmlPolyfillSupport;_i?.(fi,gi),(Vs.litHtmlVersions??=[]).push("3.3.1");
50
50
  /**
51
51
  * @license
52
52
  * Copyright 2018 Google LLC
53
53
  * SPDX-License-Identifier: BSD-3-Clause
54
54
  */
55
- const fi=e=>e??ti,yi=Symbol("renderPseudoLink");function gi(e){return je(e,"download","href","rel","target")}const bi=Symbol("_clickHandler");function xi(e){var s,i,a,o,h;class d extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(is(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[bi]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[bi])}[(s=new WeakSet,h=bi,yi)](){const e=ts(this)&&this.disabled,n=is(this)&&this.disabledInteractive;return e||n||!this.href?t:r`<a
56
- href="${this.href}"
57
- target="${fi(this.target||void 0)}"
58
- rel="${fi(this.rel||void 0)}"
59
- download="${fi(this.download||void 0)}"
60
- tabindex="-1"
61
- aria-hidden="true"
62
- @pointerdown="${l(this,s,"m",i)}"
63
- @focus="${l(this,s,"m",a)}"
64
- @blur="${l(this,s,"m",o)}"
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([wt()],d.prototype,"href",void 0),n([wt()],d.prototype,"target",void 0),n([wt()],d.prototype,"rel",void 0),n([wt({reflect:!1})],d.prototype,"download",null),d}function wi(e){return je(e,"readOnly")}function $i(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([wt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function ki(e){return je(e,"required","optional")}function _i(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([wt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function Ei(e){return ki(e)&&xs(e)}function Si(e){return class extends e{[bs](){const e=super[bs]();if(!e&&this.required){if(kt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function Ai(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function Ci(e){return je(e,"vertical")}function zi(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([wt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var Li,Mi,Wi,Pi,Ti,Fi,Hi;let Di=class extends(_s(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),Le()?(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),Le()?(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`
66
- :host {
67
- display: block;
68
- height: 0px;
69
- overflow: hidden;
70
- transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${es.motion.duration.medium1})\n ${es.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${es.motion.duration.medium1})\n ${es.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${es.motion.duration.medium1})\n ${es.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${es.motion.duration.medium1})\n ${es.motion.easing.standard}`)};
71
- }
72
- :host(:not(.-closing):not([open])) {
73
- visibility: hidden;
74
- }
75
- :host([open]) {
76
- visibility: visible;
77
- }
78
- :host(:not([open])) {
79
- min-height: unset !important;
80
- padding-top: 0px !important;
81
- padding-bottom: 0px !important;
82
- }
83
- :host(.-no-animate) {
84
- transition-duration: 0ms;
85
- }
86
- ::slotted(*) {
87
- --m3e-collapsible-animation-duration: initial;
88
- }
89
- @media (prefers-reduced-motion) {
90
- :host {
91
- transition: none;
92
- }
93
- }
94
- `,n([wt({type:Boolean,reflect:!0})],Di.prototype,"open",void 0),Di=n([Je("m3e-collapsible")],Di);const Oi=i(`var(--m3e-elevation-lift-duration, ${es.motion.duration.short4})`),Ui=i(`var(--m3e-elevation-lift-easing, ${es.motion.easing.standard})`),Ni=i(`var(--m3e-elevation-settle-duration, ${es.motion.duration.short3})`),Ii=i(`var(--m3e-elevation-settle-easing, ${es.motion.easing.standardAccelerate})`),Ri=i(`var(--m3e-elevation-level, ${es.elevation.level0})`),Bi=i(`var(--m3e-elevation-hover-level, ${es.elevation.level0})`),Vi=i(`var(--m3e-elevation-focus-level, ${es.elevation.level0})`),qi=i(`var(--m3e-elevation-pressed-level, ${es.elevation.level0})`);var ji,Ki,Xi,Zi,Gi,Ji,Yi;let Qi=class extends(Ps(Ai(o,"none"))){constructor(){super(...arguments),ji.add(this),Ki.set(this,new Pe(this,{target:null,callback:e=>l(this,ji,"m",Gi).call(this,e)})),Xi.set(this,new We(this,{target:null,callback:e=>l(this,ji,"m",Ji).call(this,e)})),Zi.set(this,new De(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`
95
- :host {
96
- display: block;
97
- }
98
- :host,
99
- .shadow {
100
- position: absolute;
101
- left: 0;
102
- top: 0;
103
- right: 0;
104
- bottom: 0;
105
- pointer-events: none;
106
- border-radius: inherit;
107
- }
108
- .shadow.resting,
109
- .shadow.focus,
110
- .shadow.pressed {
111
- will-change: box-shadow;
112
- transition: ${i(`box-shadow ${Ni} ${Ii};`)};
113
- }
114
- .shadow.hover {
115
- will-change: box-shadow;
116
- transition: ${i(`box-shadow ${Oi} ${Ui};`)};
117
- }
118
- .shadow {
119
- box-shadow: ${Ri};
120
- }
121
- .shadow.focus {
122
- box-shadow: ${Vi};
123
- }
124
- .shadow.hover {
125
- box-shadow: ${Bi};
126
- }
127
- .shadow.pressed {
128
- box-shadow: ${qi};
129
- }
130
- :host([level="0"]) .shadow {
131
- --m3e-elevation-level: ${es.elevation.level0};
132
- --m3e-elevation-hover-level: ${es.elevation.level1};
133
- }
134
- :host([level="1"]) .shadow {
135
- --m3e-elevation-level: ${es.elevation.level1};
136
- --m3e-elevation-hover-level: ${es.elevation.level2};
137
- }
138
- :host([level="2"]) .shadow {
139
- --m3e-elevation-level: ${es.elevation.level2};
140
- --m3e-elevation-hover-level: ${es.elevation.level3};
141
- }
142
- :host([level="3"]) .shadow {
143
- --m3e-elevation-level: ${es.elevation.level3};
144
- --m3e-elevation-hover-level: ${es.elevation.level4};
145
- }
146
- :host([level="4"]) .shadow {
147
- --m3e-elevation-level: ${es.elevation.level4};
148
- --m3e-elevation-hover-level: ${es.elevation.level5};
149
- }
150
- :host([level="5"]) .shadow {
151
- --m3e-elevation-level: ${es.elevation.level5};
152
- --m3e-elevation-hover-level: ${Ri};
153
- }
154
- :host([level]) .shadow {
155
- --m3e-elevation-focus-level: ${Ri};
156
- --m3e-elevation-pressed-level: ${Ri};
157
- }
158
- @media (prefers-reduced-motion) {
159
- .shadow.resting,
160
- .shadow.pressed,
161
- .shadow.focus,
162
- .shadow.hover {
163
- transition: none;
164
- }
165
- }
166
- @media (forced-colors: active) {
167
- .shadow {
168
- display: none;
169
- }
170
- }
171
- `,n([$t(".shadow")],Qi.prototype,"_shadow",void 0),n([wt({type:Boolean,reflect:!0})],Qi.prototype,"disabled",void 0),n([wt({type:Number,reflect:!0})],Qi.prototype,"level",void 0),Qi=n([Je("m3e-elevation")],Qi);const er=i(`var(--m3e-focus-ring-color, ${es.color.secondary})`),tr=i(`var(--m3e-focus-ring-duration, ${es.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(Ps(Ai(o,"none"))){constructor(){super(...arguments),ar.add(this),or.set(this,new We(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`
172
- :host {
173
- display: block;
174
- position: absolute;
175
- left: 0;
176
- top: 0;
177
- right: 0;
178
- bottom: 0;
179
- pointer-events: none;
180
- border-radius: inherit;
181
- outline: none;
182
- }
183
- .outline {
184
- position: absolute;
185
- left: 0;
186
- top: 0;
187
- right: 0;
188
- bottom: 0;
189
- pointer-events: none;
190
- border-radius: inherit;
191
- z-index: 1;
192
- outline-color: ${er};
193
- outline-width: ${sr};
194
- visibility: ${ir};
195
- }
196
- .outline.visible {
197
- outline-style: solid;
198
- }
199
- :host(:not([inward])) .outline {
200
- outline-offset: calc(${sr} / ${rr});
201
- }
202
- :host([inward]) .outline {
203
- outline-offset: calc(0px - ${sr});
204
- }
205
- :host(:not([inward])) .outline.visible {
206
- animation: grow-shrink ${tr};
207
- }
208
- :host([inward]) .outline.visible {
209
- animation: shrink-grow ${tr};
210
- }
211
- @keyframes grow-shrink {
212
- 50% {
213
- outline-width: calc(${sr} * ${rr});
214
- }
215
- }
216
- @keyframes shrink-grow {
217
- 50% {
218
- outline-offset: calc(0px - calc(${sr} * ${rr}));
219
- outline-width: calc(${sr} * ${rr});
220
- }
221
- }
222
- @media (prefers-reduced-motion) {
223
- :host(:not([inward])) .outline.visible,
224
- :host([inward]) .outline.visible {
225
- animation: none;
226
- }
227
- }
228
- @media (forced-colors: active) {
229
- .outline {
230
- outline-color: Highlight;
231
- }
232
- }
233
- `,n([$t(".outline")],lr.prototype,"_outline",void 0),n([wt({type:Boolean,reflect:!0})],lr.prototype,"inward",void 0),n([wt({type:Boolean,reflect:!0})],lr.prototype,"disabled",void 0),lr=n([Je("m3e-focus-ring")],lr);let hr=class extends(St(ss(Ai(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor">
234
- <path Required d="M240-440v-80h480v80H240Z" />
235
- </svg>`:this.checked?r`<svg viewBox="0 -960 960 960" fill="currentColor">
236
- <path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z" />
237
- </svg>`:t}};hr.styles=a`
238
- :host {
239
- display: inline-block;
240
- vertical-align: middle;
241
- width: var(--m3e-checkbox-icon-size, 1.125rem);
242
- height: var(--m3e-checkbox-icon-size, 1.125rem);
243
- border-radius: var(--m3e-checkbox-container-shape, 0.125rem);
244
- box-sizing: border-box;
245
- flex: none;
246
- }
247
- :host(:not([checked]):not([indeterminate])) {
248
- border-width: var(--m3e-checkbox-unselected-outline-thickness, 0.125rem);
249
- border-style: solid;
250
- }
251
- :host(:not([disabled])[checked]),
252
- :host(:not([disabled])[indeterminate]) {
253
- background-color: var(--m3e-checkbox-selected-container-color, ${es.color.primary});
254
- color: var(--m3e-checkbox-selected-icon-color, ${es.color.onPrimary});
255
- }
256
- :host(:not([disabled]):not([checked]):not([indeterminate])) {
257
- border-color: var(--m3e-checkbox-unselected-outline-color, ${es.color.onSurfaceVariant});
258
- }
259
- :host([disabled]:not([checked]):not([indeterminate])) {
260
- border-color: color-mix(
261
- in srgb,
262
- var(--m3e-checkbox-unselected-disabled-outline-color, ${es.color.onSurface})
263
- var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%),
264
- transparent
265
- );
266
- }
267
- :host([disabled][checked]),
268
- :host([disabled][indeterminate]) {
269
- background-color: color-mix(
270
- in srgb,
271
- var(--m3e-checkbox-selected-disabled-container-color, ${es.color.onSurface})
272
- var(--m3e-checkbox-selected-disabled-container-opacity, 38%),
273
- transparent
274
- );
275
- color: color-mix(
276
- in srgb,
277
- var(--m3e-checkbox-selected-disabled-icon-color, ${es.color.surface})
278
- var(--m3e-checkbox-selected-disabled-icon-opacity, 100%),
279
- transparent
280
- );
281
- }
282
- `,hr=n([Je("m3e-pseudo-checkbox")],hr);let dr=class extends(_t(ss(Ai(o,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<svg class="icon" viewBox="0 0 20 20">
283
- <mask id="cutout2">
284
- <rect width="100%" height="100%" fill="white"></rect>
285
- <circle cx="10" cy="10" r="8" fill="black"></circle>
286
- </mask>
287
- <circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle>
288
- <circle class="inner circle" cx="10" cy="10" r="5"></circle>
289
- </svg>`}};dr.styles=a`
290
- :host {
291
- display: inline-block;
292
- vertical-align: middle;
293
- box-sizing: border-box;
294
- width: var(--m3e-radio-icon-size, 1.25rem);
295
- height: var(--m3e-radio-icon-size, 1.25rem);
296
- flex: none;
297
- }
298
- .circle {
299
- fill: currentColor;
300
- }
301
- :host(:not([checked])) .circle.inner {
302
- opacity: 0;
303
- }
304
- :host(:not([checked])) {
305
- color: var(--m3e-radio-unselected-icon-color, ${es.color.onSurfaceVariant});
306
- }
307
- :host([checked]) {
308
- color: var(--m3e-radio-selected-icon-color, ${es.color.primary});
309
- }
310
- :host([disabled]) {
311
- color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${es.color.onSurface}) 38%, transparent);
312
- }
313
- `,dr=n([Je("m3e-pseudo-radio")],dr);const cr=i(`var(--m3e-ripple-color, ${es.color.onSurface})`),pr=i(`var(--m3e-ripple-opacity, ${es.state.pressedStateLayerOpacity})`),mr=i(`var(--m3e-ripple-enter-duration, ${es.motion.duration.long4})`),ur=i(`var(--m3e-ripple-exit-duration, ${es.motion.duration.short2})`),vr=i("var(--m3e-ripple-scale-factor, 2.5)");var fr,yr,gr,br,xr,wr;let $r=class extends(Ps(Ai(o,"none"))){constructor(){super(...arguments),fr.add(this),yr.set(this,null),gr.set(this,new De(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`
314
- :host {
315
- display: block;
316
- position: absolute;
317
- left: 0;
318
- top: 0;
319
- right: 0;
320
- bottom: 0;
321
- pointer-events: none;
322
- border-radius: inherit;
323
- }
324
- :host(:not([unbounded])) {
325
- overflow: hidden;
326
- }
327
- .ripple {
328
- display: block;
329
- position: absolute;
330
- left: 0;
331
- top: 0;
332
- right: 0;
333
- bottom: 0;
334
- pointer-events: none;
335
- transform: scale(0);
336
- border-radius: ${es.shape.corner.full};
337
- background-color: color-mix(in srgb, ${cr} ${pr}, transparent);
338
- will-change: background-color, opacity;
339
- }
340
- .ripple:not(.persistent) {
341
- animation: ripple ${mr} linear;
342
- }
343
- .ripple.persistent {
344
- animation: persistent-ripple ${mr} linear;
345
- }
346
- .ripple.persistent.pressed {
347
- transform: scale(${vr});
348
- }
349
- .ripple.exit {
350
- transition: opacity ${ur} cubic-bezier(0, 0, 0.2, 0.1);
351
- opacity: 0;
352
- }
353
- @keyframes persistent-ripple {
354
- to {
355
- transform: scale(${vr});
356
- }
357
- }
358
- @keyframes ripple {
359
- to {
360
- transform: scale(${vr});
361
- }
362
- }
363
- @media (prefers-reduced-motion) {
364
- .ripple {
365
- transform: scale(${vr});
366
- }
367
- .ripple:not(.persistent),
368
- .ripple.persistent {
369
- animation-duration: 90ms;
370
- }
371
- .ripple.exit {
372
- transition-duration: 10ms;
373
- }
374
- }
375
- @media (forced-colors: active) {
376
- .ripple {
377
- display: none;
378
- }
379
- }
380
- `,n([wt({type:Boolean,reflect:!0})],$r.prototype,"disabled",void 0),n([wt({type:Boolean,reflect:!0})],$r.prototype,"centered",void 0),n([wt({type:Boolean,reflect:!0})],$r.prototype,"unbounded",void 0),n([wt({type:Number})],$r.prototype,"radius",void 0),n([wt()],$r.prototype,"trigger",void 0),$r=n([Je("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,Ar,Cr;kr=new WeakMap,_r.styles=a`
381
- :host {
382
- display: block;
383
- overflow-y: auto;
384
- position: relative;
385
- box-sizing: border-box;
386
- scrollbar-color: ${es.scrollbar.color};
387
- border-top: var(--m3e-divider-thickness, 1px) solid transparent;
388
- border-bottom: var(--m3e-divider-thickness, 1px) solid transparent;
389
- outline: var(--m3e-focus-ring-color, ${es.color.secondary});
390
- outline-width: var(--m3e-focus-ring-thickness, 0.25rem);
391
- outline-offset: calc(var(--m3e-focus-ring-thickness, 0.25rem) / 2);
392
- }
393
- :host([thin]) {
394
- scrollbar-width: ${es.scrollbar.thinWidth};
395
- }
396
- :host(:not([thin])) {
397
- scrollbar-width: ${es.scrollbar.width};
398
- }
399
- :host(:not(:focus-visible).-above) {
400
- border-top-color: var(--m3e-divider-color, ${es.color.outlineVariant});
401
- }
402
- :host(:not(:focus-visible).-below) {
403
- border-bottom-color: var(--m3e-divider-color, ${es.color.outlineVariant});
404
- }
405
- :host(:focus-visible) {
406
- outline-style: solid;
407
- animation: grow-shrink var(--m3e-focus-ring-duration, ${es.motion.duration.long2});
408
- }
409
- @keyframes grow-shrink {
410
- 50% {
411
- outline-width: calc(var(--m3e-focus-ring-thickness, 0.25rem) * var(--m3e-focus-ring-factor, 2));
412
- }
413
- }
414
- @media (forced-colors: active) {
415
- :host {
416
- border-top: var(--m3e-divider-thickness, 1px) solid Canvas;
417
- border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas;
418
- }
419
- :host(:not(:focus-visible).-above) {
420
- border-top-color: GrayText;
421
- }
422
- :host(:not(:focus-visible).-below) {
423
- border-bottom-color: GrayText;
424
- }
425
- }
426
- @media (prefers-reduced-motion) {
427
- :host(:focus-visible) {
428
- animation: none;
429
- }
430
- }
431
- `,n([wt()],_r.prototype,"dividers",void 0),n([wt({type:Boolean,reflect:!0})],_r.prototype,"thin",void 0),n([Ue(40)],_r.prototype,"_updateScroll",null),_r=n([Je("m3e-scroll-container")],_r);let zr=class extends o{constructor(){super(...arguments),Er.add(this),Sr.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,Er,"m",Cr).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",Ar)}"></slot>`}};Sr=new WeakMap,Er=new WeakSet,Ar=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of l(this,Sr,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");h(this,Sr,t,"f"),l(this,Er,"m",Cr).call(this)},Cr=function(){const e=this.selectedIndex??l(this,Sr,"f").length;for(let t=0;t<l(this,Sr,"f").length;t++){const s=l(this,Sr,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},zr.styles=a`
432
- :host {
433
- display: flex;
434
- position: relative;
435
- overflow: hidden;
436
- }
437
- ::slotted(*) {
438
- width: 100%;
439
- top: 0;
440
- transition: ${i(`left var(--m3e-slide-animation-duration, ${es.motion.duration.long2}) ${es.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${es.motion.duration.long2}) ${es.motion.easing.standard} allow-discrete`)};
441
- }
442
- ::slotted(.-before),
443
- ::slotted(.-after) {
444
- visibility: hidden;
445
- position: absolute;
446
- }
447
- ::slotted(.-before) {
448
- left: -100%;
449
- }
450
- ::slotted(.-after) {
451
- left: 100%;
452
- }
453
- ::slotted(:not(.-before):not(.-after)) {
454
- visibility: visible;
455
- position: relative;
456
- left: 0;
457
- }
458
- :host(.-no-animate) ::slotted(*) {
459
- transition: none;
460
- }
461
- @media (prefers-reduced-motion) {
462
- ::slotted(*) {
463
- transition: none;
464
- }
465
- }
466
- `,n([wt({attribute:"selected-index",type:Number,reflect:!0})],zr.prototype,"selectedIndex",void 0),zr=n([Je("m3e-slide")],zr);const Lr=i(`var(--m3e-state-layer-hover-color, ${es.color.onSurface})`),Mr=i(`var(--m3e-state-layer-hover-opacity, ${es.state.hoverStateLayerOpacity})`),Wr=i(`var(--m3e-state-layer-focus-color, ${es.color.onSurface})`),Pr=i(`var(--m3e-state-layer-focus-opacity, ${es.state.focusStateLayerOpacity})`),Tr=i(`var(--m3e-state-layer-duration, ${es.motion.duration.medium1})`),Fr=i(`var(--m3e-state-layer-easing, ${es.motion.easing.standard})`);var Hr,Dr,Or,Ur,Nr;let Ir=class extends(Ps(Ai(o,"none"))){constructor(){super(...arguments),Hr.add(this),Dr.set(this,new Pe(this,{target:null,callback:e=>l(this,Hr,"m",Ur).call(this,e)})),Or.set(this,new We(this,{target:null,callback:(e,t)=>l(this,Hr,"m",Nr).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,Dr,"f").observe(e),l(this,Or,"f").observe(e)}detach(){this.control&&(l(this,Dr,"f").unobserve(this.control),l(this,Or,"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>`}};Dr=new WeakMap,Or=new WeakMap,Hr=new WeakSet,Ur=function(e){this.disabled||(e?this.show("hover"):this.hide("hover"))},Nr=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Ir.styles=a`
467
- :host {
468
- display: block;
469
- }
470
- :host,
471
- .layer {
472
- position: absolute;
473
- left: 0;
474
- top: 0;
475
- right: 0;
476
- bottom: 0;
477
- pointer-events: none;
478
- border-radius: inherit;
479
- }
480
- .layer {
481
- will-change: background-color;
482
- transition: ${i(`background-color ${Tr} ${Fr}`)};
483
- }
484
- .layer.focused {
485
- background-color: color-mix(in srgb, ${Wr} ${Pr}, transparent);
486
- }
487
- .layer.hover {
488
- background-color: color-mix(in srgb, ${Lr} ${Mr}, transparent);
489
- }
490
- @media (prefers-reduced-motion) {
491
- .layer {
492
- transition: none;
493
- }
494
- }
495
- @media (forced-colors: active) {
496
- .layer {
497
- display: none;
498
- }
499
- }
500
- `,n([$t(".layer")],Ir.prototype,"_layer",void 0),n([wt({type:Boolean,reflect:!0})],Ir.prototype,"disabled",void 0),Ir=n([Je("m3e-state-layer")],Ir);let Rr=class extends o{render(){return r`<span class="base"><slot></slot></span>`}};var Br,Vr,qr,jr,Kr,Xr,Zr,Gr;Rr.styles=a`
501
- :host {
502
- flex: 1 1 auto;
503
- display: inline-flex;
504
- align-items: center;
505
- flex-wrap: nowrap;
506
- min-width: 0;
507
- }
508
- .base {
509
- flex: 1 1 auto;
510
- display: inline;
511
- overflow: hidden;
512
- text-overflow: ellipsis;
513
- white-space: nowrap;
514
- }
515
- `,Rr=n([Je("m3e-text-overflow")],Rr);let Jr=Gr=class extends o{constructor(){super(),Br.add(this),Vr.set(this,"m3e-text-highlight-"+Gr.__nextId++),qr.set(this,new Array),jr.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,jr,new CSSStyleSheet,"f"),l(this,jr,"f").replaceSync(a`
516
- ::highlight(${i(l(this,Vr,"f"))}) {
517
- background-color: var(--m3e-text-highlight-container-color, ${es.color.secondaryContainer});
518
- color: var(--m3e-text-highlight-color, ${es.color.onSecondaryContainer});
519
- text-decoration: var(--m3e-text-highlight-decoration);
520
- text-shadow: var(--m3e-text-highlight-shadow);
521
- }
522
- `.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return l(this,qr,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,jr,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,jr,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,jr,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,Br,"m",Zr).call(this)}render(){return r`<slot @slotchange="${l(this,Br,"m",Zr)}"></slot>`}};Vr=new WeakMap,qr=new WeakMap,jr=new WeakMap,Br=new WeakSet,Kr=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},Xr=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Br,"m",Kr).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Br,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Br,"m",Kr).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Br,"m",e).call(this,t,s)}})},Zr=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,Vr,"f")),l(this,qr,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,qr,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,Br,"m",Xr).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,qr,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,qr,"f").length>0&&CSS.highlights.set(l(this,Vr,"f"),new Highlight(...l(this,qr,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,qr,"f")],bubbles:!1,composed:!1}))},Jr.styles=a`
523
- :host {
524
- display: contents;
525
- }
526
- `,Jr.__nextId=0,n([wt({type:Boolean,reflect:!0})],Jr.prototype,"disabled",void 0),n([wt()],Jr.prototype,"term",void 0),n([wt({attribute:"case-sensitive",type:Boolean})],Jr.prototype,"caseSensitive",void 0),Jr=Gr=n([Je("m3e-text-highlight")],Jr);export{Ge as AttachInternals,_t as Checked,St as CheckedIndeterminate,ks as ConstraintValidation,es as DesignToken,Tt as Dirty,ss as Disabled,ns as DisabledInteractive,_s as EventAttribute,We as FocusController,Ss as Focusable,gs as FormAssociated,zs as FormSubmitter,Pe as HoverController,Ps as HtmlFor,Te as IntersectionController,Ts as KeyboardClick,cs as Labelled,xi as LinkButton,Fe as LongPressController,Di as M3eCollapsibleElement,Qi as M3eElevationElement,lr as M3eFocusRingElement,hr as M3ePseudoCheckboxElement,dr as M3ePseudoRadioElement,$r as M3eRippleElement,_r as M3eScrollContainerElement,zr as M3eSlideElement,Ir as M3eStateLayerElement,Jr as M3eTextHighlightElement,Rr as M3eTextOverflowElement,He as MutationController,De as PressedController,$i as ReadOnly,_i as Required,Si as RequiredConstraintValidation,Oe as ResizeController,Ai as Role,Ne as ScrollController,Ct as Selected,Dt as Touched,zi as Vertical,Mt as checkOrSelect,Ue as debounce,ms as defaultValue,Se as forcedColorsActive,ps as formValue,Ae as getTextContent,Ce as guid,ze as hasAssignedNodes,je as hasKeys,Ke as internals,Xe as isAttachInternalsMixin,Et as isCheckedIndeterminateMixin,kt as isCheckedMixin,Lt as isCheckedOrSelected,zt as isCheckedOrSelectedMixin,xs as isConstraintValidationMixin,Wt as isDirtyMixin,is as isDisabledInteractiveMixin,ts as isDisabledMixin,us as isFormAssociatedMixin,As as isFormSubmitterMixin,Ls as isHtmlForMixin,hs as isLabelledMixin,gi as isLinkButtonMixin,wi as isReadOnlyMixin,Ei as isRequiredConstraintValidationMixin,ki as isRequiredMixin,At as isSelectedMixin,Ft as isTouchedMixin,Ci as isVerticalMixin,Le as prefersReducedMotion,yi as renderPseudoLink,qe as safeStyleMap,Me as scrollIntoViewIfNeeded,ls as updateLabels,bs as validate};
55
+ const Ei=e=>e??ci,Si=Symbol("renderPseudoLink");function Ai(e){return tt(e,"download","href","rel","target")}const Ci=Symbol("_clickHandler");function zi(e){var s,i,a,n,h;class c extends e{constructor(){super(...arguments),s.add(this),this[h]=async e=>{if(ps(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[Ci]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Ci])}[(s=new WeakSet,h=Ci,Si)](){const e=cs(this)&&this.disabled,o=ps(this)&&this.disabledInteractive;return e||o||!this.href?t:r`<a href="${this.href}" target="${Ei(this.target||void 0)}" rel="${Ei(this.rel||void 0)}" download="${Ei(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${l(this,s,"m",i)}" @focus="${l(this,s,"m",a)}" @blur="${l(this,s,"m",n)}"></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()},n=function(e){e.target.setAttribute("aria-hidden","true")},o([Lt()],c.prototype,"href",void 0),o([Lt()],c.prototype,"target",void 0),o([Lt()],c.prototype,"rel",void 0),o([Lt({reflect:!1})],c.prototype,"download",null),c}function Li(e){return tt(e,"readOnly")}function Mi(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 o([Lt({attribute:"readonly",type:Boolean,reflect:t})],s.prototype,"readOnly",void 0),s}function Wi(e){return tt(e,"required","optional")}function Pi(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 o([Lt({type:Boolean,reflect:!0})],t.prototype,"required",void 0),t}function Ti(e){return Wi(e)&&zs(e)}function Fi(e){return class extends e{[Cs](){const e=super[Cs]();if(!e&&this.required){if(Wt(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function Hi(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function Di(e){return tt(e,"vertical")}function Oi(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 o([Lt({type:Boolean,reflect:!0})],t.prototype,"vertical",void 0),t}var Ui,Ni,Ii,Ri,Bi,Vi,qi;let ji=class extends(Ps(n,"opening","opened","closing","closed")){constructor(){super(...arguments),Ui.add(this),Ni.set(this,!1),Ii.set(this,!1),this.open=!1}update(e){if(super.update(e),this.classList.toggle("-no-animate",!0),!l(this,Ni,"f"))return this.open&&(h(this,Ii,!0,"f"),l(this,Ui,"m",Bi).call(this)),void h(this,Ni,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(h(this,Ii,!0,"f"),this.classList.toggle("-closing",!1),this.classList.toggle("-opening",!0),this.dispatchEvent(new Event("opening")),l(this,Ui,"m",Vi).call(this),this.classList.toggle("-no-animate",!1),l(this,Ui,"m",qi).call(this),Ue()?(this.classList.toggle("-opening",!1),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(l(this,Ui,"m",Bi).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,Ui,"m",qi).call(this),l(this,Ii,"f")&&this.classList.toggle("-no-animate",!1),Ue()?(l(this,Ui,"m",Vi).call(this),this.classList.toggle("-closing",!1),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{l(this,Ui,"m",Vi).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,Ui,"m",Ri)}"></slot>`}};Ni=new WeakMap,Ii=new WeakMap,Ui=new WeakSet,Ri=function(){h(this,Ni,!0,"f")},Bi=function(){this.style.height="auto"},Vi=function(){this.style.height=""},qi=function(){this.style.height=`${this.scrollHeight}px`},ji.styles=a`:host { display: block; height: 0px; overflow: hidden; transition: ${i(`visibility var(--m3e-collapsible-animation-duration, ${hs.motion.duration.medium1})\n ${hs.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${hs.motion.duration.medium1})\n ${hs.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${hs.motion.duration.medium1})\n ${hs.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${hs.motion.duration.medium1})\n ${hs.motion.easing.standard}`)}; } :host(:not(.-closing):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(.-no-animate) { transition-duration: 0ms; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,o([Lt({type:Boolean,reflect:!0})],ji.prototype,"open",void 0),ji=o([nt("m3e-collapsible")],ji);const Xi=i(`var(--m3e-elevation-lift-duration, ${hs.motion.duration.short4})`),Zi=i(`var(--m3e-elevation-lift-easing, ${hs.motion.easing.standard})`),Ki=i(`var(--m3e-elevation-settle-duration, ${hs.motion.duration.short3})`),Yi=i(`var(--m3e-elevation-settle-easing, ${hs.motion.easing.standardAccelerate})`),Qi=i(`var(--m3e-elevation-level, ${hs.elevation.level0})`),Gi=i(`var(--m3e-elevation-hover-level, ${hs.elevation.level0})`),Ji=i(`var(--m3e-elevation-focus-level, ${hs.elevation.level0})`),er=i(`var(--m3e-elevation-pressed-level, ${hs.elevation.level0})`);var tr,sr,ir,rr,ar,nr,or;let lr=class extends(Rs(Hi(n,"none"))){constructor(){super(...arguments),tr.add(this),sr.set(this,new Re(this,{target:null,callback:e=>l(this,tr,"m",ar).call(this,e)})),ir.set(this,new Ie(this,{target:null,callback:e=>l(this,tr,"m",nr).call(this,e)})),rr.set(this,new je(this,{target:null,callback:e=>l(this,tr,"m",or).call(this,e)})),this.disabled=!1,this.level=null}attach(e){super.attach(e),l(this,sr,"f").observe(e),l(this,ir,"f").observe(e),l(this,rr,"f").observe(e)}detach(){this.control&&(l(this,sr,"f").unobserve(this.control),l(this,ir,"f").unobserve(this.control),l(this,rr,"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>`}};sr=new WeakMap,ir=new WeakMap,rr=new WeakMap,tr=new WeakSet,ar=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},nr=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},or=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},lr.styles=a`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${i(`box-shadow ${Ki} ${Yi};`)}; } .shadow.hover { will-change: box-shadow; transition: ${i(`box-shadow ${Xi} ${Zi};`)}; } .shadow { box-shadow: ${Qi}; } .shadow.focus { box-shadow: ${Ji}; } .shadow.hover { box-shadow: ${Gi}; } .shadow.pressed { box-shadow: ${er}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${hs.elevation.level0}; --m3e-elevation-hover-level: ${hs.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${hs.elevation.level1}; --m3e-elevation-hover-level: ${hs.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${hs.elevation.level2}; --m3e-elevation-hover-level: ${hs.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${hs.elevation.level3}; --m3e-elevation-hover-level: ${hs.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${hs.elevation.level4}; --m3e-elevation-hover-level: ${hs.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${hs.elevation.level5}; --m3e-elevation-hover-level: ${Qi}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${Qi}; --m3e-elevation-pressed-level: ${Qi}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,o([Mt(".shadow")],lr.prototype,"_shadow",void 0),o([Lt({type:Boolean,reflect:!0})],lr.prototype,"disabled",void 0),o([Lt({type:Number,reflect:!0})],lr.prototype,"level",void 0),lr=o([nt("m3e-elevation")],lr);const hr=i(`var(--m3e-focus-ring-color, ${hs.color.secondary})`),cr=i(`var(--m3e-focus-ring-duration, ${hs.motion.duration.long2})`),dr=i("var(--m3e-focus-ring-thickness, 0.1875rem)"),pr=i("var(--m3e-focus-ring-visibility, visible)"),mr=i("var(--m3e-focus-ring-growth-factor, 2)");var ur,fr,vr;let yr=class extends(Rs(Hi(n,"none"))){constructor(){super(...arguments),ur.add(this),fr.set(this,new Ie(this,{target:null,callback:(e,t)=>l(this,ur,"m",vr).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,fr,"f").observe(e)}detach(){this.control&&l(this,fr,"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()}};fr=new WeakMap,ur=new WeakSet,vr=function(e){this.disabled||(e?this.show():this.hide())},yr.styles=a`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${hr}; outline-width: ${dr}; visibility: ${pr}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: calc(${dr} / ${mr}); } :host([inward]) .outline { outline-offset: calc(0px - ${dr}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${cr}; } :host([inward]) .outline.visible { animation: shrink-grow ${cr}; } @keyframes grow-shrink { 50% { outline-width: calc(${dr} * ${mr}); } } @keyframes shrink-grow { 50% { outline-offset: calc(0px - calc(${dr} * ${mr})); outline-width: calc(${dr} * ${mr}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,o([Mt(".outline")],yr.prototype,"_outline",void 0),o([Lt({type:Boolean,reflect:!0})],yr.prototype,"inward",void 0),o([Lt({type:Boolean,reflect:!0})],yr.prototype,"disabled",void 0),yr=o([nt("m3e-focus-ring")],yr);let gr=class extends(Ft(ds(Hi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?r`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:t}};gr.styles=a`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 0.125rem); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${hs.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${hs.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${hs.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${hs.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${hs.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${hs.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,gr=o([nt("m3e-pseudo-checkbox")],gr);let br=class extends(Pt(ds(Hi(n,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return r`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};br.styles=a`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${hs.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${hs.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${hs.color.onSurface}) 38%, transparent); }`,br=o([nt("m3e-pseudo-radio")],br);const xr=i(`var(--m3e-ripple-color, ${hs.color.onSurface})`),wr=i(`var(--m3e-ripple-opacity, ${hs.state.pressedStateLayerOpacity})`),$r=i(`var(--m3e-ripple-enter-duration, ${hs.motion.duration.long4})`),kr=i(`var(--m3e-ripple-exit-duration, ${hs.motion.duration.short2})`),_r=i("var(--m3e-ripple-scale-factor, 2.5)");var Er,Sr,Ar,Cr,zr,Lr;let Mr=class extends(Rs(Hi(n,"none"))){constructor(){super(...arguments),Er.add(this),Sr.set(this,null),Ar.set(this,new je(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(e,{x:t,y:s})=>l(this,Er,"m",Lr).call(this,e,t,s)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==l(this,Sr,"f")}show(e,t,s=!1){l(this,Er,"m",Cr).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,n=t-i.top;h(this,Sr,document.createElement("div"),"f"),l(this,Sr,"f").classList.add("ripple"),s&&l(this,Sr,"f").classList.add("persistent"),l(this,Sr,"f").style.left=a-r+"px",l(this,Sr,"f").style.top=n-r+"px",l(this,Sr,"f").style.width=2*r+"px",l(this,Sr,"f").style.height=2*r+"px",l(this,Sr,"f").addEventListener("animationend",()=>l(this,Er,"m",zr).call(this,s),{once:!0}),l(this,Sr,"f").addEventListener("transitionend",()=>l(this,Er,"m",Cr).call(this),{once:!0}),this.shadowRoot?.appendChild(l(this,Sr,"f"))}hide(){l(this,Sr,"f")?.classList.add("exit")}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(),l(this,Er,"m",Cr).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var Wr;Sr=new WeakMap,Ar=new WeakMap,Er=new WeakSet,Cr=function(){l(this,Sr,"f")?.remove(),h(this,Sr,null,"f")},zr=function(e){e?l(this,Sr,"f")?.classList.add("pressed"):this.hide()},Lr=function(e,t,s){this.disabled||(e?this.show(t,s,!0):this.hide())},Mr.styles=a`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${hs.shape.corner.full}; background-color: color-mix(in srgb, ${xr} ${wr}, transparent); will-change: background-color, opacity; animation: ripple ${$r} linear; } .ripple.persistent.pressed { transform: scale(${_r}); } .ripple.exit { transition: opacity ${kr} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${_r}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${_r}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,o([Lt({type:Boolean,reflect:!0})],Mr.prototype,"disabled",void 0),o([Lt({type:Boolean,reflect:!0})],Mr.prototype,"centered",void 0),o([Lt({type:Boolean,reflect:!0})],Mr.prototype,"unbounded",void 0),o([Lt({type:Number})],Mr.prototype,"radius",void 0),Mr=o([nt("m3e-ripple")],Mr);let Pr=class extends n{constructor(){super(...arguments),Wr.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",l(this,Wr,"f"))}update(e){super.update(e),e.has("dividers")&&(this.removeEventListener("scroll",l(this,Wr,"f")),"none"!==this.dividers&&this.addEventListener("scroll",l(this,Wr,"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 Tr,Fr,Hr,Dr;Wr=new WeakMap,Pr.styles=a`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${hs.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline: var(--m3e-focus-ring-color, ${hs.color.secondary}); outline-width: var(--m3e-focus-ring-thickness, 0.25rem); outline-offset: calc(var(--m3e-focus-ring-thickness, 0.25rem) / 2); } :host([thin]) { scrollbar-width: ${hs.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${hs.scrollbar.width}; } :host(:not(:focus-visible).-above) { border-top-color: var(--m3e-divider-color, ${hs.color.outlineVariant}); } :host(:not(:focus-visible).-below) { border-bottom-color: var(--m3e-divider-color, ${hs.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink var(--m3e-focus-ring-duration, ${hs.motion.duration.long2}); } @keyframes grow-shrink { 50% { outline-width: calc(var(--m3e-focus-ring-thickness, 0.25rem) * var(--m3e-focus-ring-factor, 2)); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible).-above) { border-top-color: GrayText; } :host(:not(:focus-visible).-below) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,o([Lt()],Pr.prototype,"dividers",void 0),o([Lt({type:Boolean,reflect:!0})],Pr.prototype,"thin",void 0),o([Ze(40)],Pr.prototype,"_updateScroll",null),Pr=o([nt("m3e-scroll-container")],Pr);let Or=class extends n{constructor(){super(...arguments),Tr.add(this),Fr.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,Tr,"m",Dr).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,Tr,"m",Hr)}"></slot>`}};Fr=new WeakMap,Tr=new WeakSet,Hr=function(e){const t=[...e.target.assignedElements({flatten:!0})];for(const e of l(this,Fr,"f").filter(e=>!t.includes(e)))e.classList.remove("-before"),e.classList.remove("-after"),e.removeAttribute("inert");h(this,Fr,t,"f"),l(this,Tr,"m",Dr).call(this)},Dr=function(){const e=this.selectedIndex??l(this,Fr,"f").length;for(let t=0;t<l(this,Fr,"f").length;t++){const s=l(this,Fr,"f")[t];s.classList.toggle("-before",t<e),s.classList.toggle("-after",t>e),s.toggleAttribute("inert",t!==e)}},Or.styles=a`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${i(`inset-inline-start var(--m3e-slide-animation-duration, ${hs.motion.duration.long2}) ${hs.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${hs.motion.duration.long2}) ${hs.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(.-no-animate) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,o([Lt({attribute:"selected-index",type:Number,reflect:!0})],Or.prototype,"selectedIndex",void 0),Or=o([nt("m3e-slide")],Or);const Ur=i(`var(--m3e-state-layer-hover-color, ${hs.color.onSurface})`),Nr=i(`var(--m3e-state-layer-hover-opacity, ${hs.state.hoverStateLayerOpacity})`),Ir=i(`var(--m3e-state-layer-focus-color, ${hs.color.onSurface})`),Rr=i(`var(--m3e-state-layer-focus-opacity, ${hs.state.focusStateLayerOpacity})`),Br=i(`var(--m3e-state-layer-duration, ${hs.motion.duration.medium1})`),Vr=i(`var(--m3e-state-layer-easing, ${hs.motion.easing.standard})`);var qr,jr,Xr,Zr,Kr;let Yr=class extends(Rs(Hi(n,"none"))){constructor(){super(...arguments),qr.add(this),jr.set(this,new Re(this,{target:null,callback:e=>l(this,qr,"m",Zr).call(this,e)})),Xr.set(this,new Ie(this,{target:null,callback:(e,t)=>l(this,qr,"m",Kr).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,jr,"f").observe(e),l(this,Xr,"f").observe(e)}detach(){this.control&&(l(this,jr,"f").unobserve(this.control),l(this,Xr,"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>`}};jr=new WeakMap,Xr=new WeakMap,qr=new WeakSet,Zr=function(e){this.disabled||(e?this.show("hover"):this.hide("hover"))},Kr=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Yr.styles=a`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${i(`background-color ${Br} ${Vr}`)}; } .layer.focused { background-color: color-mix(in srgb, ${Ir} ${Rr}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${Ur} ${Nr}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,o([Mt(".layer")],Yr.prototype,"_layer",void 0),o([Lt({type:Boolean,reflect:!0})],Yr.prototype,"disabled",void 0),Yr=o([nt("m3e-state-layer")],Yr);let Qr=class extends n{render(){return r`<span class="base"><slot></slot></span>`}};var Gr,Jr,ea,ta,sa,ia,ra,aa;Qr.styles=a`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Qr=o([nt("m3e-text-overflow")],Qr);let na=aa=class extends n{constructor(){super(),Gr.add(this),Jr.set(this,"m3e-text-highlight-"+aa.__nextId++),ea.set(this,new Array),ta.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.isSupported&&(h(this,ta,new CSSStyleSheet,"f"),l(this,ta,"f").replaceSync(a`::highlight(${i(l(this,Jr,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${hs.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${hs.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(e||!CSS.highlights)}get ranges(){return l(this,ea,"f")}firstUpdated(e){super.firstUpdated(e),this.shadowRoot&&l(this,ta,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(l(this,ta,"f"))&&this.shadowRoot.adoptedStyleSheets.push(l(this,ta,"f"))}updated(e){super.updated(e),(e.has("term")||e.has("caseSensitive")||e.has("disabled"))&&l(this,Gr,"m",ra).call(this)}render(){return r`<slot @slotchange="${l(this,Gr,"m",ra)}"></slot>`}};Jr=new WeakMap,ea=new WeakMap,ta=new WeakMap,Gr=new WeakSet,sa=function(e){return!/^(\\s|\\n)+$/gi.test(e.data)},ia=function e(t,s){t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}).forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Gr,"m",sa).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Gr,"m",e).call(this,t,s)}}):t.childNodes.forEach(t=>{switch(t.nodeType){case Node.TEXT_NODE:l(this,Gr,"m",sa).call(this,t)&&s.push(t);break;case Node.ELEMENT_NODE:l(this,Gr,"m",e).call(this,t,s)}})},ra=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(l(this,Jr,"f")),l(this,ea,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,ea,"f")],bubbles:!1,composed:!1}));const e=new Array;l(this,Gr,"m",ia).call(this,this,e);const t=this.caseSensitive?this.term:this.term.toLowerCase();h(this,ea,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,ea,"f").length>0&&CSS.highlights.set(l(this,Jr,"f"),new Highlight(...l(this,ea,"f"))),this.dispatchEvent(new CustomEvent("highlight",{detail:[...l(this,ea,"f")],bubbles:!1,composed:!1}))},na.styles=a`:host { display: contents; }`,na.__nextId=0,o([Lt({type:Boolean,reflect:!0})],na.prototype,"disabled",void 0),o([Lt()],na.prototype,"term",void 0),o([Lt({attribute:"case-sensitive",type:Boolean})],na.prototype,"caseSensitive",void 0),na=aa=o([nt("m3e-text-highlight")],na);export{at as AttachInternals,Pt as Checked,Ft as CheckedIndeterminate,Ws as ConstraintValidation,hs as DesignToken,Bt as Dirty,ds as Disabled,vs as DisabledInteractive,Ps as EventAttribute,Ie as FocusController,Fs as Focusable,As as FormAssociated,Os as FormSubmitter,Re as HoverController,Rs as HtmlFor,Be as IntersectionController,Bs as KeyboardClick,xs as Labelled,zi as LinkButton,Ve as LongPressController,ji as M3eCollapsibleElement,lr as M3eElevationElement,yr as M3eFocusRingElement,gr as M3ePseudoCheckboxElement,br as M3ePseudoRadioElement,Mr as M3eRippleElement,Pr as M3eScrollContainerElement,Or as M3eSlideElement,Yr as M3eStateLayerElement,na as M3eTextHighlightElement,Qr as M3eTextOverflowElement,qe as MutationController,je as PressedController,Mi as ReadOnly,Pi as Required,Fi as RequiredConstraintValidation,Xe as ResizeController,Hi as Role,Ke as ScrollController,Dt as Selected,jt as Touched,Oi as Vertical,Nt as checkOrSelect,Ze as debounce,$s as defaultValue,Se as forcedColorsActive,ws as formValue,Fe as generateClipPaths,He as getTextContent,De as guid,Oe as hasAssignedNodes,tt as hasKeys,st as internals,it as isAttachInternalsMixin,Tt as isCheckedIndeterminateMixin,Wt as isCheckedMixin,Ut as isCheckedOrSelected,Ot as isCheckedOrSelectedMixin,zs as isConstraintValidationMixin,It as isDirtyMixin,ps as isDisabledInteractiveMixin,cs as isDisabledMixin,ks as isFormAssociatedMixin,Hs as isFormSubmitterMixin,Us as isHtmlForMixin,gs as isLabelledMixin,Ai as isLinkButtonMixin,Li as isReadOnlyMixin,Ti as isRequiredConstraintValidationMixin,Wi as isRequiredMixin,Ht as isSelectedMixin,Vt as isTouchedMixin,Di as isVerticalMixin,Ue as prefersReducedMotion,Si as renderPseudoLink,et as safeStyleMap,Ne as scrollIntoViewIfNeeded,ys as updateLabels,Cs as validate};
527
56
  //# sourceMappingURL=index.min.js.map