@fluentui/web-components 3.0.0-beta.31 → 3.0.0-beta.32

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 (50) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/dts/anchor-button/anchor-button.d.ts +1 -1
  3. package/dist/dts/checkbox/checkbox.d.ts +13 -1
  4. package/dist/dts/divider/divider.d.ts +18 -0
  5. package/dist/dts/image/image.d.ts +36 -0
  6. package/dist/dts/label/label.d.ts +24 -0
  7. package/dist/dts/link/link.d.ts +12 -0
  8. package/dist/dts/progress-bar/progress-bar.d.ts +18 -0
  9. package/dist/dts/spinner/spinner.d.ts +13 -1
  10. package/dist/dts/styles/states/index.d.ts +65 -0
  11. package/dist/dts/text-input/text-input.d.ts +12 -0
  12. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  13. package/dist/esm/checkbox/checkbox.js +26 -0
  14. package/dist/esm/checkbox/checkbox.js.map +1 -1
  15. package/dist/esm/checkbox/checkbox.styles.js +6 -5
  16. package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
  17. package/dist/esm/divider/divider.js +47 -2
  18. package/dist/esm/divider/divider.js.map +1 -1
  19. package/dist/esm/divider/divider.styles.js +31 -30
  20. package/dist/esm/divider/divider.styles.js.map +1 -1
  21. package/dist/esm/image/image.js +68 -0
  22. package/dist/esm/image/image.js.map +1 -1
  23. package/dist/esm/image/image.styles.js +10 -9
  24. package/dist/esm/image/image.styles.js.map +1 -1
  25. package/dist/esm/label/label.js +41 -0
  26. package/dist/esm/label/label.js.map +1 -1
  27. package/dist/esm/label/label.styles.js +7 -6
  28. package/dist/esm/label/label.styles.js.map +1 -1
  29. package/dist/esm/link/link.js +22 -0
  30. package/dist/esm/link/link.js.map +1 -1
  31. package/dist/esm/link/link.styles.js +5 -4
  32. package/dist/esm/link/link.styles.js.map +1 -1
  33. package/dist/esm/progress-bar/progress-bar.js +40 -0
  34. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  35. package/dist/esm/progress-bar/progress-bar.styles.js +7 -6
  36. package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
  37. package/dist/esm/spinner/spinner.js +27 -0
  38. package/dist/esm/spinner/spinner.js.map +1 -1
  39. package/dist/esm/spinner/spinner.styles.js +9 -8
  40. package/dist/esm/spinner/spinner.styles.js.map +1 -1
  41. package/dist/esm/styles/states/index.js +65 -0
  42. package/dist/esm/styles/states/index.js.map +1 -1
  43. package/dist/esm/text-input/text-input.js +27 -0
  44. package/dist/esm/text-input/text-input.js.map +1 -1
  45. package/dist/esm/text-input/text-input.styles.js +23 -22
  46. package/dist/esm/text-input/text-input.styles.js.map +1 -1
  47. package/dist/web-components.d.ts +147 -3
  48. package/dist/web-components.js +307 -15
  49. package/dist/web-components.min.js +277 -277
  50. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Oo;const _s="fast-kernel";try{if(document.currentScript)Oo=document.currentScript.getAttribute(_s);else{const o=document.getElementsByTagName("script");Oo=o[o.length-1].getAttribute(_s)}}catch{Oo="isolate"}let Be;switch(Oo){case"share":Be=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":Be=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)}`;Be=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const ue=o=>typeof o=="function",Mt=o=>typeof o=="string",Rs=()=>{};var Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Mi<"u")Mi.globalThis=Mi;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 Ds={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Ds));const Y=globalThis.FAST;if(Y.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Y,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},Ds))}Y.error===void 0&&Object.assign(Y,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Hs=Object.freeze([]);function Li(){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 Vs(){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 qe(o){o.prototype.toJSON=Rs}const tt=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ns=o=>o,pa=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ns}):{createHTML:Ns};let Ao=Object.freeze({createHTML(o){return pa.createHTML(o)},protect(o,t,e,i){return i}});const fa=Ao,We=Object.freeze({get policy(){return Ao},setPolicy(o){if(Ao!==fa)throw Y.error(1201);Ao=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)}}),wt=Y.getById(Be.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,p=o.length-d;l<p;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 _i{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 js{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 _i(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new _i(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 Ri=Object.freeze({unknown:void 0,coupled:1}),w=Y.getById(Be.observable,()=>{const o=wt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=d=>{throw Y.error(1101)};function r(d){var l;let p=(l=d.$fastController)!==null&&l!==void 0?l:e.get(d);return p===void 0&&(Array.isArray(d)?p=s(d):e.set(d,p=new js(d))),p}const n=Vs();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,p){const f=this.field,g=l[f];if(g!==p){l[f]=p;const m=l[this.callback];ue(m)&&m.call(l,g,p),r(l).notify(this.name)}}}class h extends _i{constructor(l,p,f=!1){super(l,p),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 p=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),p}requiresUnbind(l){return l.sourceLifetime!==Ri.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,p){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,p)}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,p){const f=this.last,g=r(l),m=f===null?this.first:{};if(m.propertySource=l,m.propertyName=p,m.notifier=g,g.subscribe(this,p),f!==null){if(!this.needsRefresh){let k;i=void 0,k=f.propertySource[f.propertyName],i=this,l===k&&(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 qe(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){Mt(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(p){l.setValue(this,p)}})},getAccessors:n,binding(d,l,p=this.isVolatileBinding(d)){return new h(d,l,p)},isVolatileBinding(d){return t.test(d.toString())}})});function y(o,t){w.defineProperty(o,t)}function ga(o,t,e){return Object.assign({},e,{get(){return w.trackVolatile(),e.get.apply(this)}})}const qs=Y.getById(Be.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),ao=Object.freeze({default:{index:0,length:0,get event(){return ao.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return qs.get()},setEvent(o){qs.set(o)}});class Eo{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class ba extends Eo{createObserver(t){return w.binding(this.evaluate,t,this.isVolatile)}}function Ws(o,t,e=w.isVolatileBinding(o)){return new ba(o,t,e)}class Gs extends Eo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}qe(Gs);function Us(o,t){return new Gs(o,t)}let Xs;function Ks(o){return o.map(t=>t instanceof dt?Ks(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class dt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof dt?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Xs),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(Ks(this.styles)),this}static setDefaultStrategy(t){Xs=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new dt(t):t instanceof dt?t:new dt([t])}}dt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Di=Li(),Hi=Object.freeze({getForInstance:Di.getForInstance,getByType:Di.getByType,define(o){return Di.register({type:o}),o}});function Vi(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class Ni{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)=>Vi(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){Vi(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){Vi(this,e.controller,e)}}Hi.define(Ni);const ma=`${Math.random().toString(36).substring(2,8)}`;let va=0;const Ys=()=>`--v${ma}${++va}`;function Qs(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];ue(h)?h=new Ni(Ws(h),Ys()).createCSS(r):h instanceof Eo?h=new Ni(h,Ys()).createCSS(r):Hi.getForInstance(h)!==void 0&&(h=h.createCSS(r)),h instanceof dt||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 u=(o,...t)=>{const{styles:e,behaviors:i}=Qs(o,t),s=new dt(e);return i.length?s.withBehaviors(...i):s};class Zs{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(Mt(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new dt(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)}}Hi.define(Zs),u.partial=(o,...t)=>{const{styles:e,behaviors:i}=Qs(o,t);return new Zs(e,i)};const ji=`fast-${Math.random().toString(36).substring(2,8)}`,Mo=`${ji}{`,lo=`}${ji}`,$a=lo.length;let ya=0;const qi=()=>`${ji}-${++ya}`,Js=Object.freeze({interpolation:o=>`${Mo}${o}${lo}`,attribute:o=>`${qi()}="${Mo}${o}${lo}"`,comment:o=>`<!--${Mo}${o}${lo}-->`}),Lo=Object.freeze({parse(o,t){const e=o.split(Mo);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(lo);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(t[d]),h=n.substring(c+$a)}h!==""&&i.push(h)}return i}}),Wi=Li(),Ct=Object.freeze({getForInstance:Wi.getForInstance,getByType:Wi.getByType,define(o,t){return t=t||{},t.type=o,Wi.register(t),o},assignAspect(o,t){if(!t){o.aspectType=tt.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?tt.tokenList:tt.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=tt.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=tt.event;break;default:o.targetAspect=t,o.aspectType=tt.attribute;break}}});class Gi{constructor(t){this.options=t}createHTML(t){return Js.attribute(t(this))}createBehavior(){return this}}qe(Gi);function xa(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 ka(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,p=d.length;l<p;++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 wa={[tt.attribute]:We.setAttribute,[tt.booleanAttribute]:We.setBooleanAttribute,[tt.property]:(o,t,e)=>o[t]=e,[tt.content]:xa,[tt.tokenList]:ka,[tt.event]:()=>{}};class Ge{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=tt.content}createHTML(t){return Js.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=wa[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw Y.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 tt.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case tt.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){ao.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);ao.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)}}Ct.define(Ge,{aspected:!0});function tr(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 _o{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=Ri.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return ao.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(){tr(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){tr(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}qe(_o),w.defineProperty(_o.prototype,"index"),w.defineProperty(_o.prototype,"length");const er=(o,t)=>`${o}.${t}`,or={},Lt={index:0,node:null};function ir(o){o.startsWith("fast-")||Y.warn(1204,{name:o})}const Ca=new Proxy(document.createElement("div"),{get(o,t){ir(t);const e=Reflect.get(o,t);return ue(e)?e.bind(o):e},set(o,t,e){return ir(t),Reflect.set(o,t,e)}});class Sa{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:qi(),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=or[e];if(!r){const n=`_${e}`;or[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??Ca;for(const s of this.nodeIds)i[s];return new _o(e,this.factories,i)}}function sr(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],p=l.value,f=Lo.parse(p,c);let g=null;f===null?r&&(g=new Ge(Us(()=>p,o.policy)),Ct.assignAspect(g,l.name)):g=Ui.aggregate(f,o.policy),g!==null&&(e.removeAttributeNode(l),h--,d--,o.addFactory(g,t,i,s,e.tagName))}}function Ia(o,t,e,i,s){const r=Lo.parse(t.textContent,o.directives);if(r===null)return Lt.node=t.nextSibling,Lt.index=s+1,Lt;let n,c=n=t;for(let h=0,d=r.length;h<d;++h){const l=r[h];h!==0&&(s++,i=er(e,s),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Mt(l)?n.textContent=l:(n.textContent=" ",Ct.assignAspect(l),o.addFactory(l,e,i,s,null)),c=n}return Lt.index=s+1,Lt.node=c.nextSibling,Lt}function rr(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=Pa(o,e,s,i);s=r.node,i=r.index}}function Pa(o,t,e,i){const s=er(t,i);switch(e.nodeType){case 1:sr(o,t,e,s,i),rr(o,e,s);break;case 3:return Ia(o,e,t,s,i);case 8:const r=Lo.parse(e.data,o.directives);r!==null&&o.addFactory(Ui.aggregate(r),t,s,i,null);break}return Lt.index=i+1,Lt.node=e.nextSibling,Lt}function Ba(o,t){return o&&o.nodeType==8&&Lo.parse(o.data,t)!==null}const nr="TEMPLATE",Ui={compile(o,t,e=We.policy){let i;if(Mt(o)){i=document.createElement(nr),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===nr&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new Sa(s,t,e);return sr(r,"",i,"h",0,!0),(Ba(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),rr(r,s,"r"),Lt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=We.policy){if(o.length===1)return o[0];let e,i,s=!1,r;const n=o.length,c=o.map(l=>Mt(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,p)=>{let f="";for(let g=0;g<n;++g)f+=c[g](l,p);return f};i.evaluate=h,i.isVolatile=s,i.policy=r??t;const d=new Ge(i);return Ct.assignAspect(d,e),d}},Ta=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,za=Object.create(null);class Te{constructor(t,e=za){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}Te.empty=new Te(""),Ct.define(Te);function Fa(o,t,e,i=Ct.getForInstance(o)){if(i.aspected){const s=Ta.exec(t);s!==null&&Ct.assignAspect(o,s[2])}return o.createHTML(e)}class Fi{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Ui.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new Te(Mt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw Y.error(1208);if(this.policy)throw Y.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=qi();return r[d]=c,d};for(let c=0,h=t.length-1;c<h;++c){const d=t[c];let l=e[c],p;if(s+=d,ue(l))l=new Ge(Ws(l));else if(l instanceof Eo)l=new Ge(l);else if(!(p=Ct.getForInstance(l))){const f=l;l=new Ge(Us(()=>f))}s+=Fa(l,d,n,p)}return new Fi(s+t[t.length-1],r,i)}}qe(Fi);const v=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Fi.create(o,t);throw Y.error(1206)};v.partial=o=>new Te(o);class ar extends Gi{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Ct.define(ar);const St=o=>new ar(o),Oa=()=>null;function lr(o){return o===void 0?Oa:ue(o)?o:()=>o}function Xi(o,t,e){const i=ue(o)?o:()=>o,s=lr(t),r=lr(e);return(n,c)=>i(n,c)?s(n,c):r(n,c)}const Aa=o=>o.nodeType===1,ze=o=>o?t=>t.nodeType===1&&t.matches(o):Aa;class cr extends Gi{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,Hs),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 dr="slotchange";class hr extends cr{observe(t){t.addEventListener(dr,this)}disconnect(t){t.removeEventListener(dr,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}Ct.define(hr);function ht(o){return Mt(o)&&(o={property:o}),new hr(o)}class ur extends cr{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=Rs,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)}}Ct.define(ur);function Ea(o){return Mt(o)&&(o={property:o}),new ur(o)}const pr="boolean",fr="reflect",Ro=Object.freeze({locate:Vs()}),gr={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function br(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const ut={toView(o){const t=br(o);return t&&t.toString()},fromView:br};class Oi{constructor(t,e,i=e.toLowerCase(),s=fr,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===pr&&r===void 0&&(this.converter=gr)}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"||wt.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case fr:const r=this.converter;We.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case pr:We.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Ro.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];Mt(d)?i.push(new Oi(t,d)):i.push(new Oi(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),Ro.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const mr={mode:"open"},vr={},$r=new Set,Do=Y.getById(Be.elementRegistry,()=>Li());class Et{constructor(t,e=t.definition){var i;this.platformDefined=!1,Mt(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=Oi.collect(t,e.attributes),n=new Array(r.length),c={},h={};for(let d=0,l=r.length;d<l;++d){const p=r[d];n[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,w.defineProperty(s,p)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=e.shadowOptions===void 0?mr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},mr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?vr:Object.assign(Object.assign({},vr),e.elementOptions),this.styles=dt.normalize(e.styles),Do.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 $r.has(t)||Do.getByType(t)?new Et(class extends t{},e):new Et(t,e)}static registerBaseType(t){$r.add(t)}}Et.getByType=Do.getByType,Et.getForInstance=Do.getForInstance;const Ma={bubbles:!0,composed:!0,cancelable:!0},Ki="isConnected",yr=new WeakMap;function Ho(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:yr.get(o))!==null&&e!==void 0?e:null}let xr;class Vo extends js{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"&&yr.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,Ki),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:ao.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=Ho(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=Ho(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,Ki)}disconnect(){if(this.stage!==1)return;this.stage=2,w.notify(this,Ki),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},Ma),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=Ho(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=Ri.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=Et.getForInstance(t);if(i===void 0)throw Y.error(1401);return t.$fastController=new xr(t,i)}static setStrategy(t){xr=t}}qe(Vo),Vo.setStrategy(Vo);function No(o){var t;return"adoptedStyleSheets"in o?o:(t=Ho(o))!==null&&t!==void 0?t:o.getRootNode()}class Ai{constructor(t){const e=Ai.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){wr(No(t),this.sheets)}removeStylesFrom(t){Cr(No(t),this.sheets)}}Ai.styleSheetCache=new Map;let La=0;const _a=()=>`fast-${++La}`;function kr(o){return o===document?document.body:o}class Ra{constructor(t){this.styles=t,this.styleClass=_a()}addStylesTo(t){t=kr(No(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=kr(No(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let wr=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},Cr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(dt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),wr=(o,t)=>{o.adoptedStyleSheets.push(...t)},Cr=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}dt.setDefaultStrategy(Ai)}else dt.setDefaultStrategy(Ra);function Sr(o){const t=class extends o{constructor(){super(),Vo.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 Et.registerBaseType(t),t}function Da(o,t){return ue(o)?Et.compose(o,t):Et.compose(this,o)}function Ha(o,t){return ue(o)?Et.compose(o,t).define().type:Et.compose(this,o).define().type}function Va(o){return Sr(o)}const I=Object.assign(Sr(HTMLElement),{from:Va,define:Ha,compose:Da}),st={horizontal:"horizontal",vertical:"vertical"};function Ir(...o){return o.every(t=>t instanceof HTMLElement)}const Ue="ArrowDown",Xe="ArrowLeft",Ke="ArrowRight",Ye="ArrowUp",jo="End",Qe="Enter",Pr="Escape",qo="Home",Wo=" ",Na="Tab",ja={ArrowDown:Ue,ArrowLeft:Xe,ArrowRight:Ke,ArrowUp:Ye};var xt;(function(o){o.ltr="ltr",o.rtl="rtl"})(xt||(xt={}));function qa(o,t,e){return e<o?t:e>t?o:e}function Yi(o,t,e){return Math.min(Math.max(e,o),t)}let Wa=0;function Qi(o=""){return`${o}${Wa++}`}var Ga=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,N=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ua(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&&Ga(t,e,s),s};class j{}N([a({attribute:"aria-atomic"})],j.prototype,"ariaAtomic",2),N([a({attribute:"aria-busy"})],j.prototype,"ariaBusy",2),N([a({attribute:"aria-controls"})],j.prototype,"ariaControls",2),N([a({attribute:"aria-current"})],j.prototype,"ariaCurrent",2),N([a({attribute:"aria-describedby"})],j.prototype,"ariaDescribedby",2),N([a({attribute:"aria-details"})],j.prototype,"ariaDetails",2),N([a({attribute:"aria-disabled"})],j.prototype,"ariaDisabled",2),N([a({attribute:"aria-errormessage"})],j.prototype,"ariaErrormessage",2),N([a({attribute:"aria-flowto"})],j.prototype,"ariaFlowto",2),N([a({attribute:"aria-haspopup"})],j.prototype,"ariaHaspopup",2),N([a({attribute:"aria-hidden"})],j.prototype,"ariaHidden",2),N([a({attribute:"aria-invalid"})],j.prototype,"ariaInvalid",2),N([a({attribute:"aria-keyshortcuts"})],j.prototype,"ariaKeyshortcuts",2),N([a({attribute:"aria-label"})],j.prototype,"ariaLabel",2),N([a({attribute:"aria-labelledby"})],j.prototype,"ariaLabelledby",2),N([a({attribute:"aria-live"})],j.prototype,"ariaLive",2),N([a({attribute:"aria-owns"})],j.prototype,"ariaOwns",2),N([a({attribute:"aria-relevant"})],j.prototype,"ariaRelevant",2),N([a({attribute:"aria-roledescription"})],j.prototype,"ariaRoledescription",2);const Br=o=>o.closest("[dir]")?.dir==="rtl"?xt.rtl:xt.ltr;function pt(o){return o?typeof o=="string"?new Te(o):"inline"in o?o.inline():o:Te.empty}const Tr=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Xa=":host([hidden]){display:none}";function z(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 Fo extends Ka{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Fo(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 ft=Fo.with(window.matchMedia("(forced-colors)"));Fo.with(window.matchMedia("(prefers-color-scheme: dark)")),Fo.with(window.matchMedia("(prefers-color-scheme: light)"));class Yt{}function Qt(o){return v`<slot name="end" ${St("end")}>${pt(o.end)}</slot>`.inline()}function Zt(o){return v`<slot name="start" ${St("start")}>${pt(o.start)}</slot>`.inline()}function Jt(o,...t){const e=Ro.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),Ro.locate(i).forEach(r=>e.push(r))})}var Ya=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,Fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Qa(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&&Ya(t,e,s),s};class rt extends I{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Qi("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}Fe([a({attribute:"heading-level",mode:"fromView",converter:ut})],rt.prototype,"headinglevel",2),Fe([a({mode:"boolean"})],rt.prototype,"expanded",2),Fe([a({mode:"boolean"})],rt.prototype,"disabled",2),Fe([a],rt.prototype,"id",2),Fe([a],rt.prototype,"size",2),Fe([a({mode:"boolean"})],rt.prototype,"block",2),Fe([a({attribute:"expand-icon-position"})],rt.prototype,"expandIconPosition",2),Jt(rt,Yt);const R="var(--colorNeutralForeground1)",zr="var(--colorNeutralForeground1Hover)",Za="var(--colorNeutralForeground1Pressed)",_t="var(--colorNeutralForeground2)",Go="var(--colorNeutralForeground2Hover)",Uo="var(--colorNeutralForeground2Pressed)",Ja="var(--colorNeutralForeground2Selected)",Xo="var(--colorNeutralForeground2BrandHover)",Ko="var(--colorNeutralForeground2BrandPressed)",tl="var(--colorNeutralForeground2BrandSelected)",nt="var(--colorNeutralForeground3)",el="var(--colorNeutralForeground3Hover)",ol="var(--colorNeutralForeground3Pressed)",il="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",sl="var(--colorBrandForegroundLink)",rl="var(--colorBrandForegroundLinkHover)",nl="var(--colorBrandForegroundLinkPressed)",al="var(--colorNeutralForeground2Link)",ll="var(--colorNeutralForeground2LinkHover)",cl="var(--colorNeutralForeground2LinkPressed)",Fr="var(--colorCompoundBrandForeground1)",Or="var(--colorCompoundBrandForeground1Hover)",Ar="var(--colorCompoundBrandForeground1Pressed)",te="var(--colorNeutralForegroundOnBrand)",Yo="var(--colorNeutralForegroundInverted)",dl="var(--colorNeutralForegroundInvertedHover)",hl="var(--colorNeutralForegroundInvertedPressed)",Er="var(--colorNeutralForegroundStaticInverted)",Zi="var(--colorBrandForeground1)",ul="var(--colorBrandForeground2)",pl="var(--colorNeutralForeground1Static)",D="var(--colorNeutralBackground1)",Ji="var(--colorNeutralBackground1Hover)",Mr="var(--colorNeutralBackground1Pressed)",Lr="var(--colorNeutralBackground1Selected)",_r="var(--colorNeutralBackground3)",fl="var(--colorNeutralBackground4)",gl="var(--colorNeutralBackground5)",Qo="var(--colorNeutralBackground6)",bl="var(--colorNeutralBackgroundInverted)",ml="var(--colorSubtleBackground)",ts="var(--colorSubtleBackgroundHover)",Zo="var(--colorSubtleBackgroundPressed)",vl="var(--colorSubtleBackgroundSelected)",It="var(--colorTransparentBackground)",es="var(--colorTransparentBackgroundHover)",os="var(--colorTransparentBackgroundPressed)",$l="var(--colorTransparentBackgroundSelected)",co="var(--colorNeutralBackgroundDisabled)",yl="var(--colorBackgroundOverlay)",is="var(--colorBrandBackground)",Rr="var(--colorBrandBackgroundHover)",Dr="var(--colorBrandBackgroundPressed)",xl="var(--colorBrandBackgroundSelected)",ho="var(--colorCompoundBrandBackground)",uo="var(--colorCompoundBrandBackgroundHover)",po="var(--colorCompoundBrandBackgroundPressed)",Hr="var(--colorBrandBackgroundStatic)",kl="var(--colorBrandBackground2)",ee="var(--colorNeutralStrokeAccessible)",fo="var(--colorNeutralStrokeAccessibleHover)",go="var(--colorNeutralStrokeAccessiblePressed)",Ze="var(--colorNeutralStroke1)",Jo="var(--colorNeutralStroke1Hover)",ss="var(--colorNeutralStroke1Pressed)",bo="var(--colorNeutralStroke2)",wl="var(--colorNeutralStroke3)",Cl="var(--colorNeutralStrokeOnBrand2)",Vr="var(--colorBrandStroke1)",Nr="var(--colorBrandStroke2)",rs="var(--colorCompoundBrandStroke)",ns="var(--colorCompoundBrandStrokeHover)",as="var(--colorCompoundBrandStrokePressed)",oe="var(--colorNeutralStrokeDisabled)",Rt="var(--colorTransparentStroke)",jr="var(--colorTransparentStrokeInteractive)",ti="var(--colorStrokeFocus1)",ie="var(--colorStrokeFocus2)",Sl="var(--colorPaletteRedBackground1)",Il="var(--colorPaletteRedBackground2)",qr="var(--colorPaletteRedBackground3)",Pl="var(--colorPaletteRedBorder1)",Bl="var(--colorPaletteRedBorder2)",Wr="var(--colorPaletteRedForeground1)",Tl="var(--colorPaletteRedForeground2)",Gr="var(--colorPaletteRedForeground3)",zl="var(--colorPaletteGreenBackground1)",Ur="var(--colorPaletteGreenBackground3)",Fl="var(--colorPaletteGreenBorder2)",Ol="var(--colorPaletteGreenForeground1)",Al="var(--colorPaletteGreenForeground2)",El="var(--colorPaletteGreenForeground3)",Ml="var(--colorPaletteDarkOrangeBackground1)",Xr="var(--colorPaletteDarkOrangeBackground3)",Ll="var(--colorPaletteDarkOrangeBorder1)",_l="var(--colorPaletteDarkOrangeForeground1)",Kr="var(--colorPaletteDarkOrangeForeground3)",Rl="var(--colorPaletteYellowBackground1)",Dl="var(--colorPaletteYellowBackground3)",Hl="var(--colorPaletteYellowBorder1)",ls="var(--colorPaletteYellowForeground2)",Vl="var(--colorPaletteMarigoldBackground2)",Nl="var(--colorPaletteMarigoldForeground2)",jl="var(--colorPaletteAnchorBackground2)",ql="var(--colorPaletteAnchorForeground2)",Wl="var(--colorPaletteBeigeBackground2)",Gl="var(--colorPaletteBeigeForeground2)",Ul="var(--colorPaletteBlueBackground2)",Xl="var(--colorPaletteBlueForeground2)",Kl="var(--colorPaletteBrassBackground2)",Yl="var(--colorPaletteBrassForeground2)",Ql="var(--colorPaletteBrownBackground2)",Zl="var(--colorPaletteBrownForeground2)",Jl="var(--colorPaletteCornflowerBackground2)",tc="var(--colorPaletteCornflowerForeground2)",ec="var(--colorPaletteCranberryBackground2)",oc="var(--colorPaletteCranberryForeground2)",ic="var(--colorPaletteDarkGreenBackground2)",sc="var(--colorPaletteDarkGreenForeground2)",rc="var(--colorPaletteDarkRedBackground2)",nc="var(--colorPaletteDarkRedForeground2)",ac="var(--colorPaletteForestBackground2)",lc="var(--colorPaletteForestForeground2)",cc="var(--colorPaletteGoldBackground2)",dc="var(--colorPaletteGoldForeground2)",hc="var(--colorPaletteGrapeBackground2)",uc="var(--colorPaletteGrapeForeground2)",pc="var(--colorPaletteLavenderBackground2)",fc="var(--colorPaletteLavenderForeground2)",gc="var(--colorPaletteLightTealBackground2)",bc="var(--colorPaletteLightTealForeground2)",mc="var(--colorPaletteLilacBackground2)",vc="var(--colorPaletteLilacForeground2)",$c="var(--colorPaletteMagentaBackground2)",yc="var(--colorPaletteMagentaForeground2)",xc="var(--colorPaletteMinkBackground2)",kc="var(--colorPaletteMinkForeground2)",wc="var(--colorPaletteNavyBackground2)",Cc="var(--colorPaletteNavyForeground2)",Sc="var(--colorPalettePeachBackground2)",Ic="var(--colorPalettePeachForeground2)",Pc="var(--colorPalettePinkBackground2)",Bc="var(--colorPalettePinkForeground2)",Tc="var(--colorPalettePlatinumBackground2)",zc="var(--colorPalettePlatinumForeground2)",Fc="var(--colorPalettePlumBackground2)",Oc="var(--colorPalettePlumForeground2)",Ac="var(--colorPalettePumpkinBackground2)",Ec="var(--colorPalettePumpkinForeground2)",Mc="var(--colorPalettePurpleBackground2)",Lc="var(--colorPalettePurpleForeground2)",_c="var(--colorPaletteRoyalBlueBackground2)",Rc="var(--colorPaletteRoyalBlueForeground2)",Dc="var(--colorPaletteSeafoamBackground2)",Hc="var(--colorPaletteSeafoamForeground2)",Vc="var(--colorPaletteSteelBackground2)",Nc="var(--colorPaletteSteelForeground2)",jc="var(--colorPaletteTealBackground2)",qc="var(--colorPaletteTealForeground2)",cs="var(--borderRadiusNone)",Pt="var(--borderRadiusSmall)",_="var(--borderRadiusMedium)",Yr="var(--borderRadiusLarge)",Qr="var(--borderRadiusXLarge)",gt="var(--borderRadiusCircular)",x="var(--fontFamilyBase)",Wc="var(--fontFamilyMonospace)",Gc="var(--fontFamilyNumeric)",mo="var(--fontSizeBase100)",Q="var(--fontSizeBase200)",E="var(--fontSizeBase300)",bt="var(--fontSizeBase400)",Oe="var(--fontSizeBase500)",ei="var(--fontSizeBase600)",Zr="var(--fontSizeHero700)",Jr="var(--fontSizeHero800)",tn="var(--fontSizeHero900)",en="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",Uc="var(--fontWeightMedium)",q="var(--fontWeightSemibold)",oi="var(--fontWeightBold)",ii="var(--lineHeightBase100)",mt="var(--lineHeightBase200)",H="var(--lineHeightBase300)",Bt="var(--lineHeightBase400)",si="var(--lineHeightBase500)",on="var(--lineHeightBase600)",sn="var(--lineHeightHero700)",rn="var(--lineHeightHero800)",nn="var(--lineHeightHero900)",an="var(--lineHeightHero1000)",ln="var(--shadow2)",ri="var(--shadow4)",Xc="var(--shadow8)",cn="var(--shadow16)",Kc="var(--shadow28)",Yc="var(--shadow64)",et="var(--strokeWidthThin)",Ae="var(--strokeWidthThick)",pe="var(--strokeWidthThicker)",dn="var(--strokeWidthThickest)",Ee="var(--spacingHorizontalXXS)",se="var(--spacingHorizontalXS)",Me="var(--spacingHorizontalSNudge)",Dt="var(--spacingHorizontalS)",re="var(--spacingHorizontalMNudge)",fe="var(--spacingHorizontalM)",Qc="var(--spacingHorizontalL)",Zc="var(--spacingHorizontalXXL)",ni="var(--spacingVerticalXXS)",Jc="var(--spacingVerticalXS)",vo="var(--spacingVerticalSNudge)",Z="var(--spacingVerticalS)",hn="var(--spacingVerticalMNudge)",un="var(--spacingVerticalL)",$o="var(--spacingVerticalXXL)",td="var(--durationUltraFast)",ds="var(--durationFaster)",pn="var(--durationNormal)",ed="var(--durationGentle)",od="var(--durationSlow)",fn="var(--durationSlower)",ai="var(--durationUltraSlow)",id="var(--curveAccelerateMax)",hs="var(--curveAccelerateMid)",sd="var(--curveAccelerateMin)",gn="var(--curveDecelerateMax)",us="var(--curveDecelerateMid)",rd="var(--curveDecelerateMin)",nd="var(--curveEasyEaseMax)",ps="var(--curveEasyEase)",bn="var(--curveLinear)",ad=u`
2
- ${z("block")}
1
+ const m=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Vo;const Gs="fast-kernel";try{if(document.currentScript)Vo=document.currentScript.getAttribute(Gs);else{const o=document.getElementsByTagName("script");Vo=o[o.length-1].getAttribute(Gs)}}catch{Vo="isolate"}let Te;switch(Vo){case"share":Te=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":Te=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)}`;Te=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const ge=o=>typeof o=="function",Rt=o=>typeof o=="string",Us=()=>{};var ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof ji<"u")ji.globalThis=ji;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 Xs={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Xs));const Q=globalThis.FAST;if(Q.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Q,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},Xs))}Q.error===void 0&&Object.assign(Q,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ks=Object.freeze([]);function qi(){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 Ys(){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 We(o){o.prototype.toJSON=Us}const et=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Qs=o=>o,Ca=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Qs}):{createHTML:Qs};let No=Object.freeze({createHTML(o){return Ca.createHTML(o)},protect(o,t,e,i){return i}});const Sa=No,Ge=Object.freeze({get policy(){return No},setPolicy(o){if(No!==Sa)throw Q.error(1201);No=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)}}),It=Q.getById(Te.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function n(h){try{h.call()}catch(d){if(i)t.push(d),setTimeout(s,0);else throw o.length=0,d}}function r(){let d=0;for(;d<o.length;)if(n(o[d]),d++,d>1024){for(let l=0,p=o.length-d;l<p;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(r):r())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:r,setMode:h=>i=h})});class Wi{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,n=this.sub2;s!==void 0&&s.handleChange(i,t),n!==void 0&&n.handleChange(i,t)}else for(let s=0,n=e.length;s<n;++s)e[s].handleChange(i,t)}}class Zs{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 n;e?n=(i=this.subscribers[e])!==null&&i!==void 0?i:this.subscribers[e]=new Wi(this.subject):n=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new Wi(this.subject),n.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 Gi=Object.freeze({unknown:void 0,coupled:1}),w=Q.getById(Te.observable,()=>{const o=It.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=d=>{throw Q.error(1101)};function n(d){var l;let p=(l=d.$fastController)!==null&&l!==void 0?l:e.get(d);return p===void 0&&(Array.isArray(d)?p=s(d):e.set(d,p=new Zs(d))),p}const r=Ys();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,p){const g=this.field,b=l[g];if(b!==p){l[g]=p;const v=l[this.callback];ge(v)&&v.call(l,b,p),n(l).notify(this.name)}}}class h extends Wi{constructor(l,p,g=!1){super(l,p),this.expression=l,this.isVolatileBinding=g,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 p=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),p}requiresUnbind(l){return l.sourceLifetime!==Gi.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,p){this.needsRefresh&&this.last!==null&&this.dispose();const g=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let b;try{b=this.expression(l,p)}finally{i=g}return b}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,p){const g=this.last,b=n(l),v=g===null?this.first:{};if(v.propertySource=l,v.propertyName=p,v.notifier=b,b.subscribe(this,p),g!==null){if(!this.needsRefresh){let k;i=void 0,k=g.propertySource[g.propertyName],i=this,l===k&&(this.needsRefresh=!0)}g.next=v}this.last=v}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 We(h),Object.freeze({setArrayObserverFactory(d){s=d},getNotifier:n,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){n(d).notify(l)},defineProperty(d,l){Rt(l)&&(l=new c(l)),r(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(p){l.setValue(this,p)}})},getAccessors:r,binding(d,l,p=this.isVolatileBinding(d)){return new h(d,l,p)},isVolatileBinding(d){return t.test(d.toString())}})});function y(o,t){w.defineProperty(o,t)}function Ia(o,t,e){return Object.assign({},e,{get(){return w.trackVolatile(),e.get.apply(this)}})}const Js=Q.getById(Te.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),ho=Object.freeze({default:{index:0,length:0,get event(){return ho.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Js.get()},setEvent(o){Js.set(o)}});class jo{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class Pa extends jo{createObserver(t){return w.binding(this.evaluate,t,this.isVolatile)}}function tn(o,t,e=w.isVolatileBinding(o)){return new Pa(o,t,e)}class en extends jo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}We(en);function on(o,t){return new en(o,t)}let sn;function nn(o){return o.map(t=>t instanceof ut?nn(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class ut{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof ut?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(sn),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(nn(this.styles)),this}static setDefaultStrategy(t){sn=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new ut(t):t instanceof ut?t:new ut([t])}}ut.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ui=qi(),Xi=Object.freeze({getForInstance:Ui.getForInstance,getByType:Ui.getByType,define(o){return Ui.register({type:o}),o}});function Ki(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class Yi{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 n=i.setAttribute;i.setAttribute=(r,c)=>{n.call(i,r,c),r==="style"&&i.$cssBindings.forEach((h,d)=>Ki(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){Ki(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){Ki(this,e.controller,e)}}Xi.define(Yi);const Ba=`${Math.random().toString(36).substring(2,8)}`;let Ta=0;const rn=()=>`--v${Ba}${++Ta}`;function an(o,t){const e=[];let i="";const s=[],n=r=>{s.push(r)};for(let r=0,c=o.length-1;r<c;++r){i+=o[r];let h=t[r];ge(h)?h=new Yi(tn(h),rn()).createCSS(n):h instanceof jo?h=new Yi(h,rn()).createCSS(n):Xi.getForInstance(h)!==void 0&&(h=h.createCSS(n)),h instanceof ut||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 u=(o,...t)=>{const{styles:e,behaviors:i}=an(o,t),s=new ut(e);return i.length?s.withBehaviors(...i):s};class ln{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,n)=>(Rt(n)?this.css+=n:s.push(n),s),[]);i.length&&(this.styles=new ut(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)}}Xi.define(ln),u.partial=(o,...t)=>{const{styles:e,behaviors:i}=an(o,t);return new ln(e,i)};const Qi=`fast-${Math.random().toString(36).substring(2,8)}`,qo=`${Qi}{`,uo=`}${Qi}`,za=uo.length;let Fa=0;const Zi=()=>`${Qi}-${++Fa}`,cn=Object.freeze({interpolation:o=>`${qo}${o}${uo}`,attribute:o=>`${Zi()}="${qo}${o}${uo}"`,comment:o=>`<!--${qo}${o}${uo}-->`}),Wo=Object.freeze({parse(o,t){const e=o.split(qo);if(e.length===1)return null;const i=[];for(let s=0,n=e.length;s<n;++s){const r=e[s],c=r.indexOf(uo);let h;if(c===-1)h=r;else{const d=r.substring(0,c);i.push(t[d]),h=r.substring(c+za)}h!==""&&i.push(h)}return i}}),Ji=qi(),Pt=Object.freeze({getForInstance:Ji.getForInstance,getByType:Ji.getByType,define(o,t){return t=t||{},t.type=o,Ji.register(t),o},assignAspect(o,t){if(!t){o.aspectType=et.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?et.tokenList:et.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=et.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=et.event;break;default:o.targetAspect=t,o.aspectType=et.attribute;break}}});class ts{constructor(t){this.options=t}createHTML(t){return cn.attribute(t(this))}createBehavior(){return this}}We(ts);function Oa(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 Aa(o,t,e){var i;const s=`${this.id}-t`,n=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},r=n.cv;let c=n.v;const h=o[t];if(e!=null&&e.length){const d=e.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const g=d[l];g!==""&&(r[g]=c,h.add(g))}}if(n.v=c+1,c!==0){c-=1;for(const d in r)r[d]===c&&h.remove(d)}}const Ea={[et.attribute]:Ge.setAttribute,[et.booleanAttribute]:Ge.setBooleanAttribute,[et.property]:(o,t,e)=>o[t]=e,[et.content]:Oa,[et.tokenList]:Aa,[et.event]:()=>{}};class Ue{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=et.content}createHTML(t){return cn.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Ea[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw Q.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 et.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case et.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){ho.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);ho.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)}}Pt.define(Ue,{aspected:!0});function dn(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 Go{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=Gi.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return ho.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,n;for(;s!==e;)n=s.nextSibling,i.insertBefore(s,t),s=n;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(){dn(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 n=0,r=s.length;n<r;++n){const c=s[n].createBehavior();c.bind(this),i[n]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++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){dn(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}We(Go),w.defineProperty(Go.prototype,"index"),w.defineProperty(Go.prototype,"length");const hn=(o,t)=>`${o}.${t}`,un={},Dt={index:0,node:null};function pn(o){o.startsWith("fast-")||Q.warn(1204,{name:o})}const La=new Proxy(document.createElement("div"),{get(o,t){pn(t);const e=Reflect.get(o,t);return ge(e)?e.bind(o):e},set(o,t,e){return pn(t),Reflect.set(o,t,e)}});class Ma{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,n){var r,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(e,i,s)),t.id=(r=t.id)!==null&&r!==void 0?r:Zi(),t.targetNodeId=i,t.targetTagName=n,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 r=t.lastIndexOf("."),c=t.substring(0,r),h=parseInt(t.substring(r+1));this.addTargetDescriptor(c,t,h)}let n=un[e];if(!n){const r=`_${e}`;un[e]=n={get(){var c;return(c=this[r])!==null&&c!==void 0?c:this[r]=this[t].childNodes[i]}}}s[e]=n}createView(t){const e=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=e,i.h=t??La;for(const s of this.nodeIds)i[s];return new Go(e,this.factories,i)}}function fn(o,t,e,i,s,n=!1){const r=e.attributes,c=o.directives;for(let h=0,d=r.length;h<d;++h){const l=r[h],p=l.value,g=Wo.parse(p,c);let b=null;g===null?n&&(b=new Ue(on(()=>p,o.policy)),Pt.assignAspect(b,l.name)):b=es.aggregate(g,o.policy),b!==null&&(e.removeAttributeNode(l),h--,d--,o.addFactory(b,t,i,s,e.tagName))}}function _a(o,t,e,i,s){const n=Wo.parse(t.textContent,o.directives);if(n===null)return Dt.node=t.nextSibling,Dt.index=s+1,Dt;let r,c=r=t;for(let h=0,d=n.length;h<d;++h){const l=n[h];h!==0&&(s++,i=hn(e,s),r=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Rt(l)?r.textContent=l:(r.textContent=" ",Pt.assignAspect(l),o.addFactory(l,e,i,s,null)),c=r}return Dt.index=s+1,Dt.node=c.nextSibling,Dt}function gn(o,t,e){let i=0,s=t.firstChild;for(;s;){const n=Ra(o,e,s,i);s=n.node,i=n.index}}function Ra(o,t,e,i){const s=hn(t,i);switch(e.nodeType){case 1:fn(o,t,e,s,i),gn(o,e,s);break;case 3:return _a(o,e,t,s,i);case 8:const n=Wo.parse(e.data,o.directives);n!==null&&o.addFactory(es.aggregate(n),t,s,i,null);break}return Dt.index=i+1,Dt.node=e.nextSibling,Dt}function Da(o,t){return o&&o.nodeType==8&&Wo.parse(o.data,t)!==null}const bn="TEMPLATE",es={compile(o,t,e=Ge.policy){let i;if(Rt(o)){i=document.createElement(bn),i.innerHTML=e.createHTML(o);const r=i.content.firstElementChild;r!==null&&r.tagName===bn&&(i=r)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),n=new Ma(s,t,e);return fn(n,"",i,"h",0,!0),(Da(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),gn(n,s,"r"),Dt.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Ge.policy){if(o.length===1)return o[0];let e,i,s=!1,n;const r=o.length,c=o.map(l=>Rt(l)?()=>l:(e=l.sourceAspect||e,i=l.dataBinding||i,s=s||l.dataBinding.isVolatile,n=n||l.dataBinding.policy,l.dataBinding.evaluate)),h=(l,p)=>{let g="";for(let b=0;b<r;++b)g+=c[b](l,p);return g};i.evaluate=h,i.isVolatile=s,i.policy=n??t;const d=new Ue(i);return Pt.assignAspect(d,e),d}},Ha=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Va=Object.create(null);class ze{constructor(t,e=Va){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}ze.empty=new ze(""),Pt.define(ze);function Na(o,t,e,i=Pt.getForInstance(o)){if(i.aspected){const s=Ha.exec(t);s!==null&&Pt.assignAspect(o,s[2])}return o.createHTML(e)}class Di{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=es.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new ze(Rt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw Q.error(1208);if(this.policy)throw Q.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 n=Object.create(null),r=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=Zi();return n[d]=c,d};for(let c=0,h=t.length-1;c<h;++c){const d=t[c];let l=e[c],p;if(s+=d,ge(l))l=new Ue(tn(l));else if(l instanceof jo)l=new Ue(l);else if(!(p=Pt.getForInstance(l))){const g=l;l=new Ue(on(()=>g))}s+=Na(l,d,r,p)}return new Di(s+t[t.length-1],n,i)}}We(Di);const $=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Di.create(o,t);throw Q.error(1206)};$.partial=o=>new ze(o);class mn extends ts{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}Pt.define(mn);const Bt=o=>new mn(o),ja=()=>null;function vn(o){return o===void 0?ja:ge(o)?o:()=>o}function os(o,t,e){const i=ge(o)?o:()=>o,s=vn(t),n=vn(e);return(r,c)=>i(r,c)?s(r,c):n(r,c)}const qa=o=>o.nodeType===1,Fe=o=>o?t=>t.nodeType===1&&t.matches(o):qa;class $n extends ts{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,Ks),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 yn="slotchange";class xn extends $n{observe(t){t.addEventListener(yn,this)}disconnect(t){t.removeEventListener(yn,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}Pt.define(xn);function pt(o){return Rt(o)&&(o={property:o}),new xn(o)}class kn extends $n{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=Us,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)}}Pt.define(kn);function Wa(o){return Rt(o)&&(o={property:o}),new kn(o)}const wn="boolean",Cn="reflect",Uo=Object.freeze({locate:Ys()}),Sn={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function In(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const ft={toView(o){const t=In(o);return t&&t.toString()},fromView:In};class Hi{constructor(t,e,i=e.toLowerCase(),s=Cn,n){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=s,this.converter=n,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,s===wn&&n===void 0&&(this.converter=Sn)}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"||It.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case Cn:const n=this.converter;Ge.setAttribute(t,this.attribute,n!==void 0?n.toView(s):s);break;case wn:Ge.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Uo.locate(t));for(let s=0,n=e.length;s<n;++s){const r=e[s];if(r!==void 0)for(let c=0,h=r.length;c<h;++c){const d=r[c];Rt(d)?i.push(new Hi(t,d)):i.push(new Hi(t,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,t){let e;function i(s,n){arguments.length>1&&(e.property=n),Uo.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const Pn={mode:"open"},Bn={},Tn=new Set,Xo=Q.getById(Te.elementRegistry,()=>qi());class _t{constructor(t,e=t.definition){var i;this.platformDefined=!1,Rt(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,n=Hi.collect(t,e.attributes),r=new Array(n.length),c={},h={};for(let d=0,l=n.length;d<l;++d){const p=n[d];r[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,w.defineProperty(s,p)}Reflect.defineProperty(t,"observedAttributes",{value:r,enumerable:!0}),this.attributes=n,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=e.shadowOptions===void 0?Pn:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Pn),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Bn:Object.assign(Object.assign({},Bn),e.elementOptions),this.styles=ut.normalize(e.styles),Xo.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 Tn.has(t)||Xo.getByType(t)?new _t(class extends t{},e):new _t(t,e)}static registerBaseType(t){Tn.add(t)}}_t.getByType=Xo.getByType,_t.getForInstance=Xo.getForInstance;const Ga={bubbles:!0,composed:!0,cancelable:!0},is="isConnected",zn=new WeakMap;function Ko(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:zn.get(o))!==null&&e!==void 0?e:null}let Fn;class Yo extends Zs{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 n=t.shadowRoot;n?this.hasExistingShadowRoot=!0:(n=t.attachShadow(i),i.mode==="closed"&&zn.set(t,n))}const s=w.getAccessors(t);if(s.length>0){const n=this.boundObservables=Object.create(null);for(let r=0,c=s.length;r<c;++r){const h=s[r].name,d=t[h];d!==void 0&&(delete t[h],n[h]=d)}}}get isConnected(){return w.track(this,is),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:ho.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,n=(i=s.get(t))!==null&&i!==void 0?i:0;n===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,n+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=Ko(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 n=0,r=s.length;n<r;++n)this.addBehavior(s[n])}}removeStyles(t){var e;if(!t)return;const i=this.source;if(t instanceof HTMLElement)((e=Ko(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 n=0,r=s.length;n<r;++n)this.removeBehavior(s[n])}}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 n=0,r=s.length;n<r;++n){const c=s[n];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,is)}disconnect(){if(this.stage!==1)return;this.stage=2,w.notify(this,is),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},Ga),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=Ko(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 n=s.firstChild;n!==null;n=s.firstChild)s.removeChild(n)}t&&(this.view=t.render(i,s,i),this.view.sourceLifetime=Gi.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=_t.getForInstance(t);if(i===void 0)throw Q.error(1401);return t.$fastController=new Fn(t,i)}static setStrategy(t){Fn=t}}We(Yo),Yo.setStrategy(Yo);function Qo(o){var t;return"adoptedStyleSheets"in o?o:(t=Ko(o))!==null&&t!==void 0?t:o.getRootNode()}class Vi{constructor(t){const e=Vi.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){An(Qo(t),this.sheets)}removeStylesFrom(t){En(Qo(t),this.sheets)}}Vi.styleSheetCache=new Map;let Ua=0;const Xa=()=>`fast-${++Ua}`;function On(o){return o===document?document.body:o}class Ka{constructor(t){this.styles=t,this.styleClass=Xa()}addStylesTo(t){t=On(Qo(t));const e=this.styles,i=this.styleClass;for(let s=0;s<e.length;s++){const n=document.createElement("style");n.innerHTML=e[s],n.className=i,t.append(n)}}removeStylesFrom(t){t=On(Qo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let An=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},En=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(ut.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),An=(o,t)=>{o.adoptedStyleSheets.push(...t)},En=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ut.setDefaultStrategy(Vi)}else ut.setDefaultStrategy(Ka);function Ln(o){const t=class extends o{constructor(){super(),Yo.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 _t.registerBaseType(t),t}function Ya(o,t){return ge(o)?_t.compose(o,t):_t.compose(this,o)}function Qa(o,t){return ge(o)?_t.compose(o,t).define().type:_t.compose(this,o).define().type}function Za(o){return Ln(o)}const I=Object.assign(Ln(HTMLElement),{from:Za,define:Qa,compose:Ya}),nt={horizontal:"horizontal",vertical:"vertical"};function Mn(...o){return o.every(t=>t instanceof HTMLElement)}const Xe="ArrowDown",Ke="ArrowLeft",Ye="ArrowRight",Qe="ArrowUp",Zo="End",Ze="Enter",_n="Escape",Jo="Home",ti=" ",Ja="Tab",tl={ArrowDown:Xe,ArrowLeft:Ke,ArrowRight:Ye,ArrowUp:Qe};var wt;(function(o){o.ltr="ltr",o.rtl="rtl"})(wt||(wt={}));function el(o,t,e){return e<o?t:e>t?o:e}function ss(o,t,e){return Math.min(Math.max(e,o),t)}let ol=0;function ns(o=""){return`${o}${ol++}`}var il=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,q=(o,t,e,i)=>{for(var s=i>1?void 0:i?sl(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&il(t,e,s),s};class W{}q([a({attribute:"aria-atomic"})],W.prototype,"ariaAtomic",2),q([a({attribute:"aria-busy"})],W.prototype,"ariaBusy",2),q([a({attribute:"aria-controls"})],W.prototype,"ariaControls",2),q([a({attribute:"aria-current"})],W.prototype,"ariaCurrent",2),q([a({attribute:"aria-describedby"})],W.prototype,"ariaDescribedby",2),q([a({attribute:"aria-details"})],W.prototype,"ariaDetails",2),q([a({attribute:"aria-disabled"})],W.prototype,"ariaDisabled",2),q([a({attribute:"aria-errormessage"})],W.prototype,"ariaErrormessage",2),q([a({attribute:"aria-flowto"})],W.prototype,"ariaFlowto",2),q([a({attribute:"aria-haspopup"})],W.prototype,"ariaHaspopup",2),q([a({attribute:"aria-hidden"})],W.prototype,"ariaHidden",2),q([a({attribute:"aria-invalid"})],W.prototype,"ariaInvalid",2),q([a({attribute:"aria-keyshortcuts"})],W.prototype,"ariaKeyshortcuts",2),q([a({attribute:"aria-label"})],W.prototype,"ariaLabel",2),q([a({attribute:"aria-labelledby"})],W.prototype,"ariaLabelledby",2),q([a({attribute:"aria-live"})],W.prototype,"ariaLive",2),q([a({attribute:"aria-owns"})],W.prototype,"ariaOwns",2),q([a({attribute:"aria-relevant"})],W.prototype,"ariaRelevant",2),q([a({attribute:"aria-roledescription"})],W.prototype,"ariaRoledescription",2);const Rn=o=>o.closest("[dir]")?.dir==="rtl"?wt.rtl:wt.ltr;function gt(o){return o?typeof o=="string"?new ze(o):"inline"in o?o.inline():o:ze.empty}const Dn=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,nl=":host([hidden]){display:none}";function F(o){return`${nl}:host{display:${o}}`}class rl{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 Ho extends rl{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Ho(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:n}=this;n&&!e?(t.addStyles(i),e=n):!n&&e&&(t.removeStyles(i),e=n)}}removedCallback(t){t.removeStyles(this.styles)}}const bt=Ho.with(window.matchMedia("(forced-colors)"));Ho.with(window.matchMedia("(prefers-color-scheme: dark)")),Ho.with(window.matchMedia("(prefers-color-scheme: light)"));class Jt{}function te(o){return $`<slot name="end" ${Bt("end")}>${gt(o.end)}</slot>`.inline()}function ee(o){return $`<slot name="start" ${Bt("start")}>${gt(o.start)}</slot>`.inline()}function oe(o,...t){const e=Uo.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(i.prototype,n))}),Uo.locate(i).forEach(n=>e.push(n))})}var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Oe=(o,t,e,i)=>{for(var s=i>1?void 0:i?ll(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&al(t,e,s),s};class rt extends I{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=ns("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}Oe([a({attribute:"heading-level",mode:"fromView",converter:ft})],rt.prototype,"headinglevel",2),Oe([a({mode:"boolean"})],rt.prototype,"expanded",2),Oe([a({mode:"boolean"})],rt.prototype,"disabled",2),Oe([a],rt.prototype,"id",2),Oe([a],rt.prototype,"size",2),Oe([a({mode:"boolean"})],rt.prototype,"block",2),Oe([a({attribute:"expand-icon-position"})],rt.prototype,"expandIconPosition",2),oe(rt,Jt);const D="var(--colorNeutralForeground1)",Hn="var(--colorNeutralForeground1Hover)",cl="var(--colorNeutralForeground1Pressed)",Ht="var(--colorNeutralForeground2)",ei="var(--colorNeutralForeground2Hover)",oi="var(--colorNeutralForeground2Pressed)",dl="var(--colorNeutralForeground2Selected)",ii="var(--colorNeutralForeground2BrandHover)",si="var(--colorNeutralForeground2BrandPressed)",hl="var(--colorNeutralForeground2BrandSelected)",at="var(--colorNeutralForeground3)",ul="var(--colorNeutralForeground3Hover)",pl="var(--colorNeutralForeground3Pressed)",fl="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",gl="var(--colorBrandForegroundLink)",bl="var(--colorBrandForegroundLinkHover)",ml="var(--colorBrandForegroundLinkPressed)",vl="var(--colorNeutralForeground2Link)",$l="var(--colorNeutralForeground2LinkHover)",yl="var(--colorNeutralForeground2LinkPressed)",Vn="var(--colorCompoundBrandForeground1)",Nn="var(--colorCompoundBrandForeground1Hover)",jn="var(--colorCompoundBrandForeground1Pressed)",ie="var(--colorNeutralForegroundOnBrand)",ni="var(--colorNeutralForegroundInverted)",xl="var(--colorNeutralForegroundInvertedHover)",kl="var(--colorNeutralForegroundInvertedPressed)",qn="var(--colorNeutralForegroundStaticInverted)",rs="var(--colorBrandForeground1)",wl="var(--colorBrandForeground2)",Cl="var(--colorNeutralForeground1Static)",H="var(--colorNeutralBackground1)",as="var(--colorNeutralBackground1Hover)",Wn="var(--colorNeutralBackground1Pressed)",Gn="var(--colorNeutralBackground1Selected)",Un="var(--colorNeutralBackground3)",Sl="var(--colorNeutralBackground4)",Il="var(--colorNeutralBackground5)",ri="var(--colorNeutralBackground6)",Pl="var(--colorNeutralBackgroundInverted)",Bl="var(--colorSubtleBackground)",ls="var(--colorSubtleBackgroundHover)",ai="var(--colorSubtleBackgroundPressed)",Tl="var(--colorSubtleBackgroundSelected)",Tt="var(--colorTransparentBackground)",cs="var(--colorTransparentBackgroundHover)",ds="var(--colorTransparentBackgroundPressed)",zl="var(--colorTransparentBackgroundSelected)",po="var(--colorNeutralBackgroundDisabled)",Fl="var(--colorBackgroundOverlay)",hs="var(--colorBrandBackground)",Xn="var(--colorBrandBackgroundHover)",Kn="var(--colorBrandBackgroundPressed)",Ol="var(--colorBrandBackgroundSelected)",fo="var(--colorCompoundBrandBackground)",go="var(--colorCompoundBrandBackgroundHover)",bo="var(--colorCompoundBrandBackgroundPressed)",Yn="var(--colorBrandBackgroundStatic)",Al="var(--colorBrandBackground2)",se="var(--colorNeutralStrokeAccessible)",mo="var(--colorNeutralStrokeAccessibleHover)",vo="var(--colorNeutralStrokeAccessiblePressed)",Je="var(--colorNeutralStroke1)",li="var(--colorNeutralStroke1Hover)",us="var(--colorNeutralStroke1Pressed)",$o="var(--colorNeutralStroke2)",El="var(--colorNeutralStroke3)",Ll="var(--colorNeutralStrokeOnBrand2)",Qn="var(--colorBrandStroke1)",Zn="var(--colorBrandStroke2)",ps="var(--colorCompoundBrandStroke)",fs="var(--colorCompoundBrandStrokeHover)",gs="var(--colorCompoundBrandStrokePressed)",ne="var(--colorNeutralStrokeDisabled)",Vt="var(--colorTransparentStroke)",Jn="var(--colorTransparentStrokeInteractive)",ci="var(--colorStrokeFocus1)",re="var(--colorStrokeFocus2)",Ml="var(--colorPaletteRedBackground1)",_l="var(--colorPaletteRedBackground2)",tr="var(--colorPaletteRedBackground3)",Rl="var(--colorPaletteRedBorder1)",Dl="var(--colorPaletteRedBorder2)",er="var(--colorPaletteRedForeground1)",Hl="var(--colorPaletteRedForeground2)",or="var(--colorPaletteRedForeground3)",Vl="var(--colorPaletteGreenBackground1)",ir="var(--colorPaletteGreenBackground3)",Nl="var(--colorPaletteGreenBorder2)",jl="var(--colorPaletteGreenForeground1)",ql="var(--colorPaletteGreenForeground2)",Wl="var(--colorPaletteGreenForeground3)",Gl="var(--colorPaletteDarkOrangeBackground1)",sr="var(--colorPaletteDarkOrangeBackground3)",Ul="var(--colorPaletteDarkOrangeBorder1)",Xl="var(--colorPaletteDarkOrangeForeground1)",nr="var(--colorPaletteDarkOrangeForeground3)",Kl="var(--colorPaletteYellowBackground1)",Yl="var(--colorPaletteYellowBackground3)",Ql="var(--colorPaletteYellowBorder1)",bs="var(--colorPaletteYellowForeground2)",Zl="var(--colorPaletteMarigoldBackground2)",Jl="var(--colorPaletteMarigoldForeground2)",tc="var(--colorPaletteAnchorBackground2)",ec="var(--colorPaletteAnchorForeground2)",oc="var(--colorPaletteBeigeBackground2)",ic="var(--colorPaletteBeigeForeground2)",sc="var(--colorPaletteBlueBackground2)",nc="var(--colorPaletteBlueForeground2)",rc="var(--colorPaletteBrassBackground2)",ac="var(--colorPaletteBrassForeground2)",lc="var(--colorPaletteBrownBackground2)",cc="var(--colorPaletteBrownForeground2)",dc="var(--colorPaletteCornflowerBackground2)",hc="var(--colorPaletteCornflowerForeground2)",uc="var(--colorPaletteCranberryBackground2)",pc="var(--colorPaletteCranberryForeground2)",fc="var(--colorPaletteDarkGreenBackground2)",gc="var(--colorPaletteDarkGreenForeground2)",bc="var(--colorPaletteDarkRedBackground2)",mc="var(--colorPaletteDarkRedForeground2)",vc="var(--colorPaletteForestBackground2)",$c="var(--colorPaletteForestForeground2)",yc="var(--colorPaletteGoldBackground2)",xc="var(--colorPaletteGoldForeground2)",kc="var(--colorPaletteGrapeBackground2)",wc="var(--colorPaletteGrapeForeground2)",Cc="var(--colorPaletteLavenderBackground2)",Sc="var(--colorPaletteLavenderForeground2)",Ic="var(--colorPaletteLightTealBackground2)",Pc="var(--colorPaletteLightTealForeground2)",Bc="var(--colorPaletteLilacBackground2)",Tc="var(--colorPaletteLilacForeground2)",zc="var(--colorPaletteMagentaBackground2)",Fc="var(--colorPaletteMagentaForeground2)",Oc="var(--colorPaletteMinkBackground2)",Ac="var(--colorPaletteMinkForeground2)",Ec="var(--colorPaletteNavyBackground2)",Lc="var(--colorPaletteNavyForeground2)",Mc="var(--colorPalettePeachBackground2)",_c="var(--colorPalettePeachForeground2)",Rc="var(--colorPalettePinkBackground2)",Dc="var(--colorPalettePinkForeground2)",Hc="var(--colorPalettePlatinumBackground2)",Vc="var(--colorPalettePlatinumForeground2)",Nc="var(--colorPalettePlumBackground2)",jc="var(--colorPalettePlumForeground2)",qc="var(--colorPalettePumpkinBackground2)",Wc="var(--colorPalettePumpkinForeground2)",Gc="var(--colorPalettePurpleBackground2)",Uc="var(--colorPalettePurpleForeground2)",Xc="var(--colorPaletteRoyalBlueBackground2)",Kc="var(--colorPaletteRoyalBlueForeground2)",Yc="var(--colorPaletteSeafoamBackground2)",Qc="var(--colorPaletteSeafoamForeground2)",Zc="var(--colorPaletteSteelBackground2)",Jc="var(--colorPaletteSteelForeground2)",td="var(--colorPaletteTealBackground2)",ed="var(--colorPaletteTealForeground2)",ms="var(--borderRadiusNone)",zt="var(--borderRadiusSmall)",R="var(--borderRadiusMedium)",rr="var(--borderRadiusLarge)",ar="var(--borderRadiusXLarge)",mt="var(--borderRadiusCircular)",x="var(--fontFamilyBase)",od="var(--fontFamilyMonospace)",id="var(--fontFamilyNumeric)",yo="var(--fontSizeBase100)",Z="var(--fontSizeBase200)",L="var(--fontSizeBase300)",vt="var(--fontSizeBase400)",Ae="var(--fontSizeBase500)",di="var(--fontSizeBase600)",lr="var(--fontSizeHero700)",cr="var(--fontSizeHero800)",dr="var(--fontSizeHero900)",hr="var(--fontSizeHero1000)",M="var(--fontWeightRegular)",sd="var(--fontWeightMedium)",G="var(--fontWeightSemibold)",hi="var(--fontWeightBold)",ui="var(--lineHeightBase100)",$t="var(--lineHeightBase200)",V="var(--lineHeightBase300)",Ft="var(--lineHeightBase400)",pi="var(--lineHeightBase500)",ur="var(--lineHeightBase600)",pr="var(--lineHeightHero700)",fr="var(--lineHeightHero800)",gr="var(--lineHeightHero900)",br="var(--lineHeightHero1000)",mr="var(--shadow2)",fi="var(--shadow4)",nd="var(--shadow8)",vr="var(--shadow16)",rd="var(--shadow28)",ad="var(--shadow64)",ot="var(--strokeWidthThin)",Ee="var(--strokeWidthThick)",be="var(--strokeWidthThicker)",$r="var(--strokeWidthThickest)",Le="var(--spacingHorizontalXXS)",ae="var(--spacingHorizontalXS)",Me="var(--spacingHorizontalSNudge)",Nt="var(--spacingHorizontalS)",le="var(--spacingHorizontalMNudge)",me="var(--spacingHorizontalM)",ld="var(--spacingHorizontalL)",cd="var(--spacingHorizontalXXL)",gi="var(--spacingVerticalXXS)",dd="var(--spacingVerticalXS)",xo="var(--spacingVerticalSNudge)",J="var(--spacingVerticalS)",yr="var(--spacingVerticalMNudge)",xr="var(--spacingVerticalL)",ko="var(--spacingVerticalXXL)",hd="var(--durationUltraFast)",vs="var(--durationFaster)",kr="var(--durationNormal)",ud="var(--durationGentle)",pd="var(--durationSlow)",wr="var(--durationSlower)",bi="var(--durationUltraSlow)",fd="var(--curveAccelerateMax)",$s="var(--curveAccelerateMid)",gd="var(--curveAccelerateMin)",Cr="var(--curveDecelerateMax)",ys="var(--curveDecelerateMid)",bd="var(--curveDecelerateMin)",md="var(--curveEasyEaseMax)",xs="var(--curveEasyEase)",Sr="var(--curveLinear)",vd=u`
2
+ ${F("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${fe} ${re};border-radius:${_};font-family:${x};font-size:${E};font-weight:${M};line-height:${H};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:${R};background:${It};line-height:${H};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:${Pt}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${Dt};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${fe}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${Dt};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Pt};outline:none;border:2px solid ${ti};box-shadow:inset 0 0 0 1px ${ie}}:host([disabled]) .button{color:${S}}: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:${H}}:host([size='small']) .heading{font-size:${Q};line-height:${mt}}:host([size='large']) .heading{font-size:${bt};line-height:${Bt}}:host([size='extra-large']) .heading{font-size:${Oe};line-height:${si}}: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}`,ld=v.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${me} ${le};border-radius:${R};font-family:${x};font-size:${L};font-weight:${M};line-height:${V};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:${D};background:${Tt};line-height:${V};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:${zt}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${Nt};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${me}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${Nt};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${zt};outline:none;border:2px solid ${ci};box-shadow:inset 0 0 0 1px ${re}}:host([disabled]) .button{color:${S}}: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:${L};line-height:${V}}:host([size='small']) .heading{font-size:${Z};line-height:${$t}}:host([size='large']) .heading{font-size:${vt};line-height:${Ft}}:host([size='extra-large']) .heading{font-size:${Ae};line-height:${pi}}: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}`,$d=$.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>`),cd=v.partial(`<svg
16
+ </svg>`),yd=$.partial(`<svg
17
17
  width="20"
18
18
  height="20"
19
19
  viewBox="0 0 20 20"
@@ -25,38 +25,38 @@ 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 dd(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${St("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>${Zt(o)} ${Qt(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${pt(o.expandedIcon)}</slot><slot name="collapsed-icon">${pt(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 hd=dd({collapsedIcon:ld,expandedIcon:cd}),ud=rt.compose({name:`${b.prefix}-accordion-item`,template:hd,styles:ad});ud.define(b.registry);const fs={single:"single",multi:"multi"};var pd=Object.defineProperty,fd=Object.getOwnPropertyDescriptor,mn=(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 gs extends I{constructor(){super(...arguments),this.expandmode=fs.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 rt&&(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 rt&&(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 Ye:t.preventDefault(),this.adjust(-1);break;case Ue:t.preventDefault(),this.adjust(1);break;case qo:this.activeItemIndex=0,this.focusItem();break;case jo: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!==fs.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 rt&&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 rt&&(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===fs.single}adjust(t){this.activeItemIndex=qa(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof rt&&t.expandbutton.focus()}}mn([a({attribute:"expand-mode"})],gs.prototype,"expandmode",2),mn([y],gs.prototype,"slottedAccordionItems",2);const gd=u`
29
- ${z("flex")}
28
+ </svg>`);function xd(o={}){return $`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Bt("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>${ee(o)} ${te(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${gt(o.expandedIcon)}</slot><slot name="collapsed-icon">${gt(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 kd=xd({collapsedIcon:$d,expandedIcon:yd}),wd=rt.compose({name:`${m.prefix}-accordion-item`,template:kd,styles:vd});wd.define(m.registry);const ks={single:"single",multi:"multi"};var Cd=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,Ir=(o,t,e,i)=>{for(var s=i>1?void 0:i?Sd(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Cd(t,e,s),s};class ws extends I{constructor(){super(...arguments),this.expandmode=ks.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 rt&&(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 rt&&(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 Qe:t.preventDefault(),this.adjust(-1);break;case Xe:t.preventDefault(),this.adjust(1);break;case Jo:this.activeItemIndex=0,this.focusItem();break;case Zo: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!==ks.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 rt&&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 rt&&(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===ks.single}adjust(t){this.activeItemIndex=el(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof rt&&t.expandbutton.focus()}}Ir([a({attribute:"expand-mode"})],ws.prototype,"expandmode",2),Ir([y],ws.prototype,"slottedAccordionItems",2);const Id=u`
29
+ ${F("flex")}
30
30
 
31
- :host{flex-direction:column;width:100%;contain:content}`;function bd(){return v`<template><slot ${ht({property:"slottedAccordionItems",filter:ze()})}></slot></template>`}const md=bd(),vd=gs.compose({name:`${b.prefix}-accordion`,template:md,styles:gd});vd.define(b.registry);const $d=CSS.supports("selector(:state(g))");function $(o,t,e){if(!$d){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)}const li={submit:"submit",reset:"reset",button:"button"},yd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var xd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,kt=(o,t,e,i)=>{for(var s=i>1?void 0:i?kd(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&&xd(t,e,s),s};class Ht extends I{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),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 yd){const i=this.$fastController.definition.attributeLookup[e]?.attribute;i&&this.handleProxyAttributeChange(i,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===Qe){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}kt([a],Ht.prototype,"download",2),kt([a],Ht.prototype,"href",2),kt([a],Ht.prototype,"hreflang",2),kt([a],Ht.prototype,"ping",2),kt([a],Ht.prototype,"referrerpolicy",2),kt([a],Ht.prototype,"rel",2),kt([a],Ht.prototype,"target",2),kt([a],Ht.prototype,"type",2);class Je extends Ht{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){$(this.elementInternals,"icon",!!e)}}kt([a],Je.prototype,"appearance",2),kt([a],Je.prototype,"shape",2),kt([a],Je.prototype,"size",2),kt([a({attribute:"icon-only",mode:"boolean"})],Je.prototype,"iconOnly",2),Jt(Je,Yt);const ne=u.partial`:is([state--ghost], :state(ghost))`,at=u.partial`:is([state--primary], :state(primary))`,G=u.partial`:is([state--outline], :state(outline))`,W=u.partial`:is([state--subtle], :state(subtle))`,ge=u.partial`:is([state--tint], :state(tint))`,U=u.partial`:is([state--transparent], :state(transparent))`,vn=u.partial`:is([state--circular], :state(circular))`,be=u.partial`:is([state--rounded], :state(rounded))`,bs=u.partial`:is([state--square], :state(square))`,ci=u.partial`:is([state--tiny], :state(tiny))`,di=u.partial`:is([state--extra-small], :state(extra-small))`,me=u.partial`:is([state--small], :state(small))`,ae=u.partial`:is([state--large], :state(large))`,$n=u.partial`:is([state--extra-large], :state(extra-large))`,to=u.partial`:is([state--icon], :state(icon))`,O=u.partial`:is([state--pressed], :state(pressed))`,hi=u.partial`:is([state--danger], :state(danger))`,ui=u.partial`:is([state--important], :state(important))`,pi=u.partial`:is([state--informative], :state(informative))`,fi=u.partial`:is([state--severe], :state(severe))`,gi=u.partial`:is([state--success], :state(success))`,bi=u.partial`:is([state--warning], :state(warning))`,yn=u`
32
- ${z("inline-flex")}
31
+ :host{flex-direction:column;width:100%;contain:content}`;function Pd(){return $`<template><slot ${pt({property:"slottedAccordionItems",filter:Fe()})}></slot></template>`}const Bd=Pd(),Td=ws.compose({name:`${m.prefix}-accordion`,template:Bd,styles:Id});Td.define(m.registry);const zd=CSS.supports("selector(:state(g))");function f(o,t,e){if(!zd){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)}const mi={submit:"submit",reset:"reset",button:"button"},Fd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Od=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Ct=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ad(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Od(t,e,s),s};class jt extends I{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),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 Fd){const i=this.$fastController.definition.attributeLookup[e]?.attribute;i&&this.handleProxyAttributeChange(i,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===Ze){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}Ct([a],jt.prototype,"download",2),Ct([a],jt.prototype,"href",2),Ct([a],jt.prototype,"hreflang",2),Ct([a],jt.prototype,"ping",2),Ct([a],jt.prototype,"referrerpolicy",2),Ct([a],jt.prototype,"rel",2),Ct([a],jt.prototype,"target",2),Ct([a],jt.prototype,"type",2);class to extends jt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){f(this.elementInternals,"icon",!!e)}}Ct([a],to.prototype,"appearance",2),Ct([a],to.prototype,"shape",2),Ct([a],to.prototype,"size",2),Ct([a({attribute:"icon-only",mode:"boolean"})],to.prototype,"iconOnly",2),oe(to,Jt);const vi=u.partial`:is([state--filled-lighter], :state(filled-lighter))`,$i=u.partial`:is([state--filled-darker], :state(filled-darker))`,ce=u.partial`:is([state--ghost], :state(ghost))`,Pr=u.partial`:is([state--inverted], :state(inverted))`,lt=u.partial`:is([state--primary], :state(primary))`,U=u.partial`:is([state--outline], :state(outline))`,wo=u.partial`:is([state--strong], :state(strong))`,B=u.partial`:is([state--subtle], :state(subtle))`,ve=u.partial`:is([state--tint], :state(tint))`,Co=u.partial`:is([state--underline], :state(underline))`,X=u.partial`:is([state--transparent], :state(transparent))`,So=u.partial`:is([state--circular], :state(circular))`,de=u.partial`:is([state--rounded], :state(rounded))`,yi=u.partial`:is([state--square], :state(square))`,Io=u.partial`:is([state--tiny], :state(tiny))`,Po=u.partial`:is([state--extra-small], :state(extra-small))`,ct=u.partial`:is([state--small], :state(small))`,N=u.partial`:is([state--large], :state(large))`,Cs=u.partial`:is([state--extra-large], :state(extra-large))`,Ed=u.partial`:is([state--huge], :state(huge))`,Br=u.partial`:is([state--align-start], :state(align-start))`,Tr=u.partial`:is([state--align-end], :state(align-end))`,Ss=u.partial`:is([state--inset], :state(inset))`,eo=u.partial`:is([state--icon], :state(icon))`,A=u.partial`:is([state--pressed], :state(pressed))`,Bo=u.partial`:is([state--brand], :state(brand))`,zr=u.partial`:is([state--error], :state(error))`,xi=u.partial`:is([state--danger], :state(danger))`,ki=u.partial`:is([state--important], :state(important))`,wi=u.partial`:is([state--informative], :state(informative))`,Ci=u.partial`:is([state--severe], :state(severe))`,oo=u.partial`:is([state--success], :state(success))`,io=u.partial`:is([state--warning], :state(warning))`,St=u.partial`:is([state--vertical], :state(vertical))`;u.partial`:is([state--horizontal], :state(horizontal))`;const Fr=u`
32
+ ${F("inline-flex")}
33
33
 
34
- :host{--icon-spacing:${Me};position:relative;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:${D};color:${R};border:${et} solid ${Ze};padding:0 ${fe};min-width:96px;border-radius:${_};font-size:${E};font-family:${x};font-weight:${q};line-height:${H};transition-duration:${ds};transition-property:background,border,color;transition-timing-function:${ps};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ji};color:${zr};border-color:${Jo}}:host(:hover:active){background-color:${Mr};border-color:${ss};color:${Za};outline-style:none}:host(:focus-visible){border-color:${Rt};outline:${Ae} solid ${Rt};box-shadow:${ri},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}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${to}){min-width:32px;max-width:32px}:host(${me}){--icon-spacing:${se};min-height:24px;min-width:64px;padding:0 ${Dt};border-radius:${Pt};font-size:${Q};line-height:${mt};font-weight:${M}}:host(${me}${to}){min-width:24px;max-width:24px}:host(${ae}){min-height:40px;border-radius:${Yr};padding:0 ${Qc};font-size:${bt};line-height:${Bt}}:host(${ae}${to}){min-width:40px;max-width:40px}:host(${ae}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${vn},${vn}:focus-visible)){border-radius:${gt}}:host(:is(${bs},${bs}:focus-visible)){border-radius:${cs}}:host(${at}){background-color:${is};color:${te};border-color:transparent}:host(${at}:hover){background-color:${Rr}}:host(${at}:is(:hover,:hover:active)){border-color:transparent;color:${te}}:host(${at}:hover:active){background-color:${Dr}}:host(${at}:focus-visible){border-color:${te};box-shadow:${ln},0 0 0 2px ${ie}}:host(${G}){background-color:${It}}:host(${G}:hover){background-color:${es}}:host(${G}:hover:active){background-color:${os}}:host(${W}){background-color:${ml};color:${_t};border-color:transparent}:host(${W}:hover){background-color:${ts};color:${Go};border-color:transparent}:host(${W}:hover:active){background-color:${Zo};color:${Uo};border-color:transparent}:host(${W}:hover) ::slotted(svg){fill:${Xo}}:host(${W}:hover:active) ::slotted(svg){fill:${Ko}}:host(${U}){background-color:${It};color:${_t}}:host(${U}:hover){background-color:${es};color:${Xo}}:host(${U}:hover:active){background-color:${os};color:${Ko}}:host(:is(${U},${U}:is(:hover,:active))){border-color:transparent}`,mi=u`
35
- ${yn}
34
+ :host{--icon-spacing:${Me};position:relative;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:${H};color:${D};border:${ot} solid ${Je};padding:0 ${me};min-width:96px;border-radius:${R};font-size:${L};font-family:${x};font-weight:${G};line-height:${V};transition-duration:${vs};transition-property:background,border,color;transition-timing-function:${xs};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${as};color:${Hn};border-color:${li}}:host(:hover:active){background-color:${Wn};border-color:${us};color:${cl};outline-style:none}:host(:focus-visible){border-color:${Vt};outline:${Ee} solid ${Vt};box-shadow:${fi},0 0 0 2px ${re}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${eo}){min-width:32px;max-width:32px}:host(${ct}){--icon-spacing:${ae};min-height:24px;min-width:64px;padding:0 ${Nt};border-radius:${zt};font-size:${Z};line-height:${$t};font-weight:${M}}:host(${ct}${eo}){min-width:24px;max-width:24px}:host(${N}){min-height:40px;border-radius:${rr};padding:0 ${ld};font-size:${vt};line-height:${Ft}}:host(${N}${eo}){min-width:40px;max-width:40px}:host(${N}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${So},${So}:focus-visible)){border-radius:${mt}}:host(:is(${yi},${yi}:focus-visible)){border-radius:${ms}}:host(${lt}){background-color:${hs};color:${ie};border-color:transparent}:host(${lt}:hover){background-color:${Xn}}:host(${lt}:is(:hover,:hover:active)){border-color:transparent;color:${ie}}:host(${lt}:hover:active){background-color:${Kn}}:host(${lt}:focus-visible){border-color:${ie};box-shadow:${mr},0 0 0 2px ${re}}:host(${U}){background-color:${Tt}}:host(${U}:hover){background-color:${cs}}:host(${U}:hover:active){background-color:${ds}}:host(${B}){background-color:${Bl};color:${Ht};border-color:transparent}:host(${B}:hover){background-color:${ls};color:${ei};border-color:transparent}:host(${B}:hover:active){background-color:${ai};color:${oi};border-color:transparent}:host(${B}:hover) ::slotted(svg){fill:${ii}}:host(${B}:hover:active) ::slotted(svg){fill:${si}}:host(${X}){background-color:${Tt};color:${Ht}}:host(${X}:hover){background-color:${cs};color:${ii}}:host(${X}:hover:active){background-color:${ds};color:${si}}:host(:is(${X},${X}:is(:hover,:active))){border-color:transparent}`,Si=u`
35
+ ${Fr}
36
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:${co};border-color:${oe};color:${S};cursor:not-allowed}:host(${at}:is(:disabled,[disabled-focusable])),:host(${at}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${G}:is(:disabled,[disabled-focusable])),:host(${G}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${It}}:host(${W}:is(:disabled,[disabled-focusable])),:host(${W}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${It};border-color:transparent}:host(${U}:is(:disabled,[disabled-focusable])),:host(${U}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${It}}`.withBehaviors(ft(u`
38
- :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),wd=u`
39
- ${yn}
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:${po};border-color:${ne};color:${S};cursor:not-allowed}:host(${lt}:is(:disabled,[disabled-focusable])),:host(${lt}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${U}:is(:disabled,[disabled-focusable])),:host(${U}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Tt}}:host(${B}:is(:disabled,[disabled-focusable])),:host(${B}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${Tt};border-color:transparent}:host(${X}:is(:disabled,[disabled-focusable])),:host(${X}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${Tt}}`.withBehaviors(bt(u`
38
+ :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Ld=u`
39
+ ${Fr}
40
40
 
41
- ::slotted(a){position:absolute;inset:0}`.withBehaviors(ft(u`
42
- :host{border-color:LinkText;color:LinkText}`));function Cd(o={}){return v`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Zt(o)}<span class="content" part="content"><slot></slot></span>${Qt(o)}</template>`}const Sd=Cd(),Id=Je.compose({name:`${b.prefix}-anchor-button`,template:Sd,styles:wd});Id.define(b.registry);const Pd=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Bd=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Td=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,zd=/\s+/g,Fd=/[\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 Od(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 Ad(o){return o=o.replace(Pd,""),o=o.replace(Bd,""),o=o.replace(zd," "),o=o.trim(),o}function Ed(o,t,e){return!o||(o=Ad(o),Fd.test(o)||!e?.allowPhoneInitials&&Td.test(o))?"":Od(o,t,e?.firstInitialOnly)}const xn={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"},kn={neutral:"neutral",brand:"brand",colorful:"colorful",...xn};var Md=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,ve=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ld(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&&Md(t,e,s),s};const Vt=class Fs extends I{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),w.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),w.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===kn.colorful,e=this.currentColor;$(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?Fs.colors[Rd(this.name??"")%Fs.colors.length]:this.color??kn.neutral,$(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Ed(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Vt.colors=Object.values(xn),ve([a],Vt.prototype,"name",2),ve([a],Vt.prototype,"initials",2),ve([a({converter:ut})],Vt.prototype,"size",2),ve([a],Vt.prototype,"shape",2),ve([a],Vt.prototype,"active",2),ve([a],Vt.prototype,"appearance",2),ve([a],Vt.prototype,"color",2),ve([a({attribute:"color-id"})],Vt.prototype,"colorId",2);let _d=Vt;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},$e={fastOutSlowInMax:gn,fastOutSlowInMid:us,fastOutSlowInMin:rd,slowOutFastInMax:id,slowOutFastInMid:hs,slowOutFastInMin:sd,fastEase:nd,normalEase:ps,nullEasing:bn},Dd=u`
43
- ${z("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${x};font-weight:${q};font-size:${E};border-radius:${gt};color:${nt};background-color:${Qo};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:${gt}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${et}) ${D}}: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 ${Ae}) ${D}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${mo};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:${Q}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${bt}}: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:${Oe}}: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:${ei}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${_}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Pt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Yr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Qr}}:host(:is([state--brand],:state(brand))){color:${Er};background-color:${Hr}}:host(:is([state--dark-red],:state(dark-red))){color:${nc};background-color:${rc}}:host(:is([state--cranberry],:state(cranberry))){color:${oc};background-color:${ec}}:host(:is([state--red],:state(red))){color:${Tl};background-color:${Il}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Ec};background-color:${Ac}}:host(:is([state--peach],:state(peach))){color:${Ic};background-color:${Sc}}:host(:is([state--marigold],:state(marigold))){color:${Nl};background-color:${Vl}}:host(:is([state--gold],:state(gold))){color:${dc};background-color:${cc}}:host(:is([state--brass],:state(brass))){color:${Yl};background-color:${Kl}}:host(:is([state--brown],:state(brown))){color:${Zl};background-color:${Ql}}:host(:is([state--forest],:state(forest))){color:${lc};background-color:${ac}}:host(:is([state--seafoam],:state(seafoam))){color:${Hc};background-color:${Dc}}:host(:is([state--dark-green],:state(dark-green))){color:${sc};background-color:${ic}}:host(:is([state--light-teal],:state(light-teal))){color:${bc};background-color:${gc}}:host(:is([state--teal],:state(teal))){color:${qc};background-color:${jc}}:host(:is([state--steel],:state(steel))){color:${Nc};background-color:${Vc}}:host(:is([state--blue],:state(blue))){color:${Xl};background-color:${Ul}}:host(:is([state--royal-blue],:state(royal-blue))){color:${Rc};background-color:${_c}}:host(:is([state--cornflower],:state(cornflower))){color:${tc};background-color:${Jl}}:host(:is([state--navy],:state(navy))){color:${Cc};background-color:${wc}}:host(:is([state--lavender],:state(lavender))){color:${fc};background-color:${pc}}:host(:is([state--purple],:state(purple))){color:${Lc};background-color:${Mc}}:host(:is([state--grape],:state(grape))){color:${uc};background-color:${hc}}:host(:is([state--lilac],:state(lilac))){color:${vc};background-color:${mc}}:host(:is([state--pink],:state(pink))){color:${Bc};background-color:${Pc}}:host(:is([state--magenta],:state(magenta))){color:${yc};background-color:${$c}}:host(:is([state--plum],:state(plum))){color:${Oc};background-color:${Fc}}:host(:is([state--beige],:state(beige))){color:${Gl};background-color:${Wl}}:host(:is([state--mink],:state(mink))){color:${kc};background-color:${xc}}:host(:is([state--platinum],:state(platinum))){color:${zc};background-color:${Tc}}:host(:is([state--anchor],:state(anchor))){color:${ql};background-color:${jl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${ai},${ds};transition-delay:${$e.fastEase},${$e.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${ai}),${fn};transition-delay:${$e.fastEase}),${$e.nullEasing})}:host([active])::before{box-shadow:${Xc};border-style:solid;border-color:${Hr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ae});border-width:${Ae}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${pe});border-width:${pe}}: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 * ${dn});border-width:${dn}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${ri}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${cn}}: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:${Kc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${ai},${ds};transition-delay:${$e.fastOutSlowInMin},${$e.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${ai},${fn};transition-delay:${$e.fastOutSlowInMin},${$e.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}}`,Hd=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 Vd(){return v`<slot>${o=>o.name||o.initials?o.generateInitials():Hd}</slot><slot name="badge"></slot>`}const Nd=Vd(),jd=_d.compose({name:`${b.prefix}-avatar`,template:Nd,styles:Dd});jd.define(b.registry);const qd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Wd={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Gd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,vi=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ud(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&&Gd(t,e,s),s};class eo extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=qd.filled,this.color=Wd.brand}appearanceChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}}vi([a],eo.prototype,"appearance",2),vi([a],eo.prototype,"color",2),vi([a],eo.prototype,"shape",2),vi([a],eo.prototype,"size",2),Jt(eo,Yt);const $i=Ee,wn=u.partial`
44
- ${z("inline-flex")} :host {
41
+ ::slotted(a){position:absolute;inset:0}`.withBehaviors(bt(u`
42
+ :host{border-color:LinkText;color:LinkText}`));function Md(o={}){return $`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${ee(o)}<span class="content" part="content"><slot></slot></span>${te(o)}</template>`}const _d=Md(),Rd=to.compose({name:`${m.prefix}-anchor-button`,template:_d,styles:Ld});Rd.define(m.registry);const Dd=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Hd=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Vd=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Nd=/\s+/g,jd=/[\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 qd(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 Wd(o){return o=o.replace(Dd,""),o=o.replace(Hd,""),o=o.replace(Nd," "),o=o.trim(),o}function Gd(o,t,e){return!o||(o=Wd(o),jd.test(o)||!e?.allowPhoneInitials&&Vd.test(o))?"":qd(o,t,e?.firstInitialOnly)}const Or={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"},Ar={neutral:"neutral",brand:"brand",colorful:"colorful",...Or};var Ud=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,$e=(o,t,e,i)=>{for(var s=i>1?void 0:i?Xd(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Ud(t,e,s),s};const qt=class Hs extends I{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),w.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),w.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Ar.colorful,e=this.currentColor;f(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?Hs.colors[Yd(this.name??"")%Hs.colors.length]:this.color??Ar.neutral,f(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Gd(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};qt.colors=Object.values(Or),$e([a],qt.prototype,"name",2),$e([a],qt.prototype,"initials",2),$e([a({converter:ft})],qt.prototype,"size",2),$e([a],qt.prototype,"shape",2),$e([a],qt.prototype,"active",2),$e([a],qt.prototype,"appearance",2),$e([a],qt.prototype,"color",2),$e([a({attribute:"color-id"})],qt.prototype,"colorId",2);let Kd=qt;const Yd=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},ye={fastOutSlowInMax:Cr,fastOutSlowInMid:ys,fastOutSlowInMin:bd,slowOutFastInMax:fd,slowOutFastInMid:$s,slowOutFastInMin:gd,fastEase:md,normalEase:xs,nullEasing:Sr},Qd=u`
43
+ ${F("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${x};font-weight:${G};font-size:${L};border-radius:${mt};color:${at};background-color:${ri};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:${mt}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${ot}) ${H}}: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 ${Ee}) ${H}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${yo};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:${Z}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${vt}}: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:${Ae}}: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:${di}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${R}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${zt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${rr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${ar}}:host(:is([state--brand],:state(brand))){color:${qn};background-color:${Yn}}:host(:is([state--dark-red],:state(dark-red))){color:${mc};background-color:${bc}}:host(:is([state--cranberry],:state(cranberry))){color:${pc};background-color:${uc}}:host(:is([state--red],:state(red))){color:${Hl};background-color:${_l}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Wc};background-color:${qc}}:host(:is([state--peach],:state(peach))){color:${_c};background-color:${Mc}}:host(:is([state--marigold],:state(marigold))){color:${Jl};background-color:${Zl}}:host(:is([state--gold],:state(gold))){color:${xc};background-color:${yc}}:host(:is([state--brass],:state(brass))){color:${ac};background-color:${rc}}:host(:is([state--brown],:state(brown))){color:${cc};background-color:${lc}}:host(:is([state--forest],:state(forest))){color:${$c};background-color:${vc}}:host(:is([state--seafoam],:state(seafoam))){color:${Qc};background-color:${Yc}}:host(:is([state--dark-green],:state(dark-green))){color:${gc};background-color:${fc}}:host(:is([state--light-teal],:state(light-teal))){color:${Pc};background-color:${Ic}}:host(:is([state--teal],:state(teal))){color:${ed};background-color:${td}}:host(:is([state--steel],:state(steel))){color:${Jc};background-color:${Zc}}:host(:is([state--blue],:state(blue))){color:${nc};background-color:${sc}}:host(:is([state--royal-blue],:state(royal-blue))){color:${Kc};background-color:${Xc}}:host(:is([state--cornflower],:state(cornflower))){color:${hc};background-color:${dc}}:host(:is([state--navy],:state(navy))){color:${Lc};background-color:${Ec}}:host(:is([state--lavender],:state(lavender))){color:${Sc};background-color:${Cc}}:host(:is([state--purple],:state(purple))){color:${Uc};background-color:${Gc}}:host(:is([state--grape],:state(grape))){color:${wc};background-color:${kc}}:host(:is([state--lilac],:state(lilac))){color:${Tc};background-color:${Bc}}:host(:is([state--pink],:state(pink))){color:${Dc};background-color:${Rc}}:host(:is([state--magenta],:state(magenta))){color:${Fc};background-color:${zc}}:host(:is([state--plum],:state(plum))){color:${jc};background-color:${Nc}}:host(:is([state--beige],:state(beige))){color:${ic};background-color:${oc}}:host(:is([state--mink],:state(mink))){color:${Ac};background-color:${Oc}}:host(:is([state--platinum],:state(platinum))){color:${Vc};background-color:${Hc}}:host(:is([state--anchor],:state(anchor))){color:${ec};background-color:${tc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${bi},${vs};transition-delay:${ye.fastEase},${ye.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${bi}),${wr};transition-delay:${ye.fastEase}),${ye.nullEasing})}:host([active])::before{box-shadow:${nd};border-style:solid;border-color:${Yn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ee});border-width:${Ee}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${be});border-width:${be}}: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 * ${$r});border-width:${$r}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${fi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${vr}}: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:${rd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${bi},${vs};transition-delay:${ye.fastOutSlowInMin},${ye.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${bi},${wr};transition-delay:${ye.fastOutSlowInMin},${ye.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}}`,Zd=$`<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 Jd(){return $`<slot>${o=>o.name||o.initials?o.generateInitials():Zd}</slot><slot name="badge"></slot>`}const th=Jd(),eh=Kd.compose({name:`${m.prefix}-avatar`,template:th,styles:Qd});eh.define(m.registry);const oh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},ih={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var sh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,Ii=(o,t,e,i)=>{for(var s=i>1?void 0:i?nh(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&sh(t,e,s),s};class so extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=oh.filled,this.color=ih.brand}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}}Ii([a],so.prototype,"appearance",2),Ii([a],so.prototype,"color",2),Ii([a],so.prototype,"shape",2),Ii([a],so.prototype,"size",2),oe(so,Jt);const Pi=Le,Er=u.partial`
44
+ ${F("inline-flex")} :host {
45
45
  position: relative;
46
46
  box-sizing: border-box;
47
47
  align-items: center;
48
48
  justify-content: center;
49
49
  font-family: ${x};
50
- font-weight: ${q};
51
- font-size: ${Q};
52
- line-height: ${mt};
50
+ font-weight: ${G};
51
+ font-size: ${Z};
52
+ line-height: ${$t};
53
53
  min-width: 20px;
54
54
  height: 20px;
55
- padding-inline: calc(${se} + ${$i});
56
- border-radius: ${gt};
57
- border-color: ${Rt};
58
- background-color: ${is};
59
- color: ${te};
55
+ padding-inline: calc(${ae} + ${Pi});
56
+ border-radius: ${mt};
57
+ border-color: ${Vt};
58
+ background-color: ${hs};
59
+ color: ${ie};
60
60
  contain: content;
61
61
  }
62
62
 
@@ -64,7 +64,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
64
64
  font-size: 12px;
65
65
  }
66
66
 
67
- :host(:not(${ne}))::after {
67
+ :host(:not(${ce}))::after {
68
68
  position: absolute;
69
69
  content: '';
70
70
  top: 0;
@@ -72,12 +72,12 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
72
72
  bottom: 0;
73
73
  right: 0;
74
74
  border-style: solid;
75
- border-width: ${et};
75
+ border-width: ${ot};
76
76
  border-color: inherit;
77
77
  border-radius: inherit;
78
78
  }
79
- `,Cn=u.partial`
80
- :host(${ci}) {
79
+ `,Lr=u.partial`
80
+ :host(${Io}) {
81
81
  width: 6px;
82
82
  height: 6px;
83
83
  font-size: 4px;
@@ -85,10 +85,10 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
85
85
  padding-inline: 0;
86
86
  min-width: unset;
87
87
  }
88
- :host(${ci}) ::slotted(svg) {
88
+ :host(${Io}) ::slotted(svg) {
89
89
  font-size: 6px;
90
90
  }
91
- :host(${di}) {
91
+ :host(${Po}) {
92
92
  width: 10px;
93
93
  height: 10px;
94
94
  font-size: 6px;
@@ -96,289 +96,289 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
96
96
  padding-inline: 0;
97
97
  min-width: unset;
98
98
  }
99
- :host(${di}) ::slotted(svg) {
99
+ :host(${Po}) ::slotted(svg) {
100
100
  font-size: 10px;
101
101
  }
102
- :host(${me}) {
102
+ :host(${ct}) {
103
103
  min-width: 16px;
104
104
  height: 16px;
105
- font-size: ${mo};
106
- line-height: ${ii};
107
- padding-inline: calc(${Ee} + ${$i});
105
+ font-size: ${yo};
106
+ line-height: ${ui};
107
+ padding-inline: calc(${Le} + ${Pi});
108
108
  }
109
- :host(${me}) ::slotted(svg) {
109
+ :host(${ct}) ::slotted(svg) {
110
110
  font-size: 12px;
111
111
  }
112
- :host(${ae}) {
112
+ :host(${N}) {
113
113
  min-width: 24px;
114
114
  height: 24px;
115
- font-size: ${Q};
116
- line-height: ${mt};
117
- padding-inline: calc(${se} + ${$i});
115
+ font-size: ${Z};
116
+ line-height: ${$t};
117
+ padding-inline: calc(${ae} + ${Pi});
118
118
  }
119
- :host(${ae}) ::slotted(svg) {
119
+ :host(${N}) ::slotted(svg) {
120
120
  font-size: 16px;
121
121
  }
122
- :host(${$n}) {
122
+ :host(${Cs}) {
123
123
  min-width: 32px;
124
124
  height: 32px;
125
- font-size: ${Q};
126
- line-height: ${mt};
127
- padding-inline: calc(${Me} + ${$i});
125
+ font-size: ${Z};
126
+ line-height: ${$t};
127
+ padding-inline: calc(${Me} + ${Pi});
128
128
  }
129
- :host(${$n}) ::slotted(svg) {
129
+ :host(${Cs}) ::slotted(svg) {
130
130
  font-size: 20px;
131
131
  }
132
- `,Sn=u.partial`
133
- :host(${hi}) {
134
- background-color: ${qr};
135
- color: ${te};
132
+ `,Mr=u.partial`
133
+ :host(${xi}) {
134
+ background-color: ${tr};
135
+ color: ${ie};
136
136
  }
137
137
 
138
- :host(${ui}) {
139
- background-color: ${R};
140
- color: ${D};
138
+ :host(${ki}) {
139
+ background-color: ${D};
140
+ color: ${H};
141
141
  }
142
142
 
143
- :host(${pi}) {
144
- background-color: ${gl};
145
- color: ${nt};
143
+ :host(${wi}) {
144
+ background-color: ${Il};
145
+ color: ${at};
146
146
  }
147
147
 
148
- :host(${fi}) {
149
- background-color: ${Xr};
150
- color: ${te};
148
+ :host(${Ci}) {
149
+ background-color: ${sr};
150
+ color: ${ie};
151
151
  }
152
152
 
153
- :host(${W}) {
154
- background-color: ${D};
155
- color: ${R};
153
+ :host(${B}) {
154
+ background-color: ${H};
155
+ color: ${D};
156
156
  }
157
157
 
158
- :host(${gi}) {
159
- background-color: ${Ur};
160
- color: ${te};
158
+ :host(${oo}) {
159
+ background-color: ${ir};
160
+ color: ${ie};
161
161
  }
162
162
 
163
- :host(${bi}) {
164
- background-color: ${Dl};
165
- color: ${pl};
163
+ :host(${io}) {
164
+ background-color: ${Yl};
165
+ color: ${Cl};
166
166
  }
167
- `,In=u.partial`
168
- :host(${ne}) {
169
- color: ${Zi};
167
+ `,_r=u.partial`
168
+ :host(${ce}) {
169
+ color: ${rs};
170
170
  background-color: initial;
171
171
  }
172
172
 
173
- :host(${ne}${hi}) {
174
- color: ${Gr};
173
+ :host(${ce}${xi}) {
174
+ color: ${or};
175
175
  }
176
176
 
177
- :host(${ne}${ui}) {
178
- color: ${R};
177
+ :host(${ce}${ki}) {
178
+ color: ${D};
179
179
  }
180
180
 
181
- :host(${ne}${pi}) {
182
- color: ${nt};
181
+ :host(${ce}${wi}) {
182
+ color: ${at};
183
183
  }
184
184
 
185
- :host(${ne}${fi}) {
186
- color: ${Kr};
185
+ :host(${ce}${Ci}) {
186
+ color: ${nr};
187
187
  }
188
188
 
189
- :host(${ne}${W}) {
190
- color: ${Yo};
189
+ :host(${ce}${B}) {
190
+ color: ${ni};
191
191
  }
192
192
 
193
- :host(${ne}${gi}) {
194
- color: ${El};
193
+ :host(${ce}${oo}) {
194
+ color: ${Wl};
195
195
  }
196
196
 
197
- :host(${ne}${bi}) {
198
- color: ${ls};
197
+ :host(${ce}${io}) {
198
+ color: ${bs};
199
199
  }
200
- `,Xd=u.partial`
201
- :host(${G}) {
200
+ `,rh=u.partial`
201
+ :host(${U}) {
202
202
  border-color: currentColor;
203
- color: ${Zi};
203
+ color: ${rs};
204
204
  background-color: initial;
205
205
  }
206
206
 
207
- :host(${G}${hi}) {
208
- color: ${Gr};
207
+ :host(${U}${xi}) {
208
+ color: ${or};
209
209
  }
210
210
 
211
- :host(${G}${ui}) {
212
- color: ${nt};
213
- border-color: ${ee};
211
+ :host(${U}${ki}) {
212
+ color: ${at};
213
+ border-color: ${se};
214
214
  }
215
215
 
216
- :host(${G}${pi}) {
217
- color: ${nt};
218
- border-color: ${bo};
216
+ :host(${U}${wi}) {
217
+ color: ${at};
218
+ border-color: ${$o};
219
219
  }
220
220
 
221
- :host(${G}${fi}) {
222
- color: ${Kr};
221
+ :host(${U}${Ci}) {
222
+ color: ${nr};
223
223
  }
224
224
 
225
- :host(${G}${W}) {
226
- color: ${Er};
225
+ :host(${U}${B}) {
226
+ color: ${qn};
227
227
  }
228
228
 
229
- :host(${G}${gi}) {
230
- color: ${Al};
229
+ :host(${U}${oo}) {
230
+ color: ${ql};
231
231
  }
232
232
 
233
- :host(${G}${bi}) {
234
- color: ${ls};
233
+ :host(${U}${io}) {
234
+ color: ${bs};
235
235
  }
236
- `,Kd=u.partial`
237
- :host(${ge}) {
238
- background-color: ${kl};
239
- color: ${ul};
240
- border-color: ${Nr};
236
+ `,ah=u.partial`
237
+ :host(${ve}) {
238
+ background-color: ${Al};
239
+ color: ${wl};
240
+ border-color: ${Zn};
241
241
  }
242
242
 
243
- :host(${ge}${hi}) {
244
- background-color: ${Sl};
245
- color: ${Wr};
246
- border-color: ${Pl};
243
+ :host(${ve}${xi}) {
244
+ background-color: ${Ml};
245
+ color: ${er};
246
+ border-color: ${Rl};
247
247
  }
248
248
 
249
- :host(${ge}${ui}) {
250
- background-color: ${nt};
251
- color: ${D};
252
- border-color: ${Rt};
249
+ :host(${ve}${ki}) {
250
+ background-color: ${at};
251
+ color: ${H};
252
+ border-color: ${Vt};
253
253
  }
254
254
 
255
- :host(${ge}${pi}) {
256
- background-color: ${fl};
257
- color: ${nt};
258
- border-color: ${bo};
255
+ :host(${ve}${wi}) {
256
+ background-color: ${Sl};
257
+ color: ${at};
258
+ border-color: ${$o};
259
259
  }
260
260
 
261
- :host(${ge}${fi}) {
262
- background-color: ${Ml};
263
- color: ${_l};
264
- border-color: ${Ll};
261
+ :host(${ve}${Ci}) {
262
+ background-color: ${Gl};
263
+ color: ${Xl};
264
+ border-color: ${Ul};
265
265
  }
266
266
 
267
- :host(${ge}${W}) {
268
- background-color: ${D};
269
- color: ${nt};
270
- border-color: ${bo};
267
+ :host(${ve}${B}) {
268
+ background-color: ${H};
269
+ color: ${at};
270
+ border-color: ${$o};
271
271
  }
272
272
 
273
- :host(${ge}${gi}) {
274
- background-color: ${zl};
275
- color: ${Ol};
276
- border-color: ${Fl};
273
+ :host(${ve}${oo}) {
274
+ background-color: ${Vl};
275
+ color: ${jl};
276
+ border-color: ${Nl};
277
277
  }
278
278
 
279
- :host(${ge}${bi}) {
280
- background-color: ${Rl};
281
- color: ${ls};
282
- border-color: ${Hl};
279
+ :host(${ve}${io}) {
280
+ background-color: ${Kl};
281
+ color: ${bs};
282
+ border-color: ${Ql};
283
283
  }
284
284
  `;u.partial`
285
285
  font-family: ${x};
286
- font-size: ${E};
287
- line-height: ${H};
286
+ font-size: ${L};
287
+ line-height: ${V};
288
288
  font-weight: ${M};
289
289
  `,u.partial`
290
290
  font-family: ${x};
291
- font-size: ${E};
292
- line-height: ${H};
293
- font-weight: ${q};
291
+ font-size: ${L};
292
+ line-height: ${V};
293
+ font-weight: ${G};
294
294
  `,u.partial`
295
295
  font-family: ${x};
296
- font-size: ${E};
297
- line-height: ${H};
298
- font-weight: ${oi};
296
+ font-size: ${L};
297
+ line-height: ${V};
298
+ font-weight: ${hi};
299
299
  `,u.partial`
300
300
  font-family: ${x};
301
- font-size: ${bt};
302
- line-height: ${Bt};
301
+ font-size: ${vt};
302
+ line-height: ${Ft};
303
303
  font-weight: ${M};
304
304
  `,u.partial`
305
305
  font-family: ${x};
306
- font-size: ${Q};
307
- line-height: ${mt};
306
+ font-size: ${Z};
307
+ line-height: ${$t};
308
308
  font-weight: ${M};
309
309
  `,u.partial`
310
310
  font-family: ${x};
311
- font-size: ${Q};
312
- line-height: ${mt};
313
- font-weight: ${q};
311
+ font-size: ${Z};
312
+ line-height: ${$t};
313
+ font-weight: ${G};
314
314
  `,u.partial`
315
315
  font-family: ${x};
316
- font-size: ${Q};
317
- line-height: ${mt};
318
- font-weight: ${oi};
316
+ font-size: ${Z};
317
+ line-height: ${$t};
318
+ font-weight: ${hi};
319
319
  `,u.partial`
320
320
  font-family: ${x};
321
- font-size: ${mo};
322
- line-height: ${ii};
321
+ font-size: ${yo};
322
+ line-height: ${ui};
323
323
  font-weight: ${M};
324
324
  `,u.partial`
325
325
  font-family: ${x};
326
- font-size: ${mo};
327
- line-height: ${ii};
328
- font-weight: ${q};
326
+ font-size: ${yo};
327
+ line-height: ${ui};
328
+ font-weight: ${G};
329
329
  `,u.partial`
330
330
  font-family: ${x};
331
- font-size: ${Oe};
332
- line-height: ${si};
333
- font-weight: ${q};
331
+ font-size: ${Ae};
332
+ line-height: ${pi};
333
+ font-weight: ${G};
334
334
  `,u.partial`
335
335
  font-family: ${x};
336
- font-size: ${bt};
337
- line-height: ${Bt};
338
- font-weight: ${q};
336
+ font-size: ${vt};
337
+ line-height: ${Ft};
338
+ font-weight: ${G};
339
339
  `,u.partial`
340
340
  font-family: ${x};
341
- font-size: ${bt};
342
- line-height: ${Bt};
343
- font-weight: ${oi};
341
+ font-size: ${vt};
342
+ line-height: ${Ft};
343
+ font-weight: ${hi};
344
344
  `,u.partial`
345
345
  font-family: ${x};
346
- font-size: ${Jr};
347
- line-height: ${rn};
348
- font-weight: ${q};
346
+ font-size: ${cr};
347
+ line-height: ${fr};
348
+ font-weight: ${G};
349
349
  `,u.partial`
350
350
  font-family: ${x};
351
- font-size: ${Zr};
352
- line-height: ${sn};
353
- font-weight: ${q};
351
+ font-size: ${lr};
352
+ line-height: ${pr};
353
+ font-weight: ${G};
354
354
  `,u.partial`
355
355
  font-family: ${x};
356
- font-size: ${ei};
357
- line-height: ${on};
358
- font-weight: ${q};
356
+ font-size: ${di};
357
+ line-height: ${ur};
358
+ font-weight: ${G};
359
359
  `,u.partial`
360
360
  font-family: ${x};
361
- font-size: ${tn};
362
- line-height: ${nn};
363
- font-weight: ${q};
361
+ font-size: ${dr};
362
+ line-height: ${gr};
363
+ font-weight: ${G};
364
364
  `,u.partial`
365
365
  font-family: ${x};
366
- font-size: ${en};
367
- line-height: ${an};
368
- font-weight: ${q};
369
- `;const Yd=u`
370
- :host(${bs}){border-radius:${cs}}:host(${be}){border-radius:${_}}:host(${be}${ci}),:host(${be}${di}),:host(${be}${me}){border-radius:${Pt}}${Cn}
371
- ${Sn}
372
- ${In}
373
- ${Xd}
374
- ${Kd}
375
- ${wn}
376
- `.withBehaviors(ft(u`
377
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Pn(o={}){return v` ${Zt(o)}<slot>${pt(o.defaultContent)}</slot>${Qt(o)} `}const Qd=Pn(),Zd=eo.compose({name:`${b.prefix}-badge`,template:Qd,styles:Yd});Zd.define(b.registry);var Jd=Object.defineProperty,th=Object.getOwnPropertyDescriptor,X=(o,t,e,i)=>{for(var s=i>1?void 0:i?th(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&&Jd(t,e,s),s};class A extends I{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}appearanceChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}iconOnlyChanged(t,e){$(this.elementInternals,"icon",e)}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}shapeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}typeChanged(t,e){e!==li.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===Qe||t.key===Wo){this.click();return}return!0}press(){switch(this.type){case li.reset:{this.resetForm();break}case li.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==li.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,X([a],A.prototype,"appearance",2),X([a({mode:"boolean"})],A.prototype,"autofocus",2),X([y],A.prototype,"defaultSlottedContent",2),X([a({mode:"boolean"})],A.prototype,"disabled",2),X([a({attribute:"disabled-focusable",mode:"boolean"})],A.prototype,"disabledFocusable",2),X([a({attribute:"formaction"})],A.prototype,"formAction",2),X([a({attribute:"form"})],A.prototype,"formAttribute",2),X([a({attribute:"formenctype"})],A.prototype,"formEnctype",2),X([a({attribute:"formmethod"})],A.prototype,"formMethod",2),X([a({attribute:"formnovalidate",mode:"boolean"})],A.prototype,"formNoValidate",2),X([a({attribute:"formtarget"})],A.prototype,"formTarget",2),X([a({attribute:"icon-only",mode:"boolean"})],A.prototype,"iconOnly",2),X([a],A.prototype,"name",2),X([a],A.prototype,"shape",2),X([a],A.prototype,"size",2),X([a],A.prototype,"type",2),X([a],A.prototype,"value",2),Jt(A,Yt);function ms(o={}){return v`<template tabindex="${t=>t.disabled?-1:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Zt(o)}<span class="content" part="content"><slot ${ht("defaultSlottedContent")}></slot></span>${Qt(o)}</template>`}const eh=ms(),oh=A.compose({name:`${b.prefix}-button`,template:eh,styles:mi});oh.define(b.registry);var ih=Object.defineProperty,sh=Object.getOwnPropertyDescriptor,Nt=(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 Tt extends I{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(),$(this.elementInternals,"checked",t),w.notify(this,"checked")}indeterminateChanged(t,e){this.setAriaChecked(),$(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}}Tt.formAssociated=!0,Nt([a({mode:"boolean"})],Tt.prototype,"autofocus",2),Nt([a({mode:"boolean"})],Tt.prototype,"disabled",2),Nt([a({attribute:"form"})],Tt.prototype,"formAttribute",2),Nt([y],Tt.prototype,"indeterminate",2),Nt([a({attribute:"checked",mode:"boolean"})],Tt.prototype,"initialChecked",2),Nt([a({attribute:"value",mode:"fromView"})],Tt.prototype,"initialValue",2),Nt([a],Tt.prototype,"name",2),Nt([a({mode:"boolean"})],Tt.prototype,"required",2);class vs extends Tt{}Nt([a],vs.prototype,"shape",2),Nt([a],vs.prototype,"size",2);const zt=u.partial`:is([state--checked], :state(checked))`,Le=u.partial`:is([state--indeterminate], :state(indeterminate))`,rh=u`
378
- ${z("inline-flex")}
379
-
380
- :host{--size:16px;background-color:${D};border-radius:${Pt};border:${et} solid ${ee};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${fo}}:host(:active){border-color:${go}}:host(${zt}:hover){background-color:${uo};border-color:${ns}}:host(${zt}:active){background-color:${po};border-color:${as}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Ae} solid ${Rt};border-radius:${_}}:host(:not([slot='input']):focus-visible)::after{border-color:${ie}}.indeterminate-indicator,.checked-indicator{color:${Yo};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(${zt})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${zt}),:host(${Le}){border-color:${rs}}:host(${zt}),:host(${Le}) .indeterminate-indicator{background-color:${ho}}:host(${Le}) .indeterminate-indicator{border-radius:${Pt};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:${gt}}:host([disabled]),:host([disabled]${zt}){background-color:${co};border-color:${oe}}:host([disabled]){cursor:unset}:host([disabled]${Le}) .indeterminate-indicator{background-color:${oe}}:host([disabled]${zt}) .checked-indicator{color:${oe}}`.withBehaviors(ft(u`
381
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${zt}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${zt}),:host(${Le}) .indeterminate-indicator{background-color:FieldText}:host(${zt}:not([disabled]):hover),:host(${Le}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Le}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${zt}) .checked-indicator{color:GrayText}`)),nh=v.partial(`
366
+ font-size: ${hr};
367
+ line-height: ${br};
368
+ font-weight: ${G};
369
+ `;const lh=u`
370
+ :host(${yi}){border-radius:${ms}}:host(${de}){border-radius:${R}}:host(${de}${Io}),:host(${de}${Po}),:host(${de}${ct}){border-radius:${zt}}${Lr}
371
+ ${Mr}
372
+ ${_r}
373
+ ${rh}
374
+ ${ah}
375
+ ${Er}
376
+ `.withBehaviors(bt(u`
377
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Rr(o={}){return $` ${ee(o)}<slot>${gt(o.defaultContent)}</slot>${te(o)} `}const ch=Rr(),dh=so.compose({name:`${m.prefix}-badge`,template:ch,styles:lh});dh.define(m.registry);var hh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,K=(o,t,e,i)=>{for(var s=i>1?void 0:i?uh(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&hh(t,e,s),s};class E extends I{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}iconOnlyChanged(t,e){f(this.elementInternals,"icon",e)}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}shapeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}typeChanged(t,e){e!==mi.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===Ze||t.key===ti){this.click();return}return!0}press(){switch(this.type){case mi.reset:{this.resetForm();break}case mi.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==mi.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)}}}}E.formAssociated=!0,K([a],E.prototype,"appearance",2),K([a({mode:"boolean"})],E.prototype,"autofocus",2),K([y],E.prototype,"defaultSlottedContent",2),K([a({mode:"boolean"})],E.prototype,"disabled",2),K([a({attribute:"disabled-focusable",mode:"boolean"})],E.prototype,"disabledFocusable",2),K([a({attribute:"formaction"})],E.prototype,"formAction",2),K([a({attribute:"form"})],E.prototype,"formAttribute",2),K([a({attribute:"formenctype"})],E.prototype,"formEnctype",2),K([a({attribute:"formmethod"})],E.prototype,"formMethod",2),K([a({attribute:"formnovalidate",mode:"boolean"})],E.prototype,"formNoValidate",2),K([a({attribute:"formtarget"})],E.prototype,"formTarget",2),K([a({attribute:"icon-only",mode:"boolean"})],E.prototype,"iconOnly",2),K([a],E.prototype,"name",2),K([a],E.prototype,"shape",2),K([a],E.prototype,"size",2),K([a],E.prototype,"type",2),K([a],E.prototype,"value",2),oe(E,Jt);function Is(o={}){return $`<template tabindex="${t=>t.disabled?-1:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${ee(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot></span>${te(o)}</template>`}const ph=Is(),fh=E.compose({name:`${m.prefix}-button`,template:ph,styles:Si});fh.define(m.registry);var gh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,Wt=(o,t,e,i)=>{for(var s=i>1?void 0:i?bh(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&gh(t,e,s),s};class Ot extends I{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(),f(this.elementInternals,"checked",t),w.notify(this,"checked")}indeterminateChanged(t,e){this.setAriaChecked(),f(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}}Ot.formAssociated=!0,Wt([a({mode:"boolean"})],Ot.prototype,"autofocus",2),Wt([a({mode:"boolean"})],Ot.prototype,"disabled",2),Wt([a({attribute:"form"})],Ot.prototype,"formAttribute",2),Wt([y],Ot.prototype,"indeterminate",2),Wt([a({attribute:"checked",mode:"boolean"})],Ot.prototype,"initialChecked",2),Wt([a({attribute:"value",mode:"fromView"})],Ot.prototype,"initialValue",2),Wt([a],Ot.prototype,"name",2),Wt([a({mode:"boolean"})],Ot.prototype,"required",2);class Ps extends Ot{shapeChanged(t,e){t&&f(this.elementInternals,t,!1),e&&f(this.elementInternals,e,!0)}sizeChanged(t,e){t&&f(this.elementInternals,t,!1),e&&f(this.elementInternals,e,!0)}}Wt([a],Ps.prototype,"shape",2),Wt([a],Ps.prototype,"size",2);const At=u.partial`:is([state--checked], :state(checked))`,_e=u.partial`:is([state--indeterminate], :state(indeterminate))`,mh=u`
378
+ ${F("inline-flex")}
379
+
380
+ :host{--size:16px;background-color:${H};border-radius:${zt};border:${ot} solid ${se};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${mo}}:host(:active){border-color:${vo}}:host(${At}:hover){background-color:${go};border-color:${fs}}:host(${At}:active){background-color:${bo};border-color:${gs}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Ee} solid ${Vt};border-radius:${R}}:host(:not([slot='input']):focus-visible)::after{border-color:${re}}.indeterminate-indicator,.checked-indicator{color:${ni};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(${At})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${At}),:host(${_e}){border-color:${ps}}:host(${At}),:host(${_e}) .indeterminate-indicator{background-color:${fo}}:host(${_e}) .indeterminate-indicator{border-radius:${zt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${N}){--size:20px}:host(${N}) ::slotted([slot='checked-indicator']),:host(${N}) .checked-indicator{width:16px}:host(${So}),:host(${So}) .indeterminate-indicator{border-radius:${mt}}:host([disabled]),:host([disabled]${At}){background-color:${po};border-color:${ne}}:host([disabled]){cursor:unset}:host([disabled]${_e}) .indeterminate-indicator{background-color:${ne}}:host([disabled]${At}) .checked-indicator{color:${ne}}`.withBehaviors(bt(u`
381
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${At}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${At}),:host(${_e}) .indeterminate-indicator{background-color:FieldText}:host(${At}:not([disabled]):hover),:host(${_e}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${_e}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${At}) .checked-indicator{color:GrayText}`)),vh=$.partial(`
382
382
  <svg
383
383
  fill="currentColor"
384
384
  aria-hidden="true"
@@ -389,21 +389,21 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
389
389
  xmlns="http://www.w3.org/2000/svg">
390
390
  <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>
391
391
  </svg>
392
- `),ah=v.partial(`
392
+ `),$h=$.partial(`
393
393
  <span class="indeterminate-indicator"></span>
394
- `);function lh(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">${pt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${pt(o.indeterminateIndicator)}</slot></template>`}const ch=lh({checkedIndicator:nh,indeterminateIndicator:ah}),dh=vs.compose({name:`${b.prefix}-checkbox`,template:ch,styles:rh});dh.define(b.registry);class hh extends A{}const uh=u`
395
- ${mi}
396
-
397
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${E};line-height:${H}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${_t};line-height:100%;font-size:${Q};font-weight:${M}}::slotted(svg),:host(${ae}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Go}}:host(:active) ::slotted([slot='description']){color:${Uo}}:host(:is(${at},${at}:hover,${at}:active)) ::slotted([slot='description']){color:${te}}:host(:is(${W},${W}:hover,${W}:active)) ::slotted([slot='description']),:host(${U}) ::slotted([slot='description']){color:${_t}}:host(${U}:hover) ::slotted([slot='description']){color:${Xo}}:host(${U}:active) ::slotted([slot='description']){color:${Ko}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
398
- ::slotted([slot='description']){color:${S}}:host(${me}){padding:8px;padding-bottom:10px}:host(${to}){min-width:52px;max-width:52px;padding:${Me}}:host(${to}${me}){min-width:48px;max-width:48px;padding:${se}}:host(${to}${ae}){min-width:56px;max-width:56px;padding:${Dt}}:host(${ae}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${bt};line-height:${Bt}}:host(${ae}) ::slotted([slot='description']){font-size:${E}}`;function ph(o={}){return v`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?-1:0}">${Zt(o)}<span class="content" part="content"><slot ${ht("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Qt(o)}</template>`}const fh=ph(),gh=hh.compose({name:`${b.prefix}-compound-button`,template:fh,styles:uh});gh.define(b.registry);var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,ye=(o,t,e,i)=>{for(var s=i>1?void 0:i?mh(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 jt extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&$(this.elementInternals,`${t}`,!1),e&&$(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){$(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}ye([a],jt.prototype,"appearance",2),ye([a],jt.prototype,"color",2),ye([a],jt.prototype,"shape",2),ye([a],jt.prototype,"size",2),ye([a({converter:ut})],jt.prototype,"count",2),ye([a({attribute:"overflow-count",converter:ut})],jt.prototype,"overflowCount",2),ye([a({attribute:"show-zero",mode:"boolean"})],jt.prototype,"showZero",2),ye([a({mode:"boolean"})],jt.prototype,"dot",2),Jt(jt,Yt);const Bn=u.partial`:is([state--dot], :state(dot))`,vh=u`
399
- :host(${be}){border-radius:${_}}:host(${be}${ci}),:host(${be}${di}),:host(${be}${me}){border-radius:${Pt}}${Cn}
400
- ${Sn}
401
- ${In}
402
- ${wn}
403
-
404
- :host(${Bn}),:host(${Bn}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function $h(o={}){return Pn({defaultContent:v`${t=>t.setCount()}`})}const yh=$h(),xh=jt.compose({name:`${b.prefix}-counter-badge`,template:yh,styles:vh});xh.define(b.registry);const qt={modal:"modal",nonModal:"non-modal",alert:"alert"};var kh=Object.defineProperty,wh=Object.getOwnPropertyDescriptor,yi=(o,t,e,i)=>{for(var s=i>1?void 0:i?wh(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&&kh(t,e,s),s};class yo extends I{constructor(){super(...arguments),this.type=qt.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(){wt.enqueue(()=>{this.emitBeforeToggle(),this.type===qt.alert||this.type===qt.modal?this.dialog.showModal():this.type===qt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==qt.alert&&t.target===this.dialog&&this.hide(),!0}}yi([y],yo.prototype,"dialog",2),yi([a({attribute:"aria-describedby"})],yo.prototype,"ariaDescribedby",2),yi([a({attribute:"aria-labelledby"})],yo.prototype,"ariaLabelledby",2),yi([a],yo.prototype,"type",2);const Ch=v`<dialog role="${o=>o.type===qt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===qt.modal||o.type===qt.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===qt.alert?t.event.preventDefault():o.hide()}" ${St("dialog")}><slot></slot></dialog>`,Sh=u`
405
- @layer base{:host{--dialog-backdrop:${yl};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${D};border-radius:${Qr};border:none;box-shadow:${Yc};color:${R};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:${ed};transition-timing-function:${us};opacity:0}::backdrop{transition-timing-function:${bn}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${hs}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(ft(u`
406
- @layer base{dialog{border:${et} solid ${Rt}}}`)),Ih=yo.compose({name:`${b.prefix}-dialog`,template:Ch,styles:Sh});Ih.define(b.registry);var Ph=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,Th=(o,t,e,i)=>{for(var s=i>1?void 0:i?Bh(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&&Ph(t,e,s),s};class Tn extends I{constructor(){super(...arguments),this.noTitleAction=!1}}Th([a({mode:"boolean",attribute:"no-title-action"})],Tn.prototype,"noTitleAction",2);const zh=v.partial(`
394
+ `);function yh(o={}){return $`<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">${gt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${gt(o.indeterminateIndicator)}</slot></template>`}const xh=yh({checkedIndicator:vh,indeterminateIndicator:$h}),kh=Ps.compose({name:`${m.prefix}-checkbox`,template:xh,styles:mh});kh.define(m.registry);class wh extends E{}const Ch=u`
395
+ ${Si}
396
+
397
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${L};line-height:${V}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ht};line-height:100%;font-size:${Z};font-weight:${M}}::slotted(svg),:host(${N}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${ei}}:host(:active) ::slotted([slot='description']){color:${oi}}:host(:is(${lt},${lt}:hover,${lt}:active)) ::slotted([slot='description']){color:${ie}}:host(:is(${B},${B}:hover,${B}:active)) ::slotted([slot='description']),:host(${X}) ::slotted([slot='description']){color:${Ht}}:host(${X}:hover) ::slotted([slot='description']){color:${ii}}:host(${X}:active) ::slotted([slot='description']){color:${si}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
398
+ ::slotted([slot='description']){color:${S}}:host(${ct}){padding:8px;padding-bottom:10px}:host(${eo}){min-width:52px;max-width:52px;padding:${Me}}:host(${eo}${ct}){min-width:48px;max-width:48px;padding:${ae}}:host(${eo}${N}){min-width:56px;max-width:56px;padding:${Nt}}:host(${N}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${vt};line-height:${Ft}}:host(${N}) ::slotted([slot='description']){font-size:${L}}`;function Sh(o={}){return $`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?-1:0}">${ee(o)}<span class="content" part="content"><slot ${pt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${te(o)}</template>`}const Ih=Sh(),Ph=wh.compose({name:`${m.prefix}-compound-button`,template:Ih,styles:Ch});Ph.define(m.registry);var Bh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,xe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Th(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Bh(t,e,s),s};class Gt extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){f(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}xe([a],Gt.prototype,"appearance",2),xe([a],Gt.prototype,"color",2),xe([a],Gt.prototype,"shape",2),xe([a],Gt.prototype,"size",2),xe([a({converter:ft})],Gt.prototype,"count",2),xe([a({attribute:"overflow-count",converter:ft})],Gt.prototype,"overflowCount",2),xe([a({attribute:"show-zero",mode:"boolean"})],Gt.prototype,"showZero",2),xe([a({mode:"boolean"})],Gt.prototype,"dot",2),oe(Gt,Jt);const Dr=u.partial`:is([state--dot], :state(dot))`,zh=u`
399
+ :host(${de}){border-radius:${R}}:host(${de}${Io}),:host(${de}${Po}),:host(${de}${ct}){border-radius:${zt}}${Lr}
400
+ ${Mr}
401
+ ${_r}
402
+ ${Er}
403
+
404
+ :host(${Dr}),:host(${Dr}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Fh(o={}){return Rr({defaultContent:$`${t=>t.setCount()}`})}const Oh=Fh(),Ah=Gt.compose({name:`${m.prefix}-counter-badge`,template:Oh,styles:zh});Ah.define(m.registry);const Ut={modal:"modal",nonModal:"non-modal",alert:"alert"};var Eh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Bi=(o,t,e,i)=>{for(var s=i>1?void 0:i?Lh(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Eh(t,e,s),s};class To extends I{constructor(){super(...arguments),this.type=Ut.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(){It.enqueue(()=>{this.emitBeforeToggle(),this.type===Ut.alert||this.type===Ut.modal?this.dialog.showModal():this.type===Ut.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Ut.alert&&t.target===this.dialog&&this.hide(),!0}}Bi([y],To.prototype,"dialog",2),Bi([a({attribute:"aria-describedby"})],To.prototype,"ariaDescribedby",2),Bi([a({attribute:"aria-labelledby"})],To.prototype,"ariaLabelledby",2),Bi([a],To.prototype,"type",2);const Mh=$`<dialog role="${o=>o.type===Ut.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Ut.modal||o.type===Ut.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===Ut.alert?t.event.preventDefault():o.hide()}" ${Bt("dialog")}><slot></slot></dialog>`,_h=u`
405
+ @layer base{:host{--dialog-backdrop:${Fl};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${H};border-radius:${ar};border:none;box-shadow:${ad};color:${D};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:${ud};transition-timing-function:${ys};opacity:0}::backdrop{transition-timing-function:${Sr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${$s}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(bt(u`
406
+ @layer base{dialog{border:${ot} solid ${Vt}}}`)),Rh=To.compose({name:`${m.prefix}-dialog`,template:Mh,styles:_h});Rh.define(m.registry);var Dh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,Vh=(o,t,e,i)=>{for(var s=i>1?void 0:i?Hh(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Dh(t,e,s),s};class Hr extends I{constructor(){super(...arguments),this.noTitleAction=!1}}Vh([a({mode:"boolean",attribute:"no-title-action"})],Hr.prototype,"noTitleAction",2);const Nh=$.partial(`
407
407
  <svg
408
408
  fill="currentColor"
409
409
  aria-hidden="true"
@@ -416,81 +416,81 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
416
416
  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"
417
417
  fill="currentColor"
418
418
  ></path>
419
- </svg>`),Fh=v`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===qt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${St("defaultTitleAction")}>${zh}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Oh=u`
420
- ${z("grid")}
419
+ </svg>`),jh=$`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Ut.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${Bt("defaultTitleAction")}>${Nh}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,qh=u`
420
+ ${F("grid")}
421
421
 
422
- :host{background:${D};box-sizing:border-box;gap:${Z};padding:${$o} ${Zc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${D};color:${R};column-gap:8px;display:flex;font-family:${x};font-size:${Oe};font-weight:${q};inset-block-start:0;justify-content:space-between;line-height:${si};margin-block-end:calc(${Z} * -1);margin-block-start:calc(${$o} * -1);padding-block-end:${Z};padding-block-start:${$o};position:sticky;z-index:1}.content{box-sizing:border-box;color:${R};font-family:${x};font-size:${E};font-weight:${M};line-height:${H};min-height:32px}.actions{box-sizing:border-box;background:${D};display:flex;flex-direction:column;gap:${Z};inset-block-end:0;margin-block-end:calc(${$o} * -1);padding-block-end:${$o};padding-block-start:${un};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(${Z} * -1);padding-block-start:${Z}}}`,Ah=Tn.compose({name:`${b.prefix}-dialog-body`,template:Fh,styles:Oh});Ah.define(b.registry);const xo={separator:"separator",presentation:"presentation"},Eh=st;var Mh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,ko=(o,t,e,i)=>{for(var s=i>1?void 0:i?Lh(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&&Mh(t,e,s),s};class oo extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??xo.separator,this.role!==xo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Eh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??xo.separator}`),e===xo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaOrientation=this.role!==xo.presentation?e:null)}}ko([a],oo.prototype,"role",2),ko([a],oo.prototype,"orientation",2),ko([a({attribute:"align-content"})],oo.prototype,"alignContent",2),ko([a],oo.prototype,"appearance",2),ko([a({mode:"boolean"})],oo.prototype,"inset",2);function _h(){return v`<slot></slot>`}const Rh=_h(),Dh=u`
423
- ${z("flex")}
422
+ :host{background:${H};box-sizing:border-box;gap:${J};padding:${ko} ${cd};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${H};color:${D};column-gap:8px;display:flex;font-family:${x};font-size:${Ae};font-weight:${G};inset-block-start:0;justify-content:space-between;line-height:${pi};margin-block-end:calc(${J} * -1);margin-block-start:calc(${ko} * -1);padding-block-end:${J};padding-block-start:${ko};position:sticky;z-index:1}.content{box-sizing:border-box;color:${D};font-family:${x};font-size:${L};font-weight:${M};line-height:${V};min-height:32px}.actions{box-sizing:border-box;background:${H};display:flex;flex-direction:column;gap:${J};inset-block-end:0;margin-block-end:calc(${ko} * -1);padding-block-end:${ko};padding-block-start:${xr};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(${J} * -1);padding-block-start:${J}}}`,Wh=Hr.compose({name:`${m.prefix}-dialog-body`,template:jh,styles:qh});Wh.define(m.registry);const zo={separator:"separator",presentation:"presentation"},Gh=nt;var Uh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,Fo=(o,t,e,i)=>{for(var s=i>1?void 0:i?Xh(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Uh(t,e,s),s};class no extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.inset=!1}alignContentChanged(t,e){t&&f(this.elementInternals,`align-${t}`,!1),e&&f(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}insetChanged(t,e){f(this.elementInternals,"inset",e)}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??zo.separator,this.role!==zo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Gh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??zo.separator}`),e===zo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==zo.presentation?e:null,t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}}Fo([a],no.prototype,"role",2),Fo([a],no.prototype,"orientation",2),Fo([a({attribute:"align-content"})],no.prototype,"alignContent",2),Fo([a],no.prototype,"appearance",2),Fo([a({mode:"boolean"})],no.prototype,"inset",2);function Kh(){return $`<slot></slot>`}const Yh=Kh(),Qh=u`
423
+ ${F("flex")}
424
424
 
425
- :host{contain:content}:host::after,:host::before{align-self:center;background:${bo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${et}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${_t};font-family:${x};font-size:${Q};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:${Ze}}:host([appearance='strong']) ::slotted(*){color:${R}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${Vr}}:host([appearance='brand']) ::slotted(*){color:${Zi}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${wl}}:host([appearance='subtle']) ::slotted(*){color:${nt}}`.withBehaviors(ft(u`
426
- :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}`)),Hh=oo.compose({name:`${b.prefix}-divider`,template:Rh,styles:Dh});Hh.define(b.registry);const Vh={above:"above",after:"after",before:"before"},C={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 Nh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,$s=(o,t,e,i)=>{for(var s=i>1?void 0:i?jh(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&&Nh(t,e,s),s};class xi extends I{constructor(){super(...arguments),this.labelPosition=Vh.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")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[t,e]of Object.entries(C))$(this.elementInternals,e,!!this.input.validity[t])}}}$s([a({attribute:"label-position"})],xi.prototype,"labelPosition",2),$s([y],xi.prototype,"messageSlot",2),$s([y],xi.prototype,"slottedInputs",2);const qh=u.partial`:is([state--disabled], :state(disabled))`,Wh=u.partial`:is([state--focus-visible], :state(focus-visible))`,Gh=u.partial`:is([state--${C.badInput}], :state(${C.badInput}))`,Uh=u.partial`:is([state--${C.customError}], :state(${C.customError}))`,Xh=u.partial`:is([state--${C.patternMismatch}], :state(${C.patternMismatch}))`,Kh=u.partial`:is([state--${C.rangeOverflow}], :state(${C.rangeOverflow}))`,Yh=u.partial`:is([state--${C.rangeUnderflow}], :state(${C.rangeUnderflow}))`,Qh=u.partial`:is([state--${C.stepMismatch}], :state(${C.stepMismatch}))`,Zh=u.partial`:is([state--${C.tooLong}], :state(${C.tooLong}))`,Jh=u.partial`:is([state--${C.tooShort}], :state(${C.tooShort}))`,tu=u.partial`:is([state--${C.typeMismatch}], :state(${C.typeMismatch}))`,eu=u.partial`:is([state-${C.valid}], :state(${C.valid}))`,ou=u.partial`:is([state--${C.valueMissing}], :state(${C.valueMissing}))`,iu=u`
427
- ${z("inline-grid")}
425
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${$o};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${ot}}:host(${Ss}){padding:0 12px}:host ::slotted(*){color:${Ht};font-family:${x};font-size:${Z};font-weight:${M};margin:0;padding:0 12px}:host(${Br})::before,:host(${Tr})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${St}){height:100%;min-height:84px}:host(${St}):empty{min-height:20px}:host(${St}){flex-direction:column;align-items:center}:host(${St}${Ss})::before{margin-top:12px}:host(${St}${Ss})::after{margin-bottom:12px}:host(${St}):empty::before,:host(${St}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${St})::before,:host(${St})::after{width:${ot};min-height:20px;height:100%}:host(${St}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${St}${Br})::before{min-height:8px}:host(${St}${Tr})::after{min-height:8px}:host(${wo})::before,:host(${wo})::after{background:${Je}}:host(${wo}) ::slotted(*){color:${D}}:host(${Bo})::before,:host(${Bo})::after{background:${Qn}}:host(${Bo}) ::slotted(*){color:${rs}}:host(${B})::before,:host(${B})::after{background:${El}}:host(${B}) ::slotted(*){color:${at}}`.withBehaviors(bt(u`
426
+ :host(${wo})::before,:host(${wo})::after,:host(${Bo})::before,:host(${Bo})::after,:host(${B})::before,:host(${B})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Zh=no.compose({name:`${m.prefix}-divider`,template:Yh,styles:Qh});Zh.define(m.registry);const Jh={above:"above",after:"after",before:"before"},C={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 tu=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,Bs=(o,t,e,i)=>{for(var s=i>1?void 0:i?eu(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&tu(t,e,s),s};class Ti extends I{constructor(){super(...arguments),this.labelPosition=Jh.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")&&f(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return f(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if(f(this.elementInternals,"disabled",!!this.input.disabled),f(this.elementInternals,"readonly",!!this.input.readOnly),f(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[t,e]of Object.entries(C))f(this.elementInternals,e,!!this.input.validity[t])}}}Bs([a({attribute:"label-position"})],Ti.prototype,"labelPosition",2),Bs([y],Ti.prototype,"messageSlot",2),Bs([y],Ti.prototype,"slottedInputs",2);const ou=u.partial`:is([state--disabled], :state(disabled))`,iu=u.partial`:is([state--focus-visible], :state(focus-visible))`,su=u.partial`:is([state--${C.badInput}], :state(${C.badInput}))`,nu=u.partial`:is([state--${C.customError}], :state(${C.customError}))`,ru=u.partial`:is([state--${C.patternMismatch}], :state(${C.patternMismatch}))`,au=u.partial`:is([state--${C.rangeOverflow}], :state(${C.rangeOverflow}))`,lu=u.partial`:is([state--${C.rangeUnderflow}], :state(${C.rangeUnderflow}))`,cu=u.partial`:is([state--${C.stepMismatch}], :state(${C.stepMismatch}))`,du=u.partial`:is([state--${C.tooLong}], :state(${C.tooLong}))`,hu=u.partial`:is([state--${C.tooShort}], :state(${C.tooShort}))`,uu=u.partial`:is([state--${C.typeMismatch}], :state(${C.typeMismatch}))`,pu=u.partial`:is([state-${C.valid}], :state(${C.valid}))`,fu=u.partial`:is([state--${C.valueMissing}], :state(${C.valueMissing}))`,gu=u`
427
+ ${F("inline-grid")}
428
428
 
429
- :host{align-items:center;cursor:pointer;gap:0 ${fe};justify-items:start;padding:${Z}}:has([slot='message']){color:${R};row-gap:${Z}}: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:${fe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${ni}}: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:${ni};grid-area:message}:host(${Wh}:focus-within){border-radius:${_};outline:${Ae} solid ${ie}}::slotted(label){display:inline-flex;color:${R};cursor:pointer;font-family:${x};font-size:${E};font-weight:${M};line-height:${H};user-select:none}:host([size='small']) ::slotted(label){font-size:${Q};line-height:${mt}}:host([size='large']) ::slotted(label){font-size:${bt};line-height:${Bt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${q}}:host(${qh}) ::slotted(label){color:${R};cursor:default}::slotted([flag]){display:none}:host(${Gh}) ::slotted([flag='${C.badInput}']),:host(${Uh}) ::slotted([flag='${C.customError}']),:host(${Xh}) ::slotted([flag='${C.patternMismatch}']),:host(${Kh}) ::slotted([flag='${C.rangeOverflow}']),:host(${Yh}) ::slotted([flag='${C.rangeUnderflow}']),:host(${Qh}) ::slotted([flag='${C.stepMismatch}']),:host(${Zh}) ::slotted([flag='${C.tooLong}']),:host(${Jh}) ::slotted([flag='${C.tooShort}']),:host(${tu}) ::slotted([flag='${C.typeMismatch}']),:host(${ou}) ::slotted([flag='${C.valueMissing}']),:host(${eu}) ::slotted([flag='${C.valid}']){display:block}`,su=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)}" ${Ea({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:ze()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${ht({property:"messageSlot",filter:ze("[flag]")})}></slot></template>`,ru=xi.compose({name:`${b.prefix}-field`,template:su,styles:iu,shadowOptions:{delegatesFocus:!0}});ru.define(b.registry);var nu=Object.defineProperty,au=Object.getOwnPropertyDescriptor,wo=(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};class io extends I{}wo([a({mode:"boolean"})],io.prototype,"block",2),wo([a({mode:"boolean"})],io.prototype,"bordered",2),wo([a({mode:"boolean"})],io.prototype,"shadow",2),wo([a],io.prototype,"fit",2),wo([a],io.prototype,"shape",2);const lu=v`<slot></slot>`,cu=u`
430
- :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 ${bo}}: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:${ri}}:host([shape='circular']) ::slotted(img){border-radius:${gt}}:host([shape='rounded']) ::slotted(img){border-radius:${_}}`,du=io.compose({name:`${b.prefix}-image`,template:lu,styles:cu});du.define(b.registry);var hu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,ki=(o,t,e,i)=>{for(var s=i>1?void 0:i?uu(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&&hu(t,e,s),s};class Co extends I{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}ki([a],Co.prototype,"size",2),ki([a],Co.prototype,"weight",2),ki([a({mode:"boolean"})],Co.prototype,"disabled",2),ki([a({mode:"boolean"})],Co.prototype,"required",2);const pu=u`
431
- ${z("inline-flex")}
429
+ :host{align-items:center;cursor:pointer;gap:0 ${me};justify-items:start;padding:${J}}:has([slot='message']){color:${D};row-gap:${J}}: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:${me}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${gi}}: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:${gi};grid-area:message}:host(${iu}:focus-within){border-radius:${R};outline:${Ee} solid ${re}}::slotted(label){display:inline-flex;color:${D};cursor:pointer;font-family:${x};font-size:${L};font-weight:${M};line-height:${V};user-select:none}:host([size='small']) ::slotted(label){font-size:${Z};line-height:${$t}}:host([size='large']) ::slotted(label){font-size:${vt};line-height:${Ft}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${G}}:host(${ou}) ::slotted(label){color:${D};cursor:default}::slotted([flag]){display:none}:host(${su}) ::slotted([flag='${C.badInput}']),:host(${nu}) ::slotted([flag='${C.customError}']),:host(${ru}) ::slotted([flag='${C.patternMismatch}']),:host(${au}) ::slotted([flag='${C.rangeOverflow}']),:host(${lu}) ::slotted([flag='${C.rangeUnderflow}']),:host(${cu}) ::slotted([flag='${C.stepMismatch}']),:host(${du}) ::slotted([flag='${C.tooLong}']),:host(${hu}) ::slotted([flag='${C.tooShort}']),:host(${uu}) ::slotted([flag='${C.typeMismatch}']),:host(${fu}) ::slotted([flag='${C.valueMissing}']),:host(${pu}) ::slotted([flag='${C.valid}']){display:block}`,bu=$`<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)}" ${Wa({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:Fe()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${pt({property:"messageSlot",filter:Fe("[flag]")})}></slot></template>`,mu=Ti.compose({name:`${m.prefix}-field`,template:bu,styles:gu,shadowOptions:{delegatesFocus:!0}});mu.define(m.registry);var vu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,Oo=(o,t,e,i)=>{for(var s=i>1?void 0:i?$u(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&vu(t,e,s),s};class ro extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){f(this.elementInternals,"block",e)}borderedChanged(t,e){f(this.elementInternals,"bordered",e)}shadowChanged(t,e){f(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&f(this.elementInternals,`fit-${t}`,!1),e&&f(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}}Oo([a({mode:"boolean"})],ro.prototype,"block",2),Oo([a({mode:"boolean"})],ro.prototype,"bordered",2),Oo([a({mode:"boolean"})],ro.prototype,"shadow",2),Oo([a],ro.prototype,"fit",2),Oo([a],ro.prototype,"shape",2);const yu=$`<slot></slot>`,xu=u`
430
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${ot} solid ${$o}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${fi}}:host(${So}) ::slotted(img){border-radius:${mt}}:host(${de}) ::slotted(img){border-radius:${R}}`,ku=ro.compose({name:`${m.prefix}-image`,template:yu,styles:xu});ku.define(m.registry);var wu=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,zi=(o,t,e,i)=>{for(var s=i>1?void 0:i?Cu(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&wu(t,e,s),s};class Ao extends I{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){f(this.elementInternals,"disabled",e)}}zi([a],Ao.prototype,"size",2),zi([a],Ao.prototype,"weight",2),zi([a({mode:"boolean"})],Ao.prototype,"disabled",2),zi([a({mode:"boolean"})],Ao.prototype,"required",2);const Su=u`
431
+ ${F("inline-flex")}
432
432
 
433
- :host{color:${R};cursor:pointer;font-family:${x};font-size:${E};font-weight:${M};line-height:${H};user-select:none}.asterisk{color:${Wr};margin-inline-start:${se}}:host([size='small']){font-size:${Q};line-height:${mt}}:host([size='large']){font-size:${bt};line-height:${Bt}}:host([size='large']),:host([weight='semibold']){font-weight:${q}}:host([disabled]),:host([disabled]) .asterisk{color:${S}}`;function fu(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const gu=fu(),bu=Co.compose({name:`${b.prefix}-label`,template:gu,styles:pu});bu.define(b.registry);var mu=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,zn=(o,t,e,i)=>{for(var s=i>1?void 0:i?vu(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&&mu(t,e,s),s};class ys extends Ht{constructor(){super(...arguments),this.inline=!1}}zn([a],ys.prototype,"appearance",2),zn([a({mode:"boolean"})],ys.prototype,"inline",2);const $u=u`
434
- ${z("inline")}
433
+ :host{color:${D};cursor:pointer;font-family:${x};font-size:${L};font-weight:${M};line-height:${V};user-select:none}.asterisk{color:${er};margin-inline-start:${ae}}:host(${ct}){font-size:${Z};line-height:${$t}}:host(${N}){font-size:${vt};line-height:${Ft}}:host(${N}),:host(:is([state--semibold],:state(semibold))){font-weight:${G}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${S}}`;function Iu(){return $`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Pu=Iu(),Bu=Ao.compose({name:`${m.prefix}-label`,template:Pu,styles:Su});Bu.define(m.registry);var Tu=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Vr=(o,t,e,i)=>{for(var s=i>1?void 0:i?zu(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Tu(t,e,s),s};class Ts extends jt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){f(this.elementInternals,"inline",e)}}Vr([a],Ts.prototype,"appearance",2),Vr([a({mode:"boolean"})],Ts.prototype,"inline",2);const Fu=u`
434
+ ${F("inline")}
435
435
 
436
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${sl};cursor:pointer;font-family:${x};font-size:${E};font-weight:${M};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${et};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${rl}}:host(:active){color:${nl}}:host([appearance='subtle']:hover){color:${ll}}:host([appearance='subtle']:active){color:${cl}}}:host([appearance='subtle']){color:${al}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(ft(u`
437
- :host{color:LinkText}`));function yu(){return v`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const xu=yu(),ku=ys.compose({name:`${b.prefix}-link`,template:xu,styles:$u});ku.define(b.registry);class wu extends A{}const Cu=ms({end:v.partial(`
436
+ :host{position:relative;box-sizing:border-box;background-color:transparent;color:${gl};cursor:pointer;font-family:${x};font-size:${L};font-weight:${M};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${ot};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${bl}}:host(:active){color:${ml}}:host(${B}:hover){color:${$l}}:host(${B}:active){color:${yl}}}:host(${B}){color:${vl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(bt(u`
437
+ :host{color:LinkText}`));function Ou(){return $`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Au=Ou(),Eu=Ts.compose({name:`${m.prefix}-link`,template:Au,styles:Fu});Eu.define(m.registry);class Lu extends E{}const Mu=Is({end:$.partial(`
438
438
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
439
439
  <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>
440
440
  </svg>
441
- `)}),Su=wu.compose({name:`${b.prefix}-menu-button`,template:Cu,styles:mi});Su.define(b.registry);function wi(o){return o.split("-")[1]}function Fn(o){return o==="y"?"height":"width"}function _e(o){return o.split("-")[0]}function Ci(o){return["top","bottom"].includes(_e(o))?"x":"y"}function On(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=Ci(t),h=Fn(c),d=i[h]/2-s[h]/2,l=c==="x";let p;switch(_e(t)){case"top":p={x:r,y:i.y-s.height};break;case"bottom":p={x:r,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:n};break;case"left":p={x:i.x-s.width,y:n};break;default:p={x:i.x,y:i.y}}switch(wi(t)){case"start":p[c]-=d*(e&&l?-1:1);break;case"end":p[c]+=d*(e&&l?-1:1)}return p}const Iu=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:p}=On(d,i,h),f=i,g={},m=0;for(let k=0;k<c.length;k++){const{name:P,fn:F}=c[k],{x:T,y:V,data:ot,reset:it}=await F({x:l,y:p,initialPlacement:i,placement:f,strategy:s,middlewareData:g,rects:d,platform:n,elements:{reference:o,floating:t}});l=T??l,p=V??p,g={...g,[P]:{...g[P],...ot}},it&&m<=50&&(m++,typeof it=="object"&&(it.placement&&(f=it.placement),it.rects&&(d=it.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:s}):it.rects),{x:l,y:p}=On(d,f,h)),k=-1)}return{x:l,y:p,placement:f,strategy:s,middlewareData:g}};function Pu(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 xs(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function So(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:p="floating",altBoundary:f=!1,padding:g=0}=t,m=Pu(g),k=c[f?p==="floating"?"reference":"floating":p],P=xs(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(k)))==null||e?k:k.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),F=p==="floating"?{...n.floating,x:i,y:s}:n.reference,T=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),V=await(r.isElement==null?void 0:r.isElement(T))&&await(r.getScale==null?void 0:r.getScale(T))||{x:1,y:1},ot=xs(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:F,offsetParent:T,strategy:h}):F);return{top:(P.top-ot.top+m.top)/V.y,bottom:(ot.bottom-P.bottom+m.bottom)/V.y,left:(P.left-ot.left+m.left)/V.x,right:(ot.right-P.right+m.right)/V.x}}const ks=Math.min,Re=Math.max;function An(o,t,e){return Re(o,ks(t,e))}const En=["top","right","bottom","left"];En.reduce((o,t)=>o.concat(t,t+"-start",t+"-end"),[]);const Bu={left:"right",right:"left",bottom:"top",top:"bottom"};function Si(o){return o.replace(/left|right|bottom|top/g,t=>Bu[t])}function Tu(o,t,e){e===void 0&&(e=!1);const i=wi(o),s=Ci(o),r=Fn(s);let n=s==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(n=Si(n)),{main:n,cross:Si(n)}}const zu={start:"end",end:"start"};function ws(o){return o.replace(/start|end/g,t=>zu[t])}const Mn=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:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...k}=o,P=_e(i),F=_e(n)===n,T=await(c.isRTL==null?void 0:c.isRTL(h.floating)),V=p||(F||!m?[Si(n)]:function($t){const Xt=Si($t);return[ws($t),Xt,ws(Xt)]}(n));p||g==="none"||V.push(...function($t,Xt,Pe,he){const Kt=wi($t);let yt=function(no,Ei,da){const Ms=["left","right"],Ls=["right","left"],ha=["top","bottom"],ua=["bottom","top"];switch(no){case"top":case"bottom":return da?Ei?Ls:Ms:Ei?Ms:Ls;case"left":case"right":return Ei?ha:ua;default:return[]}}(_e($t),Pe==="start",he);return Kt&&(yt=yt.map(no=>no+"-"+Kt),Xt&&(yt=yt.concat(yt.map(ws)))),yt}(n,m,g,T));const ot=[n,...V],it=await So(t,k),Ie=[];let de=((e=s.flip)==null?void 0:e.overflows)||[];if(d&&Ie.push(it[P]),l){const{main:$t,cross:Xt}=Tu(i,r,T);Ie.push(it[$t],it[Xt])}if(de=[...de,{placement:i,overflows:Ie}],!Ie.every($t=>$t<=0)){var ro,As;const $t=(((ro=s.flip)==null?void 0:ro.index)||0)+1,Xt=ot[$t];if(Xt)return{data:{index:$t,overflows:de},reset:{placement:Xt}};let Pe=(As=de.filter(he=>he.overflows[0]<=0).sort((he,Kt)=>he.overflows[1]-Kt.overflows[1])[0])==null?void 0:As.placement;if(!Pe)switch(f){case"bestFit":{var Es;const he=(Es=de.map(Kt=>[Kt.placement,Kt.overflows.filter(yt=>yt>0).reduce((yt,no)=>yt+no,0)]).sort((Kt,yt)=>Kt[1]-yt[1])[0])==null?void 0:Es[0];he&&(Pe=he);break}case"initialPlacement":Pe=n}if(i!==Pe)return{reset:{placement:Pe}}}return{}}}};function Ln(o,t){return{top:o.top-t.height,right:o.right-t.width,bottom:o.bottom-t.height,left:o.left-t.width}}function _n(o){return En.some(t=>o[t]>=0)}const Fu=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=Ln(await So(t,{...i,elementContext:"reference"}),s.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:_n(r)}}}case"escaped":{const r=Ln(await So(t,{...i,altBoundary:!0}),s.floating);return{data:{escapedOffsets:r,escaped:_n(r)}}}default:return{}}}}};function Ou(o){return o==="x"?"y":"x"}const Au=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:P=>{let{x:F,y:T}=P;return{x:F,y:T}}},...h}=o,d={x:e,y:i},l=await So(t,h),p=Ci(_e(s)),f=Ou(p);let g=d[p],m=d[f];if(r){const P=p==="y"?"bottom":"right";g=An(g+l[p==="y"?"top":"left"],g,g-l[P])}if(n){const P=f==="y"?"bottom":"right";m=An(m+l[f==="y"?"top":"left"],m,m-l[P])}const k=c.fn({...t,[p]:g,[f]:m});return{...k,data:{x:k.x-e,y:k.y-i}}}}},Rn=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 So(t,c),d=_e(e),l=wi(e),p=Ci(e)==="x",{width:f,height:g}=i.floating;let m,k;d==="top"||d==="bottom"?(m=d,k=l===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(k=d,m=l==="end"?"top":"bottom");const P=g-h[m],F=f-h[k];let T=P,V=F;if(p?V=ks(f-h.right-h.left,F):T=ks(g-h.bottom-h.top,P),!t.middlewareData.shift&&!l){const it=Re(h.left,0),Ie=Re(h.right,0),de=Re(h.top,0),ro=Re(h.bottom,0);p?V=f-2*(it!==0||Ie!==0?it+Ie:Re(h.left,h.right)):T=g-2*(de!==0||ro!==0?de+ro:Re(h.top,h.bottom))}await n({...t,availableWidth:V,availableHeight:T});const ot=await s.getDimensions(r.floating);return f!==ot.width||g!==ot.height?{reset:{rects:!0}}:{}}}};function vt(o){var t;return((t=o.ownerDocument)==null?void 0:t.defaultView)||window}function Wt(o){return vt(o).getComputedStyle(o)}const Dn=Math.min,Io=Math.max,Ii=Math.round;function Hn(o){const t=Wt(o);let e=parseFloat(t.width),i=parseFloat(t.height);const s=o.offsetWidth,r=o.offsetHeight,n=Ii(e)!==s||Ii(i)!==r;return n&&(e=s,i=r),{width:e,height:i,fallback:n}}function xe(o){return Nn(o)?(o.nodeName||"").toLowerCase():""}let Pi;function Vn(){if(Pi)return Pi;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(Pi=o.brands.map(t=>t.brand+"/"+t.version).join(" "),Pi):navigator.userAgent}function Gt(o){return o instanceof vt(o).HTMLElement}function Ft(o){return o instanceof vt(o).Element}function Nn(o){return o instanceof vt(o).Node}function jn(o){return typeof ShadowRoot>"u"?!1:o instanceof vt(o).ShadowRoot||o instanceof ShadowRoot}function Bi(o){const{overflow:t,overflowX:e,overflowY:i,display:s}=Wt(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(s)}function Eu(o){return["table","td","th"].includes(xe(o))}function Cs(o){const t=/firefox/i.test(Vn()),e=Wt(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 Ss(){return/^((?!chrome|android).)*safari/i.test(Vn())}function Is(o){return["html","body","#document"].includes(xe(o))}function qn(o){return Ft(o)?o:o.contextElement}const Wn={x:1,y:1};function so(o){const t=qn(o);if(!Gt(t))return Wn;const e=t.getBoundingClientRect(),{width:i,height:s,fallback:r}=Hn(t);let n=(r?Ii(e.width):e.width)/i,c=(r?Ii(e.height):e.height)/s;return n&&Number.isFinite(n)||(n=1),c&&Number.isFinite(c)||(c=1),{x:n,y:c}}function De(o,t,e,i){var s,r;t===void 0&&(t=!1),e===void 0&&(e=!1);const n=o.getBoundingClientRect(),c=qn(o);let h=Wn;t&&(i?Ft(i)&&(h=so(i)):h=so(o));const d=c?vt(c):window,l=Ss()&&e;let p=(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 k=vt(c),P=i&&Ft(i)?vt(i):i;let F=k.frameElement;for(;F&&i&&P!==k;){const T=so(F),V=F.getBoundingClientRect(),ot=getComputedStyle(F);V.x+=(F.clientLeft+parseFloat(ot.paddingLeft))*T.x,V.y+=(F.clientTop+parseFloat(ot.paddingTop))*T.y,p*=T.x,f*=T.y,g*=T.x,m*=T.y,p+=V.x,f+=V.y,F=vt(F).frameElement}}return{width:g,height:m,top:f,right:p+g,bottom:f+m,left:p,x:p,y:f}}function ke(o){return((Nn(o)?o.ownerDocument:o.document)||window.document).documentElement}function Ti(o){return Ft(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Gn(o){return De(ke(o)).left+Ti(o).scrollLeft}function Po(o){if(xe(o)==="html")return o;const t=o.assignedSlot||o.parentNode||jn(o)&&o.host||ke(o);return jn(t)?t.host:t}function Un(o){const t=Po(o);return Is(t)?t.ownerDocument.body:Gt(t)&&Bi(t)?t:Un(t)}function Bo(o,t){var e;t===void 0&&(t=[]);const i=Un(o),s=i===((e=o.ownerDocument)==null?void 0:e.body),r=vt(i);return s?t.concat(r,r.visualViewport||[],Bi(i)?i:[]):t.concat(i,Bo(i))}function Xn(o,t,e){let i;if(t==="viewport")i=function(n,c){const h=vt(n),d=ke(n),l=h.visualViewport;let p=d.clientWidth,f=d.clientHeight,g=0,m=0;if(l){p=l.width,f=l.height;const k=Ss();(!k||k&&c==="fixed")&&(g=l.offsetLeft,m=l.offsetTop)}return{width:p,height:f,x:g,y:m}}(o,e);else if(t==="document")i=function(n){const c=ke(n),h=Ti(n),d=n.ownerDocument.body,l=Io(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),p=Io(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let f=-h.scrollLeft+Gn(n);const g=-h.scrollTop;return Wt(d).direction==="rtl"&&(f+=Io(c.clientWidth,d.clientWidth)-l),{width:l,height:p,x:f,y:g}}(ke(o));else if(Ft(t))i=function(n,c){const h=De(n,!0,c==="fixed"),d=h.top+n.clientTop,l=h.left+n.clientLeft,p=Gt(n)?so(n):{x:1,y:1};return{width:n.clientWidth*p.x,height:n.clientHeight*p.y,x:l*p.x,y:d*p.y}}(t,e);else{const n={...t};if(Ss()){var s,r;const c=vt(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 xs(i)}function Kn(o,t){return Gt(o)&&Wt(o).position!=="fixed"?t?t(o):o.offsetParent:null}function Yn(o,t){const e=vt(o);let i=Kn(o,t);for(;i&&Eu(i)&&Wt(i).position==="static";)i=Kn(i,t);return i&&(xe(i)==="html"||xe(i)==="body"&&Wt(i).position==="static"&&!Cs(i))?e:i||function(s){let r=Po(s);for(;Gt(r)&&!Is(r);){if(Cs(r))return r;r=Po(r)}return null}(o)||e}function Mu(o,t,e){const i=Gt(t),s=ke(t),r=De(o,!0,e==="fixed",t);let n={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(i||!i&&e!=="fixed")if((xe(t)!=="body"||Bi(s))&&(n=Ti(t)),Gt(t)){const h=De(t,!0);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&(c.x=Gn(s));return{x:r.left+n.scrollLeft-c.x,y:r.top+n.scrollTop-c.y,width:r.width,height:r.height}}const Lu={getClippingRect:function(o){let{element:t,boundary:e,rootBoundary:i,strategy:s}=o;const r=e==="clippingAncestors"?function(d,l){const p=l.get(d);if(p)return p;let f=Bo(d).filter(P=>Ft(P)&&xe(P)!=="body"),g=null;const m=Wt(d).position==="fixed";let k=m?Po(d):d;for(;Ft(k)&&!Is(k);){const P=Wt(k),F=Cs(k);(m?F||g:F||P.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=P:f=f.filter(T=>T!==k),k=Po(k)}return l.set(d,f),f}(t,this._c):[].concat(e),n=[...r,i],c=n[0],h=n.reduce((d,l)=>{const p=Xn(t,l,s);return d.top=Io(p.top,d.top),d.right=Dn(p.right,d.right),d.bottom=Dn(p.bottom,d.bottom),d.left=Io(p.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=Gt(e),r=ke(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")&&((xe(e)!=="body"||Bi(r))&&(n=Ti(e)),Gt(e))){const d=De(e);c=so(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:Ft,getDimensions:function(o){return Gt(o)?Hn(o):o.getBoundingClientRect()},getOffsetParent:Yn,getDocumentElement:ke,getScale:so,async getElementRects(o){let{reference:t,floating:e,strategy:i}=o;const s=this.getOffsetParent||Yn,r=this.getDimensions;return{reference:Mu(t,await s(e),i),floating:{x:0,y:0,...await r(e)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Wt(o).direction==="rtl"};function Qn(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?[...Ft(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,p=null;if(n){let g=!0;p=new ResizeObserver(()=>{g||e(),g=!1}),Ft(o)&&!c&&p.observe(o),Ft(o)||!o.contextElement||c||p.observe(o.contextElement),p.observe(t)}let f=c?De(o):null;return c&&function g(){const m=De(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=p)==null||g.disconnect(),p=null,c&&cancelAnimationFrame(l)}}const Zn=(o,t,e)=>{const i=new Map,s={platform:Lu,...e},r={...s.platform,_c:i};return Iu(o,t,{...s,platform:r})},lt={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};lt.menuitem+"",lt.menuitemcheckbox+"",lt.menuitemradio+"";var _u=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,He=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ru(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&&_u(t,e,s),s};class Ot extends I{constructor(){super(...arguments),this.role=lt.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Qe:case Wo:return this.invoke(),!1;case Ke:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case Pr:if(this.expanded)return this.closeSubMenu(),!1;break;case Xe: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 lt.menuitemcheckbox:this.checked=!this.checked;break;case lt.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case lt.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)&&wt.enqueue(()=>{this.cleanup=Qn(this,this.submenuContainer,async()=>{const t=["left-start","right-start"],{x:e,y:i}=await Zn(this,this.submenuContainer,{middleware:[Au(),Rn({apply:({availableWidth:s,rects:r})=>{s<r.floating.width&&t.push("bottom-end","top-end")}}),Mn({fallbackPlacements:t})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${e}px`,position:"fixed",top:`${i}px`}),this.submenuLoaded()})})}}He([a({mode:"boolean"})],Ot.prototype,"disabled",2),He([a({mode:"boolean"})],Ot.prototype,"expanded",2),He([a],Ot.prototype,"role",2),He([a({mode:"boolean"})],Ot.prototype,"checked",2),He([a({mode:"boolean"})],Ot.prototype,"hidden",2),He([y],Ot.prototype,"slottedSubmenu",2),He([y],Ot.prototype,"submenu",2),Jt(Ot,Yt);const Du=u`
442
- ${z("grid")}
443
-
444
- :host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${D};font:${M} ${E} / ${H} ${x};border-radius:${_};color:${_t};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${Ji}}.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:${_t}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${Oe};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${nt};font:${M} ${Q} / ${mt} ${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:${Go}}:host([icon]:hover) ::slotted([slot='start']){color:${Or}}:host(:active){background-color:${Lr}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${Uo}}:host(:active) ::slotted([slot='start']){color:${Ar}}:host([disabled]){background-color:${co}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${S}}: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}`,Jn=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>'),Hu=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 Vu(o={}){return v`<template aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==lt.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)}">${Xi(t=>t.role===lt.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${pt(o.checkboxIndicator)}</slot></span></div>`)} ${Xi(t=>t.role===lt.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${pt(o.radioIndicator)}</slot></span></div>`)}</div>${Zt(o)}<span class="content" part="content"><slot></slot></span>${Qt(o)} ${Xi(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">${pt(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${t=>!t.expanded}" class="submenu-container" part="submenu-container" ${St("submenuContainer")}><slot name="submenu" ${ht({property:"slottedSubmenu",filter:ze("[role='menu']")})}></slot></span></template>`}const Nu=Vu({checkboxIndicator:Jn,expandCollapseGlyph:Hu,radioIndicator:Jn}),ju=Ot.compose({name:`${b.prefix}-menu-item`,template:Nu,styles:Du});ju.define(b.registry);var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Gu=(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};const Ps=class Os extends I{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Ir(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===lt.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===lt.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=t=>t instanceof Ot||Ir(t)&&t.getAttribute("role")in Os.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),wt.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 Ue:this.setFocus(this.focusIndex+1,1);return;case Ye:this.setFocus(this.focusIndex-1,-1);return;case jo:this.setFocus(this.menuItems.length-1,-1);return;case qo: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!==lt.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=Os.elementIndent(d);return Math.max(h,l)},0);r instanceof Ot&&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}}};Ps.focusableElementRoles=lt,Gu([y],Ps.prototype,"items",2);let Uu=Ps;const Xu=u`
445
- ${z("flex")}
446
-
447
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${D};border:1px solid ${Rt};border-radius:${_};box-shadow:${cn};padding:4px;row-gap:2px}`;function Ku(){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 ${ht("items")}></slot></template>`}const Yu=Ku(),Qu=Uu.compose({name:`${b.prefix}-menu-list`,template:Yu,styles:Xu});Qu.define(b.registry);var Zu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,Ve=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ju(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 we extends I{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 Wo:case Qe: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(),wt.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&&wt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&wt.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&&wt.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=Qn(this,this.positioningContainer,async()=>{const{middlewareData:t,x:e,y:i}=await Zn(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[Mn(),Rn({apply:({availableHeight:s,rects:r})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${s}px`,width:`${r.reference.width}px`})}}),Fu()]});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 Pr:t.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case Na:this.open&&this.closeMenu(),t.shiftKey&&this.focusTrigger();default:return!0}}}Ve([y,a({attribute:"open-on-hover",mode:"boolean"})],we.prototype,"openOnHover",2),Ve([y,a({attribute:"open-on-context",mode:"boolean"})],we.prototype,"openOnContext",2),Ve([y,a({attribute:"close-on-scroll",mode:"boolean"})],we.prototype,"closeOnScroll",2),Ve([y,a({attribute:"persist-on-item-click",mode:"boolean"})],we.prototype,"persistOnItemClick",2),Ve([y,a({mode:"boolean"})],we.prototype,"open",2),Ve([y],we.prototype,"slottedMenuList",2),Ve([y],we.prototype,"slottedTriggers",2);const tp=u`
448
- :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function ep(){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" ${ht({property:"slottedTriggers",filter:ze()})}></slot><span ${St("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${ht({property:"slottedMenuList",filter:ze()})}></slot></span></template>`}const op=ep(),ip=we.compose({name:`${b.prefix}-menu`,template:op,styles:tp});ip.define(b.registry);var sp=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,Ne=(o,t,e,i)=>{for(var s=i>1?void 0:i?rp(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&&sp(t,e,s),s};class Ce extends I{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)}}Ne([a],Ce.prototype,"thickness",2),Ne([a],Ce.prototype,"shape",2),Ne([a({attribute:"validation-state"})],Ce.prototype,"validationState",2),Ne([a({converter:ut})],Ce.prototype,"value",2),Ne([a({converter:ut})],Ce.prototype,"min",2),Ne([a({converter:ut})],Ce.prototype,"max",2),Ne([ga],Ce.prototype,"percentComplete",1);const np=u`
449
- ${z("block")}
450
-
451
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${Qo};border-radius:${_};contain:content}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${cs}}.indicator{background-color:${ho};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(
452
- to right,${Qo} 0%,${It} 50%,${Qo} 100%
453
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${qr}}:host([validation-state='warning']) .indicator{background-color:${Xr}}:host([validation-state='success']) .indicator{background-color:${Ur}}@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(ft(u`
454
- :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function ap(){return v`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const lp=ap(),cp=Ce.compose({name:`${b.prefix}-progress-bar`,template:lp,styles:np});cp.define(b.registry);const ta="form-associated-proxy",ea="ElementInternals",oa=ea in window&&"setFormValue"in window[ea].prototype,ia=new WeakMap;function sa(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 oa}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 Hs}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),wt.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),wt.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!oa)return null;let e=ia.get(this);return e||(e=this.attachInternals(),ia.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",ta),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",ta)),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 Qe: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"),y(t.prototype,"value"),t}function dp(o){class t extends sa(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:gr})(e.prototype,"currentChecked"),y(e.prototype,"defaultChecked"),y(e.prototype,"checked"),e}class hp extends I{}class up extends dp(hp){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var pp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,ra=(o,t,e,i)=>{for(var s=i>1?void 0:i?fp(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 le extends up{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 Wo:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}ra([y],le.prototype,"name",2),ra([y],le.prototype,"defaultSlottedNodes",2);const na=st;var gp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,Se=(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&&gp(t,e,s),s};class ce extends I{constructor(){super(...arguments),this.stacked=!1,this.orientation=na.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(i=>{i instanceof le&&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 le&&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 le&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&i===Ke,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===Xe,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 ja&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Qe:{this.checkFocusedRadio();break}case Ke:case Ue:{this.direction===xt.ltr?this.moveRight(t):this.moveLeft(t);break}case Xe:case Ye:{this.direction===xt.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 le&&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=Br(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof le&&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 le&&(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]}}}Se([a({mode:"boolean"})],ce.prototype,"stacked",2),Se([a({attribute:"readonly",mode:"boolean"})],ce.prototype,"readOnly",2),Se([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabled",2),Se([a],ce.prototype,"name",2),Se([a],ce.prototype,"value",2),Se([a],ce.prototype,"orientation",2),Se([y],ce.prototype,"childItems",2),Se([y],ce.prototype,"slottedRadioButtons",2);const mp=u`
455
- ${z("flex")}
456
-
457
- :host{align-items:flex-start;flex-direction:column;row-gap:${Z}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${S};--checked-indicator-background-color:${S};--state-color:${S}}::slotted([slot='label']){color:${R};padding:${Z} ${Dt} ${Z} ${se};font:${M} ${E} / ${H} ${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:${Dt}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${Dt};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function vp(){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===na.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${ht({property:"slottedRadioButtons",filter:ze("[role=radio]")})}></slot></div></template>`}const $p=vp(),yp=ce.compose({name:`${b.prefix}-radio-group`,template:$p,styles:mp});yp.define(b.registry);const xp=u`
458
- ${z("inline-grid")}
459
-
460
- :host{grid-auto-flow:column;grid-template-columns:max-content;gap:${se};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${nt});padding-inline-end:${Dt};--control-border-color:${ee};--checked-indicator-background-color:${Fr};--state-color:${nt}}:host([disabled]){--control-border-color:${S};--checked-indicator-background-color:${S};--state-color:${S}}.label{cursor:pointer;font-family:${x};font-size:${E};font-weight:${M};line-height:${H}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${ee});border-radius:${gt};display:flex;height:16px;justify-content:center;margin:${Z} ${Dt};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${gt};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${_t}}:host(:focus-visible){border-radius:${Pt};box-shadow:0 0 0 3px ${ie};outline:1px solid ${ti}}:host(:hover) .control{border-color:${fo}}:host(:active) .control{border-color:${go}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${ee})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${Fr})}:host([aria-checked='true']:hover) .control{border-color:${ns}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${ns}}:host([aria-checked='true']:active) .control{border-color:${as}}:host([aria-checked='true']:active) .checked-indicator{background:${Ar}}:host([disabled]){color:${S};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${S}}:host([disabled]) .checked-indicator{background:${S}}`.withBehaviors(ft(u`
461
- :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 kp(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">${pt(o.checkedIndicator)}</slot></div><label part="label" class="${t=>["label",!t.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${ht({property:"defaultSlottedNodes",filter:Tr})}></slot></label></template>`}const wp=kp({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),Cp=le.compose({name:`${b.prefix}-radio`,template:wp,styles:xp});Cp.define(b.registry);const Sp={singleValue:"single-value"};class Ip extends I{}class Pp extends sa(Ip){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function aa(o,t,e,i){let s=Yi(0,1,(o-t)/(e-t));return i===xt.rtl&&(s=1-s),s}var Bp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,J=(o,t,e,i)=>{for(var s=i>1?void 0:i?Tp(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&&Bp(t,e,s),s};class K extends Pp{constructor(){super(...arguments),this.direction=xt.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=st.horizontal,this.mode=Sp.singleValue,this.keypressHandler=t=>{if(!(this.readOnly||this.disabled)){if(t.key===qo)t.preventDefault(),this.direction!==xt.rtl&&this.orientation!==st.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(t.key===jo)t.preventDefault(),this.direction!==xt.rtl&&this.orientation!==st.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!t.shiftKey)switch(t.key){case Ke:case Ye:t.preventDefault(),this.increment();break;case Xe:case Ue: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===st.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===st.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=u`
462
- :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=Yi(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=Br(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!==xt.rtl&&this.orientation!==st.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!==xt.rtl&&this.orientation!==st.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-aa(Number(this.value),Number(this.min),Number(this.max),t))*100;this.orientation===st.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=aa(t,this.orientation===st.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===st.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}}J([a],K.prototype,"size",2),J([a({attribute:"readonly",mode:"boolean"})],K.prototype,"readOnly",2),J([y],K.prototype,"direction",2),J([y],K.prototype,"isDragging",2),J([y],K.prototype,"position",2),J([y],K.prototype,"trackWidth",2),J([y],K.prototype,"trackMinWidth",2),J([y],K.prototype,"trackHeight",2),J([y],K.prototype,"trackLeft",2),J([y],K.prototype,"trackMinHeight",2),J([y],K.prototype,"valueTextFormatter",2),J([a({converter:ut})],K.prototype,"min",2),J([a({converter:ut})],K.prototype,"max",2),J([a({converter:ut})],K.prototype,"step",2),J([a],K.prototype,"orientation",2),J([a],K.prototype,"mode",2);const zp=u`
463
- ${z("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:${Pt};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 ${ti}}.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:${is};border-radius:${gt};box-shadow:inset 0 0 0 var(--thumb-padding) ${D},0 0 0 1px ${Ze}}.thumb-cursor:hover{background-color:${uo}}.thumb-cursor:active{background-color:${po}}:host([disabled]) .thumb-cursor{background-color:${S};box-shadow:inset 0 0 0 var(--thumb-padding) ${D},0 0 0 1px ${oe}}.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:${ee};border-radius:${_};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${_};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
464
- var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${D} calc(var(--step-rate) - 1px),${D} var(--step-rate)
465
- )}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${co}}: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:${ho};position:absolute;height:100%;left:0;border-radius:${_}}:host([disabled]) .track-start{background-color:${S}}:host(:hover) .track-start{background-color:${uo}}:host([disabled]:hover) .track-start{background-color:${S}}.track-start:active{background-color:${po}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(ft(u`
466
- .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 Fp(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 ${St("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 ${St("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">${pt(o.thumb)}</slot></div></div></template>`}const Op=Fp({thumb:'<div class="thumb-cursor"></div>'}),Ap=K.compose({name:`${b.prefix}-slider`,template:Op,styles:zp});Ap.define(b.registry);var Ep=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,la=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mp(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&&Ep(t,e,s),s};class Bs extends I{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}la([a],Bs.prototype,"size",2),la([a],Bs.prototype,"appearance",2);const Lp=u`
467
- ${z("flex")}
468
-
469
- :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:${Nr};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${Vr};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:${Cl}}@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)}}`,_p=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=Bs.compose({name:`${b.prefix}-spinner`,template:_p,styles:Lp});Rp.define(b.registry);class Dp extends Tt{}function Hp(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">${pt(o.switch)}</slot></template>`}const Vp=Hp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),ct=u.partial`:is([state--checked], :state(checked))`,Np=u`
470
- ${z("inline-flex")}
471
-
472
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${Ee};width:40px;height:20px;background-color:${It};border:1px solid ${ee};border-radius:${gt};cursor:pointer}:host(:hover){background:none;border-color:${fo}}:host(:active){border-color:${go}}:host(:disabled),:host([readonly]){border:1px solid ${oe};background-color:none;pointer:default}:host(${ct}){background:${ho};border-color:${ho}}:host(${ct}:hover){background:${uo};border-color:${uo}}:host(${ct}:active){background:${po};border-color:${po}}:host(${ct}:disabled){background:${co};border-color:${oe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${nt};transition-duration:${pn};transition-timing-function:${ps};transition-property:margin-inline-start}:host(${ct}) .checked-indicator{background-color:${Yo};margin-inline-start:calc(100% - 14px)}:host(${ct}:hover) .checked-indicator{background:${dl}}:host(${ct}:active) .checked-indicator{background:${hl}}:host(:hover) .checked-indicator{background-color:${el}}:host(:active) .checked-indicator{background-color:${ol}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${S}}:host(${ct}:disabled) .checked-indicator{background:${S}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${Rt};outline:${Ae} solid ${Rt};box-shadow:${ri},0 0 0 2px ${ie}}`.withBehaviors(ft(u`
473
- :host{border-color:InactiveBorder}:host(${ct}),:host(${ct}:active),:host(${ct}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${ct}) .checked-indicator,:host(${ct}:hover) .checked-indicator,:host(${ct}:active) .checked-indicator{background-color:ButtonFace}`)),jp=Dp.compose({name:`${b.prefix}-switch`,template:Vp,styles:Np});jp.define(b.registry);class qp extends I{}function Wp(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Gp=Wp(),Up=u`
474
- ${z("block")}
475
-
476
- :host{box-sizing:border-box;padding:${fe} ${re}}`,Xp=qp.compose({name:`${b.prefix}-tab-panel`,template:Gp,styles:Up});Xp.define(b.registry);var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Qp=(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&&Kp(t,e,s),s};class Ts extends I{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
477
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Qp([a({mode:"boolean"})],Ts.prototype,"disabled",2),Jt(Ts,Yt);function Zp(o={}){return v`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Zt(o)}<span class="tab-content"><slot></slot></span>${Qt(o)}</template>`}const Jp=Zp({}),tf=u`
478
- ${z("inline-flex")}
479
-
480
- :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${H};font-family:${x};font-size:${E};color:${_t};fill:currentcolor;grid-row:1;padding:${fe} ${re};border-radius:${_}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${R};font-weight:${q}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${H};font-weight:${q}}:host([aria-selected='true'])::after{background-color:${rs};border-radius:${gt};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Jo};border-radius:${gt};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${S}}::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:${S};color:${S}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Pt};box-shadow:0 0 0 3px ${ie};outline:1px solid ${ti}}`.withBehaviors(ft(u`
481
- :host([aria-selected='true'])::after{background-color:Highlight}`)),ef=Ts.compose({name:`${b.prefix}-tab`,template:Jp,styles:tf});ef.define(b.registry);const of={subtle:"subtle",transparent:"transparent"},zi=st;var sf=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,je=(o,t,e,i)=>{for(var s=i>1?void 0:i?rf(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&&sf(t,e,s),s};class To extends I{constructor(){super(...arguments),this.orientation=zi.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 Xe:t.preventDefault(),this.adjustBackward(t);break;case Ke:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case Ye:t.preventDefault(),this.adjustBackward(t);break;case Ue:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case qo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case jo: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-${Qi()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${Qi()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===zi.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),i=e.indexOf(this.activetab),s=Yi(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()}}je([a],To.prototype,"orientation",2),je([a],To.prototype,"activeid",2),je([y],To.prototype,"tabs",2),je([y],To.prototype,"tabpanels",2);class zo extends To{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=of.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===zi.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===zi.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=u`
441
+ `)}),_u=Lu.compose({name:`${m.prefix}-menu-button`,template:Mu,styles:Si});_u.define(m.registry);function Fi(o){return o.split("-")[1]}function Nr(o){return o==="y"?"height":"width"}function Re(o){return o.split("-")[0]}function Oi(o){return["top","bottom"].includes(Re(o))?"x":"y"}function jr(o,t,e){let{reference:i,floating:s}=o;const n=i.x+i.width/2-s.width/2,r=i.y+i.height/2-s.height/2,c=Oi(t),h=Nr(c),d=i[h]/2-s[h]/2,l=c==="x";let p;switch(Re(t)){case"top":p={x:n,y:i.y-s.height};break;case"bottom":p={x:n,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:r};break;case"left":p={x:i.x-s.width,y:r};break;default:p={x:i.x,y:i.y}}switch(Fi(t)){case"start":p[c]-=d*(e&&l?-1:1);break;case"end":p[c]+=d*(e&&l?-1:1)}return p}const Ru=async(o,t,e)=>{const{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:r}=e,c=n.filter(Boolean),h=await(r.isRTL==null?void 0:r.isRTL(t));let d=await r.getElementRects({reference:o,floating:t,strategy:s}),{x:l,y:p}=jr(d,i,h),g=i,b={},v=0;for(let k=0;k<c.length;k++){const{name:P,fn:O}=c[k],{x:z,y:j,data:it,reset:st}=await O({x:l,y:p,initialPlacement:i,placement:g,strategy:s,middlewareData:b,rects:d,platform:r,elements:{reference:o,floating:t}});l=z??l,p=j??p,b={...b,[P]:{...b[P],...it}},st&&v<=50&&(v++,typeof st=="object"&&(st.placement&&(g=st.placement),st.rects&&(d=st.rects===!0?await r.getElementRects({reference:o,floating:t,strategy:s}):st.rects),{x:l,y:p}=jr(d,g,h)),k=-1)}return{x:l,y:p,placement:g,strategy:s,middlewareData:b}};function Du(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 zs(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function Eo(o,t){var e;t===void 0&&(t={});const{x:i,y:s,platform:n,rects:r,elements:c,strategy:h}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:p="floating",altBoundary:g=!1,padding:b=0}=t,v=Du(b),k=c[g?p==="floating"?"reference":"floating":p],P=zs(await n.getClippingRect({element:(e=await(n.isElement==null?void 0:n.isElement(k)))==null||e?k:k.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),O=p==="floating"?{...r.floating,x:i,y:s}:r.reference,z=await(n.getOffsetParent==null?void 0:n.getOffsetParent(c.floating)),j=await(n.isElement==null?void 0:n.isElement(z))&&await(n.getScale==null?void 0:n.getScale(z))||{x:1,y:1},it=zs(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:O,offsetParent:z,strategy:h}):O);return{top:(P.top-it.top+v.top)/j.y,bottom:(it.bottom-P.bottom+v.bottom)/j.y,left:(P.left-it.left+v.left)/j.x,right:(it.right-P.right+v.right)/j.x}}const Fs=Math.min,De=Math.max;function qr(o,t,e){return De(o,Fs(t,e))}const Wr=["top","right","bottom","left"];Wr.reduce((o,t)=>o.concat(t,t+"-start",t+"-end"),[]);const Hu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ai(o){return o.replace(/left|right|bottom|top/g,t=>Hu[t])}function Vu(o,t,e){e===void 0&&(e=!1);const i=Fi(o),s=Oi(o),n=Nr(s);let r=s==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(r=Ai(r)),{main:r,cross:Ai(r)}}const Nu={start:"end",end:"start"};function Os(o){return o.replace(/start|end/g,t=>Nu[t])}const Gr=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e;const{placement:i,middlewareData:s,rects:n,initialPlacement:r,platform:c,elements:h}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...k}=o,P=Re(i),O=Re(r)===r,z=await(c.isRTL==null?void 0:c.isRTL(h.floating)),j=p||(O||!v?[Ai(r)]:function(xt){const Qt=Ai(xt);return[Os(xt),Qt,Os(Qt)]}(r));p||b==="none"||j.push(...function(xt,Qt,Be,fe){const Zt=Fi(xt);let kt=function(co,Ni,xa){const qs=["left","right"],Ws=["right","left"],ka=["top","bottom"],wa=["bottom","top"];switch(co){case"top":case"bottom":return xa?Ni?Ws:qs:Ni?qs:Ws;case"left":case"right":return Ni?ka:wa;default:return[]}}(Re(xt),Be==="start",fe);return Zt&&(kt=kt.map(co=>co+"-"+Zt),Qt&&(kt=kt.concat(kt.map(Os)))),kt}(r,v,b,z));const it=[r,...j],st=await Eo(t,k),Pe=[];let pe=((e=s.flip)==null?void 0:e.overflows)||[];if(d&&Pe.push(st[P]),l){const{main:xt,cross:Qt}=Vu(i,n,z);Pe.push(st[xt],st[Qt])}if(pe=[...pe,{placement:i,overflows:Pe}],!Pe.every(xt=>xt<=0)){var lo,Ns;const xt=(((lo=s.flip)==null?void 0:lo.index)||0)+1,Qt=it[xt];if(Qt)return{data:{index:xt,overflows:pe},reset:{placement:Qt}};let Be=(Ns=pe.filter(fe=>fe.overflows[0]<=0).sort((fe,Zt)=>fe.overflows[1]-Zt.overflows[1])[0])==null?void 0:Ns.placement;if(!Be)switch(g){case"bestFit":{var js;const fe=(js=pe.map(Zt=>[Zt.placement,Zt.overflows.filter(kt=>kt>0).reduce((kt,co)=>kt+co,0)]).sort((Zt,kt)=>Zt[1]-kt[1])[0])==null?void 0:js[0];fe&&(Be=fe);break}case"initialPlacement":Be=r}if(i!==Be)return{reset:{placement:Be}}}return{}}}};function Ur(o,t){return{top:o.top-t.height,right:o.right-t.width,bottom:o.bottom-t.height,left:o.left-t.width}}function Xr(o){return Wr.some(t=>o[t]>=0)}const ju=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 n=Ur(await Eo(t,{...i,elementContext:"reference"}),s.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Xr(n)}}}case"escaped":{const n=Ur(await Eo(t,{...i,altBoundary:!0}),s.floating);return{data:{escapedOffsets:n,escaped:Xr(n)}}}default:return{}}}}};function qu(o){return o==="x"?"y":"x"}const Wu=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:s}=t,{mainAxis:n=!0,crossAxis:r=!1,limiter:c={fn:P=>{let{x:O,y:z}=P;return{x:O,y:z}}},...h}=o,d={x:e,y:i},l=await Eo(t,h),p=Oi(Re(s)),g=qu(p);let b=d[p],v=d[g];if(n){const P=p==="y"?"bottom":"right";b=qr(b+l[p==="y"?"top":"left"],b,b-l[P])}if(r){const P=g==="y"?"bottom":"right";v=qr(v+l[g==="y"?"top":"left"],v,v-l[P])}const k=c.fn({...t,[p]:b,[g]:v});return{...k,data:{x:k.x-e,y:k.y-i}}}}},Kr=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(t){const{placement:e,rects:i,platform:s,elements:n}=t,{apply:r=()=>{},...c}=o,h=await Eo(t,c),d=Re(e),l=Fi(e),p=Oi(e)==="x",{width:g,height:b}=i.floating;let v,k;d==="top"||d==="bottom"?(v=d,k=l===(await(s.isRTL==null?void 0:s.isRTL(n.floating))?"start":"end")?"left":"right"):(k=d,v=l==="end"?"top":"bottom");const P=b-h[v],O=g-h[k];let z=P,j=O;if(p?j=Fs(g-h.right-h.left,O):z=Fs(b-h.bottom-h.top,P),!t.middlewareData.shift&&!l){const st=De(h.left,0),Pe=De(h.right,0),pe=De(h.top,0),lo=De(h.bottom,0);p?j=g-2*(st!==0||Pe!==0?st+Pe:De(h.left,h.right)):z=b-2*(pe!==0||lo!==0?pe+lo:De(h.top,h.bottom))}await r({...t,availableWidth:j,availableHeight:z});const it=await s.getDimensions(n.floating);return g!==it.width||b!==it.height?{reset:{rects:!0}}:{}}}};function yt(o){var t;return((t=o.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(o){return yt(o).getComputedStyle(o)}const Yr=Math.min,Lo=Math.max,Ei=Math.round;function Qr(o){const t=Xt(o);let e=parseFloat(t.width),i=parseFloat(t.height);const s=o.offsetWidth,n=o.offsetHeight,r=Ei(e)!==s||Ei(i)!==n;return r&&(e=s,i=n),{width:e,height:i,fallback:r}}function ke(o){return Jr(o)?(o.nodeName||"").toLowerCase():""}let Li;function Zr(){if(Li)return Li;const o=navigator.userAgentData;return o&&Array.isArray(o.brands)?(Li=o.brands.map(t=>t.brand+"/"+t.version).join(" "),Li):navigator.userAgent}function Kt(o){return o instanceof yt(o).HTMLElement}function Et(o){return o instanceof yt(o).Element}function Jr(o){return o instanceof yt(o).Node}function ta(o){return typeof ShadowRoot>"u"?!1:o instanceof yt(o).ShadowRoot||o instanceof ShadowRoot}function Mi(o){const{overflow:t,overflowX:e,overflowY:i,display:s}=Xt(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(s)}function Gu(o){return["table","td","th"].includes(ke(o))}function As(o){const t=/firefox/i.test(Zr()),e=Xt(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 n=e.contain;return n!=null&&n.includes(s)})}function Es(){return/^((?!chrome|android).)*safari/i.test(Zr())}function Ls(o){return["html","body","#document"].includes(ke(o))}function ea(o){return Et(o)?o:o.contextElement}const oa={x:1,y:1};function ao(o){const t=ea(o);if(!Kt(t))return oa;const e=t.getBoundingClientRect(),{width:i,height:s,fallback:n}=Qr(t);let r=(n?Ei(e.width):e.width)/i,c=(n?Ei(e.height):e.height)/s;return r&&Number.isFinite(r)||(r=1),c&&Number.isFinite(c)||(c=1),{x:r,y:c}}function He(o,t,e,i){var s,n;t===void 0&&(t=!1),e===void 0&&(e=!1);const r=o.getBoundingClientRect(),c=ea(o);let h=oa;t&&(i?Et(i)&&(h=ao(i)):h=ao(o));const d=c?yt(c):window,l=Es()&&e;let p=(r.left+(l&&((s=d.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,g=(r.top+(l&&((n=d.visualViewport)==null?void 0:n.offsetTop)||0))/h.y,b=r.width/h.x,v=r.height/h.y;if(c){const k=yt(c),P=i&&Et(i)?yt(i):i;let O=k.frameElement;for(;O&&i&&P!==k;){const z=ao(O),j=O.getBoundingClientRect(),it=getComputedStyle(O);j.x+=(O.clientLeft+parseFloat(it.paddingLeft))*z.x,j.y+=(O.clientTop+parseFloat(it.paddingTop))*z.y,p*=z.x,g*=z.y,b*=z.x,v*=z.y,p+=j.x,g+=j.y,O=yt(O).frameElement}}return{width:b,height:v,top:g,right:p+b,bottom:g+v,left:p,x:p,y:g}}function we(o){return((Jr(o)?o.ownerDocument:o.document)||window.document).documentElement}function _i(o){return Et(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function ia(o){return He(we(o)).left+_i(o).scrollLeft}function Mo(o){if(ke(o)==="html")return o;const t=o.assignedSlot||o.parentNode||ta(o)&&o.host||we(o);return ta(t)?t.host:t}function sa(o){const t=Mo(o);return Ls(t)?t.ownerDocument.body:Kt(t)&&Mi(t)?t:sa(t)}function _o(o,t){var e;t===void 0&&(t=[]);const i=sa(o),s=i===((e=o.ownerDocument)==null?void 0:e.body),n=yt(i);return s?t.concat(n,n.visualViewport||[],Mi(i)?i:[]):t.concat(i,_o(i))}function na(o,t,e){let i;if(t==="viewport")i=function(r,c){const h=yt(r),d=we(r),l=h.visualViewport;let p=d.clientWidth,g=d.clientHeight,b=0,v=0;if(l){p=l.width,g=l.height;const k=Es();(!k||k&&c==="fixed")&&(b=l.offsetLeft,v=l.offsetTop)}return{width:p,height:g,x:b,y:v}}(o,e);else if(t==="document")i=function(r){const c=we(r),h=_i(r),d=r.ownerDocument.body,l=Lo(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),p=Lo(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let g=-h.scrollLeft+ia(r);const b=-h.scrollTop;return Xt(d).direction==="rtl"&&(g+=Lo(c.clientWidth,d.clientWidth)-l),{width:l,height:p,x:g,y:b}}(we(o));else if(Et(t))i=function(r,c){const h=He(r,!0,c==="fixed"),d=h.top+r.clientTop,l=h.left+r.clientLeft,p=Kt(r)?ao(r):{x:1,y:1};return{width:r.clientWidth*p.x,height:r.clientHeight*p.y,x:l*p.x,y:d*p.y}}(t,e);else{const r={...t};if(Es()){var s,n;const c=yt(o);r.x-=((s=c.visualViewport)==null?void 0:s.offsetLeft)||0,r.y-=((n=c.visualViewport)==null?void 0:n.offsetTop)||0}i=r}return zs(i)}function ra(o,t){return Kt(o)&&Xt(o).position!=="fixed"?t?t(o):o.offsetParent:null}function aa(o,t){const e=yt(o);let i=ra(o,t);for(;i&&Gu(i)&&Xt(i).position==="static";)i=ra(i,t);return i&&(ke(i)==="html"||ke(i)==="body"&&Xt(i).position==="static"&&!As(i))?e:i||function(s){let n=Mo(s);for(;Kt(n)&&!Ls(n);){if(As(n))return n;n=Mo(n)}return null}(o)||e}function Uu(o,t,e){const i=Kt(t),s=we(t),n=He(o,!0,e==="fixed",t);let r={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(i||!i&&e!=="fixed")if((ke(t)!=="body"||Mi(s))&&(r=_i(t)),Kt(t)){const h=He(t,!0);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&(c.x=ia(s));return{x:n.left+r.scrollLeft-c.x,y:n.top+r.scrollTop-c.y,width:n.width,height:n.height}}const Xu={getClippingRect:function(o){let{element:t,boundary:e,rootBoundary:i,strategy:s}=o;const n=e==="clippingAncestors"?function(d,l){const p=l.get(d);if(p)return p;let g=_o(d).filter(P=>Et(P)&&ke(P)!=="body"),b=null;const v=Xt(d).position==="fixed";let k=v?Mo(d):d;for(;Et(k)&&!Ls(k);){const P=Xt(k),O=As(k);(v?O||b:O||P.position!=="static"||!b||!["absolute","fixed"].includes(b.position))?b=P:g=g.filter(z=>z!==k),k=Mo(k)}return l.set(d,g),g}(t,this._c):[].concat(e),r=[...n,i],c=r[0],h=r.reduce((d,l)=>{const p=na(t,l,s);return d.top=Lo(p.top,d.top),d.right=Yr(p.right,d.right),d.bottom=Yr(p.bottom,d.bottom),d.left=Lo(p.left,d.left),d},na(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=Kt(e),n=we(e);if(e===n)return t;let r={scrollLeft:0,scrollTop:0},c={x:1,y:1};const h={x:0,y:0};if((s||!s&&i!=="fixed")&&((ke(e)!=="body"||Mi(n))&&(r=_i(e)),Kt(e))){const d=He(e);c=ao(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-r.scrollLeft*c.x+h.x,y:t.y*c.y-r.scrollTop*c.y+h.y}},isElement:Et,getDimensions:function(o){return Kt(o)?Qr(o):o.getBoundingClientRect()},getOffsetParent:aa,getDocumentElement:we,getScale:ao,async getElementRects(o){let{reference:t,floating:e,strategy:i}=o;const s=this.getOffsetParent||aa,n=this.getDimensions;return{reference:Uu(t,await s(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Xt(o).direction==="rtl"};function la(o,t,e,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:n=!0,elementResize:r=!0,animationFrame:c=!1}=i,h=s&&!c,d=h||n?[...Et(o)?_o(o):o.contextElement?_o(o.contextElement):[],..._o(t)]:[];d.forEach(b=>{h&&b.addEventListener("scroll",e,{passive:!0}),n&&b.addEventListener("resize",e)});let l,p=null;if(r){let b=!0;p=new ResizeObserver(()=>{b||e(),b=!1}),Et(o)&&!c&&p.observe(o),Et(o)||!o.contextElement||c||p.observe(o.contextElement),p.observe(t)}let g=c?He(o):null;return c&&function b(){const v=He(o);!g||v.x===g.x&&v.y===g.y&&v.width===g.width&&v.height===g.height||e(),g=v,l=requestAnimationFrame(b)}(),e(),()=>{var b;d.forEach(v=>{h&&v.removeEventListener("scroll",e),n&&v.removeEventListener("resize",e)}),(b=p)==null||b.disconnect(),p=null,c&&cancelAnimationFrame(l)}}const ca=(o,t,e)=>{const i=new Map,s={platform:Xu,...e},n={...s.platform,_c:i};return Ru(o,t,{...s,platform:n})},dt={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};dt.menuitem+"",dt.menuitemcheckbox+"",dt.menuitemradio+"";var Ku=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,Ve=(o,t,e,i)=>{for(var s=i>1?void 0:i?Yu(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Ku(t,e,s),s};class Lt extends I{constructor(){super(...arguments),this.role=dt.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Ze:case ti:return this.invoke(),!1;case Ye:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case _n:if(this.expanded)return this.closeSubMenu(),!1;break;case Ke: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 dt.menuitemcheckbox:this.checked=!this.checked;break;case dt.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case dt.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)&&It.enqueue(()=>{this.cleanup=la(this,this.submenuContainer,async()=>{const t=["left-start","right-start"],{x:e,y:i}=await ca(this,this.submenuContainer,{middleware:[Wu(),Kr({apply:({availableWidth:s,rects:n})=>{s<n.floating.width&&t.push("bottom-end","top-end")}}),Gr({fallbackPlacements:t})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${e}px`,position:"fixed",top:`${i}px`}),this.submenuLoaded()})})}}Ve([a({mode:"boolean"})],Lt.prototype,"disabled",2),Ve([a({mode:"boolean"})],Lt.prototype,"expanded",2),Ve([a],Lt.prototype,"role",2),Ve([a({mode:"boolean"})],Lt.prototype,"checked",2),Ve([a({mode:"boolean"})],Lt.prototype,"hidden",2),Ve([y],Lt.prototype,"slottedSubmenu",2),Ve([y],Lt.prototype,"submenu",2),oe(Lt,Jt);const Qu=u`
442
+ ${F("grid")}
443
+
444
+ :host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${H};font:${M} ${L} / ${V} ${x};border-radius:${R};color:${Ht};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${as}}.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:${Ht}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${Ae};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${at};font:${M} ${Z} / ${$t} ${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:${ei}}:host([icon]:hover) ::slotted([slot='start']){color:${Nn}}:host(:active){background-color:${Gn}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${oi}}:host(:active) ::slotted([slot='start']){color:${jn}}:host([disabled]){background-color:${po}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${S}}: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}`,da=$.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>'),Zu=$.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 Ju(o={}){return $`<template aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==dt.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)}">${os(t=>t.role===dt.menuitemcheckbox,$`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${gt(o.checkboxIndicator)}</slot></span></div>`)} ${os(t=>t.role===dt.menuitemradio,$`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${gt(o.radioIndicator)}</slot></span></div>`)}</div>${ee(o)}<span class="content" part="content"><slot></slot></span>${te(o)} ${os(t=>t.hasSubmenu,$`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${gt(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${t=>!t.expanded}" class="submenu-container" part="submenu-container" ${Bt("submenuContainer")}><slot name="submenu" ${pt({property:"slottedSubmenu",filter:Fe("[role='menu']")})}></slot></span></template>`}const tp=Ju({checkboxIndicator:da,expandCollapseGlyph:Zu,radioIndicator:da}),ep=Lt.compose({name:`${m.prefix}-menu-item`,template:tp,styles:Qu});ep.define(m.registry);var op=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,sp=(o,t,e,i)=>{for(var s=i>1?void 0:i?ip(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&op(t,e,s),s};const Ms=class Vs extends I{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Mn(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 n=i-1;n>=0;--n){const r=this.menuItems[n],c=r.getAttribute("role");if(c===dt.menuitemradio&&(r.checked=!1),c==="separator")break}const s=this.menuItems.length-1;for(let n=i+1;n<=s;++n){const r=this.menuItems[n],c=r.getAttribute("role");if(c===dt.menuitemradio&&(r.checked=!1),c==="separator")break}}},this.isMenuItemElement=t=>t instanceof Lt||Mn(t)&&t.getAttribute("role")in Vs.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),It.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 Xe:this.setFocus(this.focusIndex+1,1);return;case Qe:this.setFocus(this.focusIndex-1,-1);return;case Zo:this.setFocus(this.menuItems.length-1,-1);return;case Jo: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!==dt.menuitem?i?2:1:i?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>w.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,r)=>{n.setAttribute("tabindex",r===0?"0":"-1"),n.addEventListener("expanded-change",this.handleExpandedChanged),n.addEventListener("focus",this.handleItemFocus)});const s=this.menuItems?.filter(this.isMenuItemElement);s?.forEach((n,r)=>{const c=s?.reduce((h,d)=>{const l=Vs.elementIndent(d);return Math.max(h,l)},0);n instanceof Lt&&n.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}}};Ms.focusableElementRoles=dt,sp([y],Ms.prototype,"items",2);let np=Ms;const rp=u`
445
+ ${F("flex")}
446
+
447
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${H};border:1px solid ${Vt};border-radius:${R};box-shadow:${vr};padding:4px;row-gap:2px}`;function ap(){return $`<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 ${pt("items")}></slot></template>`}const lp=ap(),cp=np.compose({name:`${m.prefix}-menu-list`,template:lp,styles:rp});cp.define(m.registry);var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Ne=(o,t,e,i)=>{for(var s=i>1?void 0:i?hp(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&dp(t,e,s),s};class Ce extends I{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 ti:case Ze: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(),It.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&&It.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&It.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&&It.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=la(this,this.positioningContainer,async()=>{const{middlewareData:t,x:e,y:i}=await ca(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[Gr(),Kr({apply:({availableHeight:s,rects:n})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${s}px`,width:`${n.reference.width}px`})}}),ju()]});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 _n:t.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case Ja:this.open&&this.closeMenu(),t.shiftKey&&this.focusTrigger();default:return!0}}}Ne([y,a({attribute:"open-on-hover",mode:"boolean"})],Ce.prototype,"openOnHover",2),Ne([y,a({attribute:"open-on-context",mode:"boolean"})],Ce.prototype,"openOnContext",2),Ne([y,a({attribute:"close-on-scroll",mode:"boolean"})],Ce.prototype,"closeOnScroll",2),Ne([y,a({attribute:"persist-on-item-click",mode:"boolean"})],Ce.prototype,"persistOnItemClick",2),Ne([y,a({mode:"boolean"})],Ce.prototype,"open",2),Ne([y],Ce.prototype,"slottedMenuList",2),Ne([y],Ce.prototype,"slottedTriggers",2);const up=u`
448
+ :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function pp(){return $`<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" ${pt({property:"slottedTriggers",filter:Fe()})}></slot><span ${Bt("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${pt({property:"slottedMenuList",filter:Fe()})}></slot></span></template>`}const fp=pp(),gp=Ce.compose({name:`${m.prefix}-menu`,template:fp,styles:up});gp.define(m.registry);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,je=(o,t,e,i)=>{for(var s=i>1?void 0:i?mp(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&bp(t,e,s),s};class Se extends I{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}thicknessChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}validationStateChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}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)}}je([a],Se.prototype,"thickness",2),je([a],Se.prototype,"shape",2),je([a({attribute:"validation-state"})],Se.prototype,"validationState",2),je([a({converter:ft})],Se.prototype,"value",2),je([a({converter:ft})],Se.prototype,"min",2),je([a({converter:ft})],Se.prototype,"max",2),je([Ia],Se.prototype,"percentComplete",1);const vp=u`
449
+ ${F("block")}
450
+
451
+ :host{width:100%;height:2px;overflow-x:hidden;background-color:${ri};border-radius:${R};contain:content}:host(${N}){height:4px}:host(${yi}){border-radius:${ms}}.indicator{background-color:${fo};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(
452
+ to right,${ri} 0%,${Tt} 50%,${ri} 100%
453
+ );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${zr}) .indicator{background-color:${tr}}:host(${io}) .indicator{background-color:${sr}}:host(${oo}) .indicator{background-color:${ir}}@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(u`
454
+ :host{background-color:CanvasText}.indicator,:host(:is(${oo},${io},${zr})) .indicator{background-color:Highlight}`));function $p(){return $`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const yp=$p(),xp=Se.compose({name:`${m.prefix}-progress-bar`,template:yp,styles:vp});xp.define(m.registry);const ha="form-associated-proxy",ua="ElementInternals",pa=ua in window&&"setFormValue"in window[ua].prototype,fa=new WeakMap;function ga(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 pa}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 Ks}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),It.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),It.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!pa)return null;let e=fa.get(this);return e||(e=this.attachInternals(),fa.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",ha),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",ha)),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 Ze: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"),y(t.prototype,"value"),t}function kp(o){class t extends ga(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,n){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,n){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:Sn})(e.prototype,"currentChecked"),y(e.prototype,"defaultChecked"),y(e.prototype,"checked"),e}class wp extends I{}class Cp extends kp(wp){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Sp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,ba=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ip(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Sp(t,e,s),s};class he extends Cp{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 ti:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}ba([y],he.prototype,"name",2),ba([y],he.prototype,"defaultSlottedNodes",2);const ma=nt;var Pp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,Ie=(o,t,e,i)=>{for(var s=i>1?void 0:i?Bp(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Pp(t,e,s),s};class ue extends I{constructor(){super(...arguments),this.stacked=!1,this.orientation=ma.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(i=>{i instanceof he&&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,n=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(n===0&&s===n||n===e.length-1&&n===s)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(r=>{r!==this.selectedRadio&&r.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(r=>{i instanceof he&&r!==this.focusedRadio&&r.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 he&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&i===Ye,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===Ke,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 tl&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Ze:{this.checkFocusedRadio();break}case Ye:case Xe:{this.direction===wt.ltr?this.moveRight(t):this.moveLeft(t);break}case Ke:case Qe:{this.direction===wt.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 he&&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=Rn(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof he&&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 he&&(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(r=>r.hasAttribute("checked")),n=s!==null?s.length:0;if(n>0&&!i){const r=s[n-1];r.checked=!0,this.focusedRadio=r,r.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}Ie([a({mode:"boolean"})],ue.prototype,"stacked",2),Ie([a({attribute:"readonly",mode:"boolean"})],ue.prototype,"readOnly",2),Ie([a({attribute:"disabled",mode:"boolean"})],ue.prototype,"disabled",2),Ie([a],ue.prototype,"name",2),Ie([a],ue.prototype,"value",2),Ie([a],ue.prototype,"orientation",2),Ie([y],ue.prototype,"childItems",2),Ie([y],ue.prototype,"slottedRadioButtons",2);const Tp=u`
455
+ ${F("flex")}
456
+
457
+ :host{align-items:flex-start;flex-direction:column;row-gap:${J}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${S};--checked-indicator-background-color:${S};--state-color:${S}}::slotted([slot='label']){color:${D};padding:${J} ${Nt} ${J} ${ae};font:${M} ${L} / ${V} ${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:${Nt}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${Nt};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function zp(){return $`<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===ma.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${pt({property:"slottedRadioButtons",filter:Fe("[role=radio]")})}></slot></div></template>`}const Fp=zp(),Op=ue.compose({name:`${m.prefix}-radio-group`,template:Fp,styles:Tp});Op.define(m.registry);const Ap=u`
458
+ ${F("inline-grid")}
459
+
460
+ :host{grid-auto-flow:column;grid-template-columns:max-content;gap:${ae};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${at});padding-inline-end:${Nt};--control-border-color:${se};--checked-indicator-background-color:${Vn};--state-color:${at}}:host([disabled]){--control-border-color:${S};--checked-indicator-background-color:${S};--state-color:${S}}.label{cursor:pointer;font-family:${x};font-size:${L};font-weight:${M};line-height:${V}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${se});border-radius:${mt};display:flex;height:16px;justify-content:center;margin:${J} ${Nt};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${mt};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${Ht}}:host(:focus-visible){border-radius:${zt};box-shadow:0 0 0 3px ${re};outline:1px solid ${ci}}:host(:hover) .control{border-color:${mo}}:host(:active) .control{border-color:${vo}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${se})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${Vn})}:host([aria-checked='true']:hover) .control{border-color:${fs}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${fs}}:host([aria-checked='true']:active) .control{border-color:${gs}}:host([aria-checked='true']:active) .checked-indicator{background:${jn}}:host([disabled]){color:${S};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${S}}:host([disabled]) .checked-indicator{background:${S}}`.withBehaviors(bt(u`
461
+ :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 Ep(o={}){return $`<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">${gt(o.checkedIndicator)}</slot></div><label part="label" class="${t=>["label",!t.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${pt({property:"defaultSlottedNodes",filter:Dn})}></slot></label></template>`}const Lp=Ep({checkedIndicator:$`<div part="checked-indicator" class="checked-indicator"></div>`}),Mp=he.compose({name:`${m.prefix}-radio`,template:Lp,styles:Ap});Mp.define(m.registry);const _p={singleValue:"single-value"};class Rp extends I{}class Dp extends ga(Rp){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function va(o,t,e,i){let s=ss(0,1,(o-t)/(e-t));return i===wt.rtl&&(s=1-s),s}var Hp=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,tt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Vp(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Hp(t,e,s),s};class Y extends Dp{constructor(){super(...arguments),this.direction=wt.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=nt.horizontal,this.mode=_p.singleValue,this.keypressHandler=t=>{if(!(this.readOnly||this.disabled)){if(t.key===Jo)t.preventDefault(),this.direction!==wt.rtl&&this.orientation!==nt.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(t.key===Zo)t.preventDefault(),this.direction!==wt.rtl&&this.orientation!==nt.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!t.shiftKey)switch(t.key){case Ye:case Qe:t.preventDefault(),this.increment();break;case Ke:case Xe: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===nt.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===nt.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=u`
462
+ :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=ss(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=Rn(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!==wt.rtl&&this.orientation!==nt.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!==wt.rtl&&this.orientation!==nt.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-va(Number(this.value),Number(this.min),Number(this.max),t))*100;this.orientation===nt.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=va(t,this.orientation===nt.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===nt.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}}tt([a],Y.prototype,"size",2),tt([a({attribute:"readonly",mode:"boolean"})],Y.prototype,"readOnly",2),tt([y],Y.prototype,"direction",2),tt([y],Y.prototype,"isDragging",2),tt([y],Y.prototype,"position",2),tt([y],Y.prototype,"trackWidth",2),tt([y],Y.prototype,"trackMinWidth",2),tt([y],Y.prototype,"trackHeight",2),tt([y],Y.prototype,"trackLeft",2),tt([y],Y.prototype,"trackMinHeight",2),tt([y],Y.prototype,"valueTextFormatter",2),tt([a({converter:ft})],Y.prototype,"min",2),tt([a({converter:ft})],Y.prototype,"max",2),tt([a({converter:ft})],Y.prototype,"step",2),tt([a],Y.prototype,"orientation",2),tt([a],Y.prototype,"mode",2);const Np=u`
463
+ ${F("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:${zt};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 ${re};outline:1px solid ${ci}}.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:${hs};border-radius:${mt};box-shadow:inset 0 0 0 var(--thumb-padding) ${H},0 0 0 1px ${Je}}.thumb-cursor:hover{background-color:${go}}.thumb-cursor:active{background-color:${bo}}:host([disabled]) .thumb-cursor{background-color:${S};box-shadow:inset 0 0 0 var(--thumb-padding) ${H},0 0 0 1px ${ne}}.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:${se};border-radius:${R};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${R};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
464
+ var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${H} calc(var(--step-rate) - 1px),${H} var(--step-rate)
465
+ )}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${po}}: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:${fo};position:absolute;height:100%;left:0;border-radius:${R}}:host([disabled]) .track-start{background-color:${S}}:host(:hover) .track-start{background-color:${go}}:host([disabled]:hover) .track-start{background-color:${S}}.track-start:active{background-color:${bo}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(bt(u`
466
+ .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 jp(o={}){return $`<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 ${Bt("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 ${Bt("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">${gt(o.thumb)}</slot></div></div></template>`}const qp=jp({thumb:'<div class="thumb-cursor"></div>'}),Wp=Y.compose({name:`${m.prefix}-slider`,template:qp,styles:Np});Wp.define(m.registry);var Gp=Object.defineProperty,Up=Object.getOwnPropertyDescriptor,$a=(o,t,e,i)=>{for(var s=i>1?void 0:i?Up(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Gp(t,e,s),s};class _s extends I{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}sizeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}}$a([a],_s.prototype,"size",2),$a([a],_s.prototype,"appearance",2);const Xp=u`
467
+ ${F("flex")}
468
+
469
+ :host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${Io}){height:20px;width:20px}:host(${Po}){height:24px;width:24px}:host(${ct}){height:28px;width:28px}:host(${N}){height:36px;width:36px}:host(${Cs}){height:40px;width:40px}:host(${Ed}){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${Zn};stroke-width:1.5px}:host(${Pr}) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${Qn};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(${Pr}) .indicator{stroke:${Ll}}@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)}}`,Kp=$`<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>`,Yp=_s.compose({name:`${m.prefix}-spinner`,template:Kp,styles:Xp});Yp.define(m.registry);class Qp extends Ot{}function Zp(o={}){return $`<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">${gt(o.switch)}</slot></template>`}const Jp=Zp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),ht=u.partial`:is([state--checked], :state(checked))`,tf=u`
470
+ ${F("inline-flex")}
471
+
472
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${Le};width:40px;height:20px;background-color:${Tt};border:1px solid ${se};border-radius:${mt};cursor:pointer}:host(:hover){background:none;border-color:${mo}}:host(:active){border-color:${vo}}:host(:disabled),:host([readonly]){border:1px solid ${ne};background-color:none;pointer:default}:host(${ht}){background:${fo};border-color:${fo}}:host(${ht}:hover){background:${go};border-color:${go}}:host(${ht}:active){background:${bo};border-color:${bo}}:host(${ht}:disabled){background:${po};border-color:${ne}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${at};transition-duration:${kr};transition-timing-function:${xs};transition-property:margin-inline-start}:host(${ht}) .checked-indicator{background-color:${ni};margin-inline-start:calc(100% - 14px)}:host(${ht}:hover) .checked-indicator{background:${xl}}:host(${ht}:active) .checked-indicator{background:${kl}}:host(:hover) .checked-indicator{background-color:${ul}}:host(:active) .checked-indicator{background-color:${pl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${S}}:host(${ht}:disabled) .checked-indicator{background:${S}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${Vt};outline:${Ee} solid ${Vt};box-shadow:${fi},0 0 0 2px ${re}}`.withBehaviors(bt(u`
473
+ :host{border-color:InactiveBorder}:host(${ht}),:host(${ht}:active),:host(${ht}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${ht}) .checked-indicator,:host(${ht}:hover) .checked-indicator,:host(${ht}:active) .checked-indicator{background-color:ButtonFace}`)),ef=Qp.compose({name:`${m.prefix}-switch`,template:Jp,styles:tf});ef.define(m.registry);class of extends I{}function sf(){return $`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const nf=sf(),rf=u`
474
+ ${F("block")}
475
+
476
+ :host{box-sizing:border-box;padding:${me} ${le}}`,af=of.compose({name:`${m.prefix}-tab-panel`,template:nf,styles:rf});af.define(m.registry);var lf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,df=(o,t,e,i)=>{for(var s=i>1?void 0:i?cf(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&lf(t,e,s),s};class Rs extends I{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
477
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}df([a({mode:"boolean"})],Rs.prototype,"disabled",2),oe(Rs,Jt);function hf(o={}){return $`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${ee(o)}<span class="tab-content"><slot></slot></span>${te(o)}</template>`}const uf=hf({}),pf=u`
478
+ ${F("inline-flex")}
479
+
480
+ :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${V};font-family:${x};font-size:${L};color:${Ht};fill:currentcolor;grid-row:1;padding:${me} ${le};border-radius:${R}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${D};font-weight:${G}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${V};font-weight:${G}}:host([aria-selected='true'])::after{background-color:${ps};border-radius:${mt};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${li};border-radius:${mt};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${S}}::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:${S};color:${S}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${zt};box-shadow:0 0 0 3px ${re};outline:1px solid ${ci}}`.withBehaviors(bt(u`
481
+ :host([aria-selected='true'])::after{background-color:Highlight}`)),ff=Rs.compose({name:`${m.prefix}-tab`,template:uf,styles:pf});ff.define(m.registry);const gf={subtle:"subtle",transparent:"transparent"},Ri=nt;var bf=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,qe=(o,t,e,i)=>{for(var s=i>1?void 0:i?mf(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&bf(t,e,s),s};class Ro extends I{constructor(){super(...arguments),this.orientation=Ri.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 Ke:t.preventDefault(),this.adjustBackward(t);break;case Ye:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case Qe:t.preventDefault(),this.adjustBackward(t);break;case Xe:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Jo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Zo: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,n)=>{if(s.slot==="tab"){const r=this.activeTabIndex===n&&this.isFocusableElement(s),c=this.tabIds[n],h=this.tabpanelIds[n];s.setAttribute("id",c),s.setAttribute("aria-selected",r?"true":"false"),s.setAttribute("aria-controls",h),s.addEventListener("click",this.handleTabClick),s.addEventListener("keydown",this.handleTabKeyDown),s.setAttribute("tabindex",r?"0":"-1"),r&&(this.activetab=s,this.activeid=c)}s.style[t]="",s.style[e]="",s.style[i]=`${n+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-${ns()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${ns()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ri.horizontal}adjust(t){const e=this.tabs.filter(r=>this.isFocusableElement(r)),i=e.indexOf(this.activetab),s=ss(0,e.length-1,i+t),n=this.tabs.indexOf(e[s]);n>-1&&this.moveToTabByIndex(this.tabs,n)}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()}}qe([a],Ro.prototype,"orientation",2),qe([a],Ro.prototype,"activeid",2),qe([y],Ro.prototype,"tabs",2),qe([y],Ro.prototype,"tabpanels",2);class Do extends Ro{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=gf.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===Ri.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===Ri.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=u`
482
482
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=u`
483
- :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()}}je([a],zo.prototype,"appearance",2),je([a({mode:"boolean"})],zo.prototype,"disabled",2),je([a],zo.prototype,"size",2),Jt(zo,Yt);function nf(o={}){return v` ${Zt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${ht("tabs")}></slot></div>${Qt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${ht("tabpanels")}></slot></div>`}const af=nf({}),lf=u`
484
- ${z("grid")}
483
+ :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()}}qe([a],Do.prototype,"appearance",2),qe([a({mode:"boolean"})],Do.prototype,"disabled",2),qe([a],Do.prototype,"size",2),oe(Do,Jt);function vf(o={}){return $` ${ee(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${pt("tabs")}></slot></div>${te(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${pt("tabpanels")}></slot></div>`}const $f=vf({}),yf=u`
484
+ ${F("grid")}
485
485
 
486
- :host{box-sizing:border-box;font-family:${x};font-size:${E};line-height:${H};color:${_t};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${_}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.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:${ts};color:${zr};fill:${Or}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Zo};fill:${Zo};color:${R}}:host([size='small']) ::slotted(fluent-tab){font-size:${E};line-height:${H};padding:${vo} ${Me}}:host([size='large']) ::slotted(fluent-tab){font-size:${bt};line-height:${Bt};padding:${un} ${re}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${od};transition-timing-function:${gn}}:host ::slotted(fluent-tab)::after{height:${pe};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${pe};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${pe};border-radius:${gt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${pe};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${pe};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:${pe}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${vo};padding-bottom:${vo}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${ni};padding-bottom:${ni}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${Z};padding-bottom:${Z}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Me};left:${Me}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${re};left:${re}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${re};left:${re}}: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:${vo};bottom:${vo}}: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:${Z};bottom:${Z}}: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:${hn};bottom:${hn}}`,cf=zo.compose({name:`${b.prefix}-tabs`,template:af,styles:lf});cf.define(b.registry);const df={email:"email",password:"password",tel:"tel",text:"text",url:"url"},hf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var uf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,L=(o,t,e,i)=>{for(var s=i>1?void 0:i?pf(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&&uf(t,e,s),s};class B extends I{constructor(){super(...arguments),this.type=df.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=>hf.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)}}}B.formAssociated=!0,L([a],B.prototype,"appearance",2),L([a],B.prototype,"autocomplete",2),L([a({mode:"boolean"})],B.prototype,"autofocus",2),L([a({attribute:"control-size"})],B.prototype,"controlSize",2),L([y],B.prototype,"defaultSlottedNodes",2),L([a],B.prototype,"dirname",2),L([a({mode:"boolean"})],B.prototype,"disabled",2),L([a({attribute:"form"})],B.prototype,"formAttribute",2),L([a({attribute:"value",mode:"fromView"})],B.prototype,"initialValue",2),L([a],B.prototype,"list",2),L([a({converter:ut})],B.prototype,"maxlength",2),L([a({converter:ut})],B.prototype,"minlength",2),L([a({mode:"boolean"})],B.prototype,"multiple",2),L([a],B.prototype,"name",2),L([a],B.prototype,"pattern",2),L([a],B.prototype,"placeholder",2),L([a({attribute:"readonly",mode:"boolean"})],B.prototype,"readOnly",2),L([a({mode:"boolean"})],B.prototype,"required",2),L([a({converter:ut})],B.prototype,"size",2),L([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],B.prototype,"spellcheck",2),L([a],B.prototype,"type",2),L([y],B.prototype,"controlLabel",2),Jt(B,Yt);const ff=u`
487
- ${z("block")}
486
+ :host{box-sizing:border-box;font-family:${x};font-size:${L};line-height:${V};color:${Ht};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${R}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.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:${ls};color:${Hn};fill:${Nn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${ai};fill:${ai};color:${D}}:host([size='small']) ::slotted(fluent-tab){font-size:${L};line-height:${V};padding:${xo} ${Me}}:host([size='large']) ::slotted(fluent-tab){font-size:${vt};line-height:${Ft};padding:${xr} ${le}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${pd};transition-timing-function:${Cr}}:host ::slotted(fluent-tab)::after{height:${be};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${be};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${be};border-radius:${mt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${be};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${be};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:${be}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${xo};padding-bottom:${xo}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${gi};padding-bottom:${gi}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${J};padding-bottom:${J}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Me};left:${Me}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${le};left:${le}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${le};left:${le}}: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:${xo};bottom:${xo}}: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:${J};bottom:${J}}: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:${yr};bottom:${yr}}`,xf=Do.compose({name:`${m.prefix}-tabs`,template:$f,styles:yf});xf.define(m.registry);const kf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},wf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Cf=Object.defineProperty,Sf=Object.getOwnPropertyDescriptor,_=(o,t,e,i)=>{for(var s=i>1?void 0:i?Sf(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Cf(t,e,s),s};class T extends I{constructor(){super(...arguments),this.type=kf.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}appearanceChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&f(this.elementInternals,`${t}`,!1),e&&f(this.elementInternals,`${e}`,!0)}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=>wf.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)}}}T.formAssociated=!0,_([a],T.prototype,"appearance",2),_([a],T.prototype,"autocomplete",2),_([a({mode:"boolean"})],T.prototype,"autofocus",2),_([a({attribute:"control-size"})],T.prototype,"controlSize",2),_([y],T.prototype,"defaultSlottedNodes",2),_([a],T.prototype,"dirname",2),_([a({mode:"boolean"})],T.prototype,"disabled",2),_([a({attribute:"form"})],T.prototype,"formAttribute",2),_([a({attribute:"value",mode:"fromView"})],T.prototype,"initialValue",2),_([a],T.prototype,"list",2),_([a({converter:ft})],T.prototype,"maxlength",2),_([a({converter:ft})],T.prototype,"minlength",2),_([a({mode:"boolean"})],T.prototype,"multiple",2),_([a],T.prototype,"name",2),_([a],T.prototype,"pattern",2),_([a],T.prototype,"placeholder",2),_([a({attribute:"readonly",mode:"boolean"})],T.prototype,"readOnly",2),_([a({mode:"boolean"})],T.prototype,"required",2),_([a({converter:ft})],T.prototype,"size",2),_([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],T.prototype,"spellcheck",2),_([a],T.prototype,"type",2),_([y],T.prototype,"controlLabel",2),oe(T,Jt);const If=u`
487
+ ${F("block")}
488
488
 
489
- :host{font-family:${x};font-size:${E};font-weight:${M};line-height:${H};max-width:400px}.label{display:flex;color:${R};padding-bottom:${Jc};flex-shrink:0;padding-inline-end:${se}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${D};border:${et} solid ${Ze};border-bottom-color:${ee};border-radius:${_};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${Ee};padding:0 ${re};position:relative;width:100%}:has(.control:user-invalid){border-color:${Bl}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${_});border-radius:0 0 ${_} ${_};border-bottom:2px solid ${rs};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${td};transition-delay:${hs}}.control{width:100%;height:100%;box-sizing:border-box;color:${R};border-radius:${_};background:${It};font-family:${x};font-weight:${M};font-size:${E};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${il}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${nt};font-size:${Oe}}:host ::slotted([slot='start']){padding-right:${Ee}}:host ::slotted([slot='end']){padding-left:${Ee};gap:${se}}:host(:hover) .root{border-color:${Jo};border-bottom-color:${fo}}:host(:active) .root{border-color:${ss}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${pn};transition-delay:${us}}:host(:focus-within:active) .root:after{border-bottom-color:${as}}:host([appearance='outline']:focus-within) .root{border:${et} solid ${Ze}}:host(:focus-within) .control{color:${R}}:host([disabled]) .root{background:${It};border:${et} solid ${oe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${Yo};background-color:${bl}}:host([control-size='small']) .control{font-size:${Q};font-weight:${M};line-height:${mt}}:host([control-size='small']) .root{height:24px;gap:${Ee};padding:0 ${Me}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${bt}}:host([control-size='large']) .control{font-size:${bt};font-weight:${M};line-height:${Bt}}:host([control-size='large']) .root{height:40px;gap:${Dt};padding:0 ${fe}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ei}}:host([appearance='underline']) .root{background:${It};border:0;border-radius:0;border-bottom:${et} solid ${ee}}:host([appearance='underline']:hover) .root{border-bottom-color:${fo}}:host([appearance='underline']:active) .root{border-bottom-color:${go}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${go}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${oe}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${et} solid ${Rt};box-shadow:${ln}}:host([appearance='filled-lighter']) .root{background:${D}}:host([appearance='filled-darker']) .root{background:${_r}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${jr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${jr};background:${_r}}`;function gf(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" ${St("controlLabel")}><slot ${ht({property:"defaultSlottedNodes",filter:Tr})}></slot></label><div class="root" part="root">${Zt(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}" ${St("control")} />${Qt(o)}</div></template>`}const bf=gf(),mf=B.compose({name:`${b.prefix}-text-input`,template:bf,styles:ff,shadowOptions:{delegatesFocus:!0}});mf.define(b.registry);var vf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,Ut=(o,t,e,i)=>{for(var s=i>1?void 0:i?$f(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&&vf(t,e,s),s};class At extends I{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Ut([a({mode:"boolean"})],At.prototype,"nowrap",2),Ut([a({mode:"boolean"})],At.prototype,"truncate",2),Ut([a({mode:"boolean"})],At.prototype,"italic",2),Ut([a({mode:"boolean"})],At.prototype,"underline",2),Ut([a({mode:"boolean"})],At.prototype,"strikethrough",2),Ut([a({mode:"boolean"})],At.prototype,"block",2),Ut([a],At.prototype,"size",2),Ut([a],At.prototype,"font",2),Ut([a],At.prototype,"weight",2),Ut([a],At.prototype,"align",2);const yf=u`
490
- ${z("inline")}
489
+ :host{font-family:${x};font-size:${L};font-weight:${M};line-height:${V};max-width:400px}.label{display:flex;color:${D};padding-bottom:${dd};flex-shrink:0;padding-inline-end:${ae}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${H};border:${ot} solid ${Je};border-bottom-color:${se};border-radius:${R};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${Le};padding:0 ${le};position:relative;width:100%}:has(.control:user-invalid){border-color:${Dl}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${R});border-radius:0 0 ${R} ${R};border-bottom:2px solid ${ps};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${hd};transition-delay:${$s}}.control{width:100%;height:100%;box-sizing:border-box;color:${D};border-radius:${R};background:${Tt};font-family:${x};font-weight:${M};font-size:${L};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${fl}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${at};font-size:${Ae}}:host ::slotted([slot='start']){padding-right:${Le}}:host ::slotted([slot='end']){padding-left:${Le};gap:${ae}}:host(:hover) .root{border-color:${li};border-bottom-color:${mo}}:host(:active) .root{border-color:${us}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${kr};transition-delay:${ys}}:host(:focus-within:active) .root:after{border-bottom-color:${gs}}:host(${U}:focus-within) .root{border:${ot} solid ${Je}}:host(:focus-within) .control{color:${D}}:host([disabled]) .root{background:${Tt};border:${ot} solid ${ne}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${ni};background-color:${Pl}}:host(${ct}) .control{font-size:${Z};font-weight:${M};line-height:${$t}}:host(${ct}) .root{height:24px;gap:${Le};padding:0 ${Me}}:host(${ct}) ::slotted([slot='start']),:host(${ct}) ::slotted([slot='end']){font-size:${vt}}:host(${N}) .control{font-size:${vt};font-weight:${M};line-height:${Ft}}:host(${N}) .root{height:40px;gap:${Nt};padding:0 ${me}}:host(${N}) ::slotted([slot='start']),:host(${N}) ::slotted([slot='end']){font-size:${di}}:host(${Co}) .root{background:${Tt};border:0;border-radius:0;border-bottom:${ot} solid ${se}}:host(${Co}:hover) .root{border-bottom-color:${mo}}:host(${Co}:active) .root{border-bottom-color:${vo}}:host(${Co}:focus-within) .root{border:0;border-bottom-color:${vo}}:host(${Co}[disabled]) .root{border-bottom-color:${ne}}:host(${vi}) .root,:host(${$i}) .root{border:${ot} solid ${Vt};box-shadow:${mr}}:host(${vi}) .root{background:${H}}:host(${$i}) .root{background:${Un}}:host(${vi}:hover) .root,:host(${$i}:hover) .root{border-color:${Jn}}:host(${vi}:active) .root,:host(${$i}:active) .root{border-color:${Jn};background:${Un}}`;function Pf(o={}){return $`<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" ${Bt("controlLabel")}><slot ${pt({property:"defaultSlottedNodes",filter:Dn})}></slot></label><div class="root" part="root">${ee(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}" ${Bt("control")} />${te(o)}</div></template>`}const Bf=Pf(),Tf=T.compose({name:`${m.prefix}-text-input`,template:Bf,styles:If,shadowOptions:{delegatesFocus:!0}});Tf.define(m.registry);var zf=Object.defineProperty,Ff=Object.getOwnPropertyDescriptor,Yt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ff(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&zf(t,e,s),s};class Mt extends I{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Yt([a({mode:"boolean"})],Mt.prototype,"nowrap",2),Yt([a({mode:"boolean"})],Mt.prototype,"truncate",2),Yt([a({mode:"boolean"})],Mt.prototype,"italic",2),Yt([a({mode:"boolean"})],Mt.prototype,"underline",2),Yt([a({mode:"boolean"})],Mt.prototype,"strikethrough",2),Yt([a({mode:"boolean"})],Mt.prototype,"block",2),Yt([a],Mt.prototype,"size",2),Yt([a],Mt.prototype,"font",2),Yt([a],Mt.prototype,"weight",2),Yt([a],Mt.prototype,"align",2);const Of=u`
490
+ ${F("inline")}
491
491
 
492
- :host{contain:content}::slotted(*){font-family:${x};font-size:${E};line-height:${H};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:${mo};line-height:${ii}}:host([size='200']) ::slotted(*),:host([size='200']){font-size:${Q};line-height:${mt}}:host([size='400']) ::slotted(*),:host([size='400']){font-size:${bt};line-height:${Bt}}:host([size='500']) ::slotted(*),:host([size='500']){font-size:${Oe};line-height:${si}}:host([size='600']) ::slotted(*),:host([size='600']){font-size:${ei};line-height:${on}}:host([size='700']) ::slotted(*),:host([size='700']){font-size:${Zr};line-height:${sn}}:host([size='800']) ::slotted(*),:host([size='800']){font-size:${Jr};line-height:${rn}}:host([size='900']) ::slotted(*),:host([size='900']){font-size:${tn};line-height:${nn}}:host([size='1000']) ::slotted(*),:host([size='1000']){font-size:${en};line-height:${an}}:host([font='monospace']) ::slotted(*),:host([font='monospace']){font-family:${Wc}}:host([font='numeric']) ::slotted(*),:host([font='numeric']){font-family:${Gc}}:host([weight='medium']) ::slotted(*),:host([weight='medium']){font-weight:${Uc}}:host([weight='semibold']) ::slotted(*),:host([weight='semibold']){font-weight:${q}}:host([weight='bold']) ::slotted(*),:host([weight='bold']){font-weight:${oi}}: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}`,xf=v`<slot></slot>`,kf=At.compose({name:`${b.prefix}-text`,template:xf,styles:yf});kf.define(b.registry);var wf=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,ca=(o,t,e,i)=>{for(var s=i>1?void 0:i?Cf(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&&wf(t,e,s),s};class zs 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.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}ca([a({mode:"boolean"})],zs.prototype,"pressed",2),ca([a({mode:"boolean"})],zs.prototype,"mixed",2);const Sf=u`
493
- ${mi}
492
+ :host{contain:content}::slotted(*){font-family:${x};font-size:${L};line-height:${V};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:${yo};line-height:${ui}}:host([size='200']) ::slotted(*),:host([size='200']){font-size:${Z};line-height:${$t}}:host([size='400']) ::slotted(*),:host([size='400']){font-size:${vt};line-height:${Ft}}:host([size='500']) ::slotted(*),:host([size='500']){font-size:${Ae};line-height:${pi}}:host([size='600']) ::slotted(*),:host([size='600']){font-size:${di};line-height:${ur}}:host([size='700']) ::slotted(*),:host([size='700']){font-size:${lr};line-height:${pr}}:host([size='800']) ::slotted(*),:host([size='800']){font-size:${cr};line-height:${fr}}:host([size='900']) ::slotted(*),:host([size='900']){font-size:${dr};line-height:${gr}}:host([size='1000']) ::slotted(*),:host([size='1000']){font-size:${hr};line-height:${br}}:host([font='monospace']) ::slotted(*),:host([font='monospace']){font-family:${od}}:host([font='numeric']) ::slotted(*),:host([font='numeric']){font-family:${id}}:host([weight='medium']) ::slotted(*),:host([weight='medium']){font-weight:${sd}}:host([weight='semibold']) ::slotted(*),:host([weight='semibold']){font-weight:${G}}:host([weight='bold']) ::slotted(*),:host([weight='bold']){font-weight:${hi}}: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}`,Af=$`<slot></slot>`,Ef=Mt.compose({name:`${m.prefix}-text`,template:Af,styles:Of});Ef.define(m.registry);var Lf=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,ya=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mf(t,e):t,n=o.length-1,r;n>=0;n--)(r=o[n])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&Lf(t,e,s),s};class Ds extends E{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,f(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}ya([a({mode:"boolean"})],Ds.prototype,"pressed",2),ya([a({mode:"boolean"})],Ds.prototype,"mixed",2);const _f=u`
493
+ ${Si}
494
494
 
495
- :host(${O}){border-color:${Ze};background-color:${Lr};color:${R};border-width:${et}}:host(${O}:hover){border-color:${Jo};background-color:${Ji}}:host(${O}:active){border-color:${ss};background-color:${Mr}}:host(${O}${at}){border-color:transparent;background-color:${xl};color:${te}}:host(${O}${at}:hover){background-color:${Rr}}:host(${O}${at}:active){background-color:${Dr}}:host(${O}${W}){border-color:transparent;background-color:${vl};color:${Ja}}:host(${O}${W}:hover){background-color:${ts};color:${Go}}:host(${O}${W}:active){background-color:${Zo};color:${Uo}}:host(${O}${G}),:host(${O}${U}){background-color:${$l}}:host(${O}${G}:hover),:host(${O}${U}:hover){background-color:${es}}:host(${O}${G}:active),:host(${O}${U}:active){background-color:${os}}:host(${O}${U}){border-color:transparent;color:${tl}}:host(${O}${U}:hover){color:${Xo}}:host(${O}${U}:active){color:${Ko}}`.withBehaviors(ft(u`
496
- :host(${O}),:host(${O}${at}),:host(${O}${W}),:host(${O}${G}),:host(${O}${U}){background:SelectedItem;color:SelectedItemText}`)),If=ms(),Pf=zs.compose({name:`${b.prefix}-toggle-button`,template:If,styles:Sf});Pf.define(b.registry);
495
+ :host(${A}){border-color:${Je};background-color:${Gn};color:${D};border-width:${ot}}:host(${A}:hover){border-color:${li};background-color:${as}}:host(${A}:active){border-color:${us};background-color:${Wn}}:host(${A}${lt}){border-color:transparent;background-color:${Ol};color:${ie}}:host(${A}${lt}:hover){background-color:${Xn}}:host(${A}${lt}:active){background-color:${Kn}}:host(${A}${B}){border-color:transparent;background-color:${Tl};color:${dl}}:host(${A}${B}:hover){background-color:${ls};color:${ei}}:host(${A}${B}:active){background-color:${ai};color:${oi}}:host(${A}${U}),:host(${A}${X}){background-color:${zl}}:host(${A}${U}:hover),:host(${A}${X}:hover){background-color:${cs}}:host(${A}${U}:active),:host(${A}${X}:active){background-color:${ds}}:host(${A}${X}){border-color:transparent;color:${hl}}:host(${A}${X}:hover){color:${ii}}:host(${A}${X}:active){color:${si}}`.withBehaviors(bt(u`
496
+ :host(${A}),:host(${A}${lt}),:host(${A}${B}),:host(${A}${U}),:host(${A}${X}){background:SelectedItem;color:SelectedItemText}`)),Rf=Is(),Df=Ds.compose({name:`${m.prefix}-toggle-button`,template:Rf,styles:_f});Df.define(m.registry);