@m3e/core 1.1.11 → 1.2.1
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/custom-elements.json +566 -566
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/src/shared/mixins/KeyboardClick.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.min.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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 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,u,m,f,v,y,g,b,x,w,$,k,E,_,S,A,C,L,M,z,W,P,T,H,F,O,D,U,N,I,R,B,q,V,j,X,Z,K,Y,Q,G,J,ee,te,se,ie,re,ae,ne,oe,le,he,ce,de,pe,ue,me,fe,ve,ye,ge,be,xe,we,$e,ke,Ee,_e,Se,Ae,Ce,Le,Me,ze,We,Pe,Te,He,Fe,Oe;"function"==typeof SuppressedError&&SuppressedError;class De{constructor(e,t){c.set(this,null),d.set(this,0),p.set(this,!1),u.set(this,void 0),m.set(this,()=>{if(!l(this,p,"f"))return;const e=performance.now();l(this,u,"f").call(this,(e-l(this,d,"f"))/1e3,e/1e3),h(this,d,e,"f"),h(this,c,requestAnimationFrame(l(this,m,"f")),"f")}),h(this,u,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){l(this,p,"f")||(h(this,p,!0,"f"),h(this,d,performance.now(),"f"),l(this,m,"f").call(this))}stop(){l(this,p,"f")&&(h(this,p,!1,"f"),null!==l(this,c,"f")&&(cancelAnimationFrame(l(this,c,"f")),h(this,c,null,"f")))}}c=new WeakMap,d=new WeakMap,p=new WeakMap,u=new WeakMap,m=new WeakMap;class Ue{constructor(e,t){f.set(this,void 0),v.set(this,void 0),y.set(this,new Set),h(this,f,e,"f"),h(this,v,t.target,"f"),l(this,f,"f").addController(this)}get targets(){return l(this,y,"f").values()}hostConnected(){null!==l(this,v,"f")&&this.observe(l(this,v,"f")??l(this,f,"f"))}hostDisconnected(){l(this,y,"f").forEach(e=>this.unobserve(e)),l(this,y,"f").clear()}observe(e){l(this,y,"f").has(e)||(l(this,y,"f").add(e),this._observe(e))}isObserving(e){return l(this,y,"f").has(e)}unobserve(e){l(this,y,"f").delete(e)&&this._unobserve(e)}}function Ne(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Ie(e,t=200){e.focus();const s=performance.now();for(;e.shadowRoot?.activeElement!==e;){if(!e.isConnected||performance.now()-s>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Re(){return!e&&matchMedia("(forced-colors: active)").matches}function Be(e,t,s){return e+(t-e)*s}function qe(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 Ve(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 je(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=qe(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=Ve(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:Be(e.x,t.x,i),y:Be(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,r]=s.pts;l.push(qe(e,t,r,i))}else if("C"===s.type){const[e,t,r,a]=s.pts;l.push(Ve(e,t,r,a,i))}}return l}function Xe(e,t,s){return Math.max(t,Math.min(s,e))}function Ze(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 Ke(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 Ye(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 Qe(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(Ye(s));for(let e=1;e<t.length;e++){let r=t[e];const a=Math.sign(Ye(r));0!==a&&a!==i&&(r=r.slice().reverse());const n=Ke(s,r);t[e]=Ze(r,n)}return t}(e.map(e=>je(e,t))).map(e=>function(e){const t=e.map(e=>{const t=Xe(100*e.x,0,100),s=Xe(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`});return`${t.join(", ")}`}(e))}function Ge(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+=Ge(i,t);else for(const i of e.childNodes)s+=Ge(i,t)}return t&&(s=s.trim()),s}function Je(){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 et(e){return e.assignedNodes({flatten:!0}).length>0}function tt(e,t,s){const i=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!i)throw new Error(`Property ${String(t)} not found on target.`);const r=i.get?.bind(e),a=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>r?.()):r?.(),set(e){s.set?s.set(e,e=>a?.(e)):a?.(e)}}),()=>Object.defineProperty(e,t,i)}function st(){return e||matchMedia("(prefers-reduced-motion)").matches}function it(e,t=document){return new Promise(s=>{const i=t.querySelector(`#${e}`);i?s(i):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>s(t.querySelector(`#${e}`)),{once:!0}):s(t.querySelector(`#${e}`))})}function rt(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function at(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}f=new WeakMap,v=new WeakMap,y=new WeakMap;class nt extends Ue{constructor(e,t){super(e,t),g.add(this),b.set(this,!1),x.set(this,void 0),w.set(this,e=>l(this,g,"m",L).call(this,e)),$.set(this,e=>l(this,g,"m",M).call(this,e)),k.set(this,e=>l(this,g,"m",z).call(this,e)),E.set(this,()=>h(this,b,!0,"f")),_.set(this,()=>h(this,b,!1,"f")),S.set(this,!1),A.set(this,()=>h(this,S,!0,"f")),C.set(this,()=>h(this,S,!1,"f")),h(this,x,t.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",l(this,A,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",l(this,C,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",l(this,A,"f"),{capture:!0}),window?.removeEventListener("pointerdown",l(this,C,"f"),{capture:!0})}_observe(e){e.addEventListener("keydown",l(this,w,"f")),e.addEventListener("focusin",l(this,$,"f")),e.addEventListener("focusout",l(this,k,"f")),e.addEventListener("touchstart",l(this,E,"f")),e.addEventListener("touchend",l(this,_,"f")),e.addEventListener("touchcancel",l(this,_,"f"))}_unobserve(e){e.removeEventListener("keydown",l(this,w,"f")),e.removeEventListener("focusin",l(this,$,"f")),e.removeEventListener("focusout",l(this,k,"f")),e.removeEventListener("touchstart",l(this,E,"f")),e.removeEventListener("touchend",l(this,_,"f")),e.removeEventListener("touchcancel",l(this,_,"f"))}}b=new WeakMap,x=new WeakMap,w=new WeakMap,$=new WeakMap,k=new WeakMap,E=new WeakMap,_=new WeakMap,S=new WeakMap,A=new WeakMap,C=new WeakMap,g=new WeakSet,L=function(e){e.currentTarget.matches(":focus-within")&&l(this,g,"m",M).call(this,e)},M=function(e){if(l(this,b,"f"))return;const t=e.currentTarget;l(this,x,"f").call(this,!0,t.matches(":focus-visible")||l(this,S,"f")||Re(),t)},z=function(e){l(this,b,"f")||l(this,x,"f").call(this,!1,!1,e.currentTarget)};class ot extends Ue{constructor(e,t){super(e,t),W.add(this),P.set(this,void 0),T.set(this,new Map),H.set(this,new Map),F.set(this,e=>l(this,W,"m",I).call(this,e)),O.set(this,e=>l(this,W,"m",R).call(this,e)),h(this,P,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)l(this,W,"m",D).call(this,e)}_observe(e){e.addEventListener("pointerenter",l(this,F,"f")),e.addEventListener("pointerleave",l(this,O,"f"))}_unobserve(e){e.removeEventListener("pointerenter",l(this,F,"f")),e.removeEventListener("pointerleave",l(this,O,"f"))}}P=new WeakMap,T=new WeakMap,H=new WeakMap,F=new WeakMap,O=new WeakMap,W=new WeakSet,D=function(e){l(this,W,"m",U).call(this,e),l(this,W,"m",N).call(this,e)},U=function(e){return!!l(this,T,"f").has(e)&&(clearTimeout(l(this,T,"f").get(e)),l(this,T,"f").delete(e))},N=function(e){return!!l(this,H,"f").has(e)&&(clearTimeout(l(this,H,"f").get(e)),l(this,H,"f").delete(e))},I=function(e){const t=e.target;l(this,W,"m",N).call(this,t),this.startDelay>0?(l(this,W,"m",U).call(this,t),l(this,T,"f").set(t,setTimeout(()=>{l(this,T,"f").delete(t),l(this,P,"f").call(this,!0,t)},this.startDelay))):l(this,P,"f").call(this,!0,t)},R=function(e){const t=e.target;l(this,W,"m",U).call(this,t)||(this.endDelay>0?(l(this,W,"m",N).call(this,t),l(this,H,"f").set(t,setTimeout(()=>{l(this,H,"f").delete(t),l(this,P,"f").call(this,!1,t)},this.endDelay))):l(this,P,"f").call(this,!1,t))};class lt extends Ue{constructor(t,s){super(t,s),B.set(this,void 0),q.set(this,void 0),V.set(this,!1),j.set(this,void 0),X.set(this,!0),h(this,B,t,"f"),h(this,q,s.callback,"f"),h(this,V,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?h(this,j,new IntersectionObserver((e,t)=>{l(this,q,"f").call(this,e,t),l(this,B,"f").requestUpdate()},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){l(this,j,"f")&&!l(this,V,"f")&&l(this,X,"f")&&l(this,q,"f").call(this,[],l(this,j,"f")),h(this,X,!1,"f")}_observe(e){l(this,j,"f")?.observe(e),h(this,X,!0,"f"),l(this,B,"f").requestUpdate()}_unobserve(e){l(this,j,"f")?.unobserve(e)}}B=new WeakMap,q=new WeakMap,V=new WeakMap,j=new WeakMap,X=new WeakMap;class ht extends Ue{constructor(e,t){super(e,t),Z.add(this),K.set(this,void 0),Y.set(this,void 0),Q.set(this,new Set),G.set(this,new Map),J.set(this,e=>l(this,Z,"m",te).call(this,e)),ee.set(this,e=>l(this,Z,"m",se).call(this,e)),h(this,K,t.callback,"f"),h(this,Y,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",l(this,J,"f"),{passive:!0}),e.addEventListener("touchend",l(this,ee,"f")),e.addEventListener("touchcancel",l(this,ee,"f"))}_unobserve(e){e.removeEventListener("touchstart",l(this,J,"f")),e.removeEventListener("touchend",l(this,ee,"f")),e.removeEventListener("touchcancel",l(this,ee,"f"))}}K=new WeakMap,Y=new WeakMap,Q=new WeakMap,G=new WeakMap,J=new WeakMap,ee=new WeakMap,Z=new WeakSet,te=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,G,"f").set(t,setTimeout(()=>{l(this,Q,"f").add(t),l(this,G,"f").delete(t),l(this,K,"f").call(this,!0,t)},l(this,Y,"f")))}},se=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,Q,"f").has(t)&&(l(this,K,"f").call(this,!1,t),l(this,Q,"f").delete(t)),l(this,G,"f").has(t)&&(clearTimeout(l(this,G,"f").get(t)),l(this,G,"f").delete(t))}};class ct extends Ue{constructor(t,s){super(t,s),ie.set(this,void 0),re.set(this,void 0),ae.set(this,!1),ne.set(this,void 0),oe.set(this,void 0),le.set(this,!0),h(this,ie,t,"f"),h(this,re,s.callback,"f"),h(this,ae,s.skipInitial??!1,"f"),h(this,ne,s.config,"f"),e||(window.MutationObserver?h(this,oe,new MutationObserver((e,t)=>{l(this,re,"f").call(this,e,t),l(this,ie,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(l(this,oe,"f")&&!l(this,ae,"f")&&l(this,le,"f")){const e=l(this,oe,"f").takeRecords();e.length>0&&l(this,re,"f").call(this,e,l(this,oe,"f"))}h(this,le,!1,"f")}hostDisconnected(){super.hostDisconnected(),l(this,oe,"f")?.disconnect()}_observe(e){l(this,oe,"f")?.observe(e,l(this,ne,"f")),h(this,le,!0,"f"),l(this,ie,"f").requestUpdate()}_unobserve(){l(this,oe,"f")?.disconnect();for(const e of this.targets)l(this,oe,"f")?.observe(e,l(this,ne,"f"))}}ie=new WeakMap,re=new WeakMap,ae=new WeakMap,ne=new WeakMap,oe=new WeakMap,le=new WeakMap;class dt extends Ue{constructor(e,t){super(e,t),he.add(this),ce.set(this,void 0),de.set(this,void 0),pe.set(this,void 0),ue.set(this,new Map),me.set(this,void 0),fe.set(this,e=>l(this,he,"m",xe).call(this,e)),ve.set(this,e=>l(this,he,"m",we).call(this,e)),ye.set(this,e=>l(this,he,"m",$e).call(this,e)),ge.set(this,e=>l(this,he,"m",ke).call(this,e)),be.set(this,e=>l(this,he,"m",Ee).call(this,e)),h(this,ce,t.capture,"f"),h(this,de,t.callback,"f"),h(this,pe,t.isPressedKey,"f"),h(this,me,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",l(this,ve,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchend",l(this,ye,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchcancel",l(this,ye,"f"),{capture:l(this,ce,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",l(this,ve,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchend",l(this,ye,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchcancel",l(this,ye,"f"),{capture:l(this,ce,"f")}),super.hostDisconnected(),l(this,ue,"f").clear()}_observe(e){e.addEventListener("pointerdown",l(this,fe,"f"),{capture:l(this,ce,"f")}),l(this,pe,"f")&&(e.addEventListener("keydown",l(this,ge,"f"),{capture:l(this,ce,"f")}),e.addEventListener("keyup",l(this,be,"f"),{capture:l(this,ce,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",l(this,fe,"f"),{capture:l(this,ce,"f")}),l(this,pe,"f")&&(e.removeEventListener("keydown",l(this,ge,"f"),{capture:l(this,ce,"f")}),e.removeEventListener("keyup",l(this,be,"f"),{capture:l(this,ce,"f")}))}}ce=new WeakMap,de=new WeakMap,pe=new WeakMap,ue=new WeakMap,me=new WeakMap,fe=new WeakMap,ve=new WeakMap,ye=new WeakMap,ge=new WeakMap,be=new WeakMap,he=new WeakSet,xe=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){l(this,ue,"f").has(t)||(l(this,ue,"f").set(t,performance.now()),l(this,de,"f").call(this,!0,{x:e.x,y:e.y},t));break}},we=function(e){if("mouse"===e.pointerType&&e.button>1)return;const t=e.x,s=e.y;for(const e of l(this,ue,"f").keys()){const i=l(this,me,"f")-(performance.now()-l(this,ue,"f").get(e));i>0?setTimeout(()=>{l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e))}},$e=function(e){const t=e.touches[0]?.clientX??0,s=e.touches[0]?.clientY??0;for(const e of l(this,ue,"f").keys()){const i=l(this,me,"f")-(performance.now()-l(this,ue,"f").get(e));i>0?setTimeout(()=>{l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e))}},ke=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(l(this,pe,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!l(this,ue,"f").has(t))){l(this,ue,"f").set(t,performance.now());const e=t.getBoundingClientRect();l(this,de,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},Ee=function(e){const t=e.target;if(l(this,ue,"f").has(t)&&l(this,pe,"f")?.call(this,e.key)){const e=l(this,me,"f")-(performance.now()-l(this,ue,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{l(this,ue,"f").delete(t),l(this,de,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(l(this,ue,"f").delete(t),l(this,de,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}};class pt extends Ue{constructor(t,s){super(t,s),_e.set(this,void 0),Se.set(this,void 0),Ae.set(this,void 0),Ce.set(this,void 0),Le.set(this,void 0),Me.set(this,!0),h(this,_e,t,"f"),h(this,Se,s.callback,"f"),h(this,Ae,s.skipInitial??!1,"f"),h(this,Ce,s.config,"f"),e||(window.ResizeObserver?h(this,Le,new ResizeObserver((e,t)=>{l(this,Se,"f").call(this,e,t),l(this,_e,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){l(this,Le,"f")&&!l(this,Ae,"f")&&l(this,Me,"f")&&l(this,Se,"f").call(this,[],l(this,Le,"f")),h(this,Me,!1,"f")}_observe(e){l(this,Le,"f")?.observe(e,l(this,Ce,"f")),h(this,Me,!0,"f"),l(this,_e,"f").requestUpdate()}_unobserve(e){l(this,Le,"f")?.unobserve(e)}}function ut(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}}_e=new WeakMap,Se=new WeakMap,Ae=new WeakMap,Ce=new WeakMap,Le=new WeakMap,Me=new WeakMap;class mt extends Ue{constructor(e,t){super(e,t),ze.add(this),We.set(this,void 0),Pe.set(this,void 0),Te.set(this,e=>l(this,ze,"m",Oe).call(this,e)),He.set(this,new Map),h(this,We,!0===t.debounce,"f"),h(this,Pe,t.callback,"f")}getScrollContainers(e){return l(this,He,"f").get(e)}_observe(e){const t=l(this,ze,"m",Fe).call(this,e);if(t.length>0){l(this,He,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",l(this,Te,"f"),{passive:!0})}}_unobserve(e){if(l(this,He,"f").has(e)){for(const t of l(this,He,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",l(this,Te,"f"));l(this,He,"f").delete(e)}}_debounceCallback(e){l(this,Pe,"f").call(this,e)}}We=new WeakMap,Pe=new WeakMap,Te=new WeakMap,He=new WeakMap,ze=new WeakSet,Fe=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},Oe=function(e){const t=e.target===document?document.documentElement:e.target;l(this,We,"f")?this._debounceCallback(t):l(this,Pe,"f").call(this,t)},o([ut(40)],mt.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,u,m,f,v,y,g,b,x,w,$,k,E,_,S,A,C,L,M,z,W,P,T,H,F,O,D,U,N,I,R,B,q,V,j,X,Z,K,Y,Q,G,J,ee,te,se,ie,re,ae,ne,oe,le,he,ce,de,pe,ue,me,fe,ve,ye,ge,be,xe,we,$e,ke,Ee,_e,Se,Ae,Ce,Le,Me,ze,We,Pe,Te,He,Fe,Oe;"function"==typeof SuppressedError&&SuppressedError;class De{constructor(e,t){c.set(this,null),d.set(this,0),p.set(this,!1),u.set(this,void 0),m.set(this,()=>{if(!l(this,p,"f"))return;const e=performance.now();l(this,u,"f").call(this,(e-l(this,d,"f"))/1e3,e/1e3),h(this,d,e,"f"),h(this,c,requestAnimationFrame(l(this,m,"f")),"f")}),h(this,u,t,"f"),e.addController(this)}hostDisconnected(){this.stop()}start(){l(this,p,"f")||(h(this,p,!0,"f"),h(this,d,performance.now(),"f"),l(this,m,"f").call(this))}stop(){l(this,p,"f")&&(h(this,p,!1,"f"),null!==l(this,c,"f")&&(cancelAnimationFrame(l(this,c,"f")),h(this,c,null,"f")))}}c=new WeakMap,d=new WeakMap,p=new WeakMap,u=new WeakMap,m=new WeakMap;class Ue{constructor(e,t){f.set(this,void 0),v.set(this,void 0),y.set(this,new Set),h(this,f,e,"f"),h(this,v,t.target,"f"),l(this,f,"f").addController(this)}get targets(){return l(this,y,"f").values()}hostConnected(){null!==l(this,v,"f")&&this.observe(l(this,v,"f")??l(this,f,"f"))}hostDisconnected(){l(this,y,"f").forEach(e=>this.unobserve(e)),l(this,y,"f").clear()}observe(e){l(this,y,"f").has(e)||(l(this,y,"f").add(e),this._observe(e))}isObserving(e){return l(this,y,"f").has(e)}unobserve(e){l(this,y,"f").delete(e)&&this._unobserve(e)}}function Ne(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Ie(e,t=200){e.focus();const s=performance.now();for(;e.shadowRoot?.activeElement!==e;){if(!e.isConnected||performance.now()-s>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Re(){return!e&&matchMedia("(forced-colors: active)").matches}function Be(e,t,s){return e+(t-e)*s}function qe(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 Ve(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 je(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=qe(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=Ve(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:Be(e.x,t.x,i),y:Be(e.y,t.y,i)})}else if("Q"===s.type){const[e,t,r]=s.pts;l.push(qe(e,t,r,i))}else if("C"===s.type){const[e,t,r,a]=s.pts;l.push(Ve(e,t,r,a,i))}}return l}function Xe(e,t,s){return Math.max(t,Math.min(s,e))}function Ze(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 Ke(e,t){const s=Math.min(t.length,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 Ye(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 Qe(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(Ye(s));for(let e=1;e<t.length;e++){let r=t[e];const a=Math.sign(Ye(r));0!==a&&a!==i&&(r=r.slice().reverse());const n=Ke(s,r);t[e]=Ze(r,n)}return t}(e.map(e=>je(e,t))).map(e=>function(e){const t=e.map(e=>{const t=Xe(100*e.x,0,100),s=Xe(100*e.y,0,100);return`${t.toFixed(2)}% ${s.toFixed(2)}%`});return`${t.join(", ")}`}(e))}function Ge(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+=Ge(i,t);else for(const i of e.childNodes)s+=Ge(i,t)}return t&&(s=s.trim()),s}function Je(){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 et(e){return e.assignedNodes({flatten:!0}).length>0}function tt(e,t,s){const i=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!i)throw new Error(`Property ${String(t)} not found on target.`);const r=i.get?.bind(e),a=i.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:i.enumerable,get:()=>s.get?s.get(()=>r?.()):r?.(),set(e){s.set?s.set(e,e=>a?.(e)):a?.(e)}}),()=>Object.defineProperty(e,t,i)}function st(){return e||matchMedia("(prefers-reduced-motion)").matches}function it(e,t=document){return new Promise(s=>{const i=t.querySelector(`#${e}`);i?s(i):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>s(t.querySelector(`#${e}`)),{once:!0}):s(t.querySelector(`#${e}`))})}function rt(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function at(e,t,s){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect();(r.top<i.top||r.bottom>i.bottom)&&e.scrollIntoView(s)}f=new WeakMap,v=new WeakMap,y=new WeakMap;class nt extends Ue{constructor(e,t){super(e,t),g.add(this),b.set(this,!1),x.set(this,void 0),w.set(this,e=>l(this,g,"m",L).call(this,e)),$.set(this,e=>l(this,g,"m",M).call(this,e)),k.set(this,e=>l(this,g,"m",z).call(this,e)),E.set(this,()=>h(this,b,!0,"f")),_.set(this,()=>h(this,b,!1,"f")),S.set(this,!1),A.set(this,()=>h(this,S,!0,"f")),C.set(this,()=>h(this,S,!1,"f")),h(this,x,t.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",l(this,A,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",l(this,C,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",l(this,A,"f"),{capture:!0}),window?.removeEventListener("pointerdown",l(this,C,"f"),{capture:!0})}_observe(e){e.addEventListener("keydown",l(this,w,"f")),e.addEventListener("focusin",l(this,$,"f")),e.addEventListener("focusout",l(this,k,"f")),e.addEventListener("touchstart",l(this,E,"f")),e.addEventListener("touchend",l(this,_,"f")),e.addEventListener("touchcancel",l(this,_,"f"))}_unobserve(e){e.removeEventListener("keydown",l(this,w,"f")),e.removeEventListener("focusin",l(this,$,"f")),e.removeEventListener("focusout",l(this,k,"f")),e.removeEventListener("touchstart",l(this,E,"f")),e.removeEventListener("touchend",l(this,_,"f")),e.removeEventListener("touchcancel",l(this,_,"f"))}}b=new WeakMap,x=new WeakMap,w=new WeakMap,$=new WeakMap,k=new WeakMap,E=new WeakMap,_=new WeakMap,S=new WeakMap,A=new WeakMap,C=new WeakMap,g=new WeakSet,L=function(e){e.currentTarget.matches(":focus-within")&&l(this,g,"m",M).call(this,e)},M=function(e){if(l(this,b,"f"))return;const t=e.currentTarget;l(this,x,"f").call(this,!0,t.matches(":focus-visible")||l(this,S,"f")||Re(),t)},z=function(e){l(this,b,"f")||l(this,x,"f").call(this,!1,!1,e.currentTarget)};class ot extends Ue{constructor(e,t){super(e,t),W.add(this),P.set(this,void 0),T.set(this,new Map),H.set(this,new Map),F.set(this,e=>l(this,W,"m",I).call(this,e)),O.set(this,e=>l(this,W,"m",R).call(this,e)),h(this,P,t.callback,"f"),this.startDelay=t.startDelay??0,this.endDelay=t.endDelay??0}clearDelays(){for(const e of this.targets)l(this,W,"m",D).call(this,e)}_observe(e){e.addEventListener("pointerenter",l(this,F,"f")),e.addEventListener("pointerleave",l(this,O,"f"))}_unobserve(e){e.removeEventListener("pointerenter",l(this,F,"f")),e.removeEventListener("pointerleave",l(this,O,"f"))}}P=new WeakMap,T=new WeakMap,H=new WeakMap,F=new WeakMap,O=new WeakMap,W=new WeakSet,D=function(e){l(this,W,"m",U).call(this,e),l(this,W,"m",N).call(this,e)},U=function(e){return!!l(this,T,"f").has(e)&&(clearTimeout(l(this,T,"f").get(e)),l(this,T,"f").delete(e))},N=function(e){return!!l(this,H,"f").has(e)&&(clearTimeout(l(this,H,"f").get(e)),l(this,H,"f").delete(e))},I=function(e){const t=e.target;l(this,W,"m",N).call(this,t),this.startDelay>0?(l(this,W,"m",U).call(this,t),l(this,T,"f").set(t,setTimeout(()=>{l(this,T,"f").delete(t),l(this,P,"f").call(this,!0,t)},this.startDelay))):l(this,P,"f").call(this,!0,t)},R=function(e){const t=e.target;l(this,W,"m",U).call(this,t)||(this.endDelay>0?(l(this,W,"m",N).call(this,t),l(this,H,"f").set(t,setTimeout(()=>{l(this,H,"f").delete(t),l(this,P,"f").call(this,!1,t)},this.endDelay))):l(this,P,"f").call(this,!1,t))};class lt extends Ue{constructor(t,s){super(t,s),B.set(this,void 0),q.set(this,void 0),V.set(this,!1),j.set(this,void 0),X.set(this,!0),h(this,B,t,"f"),h(this,q,s.callback,"f"),h(this,V,s.skipInitial??!1,"f"),e||(window.IntersectionObserver?h(this,j,new IntersectionObserver((e,t)=>{l(this,q,"f").call(this,e,t),l(this,B,"f").requestUpdate()},s.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){l(this,j,"f")&&!l(this,V,"f")&&l(this,X,"f")&&l(this,q,"f").call(this,[],l(this,j,"f")),h(this,X,!1,"f")}_observe(e){l(this,j,"f")?.observe(e),h(this,X,!0,"f"),l(this,B,"f").requestUpdate()}_unobserve(e){l(this,j,"f")?.unobserve(e)}}B=new WeakMap,q=new WeakMap,V=new WeakMap,j=new WeakMap,X=new WeakMap;class ht extends Ue{constructor(e,t){super(e,t),Z.add(this),K.set(this,void 0),Y.set(this,void 0),Q.set(this,new Set),G.set(this,new Map),J.set(this,e=>l(this,Z,"m",te).call(this,e)),ee.set(this,e=>l(this,Z,"m",se).call(this,e)),h(this,K,t.callback,"f"),h(this,Y,t.threshold??500,"f")}_observe(e){e.addEventListener("touchstart",l(this,J,"f"),{passive:!0}),e.addEventListener("touchend",l(this,ee,"f")),e.addEventListener("touchcancel",l(this,ee,"f"))}_unobserve(e){e.removeEventListener("touchstart",l(this,J,"f")),e.removeEventListener("touchend",l(this,ee,"f")),e.removeEventListener("touchcancel",l(this,ee,"f"))}}K=new WeakMap,Y=new WeakMap,Q=new WeakMap,G=new WeakMap,J=new WeakMap,ee=new WeakMap,Z=new WeakSet,te=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,G,"f").set(t,setTimeout(()=>{l(this,Q,"f").add(t),l(this,G,"f").delete(t),l(this,K,"f").call(this,!0,t)},l(this,Y,"f")))}},se=function(e){if(e.currentTarget instanceof HTMLElement&&this.isObserving(e.currentTarget)){const t=e.currentTarget;l(this,Q,"f").has(t)&&(l(this,K,"f").call(this,!1,t),l(this,Q,"f").delete(t)),l(this,G,"f").has(t)&&(clearTimeout(l(this,G,"f").get(t)),l(this,G,"f").delete(t))}};class ct extends Ue{constructor(t,s){super(t,s),ie.set(this,void 0),re.set(this,void 0),ae.set(this,!1),ne.set(this,void 0),oe.set(this,void 0),le.set(this,!0),h(this,ie,t,"f"),h(this,re,s.callback,"f"),h(this,ae,s.skipInitial??!1,"f"),h(this,ne,s.config,"f"),e||(window.MutationObserver?h(this,oe,new MutationObserver((e,t)=>{l(this,re,"f").call(this,e,t),l(this,ie,"f").requestUpdate()}),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(l(this,oe,"f")&&!l(this,ae,"f")&&l(this,le,"f")){const e=l(this,oe,"f").takeRecords();e.length>0&&l(this,re,"f").call(this,e,l(this,oe,"f"))}h(this,le,!1,"f")}hostDisconnected(){super.hostDisconnected(),l(this,oe,"f")?.disconnect()}_observe(e){l(this,oe,"f")?.observe(e,l(this,ne,"f")),h(this,le,!0,"f"),l(this,ie,"f").requestUpdate()}_unobserve(){l(this,oe,"f")?.disconnect();for(const e of this.targets)l(this,oe,"f")?.observe(e,l(this,ne,"f"))}}ie=new WeakMap,re=new WeakMap,ae=new WeakMap,ne=new WeakMap,oe=new WeakMap,le=new WeakMap;class dt extends Ue{constructor(e,t){super(e,t),he.add(this),ce.set(this,void 0),de.set(this,void 0),pe.set(this,void 0),ue.set(this,new Map),me.set(this,void 0),fe.set(this,e=>l(this,he,"m",xe).call(this,e)),ve.set(this,e=>l(this,he,"m",we).call(this,e)),ye.set(this,e=>l(this,he,"m",$e).call(this,e)),ge.set(this,e=>l(this,he,"m",ke).call(this,e)),be.set(this,e=>l(this,he,"m",Ee).call(this,e)),h(this,ce,t.capture,"f"),h(this,de,t.callback,"f"),h(this,pe,t.isPressedKey,"f"),h(this,me,t.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",l(this,ve,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchend",l(this,ye,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchcancel",l(this,ye,"f"),{capture:l(this,ce,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",l(this,ve,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchend",l(this,ye,"f"),{capture:l(this,ce,"f")}),document.addEventListener("touchcancel",l(this,ye,"f"),{capture:l(this,ce,"f")}),super.hostDisconnected(),l(this,ue,"f").clear()}_observe(e){e.addEventListener("pointerdown",l(this,fe,"f"),{capture:l(this,ce,"f")}),l(this,pe,"f")&&(e.addEventListener("keydown",l(this,ge,"f"),{capture:l(this,ce,"f")}),e.addEventListener("keyup",l(this,be,"f"),{capture:l(this,ce,"f")}))}_unobserve(e){e.removeEventListener("pointerdown",l(this,fe,"f"),{capture:l(this,ce,"f")}),l(this,pe,"f")&&(e.removeEventListener("keydown",l(this,ge,"f"),{capture:l(this,ce,"f")}),e.removeEventListener("keyup",l(this,be,"f"),{capture:l(this,ce,"f")}))}}ce=new WeakMap,de=new WeakMap,pe=new WeakMap,ue=new WeakMap,me=new WeakMap,fe=new WeakMap,ve=new WeakMap,ye=new WeakMap,ge=new WeakMap,be=new WeakMap,he=new WeakSet,xe=function(e){if(!("mouse"===e.pointerType&&e.button>1))for(const t of e.composedPath())if(t instanceof HTMLElement&&this.isObserving(t)){l(this,ue,"f").has(t)||(l(this,ue,"f").set(t,performance.now()),l(this,de,"f").call(this,!0,{x:e.x,y:e.y},t));break}},we=function(e){if("mouse"===e.pointerType&&e.button>1)return;const t=e.x,s=e.y;for(const e of l(this,ue,"f").keys()){const i=l(this,me,"f")-(performance.now()-l(this,ue,"f").get(e));i>0?setTimeout(()=>{l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e))}},$e=function(e){const t=e.touches[0]?.clientX??0,s=e.touches[0]?.clientY??0;for(const e of l(this,ue,"f").keys()){const i=l(this,me,"f")-(performance.now()-l(this,ue,"f").get(e));i>0?setTimeout(()=>{l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e)},i):(l(this,ue,"f").delete(e),l(this,de,"f").call(this,!1,{x:t,y:s},e))}},ke=function(e){if(e.target!==e.currentTarget)return;const t=e.currentTarget;if(l(this,pe,"f")?.call(this,e.key)&&(" "===e.key&&e.preventDefault(),!l(this,ue,"f").has(t))){l(this,ue,"f").set(t,performance.now());const e=t.getBoundingClientRect();l(this,de,"f").call(this,!0,{x:e.x+e.width/2,y:e.y+e.height/2},t)}},Ee=function(e){const t=e.target;if(l(this,ue,"f").has(t)&&l(this,pe,"f")?.call(this,e.key)){const e=l(this,me,"f")-(performance.now()-l(this,ue,"f").get(t)),s=t.getBoundingClientRect();e>0?setTimeout(()=>{l(this,ue,"f").delete(t),l(this,de,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t)},e):(l(this,ue,"f").delete(t),l(this,de,"f").call(this,!1,{x:s.x+s.width/2,y:s.y+s.height/2},t))}};class pt extends Ue{constructor(t,s){super(t,s),_e.set(this,void 0),Se.set(this,void 0),Ae.set(this,void 0),Ce.set(this,void 0),Le.set(this,void 0),Me.set(this,!0),h(this,_e,t,"f"),h(this,Se,s.callback,"f"),h(this,Ae,s.skipInitial??!1,"f"),h(this,Ce,s.config,"f"),e||(window.ResizeObserver?h(this,Le,new ResizeObserver((e,t)=>{l(this,Se,"f").call(this,e,t),l(this,_e,"f").requestUpdate()}),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){l(this,Le,"f")&&!l(this,Ae,"f")&&l(this,Me,"f")&&l(this,Se,"f").call(this,[],l(this,Le,"f")),h(this,Me,!1,"f")}_observe(e){l(this,Le,"f")?.observe(e,l(this,Ce,"f")),h(this,Me,!0,"f"),l(this,_e,"f").requestUpdate()}_unobserve(e){l(this,Le,"f")?.unobserve(e)}}function ut(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}}_e=new WeakMap,Se=new WeakMap,Ae=new WeakMap,Ce=new WeakMap,Le=new WeakMap,Me=new WeakMap;class mt extends Ue{constructor(e,t){super(e,t),ze.add(this),We.set(this,void 0),Pe.set(this,void 0),Te.set(this,e=>l(this,ze,"m",Oe).call(this,e)),He.set(this,new Map),h(this,We,!0===t.debounce,"f"),h(this,Pe,t.callback,"f")}getScrollContainers(e){return l(this,He,"f").get(e)}_observe(e){const t=l(this,ze,"m",Fe).call(this,e);if(t.length>0){l(this,He,"f").set(e,t);for(const e of t)(e===document.documentElement?document:e).addEventListener("scroll",l(this,Te,"f"),{passive:!0})}}_unobserve(e){if(l(this,He,"f").has(e)){for(const t of l(this,He,"f").get(e))(t===document.documentElement?document:t).removeEventListener("scroll",l(this,Te,"f"));l(this,He,"f").delete(e)}}_debounceCallback(e){l(this,Pe,"f").call(this,e)}}We=new WeakMap,Pe=new WeakMap,Te=new WeakMap,He=new WeakMap,ze=new WeakSet,Fe=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},Oe=function(e){const t=e.target===document?document.documentElement:e.target;l(this,We,"f")?this._debounceCallback(t):l(this,Pe,"f").call(this,t)},o([ut(40)],mt.prototype,"_debounceCallback",null);
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
@@ -41,7 +41,7 @@ const Xt={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:qt},Zt=(e=
|
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
43
|
*/
|
|
44
|
-
function Yt(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 Qt(e){return xt(e,"checked")}function Gt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return o([Kt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Jt(e){return xt(e,"indeterminate")&&Qt(e)}function es(e){class t extends(Gt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return o([Kt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function ts(e){return xt(e,"selected")}function ss(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([Kt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function is(e){return Qt(e)||ts(e)}function rs(e){return Qt(e)&&e.checked||ts(e)&&e.selected}function as(e,t){Qt(e)?e.checked=t:e.selected=t}function ns(e){return xt(e,"dirty","pristine","markAsDirty","markAsPristine")}const os=Symbol("_eventHandler");function ls(e){var t;return t=os,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[os])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[os])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function hs(e){return xt(e,"touched","untouched","markAsTouched","markAsUntouched")}const cs=Symbol("_eventHandler");function ds(e){var t;return t=cs,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[cs],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[cs],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const ps={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)")},us={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},ms={...us,calc:e=>i(`calc(max(${e}, ${us.scale}) * ${us.size})`)},fs=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 20%, transparent)`,vs=["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"],ys=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 14%, transparent)`,gs=["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"],bs=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 12%, transparent)`,xs=["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 ws(e){return`${fs} ${vs[e]},${ys} ${gs[e]},${bs} ${xs[e]}`}const $s={level0:i(`var(--md-sys-elevation-level0, ${ws(0)})`),level1:i(`var(--md-sys-elevation-level1, ${ws(1)})`),level2:i(`var(--md-sys-elevation-level2, ${ws(3)})`),level3:i(`var(--md-sys-elevation-level3, ${ws(6)})`),level4:i(`var(--md-sys-elevation-level4, ${ws(8)})`),level5:i(`var(--md-sys-elevation-level5, ${ws(12)})`)},ks={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))")},Es={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))")},_s={easing:ks,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:Es},Ss={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)")},As={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)")},Cs={color:ps,elevation:$s,motion:_s,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${As.extraLarge} ${As.extraLarge} ${As.none} ${As.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${As.extraLarge})`),extraLargeEnd:i(`${As.none} ${As.extraLarge} ${As.extraLarge} ${As.none}`),extraLargeStart:i(`${As.extraLarge} ${As.none} ${As.none} ${As.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${As.large} ${As.large} ${As.none} ${As.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${As.none} ${As.large} ${As.large} ${As.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${As.large} ${As.none} ${As.none} ${As.large})`),large:i(`var(--md-sys-shape-corner-large, ${As.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${As.medium})`),mediumTop:i(`${As.medium} ${As.medium} ${As.none} ${As.none}`),mediumEnd:i(`${As.none} ${As.medium} ${As.medium} ${As.none}`),mediumStart:i(`${As.medium} ${As.none} ${As.none} ${As.medium}`),small:i(`var(--md-sys-shape-corner-small, ${As.small})`),smallTop:i(`${As.small} ${As.small} ${As.none} ${As.none}`),smallEnd:i(`${As.none} ${As.small} ${As.small} ${As.none}`),smallStart:i(`${As.small} ${As.none} ${As.none} ${As.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${As.extraSmall} ${As.extraSmall} ${As.none} ${As.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${As.extraSmall})`),extraSmallEnd:i(`${As.none} ${As.extraSmall} ${As.extraSmall} ${As.none}`),extraSmallStart:i(`${As.extraSmall} ${As.none} ${As.none} ${As.extraSmall}`),extraSmallBottom:i(`${As.none} ${As.none} ${As.extraSmall} ${As.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${As.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${As.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${As.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${As.extraExtraLarge})`),value:As}},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:Ss,density:ms};function Ls(e){return xt(e,"disabled")}function Ms(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([Kt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function zs(e){return xt(e,"disabledInteractive")&&Ls(e)}const Ws=["click","dblclick","auxclick","keydown","keyup"],Ps=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Ts=Symbol("_suppressedEventHandler");function Hs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ps.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Ws.forEach(e=>this.addEventListener(e,this[Ts],!0)),super.connectedCallback()}disconnectedCallback(){Ws.forEach(e=>this.removeEventListener(e,this[Ts],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=Ts,o([Kt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const Fs=Symbol("updateLabels");function Os(e){return xt(e,"labels")&&$t(e)}const Ds=Symbol("_eventHandler");function Us(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Fs]()}}get labels(){return this[wt].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[Fs]()}[(t=Ds,Fs)](){const e=this.hasAttribute("tabindex"),t=Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive,s=hs(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, ${Cs.color.onSurface} 38%, transparent)`:s?`${Cs.color.error}`:""}}return s.formAssociated=!0,s}const Ns=Symbol("formValue"),Is=Symbol("defaultValue");function Rs(e){return xt(e,"disabled","form","name")&&Os(e)&&$t(e)}const Bs=Symbol("_defaultValue"),qs=Symbol("_defaultIndeterminate"),Vs=Symbol("_formDisabled");function js(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[wt].form}get labels(){return this[wt].labels}get[(t=qs,s=Vs,Ns)](){return null}get[Is](){return this[Bs]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Vs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Qt(this)?(this[Bs]=this.checked,Jt(this)&&(this[qs]=this.indeterminate)):"value"in this&&(this[Bs]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[wt].setFormValue(this[Ns])}formDisabledCallback(e){const t=this.disabled;this[Vs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Qt(this)?(this.checked=!0===this[Bs],Jt(this)&&(this.indeterminate=this[qs])):"value"in this&&(this.value=this[Is]),ns(this)&&this.markAsPristine(),hs(this)&&this.markAsUntouched()}}return i.formAssociated=!0,o([Kt({noAccessor:!0})],i.prototype,"name",null),o([Kt({type:Boolean})],i.prototype,"disabled",null),i}const Xs=Symbol("validate");function Zs(e){return xt(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Rs(e)}const Ks=Symbol("_updateValidity"),Ys=Symbol("_validityMessage");function Qs(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[wt].willValidate}get validity(){return this[Ks](),this[wt].validity}get validationMessage(){return this[Ks](),this[wt].validationMessage}[(s=new WeakSet,Xs)](){return this[Ys]?{customError:!0}:void 0}reportValidity(){return hs(this)&&this.markAsTouched(),this[Ks](),this[wt].reportValidity()}checkValidity(){return this[Ks](),this[wt].checkValidity()}setCustomValidity(e){this[Ys]=e||void 0,this[Ks]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ks]()}firstUpdated(e){super.firstUpdated(e),this[Ks]()}[Ks](){if(e||!this.isConnected)return;const t=this[Xs](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[Ys]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[wt].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),Os(this)&&this[Fs]?.()}}return i=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},r}function Gs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Js=Symbol("_tabindex");function ei(e){var t;return t=Js,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Js]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Js]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Js]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Js]}`)}}}function ti(e){return xt(e,"name","type","value")&&$t(e)}const si=Symbol("_clickHandler");function ii(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive)return;const t=this[wt].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[wt].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[si])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[si])}}return t=si,s.formAssociated=!0,o([Kt()],s.prototype,"name",null),o([Kt()],s.prototype,"value",null),o([Kt()],s.prototype,"type",void 0),s}function ri(e){return xt(e,"htmlFor","control","attach","detach")}const ai=Symbol("_control"),ni=Symbol("_firstUpdated");function oi(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[ai]}firstUpdated(e){super.firstUpdated(e),this[ni]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&it(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[ni]&&this.detach()}attach(e){this[ai]=e}detach(){this[ai]=null}}return t=ai,s=ni,o([Kt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function li(e,t=!0){var s,i,r,a,n,o,c;return i=new WeakMap,r=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakSet,o=function(e){e.defaultPrevented||e.target!==e.currentTarget||Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive||(" "===e.key||t&&"Enter"===e.key)&&h(this,i,!0,"f")},c=function(e){e.defaultPrevented||e.target!==e.currentTarget||Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive||!l(this,i,"f")||this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0}))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,!1),r.set(this,e=>l(this,s,"m",o).call(this,e)),a.set(this,e=>l(this,s,"m",c).call(this,e)),n.set(this,()=>h(this,i,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",l(this,r,"f")),this.addEventListener("keyup",l(this,a,"f")),this.addEventListener("focusout",l(this,n,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",l(this,r,"f")),this.removeEventListener("keyup",l(this,a,"f")),this.removeEventListener("focusout",l(this,n,"f"))}}}
|
|
44
|
+
function Yt(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 Qt(e){return xt(e,"checked")}function Gt(e){class t extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return o([Kt({type:Boolean,reflect:!0})],t.prototype,"checked",void 0),t}function Jt(e){return xt(e,"indeterminate")&&Qt(e)}function es(e){class t extends(Gt(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return o([Kt({type:Boolean,reflect:!0})],t.prototype,"indeterminate",void 0),t}function ts(e){return xt(e,"selected")}function ss(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([Kt({type:Boolean,reflect:!0})],t.prototype,"selected",void 0),t}function is(e){return Qt(e)||ts(e)}function rs(e){return Qt(e)&&e.checked||ts(e)&&e.selected}function as(e,t){Qt(e)?e.checked=t:e.selected=t}function ns(e){return xt(e,"dirty","pristine","markAsDirty","markAsPristine")}const os=Symbol("_eventHandler");function ls(e){var t;return t=os,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[os])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[os])}markAsPristine(){this.classList.toggle("-dirty",!1)}markAsDirty(){this.classList.toggle("-dirty",!0)}}}function hs(e){return xt(e,"touched","untouched","markAsTouched","markAsUntouched")}const cs=Symbol("_eventHandler");function ds(e){var t;return t=cs,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[cs],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[cs],{capture:!0})}markAsTouched(){this.classList.toggle("-touched",!0)}markAsUntouched(){this.classList.toggle("-touched",!1)}}}const ps={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)")},us={scale:i("var(--md-sys-density-scale, 0)"),size:i("var(--md-sys-density-size, 0.25rem)")},ms={...us,calc:e=>i(`calc(max(${e}, ${us.scale}) * ${us.size})`)},fs=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 20%, transparent)`,vs=["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"],ys=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 14%, transparent)`,gs=["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"],bs=`color-mix(in srgb, var(--m3e-elevation-color, ${ps.shadow}) 12%, transparent)`,xs=["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 ws(e){return`${fs} ${vs[e]},${ys} ${gs[e]},${bs} ${xs[e]}`}const $s={level0:i(`var(--md-sys-elevation-level0, ${ws(0)})`),level1:i(`var(--md-sys-elevation-level1, ${ws(1)})`),level2:i(`var(--md-sys-elevation-level2, ${ws(3)})`),level3:i(`var(--md-sys-elevation-level3, ${ws(6)})`),level4:i(`var(--md-sys-elevation-level4, ${ws(8)})`),level5:i(`var(--md-sys-elevation-level5, ${ws(12)})`)},ks={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))")},Es={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))")},_s={easing:ks,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:Es},Ss={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)")},As={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)")},Cs={color:ps,elevation:$s,motion:_s,shape:{corner:{full:i("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:i(`var(--md-sys-shape-corner-extra-large-top, ${As.extraLarge} ${As.extraLarge} ${As.none} ${As.none})`),extraLarge:i(`var(--md-sys-shape-corner-extra-large, ${As.extraLarge})`),extraLargeEnd:i(`${As.none} ${As.extraLarge} ${As.extraLarge} ${As.none}`),extraLargeStart:i(`${As.extraLarge} ${As.none} ${As.none} ${As.extraLarge}`),largeTop:i(`var(--md-sys-shape-corner-large-top, ${As.large} ${As.large} ${As.none} ${As.none})`),largeEnd:i(`var(--md-sys-shape-corner-large-end, ${As.none} ${As.large} ${As.large} ${As.none})`),largeStart:i(`var(--md-sys-shape-corner-large-end, ${As.large} ${As.none} ${As.none} ${As.large})`),large:i(`var(--md-sys-shape-corner-large, ${As.large})`),medium:i(`var(--md-sys-shape-corner-medium, ${As.medium})`),mediumTop:i(`${As.medium} ${As.medium} ${As.none} ${As.none}`),mediumEnd:i(`${As.none} ${As.medium} ${As.medium} ${As.none}`),mediumStart:i(`${As.medium} ${As.none} ${As.none} ${As.medium}`),small:i(`var(--md-sys-shape-corner-small, ${As.small})`),smallTop:i(`${As.small} ${As.small} ${As.none} ${As.none}`),smallEnd:i(`${As.none} ${As.small} ${As.small} ${As.none}`),smallStart:i(`${As.small} ${As.none} ${As.none} ${As.small}`),extraSmallTop:i(`var(--md-sys-shape-corner-extra-small-top, ${As.extraSmall} ${As.extraSmall} ${As.none} ${As.none})`),extraSmall:i(`var(--md-sys-shape-corner-extra-small, ${As.extraSmall})`),extraSmallEnd:i(`${As.none} ${As.extraSmall} ${As.extraSmall} ${As.none}`),extraSmallStart:i(`${As.extraSmall} ${As.none} ${As.none} ${As.extraSmall}`),extraSmallBottom:i(`${As.none} ${As.none} ${As.extraSmall} ${As.extraSmall}`),none:i(`var(--md-sys-shape-corner-none, ${As.none})`),largeIncreased:i(`var(--md-sys-shape-corner-large-increased, ${As.largeIncreased})`),extraLargeIncreased:i(`var(--md-sys-shape-corner-extra-large-increased, ${As.extraLargeIncreased})`),extraExtraLarge:i(`var(--md-sys-shape-corner-extra-extra-large, ${As.extraExtraLarge})`),value:As}},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:Ss,density:ms};function Ls(e){return xt(e,"disabled")}function Ms(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([Kt({type:Boolean,reflect:t})],s.prototype,"disabled",void 0),s}function zs(e){return xt(e,"disabledInteractive")&&Ls(e)}const Ws=["click","dblclick","auxclick","keydown","keyup"],Ps=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],Ts=Symbol("_suppressedEventHandler");function Hs(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&Ps.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){Ws.forEach(e=>this.addEventListener(e,this[Ts],!0)),super.connectedCallback()}disconnectedCallback(){Ws.forEach(e=>this.removeEventListener(e,this[Ts],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return t=Ts,o([Kt({attribute:"disabled-interactive",type:Boolean,reflect:!0})],s.prototype,"disabledInteractive",void 0),s}const Fs=Symbol("updateLabels");function Os(e){return xt(e,"labels")&&$t(e)}const Ds=Symbol("_eventHandler");function Us(e){var t;class s extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[Fs]()}}get labels(){return this[wt].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[Fs]()}[(t=Ds,Fs)](){const e=this.hasAttribute("tabindex"),t=Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive,s=hs(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, ${Cs.color.onSurface} 38%, transparent)`:s?`${Cs.color.error}`:""}}return s.formAssociated=!0,s}const Ns=Symbol("formValue"),Is=Symbol("defaultValue");function Rs(e){return xt(e,"disabled","form","name")&&Os(e)&&$t(e)}const Bs=Symbol("_defaultValue"),qs=Symbol("_defaultIndeterminate"),Vs=Symbol("_formDisabled");function js(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=!1,this[s]=!1}get form(){return this[wt].form}get labels(){return this[wt].labels}get[(t=qs,s=Vs,Ns)](){return null}get[Is](){return this[Bs]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Vs]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Qt(this)?(this[Bs]=this.checked,Jt(this)&&(this[qs]=this.indeterminate)):"value"in this&&(this[Bs]=this.value)}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[wt].setFormValue(this[Ns])}formDisabledCallback(e){const t=this.disabled;this[Vs]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Qt(this)?(this.checked=!0===this[Bs],Jt(this)&&(this.indeterminate=this[qs])):"value"in this&&(this.value=this[Is]),ns(this)&&this.markAsPristine(),hs(this)&&this.markAsUntouched()}}return i.formAssociated=!0,o([Kt({noAccessor:!0})],i.prototype,"name",null),o([Kt({type:Boolean})],i.prototype,"disabled",null),i}const Xs=Symbol("validate");function Zs(e){return xt(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&Rs(e)}const Ks=Symbol("_updateValidity"),Ys=Symbol("_validityMessage");function Qs(t){var s,i;class r extends t{constructor(){super(...arguments),s.add(this)}get willValidate(){return this[wt].willValidate}get validity(){return this[Ks](),this[wt].validity}get validationMessage(){return this[Ks](),this[wt].validationMessage}[(s=new WeakSet,Xs)](){return this[Ys]?{customError:!0}:void 0}reportValidity(){return hs(this)&&this.markAsTouched(),this[Ks](),this[wt].reportValidity()}checkValidity(){return this[Ks](),this[wt].checkValidity()}setCustomValidity(e){this[Ys]=e||void 0,this[Ks]()}requestUpdate(e,t,s){super.requestUpdate(e,t,s),this[Ks]()}firstUpdated(e){super.firstUpdated(e),this[Ks]()}[Ks](){if(e||!this.isConnected)return;const t=this[Xs](),r=t&&Object.keys(t).some(e=>!0===t[e]);let a=t?.customError?this[Ys]:"";t&&!a&&(a=l(this,s,"m",i).call(this,t)),this[wt].setValidity(t,a),this.ariaInvalid=r?"true":null,this.classList.toggle("-invalid",!0===r),Os(this)&&this[Fs]?.()}}return i=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},r}function Gs(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Js=Symbol("_tabindex");function ei(e){var t;return t=Js,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Js]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Js]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Js]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Js]}`)}}}function ti(e){return xt(e,"name","type","value")&&$t(e)}const si=Symbol("_clickHandler");function ii(e){var t;class s extends e{constructor(){super(...arguments),this.type="button",this[t]=async e=>{if(e.defaultPrevented||Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive)return;const t=this[wt].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[wt].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[si])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[si])}}return t=si,s.formAssociated=!0,o([Kt()],s.prototype,"name",null),o([Kt()],s.prototype,"value",null),o([Kt()],s.prototype,"type",void 0),s}function ri(e){return xt(e,"htmlFor","control","attach","detach")}const ai=Symbol("_control"),ni=Symbol("_firstUpdated");function oi(e){var t,s;class i extends e{constructor(){super(...arguments),this[t]=null,this[s]=!1,this.htmlFor=null}get control(){return this[ai]}firstUpdated(e){super.firstUpdated(e),this[ni]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&it(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[ni]&&this.detach()}attach(e){this[ai]=e}detach(){this[ai]=null}}return t=ai,s=ni,o([Kt({attribute:"for"})],i.prototype,"htmlFor",void 0),i}function li(e,t=!0){var s,i,r,a,n,o,c;return i=new WeakMap,r=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakSet,o=function(e){e.target!==e.currentTarget||Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive?h(this,i,!1,"f"):(" "===e.key||t&&"Enter"===e.key)&&h(this,i,!0,"f")},c=function(e){e.target!==e.currentTarget||Ls(this)&&this.disabled||zs(this)&&this.disabledInteractive||!l(this,i,"f")?h(this,i,!1,"f"):(h(this,i,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends e{constructor(){super(...arguments),s.add(this),i.set(this,!1),r.set(this,e=>l(this,s,"m",o).call(this,e)),a.set(this,e=>l(this,s,"m",c).call(this,e)),n.set(this,()=>h(this,i,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",l(this,r,"f")),this.addEventListener("keyup",l(this,a,"f")),this.addEventListener("focusout",l(this,n,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",l(this,r,"f")),this.removeEventListener("keyup",l(this,a,"f")),this.removeEventListener("focusout",l(this,n,"f"))}}}
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|