@fluentui/web-components 3.0.0-beta.26 → 3.0.0-beta.28

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +22 -2
  2. package/dist/dts/anchor-button/anchor-button.d.ts +82 -78
  3. package/dist/dts/anchor-button/anchor-button.options.d.ts +21 -0
  4. package/dist/dts/button/button.styles.d.ts +4 -0
  5. package/dist/dts/divider/divider.d.ts +24 -1
  6. package/dist/dts/index.d.ts +0 -1
  7. package/dist/dts/progress-bar/index.d.ts +0 -1
  8. package/dist/dts/progress-bar/progress-bar.d.ts +56 -13
  9. package/dist/dts/progress-bar/progress-bar.options.d.ts +1 -10
  10. package/dist/dts/progress-bar/progress-bar.template.d.ts +1 -2
  11. package/dist/esm/anchor-button/anchor-button.definition.js +0 -3
  12. package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
  13. package/dist/esm/anchor-button/anchor-button.js +78 -67
  14. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  15. package/dist/esm/anchor-button/anchor-button.options.js +15 -0
  16. package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
  17. package/dist/esm/anchor-button/anchor-button.styles.js +6 -258
  18. package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
  19. package/dist/esm/anchor-button/anchor-button.template.js +7 -35
  20. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
  21. package/dist/esm/button/button.styles.js +16 -5
  22. package/dist/esm/button/button.styles.js.map +1 -1
  23. package/dist/esm/dialog-body/dialog-body.template.js +1 -1
  24. package/dist/esm/dialog-body/dialog-body.template.js.map +1 -1
  25. package/dist/esm/divider/divider.js +38 -13
  26. package/dist/esm/divider/divider.js.map +1 -1
  27. package/dist/esm/divider/divider.template.js +1 -9
  28. package/dist/esm/divider/divider.template.js.map +1 -1
  29. package/dist/esm/index.js.map +1 -1
  30. package/dist/esm/progress-bar/index.js.map +1 -1
  31. package/dist/esm/progress-bar/progress-bar.js +62 -11
  32. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  33. package/dist/esm/progress-bar/progress-bar.styles.js +48 -127
  34. package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
  35. package/dist/esm/progress-bar/progress-bar.template.js +8 -26
  36. package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
  37. package/dist/web-components.d.ts +159 -331
  38. package/dist/web-components.js +446 -371
  39. package/dist/web-components.min.js +214 -224
  40. package/package.json +1 -1
  41. package/dist/dts/progress-bar/base-progress.d.ts +0 -41
  42. package/dist/esm/progress-bar/base-progress.js +0 -56
  43. package/dist/esm/progress-bar/base-progress.js.map +0 -1
@@ -1,7 +1,7 @@
1
- const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let zo;const Ir="fast-kernel";try{if(document.currentScript)zo=document.currentScript.getAttribute(Ir);else{const o=document.getElementsByTagName("script");zo=o[o.length-1].getAttribute(Ir)}}catch{zo="isolate"}let $t;switch(zo){case"share":$t=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":$t=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;$t=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const st=o=>typeof o=="function",Me=o=>typeof o=="string",zr=()=>{};var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Ci<"u")Ci.globalThis=Ci;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const Br={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Br));const X=globalThis.FAST;if(X.getById===void 0){const o=Object.create(null);Reflect.defineProperty(X,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},Br))}X.error===void 0&&Object.assign(X,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Tr=Object.freeze([]);function Si(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function Fr(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function Et(o){o.prototype.toJSON=zr}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Or=o=>o,Kn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Or}):{createHTML:Or};let Bo=Object.freeze({createHTML(o){return Kn.createHTML(o)},protect(o,e,t,i){return i}});const Yn=Bo,Mt=Object.freeze({get policy(){return Bo},setPolicy(o){if(Bo!==Yn)throw X.error(1201);Bo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Se=X.getById($t.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,u=o.length-d;l<u;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Pi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class Ar{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Pi(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Pi(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Ii=Object.freeze({unknown:void 0,coupled:1}),w=X.getById($t.observable,()=>{const o=Se.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw X.error(1101)};function s(d){var l;let u=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return u===void 0&&(Array.isArray(d)?u=r(d):t.set(d,u=new Ar(d))),u}const n=Fr();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,u){const f=this.field,g=l[f];if(g!==u){l[f]=u;const m=l[this.callback];st(m)&&m.call(l,g,u),s(l).notify(this.name)}}}class h extends Pi{constructor(l,u,f=!1){super(l,u),this.expression=l,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const u=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),u}requiresUnbind(l){return l.sourceLifetime!==Ii.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,u){this.needsRefresh&&this.last!==null&&this.dispose();const f=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g;try{g=this.expression(l,u)}finally{i=f}return g}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,u){const f=this.last,g=s(l),m=f===null?this.first:{};if(m.propertySource=l,m.propertyName=u,m.notifier=g,g.subscribe(this,u),f!==null){if(!this.needsRefresh){let x;i=void 0,x=f.propertySource[f.propertyName],i=this,l===x&&(this.needsRefresh=!0)}f.next=m}this.last=m}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return Et(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Me(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(u){l.setValue(this,u)}})},getAccessors:n,binding(d,l,u=this.isVolatileBinding(d)){return new h(d,l,u)},isVolatileBinding(d){return e.test(d.toString())}})});function $(o,e){w.defineProperty(o,e)}const Er=X.getById($t.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Yt=Object.freeze({default:{index:0,length:0,get event(){return Yt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Er.get()},setEvent(o){Er.set(o)}});class To{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Qn extends To{createObserver(e){return w.binding(this.evaluate,e,this.isVolatile)}}function Mr(o,e,t=w.isVolatileBinding(o)){return new Qn(o,e,t)}class _r extends To{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}Et(_r);function Lr(o,e){return new _r(o,e)}let Rr;function Dr(o){return o.map(e=>e instanceof ue?Dr(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ue{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ue?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Rr),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(Dr(this.styles)),this}static setDefaultStrategy(e){Rr=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ue(e):e instanceof ue?e:new ue([e])}}ue.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const zi=Si(),Bi=Object.freeze({getForInstance:zi.getForInstance,getByType:zi.getByType,define(o){return zi.register({type:o}),o}});function Ti(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Fi{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>Ti(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Ti(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Ti(this,t.controller,t)}}Bi.define(Fi);const Zn=`${Math.random().toString(36).substring(2,8)}`;let Jn=0;const Hr=()=>`--v${Zn}${++Jn}`;function Vr(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];st(h)?h=new Fi(Mr(h),Hr()).createCSS(s):h instanceof To?h=new Fi(h,Hr()).createCSS(s):Bi.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ue||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const p=(o,...e)=>{const{styles:t,behaviors:i}=Vr(o,e),r=new ue(t);return i.length?r.withBehaviors(...i):r};class Nr{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Me(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new ue(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Bi.define(Nr),p.partial=(o,...e)=>{const{styles:t,behaviors:i}=Vr(o,e);return new Nr(t,i)};const Oi=`fast-${Math.random().toString(36).substring(2,8)}`,Fo=`${Oi}{`,Qt=`}${Oi}`,ea=Qt.length;let ta=0;const Ai=()=>`${Oi}-${++ta}`,jr=Object.freeze({interpolation:o=>`${Fo}${o}${Qt}`,attribute:o=>`${Ai()}="${Fo}${o}${Qt}"`,comment:o=>`<!--${Fo}${o}${Qt}-->`}),Oo=Object.freeze({parse(o,e){const t=o.split(Fo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(Qt);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+ea)}h!==""&&i.push(h)}return i}}),Ei=Si(),Pe=Object.freeze({getForInstance:Ei.getForInstance,getByType:Ei.getByType,define(o,e){return e=e||{},e.type=o,Ei.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Q.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=e,o.aspectType=Q.attribute;break}}});class Mi{constructor(e){this.options=e}createHTML(e){return jr.attribute(e(this))}createBehavior(){return this}}Et(Mi);function oa(o,e,t,i){if(t==null&&(t=""),t.create){o.textContent="";let r=o.$fastView;r===void 0?r=t.create():o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create()),r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function ia(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,u=d.length;l<u;++l){const f=d[l];f!==""&&(n[f]=c,h.add(f))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const ra={[Q.attribute]:Mt.setAttribute,[Q.booleanAttribute]:Mt.setBooleanAttribute,[Q.property]:(o,e,t)=>o[e]=t,[Q.content]:oa,[Q.tokenList]:ia,[Q.event]:()=>{}};class _t{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Q.content}createHTML(e){return jr.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=ra[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw X.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId];switch(this.aspectType){case Q.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:e.onUnbind(this);default:const r=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);r.target=i,r.controller=e,this.updateTarget(i,this.targetAspect,r.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){Yt.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Yt.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Pe.define(_t,{aspected:!0});function qr(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;)r=i.nextSibling,t.removeChild(i),i=r;t.removeChild(e)}class Ao{constructor(e,t,i){this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Ii.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=e.firstChild,this.lastChild=e.lastChild}get event(){return Yt.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){qr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){qr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}Et(Ao),w.defineProperty(Ao.prototype,"index"),w.defineProperty(Ao.prototype,"length");const Gr=(o,e)=>`${o}.${e}`,Wr={},_e={index:0,node:null};function Xr(o){o.startsWith("fast-")||X.warn(1204,{name:o})}const sa=new Proxy(document.createElement("div"),{get(o,e){Xr(e);const t=Reflect.get(o,e);return st(t)?t.bind(o):t},set(o,e,t){return Xr(e),Reflect.set(o,e,t)}});class na{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:Ai(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Wr[t];if(!s){const n=`_${t}`;Wr[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??sa;for(const r of this.nodeIds)i[r];return new Ao(t,this.factories,i)}}function Ur(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],u=l.value,f=Oo.parse(u,c);let g=null;f===null?s&&(g=new _t(Lr(()=>u,o.policy)),Pe.assignAspect(g,l.name)):g=_i.aggregate(f,o.policy),g!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(g,e,i,r,t.tagName))}}function aa(o,e,t,i,r){const s=Oo.parse(e.textContent,o.directives);if(s===null)return _e.node=e.nextSibling,_e.index=r+1,_e;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=Gr(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Me(l)?n.textContent=l:(n.textContent=" ",Pe.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return _e.index=r+1,_e.node=c.nextSibling,_e}function Kr(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=la(o,t,r,i);r=s.node,i=s.index}}function la(o,e,t,i){const r=Gr(e,i);switch(t.nodeType){case 1:Ur(o,e,t,r,i),Kr(o,t,r);break;case 3:return aa(o,t,e,r,i);case 8:const s=Oo.parse(t.data,o.directives);s!==null&&o.addFactory(_i.aggregate(s),e,r,i,null);break}return _e.index=i+1,_e.node=t.nextSibling,_e}function ca(o,e){return o&&o.nodeType==8&&Oo.parse(o.data,e)!==null}const Yr="TEMPLATE",_i={compile(o,e,t=Mt.policy){let i;if(Me(o)){i=document.createElement(Yr),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Yr&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new na(r,e,t);return Ur(s,"",i,"h",0,!0),(ca(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Kr(s,r,"r"),_e.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Mt.policy){if(o.length===1)return o[0];let t,i,r=!1,s;const n=o.length,c=o.map(l=>Me(l)?()=>l:(t=l.sourceAspect||t,i=l.dataBinding||i,r=r||l.dataBinding.isVolatile,s=s||l.dataBinding.policy,l.dataBinding.evaluate)),h=(l,u)=>{let f="";for(let g=0;g<n;++g)f+=c[g](l,u);return f};i.evaluate=h,i.isVolatile=r,i.policy=s??e;const d=new _t(i);return Pe.assignAspect(d,t),d}},da=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ha=Object.create(null);class yt{constructor(e,t=ha){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}yt.empty=new yt(""),Pe.define(yt);function ua(o,e,t,i=Pe.getForInstance(o)){if(i.aspected){const r=da.exec(e);r!==null&&Pe.assignAspect(o,r[2])}return o.createHTML(t)}class yi{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}create(e){return this.result===null&&(this.result=_i.compile(this.html,this.factories,this.policy)),this.result.createView(e)}inline(){return new yt(Me(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw X.error(1208);if(this.policy)throw X.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=Ai();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],u;if(r+=d,st(l))l=new _t(Mr(l));else if(l instanceof To)l=new _t(l);else if(!(u=Pe.getForInstance(l))){const f=l;l=new _t(Lr(()=>f))}r+=ua(l,d,n,u)}return new yi(r+e[e.length-1],s,i)}}Et(yi);const v=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return yi.create(o,e);throw X.error(1206)};v.partial=o=>new yt(o);class Qr extends Mi{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Pe.define(Qr);const me=o=>new Qr(o),pa=()=>null;function Zr(o){return o===void 0?pa:st(o)?o:()=>o}function Eo(o,e,t){const i=st(o)?o:()=>o,r=Zr(e),s=Zr(t);return(n,c)=>i(n,c)?r(n,c):s(n,c)}const fa=o=>o.nodeType===1,xt=o=>o?e=>e.nodeType===1&&e.matches(o):fa;class Jr extends Mi{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Tr),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const es="slotchange";class ts extends Jr{observe(e){e.addEventListener(es,this)}disconnect(e){e.removeEventListener(es,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Pe.define(ts);function ie(o){return Me(o)&&(o={property:o}),new ts(o)}class os extends Jr{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,i)=>{const r=i.target;this.updateTarget(this.getSource(r),this.computeNodes(r))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=zr,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Pe.define(os);function ga(o){return Me(o)&&(o={property:o}),new os(o)}const is="boolean",rs="reflect",Mo=Object.freeze({locate:Fr()}),ss={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function ns(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const pe={toView(o){const e=ns(o);return e&&e.toString()},fromView:ns};class xi{constructor(e,t,i=t.toLowerCase(),r=rs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===is&&s===void 0&&(this.converter=ss)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return w.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||Se.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case rs:const s=this.converter;Mt.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case is:Mt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Mo.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Me(d)?i.push(new xi(e,d)):i.push(new xi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Mo.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const as={mode:"open"},ls={},cs=new Set,_o=X.getById($t.elementRegistry,()=>Si());class Ee{constructor(e,t=e.definition){var i;this.platformDefined=!1,Me(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,s=xi.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const u=s[d];n[d]=u.attribute,c[u.name]=u,h[u.attribute]=u,w.defineProperty(r,u)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?as:t.shadowOptions===null?void 0:Object.assign(Object.assign({},as),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?ls:Object.assign(Object.assign({},ls),t.elementOptions),this.styles=ue.normalize(t.styles),_o.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return cs.has(e)||_o.getByType(e)?new Ee(class extends e{},t):new Ee(e,t)}static registerBaseType(e){cs.add(e)}}Ee.getByType=_o.getByType,Ee.getForInstance=_o.getForInstance;const ba={bubbles:!0,composed:!0,cancelable:!0},Li="isConnected",ds=new WeakMap;function Lo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:ds.get(o))!==null&&t!==void 0?t:null}let hs;class Ro extends Ar{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&ds.set(e,s))}const r=w.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return w.track(this,Li),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Yt.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=Lo(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=Lo(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const t=this.source,i=this.boundObservables,r=Object.keys(i);for(let s=0,n=r.length;s<n;++s){const c=r[s];t[c]=i[c]}this.boundObservables=null}const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,w.notify(this,Li)}disconnect(){if(this.stage!==1)return;this.stage=2,w.notify(this,Li),this.view!==null&&this.view.unbind();const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},ba),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=Lo(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Ii.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Ee.getForInstance(e);if(i===void 0)throw X.error(1401);return e.$fastController=new hs(e,i)}static setStrategy(e){hs=e}}Et(Ro),Ro.setStrategy(Ro);function Do(o){var e;return"adoptedStyleSheets"in o?o:(e=Lo(o))!==null&&e!==void 0?e:o.getRootNode()}class ki{constructor(e){const t=ki.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){ps(Do(e),this.sheets)}removeStylesFrom(e){fs(Do(e),this.sheets)}}ki.styleSheetCache=new Map;let ma=0;const va=()=>`fast-${++ma}`;function us(o){return o===document?document.body:o}class $a{constructor(e){this.styles=e,this.styleClass=va()}addStylesTo(e){e=us(Do(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=us(Do(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let ps=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},fs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ue.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ps=(o,e)=>{o.adoptedStyleSheets.push(...e)},fs=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ue.setDefaultStrategy(ki)}else ue.setDefaultStrategy($a);function gs(o){const e=class extends o{constructor(){super(),Ro.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Ee.registerBaseType(e),e}function ya(o,e){return st(o)?Ee.compose(o,e):Ee.compose(this,o)}function xa(o,e){return st(o)?Ee.compose(o,e).define().type:Ee.compose(this,o).define().type}function ka(o){return gs(o)}const S=Object.assign(gs(HTMLElement),{from:ka,define:xa,compose:ya}),re={horizontal:"horizontal",vertical:"vertical"};function bs(...o){return o.every(e=>e instanceof HTMLElement)}const Lt="ArrowDown",Rt="ArrowLeft",Dt="ArrowRight",Ht="ArrowUp",Ho="End",Zt="Enter",ms="Escape",Vo="Home",No=" ",wa="Tab",Ca={ArrowDown:Lt,ArrowLeft:Rt,ArrowRight:Dt,ArrowUp:Ht};var ve;(function(o){o.ltr="ltr",o.rtl="rtl"})(ve||(ve={}));function Sa(o,e,t){return t<o?e:t>e?o:t}function Ri(o,e,t){return Math.min(Math.max(t,o),e)}let Pa=0;function Di(o=""){return`${o}${Pa++}`}var Ia=Object.defineProperty,za=Object.getOwnPropertyDescriptor,N=(o,e,t,i)=>{for(var r=i>1?void 0:i?za(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ia(e,t,r),r};class D{}N([a({attribute:"aria-atomic"})],D.prototype,"ariaAtomic",2),N([a({attribute:"aria-busy"})],D.prototype,"ariaBusy",2),N([a({attribute:"aria-controls"})],D.prototype,"ariaControls",2),N([a({attribute:"aria-current"})],D.prototype,"ariaCurrent",2),N([a({attribute:"aria-describedby"})],D.prototype,"ariaDescribedby",2),N([a({attribute:"aria-details"})],D.prototype,"ariaDetails",2),N([a({attribute:"aria-disabled"})],D.prototype,"ariaDisabled",2),N([a({attribute:"aria-errormessage"})],D.prototype,"ariaErrormessage",2),N([a({attribute:"aria-flowto"})],D.prototype,"ariaFlowto",2),N([a({attribute:"aria-haspopup"})],D.prototype,"ariaHaspopup",2),N([a({attribute:"aria-hidden"})],D.prototype,"ariaHidden",2),N([a({attribute:"aria-invalid"})],D.prototype,"ariaInvalid",2),N([a({attribute:"aria-keyshortcuts"})],D.prototype,"ariaKeyshortcuts",2),N([a({attribute:"aria-label"})],D.prototype,"ariaLabel",2),N([a({attribute:"aria-labelledby"})],D.prototype,"ariaLabelledby",2),N([a({attribute:"aria-live"})],D.prototype,"ariaLive",2),N([a({attribute:"aria-owns"})],D.prototype,"ariaOwns",2),N([a({attribute:"aria-relevant"})],D.prototype,"ariaRelevant",2),N([a({attribute:"aria-roledescription"})],D.prototype,"ariaRoledescription",2);const vs=o=>o.closest("[dir]")?.dir==="rtl"?ve.rtl:ve.ltr;function Z(o){return o?typeof o=="string"?new yt(o):"inline"in o?o.inline():o:yt.empty}const $s=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Ba=":host([hidden]){display:none}";function T(o){return`${Ba}:host{display:${o}}`}class Ta{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Io extends Ta{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Io(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const $e=Io.with(window.matchMedia("(forced-colors)"));Io.with(window.matchMedia("(prefers-color-scheme: dark)")),Io.with(window.matchMedia("(prefers-color-scheme: light)"));class Ke{}function Ye(o){return v`<slot name="end" ${me("end")}>${Z(o.end)}</slot>`.inline()}function Qe(o){return v`<slot name="start" ${me("start")}>${Z(o.start)}</slot>`.inline()}function Le(o,...e){const t=Mo.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Mo.locate(i).forEach(s=>t.push(s))})}var Fa=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,kt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Oa(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fa(e,t,r),r};class se extends S{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Di("accordion-"),this.block=!1,this.clickHandler=e=>{this.disabled||this.$emit("click",e)}}}kt([a({attribute:"heading-level",mode:"fromView",converter:pe})],se.prototype,"headinglevel",2),kt([a({mode:"boolean"})],se.prototype,"expanded",2),kt([a({mode:"boolean"})],se.prototype,"disabled",2),kt([a],se.prototype,"id",2),kt([a],se.prototype,"size",2),kt([a({mode:"boolean"})],se.prototype,"block",2),kt([a({attribute:"expand-icon-position"})],se.prototype,"expandIconPosition",2),Le(se,Ke);const _="var(--colorNeutralForeground1)",Hi="var(--colorNeutralForeground1Hover)",ys="var(--colorNeutralForeground1Pressed)",ye="var(--colorNeutralForeground2)",Jt="var(--colorNeutralForeground2Hover)",eo="var(--colorNeutralForeground2Pressed)",Aa="var(--colorNeutralForeground2Selected)",Vt="var(--colorNeutralForeground2BrandHover)",Nt="var(--colorNeutralForeground2BrandPressed)",Ea="var(--colorNeutralForeground2BrandSelected)",ne="var(--colorNeutralForeground3)",Ma="var(--colorNeutralForeground3Hover)",_a="var(--colorNeutralForeground3Pressed)",La="var(--colorNeutralForeground4)",C="var(--colorNeutralForegroundDisabled)",xs="var(--colorCompoundBrandForeground1)",ks="var(--colorCompoundBrandForeground1Hover)",ws="var(--colorCompoundBrandForeground1Pressed)",xe="var(--colorNeutralForegroundOnBrand)",jo="var(--colorNeutralForegroundInverted)",Ra="var(--colorNeutralForegroundInvertedHover)",Da="var(--colorNeutralForegroundInvertedPressed)",Cs="var(--colorNeutralForegroundStaticInverted)",Vi="var(--colorBrandForeground1)",Ha="var(--colorBrandForeground2)",Va="var(--colorNeutralForeground1Static)",L="var(--colorNeutralBackground1)",qo="var(--colorNeutralBackground1Hover)",Ni="var(--colorNeutralBackground1Pressed)",Ss="var(--colorNeutralBackground1Selected)",Ps="var(--colorNeutralBackground3)",Na="var(--colorNeutralBackground4)",ja="var(--colorNeutralBackground5)",Is="var(--colorNeutralBackground6)",qa="var(--colorNeutralBackgroundInverted)",zs="var(--colorSubtleBackground)",Go="var(--colorSubtleBackgroundHover)",to="var(--colorSubtleBackgroundPressed)",Ga="var(--colorSubtleBackgroundSelected)",J="var(--colorTransparentBackground)",oo="var(--colorTransparentBackgroundHover)",io="var(--colorTransparentBackgroundPressed)",Wa="var(--colorTransparentBackgroundSelected)",jt="var(--colorNeutralBackgroundDisabled)",Xa="var(--colorBackgroundOverlay)",Wo="var(--colorBrandBackground)",ji="var(--colorBrandBackgroundHover)",qi="var(--colorBrandBackgroundPressed)",Ua="var(--colorBrandBackgroundSelected)",wt="var(--colorCompoundBrandBackground)",ro="var(--colorCompoundBrandBackgroundHover)",so="var(--colorCompoundBrandBackgroundPressed)",Bs="var(--colorBrandBackgroundStatic)",no="var(--colorBrandBackground2)",Ze="var(--colorNeutralStrokeAccessible)",ao="var(--colorNeutralStrokeAccessibleHover)",lo="var(--colorNeutralStrokeAccessiblePressed)",Ct="var(--colorNeutralStroke1)",co="var(--colorNeutralStroke1Hover)",Xo="var(--colorNeutralStroke1Pressed)",ho="var(--colorNeutralStroke2)",Ka="var(--colorNeutralStroke3)",Ya="var(--colorNeutralStrokeOnBrand2)",Ts="var(--colorBrandStroke1)",Fs="var(--colorBrandStroke2)",Gi="var(--colorCompoundBrandStroke)",Wi="var(--colorCompoundBrandStrokeHover)",Xi="var(--colorCompoundBrandStrokePressed)",Re="var(--colorNeutralStrokeDisabled)",ke="var(--colorTransparentStroke)",Os="var(--colorTransparentStrokeInteractive)",Uo="var(--colorStrokeFocus1)",Ie="var(--colorStrokeFocus2)",Qa="var(--colorPaletteRedBackground1)",Ui="var(--colorPaletteRedBackground2)",Ki="var(--colorPaletteRedBackground3)",Za="var(--colorPaletteRedBorder1)",Ja="var(--colorPaletteRedBorder2)",As="var(--colorPaletteRedForeground1)",el="var(--colorPaletteRedForeground2)",Es="var(--colorPaletteRedForeground3)",tl="var(--colorPaletteGreenBackground1)",Ms="var(--colorPaletteGreenBackground2)",Yi="var(--colorPaletteGreenBackground3)",ol="var(--colorPaletteGreenBorder2)",il="var(--colorPaletteGreenForeground1)",rl="var(--colorPaletteGreenForeground2)",sl="var(--colorPaletteGreenForeground3)",nl="var(--colorPaletteDarkOrangeBackground1)",_s="var(--colorPaletteDarkOrangeBackground2)",Qi="var(--colorPaletteDarkOrangeBackground3)",al="var(--colorPaletteDarkOrangeBorder1)",ll="var(--colorPaletteDarkOrangeForeground1)",Ls="var(--colorPaletteDarkOrangeForeground3)",cl="var(--colorPaletteYellowBackground1)",dl="var(--colorPaletteYellowBackground3)",hl="var(--colorPaletteYellowBorder1)",Zi="var(--colorPaletteYellowForeground2)",ul="var(--colorPaletteMarigoldBackground2)",pl="var(--colorPaletteMarigoldForeground2)",fl="var(--colorPaletteAnchorBackground2)",gl="var(--colorPaletteAnchorForeground2)",bl="var(--colorPaletteBeigeBackground2)",ml="var(--colorPaletteBeigeForeground2)",vl="var(--colorPaletteBlueBackground2)",$l="var(--colorPaletteBlueForeground2)",yl="var(--colorPaletteBrassBackground2)",xl="var(--colorPaletteBrassForeground2)",kl="var(--colorPaletteBrownBackground2)",wl="var(--colorPaletteBrownForeground2)",Cl="var(--colorPaletteCornflowerBackground2)",Sl="var(--colorPaletteCornflowerForeground2)",Pl="var(--colorPaletteCranberryBackground2)",Il="var(--colorPaletteCranberryForeground2)",zl="var(--colorPaletteDarkGreenBackground2)",Bl="var(--colorPaletteDarkGreenForeground2)",Tl="var(--colorPaletteDarkRedBackground2)",Fl="var(--colorPaletteDarkRedForeground2)",Ol="var(--colorPaletteForestBackground2)",Al="var(--colorPaletteForestForeground2)",El="var(--colorPaletteGoldBackground2)",Ml="var(--colorPaletteGoldForeground2)",_l="var(--colorPaletteGrapeBackground2)",Ll="var(--colorPaletteGrapeForeground2)",Rl="var(--colorPaletteLavenderBackground2)",Dl="var(--colorPaletteLavenderForeground2)",Hl="var(--colorPaletteLightTealBackground2)",Vl="var(--colorPaletteLightTealForeground2)",Nl="var(--colorPaletteLilacBackground2)",jl="var(--colorPaletteLilacForeground2)",ql="var(--colorPaletteMagentaBackground2)",Gl="var(--colorPaletteMagentaForeground2)",Wl="var(--colorPaletteMinkBackground2)",Xl="var(--colorPaletteMinkForeground2)",Ul="var(--colorPaletteNavyBackground2)",Kl="var(--colorPaletteNavyForeground2)",Yl="var(--colorPalettePeachBackground2)",Ql="var(--colorPalettePeachForeground2)",Zl="var(--colorPalettePinkBackground2)",Jl="var(--colorPalettePinkForeground2)",ec="var(--colorPalettePlatinumBackground2)",tc="var(--colorPalettePlatinumForeground2)",oc="var(--colorPalettePlumBackground2)",ic="var(--colorPalettePlumForeground2)",rc="var(--colorPalettePumpkinBackground2)",sc="var(--colorPalettePumpkinForeground2)",nc="var(--colorPalettePurpleBackground2)",ac="var(--colorPalettePurpleForeground2)",lc="var(--colorPaletteRoyalBlueBackground2)",cc="var(--colorPaletteRoyalBlueForeground2)",dc="var(--colorPaletteSeafoamBackground2)",hc="var(--colorPaletteSeafoamForeground2)",uc="var(--colorPaletteSteelBackground2)",pc="var(--colorPaletteSteelForeground2)",fc="var(--colorPaletteTealBackground2)",gc="var(--colorPaletteTealForeground2)",Ji="var(--borderRadiusNone)",we="var(--borderRadiusSmall)",I="var(--borderRadiusMedium)",er="var(--borderRadiusLarge)",Rs="var(--borderRadiusXLarge)",ae="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",bc="var(--fontFamilyMonospace)",mc="var(--fontFamilyNumeric)",uo="var(--fontSizeBase100)",j="var(--fontSizeBase200)",A="var(--fontSizeBase300)",le="var(--fontSizeBase400)",St="var(--fontSizeBase500)",Ko="var(--fontSizeBase600)",Ds="var(--fontSizeHero700)",Hs="var(--fontSizeHero800)",Vs="var(--fontSizeHero900)",Ns="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",vc="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",Yo="var(--fontWeightBold)",Qo="var(--lineHeightBase100)",ce="var(--lineHeightBase200)",R="var(--lineHeightBase300)",Ce="var(--lineHeightBase400)",Zo="var(--lineHeightBase500)",js="var(--lineHeightBase600)",qs="var(--lineHeightHero700)",Gs="var(--lineHeightHero800)",Ws="var(--lineHeightHero900)",Xs="var(--lineHeightHero1000)",tr="var(--shadow2)",po="var(--shadow4)",$c="var(--shadow8)",Us="var(--shadow16)",yc="var(--shadow28)",xc="var(--shadow64)",ee="var(--strokeWidthThin)",nt="var(--strokeWidthThick)",at="var(--strokeWidthThicker)",Ks="var(--strokeWidthThickest)",Pt="var(--spacingHorizontalXXS)",De="var(--spacingHorizontalXS)",lt="var(--spacingHorizontalSNudge)",ze="var(--spacingHorizontalS)",Je="var(--spacingHorizontalMNudge)",et="var(--spacingHorizontalM)",Ys="var(--spacingHorizontalL)",kc="var(--spacingHorizontalXXL)",Jo="var(--spacingVerticalXXS)",wc="var(--spacingVerticalXS)",fo="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",Qs="var(--spacingVerticalMNudge)",Zs="var(--spacingVerticalL)",go="var(--spacingVerticalXXL)",Cc="var(--durationUltraFast)",ei="var(--durationFaster)",Js="var(--durationNormal)",Sc="var(--durationGentle)",Pc="var(--durationSlow)",en="var(--durationSlower)",ti="var(--durationUltraSlow)",Ic="var(--curveAccelerateMax)",or="var(--curveAccelerateMid)",zc="var(--curveAccelerateMin)",tn="var(--curveDecelerateMax)",ir="var(--curveDecelerateMid)",Bc="var(--curveDecelerateMin)",Tc="var(--curveEasyEaseMax)",oi="var(--curveEasyEase)",on="var(--curveLinear)",Fc=p`
1
+ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let yo;const gs="fast-kernel";try{if(document.currentScript)yo=document.currentScript.getAttribute(gs);else{const o=document.getElementsByTagName("script");yo=o[o.length-1].getAttribute(gs)}}catch{yo="isolate"}let ve;switch(yo){case"share":ve=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ve=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ve=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const se=o=>typeof o=="function",Tt=o=>typeof o=="string",bs=()=>{};var gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof gi<"u")gi.globalThis=gi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const ms={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ms));const W=globalThis.FAST;if(W.getById===void 0){const o=Object.create(null);Reflect.defineProperty(W,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},ms))}W.error===void 0&&Object.assign(W,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const vs=Object.freeze([]);function bi(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function $s(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let i=Reflect.getPrototypeOf(t);for(;e===void 0&&i!==null;)e=o.get(i),i=Reflect.getPrototypeOf(i);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Ee(o){o.prototype.toJSON=bs}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ys=o=>o,Hn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ys}):{createHTML:ys};let xo=Object.freeze({createHTML(o){return Hn.createHTML(o)},protect(o,t,e,i){return i}});const Vn=xo,Me=Object.freeze({get policy(){return xo},setPolicy(o){if(xo!==Vn)throw W.error(1201);xo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),vt=W.getById(ve.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function r(h){try{h.call()}catch(d){if(i)t.push(d),setTimeout(s,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(r(o[d]),d++,d>1024){for(let l=0,u=o.length-d;l<u;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?e(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class mi{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const i=e.indexOf(t);i!==-1&&e.splice(i,1)}}notify(t){const e=this.spillover,i=this.subject;if(e===void 0){const s=this.sub1,r=this.sub2;s!==void 0&&s.handleChange(i,t),r!==void 0&&r.handleChange(i,t)}else for(let s=0,r=e.length;s<r;++s)e[s].handleChange(i,t)}}class xs{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,i;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(i=this.subjectSubscribers)===null||i===void 0||i.notify(t)}subscribe(t,e){var i,s;let r;e?r=(i=this.subscribers[e])!==null&&i!==void 0?i:this.subscribers[e]=new mi(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new mi(this.subject),r.subscribe(t)}unsubscribe(t,e){var i,s;e?(i=this.subscribers[e])===null||i===void 0||i.unsubscribe(t):(s=this.subjectSubscribers)===null||s===void 0||s.unsubscribe(t)}}const vi=Object.freeze({unknown:void 0,coupled:1}),w=W.getById(ve.observable,()=>{const o=vt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=d=>{throw W.error(1101)};function r(d){var l;let u=(l=d.$fastController)!==null&&l!==void 0?l:e.get(d);return u===void 0&&(Array.isArray(d)?u=s(d):e.set(d,u=new xs(d))),u}const n=$s();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,u){const f=this.field,g=l[f];if(g!==u){l[f]=u;const m=l[this.callback];se(m)&&m.call(l,g,u),r(l).notify(this.name)}}}class h extends mi{constructor(l,u,f=!1){super(l,u),this.expression=l,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const u=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),u}requiresUnbind(l){return l.sourceLifetime!==vi.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,u){this.needsRefresh&&this.last!==null&&this.dispose();const f=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g;try{g=this.expression(l,u)}finally{i=f}return g}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,u){const f=this.last,g=r(l),m=f===null?this.first:{};if(m.propertySource=l,m.propertyName=u,m.notifier=g,g.subscribe(this,u),f!==null){if(!this.needsRefresh){let y;i=void 0,y=f.propertySource[f.propertyName],i=this,l===y&&(this.needsRefresh=!0)}f.next=m}this.last=m}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return Ee(h),Object.freeze({setArrayObserverFactory(d){s=d},getNotifier:r,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){r(d).notify(l)},defineProperty(d,l){Tt(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(u){l.setValue(this,u)}})},getAccessors:n,binding(d,l,u=this.isVolatileBinding(d)){return new h(d,l,u)},isVolatileBinding(d){return t.test(d.toString())}})});function $(o,t){w.defineProperty(o,t)}function Nn(o,t,e){return Object.assign({},e,{get(){return w.trackVolatile(),e.get.apply(this)}})}const ks=W.getById(ve.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Ke=Object.freeze({default:{index:0,length:0,get event(){return Ke.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ks.get()},setEvent(o){ks.set(o)}});class ko{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class jn extends ko{createObserver(t){return w.binding(this.evaluate,t,this.isVolatile)}}function ws(o,t,e=w.isVolatileBinding(o)){return new jn(o,t,e)}class Cs extends ko{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ee(Cs);function Ss(o,t){return new Cs(o,t)}let Is;function Ps(o){return o.map(t=>t instanceof rt?Ps(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class rt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof rt?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Is),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(Ps(this.styles)),this}static setDefaultStrategy(t){Is=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new rt(t):t instanceof rt?t:new rt([t])}}rt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $i=bi(),yi=Object.freeze({getForInstance:$i.getForInstance,getByType:$i.getByType,define(o){return $i.register({type:o}),o}});function xi(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class ki{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const i=t.source;if(!i.$cssBindings){i.$cssBindings=new Map;const r=i.setAttribute;i.setAttribute=(n,c)=>{r.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>xi(d,h.controller,h.observer))}}const s=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);s.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:s})}connectedCallback(t){xi(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){xi(this,e.controller,e)}}yi.define(ki);const qn=`${Math.random().toString(36).substring(2,8)}`;let Wn=0;const Bs=()=>`--v${qn}${++Wn}`;function zs(o,t){const e=[];let i="";const s=[],r=n=>{s.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=t[n];se(h)?h=new ki(ws(h),Bs()).createCSS(r):h instanceof ko?h=new ki(h,Bs()).createCSS(r):yi.getForInstance(h)!==void 0&&(h=h.createCSS(r)),h instanceof rt||h instanceof CSSStyleSheet?(i.trim()!==""&&(e.push(i),i=""),e.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&e.push(i),{styles:e,behaviors:s}}const p=(o,...t)=>{const{styles:e,behaviors:i}=zs(o,t),s=new rt(e);return i.length?s.withBehaviors(...i):s};class Ts{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(Tt(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new rt(i))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}yi.define(Ts),p.partial=(o,...t)=>{const{styles:e,behaviors:i}=zs(o,t);return new Ts(e,i)};const wi=`fast-${Math.random().toString(36).substring(2,8)}`,wo=`${wi}{`,Ye=`}${wi}`,Gn=Ye.length;let Un=0;const Ci=()=>`${wi}-${++Un}`,As=Object.freeze({interpolation:o=>`${wo}${o}${Ye}`,attribute:o=>`${Ci()}="${wo}${o}${Ye}"`,comment:o=>`<!--${wo}${o}${Ye}-->`}),Co=Object.freeze({parse(o,t){const e=o.split(wo);if(e.length===1)return null;const i=[];for(let s=0,r=e.length;s<r;++s){const n=e[s],c=n.indexOf(Ye);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(t[d]),h=n.substring(c+Gn)}h!==""&&i.push(h)}return i}}),Si=bi(),$t=Object.freeze({getForInstance:Si.getForInstance,getByType:Si.getByType,define(o,t){return t=t||{},t.type=o,Si.register(t),o},assignAspect(o,t){if(!t){o.aspectType=K.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?K.tokenList:K.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=K.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=K.event;break;default:o.targetAspect=t,o.aspectType=K.attribute;break}}});class Ii{constructor(t){this.options=t}createHTML(t){return As.attribute(t(this))}createBehavior(){return this}}Ee(Ii);function Xn(o,t,e,i){if(e==null&&(e=""),e.create){o.textContent="";let s=o.$fastView;s===void 0?s=e.create():o.$fastTemplate!==e&&(s.isComposed&&(s.remove(),s.unbind()),s=e.create()),s.isComposed?s.needsBindOnly&&(s.needsBindOnly=!1,s.bind(i.source,i.context)):(s.isComposed=!0,s.bind(i.source,i.context),s.insertBefore(o),o.$fastView=s,o.$fastTemplate=e)}else{const s=o.$fastView;s!==void 0&&s.isComposed&&(s.isComposed=!1,s.remove(),s.needsBindOnly?s.needsBindOnly=!1:s.unbind()),o.textContent=e}}function Kn(o,t,e){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let c=r.v;const h=o[t];if(e!=null&&e.length){const d=e.split(/\s+/);for(let l=0,u=d.length;l<u;++l){const f=d[l];f!==""&&(n[f]=c,h.add(f))}}if(r.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Yn={[K.attribute]:Me.setAttribute,[K.booleanAttribute]:Me.setBooleanAttribute,[K.property]:(o,t,e)=>o[t]=e,[K.content]:Xn,[K.tokenList]:Kn,[K.event]:()=>{}};class _e{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=K.content}createHTML(t){return As.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Yn[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw W.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const i=t.targets[this.targetNodeId];switch(this.aspectType){case K.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:t.onUnbind(this);default:const s=(e=i[this.data])!==null&&e!==void 0?e:i[this.data]=this.dataBinding.createObserver(this,this);s.target=i,s.controller=t,this.updateTarget(i,this.targetAspect,s.bind(t),t);break}}unbind(t){const i=t.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Ke.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);Ke.setEvent(null),i!==!0&&t.preventDefault()}}handleChange(t,e){const i=e.target,s=e.controller;this.updateTarget(i,this.targetAspect,e.bind(s),s)}}$t.define(_e,{aspected:!0});function Os(o,t){const e=o.parentNode;let i=o,s;for(;i!==t;)s=i.nextSibling,e.removeChild(i),i=s;e.removeChild(t)}class So{constructor(t,e,i){this.fragment=t,this.factories=e,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=vi.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Ke.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const i=t.parentNode;let s=this.firstChild,r;for(;s!==e;)r=s.nextSibling,i.insertBefore(s,t),s=r;i.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let i=this.firstChild,s;for(;i!==e;)s=i.nextSibling,t.appendChild(i),i=s;t.appendChild(e)}dispose(){Os(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let i=this.behaviors;if(i===null){this.source=t,this.context=e,this.behaviors=i=new Array(this.factories.length);const s=this.factories;for(let r=0,n=s.length;r<n;++r){const c=s[r].createBehavior();c.bind(this),i[r]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let s=0,r=i.length;s<r;++s)i[s].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,i=t.length;e<i;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Os(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}Ee(So),w.defineProperty(So.prototype,"index"),w.defineProperty(So.prototype,"length");const Fs=(o,t)=>`${o}.${t}`,Es={},At={index:0,node:null};function Ms(o){o.startsWith("fast-")||W.warn(1204,{name:o})}const Qn=new Proxy(document.createElement("div"),{get(o,t){Ms(t);const e=Reflect.get(o,t);return se(e)?e.bind(o):e},set(o,t,e){return Ms(t),Reflect.set(o,t,e)}});class Zn{constructor(t,e,i){this.fragment=t,this.directives=e,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,i,s,r){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(e,i,s)),t.id=(n=t.id)!==null&&n!==void 0?n:Ci(),t.targetNodeId=i,t.targetTagName=r,t.policy=(c=t.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,i){const s=this.descriptors;if(e==="r"||e==="h"||s[e])return;if(!s[t]){const n=t.lastIndexOf("."),c=t.substring(0,n),h=parseInt(t.substring(n+1));this.addTargetDescriptor(c,t,h)}let r=Es[e];if(!r){const n=`_${e}`;Es[e]=r={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[t].childNodes[i]}}}s[e]=r}createView(t){const e=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=e,i.h=t??Qn;for(const s of this.nodeIds)i[s];return new So(e,this.factories,i)}}function _s(o,t,e,i,s,r=!1){const n=e.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],u=l.value,f=Co.parse(u,c);let g=null;f===null?r&&(g=new _e(Ss(()=>u,o.policy)),$t.assignAspect(g,l.name)):g=Pi.aggregate(f,o.policy),g!==null&&(e.removeAttributeNode(l),h--,d--,o.addFactory(g,t,i,s,e.tagName))}}function Jn(o,t,e,i,s){const r=Co.parse(t.textContent,o.directives);if(r===null)return At.node=t.nextSibling,At.index=s+1,At;let n,c=n=t;for(let h=0,d=r.length;h<d;++h){const l=r[h];h!==0&&(s++,i=Fs(e,s),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Tt(l)?n.textContent=l:(n.textContent=" ",$t.assignAspect(l),o.addFactory(l,e,i,s,null)),c=n}return At.index=s+1,At.node=c.nextSibling,At}function Ls(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=ta(o,e,s,i);s=r.node,i=r.index}}function ta(o,t,e,i){const s=Fs(t,i);switch(e.nodeType){case 1:_s(o,t,e,s,i),Ls(o,e,s);break;case 3:return Jn(o,e,t,s,i);case 8:const r=Co.parse(e.data,o.directives);r!==null&&o.addFactory(Pi.aggregate(r),t,s,i,null);break}return At.index=i+1,At.node=e.nextSibling,At}function ea(o,t){return o&&o.nodeType==8&&Co.parse(o.data,t)!==null}const Rs="TEMPLATE",Pi={compile(o,t,e=Me.policy){let i;if(Tt(o)){i=document.createElement(Rs),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Rs&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new Zn(s,t,e);return _s(r,"",i,"h",0,!0),(ea(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Ls(r,s,"r"),At.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Me.policy){if(o.length===1)return o[0];let e,i,s=!1,r;const n=o.length,c=o.map(l=>Tt(l)?()=>l:(e=l.sourceAspect||e,i=l.dataBinding||i,s=s||l.dataBinding.isVolatile,r=r||l.dataBinding.policy,l.dataBinding.evaluate)),h=(l,u)=>{let f="";for(let g=0;g<n;++g)f+=c[g](l,u);return f};i.evaluate=h,i.isVolatile=s,i.policy=r??t;const d=new _e(i);return $t.assignAspect(d,e),d}},oa=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ia=Object.create(null);class $e{constructor(t,e=ia){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}$e.empty=new $e(""),$t.define($e);function sa(o,t,e,i=$t.getForInstance(o)){if(i.aspected){const s=oa.exec(t);s!==null&&$t.assignAspect(o,s[2])}return o.createHTML(e)}class hi{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Pi.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new $e(Tt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw W.error(1208);if(this.policy)throw W.error(1207);return this.policy=t,this}render(t,e,i){const s=this.create(i);return s.bind(t),s.appendTo(e),s}static create(t,e,i){let s="";const r=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=Ci();return r[d]=c,d};for(let c=0,h=t.length-1;c<h;++c){const d=t[c];let l=e[c],u;if(s+=d,se(l))l=new _e(ws(l));else if(l instanceof ko)l=new _e(l);else if(!(u=$t.getForInstance(l))){const f=l;l=new _e(Ss(()=>f))}s+=sa(l,d,n,u)}return new hi(s+t[t.length-1],r,i)}}Ee(hi);const v=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return hi.create(o,t);throw W.error(1206)};v.partial=o=>new $e(o);class Ds extends Ii{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}$t.define(Ds);const yt=o=>new Ds(o),ra=()=>null;function Hs(o){return o===void 0?ra:se(o)?o:()=>o}function Bi(o,t,e){const i=se(o)?o:()=>o,s=Hs(t),r=Hs(e);return(n,c)=>i(n,c)?s(n,c):r(n,c)}const na=o=>o.nodeType===1,ye=o=>o?t=>t.nodeType===1&&t.matches(o):na;class Vs extends Ii{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,vs),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Ns="slotchange";class js extends Vs{observe(t){t.addEventListener(Ns,this)}disconnect(t){t.removeEventListener(Ns,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}$t.define(js);function nt(o){return Tt(o)&&(o={property:o}),new js(o)}class qs extends Vs{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,i)=>{const s=i.target;this.updateTarget(this.getSource(s),this.computeNodes(s))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=bs,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}$t.define(qs);function aa(o){return Tt(o)&&(o={property:o}),new qs(o)}const Ws="boolean",Gs="reflect",Io=Object.freeze({locate:$s()}),Us={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const at={toView(o){const t=Xs(o);return t&&t.toString()},fromView:Xs};class ui{constructor(t,e,i=e.toLowerCase(),s=Gs,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,s===Ws&&r===void 0&&(this.converter=Us)}setValue(t,e){const i=t[this.fieldName],s=this.converter;s!==void 0&&(e=s.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return w.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||e==="fromView"||vt.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case Gs:const r=this.converter;Me.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Ws:Me.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Io.locate(t));for(let s=0,r=e.length;s<r;++s){const n=e[s];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Tt(d)?i.push(new ui(t,d)):i.push(new ui(t,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,t){let e;function i(s,r){arguments.length>1&&(e.property=r),Io.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const Ks={mode:"open"},Ys={},Qs=new Set,Po=W.getById(ve.elementRegistry,()=>bi());class zt{constructor(t,e=t.definition){var i;this.platformDefined=!1,Tt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(i=e.registry)!==null&&i!==void 0?i:customElements;const s=t.prototype,r=ui.collect(t,e.attributes),n=new Array(r.length),c={},h={};for(let d=0,l=r.length;d<l;++d){const u=r[d];n[d]=u.attribute,c[u.name]=u,h[u.attribute]=u,w.defineProperty(s,u)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=e.shadowOptions===void 0?Ks:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Ks),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Ys:Object.assign(Object.assign({},Ys),e.elementOptions),this.styles=rt.normalize(e.styles),Po.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Qs.has(t)||Po.getByType(t)?new zt(class extends t{},e):new zt(t,e)}static registerBaseType(t){Qs.add(t)}}zt.getByType=Po.getByType,zt.getForInstance=Po.getForInstance;const la={bubbles:!0,composed:!0,cancelable:!0},zi="isConnected",Zs=new WeakMap;function Bo(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Zs.get(o))!==null&&e!==void 0?e:null}let Js;class zo extends xs{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const i=e.shadowOptions;if(i!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(i),i.mode==="closed"&&Zs.set(t,r))}const s=w.getAccessors(t);if(s.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,c=s.length;n<c;++n){const h=s[n].name,d=t[h];d!==void 0&&(delete t[h],r[h]=d)}}}get isConnected(){return w.track(this,zi),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Ke.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,i;const s=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(i=s.get(t))!==null&&i!==void 0?i:0;r===0?(s.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):s.set(t,r+1)}removeBehavior(t,e=!1){const i=this.behaviors;if(i===null)return;const s=i.get(t);s!==void 0&&(s===1||e?(i.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):i.set(t,s-1))}addStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=Bo(i))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(i)){const s=t.behaviors;if(t.addStylesTo(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.addBehavior(s[r])}}removeStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=Bo(i))!==null&&e!==void 0?e:i).removeChild(t);else if(t.isAttachedTo(i)){const s=t.behaviors;if(t.removeStylesFrom(i),s!==null)for(let r=0,n=s.length;r<n;++r)this.removeBehavior(s[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,i=this.boundObservables,s=Object.keys(i);for(let r=0,n=s.length;r<n;++r){const c=s[r];e[c]=i[c]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,w.notify(this,zi)}disconnect(){if(this.stage!==1)return;this.stage=2,w.notify(this,zi),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,i){const s=this.definition.attributeLookup[t];s!==void 0&&s.onAttributeChangedCallback(this.source,i)}emit(t,e,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},la),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=Bo(i))!==null&&e!==void 0?e:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=s.firstChild;r!==null;r=s.firstChild)s.removeChild(r)}t&&(this.view=t.render(i,s,i),this.view.sourceLifetime=vi.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=zt.getForInstance(t);if(i===void 0)throw W.error(1401);return t.$fastController=new Js(t,i)}static setStrategy(t){Js=t}}Ee(zo),zo.setStrategy(zo);function To(o){var t;return"adoptedStyleSheets"in o?o:(t=Bo(o))!==null&&t!==void 0?t:o.getRootNode()}class pi{constructor(t){const e=pi.styleSheetCache;this.sheets=t.map(i=>{if(i instanceof CSSStyleSheet)return i;let s=e.get(i);return s===void 0&&(s=new CSSStyleSheet,s.replaceSync(i),e.set(i,s)),s})}addStylesTo(t){er(To(t),this.sheets)}removeStylesFrom(t){or(To(t),this.sheets)}}pi.styleSheetCache=new Map;let ca=0;const da=()=>`fast-${++ca}`;function tr(o){return o===document?document.body:o}class ha{constructor(t){this.styles=t,this.styleClass=da()}addStylesTo(t){t=tr(To(t));const e=this.styles,i=this.styleClass;for(let s=0;s<e.length;s++){const r=document.createElement("style");r.innerHTML=e[s],r.className=i,t.append(r)}}removeStylesFrom(t){t=tr(To(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let er=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},or=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(rt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),er=(o,t)=>{o.adoptedStyleSheets.push(...t)},or=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}rt.setDefaultStrategy(pi)}else rt.setDefaultStrategy(ha);function ir(o){const t=class extends o{constructor(){super(),zo.forCustomElement(this)}$emit(e,i,s){return this.$fastController.emit(e,i,s)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,i,s){this.$fastController.onAttributeChangedCallback(e,i,s)}};return zt.registerBaseType(t),t}function ua(o,t){return se(o)?zt.compose(o,t):zt.compose(this,o)}function pa(o,t){return se(o)?zt.compose(o,t).define().type:zt.compose(this,o).define().type}function fa(o){return ir(o)}const S=Object.assign(ir(HTMLElement),{from:fa,define:pa,compose:ua}),Z={horizontal:"horizontal",vertical:"vertical"};function sr(...o){return o.every(t=>t instanceof HTMLElement)}const Le="ArrowDown",Re="ArrowLeft",De="ArrowRight",He="ArrowUp",Ao="End",Ve="Enter",rr="Escape",Oo="Home",Fo=" ",ga="Tab",ba={ArrowDown:Le,ArrowLeft:Re,ArrowRight:De,ArrowUp:He};var gt;(function(o){o.ltr="ltr",o.rtl="rtl"})(gt||(gt={}));function ma(o,t,e){return e<o?t:e>t?o:e}function Ti(o,t,e){return Math.min(Math.max(e,o),t)}let va=0;function Ai(o=""){return`${o}${va++}`}var $a=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,H=(o,t,e,i)=>{for(var s=i>1?void 0:i?ya(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&$a(t,e,s),s};class V{}H([a({attribute:"aria-atomic"})],V.prototype,"ariaAtomic",2),H([a({attribute:"aria-busy"})],V.prototype,"ariaBusy",2),H([a({attribute:"aria-controls"})],V.prototype,"ariaControls",2),H([a({attribute:"aria-current"})],V.prototype,"ariaCurrent",2),H([a({attribute:"aria-describedby"})],V.prototype,"ariaDescribedby",2),H([a({attribute:"aria-details"})],V.prototype,"ariaDetails",2),H([a({attribute:"aria-disabled"})],V.prototype,"ariaDisabled",2),H([a({attribute:"aria-errormessage"})],V.prototype,"ariaErrormessage",2),H([a({attribute:"aria-flowto"})],V.prototype,"ariaFlowto",2),H([a({attribute:"aria-haspopup"})],V.prototype,"ariaHaspopup",2),H([a({attribute:"aria-hidden"})],V.prototype,"ariaHidden",2),H([a({attribute:"aria-invalid"})],V.prototype,"ariaInvalid",2),H([a({attribute:"aria-keyshortcuts"})],V.prototype,"ariaKeyshortcuts",2),H([a({attribute:"aria-label"})],V.prototype,"ariaLabel",2),H([a({attribute:"aria-labelledby"})],V.prototype,"ariaLabelledby",2),H([a({attribute:"aria-live"})],V.prototype,"ariaLive",2),H([a({attribute:"aria-owns"})],V.prototype,"ariaOwns",2),H([a({attribute:"aria-relevant"})],V.prototype,"ariaRelevant",2),H([a({attribute:"aria-roledescription"})],V.prototype,"ariaRoledescription",2);const nr=o=>o.closest("[dir]")?.dir==="rtl"?gt.rtl:gt.ltr;function lt(o){return o?typeof o=="string"?new $e(o):"inline"in o?o.inline():o:$e.empty}const ar=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,xa=":host([hidden]){display:none}";function T(o){return`${xa}:host{display:${o}}`}class ka{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let i=this.listenerCache.get(t);i||(i=this.constructListener(t),this.listenerCache.set(t,i)),i.bind(e)(),e.addEventListener("change",i)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class $o extends ka{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new $o(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(i),e=r):!r&&e&&(t.removeStyles(i),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const bt=$o.with(window.matchMedia("(forced-colors)"));$o.with(window.matchMedia("(prefers-color-scheme: dark)")),$o.with(window.matchMedia("(prefers-color-scheme: light)"));class qt{}function Wt(o){return v`<slot name="end" ${yt("end")}>${lt(o.end)}</slot>`.inline()}function Gt(o){return v`<slot name="start" ${yt("start")}>${lt(o.start)}</slot>`.inline()}function Ut(o,...t){const e=Io.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),Io.locate(i).forEach(r=>e.push(r))})}var wa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,xe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ca(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&wa(t,e,s),s};class J extends S{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ai("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}xe([a({attribute:"heading-level",mode:"fromView",converter:at})],J.prototype,"headinglevel",2),xe([a({mode:"boolean"})],J.prototype,"expanded",2),xe([a({mode:"boolean"})],J.prototype,"disabled",2),xe([a],J.prototype,"id",2),xe([a],J.prototype,"size",2),xe([a({mode:"boolean"})],J.prototype,"block",2),xe([a({attribute:"expand-icon-position"})],J.prototype,"expandIconPosition",2),Ut(J,qt);const _="var(--colorNeutralForeground1)",lr="var(--colorNeutralForeground1Hover)",Sa="var(--colorNeutralForeground1Pressed)",Ot="var(--colorNeutralForeground2)",Eo="var(--colorNeutralForeground2Hover)",Mo="var(--colorNeutralForeground2Pressed)",Ia="var(--colorNeutralForeground2Selected)",_o="var(--colorNeutralForeground2BrandHover)",Lo="var(--colorNeutralForeground2BrandPressed)",Pa="var(--colorNeutralForeground2BrandSelected)",tt="var(--colorNeutralForeground3)",Ba="var(--colorNeutralForeground3Hover)",za="var(--colorNeutralForeground3Pressed)",Ta="var(--colorNeutralForeground4)",C="var(--colorNeutralForegroundDisabled)",cr="var(--colorCompoundBrandForeground1)",dr="var(--colorCompoundBrandForeground1Hover)",hr="var(--colorCompoundBrandForeground1Pressed)",Xt="var(--colorNeutralForegroundOnBrand)",Ro="var(--colorNeutralForegroundInverted)",Aa="var(--colorNeutralForegroundInvertedHover)",Oa="var(--colorNeutralForegroundInvertedPressed)",ur="var(--colorNeutralForegroundStaticInverted)",Oi="var(--colorBrandForeground1)",Fa="var(--colorBrandForeground2)",Ea="var(--colorNeutralForeground1Static)",L="var(--colorNeutralBackground1)",Fi="var(--colorNeutralBackground1Hover)",pr="var(--colorNeutralBackground1Pressed)",fr="var(--colorNeutralBackground1Selected)",gr="var(--colorNeutralBackground3)",Ma="var(--colorNeutralBackground4)",_a="var(--colorNeutralBackground5)",Do="var(--colorNeutralBackground6)",La="var(--colorNeutralBackgroundInverted)",Ra="var(--colorSubtleBackground)",Ei="var(--colorSubtleBackgroundHover)",Ho="var(--colorSubtleBackgroundPressed)",Da="var(--colorSubtleBackgroundSelected)",xt="var(--colorTransparentBackground)",Mi="var(--colorTransparentBackgroundHover)",_i="var(--colorTransparentBackgroundPressed)",Ha="var(--colorTransparentBackgroundSelected)",Qe="var(--colorNeutralBackgroundDisabled)",Va="var(--colorBackgroundOverlay)",Li="var(--colorBrandBackground)",br="var(--colorBrandBackgroundHover)",mr="var(--colorBrandBackgroundPressed)",Na="var(--colorBrandBackgroundSelected)",Ze="var(--colorCompoundBrandBackground)",Je="var(--colorCompoundBrandBackgroundHover)",to="var(--colorCompoundBrandBackgroundPressed)",vr="var(--colorBrandBackgroundStatic)",ja="var(--colorBrandBackground2)",Kt="var(--colorNeutralStrokeAccessible)",eo="var(--colorNeutralStrokeAccessibleHover)",oo="var(--colorNeutralStrokeAccessiblePressed)",Ne="var(--colorNeutralStroke1)",Vo="var(--colorNeutralStroke1Hover)",Ri="var(--colorNeutralStroke1Pressed)",io="var(--colorNeutralStroke2)",qa="var(--colorNeutralStroke3)",Wa="var(--colorNeutralStrokeOnBrand2)",$r="var(--colorBrandStroke1)",yr="var(--colorBrandStroke2)",Di="var(--colorCompoundBrandStroke)",Hi="var(--colorCompoundBrandStrokeHover)",Vi="var(--colorCompoundBrandStrokePressed)",Yt="var(--colorNeutralStrokeDisabled)",Ft="var(--colorTransparentStroke)",xr="var(--colorTransparentStrokeInteractive)",No="var(--colorStrokeFocus1)",Qt="var(--colorStrokeFocus2)",Ga="var(--colorPaletteRedBackground1)",Ua="var(--colorPaletteRedBackground2)",kr="var(--colorPaletteRedBackground3)",Xa="var(--colorPaletteRedBorder1)",Ka="var(--colorPaletteRedBorder2)",wr="var(--colorPaletteRedForeground1)",Ya="var(--colorPaletteRedForeground2)",Cr="var(--colorPaletteRedForeground3)",Qa="var(--colorPaletteGreenBackground1)",Sr="var(--colorPaletteGreenBackground3)",Za="var(--colorPaletteGreenBorder2)",Ja="var(--colorPaletteGreenForeground1)",tl="var(--colorPaletteGreenForeground2)",el="var(--colorPaletteGreenForeground3)",ol="var(--colorPaletteDarkOrangeBackground1)",Ir="var(--colorPaletteDarkOrangeBackground3)",il="var(--colorPaletteDarkOrangeBorder1)",sl="var(--colorPaletteDarkOrangeForeground1)",Pr="var(--colorPaletteDarkOrangeForeground3)",rl="var(--colorPaletteYellowBackground1)",nl="var(--colorPaletteYellowBackground3)",al="var(--colorPaletteYellowBorder1)",Ni="var(--colorPaletteYellowForeground2)",ll="var(--colorPaletteMarigoldBackground2)",cl="var(--colorPaletteMarigoldForeground2)",dl="var(--colorPaletteAnchorBackground2)",hl="var(--colorPaletteAnchorForeground2)",ul="var(--colorPaletteBeigeBackground2)",pl="var(--colorPaletteBeigeForeground2)",fl="var(--colorPaletteBlueBackground2)",gl="var(--colorPaletteBlueForeground2)",bl="var(--colorPaletteBrassBackground2)",ml="var(--colorPaletteBrassForeground2)",vl="var(--colorPaletteBrownBackground2)",$l="var(--colorPaletteBrownForeground2)",yl="var(--colorPaletteCornflowerBackground2)",xl="var(--colorPaletteCornflowerForeground2)",kl="var(--colorPaletteCranberryBackground2)",wl="var(--colorPaletteCranberryForeground2)",Cl="var(--colorPaletteDarkGreenBackground2)",Sl="var(--colorPaletteDarkGreenForeground2)",Il="var(--colorPaletteDarkRedBackground2)",Pl="var(--colorPaletteDarkRedForeground2)",Bl="var(--colorPaletteForestBackground2)",zl="var(--colorPaletteForestForeground2)",Tl="var(--colorPaletteGoldBackground2)",Al="var(--colorPaletteGoldForeground2)",Ol="var(--colorPaletteGrapeBackground2)",Fl="var(--colorPaletteGrapeForeground2)",El="var(--colorPaletteLavenderBackground2)",Ml="var(--colorPaletteLavenderForeground2)",_l="var(--colorPaletteLightTealBackground2)",Ll="var(--colorPaletteLightTealForeground2)",Rl="var(--colorPaletteLilacBackground2)",Dl="var(--colorPaletteLilacForeground2)",Hl="var(--colorPaletteMagentaBackground2)",Vl="var(--colorPaletteMagentaForeground2)",Nl="var(--colorPaletteMinkBackground2)",jl="var(--colorPaletteMinkForeground2)",ql="var(--colorPaletteNavyBackground2)",Wl="var(--colorPaletteNavyForeground2)",Gl="var(--colorPalettePeachBackground2)",Ul="var(--colorPalettePeachForeground2)",Xl="var(--colorPalettePinkBackground2)",Kl="var(--colorPalettePinkForeground2)",Yl="var(--colorPalettePlatinumBackground2)",Ql="var(--colorPalettePlatinumForeground2)",Zl="var(--colorPalettePlumBackground2)",Jl="var(--colorPalettePlumForeground2)",tc="var(--colorPalettePumpkinBackground2)",ec="var(--colorPalettePumpkinForeground2)",oc="var(--colorPalettePurpleBackground2)",ic="var(--colorPalettePurpleForeground2)",sc="var(--colorPaletteRoyalBlueBackground2)",rc="var(--colorPaletteRoyalBlueForeground2)",nc="var(--colorPaletteSeafoamBackground2)",ac="var(--colorPaletteSeafoamForeground2)",lc="var(--colorPaletteSteelBackground2)",cc="var(--colorPaletteSteelForeground2)",dc="var(--colorPaletteTealBackground2)",hc="var(--colorPaletteTealForeground2)",ji="var(--borderRadiusNone)",kt="var(--borderRadiusSmall)",F="var(--borderRadiusMedium)",Br="var(--borderRadiusLarge)",zr="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",x="var(--fontFamilyBase)",uc="var(--fontFamilyMonospace)",pc="var(--fontFamilyNumeric)",so="var(--fontSizeBase100)",G="var(--fontSizeBase200)",E="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",ke="var(--fontSizeBase500)",jo="var(--fontSizeBase600)",Tr="var(--fontSizeHero700)",Ar="var(--fontSizeHero800)",Or="var(--fontSizeHero900)",Fr="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",fc="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",qo="var(--fontWeightBold)",Wo="var(--lineHeightBase100)",ht="var(--lineHeightBase200)",R="var(--lineHeightBase300)",wt="var(--lineHeightBase400)",Go="var(--lineHeightBase500)",Er="var(--lineHeightBase600)",Mr="var(--lineHeightHero700)",_r="var(--lineHeightHero800)",Lr="var(--lineHeightHero900)",Rr="var(--lineHeightHero1000)",Dr="var(--shadow2)",Uo="var(--shadow4)",gc="var(--shadow8)",Hr="var(--shadow16)",bc="var(--shadow28)",mc="var(--shadow64)",et="var(--strokeWidthThin)",we="var(--strokeWidthThick)",re="var(--strokeWidthThicker)",Vr="var(--strokeWidthThickest)",Ce="var(--spacingHorizontalXXS)",Zt="var(--spacingHorizontalXS)",Se="var(--spacingHorizontalSNudge)",Et="var(--spacingHorizontalS)",Jt="var(--spacingHorizontalMNudge)",ne="var(--spacingHorizontalM)",vc="var(--spacingHorizontalL)",$c="var(--spacingHorizontalXXL)",Xo="var(--spacingVerticalXXS)",yc="var(--spacingVerticalXS)",ro="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",Nr="var(--spacingVerticalMNudge)",jr="var(--spacingVerticalL)",no="var(--spacingVerticalXXL)",xc="var(--durationUltraFast)",qi="var(--durationFaster)",qr="var(--durationNormal)",kc="var(--durationGentle)",wc="var(--durationSlow)",Wr="var(--durationSlower)",Ko="var(--durationUltraSlow)",Cc="var(--curveAccelerateMax)",Wi="var(--curveAccelerateMid)",Sc="var(--curveAccelerateMin)",Gr="var(--curveDecelerateMax)",Gi="var(--curveDecelerateMid)",Ic="var(--curveDecelerateMin)",Pc="var(--curveEasyEaseMax)",Ui="var(--curveEasyEase)",Ur="var(--curveLinear)",Bc=p`
2
2
  ${T("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${et} ${Je};border-radius:${I};font-family:${y};font-size:${A};font-weight:${E};line-height:${R};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${_};background:${J};line-height:${R};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${we}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${ze};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${et}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${ze};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${we};outline:none;border:2px solid ${Uo};box-shadow:inset 0 0 0 1px ${Ie}}:host([disabled]) .button{color:${C}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${A};line-height:${R}}:host([size='small']) .heading{font-size:${j};line-height:${ce}}:host([size='large']) .heading{font-size:${le};line-height:${Ce}}:host([size='extra-large']) .heading{font-size:${St};line-height:${Zo}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`,Oc=v.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${ne} ${Jt};border-radius:${F};font-family:${x};font-size:${E};font-weight:${M};line-height:${R};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${_};background:${xt};line-height:${R};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${kt}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${Et};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${ne}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${Et};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${kt};outline:none;border:2px solid ${No};box-shadow:inset 0 0 0 1px ${Qt}}:host([disabled]) .button{color:${C}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${E};line-height:${R}}:host([size='small']) .heading{font-size:${G};line-height:${ht}}:host([size='large']) .heading{font-size:${dt};line-height:${wt}}:host([size='extra-large']) .heading{font-size:${ke};line-height:${Go}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`,zc=v.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -13,7 +13,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
13
13
  d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
14
14
  fill="currentColor"
15
15
  />
16
- </svg>`),Ac=v.partial(`<svg
16
+ </svg>`),Tc=v.partial(`<svg
17
17
  width="20"
18
18
  height="20"
19
19
  viewBox="0 0 20 20"
@@ -25,33 +25,35 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
25
25
  d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
26
26
  fill="currentColor"
27
27
  />
28
- </svg>`);function Ec(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${me("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}" @click="${(e,t)=>e.clickHandler(t.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${Qe(o)} ${Ye(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${Z(o.expandedIcon)}</slot><slot name="collapsed-icon">${Z(o.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Mc=Ec({collapsedIcon:Oc,expandedIcon:Ac}),_c=se.compose({name:`${b.prefix}-accordion-item`,template:Mc,styles:Fc});_c.define(b.registry);const rr={single:"single",multi:"multi"};var Lc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,rn=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lc(e,t,r),r};class sr extends S{constructor(){super(...arguments),this.expandmode=rr.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>w.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,i)=>{t instanceof se&&(t.addEventListener("click",this.activeItemChange),t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus),w.getNotifier(t).subscribe(this,"expanded"));const r=this.accordionIds[i];t.setAttribute("id",typeof r!="string"?`accordion-${i+1}`:r),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{w.getNotifier(t).unsubscribe(this,"disabled"),w.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{e.defaultPrevented||e.target!==e.currentTarget||(e.preventDefault(),this.handleExpandedChange(e.target))},this.handleExpandedChange=e=>{e instanceof se&&(this.activeid=e.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.change())},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case Ht:e.preventDefault(),this.adjust(-1);break;case Lt:e.preventDefault(),this.adjust(1);break;case Vo:this.activeItemIndex=0,this.focusItem();break;case Ho:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==i&&i!==-1&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();i&&(t!==rr.single?i?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(i))}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof se&&e.expanded)??this.accordionItems[0]}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{i instanceof se&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(e=>e.id)}isSingleExpandMode(){return this.expandmode===rr.single}adjust(e){this.activeItemIndex=Sa(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof se&&e.expandbutton.focus()}}rn([a({attribute:"expand-mode"})],sr.prototype,"expandmode",2),rn([$],sr.prototype,"slottedAccordionItems",2);const Dc=p`
28
+ </svg>`);function Ac(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${yt("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${Gt(o)} ${Wt(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${lt(o.expandedIcon)}</slot><slot name="collapsed-icon">${lt(o.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const Oc=Ac({collapsedIcon:zc,expandedIcon:Tc}),Fc=J.compose({name:`${b.prefix}-accordion-item`,template:Oc,styles:Bc});Fc.define(b.registry);const Xi={single:"single",multi:"multi"};var Ec=Object.defineProperty,Mc=Object.getOwnPropertyDescriptor,Xr=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ec(t,e,s),s};class Ki extends S{constructor(){super(...arguments),this.expandmode=Xi.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>w.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((e,i)=>{e instanceof J&&(e.addEventListener("click",this.activeItemChange),e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus),w.getNotifier(e).subscribe(this,"expanded"));const s=this.accordionIds[i];e.setAttribute("id",typeof s!="string"?`accordion-${i+1}`:s),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,i)=>{w.getNotifier(e).unsubscribe(this,"disabled"),w.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{t.defaultPrevented||t.target!==t.currentTarget||(t.preventDefault(),this.handleExpandedChange(t.target))},this.handleExpandedChange=t=>{t instanceof J&&(this.activeid=t.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.change())},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case He:t.preventDefault(),this.adjust(-1);break;case Le:t.preventDefault(),this.adjust(1);break;case Oo:this.activeItemIndex=0,this.focusItem();break;case Ao:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&i!==-1&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();i&&(e!==Xi.single?i?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(i))}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof J&&t.expanded)??this.accordionItems[0]}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((i,s)=>{i instanceof J&&(this.activeItemIndex===s?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(t=>t.id)}isSingleExpandMode(){return this.expandmode===Xi.single}adjust(t){this.activeItemIndex=ma(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof J&&t.expandbutton.focus()}}Xr([a({attribute:"expand-mode"})],Ki.prototype,"expandmode",2),Xr([$],Ki.prototype,"slottedAccordionItems",2);const _c=p`
29
29
  ${T("flex")}
30
30
 
31
- :host{flex-direction:column;width:100%;contain:content}`;function Hc(){return v`<template><slot ${ie({property:"slottedAccordionItems",filter:xt()})}></slot></template>`}const Vc=Hc(),Nc=sr.compose({name:`${b.prefix}-accordion`,template:Vc,styles:Dc});Nc.define(b.registry);var jc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,K=(o,e,t,i)=>{for(var r=i>1?void 0:i?qc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jc(e,t,r),r};class q extends S{constructor(){super(...arguments),this.iconOnly=!1,this.disabled=!1,this.disabledFocusable=!1,this.handleDisabledFocusableClick=e=>{if(e&&this.disabled||this.disabledFocusable){e.stopImmediatePropagation();return}}}disabledChanged(e,t){this.disabled?(this.setAttribute("aria-disabled","true"),this.setAttribute("tabindex","-1")):(this.removeAttribute("aria-disabled"),this.removeAttribute("tabindex"))}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.disabledFocusable?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleDisabledFocusableClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleDisabledFocusableClick)}}K([a],q.prototype,"download",2),K([a],q.prototype,"href",2),K([a],q.prototype,"hreflang",2),K([a],q.prototype,"ping",2),K([a],q.prototype,"referrerpolicy",2),K([a],q.prototype,"rel",2),K([a],q.prototype,"target",2),K([a],q.prototype,"type",2),K([$],q.prototype,"defaultSlottedContent",2),K([a],q.prototype,"appearance",2),K([a],q.prototype,"shape",2),K([a],q.prototype,"size",2),K([a({attribute:"icon-only",mode:"boolean"})],q.prototype,"iconOnly",2),K([a({mode:"boolean"})],q.prototype,"disabled",2),K([a({attribute:"disabled-focusable",mode:"boolean"})],q.prototype,"disabledFocusable",2);class nr{}K([a({attribute:"aria-expanded"})],nr.prototype,"ariaExpanded",2),Le(nr,D),Le(q,Ke,nr);const Gc=p`
31
+ :host{flex-direction:column;width:100%;contain:content}`;function Lc(){return v`<template><slot ${nt({property:"slottedAccordionItems",filter:ye()})}></slot></template>`}const Rc=Lc(),Dc=Ki.compose({name:`${b.prefix}-accordion`,template:Rc,styles:_c});Dc.define(b.registry);const Yo={submit:"submit",reset:"reset",button:"button"},Hc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Vc=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,mt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Nc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Vc(t,e,s),s};class ot extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.iconOnly=!1,this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),w.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),w.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in Hc){const i=this.$fastController.definition.attributeLookup[e]?.attribute;i&&this.handleProxyAttributeChange(i,this[e])}}clickHandler(){return this.internalProxyAnchor.click(),!0}keypressHandler(t){if(t.key===Ve){this.internalProxyAnchor.click();return}return!0}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.hidden=!0,t}}mt([a],ot.prototype,"download",2),mt([a],ot.prototype,"href",2),mt([a],ot.prototype,"hreflang",2),mt([a],ot.prototype,"ping",2),mt([a],ot.prototype,"referrerpolicy",2),mt([a],ot.prototype,"rel",2),mt([a],ot.prototype,"target",2),mt([a],ot.prototype,"type",2),mt([a],ot.prototype,"appearance",2),mt([a],ot.prototype,"shape",2),mt([a],ot.prototype,"size",2),mt([a({attribute:"icon-only",mode:"boolean"})],ot.prototype,"iconOnly",2),Ut(ot,qt);const Kr=p`
32
32
  ${T("inline-flex")}
33
33
 
34
- :host{--icon-spacing:${lt};contain:layout style;vertical-align:middle}:host .control{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${L};color:${_};border:${ee} solid ${Ct};padding:0 ${et};min-width:96px;border-radius:${I};font-size:${A};font-family:${y};font-weight:${H};line-height:${R};transition-duration:${ei};transition-property:background,border,color;transition-timing-function:${oi};cursor:pointer}.content{display:inherit;text-align:center}:host(:hover) .control{background-color:${qo};color:${Hi};border-color:${co}}:host(:hover:active) .control{background-color:${Ni};border-color:${Xo};color:${ys};outline-style:none}:host .control:focus-visible{border-color:${ke};outline:${nt}) solid ${ke};box-shadow:${po},0 0 0 2px ${Ie}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]) .control{min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${De}}:host([size='small']) .control{min-height:24px;min-width:64px;padding:0 ${ze};border-radius:${we};font-size:${j};line-height:${ce};font-weight:${E}}:host([size='small'][icon-only]) .control{min-width:24px;max-width:24px}:host([size='large']) .control{min-height:40px;border-radius:${er};padding:0 ${Ys};font-size:${le};line-height:${Ce}}:host([size='large'][icon-only]) .control{min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']) .control,:host([shape='circular']) .control:focus-visible{border-radius:${ae}}:host([shape='square']) .control,:host([shape='square']) .control:focus-visible{border-radius:${Ji}}:host([appearance='primary']) .control{background-color:${Wo};color:${xe};border-color:transparent}:host([appearance='primary']:hover) .control{background-color:${ji}}:host([appearance='primary']:hover) .control,:host([appearance='primary']:hover:active) .control{border-color:transparent;color:${xe}}:host([appearance='primary']:hover:active) .control{background-color:${qi}}:host([appearance='primary']) .control:focus-visible{border-color:${xe};box-shadow:${tr},0 0 0 2px ${Ie}}:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary'])) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover) .control,:host(:is([disabled][appearance='primary'],[disabled-focusabale][appearance='primary']):hover:active) .control{border-color:transparent}:host([appearance='outline']) .control{background-color:${J}}:host([appearance='outline']:hover) .control{background-color:${oo}}:host([appearance='outline']:hover:active) .control{background-color:${io}}:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline'])) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover) .control,:host(:is([disabled][appearance='outline'],[disabled-focusabale][appearance='outline']):hover:active) .control{background-color:${J}}:host([appearance='subtle']) .control{background-color:${zs};color:${ye};border-color:transparent}:host([appearance='subtle']:hover) .control{background-color:${Go};color:${Jt};border-color:transparent}:host([appearance='subtle']:hover:active) .control{background-color:${to};color:${eo};border-color:transparent}:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle'])) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover) .control,:host(:is([disabled][appearance='subtle'],[disabled-focusabale][appearance='subtle']):hover:active) .control{background-color:${J};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Vt}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Nt}}:host([appearance='transparent']) .control{background-color:${J};color:${ye}}:host([appearance='transparent']:hover) .control{background-color:${oo};color:${Vt}}:host([appearance='transparent']:hover:active) .control{background-color:${io};color:${Nt}}:host([appearance='transparent']) .control,:host([appearance='transparent']:hover) .control,:host([appearance='transparent']:hover:active) .control{border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent'])) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover) .control,:host(:is([disabled][appearance='transparent'],[disabled-focusabale][appearance='transparent']):hover:active)
35
- .control{border-color:transparent;background-color:${J}}:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover) .control,:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active)
36
- .control{background-color:${jt};border-color:${Re};color:${C};cursor:not-allowed}`.withBehaviors($e(p`
37
- :host([appearance='transparent']:hover) .control{border-color:Highlight}`));function Wc(o={}){return v`<a class="control" part="control" download="${e=>e.download}" href="${e=>e.href}" hreflang="${e=>e.hreflang}" ping="${e=>e.ping}" referrerpolicy="${e=>e.referrerpolicy}" rel="${e=>e.rel}" target="${e=>e.target}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-expanded="${e=>e.ariaExpanded}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${me("control")}>${Qe(o)}<span class="content" part="content"><slot ${ie("defaultSlottedContent")}></slot></span>${Ye(o)}</a>`}const Xc=Wc(),Uc=q.compose({name:`${b.prefix}-anchor-button`,template:Xc,styles:Gc,shadowOptions:{delegatesFocus:!0}});Uc.define(b.registry);const Kc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Yc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Qc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Zc=/\s+/g,Jc=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function ed(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function td(o){return o=o.replace(Kc,""),o=o.replace(Yc,""),o=o.replace(Zc," "),o=o.trim(),o}function od(o,e,t){return!o||(o=td(o),Jc.test(o)||!t?.allowPhoneInitials&&Qc.test(o))?"":ed(o,e,t?.firstInitialOnly)}const sn={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},id={neutral:"neutral",brand:"brand",colorful:"colorful",...sn};var rd=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?sd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rd(e,t,r),r};const He=class xr extends S{constructor(){super(...arguments),this.color="neutral"}generateColor(){if(this.color)return this.color===id.colorful?xr.colors[ad(this.colorId??this.name??"")%xr.colors.length]:this.color}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??od(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}};He.colors=Object.values(sn),ct([a],He.prototype,"name",2),ct([a],He.prototype,"initials",2),ct([a({converter:pe})],He.prototype,"size",2),ct([a],He.prototype,"shape",2),ct([a],He.prototype,"active",2),ct([a],He.prototype,"appearance",2),ct([a],He.prototype,"color",2),ct([a({attribute:"color-id"})],He.prototype,"colorId",2);let nd=He;const ad=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},dt={fastOutSlowInMax:tn,fastOutSlowInMid:ir,fastOutSlowInMin:Bc,slowOutFastInMax:Ic,slowOutFastInMid:or,slowOutFastInMin:zc,fastEase:Tc,normalEase:oi,nullEasing:on},ld=p`
38
- ${T("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${H};font-size:${A};border-radius:${ae};color:${ne};background-color:${Is};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ae}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${ee}) ${L}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${nt}) ${L}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${uo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${j}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${le}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${St}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${Ko}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${I}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${we}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${er}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Rs}}:host([data-color='brand']){color:${Cs};background-color:${Bs}}:host([data-color='dark-red']){color:${Fl};background-color:${Tl}}:host([data-color='cranberry']){color:${Il};background-color:${Pl}}:host([data-color='red']){color:${el};background-color:${Ui}}:host([data-color='pumpkin']){color:${sc};background-color:${rc}}:host([data-color='peach']){color:${Ql};background-color:${Yl}}:host([data-color='marigold']){color:${pl};background-color:${ul}}:host([data-color='gold']){color:${Ml};background-color:${El}}:host([data-color='brass']){color:${xl};background-color:${yl}}:host([data-color='brown']){color:${wl};background-color:${kl}}:host([data-color='forest']){color:${Al};background-color:${Ol}}:host([data-color='seafoam']){color:${hc};background-color:${dc}}:host([data-color='dark-green']){color:${Bl};background-color:${zl}}:host([data-color='light-teal']){color:${Vl};background-color:${Hl}}:host([data-color='teal']){color:${gc};background-color:${fc}}:host([data-color='steel']){color:${pc};background-color:${uc}}:host([data-color='blue']){color:${$l};background-color:${vl}}:host([data-color='royal-blue']){color:${cc};background-color:${lc}}:host([data-color='cornflower']){color:${Sl};background-color:${Cl}}:host([data-color='navy']){color:${Kl};background-color:${Ul}}:host([data-color='lavender']){color:${Dl};background-color:${Rl}}:host([data-color='purple']){color:${ac};background-color:${nc}}:host([data-color='grape']){color:${Ll};background-color:${_l}}:host([data-color='lilac']){color:${jl};background-color:${Nl}}:host([data-color='pink']){color:${Jl};background-color:${Zl}}:host([data-color='magenta']){color:${Gl};background-color:${ql}}:host([data-color='plum']){color:${ic};background-color:${oc}}:host([data-color='beige']){color:${ml};background-color:${bl}}:host([data-color='mink']){color:${Xl};background-color:${Wl}}:host([data-color='platinum']){color:${tc};background-color:${ec}}:host([data-color='anchor']){color:${gl};background-color:${fl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${ti},${ei};transition-delay:${dt.fastEase},${dt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${ti}),${en};transition-delay:${dt.fastEase}),${dt.nullEasing})}:host([active])::before{box-shadow:${$c};border-style:solid;border-color:${Bs}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${nt});border-width:${nt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${at});border-width:${at}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ks});border-width:${Ks}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${po}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Us}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${yc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${ti},${ei};transition-delay:${dt.fastOutSlowInMin},${dt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${ti},${en};transition-delay:${dt.fastOutSlowInMin},${dt.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,cd=v`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function dd(){return v`<template role="img" data-color=${o=>o.generateColor()}><slot>${o=>o.name||o.initials?o.generateInitials():cd}</slot><slot name="badge"></slot></template>`}const hd=dd(),ud=nd.compose({name:`${b.prefix}-avatar`,template:hd,styles:ld});ud.define(b.registry);const pd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},fd={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var gd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?bd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gd(e,t,r),r};class qt extends S{constructor(){super(...arguments),this.appearance=pd.filled,this.color=fd.brand}}ii([a],qt.prototype,"appearance",2),ii([a],qt.prototype,"color",2),ii([a],qt.prototype,"shape",2),ii([a],qt.prototype,"size",2),Le(qt,Ke);const ri=Pt,nn=p.partial`
34
+ :host{--icon-spacing:${Se};contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${L};color:${_};border:${et} solid ${Ne};padding:0 ${ne};min-width:96px;border-radius:${F};font-size:${E};font-family:${x};font-weight:${N};line-height:${R};transition-duration:${qi};transition-property:background,border,color;transition-timing-function:${Ui};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Fi};color:${lr};border-color:${Vo}}:host(:hover:active){background-color:${pr};border-color:${Ri};color:${Sa};outline-style:none}:host(:focus-visible){border-color:${Ft};outline:${we} solid ${Ft};box-shadow:${Uo},0 0 0 2px ${Qt}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${Zt};min-height:24px;min-width:64px;padding:0 ${Et};border-radius:${kt};font-size:${G};line-height:${ht};font-weight:${M}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Br};padding:0 ${vc};font-size:${dt};line-height:${wt}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']),:host([shape='circular']:focus-visible){border-radius:${ct}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${ji}}:host([appearance='primary']){background-color:${Li};color:${Xt};border-color:transparent}:host([appearance='primary']:hover){background-color:${br}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${Xt}}:host([appearance='primary']:hover:active){background-color:${mr}}:host([appearance='primary']:focus-visible){border-color:${Xt};box-shadow:${Dr},0 0 0 2px ${Qt}}:host([appearance='outline']){background-color:${xt}}:host([appearance='outline']:hover){background-color:${Mi}}:host([appearance='outline']:hover:active){background-color:${_i}}:host([appearance='subtle']){background-color:${Ra};color:${Ot};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Ei};color:${Eo};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Ho};color:${Mo};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${_o}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Lo}}:host([appearance='transparent']){background-color:${xt};color:${Ot}}:host([appearance='transparent']:hover){background-color:${Mi};color:${_o}}:host([appearance='transparent']:hover:active){background-color:${_i};color:${Lo}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}`,Qo=p`
35
+ ${Kr}
36
+
37
+ :host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])),:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover),:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active){background-color:${Qe};border-color:${Yt};color:${C};cursor:not-allowed}:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover:active){border-color:transparent}:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover:active){background-color:${xt}}:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover:active){background-color:${xt};border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover:active){border-color:transparent;background-color:${xt}}`.withBehaviors(bt(p`
38
+ :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),jc=Kr.withBehaviors(bt(p`
39
+ :host{border-color:LinkText;color:LinkText}`));function qc(o={}){return v`<template tabindex="0" @click="${t=>t.clickHandler()}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Gt(o)}<span class="content" part="content"><slot></slot></span>${Wt(o)}</template>`}const Wc=qc(),Gc=ot.compose({name:`${b.prefix}-anchor-button`,template:Wc,styles:jc});Gc.define(b.registry);const Uc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Xc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Kc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Yc=/\s+/g,Qc=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Zc(o,t,e){let i="";const s=o.split(" ");return s.length!==0&&(i+=s[0].charAt(0).toUpperCase()),e||(s.length===2?i+=s[1].charAt(0).toUpperCase():s.length===3&&(i+=s[2].charAt(0).toUpperCase())),t&&i.length>1?i.charAt(1)+i.charAt(0):i}function Jc(o){return o=o.replace(Uc,""),o=o.replace(Xc,""),o=o.replace(Yc," "),o=o.trim(),o}function td(o,t,e){return!o||(o=Jc(o),Qc.test(o)||!e?.allowPhoneInitials&&Kc.test(o))?"":Zc(o,t,e?.firstInitialOnly)}const Yr={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},ed={neutral:"neutral",brand:"brand",colorful:"colorful",...Yr};var od=Object.defineProperty,id=Object.getOwnPropertyDescriptor,ae=(o,t,e,i)=>{for(var s=i>1?void 0:i?id(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&od(t,e,s),s};const Mt=class cs extends S{constructor(){super(...arguments),this.color="neutral"}generateColor(){if(this.color)return this.color===ed.colorful?cs.colors[rd(this.colorId??this.name??"")%cs.colors.length]:this.color}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??td(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Mt.colors=Object.values(Yr),ae([a],Mt.prototype,"name",2),ae([a],Mt.prototype,"initials",2),ae([a({converter:at})],Mt.prototype,"size",2),ae([a],Mt.prototype,"shape",2),ae([a],Mt.prototype,"active",2),ae([a],Mt.prototype,"appearance",2),ae([a],Mt.prototype,"color",2),ae([a({attribute:"color-id"})],Mt.prototype,"colorId",2);let sd=Mt;const rd=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const i=o.charCodeAt(e),s=e%8;t^=(i<<s)+(i>>8-s)}return t},le={fastOutSlowInMax:Gr,fastOutSlowInMid:Gi,fastOutSlowInMin:Ic,slowOutFastInMax:Cc,slowOutFastInMid:Wi,slowOutFastInMin:Sc,fastEase:Pc,normalEase:Ui,nullEasing:Ur},nd=p`
40
+ ${T("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${x};font-weight:${N};font-size:${E};border-radius:${ct};color:${tt};background-color:${Do};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ct}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${et}) ${L}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${we}) ${L}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${so};font-weight:${M}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${G}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${dt}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${ke}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${jo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${F}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${kt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Br}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${zr}}:host([data-color='brand']){color:${ur};background-color:${vr}}:host([data-color='dark-red']){color:${Pl};background-color:${Il}}:host([data-color='cranberry']){color:${wl};background-color:${kl}}:host([data-color='red']){color:${Ya};background-color:${Ua}}:host([data-color='pumpkin']){color:${ec};background-color:${tc}}:host([data-color='peach']){color:${Ul};background-color:${Gl}}:host([data-color='marigold']){color:${cl};background-color:${ll}}:host([data-color='gold']){color:${Al};background-color:${Tl}}:host([data-color='brass']){color:${ml};background-color:${bl}}:host([data-color='brown']){color:${$l};background-color:${vl}}:host([data-color='forest']){color:${zl};background-color:${Bl}}:host([data-color='seafoam']){color:${ac};background-color:${nc}}:host([data-color='dark-green']){color:${Sl};background-color:${Cl}}:host([data-color='light-teal']){color:${Ll};background-color:${_l}}:host([data-color='teal']){color:${hc};background-color:${dc}}:host([data-color='steel']){color:${cc};background-color:${lc}}:host([data-color='blue']){color:${gl};background-color:${fl}}:host([data-color='royal-blue']){color:${rc};background-color:${sc}}:host([data-color='cornflower']){color:${xl};background-color:${yl}}:host([data-color='navy']){color:${Wl};background-color:${ql}}:host([data-color='lavender']){color:${Ml};background-color:${El}}:host([data-color='purple']){color:${ic};background-color:${oc}}:host([data-color='grape']){color:${Fl};background-color:${Ol}}:host([data-color='lilac']){color:${Dl};background-color:${Rl}}:host([data-color='pink']){color:${Kl};background-color:${Xl}}:host([data-color='magenta']){color:${Vl};background-color:${Hl}}:host([data-color='plum']){color:${Jl};background-color:${Zl}}:host([data-color='beige']){color:${pl};background-color:${ul}}:host([data-color='mink']){color:${jl};background-color:${Nl}}:host([data-color='platinum']){color:${Ql};background-color:${Yl}}:host([data-color='anchor']){color:${hl};background-color:${dl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Ko},${qi};transition-delay:${le.fastEase},${le.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Ko}),${Wr};transition-delay:${le.fastEase}),${le.nullEasing})}:host([active])::before{box-shadow:${gc};border-style:solid;border-color:${vr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${we});border-width:${we}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${re});border-width:${re}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Vr});border-width:${Vr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Uo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Hr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${bc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Ko},${qi};transition-delay:${le.fastOutSlowInMin},${le.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Ko},${Wr};transition-delay:${le.fastOutSlowInMin},${le.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,ad=v`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function ld(){return v`<template role="img" data-color=${o=>o.generateColor()}><slot>${o=>o.name||o.initials?o.generateInitials():ad}</slot><slot name="badge"></slot></template>`}const cd=ld(),dd=sd.compose({name:`${b.prefix}-avatar`,template:cd,styles:nd});dd.define(b.registry);const hd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},ud={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var pd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,Zo=(o,t,e,i)=>{for(var s=i>1?void 0:i?fd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&pd(t,e,s),s};class je extends S{constructor(){super(...arguments),this.appearance=hd.filled,this.color=ud.brand}}Zo([a],je.prototype,"appearance",2),Zo([a],je.prototype,"color",2),Zo([a],je.prototype,"shape",2),Zo([a],je.prototype,"size",2),Ut(je,qt);const Jo=Ce,Qr=p.partial`
39
41
  ${T("inline-flex")} :host {
40
42
  position: relative;
41
43
  box-sizing: border-box;
42
44
  align-items: center;
43
45
  justify-content: center;
44
- font-family: ${y};
45
- font-weight: ${H};
46
- font-size: ${j};
47
- line-height: ${ce};
46
+ font-family: ${x};
47
+ font-weight: ${N};
48
+ font-size: ${G};
49
+ line-height: ${ht};
48
50
  min-width: 20px;
49
51
  height: 20px;
50
- padding-inline: calc(${De} + ${ri});
51
- border-radius: ${ae};
52
- border-color: ${ke};
53
- background-color: ${Wo};
54
- color: ${xe};
52
+ padding-inline: calc(${Zt} + ${Jo});
53
+ border-radius: ${ct};
54
+ border-color: ${Ft};
55
+ background-color: ${Li};
56
+ color: ${Xt};
55
57
  contain: content;
56
58
  }
57
59
 
@@ -67,11 +69,11 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
67
69
  bottom: 0;
68
70
  right: 0;
69
71
  border-style: solid;
70
- border-width: ${ee};
72
+ border-width: ${et};
71
73
  border-color: inherit;
72
74
  border-radius: inherit;
73
75
  }
74
- `,an=p.partial`
76
+ `,Zr=p.partial`
75
77
  :host([size='tiny']) {
76
78
  width: 6px;
77
79
  height: 6px;
@@ -97,9 +99,9 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
97
99
  :host([size='small']) {
98
100
  min-width: 16px;
99
101
  height: 16px;
100
- font-size: ${uo};
101
- line-height: ${Qo};
102
- padding-inline: calc(${Pt} + ${ri});
102
+ font-size: ${so};
103
+ line-height: ${Wo};
104
+ padding-inline: calc(${Ce} + ${Jo});
103
105
  }
104
106
  :host([size='small']) ::slotted(svg) {
105
107
  font-size: 12px;
@@ -107,9 +109,9 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
107
109
  :host([size='large']) {
108
110
  min-width: 24px;
109
111
  height: 24px;
110
- font-size: ${j};
111
- line-height: ${ce};
112
- padding-inline: calc(${De} + ${ri});
112
+ font-size: ${G};
113
+ line-height: ${ht};
114
+ padding-inline: calc(${Zt} + ${Jo});
113
115
  }
114
116
  :host([size='large']) ::slotted(svg) {
115
117
  font-size: 16px;
@@ -117,17 +119,17 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
117
119
  :host([size='extra-large']) {
118
120
  min-width: 32px;
119
121
  height: 32px;
120
- font-size: ${j};
121
- line-height: ${ce};
122
- padding-inline: calc(${lt} + ${ri});
122
+ font-size: ${G};
123
+ line-height: ${ht};
124
+ padding-inline: calc(${Se} + ${Jo});
123
125
  }
124
126
  :host([size='extra-large']) ::slotted(svg) {
125
127
  font-size: 20px;
126
128
  }
127
- `,ln=p.partial`
129
+ `,Jr=p.partial`
128
130
  :host([color='danger']) {
129
- background-color: ${Ki};
130
- color: ${xe};
131
+ background-color: ${kr};
132
+ color: ${Xt};
131
133
  }
132
134
 
133
135
  :host([color='important']) {
@@ -136,13 +138,13 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
136
138
  }
137
139
 
138
140
  :host([color='informative']) {
139
- background-color: ${ja};
140
- color: ${ne};
141
+ background-color: ${_a};
142
+ color: ${tt};
141
143
  }
142
144
 
143
145
  :host([color='severe']) {
144
- background-color: ${Qi};
145
- color: ${xe};
146
+ background-color: ${Ir};
147
+ color: ${Xt};
146
148
  }
147
149
 
148
150
  :host([color='subtle']) {
@@ -151,22 +153,22 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
151
153
  }
152
154
 
153
155
  :host([color='success']) {
154
- background-color: ${Yi};
155
- color: ${xe};
156
+ background-color: ${Sr};
157
+ color: ${Xt};
156
158
  }
157
159
 
158
160
  :host([color='warning']) {
159
- background-color: ${dl};
160
- color: ${Va};
161
+ background-color: ${nl};
162
+ color: ${Ea};
161
163
  }
162
- `,cn=p.partial`
164
+ `,tn=p.partial`
163
165
  :host([appearance='ghost']) {
164
- color: ${Vi};
166
+ color: ${Oi};
165
167
  background-color: initial;
166
168
  }
167
169
 
168
170
  :host([appearance='ghost'][color='danger']) {
169
- color: ${Es};
171
+ color: ${Cr};
170
172
  }
171
173
 
172
174
  :host([appearance='ghost'][color='important']) {
@@ -174,210 +176,206 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
174
176
  }
175
177
 
176
178
  :host([appearance='ghost'][color='informative']) {
177
- color: ${ne};
179
+ color: ${tt};
178
180
  }
179
181
 
180
182
  :host([appearance='ghost'][color='severe']) {
181
- color: ${Ls};
183
+ color: ${Pr};
182
184
  }
183
185
 
184
186
  :host([appearance='ghost'][color='subtle']) {
185
- color: ${jo};
187
+ color: ${Ro};
186
188
  }
187
189
 
188
190
  :host([appearance='ghost'][color='success']) {
189
- color: ${sl};
191
+ color: ${el};
190
192
  }
191
193
 
192
194
  :host([appearance='ghost'][color='warning']) {
193
- color: ${Zi};
195
+ color: ${Ni};
194
196
  }
195
- `,md=p.partial`
197
+ `,gd=p.partial`
196
198
  :host([appearance='outline']) {
197
199
  border-color: currentColor;
198
- color: ${Vi};
200
+ color: ${Oi};
199
201
  background-color: initial;
200
202
  }
201
203
 
202
204
  :host([appearance='outline'][color='danger']) {
203
- color: ${Es};
205
+ color: ${Cr};
204
206
  }
205
207
 
206
208
  :host([appearance='outline'][color='important']) {
207
- color: ${ne};
208
- border-color: ${Ze};
209
+ color: ${tt};
210
+ border-color: ${Kt};
209
211
  }
210
212
 
211
213
  :host([appearance='outline'][color='informative']) {
212
- color: ${ne};
213
- border-color: ${ho};
214
+ color: ${tt};
215
+ border-color: ${io};
214
216
  }
215
217
 
216
218
  :host([appearance='outline'][color='severe']) {
217
- color: ${Ls};
219
+ color: ${Pr};
218
220
  }
219
221
 
220
222
  :host([appearance='outline'][color='subtle']) {
221
- color: ${Cs};
223
+ color: ${ur};
222
224
  }
223
225
 
224
226
  :host([appearance='outline'][color='success']) {
225
- color: ${rl};
227
+ color: ${tl};
226
228
  }
227
229
 
228
230
  :host([appearance='outline'][color='warning']) {
229
- color: ${Zi};
231
+ color: ${Ni};
230
232
  }
231
- `,vd=p.partial`
233
+ `,bd=p.partial`
232
234
  :host([appearance='tint']) {
233
- background-color: ${no};
234
- color: ${Ha};
235
- border-color: ${Fs};
235
+ background-color: ${ja};
236
+ color: ${Fa};
237
+ border-color: ${yr};
236
238
  }
237
239
 
238
240
  :host([appearance='tint'][color='danger']) {
239
- background-color: ${Qa};
240
- color: ${As};
241
- border-color: ${Za};
241
+ background-color: ${Ga};
242
+ color: ${wr};
243
+ border-color: ${Xa};
242
244
  }
243
245
 
244
246
  :host([appearance='tint'][color='important']) {
245
- background-color: ${ne};
247
+ background-color: ${tt};
246
248
  color: ${L};
247
- border-color: ${ke};
249
+ border-color: ${Ft};
248
250
  }
249
251
 
250
252
  :host([appearance='tint'][color='informative']) {
251
- background-color: ${Na};
252
- color: ${ne};
253
- border-color: ${ho};
253
+ background-color: ${Ma};
254
+ color: ${tt};
255
+ border-color: ${io};
254
256
  }
255
257
 
256
258
  :host([appearance='tint'][color='severe']) {
257
- background-color: ${nl};
258
- color: ${ll};
259
- border-color: ${al};
259
+ background-color: ${ol};
260
+ color: ${sl};
261
+ border-color: ${il};
260
262
  }
261
263
 
262
264
  :host([appearance='tint'][color='subtle']) {
263
265
  background-color: ${L};
264
- color: ${ne};
265
- border-color: ${ho};
266
+ color: ${tt};
267
+ border-color: ${io};
266
268
  }
267
269
 
268
270
  :host([appearance='tint'][color='success']) {
269
- background-color: ${tl};
270
- color: ${il};
271
- border-color: ${ol};
271
+ background-color: ${Qa};
272
+ color: ${Ja};
273
+ border-color: ${Za};
272
274
  }
273
275
 
274
276
  :host([appearance='tint'][color='warning']) {
275
- background-color: ${cl};
276
- color: ${Zi};
277
- border-color: ${hl};
277
+ background-color: ${rl};
278
+ color: ${Ni};
279
+ border-color: ${al};
278
280
  }
279
281
  `;p.partial`
280
- font-family: ${y};
281
- font-size: ${A};
282
+ font-family: ${x};
283
+ font-size: ${E};
282
284
  line-height: ${R};
283
- font-weight: ${E};
285
+ font-weight: ${M};
284
286
  `,p.partial`
285
- font-family: ${y};
286
- font-size: ${A};
287
+ font-family: ${x};
288
+ font-size: ${E};
287
289
  line-height: ${R};
288
- font-weight: ${H};
290
+ font-weight: ${N};
289
291
  `,p.partial`
290
- font-family: ${y};
291
- font-size: ${A};
292
+ font-family: ${x};
293
+ font-size: ${E};
292
294
  line-height: ${R};
293
- font-weight: ${Yo};
295
+ font-weight: ${qo};
294
296
  `,p.partial`
295
- font-family: ${y};
296
- font-size: ${le};
297
- line-height: ${Ce};
298
- font-weight: ${E};
297
+ font-family: ${x};
298
+ font-size: ${dt};
299
+ line-height: ${wt};
300
+ font-weight: ${M};
299
301
  `,p.partial`
300
- font-family: ${y};
301
- font-size: ${j};
302
- line-height: ${ce};
303
- font-weight: ${E};
302
+ font-family: ${x};
303
+ font-size: ${G};
304
+ line-height: ${ht};
305
+ font-weight: ${M};
304
306
  `,p.partial`
305
- font-family: ${y};
306
- font-size: ${j};
307
- line-height: ${ce};
308
- font-weight: ${H};
307
+ font-family: ${x};
308
+ font-size: ${G};
309
+ line-height: ${ht};
310
+ font-weight: ${N};
309
311
  `,p.partial`
310
- font-family: ${y};
311
- font-size: ${j};
312
- line-height: ${ce};
313
- font-weight: ${Yo};
312
+ font-family: ${x};
313
+ font-size: ${G};
314
+ line-height: ${ht};
315
+ font-weight: ${qo};
314
316
  `,p.partial`
315
- font-family: ${y};
316
- font-size: ${uo};
317
- line-height: ${Qo};
318
- font-weight: ${E};
317
+ font-family: ${x};
318
+ font-size: ${so};
319
+ line-height: ${Wo};
320
+ font-weight: ${M};
319
321
  `,p.partial`
320
- font-family: ${y};
321
- font-size: ${uo};
322
- line-height: ${Qo};
323
- font-weight: ${H};
322
+ font-family: ${x};
323
+ font-size: ${so};
324
+ line-height: ${Wo};
325
+ font-weight: ${N};
324
326
  `,p.partial`
325
- font-family: ${y};
326
- font-size: ${St};
327
- line-height: ${Zo};
328
- font-weight: ${H};
327
+ font-family: ${x};
328
+ font-size: ${ke};
329
+ line-height: ${Go};
330
+ font-weight: ${N};
329
331
  `,p.partial`
330
- font-family: ${y};
331
- font-size: ${le};
332
- line-height: ${Ce};
333
- font-weight: ${H};
332
+ font-family: ${x};
333
+ font-size: ${dt};
334
+ line-height: ${wt};
335
+ font-weight: ${N};
334
336
  `,p.partial`
335
- font-family: ${y};
336
- font-size: ${le};
337
- line-height: ${Ce};
338
- font-weight: ${Yo};
337
+ font-family: ${x};
338
+ font-size: ${dt};
339
+ line-height: ${wt};
340
+ font-weight: ${qo};
339
341
  `,p.partial`
340
- font-family: ${y};
341
- font-size: ${Hs};
342
- line-height: ${Gs};
343
- font-weight: ${H};
342
+ font-family: ${x};
343
+ font-size: ${Ar};
344
+ line-height: ${_r};
345
+ font-weight: ${N};
344
346
  `,p.partial`
345
- font-family: ${y};
346
- font-size: ${Ds};
347
- line-height: ${qs};
348
- font-weight: ${H};
347
+ font-family: ${x};
348
+ font-size: ${Tr};
349
+ line-height: ${Mr};
350
+ font-weight: ${N};
349
351
  `,p.partial`
350
- font-family: ${y};
351
- font-size: ${Ko};
352
- line-height: ${js};
353
- font-weight: ${H};
352
+ font-family: ${x};
353
+ font-size: ${jo};
354
+ line-height: ${Er};
355
+ font-weight: ${N};
354
356
  `,p.partial`
355
- font-family: ${y};
356
- font-size: ${Vs};
357
- line-height: ${Ws};
358
- font-weight: ${H};
357
+ font-family: ${x};
358
+ font-size: ${Or};
359
+ line-height: ${Lr};
360
+ font-weight: ${N};
359
361
  `,p.partial`
360
- font-family: ${y};
361
- font-size: ${Ns};
362
- line-height: ${Xs};
363
- font-weight: ${H};
364
- `;const $d=p`
365
- :host([shape='square']){border-radius:${Ji}}:host([shape='rounded']){border-radius:${I}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${we}}${an}
366
- ${ln}
367
- ${cn}
368
- ${md}
369
- ${vd}
370
- ${nn}
371
- `.withBehaviors($e(p`
372
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function dn(o={}){return v` ${Qe(o)}<slot>${Z(o.defaultContent)}</slot>${Ye(o)} `}const yd=dn(),xd=qt.compose({name:`${b.prefix}-badge`,template:yd,styles:$d});xd.define(b.registry);const si={submit:"submit",reset:"reset",button:"button"};var kd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,G=(o,e,t,i)=>{for(var r=i>1?void 0:i?wd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&kd(e,t,r),r};class O extends S{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==si.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===Zt||e.key===No){this.click();return}return!0}press(){switch(this.type){case si.reset:{this.resetForm();break}case si.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==si.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}O.formAssociated=!0,G([a],O.prototype,"appearance",2),G([a({mode:"boolean"})],O.prototype,"autofocus",2),G([$],O.prototype,"defaultSlottedContent",2),G([a({mode:"boolean"})],O.prototype,"disabled",2),G([a({attribute:"disabled-focusable",mode:"boolean"})],O.prototype,"disabledFocusable",2),G([a({attribute:"formaction"})],O.prototype,"formAction",2),G([a({attribute:"form"})],O.prototype,"formAttribute",2),G([a({attribute:"formenctype"})],O.prototype,"formEnctype",2),G([a({attribute:"formmethod"})],O.prototype,"formMethod",2),G([a({attribute:"formnovalidate",mode:"boolean"})],O.prototype,"formNoValidate",2),G([a({attribute:"formtarget"})],O.prototype,"formTarget",2),G([a({attribute:"icon-only",mode:"boolean"})],O.prototype,"iconOnly",2),G([a],O.prototype,"name",2),G([a],O.prototype,"shape",2),G([a],O.prototype,"size",2),G([a],O.prototype,"type",2),G([a],O.prototype,"value",2),Le(O,Ke);const ni=p`
362
+ font-family: ${x};
363
+ font-size: ${Fr};
364
+ line-height: ${Rr};
365
+ font-weight: ${N};
366
+ `;const md=p`
367
+ :host([shape='square']){border-radius:${ji}}:host([shape='rounded']){border-radius:${F}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${kt}}${Zr}
368
+ ${Jr}
369
+ ${tn}
370
+ ${gd}
371
+ ${bd}
372
+ ${Qr}
373
+ `.withBehaviors(bt(p`
374
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function en(o={}){return v` ${Gt(o)}<slot>${lt(o.defaultContent)}</slot>${Wt(o)} `}const vd=en(),$d=je.compose({name:`${b.prefix}-badge`,template:vd,styles:md});$d.define(b.registry);var yd=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,j=(o,t,e,i)=>{for(var s=i>1?void 0:i?xd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&yd(t,e,s),s};class A extends S{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==Yo.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===Ve||t.key===Fo){this.click();return}return!0}press(){switch(this.type){case Yo.reset:{this.resetForm();break}case Yo.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Yo.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}A.formAssociated=!0,j([a],A.prototype,"appearance",2),j([a({mode:"boolean"})],A.prototype,"autofocus",2),j([$],A.prototype,"defaultSlottedContent",2),j([a({mode:"boolean"})],A.prototype,"disabled",2),j([a({attribute:"disabled-focusable",mode:"boolean"})],A.prototype,"disabledFocusable",2),j([a({attribute:"formaction"})],A.prototype,"formAction",2),j([a({attribute:"form"})],A.prototype,"formAttribute",2),j([a({attribute:"formenctype"})],A.prototype,"formEnctype",2),j([a({attribute:"formmethod"})],A.prototype,"formMethod",2),j([a({attribute:"formnovalidate",mode:"boolean"})],A.prototype,"formNoValidate",2),j([a({attribute:"formtarget"})],A.prototype,"formTarget",2),j([a({attribute:"icon-only",mode:"boolean"})],A.prototype,"iconOnly",2),j([a],A.prototype,"name",2),j([a],A.prototype,"shape",2),j([a],A.prototype,"size",2),j([a],A.prototype,"type",2),j([a],A.prototype,"value",2),Ut(A,qt);function Yi(o={}){return v`<template tabindex="${t=>t.disabled?-1:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Gt(o)}<span class="content" part="content"><slot ${nt("defaultSlottedContent")}></slot></span>${Wt(o)}</template>`}const kd=Yi(),wd=A.compose({name:`${b.prefix}-button`,template:kd,styles:Qo});wd.define(b.registry);const Cd=CSS.supports("selector(:state(g))");function ce(o,t,e){if(!Cd){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}var Sd=Object.defineProperty,Id=Object.getOwnPropertyDescriptor,_t=(o,t,e,i)=>{for(var s=i>1?void 0:i?Id(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Sd(t,e,s),s};class Ct extends S{constructor(){super(),this.disabled=!1,this.initialValue="on",this._checked=this.initialChecked??!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue,this.elementInternals.role="checkbox"}get checked(){return w.track(this,"checked"),this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),ce(this.elementInternals,"checked",t),w.notify(this,"checked")}indeterminateChanged(t,e){this.setAriaChecked(),ce(this.elementInternals,"indeterminate",e)}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return w.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),w.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}setAriaChecked(){this.elementInternals.ariaChecked=this.indeterminate?"mixed":`${this.checked}`}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(!this.disabled)return this.dirtyChecked=!0,this.toggleChecked(),this.$emit("change"),this.$emit("input"),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.checked?this.value:null),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.elementInternals.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.indeterminate=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t={valueMissing:!!this.required&&!this.checked},e=this.validationMessage,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,i)}}toggleChecked(t=!this.checked){this.indeterminate=!1,this.checked=t}}Ct.formAssociated=!0,_t([a({mode:"boolean"})],Ct.prototype,"autofocus",2),_t([a({mode:"boolean"})],Ct.prototype,"disabled",2),_t([a({attribute:"form"})],Ct.prototype,"formAttribute",2),_t([$],Ct.prototype,"indeterminate",2),_t([a({attribute:"checked",mode:"boolean"})],Ct.prototype,"initialChecked",2),_t([a({attribute:"value",mode:"fromView"})],Ct.prototype,"initialValue",2),_t([a],Ct.prototype,"name",2),_t([a({mode:"boolean"})],Ct.prototype,"required",2);class Qi extends Ct{}_t([a],Qi.prototype,"shape",2),_t([a],Qi.prototype,"size",2);const St=p.partial`:is([state--checked], :state(checked))`,Ie=p.partial`:is([state--indeterminate], :state(indeterminate))`,Pd=p`
373
375
  ${T("inline-flex")}
374
376
 
375
- :host{--icon-spacing:${lt};contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${L};color:${_};border:${ee} solid ${Ct};padding:0 ${et};min-width:96px;border-radius:${I};font-size:${A};font-family:${y};font-weight:${H};line-height:${R};transition-duration:${ei};transition-property:background,border,color;transition-timing-function:${oi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${qo};color:${Hi};border-color:${co}}:host(:hover:active){background-color:${Ni};border-color:${Xo};color:${ys};outline-style:none}:host(:focus-visible){border-color:${ke};outline:${nt} solid ${ke};box-shadow:${po},0 0 0 2px ${Ie}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${De};min-height:24px;min-width:64px;padding:0 ${ze};border-radius:${we};font-size:${j};line-height:${ce};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${er};padding:0 ${Ys};font-size:${le};line-height:${Ce}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']),:host([shape='circular']:focus-visible){border-radius:${ae}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${Ji}}:host([appearance='primary']){background-color:${Wo};color:${xe};border-color:transparent}:host([appearance='primary']:hover){background-color:${ji}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${xe}}:host([appearance='primary']:hover:active){background-color:${qi}}:host([appearance='primary']:focus-visible){border-color:${xe};box-shadow:${tr},0 0 0 2px ${Ie}}:host([appearance='outline']){background-color:${J}}:host([appearance='outline']:hover){background-color:${oo}}:host([appearance='outline']:hover:active){background-color:${io}}:host([appearance='subtle']){background-color:${zs};color:${ye};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Go};color:${Jt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${to};color:${eo};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Vt}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Nt}}:host([appearance='transparent']){background-color:${J};color:${ye}}:host([appearance='transparent']:hover){background-color:${oo};color:${Vt}}:host([appearance='transparent']:hover:active){background-color:${io};color:${Nt}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable])),:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover),:host(:is([disabled],[disabled-focusable],[appearance][disabled],[appearance][disabled-focusable]):hover:active){background-color:${jt};border-color:${Re};color:${C};cursor:not-allowed}:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover:active){border-color:transparent}:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover:active){background-color:${J}}:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover:active){background-color:${J};border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover:active){border-color:transparent;background-color:${J}}`.withBehaviors($e(p`
376
- :host([appearance='transparent']:hover){border-color:Highlight}`));function ar(o={}){return v`<template tabindex="${e=>e.disabled?-1:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${Qe(o)}<span class="content" part="content"><slot ${ie("defaultSlottedContent")}></slot></span>${Ye(o)}</template>`}const Cd=ar(),Sd=O.compose({name:`${b.prefix}-button`,template:Cd,styles:ni});Sd.define(b.registry);const Pd=CSS.supports("selector(:state(g))");function ht(o,e,t){if(!Pd){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t=t??!o.states.has(e),t){o.states.add(e);return}o.states.delete(e)}var Id=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,Ve=(o,e,t,i)=>{for(var r=i>1?void 0:i?zd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Id(e,t,r),r};class Be extends S{constructor(){super(),this.disabled=!1,this.initialValue="on",this._checked=this.initialChecked??!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue,this.elementInternals.role="checkbox"}get checked(){return w.track(this,"checked"),this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),ht(this.elementInternals,"checked",e),w.notify(this,"checked")}indeterminateChanged(e,t){this.setAriaChecked(),ht(this.elementInternals,"indeterminate",t)}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return w.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),w.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}setAriaChecked(){this.elementInternals.ariaChecked=this.indeterminate?"mixed":`${this.checked}`}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(!this.disabled)return this.dirtyChecked=!0,this.toggleChecked(),this.$emit("change"),this.$emit("input"),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.checked?this.value:null),this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.elementInternals.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0}keyupHandler(e){if(e.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.indeterminate=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e={valueMissing:!!this.required&&!this.checked},t=this.validationMessage,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t,i)}}toggleChecked(e=!this.checked){this.indeterminate=!1,this.checked=e}}Be.formAssociated=!0,Ve([a({mode:"boolean"})],Be.prototype,"autofocus",2),Ve([a({mode:"boolean"})],Be.prototype,"disabled",2),Ve([a({attribute:"form"})],Be.prototype,"formAttribute",2),Ve([$],Be.prototype,"indeterminate",2),Ve([a({attribute:"checked",mode:"boolean"})],Be.prototype,"initialChecked",2),Ve([a({attribute:"value",mode:"fromView"})],Be.prototype,"initialValue",2),Ve([a],Be.prototype,"name",2),Ve([a({mode:"boolean"})],Be.prototype,"required",2);class lr extends Be{}Ve([a],lr.prototype,"shape",2),Ve([a],lr.prototype,"size",2);const Te=p.partial`:is([state--checked], :state(checked))`,It=p.partial`:is([state--indeterminate], :state(indeterminate))`,Bd=p`
377
- ${T("inline-flex")}
378
-
379
- :host{--size:16px;background-color:${L};border-radius:${we};border:${ee} solid ${Ze};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${ao}}:host(:active){border-color:${lo}}:host(${Te}:hover){background-color:${ro};border-color:${Wi}}:host(${Te}:active){background-color:${so};border-color:${Xi}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${nt} solid ${ke};border-radius:${I}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ie}}.indeterminate-indicator,.checked-indicator{color:${jo};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${Te})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${Te}),:host(${It}){border-color:${Gi}}:host(${Te}),:host(${It}) .indeterminate-indicator{background-color:${wt}}:host(${It}) .indeterminate-indicator{border-radius:${we};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ae}}:host([disabled]),:host([disabled]${Te}){background-color:${jt};border-color:${Re}}:host([disabled]){cursor:unset}:host([disabled]${It}) .indeterminate-indicator{background-color:${Re}}:host([disabled]${Te}) .checked-indicator{color:${Re}}`.withBehaviors($e(p`
380
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${Te}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${Te}),:host(${It}) .indeterminate-indicator{background-color:FieldText}:host(${Te}:not([disabled]):hover),:host(${It}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${It}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${Te}) .checked-indicator{color:GrayText}`)),Td=v.partial(`
377
+ :host{--size:16px;background-color:${L};border-radius:${kt};border:${et} solid ${Kt};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${eo}}:host(:active){border-color:${oo}}:host(${St}:hover){background-color:${Je};border-color:${Hi}}:host(${St}:active){background-color:${to};border-color:${Vi}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${we} solid ${Ft};border-radius:${F}}:host(:not([slot='input']):focus-visible)::after{border-color:${Qt}}.indeterminate-indicator,.checked-indicator{color:${Ro};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${St})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${St}),:host(${Ie}){border-color:${Di}}:host(${St}),:host(${Ie}) .indeterminate-indicator{background-color:${Ze}}:host(${Ie}) .indeterminate-indicator{border-radius:${kt};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${St}){background-color:${Qe};border-color:${Yt}}:host([disabled]){cursor:unset}:host([disabled]${Ie}) .indeterminate-indicator{background-color:${Yt}}:host([disabled]${St}) .checked-indicator{color:${Yt}}`.withBehaviors(bt(p`
378
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${St}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${St}),:host(${Ie}) .indeterminate-indicator{background-color:FieldText}:host(${St}:not([disabled]):hover),:host(${Ie}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ie}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${St}) .checked-indicator{color:GrayText}`)),Bd=v.partial(`
381
379
  <svg
382
380
  fill="currentColor"
383
381
  aria-hidden="true"
@@ -388,23 +386,23 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
388
386
  xmlns="http://www.w3.org/2000/svg">
389
387
  <path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
390
388
  </svg>
391
- `),Fd=v.partial(`
389
+ `),zd=v.partial(`
392
390
  <span class="indeterminate-indicator"></span>
393
- `);function Od(o={}){return v`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${Z(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${Z(o.indeterminateIndicator)}</slot></template>`}const Ad=Od({checkedIndicator:Td,indeterminateIndicator:Fd}),Ed=lr.compose({name:`${b.prefix}-checkbox`,template:Ad,styles:Bd});Ed.define(b.registry);class Md extends O{}const _d=p`
394
- ${ni}
395
-
396
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${A};line-height:${R}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${ye};line-height:100%;font-size:${j};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Jt}}:host(:active) ::slotted([slot='description']){color:${eo}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
397
- ::slotted([slot='description']){color:${xe}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
398
- ::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${ye}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${Vt}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Nt}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
399
- ::slotted([slot='description']){color:${C}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${lt}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${De}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${ze}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${le};line-height:${Ce}}:host([size='large']) ::slotted([slot='description']){font-size:${A}}`;function Ld(o={}){return v`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?-1:0}">${Qe(o)}<span class="content" part="content"><slot ${ie("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Ye(o)}</template>`}const Rd=Ld(),Dd=Md.compose({name:`${b.prefix}-compound-button`,template:Rd,styles:_d});Dd.define(b.registry);var Hd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?Vd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hd(e,t,r),r};class Ne extends S{constructor(){super(...arguments),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}ut([a],Ne.prototype,"appearance",2),ut([a],Ne.prototype,"color",2),ut([a],Ne.prototype,"shape",2),ut([a],Ne.prototype,"size",2),ut([a({converter:pe})],Ne.prototype,"count",2),ut([a({attribute:"overflow-count",converter:pe})],Ne.prototype,"overflowCount",2),ut([a({attribute:"show-zero",mode:"boolean"})],Ne.prototype,"showZero",2),ut([a({mode:"boolean"})],Ne.prototype,"dot",2),Le(Ne,Ke);const Nd=p`
400
- :host([shape='rounded']){border-radius:${I}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${we}}${an}
401
- ${ln}
402
- ${cn}
403
- ${nn}
404
-
405
- :host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function jd(o={}){return dn({defaultContent:v`${e=>e.setCount()}`})}const qd=jd(),Gd=Ne.compose({name:`${b.prefix}-counter-badge`,template:qd,styles:Nd});Gd.define(b.registry);const je={modal:"modal",nonModal:"non-modal",alert:"alert"};var Wd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,ai=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Wd(e,t,r),r};class bo extends S{constructor(){super(...arguments),this.type=je.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){Se.enqueue(()=>{this.emitBeforeToggle(),this.type===je.alert||this.type===je.modal?this.dialog.showModal():this.type===je.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&this.type!==je.alert&&e.target===this.dialog&&this.hide(),!0}}ai([$],bo.prototype,"dialog",2),ai([a({attribute:"aria-describedby"})],bo.prototype,"ariaDescribedby",2),ai([a({attribute:"aria-labelledby"})],bo.prototype,"ariaLabelledby",2),ai([a],bo.prototype,"type",2);const Ud=v`<dialog role="${o=>o.type===je.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===je.modal||o.type===je.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.type===je.alert?e.event.preventDefault():o.hide()}" ${me("dialog")}><slot></slot></dialog>`,Kd=p`
406
- @layer base{:host{--dialog-backdrop:${Xa};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${L};border-radius:${Rs};border:none;box-shadow:${xc};color:${_};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Sc};transition-timing-function:${ir};opacity:0}::backdrop{transition-timing-function:${on}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${or}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors($e(p`
407
- @layer base{dialog{border:${ee} solid ${ke}}}`)),Yd=bo.compose({name:`${b.prefix}-dialog`,template:Ud,styles:Kd});Yd.define(b.registry);var Qd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,Jd=(o,e,t,i)=>{for(var r=i>1?void 0:i?Zd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Qd(e,t,r),r};class hn extends S{constructor(){super(...arguments),this.noTitleAction=!1}}Jd([a({mode:"boolean",attribute:"no-title-action"})],hn.prototype,"noTitleAction",2);const eh=v.partial(`
391
+ `);function Td(o={}){return v`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${lt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${lt(o.indeterminateIndicator)}</slot></template>`}const Ad=Td({checkedIndicator:Bd,indeterminateIndicator:zd}),Od=Qi.compose({name:`${b.prefix}-checkbox`,template:Ad,styles:Pd});Od.define(b.registry);class Fd extends A{}const Ed=p`
392
+ ${Qo}
393
+
394
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${E};line-height:${R}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ot};line-height:100%;font-size:${G};font-weight:${M}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Eo}}:host(:active) ::slotted([slot='description']){color:${Mo}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
395
+ ::slotted([slot='description']){color:${Xt}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
396
+ ::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${Ot}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${_o}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Lo}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
397
+ ::slotted([slot='description']){color:${C}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${Se}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${Zt}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Et}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${dt};line-height:${wt}}:host([size='large']) ::slotted([slot='description']){font-size:${E}}`;function Md(o={}){return v`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?-1:0}">${Gt(o)}<span class="content" part="content"><slot ${nt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Wt(o)}</template>`}const _d=Md(),Ld=Fd.compose({name:`${b.prefix}-compound-button`,template:_d,styles:Ed});Ld.define(b.registry);var Rd=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,de=(o,t,e,i)=>{for(var s=i>1?void 0:i?Dd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Rd(t,e,s),s};class Lt extends S{constructor(){super(...arguments),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}de([a],Lt.prototype,"appearance",2),de([a],Lt.prototype,"color",2),de([a],Lt.prototype,"shape",2),de([a],Lt.prototype,"size",2),de([a({converter:at})],Lt.prototype,"count",2),de([a({attribute:"overflow-count",converter:at})],Lt.prototype,"overflowCount",2),de([a({attribute:"show-zero",mode:"boolean"})],Lt.prototype,"showZero",2),de([a({mode:"boolean"})],Lt.prototype,"dot",2),Ut(Lt,qt);const Hd=p`
398
+ :host([shape='rounded']){border-radius:${F}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${kt}}${Zr}
399
+ ${Jr}
400
+ ${tn}
401
+ ${Qr}
402
+
403
+ :host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Vd(o={}){return en({defaultContent:v`${t=>t.setCount()}`})}const Nd=Vd(),jd=Lt.compose({name:`${b.prefix}-counter-badge`,template:Nd,styles:Hd});jd.define(b.registry);const Rt={modal:"modal",nonModal:"non-modal",alert:"alert"};var qd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,ti=(o,t,e,i)=>{for(var s=i>1?void 0:i?Wd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qd(t,e,s),s};class ao extends S{constructor(){super(...arguments),this.type=Rt.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){vt.enqueue(()=>{this.emitBeforeToggle(),this.type===Rt.alert||this.type===Rt.modal?this.dialog.showModal():this.type===Rt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Rt.alert&&t.target===this.dialog&&this.hide(),!0}}ti([$],ao.prototype,"dialog",2),ti([a({attribute:"aria-describedby"})],ao.prototype,"ariaDescribedby",2),ti([a({attribute:"aria-labelledby"})],ao.prototype,"ariaLabelledby",2),ti([a],ao.prototype,"type",2);const Gd=v`<dialog role="${o=>o.type===Rt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Rt.modal||o.type===Rt.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===Rt.alert?t.event.preventDefault():o.hide()}" ${yt("dialog")}><slot></slot></dialog>`,Ud=p`
404
+ @layer base{:host{--dialog-backdrop:${Va};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${L};border-radius:${zr};border:none;box-shadow:${mc};color:${_};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${kc};transition-timing-function:${Gi};opacity:0}::backdrop{transition-timing-function:${Ur}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Wi}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(bt(p`
405
+ @layer base{dialog{border:${et} solid ${Ft}}}`)),Xd=ao.compose({name:`${b.prefix}-dialog`,template:Gd,styles:Ud});Xd.define(b.registry);var Kd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,Qd=(o,t,e,i)=>{for(var s=i>1?void 0:i?Yd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Kd(t,e,s),s};class on extends S{constructor(){super(...arguments),this.noTitleAction=!1}}Qd([a({mode:"boolean",attribute:"no-title-action"})],on.prototype,"noTitleAction",2);const Zd=v.partial(`
408
406
  <svg
409
407
  fill="currentColor"
410
408
  aria-hidden="true"
@@ -417,85 +415,77 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
417
415
  d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
418
416
  fill="currentColor"
419
417
  ></path>
420
- </svg>`),th=v`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type!==je.nonModal} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${me("defaultTitleAction")}>${eh}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,oh=p`
418
+ </svg>`),Jd=v`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Rt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${yt("defaultTitleAction")}>${Zd}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,th=p`
421
419
  ${T("grid")}
422
420
 
423
- :host{background:${L};box-sizing:border-box;gap:${U};padding:${go} ${kc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${L};color:${_};column-gap:8px;display:flex;font-family:${y};font-size:${St};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${Zo};margin-block-end:calc(${U} * -1);margin-block-start:calc(${go} * -1);padding-block-end:${U};padding-block-start:${go};position:sticky;z-index:1}.content{box-sizing:border-box;color:${_};font-family:${y};font-size:${A};font-weight:${E};line-height:${R};min-height:32px}.actions{box-sizing:border-box;background:${L};display:flex;flex-direction:column;gap:${U};inset-block-end:0;margin-block-end:calc(${go} * -1);padding-block-end:${go};padding-block-start:${Zs};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${U} * -1);padding-block-start:${U}}}`,ih=hn.compose({name:`${b.prefix}-dialog-body`,template:th,styles:oh});ih.define(b.registry);const un={separator:"separator",presentation:"presentation"},rh=re;var sh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,mo=(o,e,t,i)=>{for(var r=i>1?void 0:i?nh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&sh(e,t,r),r};class Gt extends S{constructor(){super(...arguments),this.role=un.separator,this.orientation=rh.horizontal}}mo([a],Gt.prototype,"role",2),mo([a],Gt.prototype,"orientation",2),mo([a({attribute:"align-content"})],Gt.prototype,"alignContent",2),mo([a],Gt.prototype,"appearance",2),mo([a({mode:"boolean"})],Gt.prototype,"inset",2);function ah(){return v`<template role="${o=>o.role}" aria-orientation="${o=>o.role!==un.presentation?o.orientation:void 0}"><slot></slot></template>`}const lh=ah(),ch=p`
421
+ :host{background:${L};box-sizing:border-box;gap:${U};padding:${no} ${$c};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${L};color:${_};column-gap:8px;display:flex;font-family:${x};font-size:${ke};font-weight:${N};inset-block-start:0;justify-content:space-between;line-height:${Go};margin-block-end:calc(${U} * -1);margin-block-start:calc(${no} * -1);padding-block-end:${U};padding-block-start:${no};position:sticky;z-index:1}.content{box-sizing:border-box;color:${_};font-family:${x};font-size:${E};font-weight:${M};line-height:${R};min-height:32px}.actions{box-sizing:border-box;background:${L};display:flex;flex-direction:column;gap:${U};inset-block-end:0;margin-block-end:calc(${no} * -1);padding-block-end:${no};padding-block-start:${jr};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${U} * -1);padding-block-start:${U}}}`,eh=on.compose({name:`${b.prefix}-dialog-body`,template:Jd,styles:th});eh.define(b.registry);const lo={separator:"separator",presentation:"presentation"},oh=Z;var ih=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,co=(o,t,e,i)=>{for(var s=i>1?void 0:i?sh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&ih(t,e,s),s};class qe extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??lo.separator,this.role!==lo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??oh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??lo.separator}`),e===lo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaOrientation=this.role!==lo.presentation?e:null)}}co([a],qe.prototype,"role",2),co([a],qe.prototype,"orientation",2),co([a({attribute:"align-content"})],qe.prototype,"alignContent",2),co([a],qe.prototype,"appearance",2),co([a({mode:"boolean"})],qe.prototype,"inset",2);function rh(){return v`<slot></slot>`}const nh=rh(),ah=p`
424
422
  ${T("flex")}
425
423
 
426
- :host{contain:content}:host::after,:host::before{align-self:center;background:${ho};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${ee}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${ye};font-family:${y};font-size:${j};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${ee};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ct}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${Ts}}:host([appearance='brand']) ::slotted(*){color:${Vi}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ka}}:host([appearance='subtle']) ::slotted(*){color:${ne}}`.withBehaviors($e(p`
427
- :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),dh=Gt.compose({name:`${b.prefix}-divider`,template:lh,styles:ch});dh.define(b.registry);const hh={above:"above",after:"after",before:"before"},k={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,cr=(o,e,t,i)=>{for(var r=i>1?void 0:i?ph(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&uh(e,t,r),r};class li extends S{constructor(){super(...arguments),this.labelPosition=hh.above,this.elementInternals=this.attachInternals()}messageSlotChanged(e,t){if(!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){this.input=t?.[0],this.input&&this.setStates()}changeHandler(e){this.setStates()}clickHandler(e){if(this.isSameNode(e.target)){this.input.focus(),this.input.click();return}return!0}focusinHandler(e){return e.target.matches(":focus-visible")&&ht(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return ht(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if(ht(this.elementInternals,"disabled",!!this.input.disabled),ht(this.elementInternals,"readonly",!!this.input.readOnly),ht(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[e,t]of Object.entries(k))ht(this.elementInternals,t,!!this.input.validity[e])}}}cr([a({attribute:"label-position"})],li.prototype,"labelPosition",2),cr([$],li.prototype,"messageSlot",2),cr([$],li.prototype,"slottedInputs",2);const fh=p.partial`:is([state--disabled], :state(disabled))`,gh=p.partial`:is([state--focus-visible], :state(focus-visible))`,bh=p.partial`:is([state--${k.badInput}], :state(${k.badInput}))`,mh=p.partial`:is([state--${k.customError}], :state(${k.customError}))`,vh=p.partial`:is([state--${k.patternMismatch}], :state(${k.patternMismatch}))`,$h=p.partial`:is([state--${k.rangeOverflow}], :state(${k.rangeOverflow}))`,yh=p.partial`:is([state--${k.rangeUnderflow}], :state(${k.rangeUnderflow}))`,xh=p.partial`:is([state--${k.stepMismatch}], :state(${k.stepMismatch}))`,kh=p.partial`:is([state--${k.tooLong}], :state(${k.tooLong}))`,wh=p.partial`:is([state--${k.tooShort}], :state(${k.tooShort}))`,Ch=p.partial`:is([state--${k.typeMismatch}], :state(${k.typeMismatch}))`,Sh=p.partial`:is([state-${k.valid}], :state(${k.valid}))`,Ph=p.partial`:is([state--${k.valueMissing}], :state(${k.valueMissing}))`,Ih=p`
424
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${io};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${et}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ot};font-family:${x};font-size:${G};font-weight:${M};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical']){flex-direction:column;align-items:center}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${et};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ne}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${$r}}:host([appearance='brand']) ::slotted(*){color:${Oi}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${qa}}:host([appearance='subtle']) ::slotted(*){color:${tt}}`.withBehaviors(bt(p`
425
+ :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),lh=qe.compose({name:`${b.prefix}-divider`,template:nh,styles:ah});lh.define(b.registry);const ch={above:"above",after:"after",before:"before"},k={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Zi=(o,t,e,i)=>{for(var s=i>1?void 0:i?hh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&dh(t,e,s),s};class ei extends S{constructor(){super(...arguments),this.labelPosition=ch.above,this.elementInternals=this.attachInternals()}messageSlotChanged(t,e){if(!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){this.input=e?.[0],this.input&&this.setStates()}changeHandler(t){this.setStates()}clickHandler(t){if(this.isSameNode(t.target)){this.input.focus(),this.input.click();return}return!0}focusinHandler(t){return t.target.matches(":focus-visible")&&ce(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return ce(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if(ce(this.elementInternals,"disabled",!!this.input.disabled),ce(this.elementInternals,"readonly",!!this.input.readOnly),ce(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[t,e]of Object.entries(k))ce(this.elementInternals,e,!!this.input.validity[t])}}}Zi([a({attribute:"label-position"})],ei.prototype,"labelPosition",2),Zi([$],ei.prototype,"messageSlot",2),Zi([$],ei.prototype,"slottedInputs",2);const uh=p.partial`:is([state--disabled], :state(disabled))`,ph=p.partial`:is([state--focus-visible], :state(focus-visible))`,fh=p.partial`:is([state--${k.badInput}], :state(${k.badInput}))`,gh=p.partial`:is([state--${k.customError}], :state(${k.customError}))`,bh=p.partial`:is([state--${k.patternMismatch}], :state(${k.patternMismatch}))`,mh=p.partial`:is([state--${k.rangeOverflow}], :state(${k.rangeOverflow}))`,vh=p.partial`:is([state--${k.rangeUnderflow}], :state(${k.rangeUnderflow}))`,$h=p.partial`:is([state--${k.stepMismatch}], :state(${k.stepMismatch}))`,yh=p.partial`:is([state--${k.tooLong}], :state(${k.tooLong}))`,xh=p.partial`:is([state--${k.tooShort}], :state(${k.tooShort}))`,kh=p.partial`:is([state--${k.typeMismatch}], :state(${k.typeMismatch}))`,wh=p.partial`:is([state-${k.valid}], :state(${k.valid}))`,Ch=p.partial`:is([state--${k.valueMissing}], :state(${k.valueMissing}))`,Sh=p`
428
426
  ${T("inline-grid")}
429
427
 
430
- :host{align-items:center;cursor:pointer;gap:0 ${et};justify-items:start;padding:${U}}:has([slot='message']){color:${_};row-gap:${U}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${et}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Jo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message'}::slotted([slot='label']){cursor:pointer;grid-area:label}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){margin-block-start:${Jo};grid-area:message}:host(${gh}:focus-within){border-radius:${I};outline:${nt} solid ${Ie}}::slotted(label){display:inline-flex;color:${_};cursor:pointer;font-family:${y};font-size:${A};font-weight:${E};line-height:${R};user-select:none}:host([size='small']) ::slotted(label){font-size:${j};line-height:${ce}}:host([size='large']) ::slotted(label){font-size:${le};line-height:${Ce}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${fh}) ::slotted(label){color:${_};cursor:default}::slotted([flag]){display:none}:host(${bh}) ::slotted([flag='${k.badInput}']),:host(${mh}) ::slotted([flag='${k.customError}']),:host(${vh}) ::slotted([flag='${k.patternMismatch}']),:host(${$h}) ::slotted([flag='${k.rangeOverflow}']),:host(${yh}) ::slotted([flag='${k.rangeUnderflow}']),:host(${xh}) ::slotted([flag='${k.stepMismatch}']),:host(${kh}) ::slotted([flag='${k.tooLong}']),:host(${wh}) ::slotted([flag='${k.tooShort}']),:host(${Ch}) ::slotted([flag='${k.typeMismatch}']),:host(${Ph}) ::slotted([flag='${k.valueMissing}']),:host(${Sh}) ::slotted([flag='${k.valid}']){display:block}`,zh=v`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" ${ga({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:xt()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${ie({property:"messageSlot",filter:xt("[flag]")})}></slot></template>`,Bh=li.compose({name:`${b.prefix}-field`,template:zh,styles:Ih,shadowOptions:{delegatesFocus:!0}});Bh.define(b.registry);var Th=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,vo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Th(e,t,r),r};class Wt extends S{}vo([a({mode:"boolean"})],Wt.prototype,"block",2),vo([a({mode:"boolean"})],Wt.prototype,"bordered",2),vo([a({mode:"boolean"})],Wt.prototype,"shadow",2),vo([a],Wt.prototype,"fit",2),vo([a],Wt.prototype,"shape",2);const Oh=v`<slot></slot>`,Ah=p`
431
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${ee} solid ${ho}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${po}}:host([shape='circular']) ::slotted(img){border-radius:${ae}}:host([shape='rounded']) ::slotted(img){border-radius:${I}}`,Eh=Wt.compose({name:`${b.prefix}-image`,template:Oh,styles:Ah});Eh.define(b.registry);var Mh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,ci=(o,e,t,i)=>{for(var r=i>1?void 0:i?_h(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mh(e,t,r),r};class $o extends S{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}ci([a],$o.prototype,"size",2),ci([a],$o.prototype,"weight",2),ci([a({mode:"boolean"})],$o.prototype,"disabled",2),ci([a({mode:"boolean"})],$o.prototype,"required",2);const Lh=p`
428
+ :host{align-items:center;cursor:pointer;gap:0 ${ne};justify-items:start;padding:${U}}:has([slot='message']){color:${_};row-gap:${U}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ne}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Xo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message'}::slotted([slot='label']){cursor:pointer;grid-area:label}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){margin-block-start:${Xo};grid-area:message}:host(${ph}:focus-within){border-radius:${F};outline:${we} solid ${Qt}}::slotted(label){display:inline-flex;color:${_};cursor:pointer;font-family:${x};font-size:${E};font-weight:${M};line-height:${R};user-select:none}:host([size='small']) ::slotted(label){font-size:${G};line-height:${ht}}:host([size='large']) ::slotted(label){font-size:${dt};line-height:${wt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${N}}:host(${uh}) ::slotted(label){color:${_};cursor:default}::slotted([flag]){display:none}:host(${fh}) ::slotted([flag='${k.badInput}']),:host(${gh}) ::slotted([flag='${k.customError}']),:host(${bh}) ::slotted([flag='${k.patternMismatch}']),:host(${mh}) ::slotted([flag='${k.rangeOverflow}']),:host(${vh}) ::slotted([flag='${k.rangeUnderflow}']),:host(${$h}) ::slotted([flag='${k.stepMismatch}']),:host(${yh}) ::slotted([flag='${k.tooLong}']),:host(${xh}) ::slotted([flag='${k.tooShort}']),:host(${kh}) ::slotted([flag='${k.typeMismatch}']),:host(${Ch}) ::slotted([flag='${k.valueMissing}']),:host(${wh}) ::slotted([flag='${k.valid}']){display:block}`,Ih=v`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${aa({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:ye()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${nt({property:"messageSlot",filter:ye("[flag]")})}></slot></template>`,Ph=ei.compose({name:`${b.prefix}-field`,template:Ih,styles:Sh,shadowOptions:{delegatesFocus:!0}});Ph.define(b.registry);var Bh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,ho=(o,t,e,i)=>{for(var s=i>1?void 0:i?zh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Bh(t,e,s),s};class We extends S{}ho([a({mode:"boolean"})],We.prototype,"block",2),ho([a({mode:"boolean"})],We.prototype,"bordered",2),ho([a({mode:"boolean"})],We.prototype,"shadow",2),ho([a],We.prototype,"fit",2),ho([a],We.prototype,"shape",2);const Th=v`<slot></slot>`,Ah=p`
429
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${et} solid ${io}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${Uo}}:host([shape='circular']) ::slotted(img){border-radius:${ct}}:host([shape='rounded']) ::slotted(img){border-radius:${F}}`,Oh=We.compose({name:`${b.prefix}-image`,template:Th,styles:Ah});Oh.define(b.registry);var Fh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,oi=(o,t,e,i)=>{for(var s=i>1?void 0:i?Eh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Fh(t,e,s),s};class uo extends S{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}oi([a],uo.prototype,"size",2),oi([a],uo.prototype,"weight",2),oi([a({mode:"boolean"})],uo.prototype,"disabled",2),oi([a({mode:"boolean"})],uo.prototype,"required",2);const Mh=p`
432
430
  ${T("inline-flex")}
433
431
 
434
- :host{color:${_};cursor:pointer;font-family:${y};font-size:${A};font-weight:${E};line-height:${R};user-select:none}.asterisk{color:${As};margin-inline-start:${De}}:host([size='small']){font-size:${j};line-height:${ce}}:host([size='large']){font-size:${le};line-height:${Ce}}:host([size='large']),:host([weight='semibold']){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${C}}`;function Rh(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Dh=Rh(),Hh=$o.compose({name:`${b.prefix}-label`,template:Dh,styles:Lh});Hh.define(b.registry);class Vh extends O{}const Nh=ar({end:v.partial(`
432
+ :host{color:${_};cursor:pointer;font-family:${x};font-size:${E};font-weight:${M};line-height:${R};user-select:none}.asterisk{color:${wr};margin-inline-start:${Zt}}:host([size='small']){font-size:${G};line-height:${ht}}:host([size='large']){font-size:${dt};line-height:${wt}}:host([size='large']),:host([weight='semibold']){font-weight:${N}}:host([disabled]),:host([disabled]) .asterisk{color:${C}}`;function _h(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Lh=_h(),Rh=uo.compose({name:`${b.prefix}-label`,template:Lh,styles:Mh});Rh.define(b.registry);class Dh extends A{}const Hh=Yi({end:v.partial(`
435
433
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
436
434
  <path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
437
435
  </svg>
438
- `)}),jh=Vh.compose({name:`${b.prefix}-menu-button`,template:Nh,styles:ni});jh.define(b.registry);function di(o){return o.split("-")[1]}function pn(o){return o==="y"?"height":"width"}function zt(o){return o.split("-")[0]}function hi(o){return["top","bottom"].includes(zt(o))?"x":"y"}function fn(o,e,t){let{reference:i,floating:r}=o;const s=i.x+i.width/2-r.width/2,n=i.y+i.height/2-r.height/2,c=hi(e),h=pn(c),d=i[h]/2-r[h]/2,l=c==="x";let u;switch(zt(e)){case"top":u={x:s,y:i.y-r.height};break;case"bottom":u={x:s,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:n};break;case"left":u={x:i.x-r.width,y:n};break;default:u={x:i.x,y:i.y}}switch(di(e)){case"start":u[c]-=d*(t&&l?-1:1);break;case"end":u[c]+=d*(t&&l?-1:1)}return u}const qh=async(o,e,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:n}=t,c=s.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(e));let d=await n.getElementRects({reference:o,floating:e,strategy:r}),{x:l,y:u}=fn(d,i,h),f=i,g={},m=0;for(let x=0;x<c.length;x++){const{name:P,fn:F}=c[x],{x:B,y:V,data:te,reset:oe}=await F({x:l,y:u,initialPlacement:i,placement:f,strategy:r,middlewareData:g,rects:d,platform:n,elements:{reference:o,floating:e}});l=B??l,u=V??u,g={...g,[P]:{...g[P],...te}},oe&&m<=50&&(m++,typeof oe=="object"&&(oe.placement&&(f=oe.placement),oe.rects&&(d=oe.rects===!0?await n.getElementRects({reference:o,floating:e,strategy:r}):oe.rects),{x:l,y:u}=fn(d,f,h)),x=-1)}return{x:l,y:u,placement:f,strategy:r,middlewareData:g}};function Gh(o){return typeof o!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(o):{top:o,right:o,bottom:o,left:o}}function dr(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function yo(o,e){var t;e===void 0&&(e={});const{x:i,y:r,platform:s,rects:n,elements:c,strategy:h}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=e,m=Gh(g),x=c[f?u==="floating"?"reference":"floating":u],P=dr(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(x)))==null||t?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),F=u==="floating"?{...n.floating,x:i,y:r}:n.reference,B=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),V=await(s.isElement==null?void 0:s.isElement(B))&&await(s.getScale==null?void 0:s.getScale(B))||{x:1,y:1},te=dr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:F,offsetParent:B,strategy:h}):F);return{top:(P.top-te.top+m.top)/V.y,bottom:(te.bottom-P.bottom+m.bottom)/V.y,left:(P.left-te.left+m.left)/V.x,right:(te.right-P.right+m.right)/V.x}}const hr=Math.min,Bt=Math.max;function gn(o,e,t){return Bt(o,hr(e,t))}const bn=["top","right","bottom","left"];bn.reduce((o,e)=>o.concat(e,e+"-start",e+"-end"),[]);const Wh={left:"right",right:"left",bottom:"top",top:"bottom"};function ui(o){return o.replace(/left|right|bottom|top/g,e=>Wh[e])}function Xh(o,e,t){t===void 0&&(t=!1);const i=di(o),r=hi(o),s=pn(r);let n=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=ui(n)),{main:n,cross:ui(n)}}const Uh={start:"end",end:"start"};function ur(o){return o.replace(/start|end/g,e=>Uh[e])}const mn=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(e){var t;const{placement:i,middlewareData:r,rects:s,initialPlacement:n,platform:c,elements:h}=e,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=o,P=zt(i),F=zt(n)===n,B=await(c.isRTL==null?void 0:c.isRTL(h.floating)),V=u||(F||!m?[ui(n)]:function(ge){const Xe=ui(ge);return[ur(ge),Xe,ur(Xe)]}(n));u||g==="none"||V.push(...function(ge,Xe,vt,rt){const Ue=di(ge);let be=function(Kt,wi,Wn){const Sr=["left","right"],Pr=["right","left"],Xn=["top","bottom"],Un=["bottom","top"];switch(Kt){case"top":case"bottom":return Wn?wi?Pr:Sr:wi?Sr:Pr;case"left":case"right":return wi?Xn:Un;default:return[]}}(zt(ge),vt==="start",rt);return Ue&&(be=be.map(Kt=>Kt+"-"+Ue),Xe&&(be=be.concat(be.map(ur)))),be}(n,m,g,B));const te=[n,...V],oe=await yo(e,x),mt=[];let it=((t=r.flip)==null?void 0:t.overflows)||[];if(d&&mt.push(oe[P]),l){const{main:ge,cross:Xe}=Xh(i,s,B);mt.push(oe[ge],oe[Xe])}if(it=[...it,{placement:i,overflows:mt}],!mt.every(ge=>ge<=0)){var Ut,wr;const ge=(((Ut=r.flip)==null?void 0:Ut.index)||0)+1,Xe=te[ge];if(Xe)return{data:{index:ge,overflows:it},reset:{placement:Xe}};let vt=(wr=it.filter(rt=>rt.overflows[0]<=0).sort((rt,Ue)=>rt.overflows[1]-Ue.overflows[1])[0])==null?void 0:wr.placement;if(!vt)switch(f){case"bestFit":{var Cr;const rt=(Cr=it.map(Ue=>[Ue.placement,Ue.overflows.filter(be=>be>0).reduce((be,Kt)=>be+Kt,0)]).sort((Ue,be)=>Ue[1]-be[1])[0])==null?void 0:Cr[0];rt&&(vt=rt);break}case"initialPlacement":vt=n}if(i!==vt)return{reset:{placement:vt}}}return{}}}};function vn(o,e){return{top:o.top-e.height,right:o.right-e.width,bottom:o.bottom-e.height,left:o.left-e.width}}function $n(o){return bn.some(e=>o[e]>=0)}const Kh=function(o){return o===void 0&&(o={}),{name:"hide",options:o,async fn(e){const{strategy:t="referenceHidden",...i}=o,{rects:r}=e;switch(t){case"referenceHidden":{const s=vn(await yo(e,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$n(s)}}}case"escaped":{const s=vn(await yo(e,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:s,escaped:$n(s)}}}default:return{}}}}};function Yh(o){return o==="x"?"y":"x"}const Qh=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:n=!1,limiter:c={fn:P=>{let{x:F,y:B}=P;return{x:F,y:B}}},...h}=o,d={x:t,y:i},l=await yo(e,h),u=hi(zt(r)),f=Yh(u);let g=d[u],m=d[f];if(s){const P=u==="y"?"bottom":"right";g=gn(g+l[u==="y"?"top":"left"],g,g-l[P])}if(n){const P=f==="y"?"bottom":"right";m=gn(m+l[f==="y"?"top":"left"],m,m-l[P])}const x=c.fn({...e,[u]:g,[f]:m});return{...x,data:{x:x.x-t,y:x.y-i}}}}},yn=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(e){const{placement:t,rects:i,platform:r,elements:s}=e,{apply:n=()=>{},...c}=o,h=await yo(e,c),d=zt(t),l=di(t),u=hi(t)==="x",{width:f,height:g}=i.floating;let m,x;d==="top"||d==="bottom"?(m=d,x=l===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(x=d,m=l==="end"?"top":"bottom");const P=g-h[m],F=f-h[x];let B=P,V=F;if(u?V=hr(f-h.right-h.left,F):B=hr(g-h.bottom-h.top,P),!e.middlewareData.shift&&!l){const oe=Bt(h.left,0),mt=Bt(h.right,0),it=Bt(h.top,0),Ut=Bt(h.bottom,0);u?V=f-2*(oe!==0||mt!==0?oe+mt:Bt(h.left,h.right)):B=g-2*(it!==0||Ut!==0?it+Ut:Bt(h.top,h.bottom))}await n({...e,availableWidth:V,availableHeight:B});const te=await r.getDimensions(s.floating);return f!==te.width||g!==te.height?{reset:{rects:!0}}:{}}}};function fe(o){var e;return((e=o.ownerDocument)==null?void 0:e.defaultView)||window}function qe(o){return fe(o).getComputedStyle(o)}const xn=Math.min,xo=Math.max,pi=Math.round;function kn(o){const e=qe(o);let t=parseFloat(e.width),i=parseFloat(e.height);const r=o.offsetWidth,s=o.offsetHeight,n=pi(t)!==r||pi(i)!==s;return n&&(t=r,i=s),{width:t,height:i,fallback:n}}function pt(o){return Cn(o)?(o.nodeName||"").toLowerCase():""}let fi;function wn(){if(fi)return fi;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(fi=o.brands.map(e=>e.brand+"/"+e.version).join(" "),fi):navigator.userAgent}function Ge(o){return o instanceof fe(o).HTMLElement}function Fe(o){return o instanceof fe(o).Element}function Cn(o){return o instanceof fe(o).Node}function Sn(o){return typeof ShadowRoot>"u"?!1:o instanceof fe(o).ShadowRoot||o instanceof ShadowRoot}function gi(o){const{overflow:e,overflowX:t,overflowY:i,display:r}=qe(o);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function Zh(o){return["table","td","th"].includes(pt(o))}function pr(o){const e=/firefox/i.test(wn()),t=qe(o),i=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!i&&i!=="none"||e&&t.willChange==="filter"||e&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(r=>t.willChange.includes(r))||["paint","layout","strict","content"].some(r=>{const s=t.contain;return s!=null&&s.includes(r)})}function fr(){return/^((?!chrome|android).)*safari/i.test(wn())}function gr(o){return["html","body","#document"].includes(pt(o))}function Pn(o){return Fe(o)?o:o.contextElement}const In={x:1,y:1};function Xt(o){const e=Pn(o);if(!Ge(e))return In;const t=e.getBoundingClientRect(),{width:i,height:r,fallback:s}=kn(e);let n=(s?pi(t.width):t.width)/i,c=(s?pi(t.height):t.height)/r;return n&&Number.isFinite(n)||(n=1),c&&Number.isFinite(c)||(c=1),{x:n,y:c}}function Tt(o,e,t,i){var r,s;e===void 0&&(e=!1),t===void 0&&(t=!1);const n=o.getBoundingClientRect(),c=Pn(o);let h=In;e&&(i?Fe(i)&&(h=Xt(i)):h=Xt(o));const d=c?fe(c):window,l=fr()&&t;let u=(n.left+(l&&((r=d.visualViewport)==null?void 0:r.offsetLeft)||0))/h.x,f=(n.top+(l&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/h.y,g=n.width/h.x,m=n.height/h.y;if(c){const x=fe(c),P=i&&Fe(i)?fe(i):i;let F=x.frameElement;for(;F&&i&&P!==x;){const B=Xt(F),V=F.getBoundingClientRect(),te=getComputedStyle(F);V.x+=(F.clientLeft+parseFloat(te.paddingLeft))*B.x,V.y+=(F.clientTop+parseFloat(te.paddingTop))*B.y,u*=B.x,f*=B.y,g*=B.x,m*=B.y,u+=V.x,f+=V.y,F=fe(F).frameElement}}return{width:g,height:m,top:f,right:u+g,bottom:f+m,left:u,x:u,y:f}}function ft(o){return((Cn(o)?o.ownerDocument:o.document)||window.document).documentElement}function bi(o){return Fe(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function zn(o){return Tt(ft(o)).left+bi(o).scrollLeft}function ko(o){if(pt(o)==="html")return o;const e=o.assignedSlot||o.parentNode||Sn(o)&&o.host||ft(o);return Sn(e)?e.host:e}function Bn(o){const e=ko(o);return gr(e)?e.ownerDocument.body:Ge(e)&&gi(e)?e:Bn(e)}function wo(o,e){var t;e===void 0&&(e=[]);const i=Bn(o),r=i===((t=o.ownerDocument)==null?void 0:t.body),s=fe(i);return r?e.concat(s,s.visualViewport||[],gi(i)?i:[]):e.concat(i,wo(i))}function Tn(o,e,t){let i;if(e==="viewport")i=function(n,c){const h=fe(n),d=ft(n),l=h.visualViewport;let u=d.clientWidth,f=d.clientHeight,g=0,m=0;if(l){u=l.width,f=l.height;const x=fr();(!x||x&&c==="fixed")&&(g=l.offsetLeft,m=l.offsetTop)}return{width:u,height:f,x:g,y:m}}(o,t);else if(e==="document")i=function(n){const c=ft(n),h=bi(n),d=n.ownerDocument.body,l=xo(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),u=xo(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let f=-h.scrollLeft+zn(n);const g=-h.scrollTop;return qe(d).direction==="rtl"&&(f+=xo(c.clientWidth,d.clientWidth)-l),{width:l,height:u,x:f,y:g}}(ft(o));else if(Fe(e))i=function(n,c){const h=Tt(n,!0,c==="fixed"),d=h.top+n.clientTop,l=h.left+n.clientLeft,u=Ge(n)?Xt(n):{x:1,y:1};return{width:n.clientWidth*u.x,height:n.clientHeight*u.y,x:l*u.x,y:d*u.y}}(e,t);else{const n={...e};if(fr()){var r,s;const c=fe(o);n.x-=((r=c.visualViewport)==null?void 0:r.offsetLeft)||0,n.y-=((s=c.visualViewport)==null?void 0:s.offsetTop)||0}i=n}return dr(i)}function Fn(o,e){return Ge(o)&&qe(o).position!=="fixed"?e?e(o):o.offsetParent:null}function On(o,e){const t=fe(o);let i=Fn(o,e);for(;i&&Zh(i)&&qe(i).position==="static";)i=Fn(i,e);return i&&(pt(i)==="html"||pt(i)==="body"&&qe(i).position==="static"&&!pr(i))?t:i||function(r){let s=ko(r);for(;Ge(s)&&!gr(s);){if(pr(s))return s;s=ko(s)}return null}(o)||t}function Jh(o,e,t){const i=Ge(e),r=ft(e),s=Tt(o,!0,t==="fixed",e);let n={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(i||!i&&t!=="fixed")if((pt(e)!=="body"||gi(r))&&(n=bi(e)),Ge(e)){const h=Tt(e,!0);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else r&&(c.x=zn(r));return{x:s.left+n.scrollLeft-c.x,y:s.top+n.scrollTop-c.y,width:s.width,height:s.height}}const eu={getClippingRect:function(o){let{element:e,boundary:t,rootBoundary:i,strategy:r}=o;const s=t==="clippingAncestors"?function(d,l){const u=l.get(d);if(u)return u;let f=wo(d).filter(P=>Fe(P)&&pt(P)!=="body"),g=null;const m=qe(d).position==="fixed";let x=m?ko(d):d;for(;Fe(x)&&!gr(x);){const P=qe(x),F=pr(x);(m?F||g:F||P.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=P:f=f.filter(B=>B!==x),x=ko(x)}return l.set(d,f),f}(e,this._c):[].concat(t),n=[...s,i],c=n[0],h=n.reduce((d,l)=>{const u=Tn(e,l,r);return d.top=xo(u.top,d.top),d.right=xn(u.right,d.right),d.bottom=xn(u.bottom,d.bottom),d.left=xo(u.left,d.left),d},Tn(e,c,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{rect:e,offsetParent:t,strategy:i}=o;const r=Ge(t),s=ft(t);if(t===s)return e;let n={scrollLeft:0,scrollTop:0},c={x:1,y:1};const h={x:0,y:0};if((r||!r&&i!=="fixed")&&((pt(t)!=="body"||gi(s))&&(n=bi(t)),Ge(t))){const d=Tt(t);c=Xt(t),h.x=d.x+t.clientLeft,h.y=d.y+t.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-n.scrollLeft*c.x+h.x,y:e.y*c.y-n.scrollTop*c.y+h.y}},isElement:Fe,getDimensions:function(o){return Ge(o)?kn(o):o.getBoundingClientRect()},getOffsetParent:On,getDocumentElement:ft,getScale:Xt,async getElementRects(o){let{reference:e,floating:t,strategy:i}=o;const r=this.getOffsetParent||On,s=this.getDimensions;return{reference:Jh(e,await r(t),i),floating:{x:0,y:0,...await s(t)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>qe(o).direction==="rtl"};function An(o,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:n=!0,animationFrame:c=!1}=i,h=r&&!c,d=h||s?[...Fe(o)?wo(o):o.contextElement?wo(o.contextElement):[],...wo(e)]:[];d.forEach(g=>{h&&g.addEventListener("scroll",t,{passive:!0}),s&&g.addEventListener("resize",t)});let l,u=null;if(n){let g=!0;u=new ResizeObserver(()=>{g||t(),g=!1}),Fe(o)&&!c&&u.observe(o),Fe(o)||!o.contextElement||c||u.observe(o.contextElement),u.observe(e)}let f=c?Tt(o):null;return c&&function g(){const m=Tt(o);!f||m.x===f.x&&m.y===f.y&&m.width===f.width&&m.height===f.height||t(),f=m,l=requestAnimationFrame(g)}(),t(),()=>{var g;d.forEach(m=>{h&&m.removeEventListener("scroll",t),s&&m.removeEventListener("resize",t)}),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(l)}}const En=(o,e,t)=>{const i=new Map,r={platform:eu,...t},s={...r.platform,_c:i};return qh(o,e,{...r,platform:s})},de={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};de.menuitem+"",de.menuitemcheckbox+"",de.menuitemradio+"";var tu=Object.defineProperty,ou=Object.getOwnPropertyDescriptor,Ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?ou(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&tu(e,t,r),r};class Oe extends S{constructor(){super(...arguments),this.role=de.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case Zt:case No:return this.invoke(),!1;case Dt:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case ms:if(this.expanded)return this.closeSubMenu(),!1;break;case Rt:if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.closeSubMenu=()=>{this.expanded=!1,this.focus()},this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case de.menuitemcheckbox:this.checked=!this.checked;break;case de.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case de.menuitemradio:this.checked||(this.checked=!0);break}}}expandedChanged(e,t){this.$fastController.isConnected&&(t&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(e,t){t.length&&(this.submenu=t[0],this.updateSubmenu())}disconnectedCallback(){this.cleanup?.(),super.disconnectedCallback()}updateSubmenu(){this.cleanup?.(),!(!this.submenu||!this.expanded)&&Se.enqueue(()=>{this.cleanup=An(this,this.submenuContainer,async()=>{const e=["left-start","right-start"],{x:t,y:i}=await En(this,this.submenuContainer,{middleware:[Qh(),yn({apply:({availableWidth:r,rects:s})=>{r<s.floating.width&&e.push("bottom-end","top-end")}}),mn({fallbackPlacements:e})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${t}px`,position:"fixed",top:`${i}px`}),this.submenuLoaded()})})}}Ft([a({mode:"boolean"})],Oe.prototype,"disabled",2),Ft([a({mode:"boolean"})],Oe.prototype,"expanded",2),Ft([a],Oe.prototype,"role",2),Ft([a({mode:"boolean"})],Oe.prototype,"checked",2),Ft([a({mode:"boolean"})],Oe.prototype,"hidden",2),Ft([$],Oe.prototype,"slottedSubmenu",2),Ft([$],Oe.prototype,"submenu",2),Le(Oe,Ke);const iu=p`
436
+ `)}),Vh=Dh.compose({name:`${b.prefix}-menu-button`,template:Hh,styles:Qo});Vh.define(b.registry);function ii(o){return o.split("-")[1]}function sn(o){return o==="y"?"height":"width"}function Pe(o){return o.split("-")[0]}function si(o){return["top","bottom"].includes(Pe(o))?"x":"y"}function rn(o,t,e){let{reference:i,floating:s}=o;const r=i.x+i.width/2-s.width/2,n=i.y+i.height/2-s.height/2,c=si(t),h=sn(c),d=i[h]/2-s[h]/2,l=c==="x";let u;switch(Pe(t)){case"top":u={x:r,y:i.y-s.height};break;case"bottom":u={x:r,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:n};break;case"left":u={x:i.x-s.width,y:n};break;default:u={x:i.x,y:i.y}}switch(ii(t)){case"start":u[c]-=d*(e&&l?-1:1);break;case"end":u[c]+=d*(e&&l?-1:1)}return u}const Nh=async(o,t,e)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:n}=e,c=r.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(t));let d=await n.getElementRects({reference:o,floating:t,strategy:s}),{x:l,y:u}=rn(d,i,h),f=i,g={},m=0;for(let y=0;y<c.length;y++){const{name:I,fn:z}=c[y],{x:B,y:D,data:Y,reset:Q}=await z({x:l,y:u,initialPlacement:i,placement:f,strategy:s,middlewareData:g,rects:d,platform:n,elements:{reference:o,floating:t}});l=B??l,u=D??u,g={...g,[I]:{...g[I],...Y}},Q&&m<=50&&(m++,typeof Q=="object"&&(Q.placement&&(f=Q.placement),Q.rects&&(d=Q.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:s}):Q.rects),{x:l,y:u}=rn(d,f,h)),y=-1)}return{x:l,y:u,placement:f,strategy:s,middlewareData:g}};function jh(o){return typeof o!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(o):{top:o,right:o,bottom:o,left:o}}function Ji(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function po(o,t){var e;t===void 0&&(t={});const{x:i,y:s,platform:r,rects:n,elements:c,strategy:h}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=t,m=jh(g),y=c[f?u==="floating"?"reference":"floating":u],I=Ji(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(y)))==null||e?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),z=u==="floating"?{...n.floating,x:i,y:s}:n.reference,B=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),D=await(r.isElement==null?void 0:r.isElement(B))&&await(r.getScale==null?void 0:r.getScale(B))||{x:1,y:1},Y=Ji(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:z,offsetParent:B,strategy:h}):z);return{top:(I.top-Y.top+m.top)/D.y,bottom:(Y.bottom-I.bottom+m.bottom)/D.y,left:(I.left-Y.left+m.left)/D.x,right:(Y.right-I.right+m.right)/D.x}}const ts=Math.min,Be=Math.max;function nn(o,t,e){return Be(o,ts(t,e))}const an=["top","right","bottom","left"];an.reduce((o,t)=>o.concat(t,t+"-start",t+"-end"),[]);const qh={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(o){return o.replace(/left|right|bottom|top/g,t=>qh[t])}function Wh(o,t,e){e===void 0&&(e=!1);const i=ii(o),s=si(o),r=sn(s);let n=s==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(n=ri(n)),{main:n,cross:ri(n)}}const Gh={start:"end",end:"start"};function es(o){return o.replace(/start|end/g,t=>Gh[t])}const ln=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e;const{placement:i,middlewareData:s,rects:r,initialPlacement:n,platform:c,elements:h}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=o,I=Pe(i),z=Pe(n)===n,B=await(c.isRTL==null?void 0:c.isRTL(h.floating)),D=u||(z||!m?[ri(n)]:function(pt){const Nt=ri(pt);return[es(pt),Nt,es(Nt)]}(n));u||g==="none"||D.push(...function(pt,Nt,me,ie){const jt=ii(pt);let ft=function(Xe,fi,Ln){const ps=["left","right"],fs=["right","left"],Rn=["top","bottom"],Dn=["bottom","top"];switch(Xe){case"top":case"bottom":return Ln?fi?fs:ps:fi?ps:fs;case"left":case"right":return fi?Rn:Dn;default:return[]}}(Pe(pt),me==="start",ie);return jt&&(ft=ft.map(Xe=>Xe+"-"+jt),Nt&&(ft=ft.concat(ft.map(es)))),ft}(n,m,g,B));const Y=[n,...D],Q=await po(t,y),be=[];let oe=((e=s.flip)==null?void 0:e.overflows)||[];if(d&&be.push(Q[I]),l){const{main:pt,cross:Nt}=Wh(i,r,B);be.push(Q[pt],Q[Nt])}if(oe=[...oe,{placement:i,overflows:be}],!be.every(pt=>pt<=0)){var Ue,hs;const pt=(((Ue=s.flip)==null?void 0:Ue.index)||0)+1,Nt=Y[pt];if(Nt)return{data:{index:pt,overflows:oe},reset:{placement:Nt}};let me=(hs=oe.filter(ie=>ie.overflows[0]<=0).sort((ie,jt)=>ie.overflows[1]-jt.overflows[1])[0])==null?void 0:hs.placement;if(!me)switch(f){case"bestFit":{var us;const ie=(us=oe.map(jt=>[jt.placement,jt.overflows.filter(ft=>ft>0).reduce((ft,Xe)=>ft+Xe,0)]).sort((jt,ft)=>jt[1]-ft[1])[0])==null?void 0:us[0];ie&&(me=ie);break}case"initialPlacement":me=n}if(i!==me)return{reset:{placement:me}}}return{}}}};function cn(o,t){return{top:o.top-t.height,right:o.right-t.width,bottom:o.bottom-t.height,left:o.left-t.width}}function dn(o){return an.some(t=>o[t]>=0)}const Uh=function(o){return o===void 0&&(o={}),{name:"hide",options:o,async fn(t){const{strategy:e="referenceHidden",...i}=o,{rects:s}=t;switch(e){case"referenceHidden":{const r=cn(await po(t,{...i,elementContext:"reference"}),s.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:dn(r)}}}case"escaped":{const r=cn(await po(t,{...i,altBoundary:!0}),s.floating);return{data:{escapedOffsets:r,escaped:dn(r)}}}default:return{}}}}};function Xh(o){return o==="x"?"y":"x"}const Kh=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:s}=t,{mainAxis:r=!0,crossAxis:n=!1,limiter:c={fn:I=>{let{x:z,y:B}=I;return{x:z,y:B}}},...h}=o,d={x:e,y:i},l=await po(t,h),u=si(Pe(s)),f=Xh(u);let g=d[u],m=d[f];if(r){const I=u==="y"?"bottom":"right";g=nn(g+l[u==="y"?"top":"left"],g,g-l[I])}if(n){const I=f==="y"?"bottom":"right";m=nn(m+l[f==="y"?"top":"left"],m,m-l[I])}const y=c.fn({...t,[u]:g,[f]:m});return{...y,data:{x:y.x-e,y:y.y-i}}}}},hn=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){const{placement:e,rects:i,platform:s,elements:r}=t,{apply:n=()=>{},...c}=o,h=await po(t,c),d=Pe(e),l=ii(e),u=si(e)==="x",{width:f,height:g}=i.floating;let m,y;d==="top"||d==="bottom"?(m=d,y=l===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(y=d,m=l==="end"?"top":"bottom");const I=g-h[m],z=f-h[y];let B=I,D=z;if(u?D=ts(f-h.right-h.left,z):B=ts(g-h.bottom-h.top,I),!t.middlewareData.shift&&!l){const Q=Be(h.left,0),be=Be(h.right,0),oe=Be(h.top,0),Ue=Be(h.bottom,0);u?D=f-2*(Q!==0||be!==0?Q+be:Be(h.left,h.right)):B=g-2*(oe!==0||Ue!==0?oe+Ue:Be(h.top,h.bottom))}await n({...t,availableWidth:D,availableHeight:B});const Y=await s.getDimensions(r.floating);return f!==Y.width||g!==Y.height?{reset:{rects:!0}}:{}}}};function ut(o){var t;return((t=o.ownerDocument)==null?void 0:t.defaultView)||window}function Dt(o){return ut(o).getComputedStyle(o)}const un=Math.min,fo=Math.max,ni=Math.round;function pn(o){const t=Dt(o);let e=parseFloat(t.width),i=parseFloat(t.height);const s=o.offsetWidth,r=o.offsetHeight,n=ni(e)!==s||ni(i)!==r;return n&&(e=s,i=r),{width:e,height:i,fallback:n}}function he(o){return gn(o)?(o.nodeName||"").toLowerCase():""}let ai;function fn(){if(ai)return ai;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(ai=o.brands.map(t=>t.brand+"/"+t.version).join(" "),ai):navigator.userAgent}function Ht(o){return o instanceof ut(o).HTMLElement}function It(o){return o instanceof ut(o).Element}function gn(o){return o instanceof ut(o).Node}function bn(o){return typeof ShadowRoot>"u"?!1:o instanceof ut(o).ShadowRoot||o instanceof ShadowRoot}function li(o){const{overflow:t,overflowX:e,overflowY:i,display:s}=Dt(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(s)}function Yh(o){return["table","td","th"].includes(he(o))}function os(o){const t=/firefox/i.test(fn()),e=Dt(o),i=e.backdropFilter||e.WebkitBackdropFilter;return e.transform!=="none"||e.perspective!=="none"||!!i&&i!=="none"||t&&e.willChange==="filter"||t&&!!e.filter&&e.filter!=="none"||["transform","perspective"].some(s=>e.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const r=e.contain;return r!=null&&r.includes(s)})}function is(){return/^((?!chrome|android).)*safari/i.test(fn())}function ss(o){return["html","body","#document"].includes(he(o))}function mn(o){return It(o)?o:o.contextElement}const vn={x:1,y:1};function Ge(o){const t=mn(o);if(!Ht(t))return vn;const e=t.getBoundingClientRect(),{width:i,height:s,fallback:r}=pn(t);let n=(r?ni(e.width):e.width)/i,c=(r?ni(e.height):e.height)/s;return n&&Number.isFinite(n)||(n=1),c&&Number.isFinite(c)||(c=1),{x:n,y:c}}function ze(o,t,e,i){var s,r;t===void 0&&(t=!1),e===void 0&&(e=!1);const n=o.getBoundingClientRect(),c=mn(o);let h=vn;t&&(i?It(i)&&(h=Ge(i)):h=Ge(o));const d=c?ut(c):window,l=is()&&e;let u=(n.left+(l&&((s=d.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,f=(n.top+(l&&((r=d.visualViewport)==null?void 0:r.offsetTop)||0))/h.y,g=n.width/h.x,m=n.height/h.y;if(c){const y=ut(c),I=i&&It(i)?ut(i):i;let z=y.frameElement;for(;z&&i&&I!==y;){const B=Ge(z),D=z.getBoundingClientRect(),Y=getComputedStyle(z);D.x+=(z.clientLeft+parseFloat(Y.paddingLeft))*B.x,D.y+=(z.clientTop+parseFloat(Y.paddingTop))*B.y,u*=B.x,f*=B.y,g*=B.x,m*=B.y,u+=D.x,f+=D.y,z=ut(z).frameElement}}return{width:g,height:m,top:f,right:u+g,bottom:f+m,left:u,x:u,y:f}}function ue(o){return((gn(o)?o.ownerDocument:o.document)||window.document).documentElement}function ci(o){return It(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function $n(o){return ze(ue(o)).left+ci(o).scrollLeft}function go(o){if(he(o)==="html")return o;const t=o.assignedSlot||o.parentNode||bn(o)&&o.host||ue(o);return bn(t)?t.host:t}function yn(o){const t=go(o);return ss(t)?t.ownerDocument.body:Ht(t)&&li(t)?t:yn(t)}function bo(o,t){var e;t===void 0&&(t=[]);const i=yn(o),s=i===((e=o.ownerDocument)==null?void 0:e.body),r=ut(i);return s?t.concat(r,r.visualViewport||[],li(i)?i:[]):t.concat(i,bo(i))}function xn(o,t,e){let i;if(t==="viewport")i=function(n,c){const h=ut(n),d=ue(n),l=h.visualViewport;let u=d.clientWidth,f=d.clientHeight,g=0,m=0;if(l){u=l.width,f=l.height;const y=is();(!y||y&&c==="fixed")&&(g=l.offsetLeft,m=l.offsetTop)}return{width:u,height:f,x:g,y:m}}(o,e);else if(t==="document")i=function(n){const c=ue(n),h=ci(n),d=n.ownerDocument.body,l=fo(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),u=fo(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let f=-h.scrollLeft+$n(n);const g=-h.scrollTop;return Dt(d).direction==="rtl"&&(f+=fo(c.clientWidth,d.clientWidth)-l),{width:l,height:u,x:f,y:g}}(ue(o));else if(It(t))i=function(n,c){const h=ze(n,!0,c==="fixed"),d=h.top+n.clientTop,l=h.left+n.clientLeft,u=Ht(n)?Ge(n):{x:1,y:1};return{width:n.clientWidth*u.x,height:n.clientHeight*u.y,x:l*u.x,y:d*u.y}}(t,e);else{const n={...t};if(is()){var s,r;const c=ut(o);n.x-=((s=c.visualViewport)==null?void 0:s.offsetLeft)||0,n.y-=((r=c.visualViewport)==null?void 0:r.offsetTop)||0}i=n}return Ji(i)}function kn(o,t){return Ht(o)&&Dt(o).position!=="fixed"?t?t(o):o.offsetParent:null}function wn(o,t){const e=ut(o);let i=kn(o,t);for(;i&&Yh(i)&&Dt(i).position==="static";)i=kn(i,t);return i&&(he(i)==="html"||he(i)==="body"&&Dt(i).position==="static"&&!os(i))?e:i||function(s){let r=go(s);for(;Ht(r)&&!ss(r);){if(os(r))return r;r=go(r)}return null}(o)||e}function Qh(o,t,e){const i=Ht(t),s=ue(t),r=ze(o,!0,e==="fixed",t);let n={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(i||!i&&e!=="fixed")if((he(t)!=="body"||li(s))&&(n=ci(t)),Ht(t)){const h=ze(t,!0);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&(c.x=$n(s));return{x:r.left+n.scrollLeft-c.x,y:r.top+n.scrollTop-c.y,width:r.width,height:r.height}}const Zh={getClippingRect:function(o){let{element:t,boundary:e,rootBoundary:i,strategy:s}=o;const r=e==="clippingAncestors"?function(d,l){const u=l.get(d);if(u)return u;let f=bo(d).filter(I=>It(I)&&he(I)!=="body"),g=null;const m=Dt(d).position==="fixed";let y=m?go(d):d;for(;It(y)&&!ss(y);){const I=Dt(y),z=os(y);(m?z||g:z||I.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=I:f=f.filter(B=>B!==y),y=go(y)}return l.set(d,f),f}(t,this._c):[].concat(e),n=[...r,i],c=n[0],h=n.reduce((d,l)=>{const u=xn(t,l,s);return d.top=fo(u.top,d.top),d.right=un(u.right,d.right),d.bottom=un(u.bottom,d.bottom),d.left=fo(u.left,d.left),d},xn(t,c,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(o){let{rect:t,offsetParent:e,strategy:i}=o;const s=Ht(e),r=ue(e);if(e===r)return t;let n={scrollLeft:0,scrollTop:0},c={x:1,y:1};const h={x:0,y:0};if((s||!s&&i!=="fixed")&&((he(e)!=="body"||li(r))&&(n=ci(e)),Ht(e))){const d=ze(e);c=Ge(e),h.x=d.x+e.clientLeft,h.y=d.y+e.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-n.scrollLeft*c.x+h.x,y:t.y*c.y-n.scrollTop*c.y+h.y}},isElement:It,getDimensions:function(o){return Ht(o)?pn(o):o.getBoundingClientRect()},getOffsetParent:wn,getDocumentElement:ue,getScale:Ge,async getElementRects(o){let{reference:t,floating:e,strategy:i}=o;const s=this.getOffsetParent||wn,r=this.getDimensions;return{reference:Qh(t,await s(e),i),floating:{x:0,y:0,...await r(e)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Dt(o).direction==="rtl"};function Cn(o,t,e,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:n=!0,animationFrame:c=!1}=i,h=s&&!c,d=h||r?[...It(o)?bo(o):o.contextElement?bo(o.contextElement):[],...bo(t)]:[];d.forEach(g=>{h&&g.addEventListener("scroll",e,{passive:!0}),r&&g.addEventListener("resize",e)});let l,u=null;if(n){let g=!0;u=new ResizeObserver(()=>{g||e(),g=!1}),It(o)&&!c&&u.observe(o),It(o)||!o.contextElement||c||u.observe(o.contextElement),u.observe(t)}let f=c?ze(o):null;return c&&function g(){const m=ze(o);!f||m.x===f.x&&m.y===f.y&&m.width===f.width&&m.height===f.height||e(),f=m,l=requestAnimationFrame(g)}(),e(),()=>{var g;d.forEach(m=>{h&&m.removeEventListener("scroll",e),r&&m.removeEventListener("resize",e)}),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(l)}}const Sn=(o,t,e)=>{const i=new Map,s={platform:Zh,...e},r={...s.platform,_c:i};return Nh(o,t,{...s,platform:r})},it={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};it.menuitem+"",it.menuitemcheckbox+"",it.menuitemradio+"";var Jh=Object.defineProperty,tu=Object.getOwnPropertyDescriptor,Te=(o,t,e,i)=>{for(var s=i>1?void 0:i?tu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Jh(t,e,s),s};class Pt extends S{constructor(){super(...arguments),this.role=it.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Ve:case Fo:return this.invoke(),!1;case De:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case rr:if(this.expanded)return this.closeSubMenu(),!1;break;case Re:if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.closeSubMenu=()=>{this.expanded=!1,this.focus()},this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case it.menuitemcheckbox:this.checked=!this.checked;break;case it.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case it.menuitemradio:this.checked||(this.checked=!0);break}}}expandedChanged(t,e){this.$fastController.isConnected&&(e&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(t,e){e.length&&(this.submenu=e[0],this.updateSubmenu())}disconnectedCallback(){this.cleanup?.(),super.disconnectedCallback()}updateSubmenu(){this.cleanup?.(),!(!this.submenu||!this.expanded)&&vt.enqueue(()=>{this.cleanup=Cn(this,this.submenuContainer,async()=>{const t=["left-start","right-start"],{x:e,y:i}=await Sn(this,this.submenuContainer,{middleware:[Kh(),hn({apply:({availableWidth:s,rects:r})=>{s<r.floating.width&&t.push("bottom-end","top-end")}}),ln({fallbackPlacements:t})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${e}px`,position:"fixed",top:`${i}px`}),this.submenuLoaded()})})}}Te([a({mode:"boolean"})],Pt.prototype,"disabled",2),Te([a({mode:"boolean"})],Pt.prototype,"expanded",2),Te([a],Pt.prototype,"role",2),Te([a({mode:"boolean"})],Pt.prototype,"checked",2),Te([a({mode:"boolean"})],Pt.prototype,"hidden",2),Te([$],Pt.prototype,"slottedSubmenu",2),Te([$],Pt.prototype,"submenu",2),Ut(Pt,qt);const eu=p`
439
437
  ${T("grid")}
440
438
 
441
- :host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${L};font:${E} ${A} / ${R} ${y};border-radius:${I};color:${ye};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${qo}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}.checkbox,.radio{display:none}.input-container,.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']),:host([checked]) .checkbox,:host([checked]) .radio{display:inline-flex;justify-content:center;align-items:center;color:${ye}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${St};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${ne};font:${E} ${j} / ${ce} ${y};white-space:nowrap;grid-column:4 / span 1;justify-self:flex-end}.expand-collapse-glyph-container{grid-column:4 / span 1;justify-self:flex-end}:host(:hover) .input-container,:host(:hover) .expand-collapse-glyph-container,:host(:hover) .content{color:${Jt}}:host([icon]:hover) ::slotted([slot='start']){color:${ks}}:host(:active){background-color:${Ss}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${eo}}:host(:active) ::slotted([slot='start']){color:${ws}}:host([disabled]){background-color:${jt}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${C}}:host([data-indent]){display:grid}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']){display:grid}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1}:host([data-indent='2'][aria-haspopup='menu']) .expand-collapse-glyph-container{grid-column:5 / span 1}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']) .content,:host([data-indent='1'][role='menuitemradio']) .content{grid-column:auto / span 1}:host([icon]) ::slotted([slot='end']),:host([data-indent='1']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}:host([data-indent='2']){display:grid;grid-template-columns:20px 20px auto auto}:host([data-indent='2']) .content{grid-column:3 / span 1}:host([data-indent='2']) .input-container{grid-column:1 / span 1}:host([data-indent='2']) ::slotted([slot='start']){grid-column:2 / span 1}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){grid-template-columns:20px 20px auto auto 20px}:host([aria-haspopup='menu']) ::slotted([slot='end']){grid-column:3 / span 1;justify-self:flex-end}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}`,Mn=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),ru=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function su(o={}){return v`<template aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}" aria-checked="${e=>e.role!==de.menuitem?e.checked:void 0}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}">${Eo(e=>e.role===de.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${Z(o.checkboxIndicator)}</slot></span></div>`)} ${Eo(e=>e.role===de.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${Z(o.radioIndicator)}</slot></span></div>`)}</div>${Qe(o)}<span class="content" part="content"><slot></slot></span>${Ye(o)} ${Eo(e=>e.hasSubmenu,v`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${Z(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${e=>!e.expanded}" class="submenu-container" part="submenu-container" ${me("submenuContainer")}><slot name="submenu" ${ie({property:"slottedSubmenu",filter:xt("[role='menu']")})}></slot></span></template>`}const nu=su({checkboxIndicator:Mn,expandCollapseGlyph:ru,radioIndicator:Mn}),au=Oe.compose({name:`${b.prefix}-menu-item`,template:nu,styles:iu});au.define(b.registry);var lu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,du=(o,e,t,i)=>{for(var r=i>1?void 0:i?cu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&lu(e,t,r),r};const br=class kr extends S{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&bs(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();const t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changeHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===de.menuitemradio&&(n.checked=!1),c==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===de.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof Oe||bs(e)&&e.getAttribute("role")in kr.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Se.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case Lt:this.setFocus(this.focusIndex+1,1);return;case Ht:this.setFocus(this.focusIndex-1,-1);return;case Ho:this.setFocus(this.menuItems.length-1,-1);return;case Vo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),t.removeEventListener("expanded-changed",this.handleExpandedChanged),w.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==de.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(s=>w.getNotifier(s).subscribe(this,"hidden"));const t=e.filter(s=>!s.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((s,n)=>{s.setAttribute("tabindex",n===0?"0":"-1"),s.addEventListener("expanded-change",this.handleExpandedChanged),s.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement);r?.forEach((s,n)=>{const c=r?.reduce((h,d)=>{const l=kr.elementIndent(d);return Math.max(h,l)},0);s instanceof Oe&&s.setAttribute("data-indent",`${c}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};br.focusableElementRoles=de,du([$],br.prototype,"items",2);let hu=br;const uu=p`
439
+ :host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${L};font:${M} ${E} / ${R} ${x};border-radius:${F};color:${Ot};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${Fi}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}.checkbox,.radio{display:none}.input-container,.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']),:host([checked]) .checkbox,:host([checked]) .radio{display:inline-flex;justify-content:center;align-items:center;color:${Ot}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${ke};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${tt};font:${M} ${G} / ${ht} ${x};white-space:nowrap;grid-column:4 / span 1;justify-self:flex-end}.expand-collapse-glyph-container{grid-column:4 / span 1;justify-self:flex-end}:host(:hover) .input-container,:host(:hover) .expand-collapse-glyph-container,:host(:hover) .content{color:${Eo}}:host([icon]:hover) ::slotted([slot='start']){color:${dr}}:host(:active){background-color:${fr}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${Mo}}:host(:active) ::slotted([slot='start']){color:${hr}}:host([disabled]){background-color:${Qe}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${C}}:host([data-indent]){display:grid}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']){display:grid}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1}:host([data-indent='2'][aria-haspopup='menu']) .expand-collapse-glyph-container{grid-column:5 / span 1}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']) .content,:host([data-indent='1'][role='menuitemradio']) .content{grid-column:auto / span 1}:host([icon]) ::slotted([slot='end']),:host([data-indent='1']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}:host([data-indent='2']){display:grid;grid-template-columns:20px 20px auto auto}:host([data-indent='2']) .content{grid-column:3 / span 1}:host([data-indent='2']) .input-container{grid-column:1 / span 1}:host([data-indent='2']) ::slotted([slot='start']){grid-column:2 / span 1}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){grid-template-columns:20px 20px auto auto 20px}:host([aria-haspopup='menu']) ::slotted([slot='end']){grid-column:3 / span 1;justify-self:flex-end}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}`,In=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),ou=v.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function iu(o={}){return v`<template aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==it.menuitem?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}">${Bi(t=>t.role===it.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${lt(o.checkboxIndicator)}</slot></span></div>`)} ${Bi(t=>t.role===it.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${lt(o.radioIndicator)}</slot></span></div>`)}</div>${Gt(o)}<span class="content" part="content"><slot></slot></span>${Wt(o)} ${Bi(t=>t.hasSubmenu,v`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${lt(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${t=>!t.expanded}" class="submenu-container" part="submenu-container" ${yt("submenuContainer")}><slot name="submenu" ${nt({property:"slottedSubmenu",filter:ye("[role='menu']")})}></slot></span></template>`}const su=iu({checkboxIndicator:In,expandCollapseGlyph:ou,radioIndicator:In}),ru=Pt.compose({name:`${b.prefix}-menu-item`,template:su,styles:eu});ru.define(b.registry);var nu=Object.defineProperty,au=Object.getOwnPropertyDescriptor,lu=(o,t,e,i)=>{for(var s=i>1?void 0:i?au(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&nu(t,e,s),s};const rs=class ds extends S{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&sr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||t.target===null||this.menuItems===void 0||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;if(this.expandedItem!==null&&e===this.expandedItem&&e.expanded===!1){this.expandedItem=null;return}e.expanded&&(this.expandedItem!==null&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changeHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,i=this.menuItems.indexOf(e);if(i!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=i-1;r>=0;--r){const n=this.menuItems[r],c=n.getAttribute("role");if(c===it.menuitemradio&&(n.checked=!1),c==="separator")break}const s=this.menuItems.length-1;for(let r=i+1;r<=s;++r){const n=this.menuItems[r],c=n.getAttribute("role");if(c===it.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=t=>t instanceof Pt||sr(t)&&t.getAttribute("role")in ds.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),vt.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case Le:this.setFocus(this.focusIndex+1,1);return;case He:this.setFocus(this.focusIndex-1,-1);return;case Ao:this.setFocus(this.menuItems.length-1,-1);return;case Oo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),e.removeEventListener("expanded-changed",this.handleExpandedChanged),w.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e&&e!==it.menuitem?i?2:1:i?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(r=>w.getNotifier(r).subscribe(this,"hidden"));const e=t.filter(r=>!r.hasAttribute("hidden"));this.menuItems=e;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((r,n)=>{r.setAttribute("tabindex",n===0?"0":"-1"),r.addEventListener("expanded-change",this.handleExpandedChanged),r.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement);s?.forEach((r,n)=>{const c=s?.reduce((h,d)=>{const l=ds.elementIndent(d);return Math.max(h,l)},0);r instanceof Pt&&r.setAttribute("data-indent",`${c}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}};rs.focusableElementRoles=it,lu([$],rs.prototype,"items",2);let cu=rs;const du=p`
442
440
  ${T("flex")}
443
441
 
444
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${L};border:1px solid ${ke};border-radius:${I};box-shadow:${Us};padding:4px;row-gap:2px}`;function pu(){return v`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${ie("items")}></slot></template>`}const fu=pu(),gu=hu.compose({name:`${b.prefix}-menu-list`,template:fu,styles:uu});gu.define(b.registry);var bu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,Ot=(o,e,t,i)=>{for(var r=i>1?void 0:i?mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bu(e,t,r),r};class gt extends S{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.open=!1,this.slottedMenuList=[],this.slottedTriggers=[],this.toggleMenu=()=>{this.open?this.closeMenu():this.openMenu()},this.closeMenu=()=>{this.open=!1,this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=e=>{this.open=!0,e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.setPositioningTask=()=>{this.setPositioning()},this.handleTriggerKeydown=e=>{if(e.defaultPrevented)return;switch(e.key){case No:case Zt:e.preventDefault(),this.toggleMenu(),this.open&&this.focusMenuList();break;default:return!0}},this.handleDocumentClick=e=>{e&&!e.composedPath().includes(this._menuList)&&!e.composedPath().includes(this._trigger)&&this.closeMenu()}}connectedCallback(){super.connectedCallback(),Se.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.cleanup?.(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this.open}`),this.addListeners())}focusMenuList(){this.open&&this._menuList&&Se.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&Se.enqueue(()=>{this._trigger.focus()})}openChanged(e,t){this.$fastController.isConnected&&this._trigger instanceof HTMLElement&&(this._trigger.setAttribute("aria-expanded",`${this.open}`),this._menuList&&this.open&&Se.enqueue(this.setPositioningTask)),this.cleanup?.(),this.$emit("onOpenChange",{open:t})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}setPositioning(){this.$fastController.isConnected&&this._menuList&&this.open&&this._trigger&&(this.cleanup=An(this,this.positioningContainer,async()=>{const{middlewareData:e,x:t,y:i}=await En(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[mn(),yn({apply:({availableHeight:r,rects:s})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${r}px`,width:`${s.reference.width}px`})}}),Kh()]});if(e.hide?.referenceHidden){this.open=!1;return}this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{position:"fixed",top:"0",left:"0",transform:`translate(${t}px, ${i}px)`})}))}addListeners(){document.addEventListener("click",this.handleDocumentClick),this._trigger?.addEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.addEventListener("click",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){document.removeEventListener("click",this.handleDocumentClick),this._trigger?.removeEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.removeEventListener("click",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?this._trigger?.removeEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("click",this.toggleMenu)}handleMenuKeydown(e){if(e.defaultPrevented)return;switch(e.key){case ms:e.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case wa:this.open&&this.closeMenu(),e.shiftKey&&this.focusTrigger();default:return!0}}}Ot([$,a({attribute:"open-on-hover",mode:"boolean"})],gt.prototype,"openOnHover",2),Ot([$,a({attribute:"open-on-context",mode:"boolean"})],gt.prototype,"openOnContext",2),Ot([$,a({attribute:"close-on-scroll",mode:"boolean"})],gt.prototype,"closeOnScroll",2),Ot([$,a({attribute:"persist-on-item-click",mode:"boolean"})],gt.prototype,"persistOnItemClick",2),Ot([$,a({mode:"boolean"})],gt.prototype,"open",2),Ot([$],gt.prototype,"slottedMenuList",2),Ot([$],gt.prototype,"slottedTriggers",2);const vu=p`
445
- :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function $u(){return v`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.handleMenuKeydown(e.event)}"><slot name="trigger" ${ie({property:"slottedTriggers",filter:xt()})}></slot><span ${me("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${ie({property:"slottedMenuList",filter:xt()})}></slot></span></template>`}const yu=$u(),xu=gt.compose({name:`${b.prefix}-menu`,template:yu,styles:vu});xu.define(b.registry);var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,mi=(o,e,t,i)=>{for(var r=i>1?void 0:i?wu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ku(e,t,r),r};class Co extends S{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,i=typeof this.value=="number"?this.value:0,r=t-e;this.percentComplete=r===0?0:Math.fround((i-e)/r*100)}}mi([a({converter:pe})],Co.prototype,"value",2),mi([a({converter:pe})],Co.prototype,"min",2),mi([a({converter:pe})],Co.prototype,"max",2),mi([$],Co.prototype,"percentComplete",2);var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,mr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Su(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Cu(e,t,r),r};class vi extends Co{constructor(){super(...arguments),this.validationState=null}}mr([a],vi.prototype,"thickness",2),mr([a],vi.prototype,"shape",2),mr([a({attribute:"validation-state"})],vi.prototype,"validationState",2);const Pu=p`
446
- ${T("flex")}
442
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${L};border:1px solid ${Ft};border-radius:${F};box-shadow:${Hr};padding:4px;row-gap:2px}`;function hu(){return v`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${nt("items")}></slot></template>`}const uu=hu(),pu=cu.compose({name:`${b.prefix}-menu-list`,template:uu,styles:du});pu.define(b.registry);var fu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,Ae=(o,t,e,i)=>{for(var s=i>1?void 0:i?gu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&fu(t,e,s),s};class pe extends S{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.open=!1,this.slottedMenuList=[],this.slottedTriggers=[],this.toggleMenu=()=>{this.open?this.closeMenu():this.openMenu()},this.closeMenu=()=>{this.open=!1,this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=t=>{this.open=!0,t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.setPositioningTask=()=>{this.setPositioning()},this.handleTriggerKeydown=t=>{if(t.defaultPrevented)return;switch(t.key){case Fo:case Ve:t.preventDefault(),this.toggleMenu(),this.open&&this.focusMenuList();break;default:return!0}},this.handleDocumentClick=t=>{t&&!t.composedPath().includes(this._menuList)&&!t.composedPath().includes(this._trigger)&&this.closeMenu()}}connectedCallback(){super.connectedCallback(),vt.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.cleanup?.(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this.open}`),this.addListeners())}focusMenuList(){this.open&&this._menuList&&vt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&vt.enqueue(()=>{this._trigger.focus()})}openChanged(t,e){this.$fastController.isConnected&&this._trigger instanceof HTMLElement&&(this._trigger.setAttribute("aria-expanded",`${this.open}`),this._menuList&&this.open&&vt.enqueue(this.setPositioningTask)),this.cleanup?.(),this.$emit("onOpenChange",{open:e})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}setPositioning(){this.$fastController.isConnected&&this._menuList&&this.open&&this._trigger&&(this.cleanup=Cn(this,this.positioningContainer,async()=>{const{middlewareData:t,x:e,y:i}=await Sn(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[ln(),hn({apply:({availableHeight:s,rects:r})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${s}px`,width:`${r.reference.width}px`})}}),Uh()]});if(t.hide?.referenceHidden){this.open=!1;return}this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{position:"fixed",top:"0",left:"0",transform:`translate(${e}px, ${i}px)`})}))}addListeners(){document.addEventListener("click",this.handleDocumentClick),this._trigger?.addEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.addEventListener("click",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){document.removeEventListener("click",this.handleDocumentClick),this._trigger?.removeEventListener("keydown",this.handleTriggerKeydown),this.persistOnItemClick||this._menuList?.removeEventListener("click",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?this._trigger?.removeEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("click",this.toggleMenu)}handleMenuKeydown(t){if(t.defaultPrevented)return;switch(t.key){case rr:t.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case ga:this.open&&this.closeMenu(),t.shiftKey&&this.focusTrigger();default:return!0}}}Ae([$,a({attribute:"open-on-hover",mode:"boolean"})],pe.prototype,"openOnHover",2),Ae([$,a({attribute:"open-on-context",mode:"boolean"})],pe.prototype,"openOnContext",2),Ae([$,a({attribute:"close-on-scroll",mode:"boolean"})],pe.prototype,"closeOnScroll",2),Ae([$,a({attribute:"persist-on-item-click",mode:"boolean"})],pe.prototype,"persistOnItemClick",2),Ae([$,a({mode:"boolean"})],pe.prototype,"open",2),Ae([$],pe.prototype,"slottedMenuList",2),Ae([$],pe.prototype,"slottedTriggers",2);const bu=p`
443
+ :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function mu(){return v`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.handleMenuKeydown(t.event)}"><slot name="trigger" ${nt({property:"slottedTriggers",filter:ye()})}></slot><span ${yt("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${nt({property:"slottedMenuList",filter:ye()})}></slot></span></template>`}const vu=mu(),$u=pe.compose({name:`${b.prefix}-menu`,template:vu,styles:bu});$u.define(b.registry);var yu=Object.defineProperty,xu=Object.getOwnPropertyDescriptor,Oe=(o,t,e,i)=>{for(var s=i>1?void 0:i?xu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&yu(t,e,s),s};class fe extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,i=this.value??0,s=e-t;return s===0?0:Math.fround((i-t)/s*100)}}Oe([a],fe.prototype,"thickness",2),Oe([a],fe.prototype,"shape",2),Oe([a({attribute:"validation-state"})],fe.prototype,"validationState",2),Oe([a({converter:at})],fe.prototype,"value",2),Oe([a({converter:at})],fe.prototype,"min",2),Oe([a({converter:at})],fe.prototype,"max",2),Oe([Nn],fe.prototype,"percentComplete",1);const ku=p`
444
+ ${T("block")}
447
445
 
448
- :host{align-items:center;height:2px;overflow-x:hidden;border-radius:${I};contain:content}:host([thickness='large']),:host([thickness='large']) .progress,:host([thickness='large']) .determinate{height:4px}:host([shape='square']),:host([shape='square']) .progress,:host([shape='square']) .determinate{border-radius:0}:host([validation-state='error']) .determinate{background-color:${Ki}}:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background:linear-gradient(
449
- to right,${Ui} 0%,${Ki} 50%,${Ui}
450
- )}:host([validation-state='warning']) .determinate{background-color:${Qi}}:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2{background:linear-gradient(
451
- to right,${_s} 0%,${Qi} 50%,${_s}
452
- )}:host([validation-state='success']) .determinate{background-color:${Yi}}:host([validation-state='success']) .indeterminate-indicator-1,:host([validation-state='success']) .indeterminate-indicator-2{background:linear-gradient(
453
- to right,${Ms} 0%,${Yi} 50%,${Ms}
454
- )}.progress{background-color:${Is};border-radius:${I};width:100%;height:2px;display:flex;align-items:center;position:relative}.determinate{background-color:${wt};border-radius:${I};height:2px;transition:all 0.2s ease-in-out;display:flex}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background:linear-gradient(
455
- to right,${no} 0%,${wt} 50%,${no}
456
- );border-radius:${I};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 3s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background:linear-gradient(
457
- to right,${no} 0%,${wt} 50%,${no}
458
- );border-radius:${I};animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 3s infinite}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors($e(p`
459
- .progress{background-color:HighlightText}.determinate,:host([validation-state='success']) .determinate,:host([validation-state='warning']) .determinate,:host([validation-state='error']) .determinate,:host([validation-state='success']) ..indeterminate-indicator-1,:host([validation-state='success']) ..indeterminate-indicator-2,:host([validation-state='warning']) .indeterminate-indicator-1,:host([validation-state='warning']) .indeterminate-indicator-2,:host([validation-state='error']) .indeterminate-indicator-1,:host([validation-state='error']) .indeterminate-indicator-2{background-color:Highlight}`));function Iu(o={}){return v`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}">${Eo(e=>typeof e.value=="number",v`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${e=>e.percentComplete}%"></div></div>`,v`<div class="progress" part="progress" slot="indeterminate"><slot name="indeterminate">${Z(o.indeterminateIndicator1)} ${Z(o.indeterminateIndicator2)}</slot></div>`)}</template>`}const zu=Iu({indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>'}),Bu=vi.compose({name:`${b.prefix}-progress-bar`,template:zu,styles:Pu});Bu.define(b.registry);const _n="form-associated-proxy",Ln="ElementInternals",Rn=Ln in window&&"setFormValue"in window[Ln].prototype,Dn=new WeakMap;function Hn(o){const e=class extends o{constructor(...t){super(...t),this.dirtyValue=!1,this.initialValue="",this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return Rn}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,i=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),r=t?i.concat(Array.from(t)):i;return Object.freeze(r)}else return Tr}valueChanged(t,i){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,i){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,i){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Se.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,i){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,i){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Se.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Rn)return null;let t=Dn.get(this);return t||(t=this.attachInternals(),Dn.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,i,r){this.elementInternals?this.elementInternals.setValidity(t,i,r):typeof i=="string"&&this.proxy.setCustomValidity(i)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",_n),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",_n)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,i){this.elementInternals&&this.elementInternals.setFormValue(t,i||t)}_keypressHandler(t){switch(t.key){case Zt:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(t){t.stopPropagation()}};return a({mode:"boolean"})(e.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),a({attribute:"current-value"})(e.prototype,"currentValue"),a(e.prototype,"name"),a({mode:"boolean"})(e.prototype,"required"),$(e.prototype,"value"),e}function Tu(o){class e extends Hn(o){}class t extends e{constructor(...r){super(r),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(r,s){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),r!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(r,s){this.checked=this.currentChecked}updateForm(){const r=this.checked?this.value:null;this.setFormValue(r,r)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:ss})(t.prototype,"currentChecked"),$(t.prototype,"defaultChecked"),$(t.prototype,"checked"),t}class Fu extends S{}class Ou extends Tu(Fu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Au=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Vn=(o,e,t,i)=>{for(var r=i>1?void 0:i?Eu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Au(e,t,r),r};class tt extends Ou{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(e){switch(e.key){case No:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}Vn([$],tt.prototype,"name",2),Vn([$],tt.prototype,"defaultSlottedNodes",2);const Nn=re;var Mu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,bt=(o,e,t,i)=>{for(var r=i>1?void 0:i?_u(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mu(e,t,r),r};class ot extends S{constructor(){super(...arguments),this.stacked=!1,this.orientation=Nn.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach(i=>{i instanceof tt&&i!==t&&(i.checked=!1,this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"))}),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const i=e[t];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.checked=!0,this.selectedRadio=i),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,i=e.target,r=i!==null?t.indexOf(i):0,s=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(s===0&&r===s||s===t.length-1&&s===r)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach(n=>{i instanceof tt&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=e=>{if(this.disabled){e.preventDefault();return}return!0},this.clickHandler=e=>{if(this.disabled)return;e.preventDefault();const t=e.target;t&&t instanceof tt&&(t.checked=!0,t.setAttribute("tabindex","0"),this.selectedRadio=t,this.focusedRadio=t)},this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&i===Dt,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===Rt,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,t,e.key)){this.moveRightOffGroup();return}else i===t.length&&(i=0);for(;i<t.length&&t.length>1;)if(t[i].disabled){if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;if(i+1>=t.length){if(this.isInsideToolbar)break;i=0}else i+=1}else{this.moveToRadioByIndex(t,i);break}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,i=i<0?t.length-1:i,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;i>=0&&t.length>1;)if(t[i].disabled){if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;i-1<0?i=t.length-1:i-=1}else{this.moveToRadioByIndex(t,i);break}},this.keydownHandler=e=>{const t=e.key;if(t in Ca&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(t){case Zt:{this.checkFocusedRadio();break}case Dt:case Lt:{this.direction===ve.ltr?this.moveRight(e):this.moveLeft(e);break}case Rt:case Ht:{this.direction===ve.ltr?this.moveLeft(e):this.moveRight(e);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e instanceof tt&&e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=vs(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e instanceof tt&&e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const e=this.slottedRadioButtons.filter(r=>r.hasAttribute("checked")),t=e?e.length:0;if(t>1){const r=e[t-1];r.checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(r=>{r instanceof tt&&(this.name!==void 0&&r.setAttribute("name",this.name),this.value&&this.value===r.value?(this.selectedRadio=r,this.focusedRadio=r,r.checked=!0,r.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"),r.checked=!1),r.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const r=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),s=r!==null?r.length:0;if(s>0&&!i){const n=r[s-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}bt([a({mode:"boolean"})],ot.prototype,"stacked",2),bt([a({attribute:"readonly",mode:"boolean"})],ot.prototype,"readOnly",2),bt([a({attribute:"disabled",mode:"boolean"})],ot.prototype,"disabled",2),bt([a],ot.prototype,"name",2),bt([a],ot.prototype,"value",2),bt([a],ot.prototype,"orientation",2),bt([$],ot.prototype,"childItems",2),bt([$],ot.prototype,"slottedRadioButtons",2);const Lu=p`
446
+ :host{width:100%;height:2px;overflow-x:hidden;background-color:${Do};border-radius:${F};contain:content}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${ji}}.indicator{background-color:${Ze};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
447
+ to right,${Do} 0%,${xt} 50%,${Do} 100%
448
+ );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${kr}}:host([validation-state='warning']) .indicator{background-color:${Ir}}:host([validation-state='success']) .indicator{background-color:${Sr}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(bt(p`
449
+ :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function wu(){return v`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Cu=wu(),Su=fe.compose({name:`${b.prefix}-progress-bar`,template:Cu,styles:ku});Su.define(b.registry);const Pn="form-associated-proxy",Bn="ElementInternals",zn=Bn in window&&"setFormValue"in window[Bn].prototype,Tn=new WeakMap;function An(o){const t=class extends o{constructor(...e){super(...e),this.dirtyValue=!1,this.initialValue="",this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return zn}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,i=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),s=e?i.concat(Array.from(e)):i;return Object.freeze(s)}else return vs}valueChanged(e,i){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,i){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,i){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),vt.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,i){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,i){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),vt.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!zn)return null;let e=Tn.get(this);return e||(e=this.attachInternals(),Tn.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,i,s){this.elementInternals?this.elementInternals.setValidity(e,i,s):typeof i=="string"&&this.proxy.setCustomValidity(i)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Pn),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Pn)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,i){this.elementInternals&&this.elementInternals.setFormValue(e,i||e)}_keypressHandler(e){switch(e.key){case Ve:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(e){e.stopPropagation()}};return a({mode:"boolean"})(t.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),a({attribute:"current-value"})(t.prototype,"currentValue"),a(t.prototype,"name"),a({mode:"boolean"})(t.prototype,"required"),$(t.prototype,"value"),t}function Iu(o){class t extends An(o){}class e extends t{constructor(...s){super(s),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(s,r){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),s!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(s,r){this.checked=this.currentChecked}updateForm(){const s=this.checked?this.value:null;this.setFormValue(s,s)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:Us})(e.prototype,"currentChecked"),$(e.prototype,"defaultChecked"),$(e.prototype,"checked"),e}class Pu extends S{}class Bu extends Iu(Pu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var zu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,On=(o,t,e,i)=>{for(var s=i>1?void 0:i?Tu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&zu(t,e,s),s};class te extends Bu{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(t){switch(t.key){case Fo:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}On([$],te.prototype,"name",2),On([$],te.prototype,"defaultSlottedNodes",2);const Fn=Z;var Au=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,ge=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ou(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Au(t,e,s),s};class ee extends S{constructor(){super(...arguments),this.stacked=!1,this.orientation=Fn.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(i=>{i instanceof te&&i!==e&&(i.checked=!1,this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.checked=!0,this.selectedRadio=i),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,s=i!==null?e.indexOf(i):0,r=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(r===0&&s===r||r===e.length-1&&r===s)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(n=>{i instanceof te&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=t=>{if(this.disabled){t.preventDefault();return}return!0},this.clickHandler=t=>{if(this.disabled)return;t.preventDefault();const e=t.target;e&&e instanceof te&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&i===De,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===Re,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key)){this.moveRightOffGroup();return}else i===e.length&&(i=0);for(;i<e.length&&e.length>1;)if(e[i].disabled){if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}else{this.moveToRadioByIndex(e,i);break}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key)){this.moveLeftOffGroup();return}for(;i>=0&&e.length>1;)if(e[i].disabled){if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}else{this.moveToRadioByIndex(e,i);break}},this.keydownHandler=t=>{const e=t.key;if(e in ba&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Ve:{this.checkFocusedRadio();break}case De:case Le:{this.direction===gt.ltr?this.moveRight(t):this.moveLeft(t);break}case Re:case He:{this.direction===gt.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t instanceof te&&t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=nr(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof te&&t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),e=t?t.length:0;if(e>1){const s=t[e-1];s.checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(s=>{s instanceof te&&(this.name!==void 0&&s.setAttribute("name",this.name),this.value&&this.value===s.value?(this.selectedRadio=s,this.focusedRadio=s,s.checked=!0,s.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||s.setAttribute("tabindex","-1"),s.checked=!1),s.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const s=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),r=s!==null?s.length:0;if(r>0&&!i){const n=s[r-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ge([a({mode:"boolean"})],ee.prototype,"stacked",2),ge([a({attribute:"readonly",mode:"boolean"})],ee.prototype,"readOnly",2),ge([a({attribute:"disabled",mode:"boolean"})],ee.prototype,"disabled",2),ge([a],ee.prototype,"name",2),ge([a],ee.prototype,"value",2),ge([a],ee.prototype,"orientation",2),ge([$],ee.prototype,"childItems",2),ge([$],ee.prototype,"slottedRadioButtons",2);const Fu=p`
460
450
  ${T("flex")}
461
451
 
462
- :host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}::slotted([slot='label']){color:${_};padding:${U} ${ze} ${U} ${De};font:${E} ${A} / ${R} ${y};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${ze}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${ze};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function Ru(){return v`<template role="radiogroup" tabindex="${o=>o.disabled?-1:void 0}" aria-disabled="${o=>o.disabled}" aria-readonly="${o=>o.readOnly}" aria-orientation="${o=>o.orientation}" @click="${(o,e)=>o.clickHandler(e.event)}" @mousedown="${(o,e)=>o.handleDisabledClick(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @focusout="${(o,e)=>o.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${o=>o.orientation===Nn.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${ie({property:"slottedRadioButtons",filter:xt("[role=radio]")})}></slot></div></template>`}const Du=Ru(),Hu=ot.compose({name:`${b.prefix}-radio-group`,template:Du,styles:Lu});Hu.define(b.registry);const Vu=p`
452
+ :host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}::slotted([slot='label']){color:${_};padding:${U} ${Et} ${U} ${Zt};font:${M} ${E} / ${R} ${x};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${Et}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${Et};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function Eu(){return v`<template role="radiogroup" tabindex="${o=>o.disabled?-1:void 0}" aria-disabled="${o=>o.disabled}" aria-readonly="${o=>o.readOnly}" aria-orientation="${o=>o.orientation}" @click="${(o,t)=>o.clickHandler(t.event)}" @mousedown="${(o,t)=>o.handleDisabledClick(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}" @focusout="${(o,t)=>o.focusOutHandler(t.event)}"><slot name="label"></slot><div class="positioning-region ${o=>o.orientation===Fn.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${nt({property:"slottedRadioButtons",filter:ye("[role=radio]")})}></slot></div></template>`}const Mu=Eu(),_u=ee.compose({name:`${b.prefix}-radio-group`,template:Mu,styles:Fu});_u.define(b.registry);const Lu=p`
463
453
  ${T("inline-grid")}
464
454
 
465
- :host{grid-auto-flow:column;grid-template-columns:max-content;gap:${De};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${ne});padding-inline-end:${ze};--control-border-color:${Ze};--checked-indicator-background-color:${xs};--state-color:${ne}}:host([disabled]){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}.label{cursor:pointer;font-family:${y};font-size:${A};font-weight:${E};line-height:${R}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${Ze});border-radius:${ae};display:flex;height:16px;justify-content:center;margin:${U} ${ze};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${ae};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${ye}}:host(:focus-visible){border-radius:${we};box-shadow:0 0 0 3px ${Ie};outline:1px solid ${Uo}}:host(:hover) .control{border-color:${ao}}:host(:active) .control{border-color:${lo}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${Ze})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${xs})}:host([aria-checked='true']:hover) .control{border-color:${Wi}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${Wi}}:host([aria-checked='true']:active) .control{border-color:${Xi}}:host([aria-checked='true']:active) .checked-indicator{background:${ws}}:host([disabled]){color:${C};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${C}}:host([disabled]) .checked-indicator{background:${C}}`.withBehaviors($e(p`
466
- :host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function Nu(o={}){return v`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" @keypress="${(e,t)=>e.keypressHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${Z(o.checkedIndicator)}</slot></div><label part="label" class="${e=>["label",!e.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${ie({property:"defaultSlottedNodes",filter:$s})}></slot></label></template>`}const ju=Nu({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),qu=tt.compose({name:`${b.prefix}-radio`,template:ju,styles:Vu});qu.define(b.registry);const Gu={singleValue:"single-value"};class Wu extends S{}class Xu extends Hn(Wu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function jn(o,e,t,i){let r=Ri(0,1,(o-e)/(t-e));return i===ve.rtl&&(r=1-r),r}var Uu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Y=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ku(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Uu(e,t,r),r};class W extends Xu{constructor(){super(...arguments),this.direction=ve.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.orientation=re.horizontal,this.mode=Gu.singleValue,this.keypressHandler=e=>{if(!(this.readOnly||this.disabled)){if(e.key===Vo)e.preventDefault(),this.direction!==ve.rtl&&this.orientation!==re.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(e.key===Ho)e.preventDefault(),this.direction!==ve.rtl&&this.orientation!==re.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!e.shiftKey)switch(e.key){case Dt:case Ht:e.preventDefault(),this.increment();break;case Rt:case Lt:e.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),e&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;t("mouseup",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove,{passive:!0}),t("touchmove",this.handleMouseMove,{passive:!0}),t("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.orientation===re.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{if(e===null||!this.disabled&&!this.readOnly){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;if(t("mouseup",this.handleWindowMouseUp),i("mouseleave",this.handleWindowMouseUp),t("mousemove",this.handleMouseMove),e){this.setupTrackConstraints();const r=this.orientation===re.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(r)}`}}}}handleChange(e,t){switch(t){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
467
- :host{--step-rate:${e}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){if(this.$fastController.isConnected){const i=parseFloat(t),r=Ri(this.min,this.max,this.convertToConstrainedValue(i)).toString();if(r!==t){this.value=r;return}super.valueChanged(e,t),this.setThumbPositionForOrientation(this.direction),this.$emit("change")}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=vs(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),w.getNotifier(this).subscribe(this,"max"),w.getNotifier(this).subscribe(this,"min"),w.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),w.getNotifier(this).unsubscribe(this,"max"),w.getNotifier(this).unsubscribe(this,"min"),w.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==ve.rtl&&this.orientation!==re.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),t=this.convertToConstrainedValue(e),i=t<Number(this.max)?`${t}`:`${this.max}`;this.value=i}decrement(){const e=this.direction!==ve.rtl&&this.orientation!==re.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),t=this.convertToConstrainedValue(e),i=t>Number(this.min)?`${t}`:`${this.min}`;this.value=i}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(e){const i=(1-jn(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===re.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${i}%; transition: none;`:`top: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const e=this.stepValue+"",t=this.stepValue%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{const e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}calculateNewValue(e){this.setupTrackConstraints();const t=jn(e,this.orientation===re.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===re.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.min);let t=e-this.min;const i=Math.round(t/this.stepValue),r=t-i*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return t=r>=Number(this.stepValue)/2?t-r+Number(this.stepValue):t-r,t+this.min}}Y([a],W.prototype,"size",2),Y([a({attribute:"readonly",mode:"boolean"})],W.prototype,"readOnly",2),Y([$],W.prototype,"direction",2),Y([$],W.prototype,"isDragging",2),Y([$],W.prototype,"position",2),Y([$],W.prototype,"trackWidth",2),Y([$],W.prototype,"trackMinWidth",2),Y([$],W.prototype,"trackHeight",2),Y([$],W.prototype,"trackLeft",2),Y([$],W.prototype,"trackMinHeight",2),Y([$],W.prototype,"valueTextFormatter",2),Y([a({converter:pe})],W.prototype,"min",2),Y([a({converter:pe})],W.prototype,"max",2),Y([a({converter:pe})],W.prototype,"step",2),Y([a],W.prototype,"orientation",2),Y([a],W.prototype,"mode",2);const Yu=p`
468
- ${T("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${we};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${Ie};outline:1px solid ${Uo}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${Wo};border-radius:${ae};box-shadow:inset 0 0 0 var(--thumb-padding) ${L},0 0 0 1px ${Ct}}.thumb-cursor:hover{background-color:${ro}}.thumb-cursor:active{background-color:${so}}:host([disabled]) .thumb-cursor{background-color:${C};box-shadow:inset 0 0 0 var(--thumb-padding) ${L},0 0 0 1px ${Re}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${Ze};border-radius:${I};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${I};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
455
+ :host{grid-auto-flow:column;grid-template-columns:max-content;gap:${Zt};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${tt});padding-inline-end:${Et};--control-border-color:${Kt};--checked-indicator-background-color:${cr};--state-color:${tt}}:host([disabled]){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}.label{cursor:pointer;font-family:${x};font-size:${E};font-weight:${M};line-height:${R}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${Kt});border-radius:${ct};display:flex;height:16px;justify-content:center;margin:${U} ${Et};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${ct};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${Ot}}:host(:focus-visible){border-radius:${kt};box-shadow:0 0 0 3px ${Qt};outline:1px solid ${No}}:host(:hover) .control{border-color:${eo}}:host(:active) .control{border-color:${oo}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${Kt})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${cr})}:host([aria-checked='true']:hover) .control{border-color:${Hi}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${Hi}}:host([aria-checked='true']:active) .control{border-color:${Vi}}:host([aria-checked='true']:active) .checked-indicator{background:${hr}}:host([disabled]){color:${C};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${C}}:host([disabled]) .checked-indicator{background:${C}}`.withBehaviors(bt(p`
456
+ :host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function Ru(o={}){return v`<template role="radio" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" @keypress="${(t,e)=>t.keypressHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${lt(o.checkedIndicator)}</slot></div><label part="label" class="${t=>["label",!t.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${nt({property:"defaultSlottedNodes",filter:ar})}></slot></label></template>`}const Du=Ru({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),Hu=te.compose({name:`${b.prefix}-radio`,template:Du,styles:Lu});Hu.define(b.registry);const Vu={singleValue:"single-value"};class Nu extends S{}class ju extends An(Nu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function En(o,t,e,i){let s=Ti(0,1,(o-t)/(e-t));return i===gt.rtl&&(s=1-s),s}var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,X=(o,t,e,i)=>{for(var s=i>1?void 0:i?Wu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qu(t,e,s),s};class q extends ju{constructor(){super(...arguments),this.direction=gt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.orientation=Z.horizontal,this.mode=Vu.singleValue,this.keypressHandler=t=>{if(!(this.readOnly||this.disabled)){if(t.key===Oo)t.preventDefault(),this.direction!==gt.rtl&&this.orientation!==Z.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(t.key===Ao)t.preventDefault(),this.direction!==gt.rtl&&this.orientation!==Z.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!t.shiftKey)switch(t.key){case De:case He:t.preventDefault(),this.increment();break;case Re:case Le:t.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),t&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("mouseup",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove,{passive:!0}),e("touchmove",this.handleMouseMove,{passive:!0}),e("touchend",this.handleWindowMouseUp),this.isDragging=t!==null},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===Z.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{if(t===null||!this.disabled&&!this.readOnly){const e=t!==null?window.addEventListener:window.removeEventListener,i=t!==null?document.addEventListener:document.removeEventListener;if(e("mouseup",this.handleWindowMouseUp),i("mouseleave",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove),t){this.setupTrackConstraints();const s=this.orientation===Z.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(s)}`}}}}handleChange(t,e){switch(e){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
457
+ :host{--step-rate:${t}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){if(this.$fastController.isConnected){const i=parseFloat(e),s=Ti(this.min,this.max,this.convertToConstrainedValue(i)).toString();if(s!==e){this.value=s;return}super.valueChanged(t,e),this.setThumbPositionForOrientation(this.direction),this.$emit("change")}}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=nr(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),w.getNotifier(this).subscribe(this,"max"),w.getNotifier(this).subscribe(this,"min"),w.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),w.getNotifier(this).unsubscribe(this,"max"),w.getNotifier(this).unsubscribe(this,"min"),w.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==gt.rtl&&this.orientation!==Z.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?`${e}`:`${this.max}`;this.value=i}decrement(){const t=this.direction!==gt.rtl&&this.orientation!==Z.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?`${e}`:`${this.min}`;this.value=i}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(t){const i=(1-En(Number(this.value),Number(this.min),Number(this.max),t))*100;this.orientation===Z.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${i}%; transition: none;`:`top: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.stepValue+"",e=this.stepValue%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}calculateNewValue(t){this.setupTrackConstraints();const e=En(t,this.orientation===Z.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Z.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)}convertToConstrainedValue(t){isNaN(t)&&(t=this.min);let e=t-this.min;const i=Math.round(e/this.stepValue),s=e-i*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return e=s>=Number(this.stepValue)/2?e-s+Number(this.stepValue):e-s,e+this.min}}X([a],q.prototype,"size",2),X([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),X([$],q.prototype,"direction",2),X([$],q.prototype,"isDragging",2),X([$],q.prototype,"position",2),X([$],q.prototype,"trackWidth",2),X([$],q.prototype,"trackMinWidth",2),X([$],q.prototype,"trackHeight",2),X([$],q.prototype,"trackLeft",2),X([$],q.prototype,"trackMinHeight",2),X([$],q.prototype,"valueTextFormatter",2),X([a({converter:at})],q.prototype,"min",2),X([a({converter:at})],q.prototype,"max",2),X([a({converter:at})],q.prototype,"step",2),X([a],q.prototype,"orientation",2),X([a],q.prototype,"mode",2);const Gu=p`
458
+ ${T("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${kt};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${Qt};outline:1px solid ${No}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${Li};border-radius:${ct};box-shadow:inset 0 0 0 var(--thumb-padding) ${L},0 0 0 1px ${Ne}}.thumb-cursor:hover{background-color:${Je}}.thumb-cursor:active{background-color:${to}}:host([disabled]) .thumb-cursor{background-color:${C};box-shadow:inset 0 0 0 var(--thumb-padding) ${L},0 0 0 1px ${Yt}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${Kt};border-radius:${F};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${F};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
469
459
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${L} calc(var(--step-rate) - 1px),${L} var(--step-rate)
470
- )}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${jt}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${wt};position:absolute;height:100%;left:0;border-radius:${I}}:host([disabled]) .track-start{background-color:${C}}:host(:hover) .track-start{background-color:${ro}}:host([disabled]:hover) .track-start{background-color:${C}}.track-start:active{background-color:${so}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors($e(p`
471
- .track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function Qu(o={}){return v`<template role="slider" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${me("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${e=>e.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${me("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @mousedown="${(e,t)=>e.handleThumbMouseDown(t.event)}" @touchstart="${(e,t)=>e.handleThumbMouseDown(t.event)}"><slot name="thumb">${Z(o.thumb)}</slot></div></div></template>`}const Zu=Qu({thumb:'<div class="thumb-cursor"></div>'}),Ju=W.compose({name:`${b.prefix}-slider`,template:Zu,styles:Yu});Ju.define(b.registry);var ep=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,qn=(o,e,t,i)=>{for(var r=i>1?void 0:i?tp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ep(e,t,r),r};class vr extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}qn([a],vr.prototype,"size",2),qn([a],vr.prototype,"appearance",2);const op=p`
460
+ )}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${Qe}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${Ze};position:absolute;height:100%;left:0;border-radius:${F}}:host([disabled]) .track-start{background-color:${C}}:host(:hover) .track-start{background-color:${Je}}:host([disabled]:hover) .track-start{background-color:${C}}.track-start:active{background-color:${to}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(bt(p`
461
+ .track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function Uu(o={}){return v`<template role="slider" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>t.disabled?!0:void 0}" aria-readonly="${t=>t.readOnly?!0:void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${yt("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${t=>t.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${yt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @mousedown="${(t,e)=>t.handleThumbMouseDown(e.event)}" @touchstart="${(t,e)=>t.handleThumbMouseDown(e.event)}"><slot name="thumb">${lt(o.thumb)}</slot></div></div></template>`}const Xu=Uu({thumb:'<div class="thumb-cursor"></div>'}),Ku=q.compose({name:`${b.prefix}-slider`,template:Xu,styles:Gu});Ku.define(b.registry);var Yu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,Mn=(o,t,e,i)=>{for(var s=i>1?void 0:i?Qu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Yu(t,e,s),s};class ns extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}Mn([a],ns.prototype,"size",2),Mn([a],ns.prototype,"appearance",2);const Zu=p`
472
462
  ${T("flex")}
473
463
 
474
- :host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${Fs};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${Ts};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indicator{stroke:${Ya}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`,ip=v`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,rp=vr.compose({name:`${b.prefix}-spinner`,template:ip,styles:op});rp.define(b.registry);class sp extends Be{}function np(o={}){return v`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${Z(o.switch)}</slot></template>`}const ap=np({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),he=p.partial`:is([state--checked], :state(checked))`,lp=p`
464
+ :host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host([size='tiny']){height:20px;width:20px}:host([size='extra-small']){height:24px;width:24px}:host([size='small']){height:28px;width:28px}:host([size='large']){height:36px;width:36px}:host([size='extra-large']){height:40px;width:40px}:host([size='huge']){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${yr};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${$r};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host([appearance='inverted']) .indicator{stroke:${Wa}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`,Ju=v`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,tp=ns.compose({name:`${b.prefix}-spinner`,template:Ju,styles:Zu});tp.define(b.registry);class ep extends Ct{}function op(o={}){return v`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${lt(o.switch)}</slot></template>`}const ip=op({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),st=p.partial`:is([state--checked], :state(checked))`,sp=p`
475
465
  ${T("inline-flex")}
476
466
 
477
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${Pt};width:40px;height:20px;background-color:${J};border:1px solid ${Ze};border-radius:${ae};cursor:pointer}:host(:hover){background:none;border-color:${ao}}:host(:active){border-color:${lo}}:host(:disabled),:host([readonly]){border:1px solid ${Re};background-color:none;pointer:default}:host(${he}){background:${wt};border-color:${wt}}:host(${he}:hover){background:${ro};border-color:${ro}}:host(${he}:active){background:${so};border-color:${so}}:host(${he}:disabled){background:${jt};border-color:${Re}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ne};transition-duration:${Js};transition-timing-function:${oi};transition-property:margin-inline-start}:host(${he}) .checked-indicator{background-color:${jo};margin-inline-start:calc(100% - 14px)}:host(${he}:hover) .checked-indicator{background:${Ra}}:host(${he}:active) .checked-indicator{background:${Da}}:host(:hover) .checked-indicator{background-color:${Ma}}:host(:active) .checked-indicator{background-color:${_a}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${C}}:host(${he}:disabled) .checked-indicator{background:${C}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${ke};outline:${nt} solid ${ke};box-shadow:${po},0 0 0 2px ${Ie}}`.withBehaviors($e(p`
478
- :host{border-color:InactiveBorder}:host(${he}),:host(${he}:active),:host(${he}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${he}) .checked-indicator,:host(${he}:hover) .checked-indicator,:host(${he}:active) .checked-indicator{background-color:ButtonFace}`)),cp=sp.compose({name:`${b.prefix}-switch`,template:ap,styles:lp});cp.define(b.registry);class dp extends S{}function hp(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const up=hp(),pp=p`
467
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${Ce};width:40px;height:20px;background-color:${xt};border:1px solid ${Kt};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${eo}}:host(:active){border-color:${oo}}:host(:disabled),:host([readonly]){border:1px solid ${Yt};background-color:none;pointer:default}:host(${st}){background:${Ze};border-color:${Ze}}:host(${st}:hover){background:${Je};border-color:${Je}}:host(${st}:active){background:${to};border-color:${to}}:host(${st}:disabled){background:${Qe};border-color:${Yt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${tt};transition-duration:${qr};transition-timing-function:${Ui};transition-property:margin-inline-start}:host(${st}) .checked-indicator{background-color:${Ro};margin-inline-start:calc(100% - 14px)}:host(${st}:hover) .checked-indicator{background:${Aa}}:host(${st}:active) .checked-indicator{background:${Oa}}:host(:hover) .checked-indicator{background-color:${Ba}}:host(:active) .checked-indicator{background-color:${za}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${C}}:host(${st}:disabled) .checked-indicator{background:${C}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${Ft};outline:${we} solid ${Ft};box-shadow:${Uo},0 0 0 2px ${Qt}}`.withBehaviors(bt(p`
468
+ :host{border-color:InactiveBorder}:host(${st}),:host(${st}:active),:host(${st}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${st}) .checked-indicator,:host(${st}:hover) .checked-indicator,:host(${st}:active) .checked-indicator{background-color:ButtonFace}`)),rp=ep.compose({name:`${b.prefix}-switch`,template:ip,styles:sp});rp.define(b.registry);class np extends S{}function ap(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const lp=ap(),cp=p`
479
469
  ${T("block")}
480
470
 
481
- :host{box-sizing:border-box;padding:${et} ${Je}}`,fp=dp.compose({name:`${b.prefix}-tab-panel`,template:up,styles:pp});fp.define(b.registry);var gp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,mp=(o,e,t,i)=>{for(var r=i>1?void 0:i?bp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gp(e,t,r),r};class $r extends S{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
482
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}mp([a({mode:"boolean"})],$r.prototype,"disabled",2),Le($r,Ke);function vp(o={}){return v`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${Qe(o)}<span class="tab-content"><slot></slot></span>${Ye(o)}</template>`}const $p=vp({}),yp=p`
471
+ :host{box-sizing:border-box;padding:${ne} ${Jt}}`,dp=np.compose({name:`${b.prefix}-tab-panel`,template:lp,styles:cp});dp.define(b.registry);var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,pp=(o,t,e,i)=>{for(var s=i>1?void 0:i?up(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&hp(t,e,s),s};class as extends S{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
472
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}pp([a({mode:"boolean"})],as.prototype,"disabled",2),Ut(as,qt);function fp(o={}){return v`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Gt(o)}<span class="tab-content"><slot></slot></span>${Wt(o)}</template>`}const gp=fp({}),bp=p`
483
473
  ${T("inline-flex")}
484
474
 
485
- :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${R};font-family:${y};font-size:${A};color:${ye};fill:currentcolor;grid-row:1;padding:${et} ${Je};border-radius:${I}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${R};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${Gi};border-radius:${ae};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${co};border-radius:${ae};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${C}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${C};color:${C}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${we};box-shadow:0 0 0 3px ${Ie};outline:1px solid ${Uo}}`.withBehaviors($e(p`
486
- :host([aria-selected='true'])::after{background-color:Highlight}`)),xp=$r.compose({name:`${b.prefix}-tab`,template:$p,styles:yp});xp.define(b.registry);const kp={subtle:"subtle",transparent:"transparent"},$i=re;var wp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,At=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wp(e,t,r),r};class So extends S{constructor(){super(...arguments),this.orientation=$i.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case Rt:e.preventDefault(),this.adjustBackward(e);break;case Dt:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case Ht:e.preventDefault(),this.adjustBackward(e);break;case Lt:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case Vo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Ho:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((r,s)=>{if(r.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(r),c=this.tabIds[s],h=this.tabpanelIds[s];r.setAttribute("id",c),r.setAttribute("aria-selected",n?"true":"false"),r.setAttribute("aria-controls",h),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=r,this.activeid=c)}r.style[e]="",r.style[t]="",r.style[i]=`${s+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Di()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Di()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===$i.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),r=Ri(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}At([a],So.prototype,"orientation",2),At([a],So.prototype,"activeid",2),At([$],So.prototype,"tabs",2),At([$],So.prototype,"tabpanels",2);class Po extends So{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=kp.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===$i.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===$i.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
475
+ :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${R};font-family:${x};font-size:${E};color:${Ot};fill:currentcolor;grid-row:1;padding:${ne} ${Jt};border-radius:${F}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${N}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${R};font-weight:${N}}:host([aria-selected='true'])::after{background-color:${Di};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Vo};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${C}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${C};color:${C}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${kt};box-shadow:0 0 0 3px ${Qt};outline:1px solid ${No}}`.withBehaviors(bt(p`
476
+ :host([aria-selected='true'])::after{background-color:Highlight}`)),mp=as.compose({name:`${b.prefix}-tab`,template:gp,styles:bp});mp.define(b.registry);const vp={subtle:"subtle",transparent:"transparent"},di=Z;var $p=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,Fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?yp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&$p(t,e,s),s};class mo extends S{constructor(){super(...arguments),this.orientation=di.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Re:t.preventDefault(),this.adjustBackward(t);break;case De:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case He:t.preventDefault(),this.adjustBackward(t);break;case Le:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Oo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Ao:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",i=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((s,r)=>{if(s.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(s),c=this.tabIds[r],h=this.tabpanelIds[r];s.setAttribute("id",c),s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("aria-controls",h),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=s,this.activeid=c)}s.style[t]="",s.style[e]="",s.style[i]=`${r+1}`,this.isHorizontal()?s.classList.remove("vertical"):s.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],s=this.tabpanelIds[e];t.setAttribute("id",s),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${Ai()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${Ai()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===di.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),i=e.indexOf(this.activetab),s=Ti(0,e.length-1,i+t),r=this.tabs.indexOf(e[s]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else{if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}}adjustBackward(t){const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;)if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}else i-1<0?i=e.length-1:i-=1}moveToTabByIndex(t,e){const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Fe([a],mo.prototype,"orientation",2),Fe([a],mo.prototype,"activeid",2),Fe([$],mo.prototype,"tabs",2),Fe([$],mo.prototype,"tabpanels",2);class vo extends mo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=vp.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===di.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===di.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
487
477
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
488
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}At([a],Po.prototype,"appearance",2),At([a({mode:"boolean"})],Po.prototype,"disabled",2),At([a],Po.prototype,"size",2),Le(Po,Ke);function Sp(o={}){return v` ${Qe(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${ie("tabs")}></slot></div>${Ye(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${ie("tabpanels")}></slot></div>`}const Pp=Sp({}),Ip=p`
478
+ :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}Fe([a],vo.prototype,"appearance",2),Fe([a({mode:"boolean"})],vo.prototype,"disabled",2),Fe([a],vo.prototype,"size",2),Ut(vo,qt);function xp(o={}){return v` ${Gt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${nt("tabs")}></slot></div>${Wt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${nt("tabpanels")}></slot></div>`}const kp=xp({}),wp=p`
489
479
  ${T("grid")}
490
480
 
491
- :host{box-sizing:border-box;font-family:${y};font-size:${A};line-height:${R};color:${ye};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${C}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${C}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${I}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${C}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Go};color:${Hi};fill:${ks}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${to};fill:${to};color:${_}}:host([size='small']) ::slotted(fluent-tab){font-size:${A};line-height:${R};padding:${fo} ${lt}}:host([size='large']) ::slotted(fluent-tab){font-size:${le};line-height:${Ce};padding:${Zs} ${Je}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Pc};transition-timing-function:${tn}}:host ::slotted(fluent-tab)::after{height:${at};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${at};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${at};border-radius:${ae};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${at};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${at};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${at}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${fo};padding-bottom:${fo}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Jo};padding-bottom:${Jo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${U};padding-bottom:${U}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${lt};left:${lt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Je};left:${Je}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Je};left:${Je}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${fo};bottom:${fo}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${U};bottom:${U}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Qs};bottom:${Qs}}`,zp=Po.compose({name:`${b.prefix}-tabs`,template:Pp,styles:Ip});zp.define(b.registry);const Bp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Tp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Fp=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,M=(o,e,t,i)=>{for(var r=i>1?void 0:i?Op(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fp(e,t,r),r};class z extends S{constructor(){super(...arguments),this.type=Bp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return w.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.control.value=e,this.setFormValue(e),this.setValidity(),w.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){this.isSameNode(e.target)&&this.control?.click()}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){this.control?.focus()}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>Tp.includes(r.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e=this.control.validity,t=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e,t,i)}}}z.formAssociated=!0,M([a],z.prototype,"appearance",2),M([a],z.prototype,"autocomplete",2),M([a({mode:"boolean"})],z.prototype,"autofocus",2),M([a({attribute:"control-size"})],z.prototype,"controlSize",2),M([$],z.prototype,"defaultSlottedNodes",2),M([a],z.prototype,"dirname",2),M([a({mode:"boolean"})],z.prototype,"disabled",2),M([a({attribute:"form"})],z.prototype,"formAttribute",2),M([a({attribute:"value",mode:"fromView"})],z.prototype,"initialValue",2),M([a],z.prototype,"list",2),M([a({converter:pe})],z.prototype,"maxlength",2),M([a({converter:pe})],z.prototype,"minlength",2),M([a({mode:"boolean"})],z.prototype,"multiple",2),M([a],z.prototype,"name",2),M([a],z.prototype,"pattern",2),M([a],z.prototype,"placeholder",2),M([a({attribute:"readonly",mode:"boolean"})],z.prototype,"readOnly",2),M([a({mode:"boolean"})],z.prototype,"required",2),M([a({converter:pe})],z.prototype,"size",2),M([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],z.prototype,"spellcheck",2),M([a],z.prototype,"type",2),M([$],z.prototype,"controlLabel",2),Le(z,Ke);const Ap=p`
481
+ :host{box-sizing:border-box;font-family:${x};font-size:${E};line-height:${R};color:${Ot};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${C}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${C}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${F}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${C}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Ei};color:${lr};fill:${dr}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Ho};fill:${Ho};color:${_}}:host([size='small']) ::slotted(fluent-tab){font-size:${E};line-height:${R};padding:${ro} ${Se}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${wt};padding:${jr} ${Jt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${wc};transition-timing-function:${Gr}}:host ::slotted(fluent-tab)::after{height:${re};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${re};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${re};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${re};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${re};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${re}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${ro};padding-bottom:${ro}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Xo};padding-bottom:${Xo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${U};padding-bottom:${U}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Se};left:${Se}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Jt};left:${Jt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Jt};left:${Jt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${ro};bottom:${ro}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${U};bottom:${U}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Nr};bottom:${Nr}}`,Cp=vo.compose({name:`${b.prefix}-tabs`,template:kp,styles:wp});Cp.define(b.registry);const Sp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Ip=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Pp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,O=(o,t,e,i)=>{for(var s=i>1?void 0:i?Bp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Pp(t,e,s),s};class P extends S{constructor(){super(...arguments),this.type=Sp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return w.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),w.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){this.isSameNode(t.target)&&this.control?.click()}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){this.control?.focus()}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const t=[...this.elementInternals.form.elements],e=t.find(s=>s.getAttribute("type")==="submit");if(e){e.click();return}t.filter(s=>Ip.includes(s.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,i)}}}P.formAssociated=!0,O([a],P.prototype,"appearance",2),O([a],P.prototype,"autocomplete",2),O([a({mode:"boolean"})],P.prototype,"autofocus",2),O([a({attribute:"control-size"})],P.prototype,"controlSize",2),O([$],P.prototype,"defaultSlottedNodes",2),O([a],P.prototype,"dirname",2),O([a({mode:"boolean"})],P.prototype,"disabled",2),O([a({attribute:"form"})],P.prototype,"formAttribute",2),O([a({attribute:"value",mode:"fromView"})],P.prototype,"initialValue",2),O([a],P.prototype,"list",2),O([a({converter:at})],P.prototype,"maxlength",2),O([a({converter:at})],P.prototype,"minlength",2),O([a({mode:"boolean"})],P.prototype,"multiple",2),O([a],P.prototype,"name",2),O([a],P.prototype,"pattern",2),O([a],P.prototype,"placeholder",2),O([a({attribute:"readonly",mode:"boolean"})],P.prototype,"readOnly",2),O([a({mode:"boolean"})],P.prototype,"required",2),O([a({converter:at})],P.prototype,"size",2),O([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],P.prototype,"spellcheck",2),O([a],P.prototype,"type",2),O([$],P.prototype,"controlLabel",2),Ut(P,qt);const zp=p`
492
482
  ${T("block")}
493
483
 
494
- :host{font-family:${y};font-size:${A};font-weight:${E};line-height:${R};max-width:400px}.label{display:flex;color:${_};padding-bottom:${wc};flex-shrink:0;padding-inline-end:${De}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${L};border:${ee} solid ${Ct};border-bottom-color:${Ze};border-radius:${I};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${Pt};padding:0 ${Je};position:relative;width:100%}:has(.control:user-invalid){border-color:${Ja}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${I});border-radius:0 0 ${I} ${I};border-bottom:2px solid ${Gi};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Cc};transition-delay:${or}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${I};background:${J};font-family:${y};font-weight:${E};font-size:${A};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${La}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ne};font-size:${St}}:host ::slotted([slot='start']){padding-right:${Pt}}:host ::slotted([slot='end']){padding-left:${Pt};gap:${De}}:host(:hover) .root{border-color:${co};border-bottom-color:${ao}}:host(:active) .root{border-color:${Xo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Js};transition-delay:${ir}}:host(:focus-within:active) .root:after{border-bottom-color:${Xi}}:host([appearance='outline']:focus-within) .root{border:${ee} solid ${Ct}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${J};border:${ee} solid ${Re}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${C}}::selection{color:${jo};background-color:${qa}}:host([control-size='small']) .control{font-size:${j};font-weight:${E};line-height:${ce}}:host([control-size='small']) .root{height:24px;gap:${Pt};padding:0 ${lt}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${le}}:host([control-size='large']) .control{font-size:${le};font-weight:${E};line-height:${Ce}}:host([control-size='large']) .root{height:40px;gap:${ze};padding:0 ${et}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${Ko}}:host([appearance='underline']) .root{background:${J};border:0;border-radius:0;border-bottom:${ee} solid ${Ze}}:host([appearance='underline']:hover) .root{border-bottom-color:${ao}}:host([appearance='underline']:active) .root{border-bottom-color:${lo}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${lo}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Re}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${ee} solid ${ke};box-shadow:${tr}}:host([appearance='filled-lighter']) .root{background:${L}}:host([appearance='filled-darker']) .root{background:${Ps}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Os}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Os};background:${Ps}}`;function Ep(o={}){return v`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${me("controlLabel")}><slot ${ie({property:"defaultSlottedNodes",filter:$s})}></slot></label><div class="root" part="root">${Qe(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${me("control")} />${Ye(o)}</div></template>`}const Mp=Ep(),_p=z.compose({name:`${b.prefix}-text-input`,template:Mp,styles:Ap,shadowOptions:{delegatesFocus:!0}});_p.define(b.registry);var Lp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,We=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lp(e,t,r),r};class Ae extends S{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}We([a({mode:"boolean"})],Ae.prototype,"nowrap",2),We([a({mode:"boolean"})],Ae.prototype,"truncate",2),We([a({mode:"boolean"})],Ae.prototype,"italic",2),We([a({mode:"boolean"})],Ae.prototype,"underline",2),We([a({mode:"boolean"})],Ae.prototype,"strikethrough",2),We([a({mode:"boolean"})],Ae.prototype,"block",2),We([a],Ae.prototype,"size",2),We([a],Ae.prototype,"font",2),We([a],Ae.prototype,"weight",2),We([a],Ae.prototype,"align",2);const Dp=p`
484
+ :host{font-family:${x};font-size:${E};font-weight:${M};line-height:${R};max-width:400px}.label{display:flex;color:${_};padding-bottom:${yc};flex-shrink:0;padding-inline-end:${Zt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${L};border:${et} solid ${Ne};border-bottom-color:${Kt};border-radius:${F};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${Ce};padding:0 ${Jt};position:relative;width:100%}:has(.control:user-invalid){border-color:${Ka}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${F});border-radius:0 0 ${F} ${F};border-bottom:2px solid ${Di};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${xc};transition-delay:${Wi}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${F};background:${xt};font-family:${x};font-weight:${M};font-size:${E};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Ta}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${tt};font-size:${ke}}:host ::slotted([slot='start']){padding-right:${Ce}}:host ::slotted([slot='end']){padding-left:${Ce};gap:${Zt}}:host(:hover) .root{border-color:${Vo};border-bottom-color:${eo}}:host(:active) .root{border-color:${Ri}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${qr};transition-delay:${Gi}}:host(:focus-within:active) .root:after{border-bottom-color:${Vi}}:host([appearance='outline']:focus-within) .root{border:${et} solid ${Ne}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${xt};border:${et} solid ${Yt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${C}}::selection{color:${Ro};background-color:${La}}:host([control-size='small']) .control{font-size:${G};font-weight:${M};line-height:${ht}}:host([control-size='small']) .root{height:24px;gap:${Ce};padding:0 ${Se}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${dt}}:host([control-size='large']) .control{font-size:${dt};font-weight:${M};line-height:${wt}}:host([control-size='large']) .root{height:40px;gap:${Et};padding:0 ${ne}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${jo}}:host([appearance='underline']) .root{background:${xt};border:0;border-radius:0;border-bottom:${et} solid ${Kt}}:host([appearance='underline']:hover) .root{border-bottom-color:${eo}}:host([appearance='underline']:active) .root{border-bottom-color:${oo}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${oo}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Yt}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${et} solid ${Ft};box-shadow:${Dr}}:host([appearance='filled-lighter']) .root{background:${L}}:host([appearance='filled-darker']) .root{background:${gr}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${xr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${xr};background:${gr}}`;function Tp(o={}){return v`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${yt("controlLabel")}><slot ${nt({property:"defaultSlottedNodes",filter:ar})}></slot></label><div class="root" part="root">${Gt(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${yt("control")} />${Wt(o)}</div></template>`}const Ap=Tp(),Op=P.compose({name:`${b.prefix}-text-input`,template:Ap,styles:zp,shadowOptions:{delegatesFocus:!0}});Op.define(b.registry);var Fp=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,Vt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ep(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Fp(t,e,s),s};class Bt extends S{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Vt([a({mode:"boolean"})],Bt.prototype,"nowrap",2),Vt([a({mode:"boolean"})],Bt.prototype,"truncate",2),Vt([a({mode:"boolean"})],Bt.prototype,"italic",2),Vt([a({mode:"boolean"})],Bt.prototype,"underline",2),Vt([a({mode:"boolean"})],Bt.prototype,"strikethrough",2),Vt([a({mode:"boolean"})],Bt.prototype,"block",2),Vt([a],Bt.prototype,"size",2),Vt([a],Bt.prototype,"font",2),Vt([a],Bt.prototype,"weight",2),Vt([a],Bt.prototype,"align",2);const Mp=p`
495
485
  ${T("inline")}
496
486
 
497
- :host{contain:content}::slotted(*){font-family:${y};font-size:${A};line-height:${R};font-weight:${E};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*),:host([nowrap]){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*),:host([truncate]){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*),:host([block]){display:block}:host([italic]) ::slotted(*),:host([italic]){font-style:italic}:host([underline]) ::slotted(*),:host([underline]){text-decoration-line:underline}:host([strikethrough]) ::slotted(*),:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*),:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*),:host([size='100']){font-size:${uo};line-height:${Qo}}:host([size='200']) ::slotted(*),:host([size='200']){font-size:${j};line-height:${ce}}:host([size='400']) ::slotted(*),:host([size='400']){font-size:${le};line-height:${Ce}}:host([size='500']) ::slotted(*),:host([size='500']){font-size:${St};line-height:${Zo}}:host([size='600']) ::slotted(*),:host([size='600']){font-size:${Ko};line-height:${js}}:host([size='700']) ::slotted(*),:host([size='700']){font-size:${Ds};line-height:${qs}}:host([size='800']) ::slotted(*),:host([size='800']){font-size:${Hs};line-height:${Gs}}:host([size='900']) ::slotted(*),:host([size='900']){font-size:${Vs};line-height:${Ws}}:host([size='1000']) ::slotted(*),:host([size='1000']){font-size:${Ns};line-height:${Xs}}:host([font='monospace']) ::slotted(*),:host([font='monospace']){font-family:${bc}}:host([font='numeric']) ::slotted(*),:host([font='numeric']){font-family:${mc}}:host([weight='medium']) ::slotted(*),:host([weight='medium']){font-weight:${vc}}:host([weight='semibold']) ::slotted(*),:host([weight='semibold']){font-weight:${H}}:host([weight='bold']) ::slotted(*),:host([weight='bold']){font-weight:${Yo}}:host([align='center']) ::slotted(*),:host([align='center']){text-align:center}:host([align='end']) ::slotted(*),:host([align='end']){text-align:end}:host([align='justify']) ::slotted(*),:host([align='justify']){text-align:justify}`,Hp=v`<slot></slot>`,Vp=Ae.compose({name:`${b.prefix}-text`,template:Hp,styles:Dp});Vp.define(b.registry);var Np=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Gn=(o,e,t,i)=>{for(var r=i>1?void 0:i?jp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Np(e,t,r),r};class yr extends O{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,this.setAttribute("aria-pressed",e)}}}Gn([a({mode:"boolean"})],yr.prototype,"pressed",2),Gn([a({mode:"boolean"})],yr.prototype,"mixed",2);const qp=p`
498
- ${ni}
487
+ :host{contain:content}::slotted(*){font-family:${x};font-size:${E};line-height:${R};font-weight:${M};text-align:start;white-space:normal;overflow:visible;text-overflow:clip;margin:0;display:inline}:host([nowrap]) ::slotted(*),:host([nowrap]){white-space:nowrap;overflow:hidden}:host([truncate]) ::slotted(*),:host([truncate]){text-overflow:ellipsis}:host([block]),:host([block]) ::slotted(*),:host([block]){display:block}:host([italic]) ::slotted(*),:host([italic]){font-style:italic}:host([underline]) ::slotted(*),:host([underline]){text-decoration-line:underline}:host([strikethrough]) ::slotted(*),:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]) ::slotted(*),:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']) ::slotted(*),:host([size='100']){font-size:${so};line-height:${Wo}}:host([size='200']) ::slotted(*),:host([size='200']){font-size:${G};line-height:${ht}}:host([size='400']) ::slotted(*),:host([size='400']){font-size:${dt};line-height:${wt}}:host([size='500']) ::slotted(*),:host([size='500']){font-size:${ke};line-height:${Go}}:host([size='600']) ::slotted(*),:host([size='600']){font-size:${jo};line-height:${Er}}:host([size='700']) ::slotted(*),:host([size='700']){font-size:${Tr};line-height:${Mr}}:host([size='800']) ::slotted(*),:host([size='800']){font-size:${Ar};line-height:${_r}}:host([size='900']) ::slotted(*),:host([size='900']){font-size:${Or};line-height:${Lr}}:host([size='1000']) ::slotted(*),:host([size='1000']){font-size:${Fr};line-height:${Rr}}:host([font='monospace']) ::slotted(*),:host([font='monospace']){font-family:${uc}}:host([font='numeric']) ::slotted(*),:host([font='numeric']){font-family:${pc}}:host([weight='medium']) ::slotted(*),:host([weight='medium']){font-weight:${fc}}:host([weight='semibold']) ::slotted(*),:host([weight='semibold']){font-weight:${N}}:host([weight='bold']) ::slotted(*),:host([weight='bold']){font-weight:${qo}}:host([align='center']) ::slotted(*),:host([align='center']){text-align:center}:host([align='end']) ::slotted(*),:host([align='end']){text-align:end}:host([align='justify']) ::slotted(*),:host([align='justify']){text-align:justify}`,_p=v`<slot></slot>`,Lp=Bt.compose({name:`${b.prefix}-text`,template:_p,styles:Mp});Lp.define(b.registry);var Rp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,_n=(o,t,e,i)=>{for(var s=i>1?void 0:i?Dp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Rp(t,e,s),s};class ls extends A{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,this.setAttribute("aria-pressed",t)}}}_n([a({mode:"boolean"})],ls.prototype,"pressed",2),_n([a({mode:"boolean"})],ls.prototype,"mixed",2);const Hp=p`
488
+ ${Qo}
499
489
 
500
- :host([aria-pressed='true']){border-color:${Ct};background-color:${Ss};color:${_};border-width:${ee}}:host([aria-pressed='true']:hover){border-color:${co};background-color:${qo}}:host([aria-pressed='true']:active){border-color:${Xo};background-color:${Ni}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${Ua};color:${xe}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${ji}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${qi}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${Ga};color:${Aa}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${Go};color:${Jt}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${to};color:${eo}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${Wa}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${oo}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${io}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${Ea}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${Vt}}:host([aria-pressed='true'][appearance='transparent']:active){color:${Nt}}`.withBehaviors($e(p`
501
- :host([aria-pressed='true']),:host([aria-pressed='true'][appearance='primary']),:host([aria-pressed='true'][appearance='subtle']),:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background:SelectedItem;color:SelectedItemText}`)),Gp=ar(),Wp=yr.compose({name:`${b.prefix}-toggle-button`,template:Gp,styles:qp});Wp.define(b.registry);
490
+ :host([aria-pressed='true']){border-color:${Ne};background-color:${fr};color:${_};border-width:${et}}:host([aria-pressed='true']:hover){border-color:${Vo};background-color:${Fi}}:host([aria-pressed='true']:active){border-color:${Ri};background-color:${pr}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${Na};color:${Xt}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${br}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${mr}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${Da};color:${Ia}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${Ei};color:${Eo}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${Ho};color:${Mo}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${Ha}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${Mi}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${_i}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${Pa}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${_o}}:host([aria-pressed='true'][appearance='transparent']:active){color:${Lo}}`.withBehaviors(bt(p`
491
+ :host([aria-pressed='true']),:host([aria-pressed='true'][appearance='primary']),:host([aria-pressed='true'][appearance='subtle']),:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background:SelectedItem;color:SelectedItemText}`)),Vp=Yi(),Np=ls.compose({name:`${b.prefix}-toggle-button`,template:Vp,styles:Hp});Np.define(b.registry);