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

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 (49) hide show
  1. package/CHANGELOG.md +12 -2
  2. package/dist/dts/anchor-button/anchor-button.d.ts +38 -3
  3. package/dist/dts/anchor-button/anchor-button.options.d.ts +0 -1
  4. package/dist/dts/badge/badge.d.ts +30 -0
  5. package/dist/dts/button/button.d.ts +25 -1
  6. package/dist/dts/button/button.options.d.ts +0 -1
  7. package/dist/dts/compound-button/compound-button.options.d.ts +0 -5
  8. package/dist/dts/counter-badge/counter-badge.d.ts +36 -0
  9. package/dist/dts/menu-button/menu-button.options.d.ts +0 -1
  10. package/dist/dts/styles/states/index.d.ts +110 -0
  11. package/dist/dts/toggle-button/toggle-button.options.d.ts +0 -1
  12. package/dist/esm/anchor-button/anchor-button.js +76 -8
  13. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  14. package/dist/esm/anchor-button/anchor-button.styles.js +8 -1
  15. package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
  16. package/dist/esm/anchor-button/anchor-button.template.js +2 -2
  17. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
  18. package/dist/esm/badge/badge.js +59 -0
  19. package/dist/esm/badge/badge.js.map +1 -1
  20. package/dist/esm/badge/badge.styles.js +6 -5
  21. package/dist/esm/badge/badge.styles.js.map +1 -1
  22. package/dist/esm/button/button.js +48 -0
  23. package/dist/esm/button/button.js.map +1 -1
  24. package/dist/esm/button/button.options.js +0 -1
  25. package/dist/esm/button/button.options.js.map +1 -1
  26. package/dist/esm/button/button.styles.js +40 -49
  27. package/dist/esm/button/button.styles.js.map +1 -1
  28. package/dist/esm/compound-button/compound-button.styles.js +14 -15
  29. package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
  30. package/dist/esm/counter-badge/counter-badge.js +67 -0
  31. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  32. package/dist/esm/counter-badge/counter-badge.styles.js +12 -6
  33. package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
  34. package/dist/esm/link/link.styles.js +6 -0
  35. package/dist/esm/link/link.styles.js.map +1 -1
  36. package/dist/esm/link/link.template.js +2 -2
  37. package/dist/esm/link/link.template.js.map +1 -1
  38. package/dist/esm/styles/partials/badge.partials.js +43 -42
  39. package/dist/esm/styles/partials/badge.partials.js.map +1 -1
  40. package/dist/esm/styles/states/index.js +112 -0
  41. package/dist/esm/styles/states/index.js.map +1 -0
  42. package/dist/esm/toggle-button/toggle-button.js +2 -1
  43. package/dist/esm/toggle-button/toggle-button.js.map +1 -1
  44. package/dist/esm/toggle-button/toggle-button.styles.js +24 -23
  45. package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
  46. package/dist/web-components.d.ts +129 -13
  47. package/dist/web-components.js +343 -80
  48. package/dist/web-components.min.js +305 -304
  49. package/package.json +3 -2
@@ -1,7 +1,7 @@
1
- const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let xo;const ms="fast-kernel";try{if(document.currentScript)xo=document.currentScript.getAttribute(ms);else{const o=document.getElementsByTagName("script");xo=o[o.length-1].getAttribute(ms)}}catch{xo="isolate"}let ve;switch(xo){case"share":ve=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ve=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ve=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const re=o=>typeof o=="function",zt=o=>typeof o=="string",vs=()=>{};var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof bi<"u")bi.globalThis=bi;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 $s={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},$s));const W=globalThis.FAST;if(W.getById===void 0){const o=Object.create(null);Reflect.defineProperty(W,"getById",Object.assign({value(t,e){let i=o[t];return i===void 0&&(i=e?o[t]=e():null),i}},$s))}W.error===void 0&&Object.assign(W,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const ys=Object.freeze([]);function mi(){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 xs(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let i=Reflect.getPrototypeOf(t);for(;e===void 0&&i!==null;)e=o.get(i),i=Reflect.getPrototypeOf(i);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Ee(o){o.prototype.toJSON=vs}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ks=o=>o,qn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ks}):{createHTML:ks};let ko=Object.freeze({createHTML(o){return qn.createHTML(o)},protect(o,t,e,i){return i}});const Wn=ko,Le=Object.freeze({get policy(){return ko},setPolicy(o){if(ko!==Wn)throw W.error(1201);ko=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)}}),mt=W.getById(ve.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let i=!0;function s(){if(t.length)throw t.shift()}function r(h){try{h.call()}catch(d){if(i)t.push(d),setTimeout(s,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(r(o[d]),d++,d>1024){for(let l=0,u=o.length-d;l<u;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?e(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class vi{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 ws{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 vi(this.subject):r=(s=this.subjectSubscribers)!==null&&s!==void 0?s:this.subjectSubscribers=new vi(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 $i=Object.freeze({unknown:void 0,coupled:1}),k=W.getById(ve.observable,()=>{const o=mt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let i,s=d=>{throw W.error(1101)};function r(d){var l;let u=(l=d.$fastController)!==null&&l!==void 0?l:e.get(d);return u===void 0&&(Array.isArray(d)?u=s(d):e.set(d,u=new ws(d))),u}const n=xs();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,u){const f=this.field,g=l[f];if(g!==u){l[f]=u;const m=l[this.callback];re(m)&&m.call(l,g,u),r(l).notify(this.name)}}}class h extends vi{constructor(l,u,f=!1){super(l,u),this.expression=l,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const u=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),u}requiresUnbind(l){return l.sourceLifetime!==$i.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,u){this.needsRefresh&&this.last!==null&&this.dispose();const f=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g;try{g=this.expression(l,u)}finally{i=f}return g}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,u){const f=this.last,g=r(l),m=f===null?this.first:{};if(m.propertySource=l,m.propertyName=u,m.notifier=g,g.subscribe(this,u),f!==null){if(!this.needsRefresh){let x;i=void 0,x=f.propertySource[f.propertyName],i=this,l===x&&(this.needsRefresh=!0)}f.next=m}this.last=m}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return Ee(h),Object.freeze({setArrayObserverFactory(d){s=d},getNotifier:r,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){r(d).notify(l)},defineProperty(d,l){zt(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(u){l.setValue(this,u)}})},getAccessors:n,binding(d,l,u=this.isVolatileBinding(d)){return new h(d,l,u)},isVolatileBinding(d){return t.test(d.toString())}})});function $(o,t){k.defineProperty(o,t)}function Gn(o,t,e){return Object.assign({},e,{get(){return k.trackVolatile(),e.get.apply(this)}})}const Cs=W.getById(ve.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Ye=Object.freeze({default:{index:0,length:0,get event(){return Ye.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Cs.get()},setEvent(o){Cs.set(o)}});class wo{constructor(t,e,i=!1){this.evaluate=t,this.policy=e,this.isVolatile=i}}class Un extends wo{createObserver(t){return k.binding(this.evaluate,t,this.isVolatile)}}function Ss(o,t,e=k.isVolatileBinding(o)){return new Un(o,t,e)}class Is extends wo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ee(Is);function Ps(o,t){return new Is(o,t)}let Bs;function zs(o){return o.map(t=>t instanceof st?zs(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class st{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof st?e.behaviors:null).reduce((e,i)=>i===null?e:e===null?i:e.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(Bs),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(zs(this.styles)),this}static setDefaultStrategy(t){Bs=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new st(t):t instanceof st?t:new st([t])}}st.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const yi=mi(),xi=Object.freeze({getForInstance:yi.getForInstance,getByType:yi.getByType,define(o){return yi.register({type:o}),o}});function ki(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class wi{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)=>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(wi);const Xn=`${Math.random().toString(36).substring(2,8)}`;let Kn=0;const Ts=()=>`--v${Xn}${++Kn}`;function Fs(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];re(h)?h=new wi(Ss(h),Ts()).createCSS(r):h instanceof wo?h=new wi(h,Ts()).createCSS(r):xi.getForInstance(h)!==void 0&&(h=h.createCSS(r)),h instanceof st||h instanceof CSSStyleSheet?(i.trim()!==""&&(e.push(i),i=""),e.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&e.push(i),{styles:e,behaviors:s}}const p=(o,...t)=>{const{styles:e,behaviors:i}=Fs(o,t),s=new st(e);return i.length?s.withBehaviors(...i):s};class Os{constructor(t,e){this.behaviors=e,this.css="";const i=t.reduce((s,r)=>(zt(r)?this.css+=r:s.push(r),s),[]);i.length&&(this.styles=new st(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(Os),p.partial=(o,...t)=>{const{styles:e,behaviors:i}=Fs(o,t);return new Os(e,i)};const Ci=`fast-${Math.random().toString(36).substring(2,8)}`,Co=`${Ci}{`,Qe=`}${Ci}`,Yn=Qe.length;let Qn=0;const Si=()=>`${Ci}-${++Qn}`,As=Object.freeze({interpolation:o=>`${Co}${o}${Qe}`,attribute:o=>`${Si()}="${Co}${o}${Qe}"`,comment:o=>`<!--${Co}${o}${Qe}-->`}),So=Object.freeze({parse(o,t){const e=o.split(Co);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(Qe);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(t[d]),h=n.substring(c+Yn)}h!==""&&i.push(h)}return i}}),Ii=mi(),vt=Object.freeze({getForInstance:Ii.getForInstance,getByType:Ii.getByType,define(o,t){return t=t||{},t.type=o,Ii.register(t),o},assignAspect(o,t){if(!t){o.aspectType=K.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?K.tokenList:K.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=K.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=K.event;break;default:o.targetAspect=t,o.aspectType=K.attribute;break}}});class Pi{constructor(t){this.options=t}createHTML(t){return As.attribute(t(this))}createBehavior(){return this}}Ee(Pi);function Zn(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 Jn(o,t,e){var i;const s=`${this.id}-t`,r=(i=o[s])!==null&&i!==void 0?i:o[s]={v:0,cv:Object.create(null)},n=r.cv;let c=r.v;const h=o[t];if(e!=null&&e.length){const d=e.split(/\s+/);for(let l=0,u=d.length;l<u;++l){const f=d[l];f!==""&&(n[f]=c,h.add(f))}}if(r.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const ta={[K.attribute]:Le.setAttribute,[K.booleanAttribute]:Le.setBooleanAttribute,[K.property]:(o,t,e)=>o[t]=e,[K.content]:Zn,[K.tokenList]:Jn,[K.event]:()=>{}};class Me{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=K.content}createHTML(t){return As.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=ta[this.aspectType],i=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw W.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const i=t.targets[this.targetNodeId];switch(this.aspectType){case K.event:i[this.data]=t,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:t.onUnbind(this);default:const s=(e=i[this.data])!==null&&e!==void 0?e:i[this.data]=this.dataBinding.createObserver(this,this);s.target=i,s.controller=t,this.updateTarget(i,this.targetAspect,s.bind(t),t);break}}unbind(t){const i=t.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Ye.setEvent(t);const i=this.dataBinding.evaluate(e.source,e.context);Ye.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)}}vt.define(Me,{aspected:!0});function Es(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 Io{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=$i.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Ye.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(){Es(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){Es(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}}Ee(Io),k.defineProperty(Io.prototype,"index"),k.defineProperty(Io.prototype,"length");const Ls=(o,t)=>`${o}.${t}`,Ms={},Tt={index:0,node:null};function _s(o){o.startsWith("fast-")||W.warn(1204,{name:o})}const ea=new Proxy(document.createElement("div"),{get(o,t){_s(t);const e=Reflect.get(o,t);return re(e)?e.bind(o):e},set(o,t,e){return _s(t),Reflect.set(o,t,e)}});class oa{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:Si(),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=Ms[e];if(!r){const n=`_${e}`;Ms[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??ea;for(const s of this.nodeIds)i[s];return new Io(e,this.factories,i)}}function Rs(o,t,e,i,s,r=!1){const n=e.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],u=l.value,f=So.parse(u,c);let g=null;f===null?r&&(g=new Me(Ps(()=>u,o.policy)),vt.assignAspect(g,l.name)):g=Bi.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=So.parse(t.textContent,o.directives);if(r===null)return Tt.node=t.nextSibling,Tt.index=s+1,Tt;let n,c=n=t;for(let h=0,d=r.length;h<d;++h){const l=r[h];h!==0&&(s++,i=Ls(e,s),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),zt(l)?n.textContent=l:(n.textContent=" ",vt.assignAspect(l),o.addFactory(l,e,i,s,null)),c=n}return Tt.index=s+1,Tt.node=c.nextSibling,Tt}function Ds(o,t,e){let i=0,s=t.firstChild;for(;s;){const r=sa(o,e,s,i);s=r.node,i=r.index}}function sa(o,t,e,i){const s=Ls(t,i);switch(e.nodeType){case 1:Rs(o,t,e,s,i),Ds(o,e,s);break;case 3:return ia(o,e,t,s,i);case 8:const r=So.parse(e.data,o.directives);r!==null&&o.addFactory(Bi.aggregate(r),t,s,i,null);break}return Tt.index=i+1,Tt.node=e.nextSibling,Tt}function ra(o,t){return o&&o.nodeType==8&&So.parse(o.data,t)!==null}const Hs="TEMPLATE",Bi={compile(o,t,e=Le.policy){let i;if(zt(o)){i=document.createElement(Hs),i.innerHTML=e.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Hs&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const s=document.adoptNode(i.content),r=new oa(s,t,e);return Rs(r,"",i,"h",0,!0),(ra(s.firstChild,t)||s.childNodes.length===1&&Object.keys(t).length>0)&&s.insertBefore(document.createComment(""),s.firstChild),Ds(r,s,"r"),Tt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Le.policy){if(o.length===1)return o[0];let e,i,s=!1,r;const n=o.length,c=o.map(l=>zt(l)?()=>l:(e=l.sourceAspect||e,i=l.dataBinding||i,s=s||l.dataBinding.isVolatile,r=r||l.dataBinding.policy,l.dataBinding.evaluate)),h=(l,u)=>{let f="";for(let g=0;g<n;++g)f+=c[g](l,u);return f};i.evaluate=h,i.isVolatile=s,i.policy=r??t;const d=new Me(i);return vt.assignAspect(d,e),d}},na=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,aa=Object.create(null);class $e{constructor(t,e=aa){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const i in e)t(e[i]);return this.html}}$e.empty=new $e(""),vt.define($e);function la(o,t,e,i=vt.getForInstance(o)){if(i.aspected){const s=na.exec(t);s!==null&&vt.assignAspect(o,s[2])}return o.createHTML(e)}class ui{constructor(t,e={},i){this.policy=i,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Bi.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new $e(zt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw W.error(1208);if(this.policy)throw W.error(1207);return this.policy=t,this}render(t,e,i){const s=this.create(i);return s.bind(t),s.appendTo(e),s}static create(t,e,i){let s="";const r=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=Si();return r[d]=c,d};for(let c=0,h=t.length-1;c<h;++c){const d=t[c];let l=e[c],u;if(s+=d,re(l))l=new Me(Ss(l));else if(l instanceof wo)l=new Me(l);else if(!(u=vt.getForInstance(l))){const f=l;l=new Me(Ps(()=>f))}s+=la(l,d,n,u)}return new ui(s+t[t.length-1],r,i)}}Ee(ui);const v=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return ui.create(o,t);throw W.error(1206)};v.partial=o=>new $e(o);class Vs extends Pi{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}vt.define(Vs);const $t=o=>new Vs(o),ca=()=>null;function Ns(o){return o===void 0?ca:re(o)?o:()=>o}function zi(o,t,e){const i=re(o)?o:()=>o,s=Ns(t),r=Ns(e);return(n,c)=>i(n,c)?s(n,c):r(n,c)}const da=o=>o.nodeType===1,ye=o=>o?t=>t.nodeType===1&&t.matches(o):da;class js extends Pi{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,ys),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 qs="slotchange";class Ws extends js{observe(t){t.addEventListener(qs,this)}disconnect(t){t.removeEventListener(qs,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}vt.define(Ws);function rt(o){return zt(o)&&(o={property:o}),new Ws(o)}class Gs extends js{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=vs,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)}}vt.define(Gs);function ha(o){return zt(o)&&(o={property:o}),new Gs(o)}const Us="boolean",Xs="reflect",Po=Object.freeze({locate:xs()}),Ks={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Ys(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const nt={toView(o){const t=Ys(o);return t&&t.toString()},fromView:Ys};class pi{constructor(t,e,i=e.toLowerCase(),s=Xs,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===Us&&r===void 0&&(this.converter=Ks)}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 k.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"||mt.enqueue(()=>{i.add(t);const s=t[this.fieldName];switch(e){case Xs:const r=this.converter;Le.setAttribute(t,this.attribute,r!==void 0?r.toView(s):s);break;case Us:Le.setBooleanAttribute(t,this.attribute,s);break}i.delete(t)})}static collect(t,...e){const i=[];e.push(Po.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];zt(d)?i.push(new pi(t,d)):i.push(new pi(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),Po.locate(s.constructor).push(e)}if(arguments.length>1){e={},i(o,t);return}return e=o===void 0?{}:o,i}const Qs={mode:"open"},Zs={},Js=new Set,Bo=W.getById(ve.elementRegistry,()=>mi());class Bt{constructor(t,e=t.definition){var i;this.platformDefined=!1,zt(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=pi.collect(t,e.attributes),n=new Array(r.length),c={},h={};for(let d=0,l=r.length;d<l;++d){const u=r[d];n[d]=u.attribute,c[u.name]=u,h[u.attribute]=u,k.defineProperty(s,u)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=e.shadowOptions===void 0?Qs:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Qs),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Zs:Object.assign(Object.assign({},Zs),e.elementOptions),this.styles=st.normalize(e.styles),Bo.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 Js.has(t)||Bo.getByType(t)?new Bt(class extends t{},e):new Bt(t,e)}static registerBaseType(t){Js.add(t)}}Bt.getByType=Bo.getByType,Bt.getForInstance=Bo.getForInstance;const ua={bubbles:!0,composed:!0,cancelable:!0},Ti="isConnected",tr=new WeakMap;function zo(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:tr.get(o))!==null&&e!==void 0?e:null}let er;class To extends ws{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"&&tr.set(t,r))}const s=k.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 k.track(this,Ti),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:Ye.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=zo(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=zo(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,k.notify(this,Ti)}disconnect(){if(this.stage!==1)return;this.stage=2,k.notify(this,Ti),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},ua),i))):!1}renderTemplate(t){var e;const i=this.source,s=(e=zo(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=$i.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const i=Bt.getForInstance(t);if(i===void 0)throw W.error(1401);return t.$fastController=new er(t,i)}static setStrategy(t){er=t}}Ee(To),To.setStrategy(To);function Fo(o){var t;return"adoptedStyleSheets"in o?o:(t=zo(o))!==null&&t!==void 0?t:o.getRootNode()}class fi{constructor(t){const e=fi.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){ir(Fo(t),this.sheets)}removeStylesFrom(t){sr(Fo(t),this.sheets)}}fi.styleSheetCache=new Map;let pa=0;const fa=()=>`fast-${++pa}`;function or(o){return o===document?document.body:o}class ga{constructor(t){this.styles=t,this.styleClass=fa()}addStylesTo(t){t=or(Fo(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=or(Fo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,s=e.length;i<s;++i)t.removeChild(e[i])}}let ir=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},sr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(st.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ir=(o,t)=>{o.adoptedStyleSheets.push(...t)},sr=(o,t)=>{for(const e of t){const i=o.adoptedStyleSheets.indexOf(e);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}st.setDefaultStrategy(fi)}else st.setDefaultStrategy(ga);function rr(o){const t=class extends o{constructor(){super(),To.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 Bt.registerBaseType(t),t}function ba(o,t){return re(o)?Bt.compose(o,t):Bt.compose(this,o)}function ma(o,t){return re(o)?Bt.compose(o,t).define().type:Bt.compose(this,o).define().type}function va(o){return rr(o)}const S=Object.assign(rr(HTMLElement),{from:va,define:ma,compose:ba}),J={horizontal:"horizontal",vertical:"vertical"};function nr(...o){return o.every(t=>t instanceof HTMLElement)}const _e="ArrowDown",Re="ArrowLeft",De="ArrowRight",He="ArrowUp",Oo="End",Ve="Enter",ar="Escape",Ao="Home",Eo=" ",$a="Tab",ya={ArrowDown:_e,ArrowLeft:Re,ArrowRight:De,ArrowUp:He};var gt;(function(o){o.ltr="ltr",o.rtl="rtl"})(gt||(gt={}));function xa(o,t,e){return e<o?t:e>t?o:e}function Fi(o,t,e){return Math.min(Math.max(e,o),t)}let ka=0;function Oi(o=""){return`${o}${ka++}`}var wa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,H=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ca(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&wa(t,e,s),s};class V{}H([a({attribute:"aria-atomic"})],V.prototype,"ariaAtomic",2),H([a({attribute:"aria-busy"})],V.prototype,"ariaBusy",2),H([a({attribute:"aria-controls"})],V.prototype,"ariaControls",2),H([a({attribute:"aria-current"})],V.prototype,"ariaCurrent",2),H([a({attribute:"aria-describedby"})],V.prototype,"ariaDescribedby",2),H([a({attribute:"aria-details"})],V.prototype,"ariaDetails",2),H([a({attribute:"aria-disabled"})],V.prototype,"ariaDisabled",2),H([a({attribute:"aria-errormessage"})],V.prototype,"ariaErrormessage",2),H([a({attribute:"aria-flowto"})],V.prototype,"ariaFlowto",2),H([a({attribute:"aria-haspopup"})],V.prototype,"ariaHaspopup",2),H([a({attribute:"aria-hidden"})],V.prototype,"ariaHidden",2),H([a({attribute:"aria-invalid"})],V.prototype,"ariaInvalid",2),H([a({attribute:"aria-keyshortcuts"})],V.prototype,"ariaKeyshortcuts",2),H([a({attribute:"aria-label"})],V.prototype,"ariaLabel",2),H([a({attribute:"aria-labelledby"})],V.prototype,"ariaLabelledby",2),H([a({attribute:"aria-live"})],V.prototype,"ariaLive",2),H([a({attribute:"aria-owns"})],V.prototype,"ariaOwns",2),H([a({attribute:"aria-relevant"})],V.prototype,"ariaRelevant",2),H([a({attribute:"aria-roledescription"})],V.prototype,"ariaRoledescription",2);const lr=o=>o.closest("[dir]")?.dir==="rtl"?gt.rtl:gt.ltr;function at(o){return o?typeof o=="string"?new $e(o):"inline"in o?o.inline():o:$e.empty}const cr=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Sa=":host([hidden]){display:none}";function z(o){return`${Sa}:host{display:${o}}`}class Ia{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 yo extends Ia{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new yo(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 lt=yo.with(window.matchMedia("(forced-colors)"));yo.with(window.matchMedia("(prefers-color-scheme: dark)")),yo.with(window.matchMedia("(prefers-color-scheme: light)"));class Wt{}function Gt(o){return v`<slot name="end" ${$t("end")}>${at(o.end)}</slot>`.inline()}function Ut(o){return v`<slot name="start" ${$t("start")}>${at(o.start)}</slot>`.inline()}function Xt(o,...t){const e=Po.locate(o);t.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(i.prototype,r))}),Po.locate(i).forEach(r=>e.push(r))})}var Pa=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,xe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ba(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&&Pa(t,e,s),s};class tt extends S{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Oi("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}xe([a({attribute:"heading-level",mode:"fromView",converter:nt})],tt.prototype,"headinglevel",2),xe([a({mode:"boolean"})],tt.prototype,"expanded",2),xe([a({mode:"boolean"})],tt.prototype,"disabled",2),xe([a],tt.prototype,"id",2),xe([a],tt.prototype,"size",2),xe([a({mode:"boolean"})],tt.prototype,"block",2),xe([a({attribute:"expand-icon-position"})],tt.prototype,"expandIconPosition",2),Xt(tt,Wt);const M="var(--colorNeutralForeground1)",dr="var(--colorNeutralForeground1Hover)",za="var(--colorNeutralForeground1Pressed)",Ft="var(--colorNeutralForeground2)",Lo="var(--colorNeutralForeground2Hover)",Mo="var(--colorNeutralForeground2Pressed)",Ta="var(--colorNeutralForeground2Selected)",_o="var(--colorNeutralForeground2BrandHover)",Ro="var(--colorNeutralForeground2BrandPressed)",Fa="var(--colorNeutralForeground2BrandSelected)",et="var(--colorNeutralForeground3)",Oa="var(--colorNeutralForeground3Hover)",Aa="var(--colorNeutralForeground3Pressed)",Ea="var(--colorNeutralForeground4)",C="var(--colorNeutralForegroundDisabled)",La="var(--colorBrandForegroundLink)",Ma="var(--colorBrandForegroundLinkHover)",_a="var(--colorBrandForegroundLinkPressed)",Ra="var(--colorNeutralForeground2Link)",Da="var(--colorNeutralForeground2LinkHover)",Ha="var(--colorNeutralForeground2LinkPressed)",hr="var(--colorCompoundBrandForeground1)",ur="var(--colorCompoundBrandForeground1Hover)",pr="var(--colorCompoundBrandForeground1Pressed)",Kt="var(--colorNeutralForegroundOnBrand)",Do="var(--colorNeutralForegroundInverted)",Va="var(--colorNeutralForegroundInvertedHover)",Na="var(--colorNeutralForegroundInvertedPressed)",fr="var(--colorNeutralForegroundStaticInverted)",Ai="var(--colorBrandForeground1)",ja="var(--colorBrandForeground2)",qa="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",Ei="var(--colorNeutralBackground1Hover)",gr="var(--colorNeutralBackground1Pressed)",br="var(--colorNeutralBackground1Selected)",mr="var(--colorNeutralBackground3)",Wa="var(--colorNeutralBackground4)",Ga="var(--colorNeutralBackground5)",Ho="var(--colorNeutralBackground6)",Ua="var(--colorNeutralBackgroundInverted)",Xa="var(--colorSubtleBackground)",Li="var(--colorSubtleBackgroundHover)",Vo="var(--colorSubtleBackgroundPressed)",Ka="var(--colorSubtleBackgroundSelected)",yt="var(--colorTransparentBackground)",Mi="var(--colorTransparentBackgroundHover)",_i="var(--colorTransparentBackgroundPressed)",Ya="var(--colorTransparentBackgroundSelected)",Ze="var(--colorNeutralBackgroundDisabled)",Qa="var(--colorBackgroundOverlay)",Ri="var(--colorBrandBackground)",vr="var(--colorBrandBackgroundHover)",$r="var(--colorBrandBackgroundPressed)",Za="var(--colorBrandBackgroundSelected)",Je="var(--colorCompoundBrandBackground)",to="var(--colorCompoundBrandBackgroundHover)",eo="var(--colorCompoundBrandBackgroundPressed)",yr="var(--colorBrandBackgroundStatic)",Ja="var(--colorBrandBackground2)",Yt="var(--colorNeutralStrokeAccessible)",oo="var(--colorNeutralStrokeAccessibleHover)",io="var(--colorNeutralStrokeAccessiblePressed)",Ne="var(--colorNeutralStroke1)",No="var(--colorNeutralStroke1Hover)",Di="var(--colorNeutralStroke1Pressed)",so="var(--colorNeutralStroke2)",tl="var(--colorNeutralStroke3)",el="var(--colorNeutralStrokeOnBrand2)",xr="var(--colorBrandStroke1)",kr="var(--colorBrandStroke2)",Hi="var(--colorCompoundBrandStroke)",Vi="var(--colorCompoundBrandStrokeHover)",Ni="var(--colorCompoundBrandStrokePressed)",Qt="var(--colorNeutralStrokeDisabled)",Ot="var(--colorTransparentStroke)",wr="var(--colorTransparentStrokeInteractive)",jo="var(--colorStrokeFocus1)",Zt="var(--colorStrokeFocus2)",ol="var(--colorPaletteRedBackground1)",il="var(--colorPaletteRedBackground2)",Cr="var(--colorPaletteRedBackground3)",sl="var(--colorPaletteRedBorder1)",rl="var(--colorPaletteRedBorder2)",Sr="var(--colorPaletteRedForeground1)",nl="var(--colorPaletteRedForeground2)",Ir="var(--colorPaletteRedForeground3)",al="var(--colorPaletteGreenBackground1)",Pr="var(--colorPaletteGreenBackground3)",ll="var(--colorPaletteGreenBorder2)",cl="var(--colorPaletteGreenForeground1)",dl="var(--colorPaletteGreenForeground2)",hl="var(--colorPaletteGreenForeground3)",ul="var(--colorPaletteDarkOrangeBackground1)",Br="var(--colorPaletteDarkOrangeBackground3)",pl="var(--colorPaletteDarkOrangeBorder1)",fl="var(--colorPaletteDarkOrangeForeground1)",zr="var(--colorPaletteDarkOrangeForeground3)",gl="var(--colorPaletteYellowBackground1)",bl="var(--colorPaletteYellowBackground3)",ml="var(--colorPaletteYellowBorder1)",ji="var(--colorPaletteYellowForeground2)",vl="var(--colorPaletteMarigoldBackground2)",$l="var(--colorPaletteMarigoldForeground2)",yl="var(--colorPaletteAnchorBackground2)",xl="var(--colorPaletteAnchorForeground2)",kl="var(--colorPaletteBeigeBackground2)",wl="var(--colorPaletteBeigeForeground2)",Cl="var(--colorPaletteBlueBackground2)",Sl="var(--colorPaletteBlueForeground2)",Il="var(--colorPaletteBrassBackground2)",Pl="var(--colorPaletteBrassForeground2)",Bl="var(--colorPaletteBrownBackground2)",zl="var(--colorPaletteBrownForeground2)",Tl="var(--colorPaletteCornflowerBackground2)",Fl="var(--colorPaletteCornflowerForeground2)",Ol="var(--colorPaletteCranberryBackground2)",Al="var(--colorPaletteCranberryForeground2)",El="var(--colorPaletteDarkGreenBackground2)",Ll="var(--colorPaletteDarkGreenForeground2)",Ml="var(--colorPaletteDarkRedBackground2)",_l="var(--colorPaletteDarkRedForeground2)",Rl="var(--colorPaletteForestBackground2)",Dl="var(--colorPaletteForestForeground2)",Hl="var(--colorPaletteGoldBackground2)",Vl="var(--colorPaletteGoldForeground2)",Nl="var(--colorPaletteGrapeBackground2)",jl="var(--colorPaletteGrapeForeground2)",ql="var(--colorPaletteLavenderBackground2)",Wl="var(--colorPaletteLavenderForeground2)",Gl="var(--colorPaletteLightTealBackground2)",Ul="var(--colorPaletteLightTealForeground2)",Xl="var(--colorPaletteLilacBackground2)",Kl="var(--colorPaletteLilacForeground2)",Yl="var(--colorPaletteMagentaBackground2)",Ql="var(--colorPaletteMagentaForeground2)",Zl="var(--colorPaletteMinkBackground2)",Jl="var(--colorPaletteMinkForeground2)",tc="var(--colorPaletteNavyBackground2)",ec="var(--colorPaletteNavyForeground2)",oc="var(--colorPalettePeachBackground2)",ic="var(--colorPalettePeachForeground2)",sc="var(--colorPalettePinkBackground2)",rc="var(--colorPalettePinkForeground2)",nc="var(--colorPalettePlatinumBackground2)",ac="var(--colorPalettePlatinumForeground2)",lc="var(--colorPalettePlumBackground2)",cc="var(--colorPalettePlumForeground2)",dc="var(--colorPalettePumpkinBackground2)",hc="var(--colorPalettePumpkinForeground2)",uc="var(--colorPalettePurpleBackground2)",pc="var(--colorPalettePurpleForeground2)",fc="var(--colorPaletteRoyalBlueBackground2)",gc="var(--colorPaletteRoyalBlueForeground2)",bc="var(--colorPaletteSeafoamBackground2)",mc="var(--colorPaletteSeafoamForeground2)",vc="var(--colorPaletteSteelBackground2)",$c="var(--colorPaletteSteelForeground2)",yc="var(--colorPaletteTealBackground2)",xc="var(--colorPaletteTealForeground2)",qi="var(--borderRadiusNone)",xt="var(--borderRadiusSmall)",L="var(--borderRadiusMedium)",Tr="var(--borderRadiusLarge)",Fr="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",y="var(--fontFamilyBase)",kc="var(--fontFamilyMonospace)",wc="var(--fontFamilyNumeric)",ro="var(--fontSizeBase100)",G="var(--fontSizeBase200)",O="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",ke="var(--fontSizeBase500)",qo="var(--fontSizeBase600)",Or="var(--fontSizeHero700)",Ar="var(--fontSizeHero800)",Er="var(--fontSizeHero900)",Lr="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",Cc="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",Wo="var(--fontWeightBold)",Go="var(--lineHeightBase100)",ht="var(--lineHeightBase200)",R="var(--lineHeightBase300)",kt="var(--lineHeightBase400)",Uo="var(--lineHeightBase500)",Mr="var(--lineHeightBase600)",_r="var(--lineHeightHero700)",Rr="var(--lineHeightHero800)",Dr="var(--lineHeightHero900)",Hr="var(--lineHeightHero1000)",Vr="var(--shadow2)",Xo="var(--shadow4)",Sc="var(--shadow8)",Nr="var(--shadow16)",Ic="var(--shadow28)",Pc="var(--shadow64)",Y="var(--strokeWidthThin)",we="var(--strokeWidthThick)",ne="var(--strokeWidthThicker)",jr="var(--strokeWidthThickest)",Ce="var(--spacingHorizontalXXS)",Jt="var(--spacingHorizontalXS)",Se="var(--spacingHorizontalSNudge)",At="var(--spacingHorizontalS)",te="var(--spacingHorizontalMNudge)",ae="var(--spacingHorizontalM)",Bc="var(--spacingHorizontalL)",zc="var(--spacingHorizontalXXL)",Ko="var(--spacingVerticalXXS)",Tc="var(--spacingVerticalXS)",no="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",qr="var(--spacingVerticalMNudge)",Wr="var(--spacingVerticalL)",ao="var(--spacingVerticalXXL)",Fc="var(--durationUltraFast)",Wi="var(--durationFaster)",Gr="var(--durationNormal)",Oc="var(--durationGentle)",Ac="var(--durationSlow)",Ur="var(--durationSlower)",Yo="var(--durationUltraSlow)",Ec="var(--curveAccelerateMax)",Gi="var(--curveAccelerateMid)",Lc="var(--curveAccelerateMin)",Xr="var(--curveDecelerateMax)",Ui="var(--curveDecelerateMid)",Mc="var(--curveDecelerateMin)",_c="var(--curveEasyEaseMax)",Xi="var(--curveEasyEase)",Kr="var(--curveLinear)",Rc=p`
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
2
  ${z("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${ae} ${te};border-radius:${L};font-family:${y};font-size:${O};font-weight:${A};line-height:${R};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${M};background:${yt};line-height:${R};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${xt}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${At};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${ae}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${At};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${xt};outline:none;border:2px solid ${jo};box-shadow:inset 0 0 0 1px ${Zt}}:host([disabled]) .button{color:${C}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${O};line-height:${R}}:host([size='small']) .heading{font-size:${G};line-height:${ht}}:host([size='large']) .heading{font-size:${dt};line-height:${kt}}:host([size='extra-large']) .heading{font-size:${ke};line-height:${Uo}}: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}`,Dc=v.partial(`<svg
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
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>`),Hc=v.partial(`<svg
16
+ </svg>`),cd=v.partial(`<svg
17
17
  width="20"
18
18
  height="20"
19
19
  viewBox="0 0 20 20"
@@ -25,35 +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 Vc(o={}){return v`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${$t("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>${Ut(o)} ${Gt(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${at(o.expandedIcon)}</slot><slot name="collapsed-icon">${at(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 Nc=Vc({collapsedIcon:Dc,expandedIcon:Hc}),jc=tt.compose({name:`${b.prefix}-accordion-item`,template:Nc,styles:Rc});jc.define(b.registry);const Ki={single:"single",multi:"multi"};var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,Yr=(o,t,e,i)=>{for(var s=i>1?void 0:i?Wc(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&&qc(t,e,s),s};class Yi extends S{constructor(){super(...arguments),this.expandmode=Ki.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=>k.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((e,i)=>{e instanceof tt&&(e.addEventListener("click",this.activeItemChange),e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus),k.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)=>{k.getNotifier(e).unsubscribe(this,"disabled"),k.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 tt&&(this.activeid=t.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.change())},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case He:t.preventDefault(),this.adjust(-1);break;case _e:t.preventDefault(),this.adjust(1);break;case Ao:this.activeItemIndex=0,this.focusItem();break;case Oo: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!==Ki.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 tt&&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 tt&&(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===Ki.single}adjust(t){this.activeItemIndex=xa(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof tt&&t.expandbutton.focus()}}Yr([a({attribute:"expand-mode"})],Yi.prototype,"expandmode",2),Yr([$],Yi.prototype,"slottedAccordionItems",2);const Gc=p`
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
29
  ${z("flex")}
30
30
 
31
- :host{flex-direction:column;width:100%;contain:content}`;function Uc(){return v`<template><slot ${rt({property:"slottedAccordionItems",filter:ye()})}></slot></template>`}const Xc=Uc(),Kc=Yi.compose({name:`${b.prefix}-accordion`,template:Xc,styles:Gc});Kc.define(b.registry);const Qo={submit:"submit",reset:"reset",button:"button"},Yc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Qc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,bt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Zc(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&&Qc(t,e,s),s};class Et extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),k.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),k.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in Yc){const i=this.$fastController.definition.attributeLookup[e]?.attribute;i&&this.handleProxyAttributeChange(i,this[e])}}clickHandler(){return this.internalProxyAnchor.click(),!0}keypressHandler(t){if(t.key===Ve){this.internalProxyAnchor.click();return}return!0}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.hidden=!0,t}}bt([a],Et.prototype,"download",2),bt([a],Et.prototype,"href",2),bt([a],Et.prototype,"hreflang",2),bt([a],Et.prototype,"ping",2),bt([a],Et.prototype,"referrerpolicy",2),bt([a],Et.prototype,"rel",2),bt([a],Et.prototype,"target",2),bt([a],Et.prototype,"type",2);class je extends Et{constructor(){super(...arguments),this.iconOnly=!1}}bt([a],je.prototype,"appearance",2),bt([a],je.prototype,"shape",2),bt([a],je.prototype,"size",2),bt([a({attribute:"icon-only",mode:"boolean"})],je.prototype,"iconOnly",2),Xt(je,Wt);const Qr=p`
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
32
  ${z("inline-flex")}
33
33
 
34
- :host{--icon-spacing:${Se};contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${_};color:${M};border:${Y} solid ${Ne};padding:0 ${ae};min-width:96px;border-radius:${L};font-size:${O};font-family:${y};font-weight:${N};line-height:${R};transition-duration:${Wi};transition-property:background,border,color;transition-timing-function:${Xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ei};color:${dr};border-color:${No}}:host(:hover:active){background-color:${gr};border-color:${Di};color:${za};outline-style:none}:host(:focus-visible){border-color:${Ot};outline:${we} solid ${Ot};box-shadow:${Xo},0 0 0 2px ${Zt}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}[slot='start'],::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}[slot='end'],::slotted([slot='end']){margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${Jt};min-height:24px;min-width:64px;padding:0 ${At};border-radius:${xt};font-size:${G};line-height:${ht};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Tr};padding:0 ${Bc};font-size:${dt};line-height:${kt}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host([shape='circular']),:host([shape='circular']:focus-visible){border-radius:${ct}}:host([shape='square']),:host([shape='square']:focus-visible){border-radius:${qi}}:host([appearance='primary']){background-color:${Ri};color:${Kt};border-color:transparent}:host([appearance='primary']:hover){background-color:${vr}}:host([appearance='primary']:hover),:host([appearance='primary']:hover:active){border-color:transparent;color:${Kt}}:host([appearance='primary']:hover:active){background-color:${$r}}:host([appearance='primary']:focus-visible){border-color:${Kt};box-shadow:${Vr},0 0 0 2px ${Zt}}:host([appearance='outline']){background-color:${yt}}:host([appearance='outline']:hover){background-color:${Mi}}:host([appearance='outline']:hover:active){background-color:${_i}}:host([appearance='subtle']){background-color:${Xa};color:${Ft};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Li};color:${Lo};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${Vo};color:${Mo};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${_o}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Ro}}:host([appearance='transparent']){background-color:${yt};color:${Ft}}:host([appearance='transparent']:hover){background-color:${Mi};color:${_o}}:host([appearance='transparent']:hover:active){background-color:${_i};color:${Ro}}:host([appearance='transparent']),:host([appearance='transparent']:hover),:host([appearance='transparent']:hover:active){border-color:transparent}`,Zo=p`
35
- ${Qr}
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}
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:${Ze};border-color:${Qt};color:${C};cursor:not-allowed}:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary'])),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover),:host(:is([disabled][appearance='primary'],[disabled-focusable][appearance='primary']):hover:active){border-color:transparent}:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline'])),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover),:host(:is([disabled][appearance='outline'],[disabled-focusable][appearance='outline']):hover:active){background-color:${yt}}:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle'])),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover),:host(:is([disabled][appearance='subtle'],[disabled-focusable][appearance='subtle']):hover:active){background-color:${yt};border-color:transparent}:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent'])),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover),:host(:is([disabled][appearance='transparent'],[disabled-focusable][appearance='transparent']):hover:active){border-color:transparent;background-color:${yt}}`.withBehaviors(lt(p`
38
- :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Jc=Qr.withBehaviors(lt(p`
39
- :host{border-color:LinkText;color:LinkText}`));function td(o={}){return v`<template tabindex="0" @click="${t=>t.clickHandler()}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Ut(o)}<span class="content" part="content"><slot></slot></span>${Gt(o)}</template>`}const ed=td(),od=je.compose({name:`${b.prefix}-anchor-button`,template:ed,styles:Jc});od.define(b.registry);const id=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,sd=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,rd=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,nd=/\s+/g,ad=/[\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 ld(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 cd(o){return o=o.replace(id,""),o=o.replace(sd,""),o=o.replace(nd," "),o=o.trim(),o}function dd(o,t,e){return!o||(o=cd(o),ad.test(o)||!e?.allowPhoneInitials&&rd.test(o))?"":ld(o,t,e?.firstInitialOnly)}const hd=CSS.supports("selector(:state(g))");function Lt(o,t,e){if(!hd){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 Zr={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"},Jr={neutral:"neutral",brand:"brand",colorful:"colorful",...Zr};var ud=Object.defineProperty,pd=Object.getOwnPropertyDescriptor,le=(o,t,e,i)=>{for(var s=i>1?void 0:i?pd(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&&ud(t,e,s),s};const Mt=class hs extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),k.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),k.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Jr.colorful,e=this.currentColor;Lt(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?hs.colors[gd(this.name??"")%hs.colors.length]:this.color??Jr.neutral,Lt(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??dd(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Mt.colors=Object.values(Zr),le([a],Mt.prototype,"name",2),le([a],Mt.prototype,"initials",2),le([a({converter:nt})],Mt.prototype,"size",2),le([a],Mt.prototype,"shape",2),le([a],Mt.prototype,"active",2),le([a],Mt.prototype,"appearance",2),le([a],Mt.prototype,"color",2),le([a({attribute:"color-id"})],Mt.prototype,"colorId",2);let fd=Mt;const gd=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},ce={fastOutSlowInMax:Xr,fastOutSlowInMid:Ui,fastOutSlowInMin:Mc,slowOutFastInMax:Ec,slowOutFastInMid:Gi,slowOutFastInMin:Lc,fastEase:_c,normalEase:Xi,nullEasing:Kr},bd=p`
40
- ${z("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${y};font-weight:${N};font-size:${O};border-radius:${ct};color:${et};background-color:${Ho};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ct}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${Y}) ${_}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${we}) ${_}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${ro};font-weight:${A}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${G}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${dt}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${ke}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${qo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${L}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${xt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Tr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Fr}}:host(:is([state--brand],:state(brand))){color:${fr};background-color:${yr}}:host(:is([state--dark-red],:state(dark-red))){color:${_l};background-color:${Ml}}:host(:is([state--cranberry],:state(cranberry))){color:${Al};background-color:${Ol}}:host(:is([state--red],:state(red))){color:${nl};background-color:${il}}:host(:is([state--pumpkin],:state(pumpkin))){color:${hc};background-color:${dc}}:host(:is([state--peach],:state(peach))){color:${ic};background-color:${oc}}:host(:is([state--marigold],:state(marigold))){color:${$l};background-color:${vl}}:host(:is([state--gold],:state(gold))){color:${Vl};background-color:${Hl}}:host(:is([state--brass],:state(brass))){color:${Pl};background-color:${Il}}:host(:is([state--brown],:state(brown))){color:${zl};background-color:${Bl}}:host(:is([state--forest],:state(forest))){color:${Dl};background-color:${Rl}}:host(:is([state--seafoam],:state(seafoam))){color:${mc};background-color:${bc}}:host(:is([state--dark-green],:state(dark-green))){color:${Ll};background-color:${El}}:host(:is([state--light-teal],:state(light-teal))){color:${Ul};background-color:${Gl}}:host(:is([state--teal],:state(teal))){color:${xc};background-color:${yc}}:host(:is([state--steel],:state(steel))){color:${$c};background-color:${vc}}:host(:is([state--blue],:state(blue))){color:${Sl};background-color:${Cl}}:host(:is([state--royal-blue],:state(royal-blue))){color:${gc};background-color:${fc}}:host(:is([state--cornflower],:state(cornflower))){color:${Fl};background-color:${Tl}}:host(:is([state--navy],:state(navy))){color:${ec};background-color:${tc}}:host(:is([state--lavender],:state(lavender))){color:${Wl};background-color:${ql}}:host(:is([state--purple],:state(purple))){color:${pc};background-color:${uc}}:host(:is([state--grape],:state(grape))){color:${jl};background-color:${Nl}}:host(:is([state--lilac],:state(lilac))){color:${Kl};background-color:${Xl}}:host(:is([state--pink],:state(pink))){color:${rc};background-color:${sc}}:host(:is([state--magenta],:state(magenta))){color:${Ql};background-color:${Yl}}:host(:is([state--plum],:state(plum))){color:${cc};background-color:${lc}}:host(:is([state--beige],:state(beige))){color:${wl};background-color:${kl}}:host(:is([state--mink],:state(mink))){color:${Jl};background-color:${Zl}}:host(:is([state--platinum],:state(platinum))){color:${ac};background-color:${nc}}:host(:is([state--anchor],:state(anchor))){color:${xl};background-color:${yl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Yo},${Wi};transition-delay:${ce.fastEase},${ce.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Yo}),${Ur};transition-delay:${ce.fastEase}),${ce.nullEasing})}:host([active])::before{box-shadow:${Sc};border-style:solid;border-color:${yr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${we});border-width:${we}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ne});border-width:${ne}}: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 * ${jr});border-width:${jr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Xo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Nr}}: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:${Ic}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Yo},${Wi};transition-delay:${ce.fastOutSlowInMin},${ce.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Yo},${Ur};transition-delay:${ce.fastOutSlowInMin},${ce.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}}`,md=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():md}</slot><slot name="badge"></slot>`}const $d=vd(),yd=fd.compose({name:`${b.prefix}-avatar`,template:$d,styles:bd});yd.define(b.registry);const xd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},kd={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,Jo=(o,t,e,i)=>{for(var s=i>1?void 0:i?Cd(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&&wd(t,e,s),s};class qe extends S{constructor(){super(...arguments),this.appearance=xd.filled,this.color=kd.brand}}Jo([a],qe.prototype,"appearance",2),Jo([a],qe.prototype,"color",2),Jo([a],qe.prototype,"shape",2),Jo([a],qe.prototype,"size",2),Xt(qe,Wt);const ti=Ce,tn=p.partial`
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}
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`
41
44
  ${z("inline-flex")} :host {
42
45
  position: relative;
43
46
  box-sizing: border-box;
44
47
  align-items: center;
45
48
  justify-content: center;
46
- font-family: ${y};
47
- font-weight: ${N};
48
- font-size: ${G};
49
- line-height: ${ht};
49
+ font-family: ${x};
50
+ font-weight: ${q};
51
+ font-size: ${Q};
52
+ line-height: ${mt};
50
53
  min-width: 20px;
51
54
  height: 20px;
52
- padding-inline: calc(${Jt} + ${ti});
53
- border-radius: ${ct};
54
- border-color: ${Ot};
55
- background-color: ${Ri};
56
- color: ${Kt};
55
+ padding-inline: calc(${se} + ${$i});
56
+ border-radius: ${gt};
57
+ border-color: ${Rt};
58
+ background-color: ${is};
59
+ color: ${te};
57
60
  contain: content;
58
61
  }
59
62
 
@@ -61,7 +64,7 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
61
64
  font-size: 12px;
62
65
  }
63
66
 
64
- :host(:not([appearance='ghost']))::after {
67
+ :host(:not(${ne}))::after {
65
68
  position: absolute;
66
69
  content: '';
67
70
  top: 0;
@@ -69,12 +72,12 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
69
72
  bottom: 0;
70
73
  right: 0;
71
74
  border-style: solid;
72
- border-width: ${Y};
75
+ border-width: ${et};
73
76
  border-color: inherit;
74
77
  border-radius: inherit;
75
78
  }
76
- `,en=p.partial`
77
- :host([size='tiny']) {
79
+ `,Cn=u.partial`
80
+ :host(${ci}) {
78
81
  width: 6px;
79
82
  height: 6px;
80
83
  font-size: 4px;
@@ -82,10 +85,10 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
82
85
  padding-inline: 0;
83
86
  min-width: unset;
84
87
  }
85
- :host([size='tiny']) ::slotted(svg) {
88
+ :host(${ci}) ::slotted(svg) {
86
89
  font-size: 6px;
87
90
  }
88
- :host([size='extra-small']) {
91
+ :host(${di}) {
89
92
  width: 10px;
90
93
  height: 10px;
91
94
  font-size: 6px;
@@ -93,289 +96,289 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
93
96
  padding-inline: 0;
94
97
  min-width: unset;
95
98
  }
96
- :host([size='extra-small']) ::slotted(svg) {
99
+ :host(${di}) ::slotted(svg) {
97
100
  font-size: 10px;
98
101
  }
99
- :host([size='small']) {
102
+ :host(${me}) {
100
103
  min-width: 16px;
101
104
  height: 16px;
102
- font-size: ${ro};
103
- line-height: ${Go};
104
- padding-inline: calc(${Ce} + ${ti});
105
+ font-size: ${mo};
106
+ line-height: ${ii};
107
+ padding-inline: calc(${Ee} + ${$i});
105
108
  }
106
- :host([size='small']) ::slotted(svg) {
109
+ :host(${me}) ::slotted(svg) {
107
110
  font-size: 12px;
108
111
  }
109
- :host([size='large']) {
112
+ :host(${ae}) {
110
113
  min-width: 24px;
111
114
  height: 24px;
112
- font-size: ${G};
113
- line-height: ${ht};
114
- padding-inline: calc(${Jt} + ${ti});
115
+ font-size: ${Q};
116
+ line-height: ${mt};
117
+ padding-inline: calc(${se} + ${$i});
115
118
  }
116
- :host([size='large']) ::slotted(svg) {
119
+ :host(${ae}) ::slotted(svg) {
117
120
  font-size: 16px;
118
121
  }
119
- :host([size='extra-large']) {
122
+ :host(${$n}) {
120
123
  min-width: 32px;
121
124
  height: 32px;
122
- font-size: ${G};
123
- line-height: ${ht};
124
- padding-inline: calc(${Se} + ${ti});
125
+ font-size: ${Q};
126
+ line-height: ${mt};
127
+ padding-inline: calc(${Me} + ${$i});
125
128
  }
126
- :host([size='extra-large']) ::slotted(svg) {
129
+ :host(${$n}) ::slotted(svg) {
127
130
  font-size: 20px;
128
131
  }
129
- `,on=p.partial`
130
- :host([color='danger']) {
131
- background-color: ${Cr};
132
- color: ${Kt};
132
+ `,Sn=u.partial`
133
+ :host(${hi}) {
134
+ background-color: ${qr};
135
+ color: ${te};
133
136
  }
134
137
 
135
- :host([color='important']) {
136
- background-color: ${M};
137
- color: ${_};
138
+ :host(${ui}) {
139
+ background-color: ${R};
140
+ color: ${D};
138
141
  }
139
142
 
140
- :host([color='informative']) {
141
- background-color: ${Ga};
142
- color: ${et};
143
+ :host(${pi}) {
144
+ background-color: ${gl};
145
+ color: ${nt};
143
146
  }
144
147
 
145
- :host([color='severe']) {
146
- background-color: ${Br};
147
- color: ${Kt};
148
+ :host(${fi}) {
149
+ background-color: ${Xr};
150
+ color: ${te};
148
151
  }
149
152
 
150
- :host([color='subtle']) {
151
- background-color: ${_};
152
- color: ${M};
153
+ :host(${W}) {
154
+ background-color: ${D};
155
+ color: ${R};
153
156
  }
154
157
 
155
- :host([color='success']) {
156
- background-color: ${Pr};
157
- color: ${Kt};
158
+ :host(${gi}) {
159
+ background-color: ${Ur};
160
+ color: ${te};
158
161
  }
159
162
 
160
- :host([color='warning']) {
161
- background-color: ${bl};
162
- color: ${qa};
163
+ :host(${bi}) {
164
+ background-color: ${Dl};
165
+ color: ${pl};
163
166
  }
164
- `,sn=p.partial`
165
- :host([appearance='ghost']) {
166
- color: ${Ai};
167
+ `,In=u.partial`
168
+ :host(${ne}) {
169
+ color: ${Zi};
167
170
  background-color: initial;
168
171
  }
169
172
 
170
- :host([appearance='ghost'][color='danger']) {
171
- color: ${Ir};
173
+ :host(${ne}${hi}) {
174
+ color: ${Gr};
172
175
  }
173
176
 
174
- :host([appearance='ghost'][color='important']) {
175
- color: ${M};
177
+ :host(${ne}${ui}) {
178
+ color: ${R};
176
179
  }
177
180
 
178
- :host([appearance='ghost'][color='informative']) {
179
- color: ${et};
181
+ :host(${ne}${pi}) {
182
+ color: ${nt};
180
183
  }
181
184
 
182
- :host([appearance='ghost'][color='severe']) {
183
- color: ${zr};
185
+ :host(${ne}${fi}) {
186
+ color: ${Kr};
184
187
  }
185
188
 
186
- :host([appearance='ghost'][color='subtle']) {
187
- color: ${Do};
189
+ :host(${ne}${W}) {
190
+ color: ${Yo};
188
191
  }
189
192
 
190
- :host([appearance='ghost'][color='success']) {
191
- color: ${hl};
193
+ :host(${ne}${gi}) {
194
+ color: ${El};
192
195
  }
193
196
 
194
- :host([appearance='ghost'][color='warning']) {
195
- color: ${ji};
197
+ :host(${ne}${bi}) {
198
+ color: ${ls};
196
199
  }
197
- `,Sd=p.partial`
198
- :host([appearance='outline']) {
200
+ `,Xd=u.partial`
201
+ :host(${G}) {
199
202
  border-color: currentColor;
200
- color: ${Ai};
203
+ color: ${Zi};
201
204
  background-color: initial;
202
205
  }
203
206
 
204
- :host([appearance='outline'][color='danger']) {
205
- color: ${Ir};
206
- }
207
-
208
- :host([appearance='outline'][color='important']) {
209
- color: ${et};
210
- border-color: ${Yt};
211
- }
212
-
213
- :host([appearance='outline'][color='informative']) {
214
- color: ${et};
215
- border-color: ${so};
207
+ :host(${G}${hi}) {
208
+ color: ${Gr};
216
209
  }
217
210
 
218
- :host([appearance='outline'][color='severe']) {
219
- color: ${zr};
211
+ :host(${G}${ui}) {
212
+ color: ${nt};
213
+ border-color: ${ee};
220
214
  }
221
215
 
222
- :host([appearance='outline'][color='subtle']) {
223
- color: ${fr};
224
- }
225
-
226
- :host([appearance='outline'][color='success']) {
227
- color: ${dl};
228
- }
229
-
230
- :host([appearance='outline'][color='warning']) {
231
- color: ${ji};
232
- }
233
- `,Id=p.partial`
234
- :host([appearance='tint']) {
235
- background-color: ${Ja};
236
- color: ${ja};
237
- border-color: ${kr};
216
+ :host(${G}${pi}) {
217
+ color: ${nt};
218
+ border-color: ${bo};
238
219
  }
239
220
 
240
- :host([appearance='tint'][color='danger']) {
241
- background-color: ${ol};
242
- color: ${Sr};
243
- border-color: ${sl};
221
+ :host(${G}${fi}) {
222
+ color: ${Kr};
244
223
  }
245
224
 
246
- :host([appearance='tint'][color='important']) {
247
- background-color: ${et};
248
- color: ${_};
249
- border-color: ${Ot};
225
+ :host(${G}${W}) {
226
+ color: ${Er};
250
227
  }
251
-
252
- :host([appearance='tint'][color='informative']) {
253
- background-color: ${Wa};
254
- color: ${et};
255
- border-color: ${so};
256
- }
257
-
258
- :host([appearance='tint'][color='severe']) {
259
- background-color: ${ul};
260
- color: ${fl};
261
- border-color: ${pl};
262
- }
263
-
264
- :host([appearance='tint'][color='subtle']) {
265
- background-color: ${_};
266
- color: ${et};
267
- border-color: ${so};
268
- }
269
-
270
- :host([appearance='tint'][color='success']) {
271
- background-color: ${al};
272
- color: ${cl};
273
- border-color: ${ll};
274
- }
275
-
276
- :host([appearance='tint'][color='warning']) {
277
- background-color: ${gl};
278
- color: ${ji};
279
- border-color: ${ml};
280
- }
281
- `;p.partial`
282
- font-family: ${y};
283
- font-size: ${O};
284
- line-height: ${R};
285
- font-weight: ${A};
286
- `,p.partial`
287
- font-family: ${y};
288
- font-size: ${O};
289
- line-height: ${R};
290
- font-weight: ${N};
291
- `,p.partial`
292
- font-family: ${y};
293
- font-size: ${O};
294
- line-height: ${R};
295
- font-weight: ${Wo};
296
- `,p.partial`
297
- font-family: ${y};
298
- font-size: ${dt};
299
- line-height: ${kt};
300
- font-weight: ${A};
301
- `,p.partial`
302
- font-family: ${y};
303
- font-size: ${G};
304
- line-height: ${ht};
305
- font-weight: ${A};
306
- `,p.partial`
307
- font-family: ${y};
308
- font-size: ${G};
309
- line-height: ${ht};
310
- font-weight: ${N};
311
- `,p.partial`
312
- font-family: ${y};
313
- font-size: ${G};
314
- line-height: ${ht};
315
- font-weight: ${Wo};
316
- `,p.partial`
317
- font-family: ${y};
318
- font-size: ${ro};
319
- line-height: ${Go};
320
- font-weight: ${A};
321
- `,p.partial`
322
- font-family: ${y};
323
- font-size: ${ro};
324
- line-height: ${Go};
325
- font-weight: ${N};
326
- `,p.partial`
327
- font-family: ${y};
328
- font-size: ${ke};
329
- line-height: ${Uo};
330
- font-weight: ${N};
331
- `,p.partial`
332
- font-family: ${y};
333
- font-size: ${dt};
334
- line-height: ${kt};
335
- font-weight: ${N};
336
- `,p.partial`
337
- font-family: ${y};
338
- font-size: ${dt};
339
- line-height: ${kt};
340
- font-weight: ${Wo};
341
- `,p.partial`
342
- font-family: ${y};
343
- font-size: ${Ar};
344
- line-height: ${Rr};
345
- font-weight: ${N};
346
- `,p.partial`
347
- font-family: ${y};
348
- font-size: ${Or};
349
- line-height: ${_r};
350
- font-weight: ${N};
351
- `,p.partial`
352
- font-family: ${y};
353
- font-size: ${qo};
354
- line-height: ${Mr};
355
- font-weight: ${N};
356
- `,p.partial`
357
- font-family: ${y};
358
- font-size: ${Er};
359
- line-height: ${Dr};
360
- font-weight: ${N};
361
- `,p.partial`
362
- font-family: ${y};
363
- font-size: ${Lr};
364
- line-height: ${Hr};
365
- font-weight: ${N};
366
- `;const Pd=p`
367
- :host([shape='square']){border-radius:${qi}}:host([shape='rounded']){border-radius:${L}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${xt}}${en}
368
- ${on}
369
- ${sn}
370
- ${Sd}
371
- ${Id}
372
- ${tn}
373
- `.withBehaviors(lt(p`
374
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function rn(o={}){return v` ${Ut(o)}<slot>${at(o.defaultContent)}</slot>${Gt(o)} `}const Bd=rn(),zd=qe.compose({name:`${b.prefix}-badge`,template:Bd,styles:Pd});zd.define(b.registry);var Td=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,j=(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&&Td(t,e,s),s};class F extends S{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(t,e){e!==Qo.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===Ve||t.key===Eo){this.click();return}return!0}press(){switch(this.type){case Qo.reset:{this.resetForm();break}case Qo.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==Qo.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)}}}}F.formAssociated=!0,j([a],F.prototype,"appearance",2),j([a({mode:"boolean"})],F.prototype,"autofocus",2),j([$],F.prototype,"defaultSlottedContent",2),j([a({mode:"boolean"})],F.prototype,"disabled",2),j([a({attribute:"disabled-focusable",mode:"boolean"})],F.prototype,"disabledFocusable",2),j([a({attribute:"formaction"})],F.prototype,"formAction",2),j([a({attribute:"form"})],F.prototype,"formAttribute",2),j([a({attribute:"formenctype"})],F.prototype,"formEnctype",2),j([a({attribute:"formmethod"})],F.prototype,"formMethod",2),j([a({attribute:"formnovalidate",mode:"boolean"})],F.prototype,"formNoValidate",2),j([a({attribute:"formtarget"})],F.prototype,"formTarget",2),j([a({attribute:"icon-only",mode:"boolean"})],F.prototype,"iconOnly",2),j([a],F.prototype,"name",2),j([a],F.prototype,"shape",2),j([a],F.prototype,"size",2),j([a],F.prototype,"type",2),j([a],F.prototype,"value",2),Xt(F,Wt);function Qi(o={}){return v`<template tabindex="${t=>t.disabled?-1:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Ut(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot></span>${Gt(o)}</template>`}const Od=Qi(),Ad=F.compose({name:`${b.prefix}-button`,template:Od,styles:Zo});Ad.define(b.registry);var Ed=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,_t=(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&&Ed(t,e,s),s};class wt extends S{constructor(){super(),this.disabled=!1,this.initialValue="on",this._checked=this.initialChecked??!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue,this.elementInternals.role="checkbox"}get checked(){return k.track(this,"checked"),this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),Lt(this.elementInternals,"checked",t),k.notify(this,"checked")}indeterminateChanged(t,e){this.setAriaChecked(),Lt(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 k.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),k.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}}wt.formAssociated=!0,_t([a({mode:"boolean"})],wt.prototype,"autofocus",2),_t([a({mode:"boolean"})],wt.prototype,"disabled",2),_t([a({attribute:"form"})],wt.prototype,"formAttribute",2),_t([$],wt.prototype,"indeterminate",2),_t([a({attribute:"checked",mode:"boolean"})],wt.prototype,"initialChecked",2),_t([a({attribute:"value",mode:"fromView"})],wt.prototype,"initialValue",2),_t([a],wt.prototype,"name",2),_t([a({mode:"boolean"})],wt.prototype,"required",2);class Zi extends wt{}_t([a],Zi.prototype,"shape",2),_t([a],Zi.prototype,"size",2);const Ct=p.partial`:is([state--checked], :state(checked))`,Ie=p.partial`:is([state--indeterminate], :state(indeterminate))`,Md=p`
228
+
229
+ :host(${G}${gi}) {
230
+ color: ${Al};
231
+ }
232
+
233
+ :host(${G}${bi}) {
234
+ color: ${ls};
235
+ }
236
+ `,Kd=u.partial`
237
+ :host(${ge}) {
238
+ background-color: ${kl};
239
+ color: ${ul};
240
+ border-color: ${Nr};
241
+ }
242
+
243
+ :host(${ge}${hi}) {
244
+ background-color: ${Sl};
245
+ color: ${Wr};
246
+ border-color: ${Pl};
247
+ }
248
+
249
+ :host(${ge}${ui}) {
250
+ background-color: ${nt};
251
+ color: ${D};
252
+ border-color: ${Rt};
253
+ }
254
+
255
+ :host(${ge}${pi}) {
256
+ background-color: ${fl};
257
+ color: ${nt};
258
+ border-color: ${bo};
259
+ }
260
+
261
+ :host(${ge}${fi}) {
262
+ background-color: ${Ml};
263
+ color: ${_l};
264
+ border-color: ${Ll};
265
+ }
266
+
267
+ :host(${ge}${W}) {
268
+ background-color: ${D};
269
+ color: ${nt};
270
+ border-color: ${bo};
271
+ }
272
+
273
+ :host(${ge}${gi}) {
274
+ background-color: ${zl};
275
+ color: ${Ol};
276
+ border-color: ${Fl};
277
+ }
278
+
279
+ :host(${ge}${bi}) {
280
+ background-color: ${Rl};
281
+ color: ${ls};
282
+ border-color: ${Hl};
283
+ }
284
+ `;u.partial`
285
+ font-family: ${x};
286
+ font-size: ${E};
287
+ line-height: ${H};
288
+ font-weight: ${M};
289
+ `,u.partial`
290
+ font-family: ${x};
291
+ font-size: ${E};
292
+ line-height: ${H};
293
+ font-weight: ${q};
294
+ `,u.partial`
295
+ font-family: ${x};
296
+ font-size: ${E};
297
+ line-height: ${H};
298
+ font-weight: ${oi};
299
+ `,u.partial`
300
+ font-family: ${x};
301
+ font-size: ${bt};
302
+ line-height: ${Bt};
303
+ font-weight: ${M};
304
+ `,u.partial`
305
+ font-family: ${x};
306
+ font-size: ${Q};
307
+ line-height: ${mt};
308
+ font-weight: ${M};
309
+ `,u.partial`
310
+ font-family: ${x};
311
+ font-size: ${Q};
312
+ line-height: ${mt};
313
+ font-weight: ${q};
314
+ `,u.partial`
315
+ font-family: ${x};
316
+ font-size: ${Q};
317
+ line-height: ${mt};
318
+ font-weight: ${oi};
319
+ `,u.partial`
320
+ font-family: ${x};
321
+ font-size: ${mo};
322
+ line-height: ${ii};
323
+ font-weight: ${M};
324
+ `,u.partial`
325
+ font-family: ${x};
326
+ font-size: ${mo};
327
+ line-height: ${ii};
328
+ font-weight: ${q};
329
+ `,u.partial`
330
+ font-family: ${x};
331
+ font-size: ${Oe};
332
+ line-height: ${si};
333
+ font-weight: ${q};
334
+ `,u.partial`
335
+ font-family: ${x};
336
+ font-size: ${bt};
337
+ line-height: ${Bt};
338
+ font-weight: ${q};
339
+ `,u.partial`
340
+ font-family: ${x};
341
+ font-size: ${bt};
342
+ line-height: ${Bt};
343
+ font-weight: ${oi};
344
+ `,u.partial`
345
+ font-family: ${x};
346
+ font-size: ${Jr};
347
+ line-height: ${rn};
348
+ font-weight: ${q};
349
+ `,u.partial`
350
+ font-family: ${x};
351
+ font-size: ${Zr};
352
+ line-height: ${sn};
353
+ font-weight: ${q};
354
+ `,u.partial`
355
+ font-family: ${x};
356
+ font-size: ${ei};
357
+ line-height: ${on};
358
+ font-weight: ${q};
359
+ `,u.partial`
360
+ font-family: ${x};
361
+ font-size: ${tn};
362
+ line-height: ${nn};
363
+ font-weight: ${q};
364
+ `,u.partial`
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`
375
378
  ${z("inline-flex")}
376
379
 
377
- :host{--size:16px;background-color:${_};border-radius:${xt};border:${Y} solid ${Yt};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${oo}}:host(:active){border-color:${io}}:host(${Ct}:hover){background-color:${to};border-color:${Vi}}:host(${Ct}:active){background-color:${eo};border-color:${Ni}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${we} solid ${Ot};border-radius:${L}}:host(:not([slot='input']):focus-visible)::after{border-color:${Zt}}.indeterminate-indicator,.checked-indicator{color:${Do};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(${Ct})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${Ct}),:host(${Ie}){border-color:${Hi}}:host(${Ct}),:host(${Ie}) .indeterminate-indicator{background-color:${Je}}:host(${Ie}) .indeterminate-indicator{border-radius:${xt};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${Ct}){background-color:${Ze};border-color:${Qt}}:host([disabled]){cursor:unset}:host([disabled]${Ie}) .indeterminate-indicator{background-color:${Qt}}:host([disabled]${Ct}) .checked-indicator{color:${Qt}}`.withBehaviors(lt(p`
378
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${Ct}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${Ct}),:host(${Ie}) .indeterminate-indicator{background-color:FieldText}:host(${Ct}:not([disabled]):hover),:host(${Ie}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ie}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${Ct}) .checked-indicator{color:GrayText}`)),_d=v.partial(`
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(`
379
382
  <svg
380
383
  fill="currentColor"
381
384
  aria-hidden="true"
@@ -386,23 +389,21 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
386
389
  xmlns="http://www.w3.org/2000/svg">
387
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>
388
391
  </svg>
389
- `),Rd=v.partial(`
392
+ `),ah=v.partial(`
390
393
  <span class="indeterminate-indicator"></span>
391
- `);function Dd(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">${at(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${at(o.indeterminateIndicator)}</slot></template>`}const Hd=Dd({checkedIndicator:_d,indeterminateIndicator:Rd}),Vd=Zi.compose({name:`${b.prefix}-checkbox`,template:Hd,styles:Md});Vd.define(b.registry);class Nd extends F{}const jd=p`
392
- ${Zo}
393
-
394
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${R}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ft};line-height:100%;font-size:${G};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Lo}}:host(:active) ::slotted([slot='description']){color:${Mo}}:host(:is([appearance='primary'],[appearance='primary']:hover,[appearance='primary']:active))
395
- ::slotted([slot='description']){color:${Kt}}:host(:is([appearance='subtle'],[appearance='subtle']:hover,[appearance='subtle']:active))
396
- ::slotted([slot='description']),:host([appearance='transparent']) ::slotted([slot='description']){color:${Ft}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${_o}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Ro}}:host(:is([disabled],[disabled][appearance],[disabled-focusable],[disabled-focusable][appearance]))
397
- ::slotted([slot='description']){color:${C}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${Se}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${Jt}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${At}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${dt};line-height:${kt}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}`;function qd(o={}){return v`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?-1:0}">${Ut(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Gt(o)}</template>`}const Wd=qd(),Gd=Nd.compose({name:`${b.prefix}-compound-button`,template:Wd,styles:jd});Gd.define(b.registry);var Ud=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,de=(o,t,e,i)=>{for(var s=i>1?void 0:i?Xd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Ud(t,e,s),s};class Rt extends S{constructor(){super(...arguments),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}de([a],Rt.prototype,"appearance",2),de([a],Rt.prototype,"color",2),de([a],Rt.prototype,"shape",2),de([a],Rt.prototype,"size",2),de([a({converter:nt})],Rt.prototype,"count",2),de([a({attribute:"overflow-count",converter:nt})],Rt.prototype,"overflowCount",2),de([a({attribute:"show-zero",mode:"boolean"})],Rt.prototype,"showZero",2),de([a({mode:"boolean"})],Rt.prototype,"dot",2),Xt(Rt,Wt);const Kd=p`
398
- :host([shape='rounded']){border-radius:${L}}:host([shape='rounded'][size='tiny']),:host([shape='rounded'][size='extra-small']),:host([shape='rounded'][size='small']){border-radius:${xt}}${en}
399
- ${on}
400
- ${sn}
401
- ${tn}
402
-
403
- :host([dot]),:host([dot][appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Yd(o={}){return rn({defaultContent:v`${t=>t.setCount()}`})}const Qd=Yd(),Zd=Rt.compose({name:`${b.prefix}-counter-badge`,template:Qd,styles:Kd});Zd.define(b.registry);const Dt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Jd=Object.defineProperty,th=Object.getOwnPropertyDescriptor,ei=(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 lo extends S{constructor(){super(...arguments),this.type=Dt.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(){mt.enqueue(()=>{this.emitBeforeToggle(),this.type===Dt.alert||this.type===Dt.modal?this.dialog.showModal():this.type===Dt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Dt.alert&&t.target===this.dialog&&this.hide(),!0}}ei([$],lo.prototype,"dialog",2),ei([a({attribute:"aria-describedby"})],lo.prototype,"ariaDescribedby",2),ei([a({attribute:"aria-labelledby"})],lo.prototype,"ariaLabelledby",2),ei([a],lo.prototype,"type",2);const eh=v`<dialog role="${o=>o.type===Dt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Dt.modal||o.type===Dt.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===Dt.alert?t.event.preventDefault():o.hide()}" ${$t("dialog")}><slot></slot></dialog>`,oh=p`
404
- @layer base{:host{--dialog-backdrop:${Qa};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${_};border-radius:${Fr};border:none;box-shadow:${Pc};color:${M};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:${Oc};transition-timing-function:${Ui};opacity:0}::backdrop{transition-timing-function:${Kr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Gi}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(lt(p`
405
- @layer base{dialog{border:${Y} solid ${Ot}}}`)),ih=lo.compose({name:`${b.prefix}-dialog`,template:eh,styles:oh});ih.define(b.registry);var sh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,nh=(o,t,e,i)=>{for(var s=i>1?void 0:i?rh(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&&sh(t,e,s),s};class nn extends S{constructor(){super(...arguments),this.noTitleAction=!1}}nh([a({mode:"boolean",attribute:"no-title-action"})],nn.prototype,"noTitleAction",2);const ah=v.partial(`
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(`
406
407
  <svg
407
408
  fill="currentColor"
408
409
  aria-hidden="true"
@@ -415,81 +416,81 @@ const b=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
415
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"
416
417
  fill="currentColor"
417
418
  ></path>
418
- </svg>`),lh=v`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Dt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${$t("defaultTitleAction")}>${ah}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,ch=p`
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`
419
420
  ${z("grid")}
420
421
 
421
- :host{background:${_};box-sizing:border-box;gap:${U};padding:${ao} ${zc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${_};color:${M};column-gap:8px;display:flex;font-family:${y};font-size:${ke};font-weight:${N};inset-block-start:0;justify-content:space-between;line-height:${Uo};margin-block-end:calc(${U} * -1);margin-block-start:calc(${ao} * -1);padding-block-end:${U};padding-block-start:${ao};position:sticky;z-index:1}.content{box-sizing:border-box;color:${M};font-family:${y};font-size:${O};font-weight:${A};line-height:${R};min-height:32px}.actions{box-sizing:border-box;background:${_};display:flex;flex-direction:column;gap:${U};inset-block-end:0;margin-block-end:calc(${ao} * -1);padding-block-end:${ao};padding-block-start:${Wr};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${U} * -1);padding-block-start:${U}}}`,dh=nn.compose({name:`${b.prefix}-dialog-body`,template:lh,styles:ch});dh.define(b.registry);const co={separator:"separator",presentation:"presentation"},hh=J;var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,ho=(o,t,e,i)=>{for(var s=i>1?void 0:i?ph(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&&uh(t,e,s),s};class We extends S{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??co.separator,this.role!==co.presentation&&(this.elementInternals.ariaOrientation=this.orientation??hh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??co.separator}`),e===co.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaOrientation=this.role!==co.presentation?e:null)}}ho([a],We.prototype,"role",2),ho([a],We.prototype,"orientation",2),ho([a({attribute:"align-content"})],We.prototype,"alignContent",2),ho([a],We.prototype,"appearance",2),ho([a({mode:"boolean"})],We.prototype,"inset",2);function fh(){return v`<slot></slot>`}const gh=fh(),bh=p`
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`
422
423
  ${z("flex")}
423
424
 
424
- :host{contain:content}:host::after,:host::before{align-self:center;background:${so};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${Y}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ft};font-family:${y};font-size:${G};font-weight:${A};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:${Y};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ne}}:host([appearance='strong']) ::slotted(*){color:${M}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${xr}}:host([appearance='brand']) ::slotted(*){color:${Ai}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${tl}}:host([appearance='subtle']) ::slotted(*){color:${et}}`.withBehaviors(lt(p`
425
- :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),mh=We.compose({name:`${b.prefix}-divider`,template:gh,styles:bh});mh.define(b.registry);const vh={above:"above",after:"after",before:"before"},w={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 $h=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Ji=(o,t,e,i)=>{for(var s=i>1?void 0:i?yh(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&&$h(t,e,s),s};class oi extends S{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")&&Lt(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return Lt(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if(Lt(this.elementInternals,"disabled",!!this.input.disabled),Lt(this.elementInternals,"readonly",!!this.input.readOnly),Lt(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[t,e]of Object.entries(w))Lt(this.elementInternals,e,!!this.input.validity[t])}}}Ji([a({attribute:"label-position"})],oi.prototype,"labelPosition",2),Ji([$],oi.prototype,"messageSlot",2),Ji([$],oi.prototype,"slottedInputs",2);const xh=p.partial`:is([state--disabled], :state(disabled))`,kh=p.partial`:is([state--focus-visible], :state(focus-visible))`,wh=p.partial`:is([state--${w.badInput}], :state(${w.badInput}))`,Ch=p.partial`:is([state--${w.customError}], :state(${w.customError}))`,Sh=p.partial`:is([state--${w.patternMismatch}], :state(${w.patternMismatch}))`,Ih=p.partial`:is([state--${w.rangeOverflow}], :state(${w.rangeOverflow}))`,Ph=p.partial`:is([state--${w.rangeUnderflow}], :state(${w.rangeUnderflow}))`,Bh=p.partial`:is([state--${w.stepMismatch}], :state(${w.stepMismatch}))`,zh=p.partial`:is([state--${w.tooLong}], :state(${w.tooLong}))`,Th=p.partial`:is([state--${w.tooShort}], :state(${w.tooShort}))`,Fh=p.partial`:is([state--${w.typeMismatch}], :state(${w.typeMismatch}))`,Oh=p.partial`:is([state-${w.valid}], :state(${w.valid}))`,Ah=p.partial`:is([state--${w.valueMissing}], :state(${w.valueMissing}))`,Eh=p`
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`
426
427
  ${z("inline-grid")}
427
428
 
428
- :host{align-items:center;cursor:pointer;gap:0 ${ae};justify-items:start;padding:${U}}:has([slot='message']){color:${M};row-gap:${U}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ae}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Ko}}: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:${Ko};grid-area:message}:host(${kh}:focus-within){border-radius:${L};outline:${we} solid ${Zt}}::slotted(label){display:inline-flex;color:${M};cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};line-height:${R};user-select:none}:host([size='small']) ::slotted(label){font-size:${G};line-height:${ht}}:host([size='large']) ::slotted(label){font-size:${dt};line-height:${kt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${N}}:host(${xh}) ::slotted(label){color:${M};cursor:default}::slotted([flag]){display:none}:host(${wh}) ::slotted([flag='${w.badInput}']),:host(${Ch}) ::slotted([flag='${w.customError}']),:host(${Sh}) ::slotted([flag='${w.patternMismatch}']),:host(${Ih}) ::slotted([flag='${w.rangeOverflow}']),:host(${Ph}) ::slotted([flag='${w.rangeUnderflow}']),:host(${Bh}) ::slotted([flag='${w.stepMismatch}']),:host(${zh}) ::slotted([flag='${w.tooLong}']),:host(${Th}) ::slotted([flag='${w.tooShort}']),:host(${Fh}) ::slotted([flag='${w.typeMismatch}']),:host(${Ah}) ::slotted([flag='${w.valueMissing}']),:host(${Oh}) ::slotted([flag='${w.valid}']){display:block}`,Lh=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)}" ${ha({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:ye()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${rt({property:"messageSlot",filter:ye("[flag]")})}></slot></template>`,Mh=oi.compose({name:`${b.prefix}-field`,template:Lh,styles:Eh,shadowOptions:{delegatesFocus:!0}});Mh.define(b.registry);var _h=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,uo=(o,t,e,i)=>{for(var s=i>1?void 0:i?Rh(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&&_h(t,e,s),s};class Ge extends S{}uo([a({mode:"boolean"})],Ge.prototype,"block",2),uo([a({mode:"boolean"})],Ge.prototype,"bordered",2),uo([a({mode:"boolean"})],Ge.prototype,"shadow",2),uo([a],Ge.prototype,"fit",2),uo([a],Ge.prototype,"shape",2);const Dh=v`<slot></slot>`,Hh=p`
429
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${Y} solid ${so}}: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:${Xo}}:host([shape='circular']) ::slotted(img){border-radius:${ct}}:host([shape='rounded']) ::slotted(img){border-radius:${L}}`,Vh=Ge.compose({name:`${b.prefix}-image`,template:Dh,styles:Hh});Vh.define(b.registry);var Nh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,ii=(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 po extends S{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}ii([a],po.prototype,"size",2),ii([a],po.prototype,"weight",2),ii([a({mode:"boolean"})],po.prototype,"disabled",2),ii([a({mode:"boolean"})],po.prototype,"required",2);const qh=p`
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`
430
431
  ${z("inline-flex")}
431
432
 
432
- :host{color:${M};cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};line-height:${R};user-select:none}.asterisk{color:${Sr};margin-inline-start:${Jt}}:host([size='small']){font-size:${G};line-height:${ht}}:host([size='large']){font-size:${dt};line-height:${kt}}:host([size='large']),:host([weight='semibold']){font-weight:${N}}:host([disabled]),:host([disabled]) .asterisk{color:${C}}`;function Wh(){return v`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Gh=Wh(),Uh=po.compose({name:`${b.prefix}-label`,template:Gh,styles:qh});Uh.define(b.registry);var Xh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,an=(o,t,e,i)=>{for(var s=i>1?void 0:i?Kh(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&&Xh(t,e,s),s};class ts extends Et{constructor(){super(...arguments),this.inline=!1}}an([a],ts.prototype,"appearance",2),an([a({mode:"boolean"})],ts.prototype,"inline",2);const Yh=p`
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`
433
434
  ${z("inline")}
434
435
 
435
- :host{box-sizing:border-box;background-color:transparent;color:${La};cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${Y};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Ma}}:host(:active){color:${_a}}:host([appearance='subtle']:hover){color:${Da}}:host([appearance='subtle']:active){color:${Ha}}}:host([appearance='subtle']){color:${Ra}}: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}`.withBehaviors(lt(p`
436
- :host{color:LinkText}`));function Qh(){return v`<template tabindex="0" @click="${o=>o.clickHandler()}" @keypress="${(o,t)=>o.keypressHandler(t.event)}"><slot></slot></template>`}const Zh=Qh(),Jh=ts.compose({name:`${b.prefix}-link`,template:Zh,styles:Yh});Jh.define(b.registry);class tu extends F{}const eu=Qi({end:v.partial(`
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(`
437
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">
438
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>
439
440
  </svg>
440
- `)}),ou=tu.compose({name:`${b.prefix}-menu-button`,template:eu,styles:Zo});ou.define(b.registry);function si(o){return o.split("-")[1]}function ln(o){return o==="y"?"height":"width"}function Pe(o){return o.split("-")[0]}function ri(o){return["top","bottom"].includes(Pe(o))?"x":"y"}function cn(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=ri(t),h=ln(c),d=i[h]/2-s[h]/2,l=c==="x";let u;switch(Pe(t)){case"top":u={x:r,y:i.y-s.height};break;case"bottom":u={x:r,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:n};break;case"left":u={x:i.x-s.width,y:n};break;default:u={x:i.x,y:i.y}}switch(si(t)){case"start":u[c]-=d*(e&&l?-1:1);break;case"end":u[c]+=d*(e&&l?-1:1)}return u}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:u}=cn(d,i,h),f=i,g={},m=0;for(let x=0;x<c.length;x++){const{name:I,fn:T}=c[x],{x:B,y:D,data:Q,reset:Z}=await T({x:l,y:u,initialPlacement:i,placement:f,strategy:s,middlewareData:g,rects:d,platform:n,elements:{reference:o,floating:t}});l=B??l,u=D??u,g={...g,[I]:{...g[I],...Q}},Z&&m<=50&&(m++,typeof Z=="object"&&(Z.placement&&(f=Z.placement),Z.rects&&(d=Z.rects===!0?await n.getElementRects({reference:o,floating:t,strategy:s}):Z.rects),{x:l,y:u}=cn(d,f,h)),x=-1)}return{x:l,y:u,placement:f,strategy:s,middlewareData:g}};function su(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 es(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function fo(o,t){var e;t===void 0&&(t={});const{x:i,y:s,platform:r,rects:n,elements:c,strategy:h}=o,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=t,m=su(g),x=c[f?u==="floating"?"reference":"floating":u],I=es(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(x)))==null||e?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:h})),T=u==="floating"?{...n.floating,x:i,y:s}:n.reference,B=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),D=await(r.isElement==null?void 0:r.isElement(B))&&await(r.getScale==null?void 0:r.getScale(B))||{x:1,y:1},Q=es(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:B,strategy:h}):T);return{top:(I.top-Q.top+m.top)/D.y,bottom:(Q.bottom-I.bottom+m.bottom)/D.y,left:(I.left-Q.left+m.left)/D.x,right:(Q.right-I.right+m.right)/D.x}}const os=Math.min,Be=Math.max;function dn(o,t,e){return Be(o,os(t,e))}const hn=["top","right","bottom","left"];hn.reduce((o,t)=>o.concat(t,t+"-start",t+"-end"),[]);const ru={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(o){return o.replace(/left|right|bottom|top/g,t=>ru[t])}function nu(o,t,e){e===void 0&&(e=!1);const i=si(o),s=ri(o),r=ln(s);let n=s==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(n=ni(n)),{main:n,cross:ni(n)}}const au={start:"end",end:"start"};function is(o){return o.replace(/start|end/g,t=>au[t])}const un=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(t){var e;const{placement:i,middlewareData:s,rects:r,initialPlacement:n,platform:c,elements:h}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...x}=o,I=Pe(i),T=Pe(n)===n,B=await(c.isRTL==null?void 0:c.isRTL(h.floating)),D=u||(T||!m?[ni(n)]:function(pt){const jt=ni(pt);return[is(pt),jt,is(jt)]}(n));u||g==="none"||D.push(...function(pt,jt,me,se){const qt=si(pt);let ft=function(Ke,gi,Vn){const gs=["left","right"],bs=["right","left"],Nn=["top","bottom"],jn=["bottom","top"];switch(Ke){case"top":case"bottom":return Vn?gi?bs:gs:gi?gs:bs;case"left":case"right":return gi?Nn:jn;default:return[]}}(Pe(pt),me==="start",se);return qt&&(ft=ft.map(Ke=>Ke+"-"+qt),jt&&(ft=ft.concat(ft.map(is)))),ft}(n,m,g,B));const Q=[n,...D],Z=await fo(t,x),be=[];let ie=((e=s.flip)==null?void 0:e.overflows)||[];if(d&&be.push(Z[I]),l){const{main:pt,cross:jt}=nu(i,r,B);be.push(Z[pt],Z[jt])}if(ie=[...ie,{placement:i,overflows:be}],!be.every(pt=>pt<=0)){var Xe,ps;const pt=(((Xe=s.flip)==null?void 0:Xe.index)||0)+1,jt=Q[pt];if(jt)return{data:{index:pt,overflows:ie},reset:{placement:jt}};let me=(ps=ie.filter(se=>se.overflows[0]<=0).sort((se,qt)=>se.overflows[1]-qt.overflows[1])[0])==null?void 0:ps.placement;if(!me)switch(f){case"bestFit":{var fs;const se=(fs=ie.map(qt=>[qt.placement,qt.overflows.filter(ft=>ft>0).reduce((ft,Ke)=>ft+Ke,0)]).sort((qt,ft)=>qt[1]-ft[1])[0])==null?void 0:fs[0];se&&(me=se);break}case"initialPlacement":me=n}if(i!==me)return{reset:{placement:me}}}return{}}}};function pn(o,t){return{top:o.top-t.height,right:o.right-t.width,bottom:o.bottom-t.height,left:o.left-t.width}}function fn(o){return hn.some(t=>o[t]>=0)}const lu=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=pn(await fo(t,{...i,elementContext:"reference"}),s.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:fn(r)}}}case"escaped":{const r=pn(await fo(t,{...i,altBoundary:!0}),s.floating);return{data:{escapedOffsets:r,escaped:fn(r)}}}default:return{}}}}};function cu(o){return o==="x"?"y":"x"}const du=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:s}=t,{mainAxis:r=!0,crossAxis:n=!1,limiter:c={fn:I=>{let{x:T,y:B}=I;return{x:T,y:B}}},...h}=o,d={x:e,y:i},l=await fo(t,h),u=ri(Pe(s)),f=cu(u);let g=d[u],m=d[f];if(r){const I=u==="y"?"bottom":"right";g=dn(g+l[u==="y"?"top":"left"],g,g-l[I])}if(n){const I=f==="y"?"bottom":"right";m=dn(m+l[f==="y"?"top":"left"],m,m-l[I])}const x=c.fn({...t,[u]:g,[f]:m});return{...x,data:{x:x.x-e,y:x.y-i}}}}},gn=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 fo(t,c),d=Pe(e),l=si(e),u=ri(e)==="x",{width:f,height:g}=i.floating;let m,x;d==="top"||d==="bottom"?(m=d,x=l===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(x=d,m=l==="end"?"top":"bottom");const I=g-h[m],T=f-h[x];let B=I,D=T;if(u?D=os(f-h.right-h.left,T):B=os(g-h.bottom-h.top,I),!t.middlewareData.shift&&!l){const Z=Be(h.left,0),be=Be(h.right,0),ie=Be(h.top,0),Xe=Be(h.bottom,0);u?D=f-2*(Z!==0||be!==0?Z+be:Be(h.left,h.right)):B=g-2*(ie!==0||Xe!==0?ie+Xe:Be(h.top,h.bottom))}await n({...t,availableWidth:D,availableHeight:B});const Q=await s.getDimensions(r.floating);return f!==Q.width||g!==Q.height?{reset:{rects:!0}}:{}}}};function ut(o){var t;return((t=o.ownerDocument)==null?void 0:t.defaultView)||window}function Ht(o){return ut(o).getComputedStyle(o)}const bn=Math.min,go=Math.max,ai=Math.round;function mn(o){const t=Ht(o);let e=parseFloat(t.width),i=parseFloat(t.height);const s=o.offsetWidth,r=o.offsetHeight,n=ai(e)!==s||ai(i)!==r;return n&&(e=s,i=r),{width:e,height:i,fallback:n}}function he(o){return $n(o)?(o.nodeName||"").toLowerCase():""}let li;function vn(){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 Vt(o){return o instanceof ut(o).HTMLElement}function St(o){return o instanceof ut(o).Element}function $n(o){return o instanceof ut(o).Node}function yn(o){return typeof ShadowRoot>"u"?!1:o instanceof ut(o).ShadowRoot||o instanceof ShadowRoot}function ci(o){const{overflow:t,overflowX:e,overflowY:i,display:s}=Ht(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(s)}function hu(o){return["table","td","th"].includes(he(o))}function ss(o){const t=/firefox/i.test(vn()),e=Ht(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 rs(){return/^((?!chrome|android).)*safari/i.test(vn())}function ns(o){return["html","body","#document"].includes(he(o))}function xn(o){return St(o)?o:o.contextElement}const kn={x:1,y:1};function Ue(o){const t=xn(o);if(!Vt(t))return kn;const e=t.getBoundingClientRect(),{width:i,height:s,fallback:r}=mn(t);let n=(r?ai(e.width):e.width)/i,c=(r?ai(e.height):e.height)/s;return n&&Number.isFinite(n)||(n=1),c&&Number.isFinite(c)||(c=1),{x:n,y:c}}function ze(o,t,e,i){var s,r;t===void 0&&(t=!1),e===void 0&&(e=!1);const n=o.getBoundingClientRect(),c=xn(o);let h=kn;t&&(i?St(i)&&(h=Ue(i)):h=Ue(o));const d=c?ut(c):window,l=rs()&&e;let u=(n.left+(l&&((s=d.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,f=(n.top+(l&&((r=d.visualViewport)==null?void 0:r.offsetTop)||0))/h.y,g=n.width/h.x,m=n.height/h.y;if(c){const x=ut(c),I=i&&St(i)?ut(i):i;let T=x.frameElement;for(;T&&i&&I!==x;){const B=Ue(T),D=T.getBoundingClientRect(),Q=getComputedStyle(T);D.x+=(T.clientLeft+parseFloat(Q.paddingLeft))*B.x,D.y+=(T.clientTop+parseFloat(Q.paddingTop))*B.y,u*=B.x,f*=B.y,g*=B.x,m*=B.y,u+=D.x,f+=D.y,T=ut(T).frameElement}}return{width:g,height:m,top:f,right:u+g,bottom:f+m,left:u,x:u,y:f}}function ue(o){return(($n(o)?o.ownerDocument:o.document)||window.document).documentElement}function di(o){return St(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function wn(o){return ze(ue(o)).left+di(o).scrollLeft}function bo(o){if(he(o)==="html")return o;const t=o.assignedSlot||o.parentNode||yn(o)&&o.host||ue(o);return yn(t)?t.host:t}function Cn(o){const t=bo(o);return ns(t)?t.ownerDocument.body:Vt(t)&&ci(t)?t:Cn(t)}function mo(o,t){var e;t===void 0&&(t=[]);const i=Cn(o),s=i===((e=o.ownerDocument)==null?void 0:e.body),r=ut(i);return s?t.concat(r,r.visualViewport||[],ci(i)?i:[]):t.concat(i,mo(i))}function Sn(o,t,e){let i;if(t==="viewport")i=function(n,c){const h=ut(n),d=ue(n),l=h.visualViewport;let u=d.clientWidth,f=d.clientHeight,g=0,m=0;if(l){u=l.width,f=l.height;const x=rs();(!x||x&&c==="fixed")&&(g=l.offsetLeft,m=l.offsetTop)}return{width:u,height:f,x:g,y:m}}(o,e);else if(t==="document")i=function(n){const c=ue(n),h=di(n),d=n.ownerDocument.body,l=go(c.scrollWidth,c.clientWidth,d.scrollWidth,d.clientWidth),u=go(c.scrollHeight,c.clientHeight,d.scrollHeight,d.clientHeight);let f=-h.scrollLeft+wn(n);const g=-h.scrollTop;return Ht(d).direction==="rtl"&&(f+=go(c.clientWidth,d.clientWidth)-l),{width:l,height:u,x:f,y:g}}(ue(o));else if(St(t))i=function(n,c){const h=ze(n,!0,c==="fixed"),d=h.top+n.clientTop,l=h.left+n.clientLeft,u=Vt(n)?Ue(n):{x:1,y:1};return{width:n.clientWidth*u.x,height:n.clientHeight*u.y,x:l*u.x,y:d*u.y}}(t,e);else{const n={...t};if(rs()){var s,r;const c=ut(o);n.x-=((s=c.visualViewport)==null?void 0:s.offsetLeft)||0,n.y-=((r=c.visualViewport)==null?void 0:r.offsetTop)||0}i=n}return es(i)}function In(o,t){return Vt(o)&&Ht(o).position!=="fixed"?t?t(o):o.offsetParent:null}function Pn(o,t){const e=ut(o);let i=In(o,t);for(;i&&hu(i)&&Ht(i).position==="static";)i=In(i,t);return i&&(he(i)==="html"||he(i)==="body"&&Ht(i).position==="static"&&!ss(i))?e:i||function(s){let r=bo(s);for(;Vt(r)&&!ns(r);){if(ss(r))return r;r=bo(r)}return null}(o)||e}function uu(o,t,e){const i=Vt(t),s=ue(t),r=ze(o,!0,e==="fixed",t);let n={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(i||!i&&e!=="fixed")if((he(t)!=="body"||ci(s))&&(n=di(t)),Vt(t)){const h=ze(t,!0);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else s&&(c.x=wn(s));return{x:r.left+n.scrollLeft-c.x,y:r.top+n.scrollTop-c.y,width:r.width,height:r.height}}const pu={getClippingRect:function(o){let{element:t,boundary:e,rootBoundary:i,strategy:s}=o;const r=e==="clippingAncestors"?function(d,l){const u=l.get(d);if(u)return u;let f=mo(d).filter(I=>St(I)&&he(I)!=="body"),g=null;const m=Ht(d).position==="fixed";let x=m?bo(d):d;for(;St(x)&&!ns(x);){const I=Ht(x),T=ss(x);(m?T||g:T||I.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=I:f=f.filter(B=>B!==x),x=bo(x)}return l.set(d,f),f}(t,this._c):[].concat(e),n=[...r,i],c=n[0],h=n.reduce((d,l)=>{const u=Sn(t,l,s);return d.top=go(u.top,d.top),d.right=bn(u.right,d.right),d.bottom=bn(u.bottom,d.bottom),d.left=go(u.left,d.left),d},Sn(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=Vt(e),r=ue(e);if(e===r)return t;let n={scrollLeft:0,scrollTop:0},c={x:1,y:1};const h={x:0,y:0};if((s||!s&&i!=="fixed")&&((he(e)!=="body"||ci(r))&&(n=di(e)),Vt(e))){const d=ze(e);c=Ue(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:St,getDimensions:function(o){return Vt(o)?mn(o):o.getBoundingClientRect()},getOffsetParent:Pn,getDocumentElement:ue,getScale:Ue,async getElementRects(o){let{reference:t,floating:e,strategy:i}=o;const s=this.getOffsetParent||Pn,r=this.getDimensions;return{reference:uu(t,await s(e),i),floating:{x:0,y:0,...await r(e)}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>Ht(o).direction==="rtl"};function Bn(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?[...St(o)?mo(o):o.contextElement?mo(o.contextElement):[],...mo(t)]:[];d.forEach(g=>{h&&g.addEventListener("scroll",e,{passive:!0}),r&&g.addEventListener("resize",e)});let l,u=null;if(n){let g=!0;u=new ResizeObserver(()=>{g||e(),g=!1}),St(o)&&!c&&u.observe(o),St(o)||!o.contextElement||c||u.observe(o.contextElement),u.observe(t)}let f=c?ze(o):null;return c&&function g(){const m=ze(o);!f||m.x===f.x&&m.y===f.y&&m.width===f.width&&m.height===f.height||e(),f=m,l=requestAnimationFrame(g)}(),e(),()=>{var g;d.forEach(m=>{h&&m.removeEventListener("scroll",e),r&&m.removeEventListener("resize",e)}),(g=u)==null||g.disconnect(),u=null,c&&cancelAnimationFrame(l)}}const zn=(o,t,e)=>{const i=new Map,s={platform:pu,...e},r={...s.platform,_c:i};return iu(o,t,{...s,platform:r})},ot={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ot.menuitem+"",ot.menuitemcheckbox+"",ot.menuitemradio+"";var fu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,Te=(o,t,e,i)=>{for(var s=i>1?void 0:i?gu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&fu(t,e,s),s};class It extends S{constructor(){super(...arguments),this.role=ot.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Ve:case Eo:return this.invoke(),!1;case De:return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case ar:if(this.expanded)return this.closeSubMenu(),!1;break;case Re:if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.closeSubMenu=()=>{this.expanded=!1,this.focus()},this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ot.menuitemcheckbox:this.checked=!this.checked;break;case ot.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case ot.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)&&mt.enqueue(()=>{this.cleanup=Bn(this,this.submenuContainer,async()=>{const t=["left-start","right-start"],{x:e,y:i}=await zn(this,this.submenuContainer,{middleware:[du(),gn({apply:({availableWidth:s,rects:r})=>{s<r.floating.width&&t.push("bottom-end","top-end")}}),un({fallbackPlacements:t})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:`${e}px`,position:"fixed",top:`${i}px`}),this.submenuLoaded()})})}}Te([a({mode:"boolean"})],It.prototype,"disabled",2),Te([a({mode:"boolean"})],It.prototype,"expanded",2),Te([a],It.prototype,"role",2),Te([a({mode:"boolean"})],It.prototype,"checked",2),Te([a({mode:"boolean"})],It.prototype,"hidden",2),Te([$],It.prototype,"slottedSubmenu",2),Te([$],It.prototype,"submenu",2),Xt(It,Wt);const bu=p`
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`
441
442
  ${z("grid")}
442
443
 
443
- :host{grid-template-columns:20px 20px auto 20px;align-items:center;grid-gap:4px;height:32px;background:${_};font:${A} ${O} / ${R} ${y};border-radius:${L};color:${Ft};padding:0 10px;cursor:pointer;overflow:visible;contain:layout}:host(:hover){background:${Ei}}.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:${Ft}}.expand-collapse-glyph-container,::slotted([slot='start']),::slotted([slot='end']){height:32px;font-size:${ke};width:fit-content}.input-container{width:20px}::slotted([slot='end']){color:${et};font:${A} ${G} / ${ht} ${y};white-space:nowrap;grid-column:4 / span 1;justify-self:flex-end}.expand-collapse-glyph-container{grid-column:4 / span 1;justify-self:flex-end}:host(:hover) .input-container,:host(:hover) .expand-collapse-glyph-container,:host(:hover) .content{color:${Lo}}:host([icon]:hover) ::slotted([slot='start']){color:${ur}}:host(:active){background-color:${br}}:host(:active) .input-container,:host(:active) .expand-collapse-glyph-container,:host(:active) .content{color:${Mo}}:host(:active) ::slotted([slot='start']){color:${pr}}:host([disabled]){background-color:${Ze}}:host([disabled]) .content,:host([disabled]) .expand-collapse-glyph-container,:host([disabled]) ::slotted([slot='end']),:host([disabled]) ::slotted([slot='start']){color:${C}}:host([data-indent]){display:grid}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']){display:grid}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1}:host([data-indent='2'][aria-haspopup='menu']) .expand-collapse-glyph-container{grid-column:5 / span 1}:host([data-indent='1']) .content{grid-column:2 / span 1}:host([data-indent='1'][role='menuitemcheckbox']) .content,:host([data-indent='1'][role='menuitemradio']) .content{grid-column:auto / span 1}:host([icon]) ::slotted([slot='end']),:host([data-indent='1']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}:host([data-indent='2']){display:grid;grid-template-columns:20px 20px auto auto}:host([data-indent='2']) .content{grid-column:3 / span 1}:host([data-indent='2']) .input-container{grid-column:1 / span 1}:host([data-indent='2']) ::slotted([slot='start']){grid-column:2 / span 1}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){grid-template-columns:20px 20px auto auto 20px}:host([aria-haspopup='menu']) ::slotted([slot='end']){grid-column:3 / span 1;justify-self:flex-end}:host([data-indent='2'][aria-haspopup='menu']) ::slotted([slot='end']){grid-column:4 / span 1;justify-self:flex-end}`,Tn=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>'),mu=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!==ot.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)}">${zi(t=>t.role===ot.menuitemcheckbox,v`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${at(o.checkboxIndicator)}</slot></span></div>`)} ${zi(t=>t.role===ot.menuitemradio,v`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${at(o.radioIndicator)}</slot></span></div>`)}</div>${Ut(o)}<span class="content" part="content"><slot></slot></span>${Gt(o)} ${zi(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">${at(o.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${t=>!t.expanded}" class="submenu-container" part="submenu-container" ${$t("submenuContainer")}><slot name="submenu" ${rt({property:"slottedSubmenu",filter:ye("[role='menu']")})}></slot></span></template>`}const $u=vu({checkboxIndicator:Tn,expandCollapseGlyph:mu,radioIndicator:Tn}),yu=It.compose({name:`${b.prefix}-menu-item`,template:$u,styles:bu});yu.define(b.registry);var xu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,wu=(o,t,e,i)=>{for(var s=i>1?void 0:i?ku(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&&xu(t,e,s),s};const as=class us extends S{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&nr(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===ot.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===ot.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=t=>t instanceof It||nr(t)&&t.getAttribute("role")in us.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),mt.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 _e:this.setFocus(this.focusIndex+1,1);return;case He:this.setFocus(this.focusIndex-1,-1);return;case Oo:this.setFocus(this.menuItems.length-1,-1);return;case Ao: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),k.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e&&e!==ot.menuitem?i?2:1:i?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(r=>k.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=us.elementIndent(d);return Math.max(h,l)},0);r instanceof It&&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}}};as.focusableElementRoles=ot,wu([$],as.prototype,"items",2);let Cu=as;const Su=p`
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`
444
445
  ${z("flex")}
445
446
 
446
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${Ot};border-radius:${L};box-shadow:${Nr};padding:4px;row-gap:2px}`;function Iu(){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 ${rt("items")}></slot></template>`}const Pu=Iu(),Bu=Cu.compose({name:`${b.prefix}-menu-list`,template:Pu,styles:Su});Bu.define(b.registry);var zu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,Fe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Tu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&zu(t,e,s),s};class pe extends S{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.open=!1,this.slottedMenuList=[],this.slottedTriggers=[],this.toggleMenu=()=>{this.open?this.closeMenu():this.openMenu()},this.closeMenu=()=>{this.open=!1,this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=t=>{this.open=!0,t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.setPositioningTask=()=>{this.setPositioning()},this.handleTriggerKeydown=t=>{if(t.defaultPrevented)return;switch(t.key){case Eo:case Ve:t.preventDefault(),this.toggleMenu(),this.open&&this.focusMenuList();break;default:return!0}},this.handleDocumentClick=t=>{t&&!t.composedPath().includes(this._menuList)&&!t.composedPath().includes(this._trigger)&&this.closeMenu()}}connectedCallback(){super.connectedCallback(),mt.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&&mt.enqueue(()=>{this._menuList.focus()})}focusTrigger(){!this.open&&this._trigger&&mt.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&&mt.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=Bn(this,this.positioningContainer,async()=>{const{middlewareData:t,x:e,y:i}=await zn(this._trigger,this.positioningContainer,{placement:"bottom",strategy:"fixed",middleware:[un(),gn({apply:({availableHeight:s,rects:r})=>{this.positioningContainer?.style&&Object.assign(this.positioningContainer.style,{maxHeight:`${s}px`,width:`${r.reference.width}px`})}}),lu()]});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 ar:t.preventDefault(),this.open&&(this.closeMenu(),this.focusTrigger());break;case $a:this.open&&this.closeMenu(),t.shiftKey&&this.focusTrigger();default:return!0}}}Fe([$,a({attribute:"open-on-hover",mode:"boolean"})],pe.prototype,"openOnHover",2),Fe([$,a({attribute:"open-on-context",mode:"boolean"})],pe.prototype,"openOnContext",2),Fe([$,a({attribute:"close-on-scroll",mode:"boolean"})],pe.prototype,"closeOnScroll",2),Fe([$,a({attribute:"persist-on-item-click",mode:"boolean"})],pe.prototype,"persistOnItemClick",2),Fe([$,a({mode:"boolean"})],pe.prototype,"open",2),Fe([$],pe.prototype,"slottedMenuList",2),Fe([$],pe.prototype,"slottedTriggers",2);const Fu=p`
447
- :host{position:relative;z-index:var(--z-index-menu,1)}.positioning-container{position:fixed;top:0;left:0;transform:translate(0,0)}`;function Ou(){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" ${rt({property:"slottedTriggers",filter:ye()})}></slot><span ${$t("positioningContainer")} part="positioning-container" class="positioning-container" ?hidden="${o=>!o.open}"><slot ${rt({property:"slottedMenuList",filter:ye()})}></slot></span></template>`}const Au=Ou(),Eu=pe.compose({name:`${b.prefix}-menu`,template:Au,styles:Fu});Eu.define(b.registry);var Lu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Oe=(o,t,e,i)=>{for(var s=i>1?void 0:i?Mu(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&&Lu(t,e,s),s};class fe extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,i=this.value??0,s=e-t;return s===0?0:Math.fround((i-t)/s*100)}}Oe([a],fe.prototype,"thickness",2),Oe([a],fe.prototype,"shape",2),Oe([a({attribute:"validation-state"})],fe.prototype,"validationState",2),Oe([a({converter:nt})],fe.prototype,"value",2),Oe([a({converter:nt})],fe.prototype,"min",2),Oe([a({converter:nt})],fe.prototype,"max",2),Oe([Gn],fe.prototype,"percentComplete",1);const _u=p`
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`
448
449
  ${z("block")}
449
450
 
450
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${Ho};border-radius:${L};contain:content}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${qi}}.indicator{background-color:${Je};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(
451
- to right,${Ho} 0%,${yt} 50%,${Ho} 100%
452
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Cr}}:host([validation-state='warning']) .indicator{background-color:${Br}}:host([validation-state='success']) .indicator{background-color:${Pr}}@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(lt(p`
453
- :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Ru(){return v`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Du=Ru(),Hu=fe.compose({name:`${b.prefix}-progress-bar`,template:Du,styles:_u});Hu.define(b.registry);const Fn="form-associated-proxy",On="ElementInternals",An=On in window&&"setFormValue"in window[On].prototype,En=new WeakMap;function Ln(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 An}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 ys}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),mt.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),mt.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!An)return null;let e=En.get(this);return e||(e=this.attachInternals(),En.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",Fn),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Fn)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,i){this.elementInternals&&this.elementInternals.setFormValue(e,i||e)}_keypressHandler(e){switch(e.key){case Ve:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(e){e.stopPropagation()}};return a({mode:"boolean"})(t.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),a({attribute:"current-value"})(t.prototype,"currentValue"),a(t.prototype,"name"),a({mode:"boolean"})(t.prototype,"required"),$(t.prototype,"value"),t}function Vu(o){class t extends Ln(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:Ks})(e.prototype,"currentChecked"),$(e.prototype,"defaultChecked"),$(e.prototype,"checked"),e}class Nu extends S{}class ju extends Vu(Nu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var qu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Mn=(o,t,e,i)=>{for(var s=i>1?void 0:i?Wu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&qu(t,e,s),s};class ee extends ju{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 Eo:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}Mn([$],ee.prototype,"name",2),Mn([$],ee.prototype,"defaultSlottedNodes",2);const _n=J;var Gu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,ge=(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&&Gu(t,e,s),s};class oe extends S{constructor(){super(...arguments),this.stacked=!1,this.orientation=_n.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(i=>{i instanceof ee&&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 ee&&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 ee&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&i===De,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===Re,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key)){this.moveRightOffGroup();return}else i===e.length&&(i=0);for(;i<e.length&&e.length>1;)if(e[i].disabled){if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}else{this.moveToRadioByIndex(e,i);break}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key)){this.moveLeftOffGroup();return}for(;i>=0&&e.length>1;)if(e[i].disabled){if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}else{this.moveToRadioByIndex(e,i);break}},this.keydownHandler=t=>{const e=t.key;if(e in ya&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Ve:{this.checkFocusedRadio();break}case De:case _e:{this.direction===gt.ltr?this.moveRight(t):this.moveLeft(t);break}case Re:case He:{this.direction===gt.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t instanceof ee&&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=lr(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof ee&&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 ee&&(this.name!==void 0&&s.setAttribute("name",this.name),this.value&&this.value===s.value?(this.selectedRadio=s,this.focusedRadio=s,s.checked=!0,s.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||s.setAttribute("tabindex","-1"),s.checked=!1),s.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const s=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),r=s!==null?s.length:0;if(r>0&&!i){const n=s[r-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ge([a({mode:"boolean"})],oe.prototype,"stacked",2),ge([a({attribute:"readonly",mode:"boolean"})],oe.prototype,"readOnly",2),ge([a({attribute:"disabled",mode:"boolean"})],oe.prototype,"disabled",2),ge([a],oe.prototype,"name",2),ge([a],oe.prototype,"value",2),ge([a],oe.prototype,"orientation",2),ge([$],oe.prototype,"childItems",2),ge([$],oe.prototype,"slottedRadioButtons",2);const Xu=p`
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`
454
455
  ${z("flex")}
455
456
 
456
- :host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}::slotted([slot='label']){color:${M};padding:${U} ${At} ${U} ${Jt};font:${A} ${O} / ${R} ${y};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${At}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${At};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function Ku(){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===_n.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${rt({property:"slottedRadioButtons",filter:ye("[role=radio]")})}></slot></div></template>`}const Yu=Ku(),Qu=oe.compose({name:`${b.prefix}-radio-group`,template:Yu,styles:Xu});Qu.define(b.registry);const Zu=p`
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`
457
458
  ${z("inline-grid")}
458
459
 
459
- :host{grid-auto-flow:column;grid-template-columns:max-content;gap:${Jt};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${et});padding-inline-end:${At};--control-border-color:${Yt};--checked-indicator-background-color:${hr};--state-color:${et}}:host([disabled]){--control-border-color:${C};--checked-indicator-background-color:${C};--state-color:${C}}.label{cursor:pointer;font-family:${y};font-size:${O};font-weight:${A};line-height:${R}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${Yt});border-radius:${ct};display:flex;height:16px;justify-content:center;margin:${U} ${At};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${ct};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${Ft}}:host(:focus-visible){border-radius:${xt};box-shadow:0 0 0 3px ${Zt};outline:1px solid ${jo}}:host(:hover) .control{border-color:${oo}}:host(:active) .control{border-color:${io}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${Yt})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${hr})}:host([aria-checked='true']:hover) .control{border-color:${Vi}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${Vi}}:host([aria-checked='true']:active) .control{border-color:${Ni}}:host([aria-checked='true']:active) .checked-indicator{background:${pr}}:host([disabled]){color:${C};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${C}}:host([disabled]) .checked-indicator{background:${C}}`.withBehaviors(lt(p`
460
- :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 Ju(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">${at(o.checkedIndicator)}</slot></div><label part="label" class="${t=>["label",!t.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${rt({property:"defaultSlottedNodes",filter:cr})}></slot></label></template>`}const tp=Ju({checkedIndicator:v`<div part="checked-indicator" class="checked-indicator"></div>`}),ep=ee.compose({name:`${b.prefix}-radio`,template:tp,styles:Zu});ep.define(b.registry);const op={singleValue:"single-value"};class ip extends S{}class sp extends Ln(ip){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function Rn(o,t,e,i){let s=Fi(0,1,(o-t)/(e-t));return i===gt.rtl&&(s=1-s),s}var rp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,X=(o,t,e,i)=>{for(var s=i>1?void 0:i?np(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&rp(t,e,s),s};class q extends sp{constructor(){super(...arguments),this.direction=gt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.orientation=J.horizontal,this.mode=op.singleValue,this.keypressHandler=t=>{if(!(this.readOnly||this.disabled)){if(t.key===Ao)t.preventDefault(),this.direction!==gt.rtl&&this.orientation!==J.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(t.key===Oo)t.preventDefault(),this.direction!==gt.rtl&&this.orientation!==J.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!t.shiftKey)switch(t.key){case De:case He:t.preventDefault(),this.increment();break;case Re:case _e: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===J.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===J.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(s)}`}}}}handleChange(t,e){switch(e){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
461
- :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=Fi(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=lr(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),k.getNotifier(this).subscribe(this,"max"),k.getNotifier(this).subscribe(this,"min"),k.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),k.getNotifier(this).unsubscribe(this,"max"),k.getNotifier(this).unsubscribe(this,"min"),k.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==gt.rtl&&this.orientation!==J.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?`${e}`:`${this.max}`;this.value=i}decrement(){const t=this.direction!==gt.rtl&&this.orientation!==J.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-Rn(Number(this.value),Number(this.min),Number(this.max),t))*100;this.orientation===J.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=Rn(t,this.orientation===J.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===J.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)}convertToConstrainedValue(t){isNaN(t)&&(t=this.min);let e=t-this.min;const i=Math.round(e/this.stepValue),s=e-i*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return e=s>=Number(this.stepValue)/2?e-s+Number(this.stepValue):e-s,e+this.min}}X([a],q.prototype,"size",2),X([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),X([$],q.prototype,"direction",2),X([$],q.prototype,"isDragging",2),X([$],q.prototype,"position",2),X([$],q.prototype,"trackWidth",2),X([$],q.prototype,"trackMinWidth",2),X([$],q.prototype,"trackHeight",2),X([$],q.prototype,"trackLeft",2),X([$],q.prototype,"trackMinHeight",2),X([$],q.prototype,"valueTextFormatter",2),X([a({converter:nt})],q.prototype,"min",2),X([a({converter:nt})],q.prototype,"max",2),X([a({converter:nt})],q.prototype,"step",2),X([a],q.prototype,"orientation",2),X([a],q.prototype,"mode",2);const ap=p`
462
- ${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:${xt};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 ${Zt};outline:1px solid ${jo}}.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:${Ri};border-radius:${ct};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${Ne}}.thumb-cursor:hover{background-color:${to}}.thumb-cursor:active{background-color:${eo}}:host([disabled]) .thumb-cursor{background-color:${C};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${Qt}}.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:${Yt};border-radius:${L};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${L};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
463
- var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${_} calc(var(--step-rate) - 1px),${_} var(--step-rate)
464
- )}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${Ze}}: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:${Je};position:absolute;height:100%;left:0;border-radius:${L}}:host([disabled]) .track-start{background-color:${C}}:host(:hover) .track-start{background-color:${to}}:host([disabled]:hover) .track-start{background-color:${C}}.track-start:active{background-color:${eo}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(lt(p`
465
- .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 lp(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 ${$t("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 ${$t("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">${at(o.thumb)}</slot></div></div></template>`}const cp=lp({thumb:'<div class="thumb-cursor"></div>'}),dp=q.compose({name:`${b.prefix}-slider`,template:cp,styles:ap});dp.define(b.registry);var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,Dn=(o,t,e,i)=>{for(var s=i>1?void 0:i?up(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&hp(t,e,s),s};class ls extends S{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}Dn([a],ls.prototype,"size",2),Dn([a],ls.prototype,"appearance",2);const pp=p`
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`
466
467
  ${z("flex")}
467
468
 
468
- :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:${kr};stroke-width:1.5px}:host([appearance='inverted']) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${xr};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:${el}}@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)}}`,fp=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>`,gp=ls.compose({name:`${b.prefix}-spinner`,template:fp,styles:pp});gp.define(b.registry);class bp extends wt{}function mp(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">${at(o.switch)}</slot></template>`}const vp=mp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),it=p.partial`:is([state--checked], :state(checked))`,$p=p`
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`
469
470
  ${z("inline-flex")}
470
471
 
471
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${Ce};width:40px;height:20px;background-color:${yt};border:1px solid ${Yt};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${oo}}:host(:active){border-color:${io}}:host(:disabled),:host([readonly]){border:1px solid ${Qt};background-color:none;pointer:default}:host(${it}){background:${Je};border-color:${Je}}:host(${it}:hover){background:${to};border-color:${to}}:host(${it}:active){background:${eo};border-color:${eo}}:host(${it}:disabled){background:${Ze};border-color:${Qt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${et};transition-duration:${Gr};transition-timing-function:${Xi};transition-property:margin-inline-start}:host(${it}) .checked-indicator{background-color:${Do};margin-inline-start:calc(100% - 14px)}:host(${it}:hover) .checked-indicator{background:${Va}}:host(${it}:active) .checked-indicator{background:${Na}}:host(:hover) .checked-indicator{background-color:${Oa}}:host(:active) .checked-indicator{background-color:${Aa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${C}}:host(${it}:disabled) .checked-indicator{background:${C}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${Ot};outline:${we} solid ${Ot};box-shadow:${Xo},0 0 0 2px ${Zt}}`.withBehaviors(lt(p`
472
- :host{border-color:InactiveBorder}:host(${it}),:host(${it}:active),:host(${it}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${it}) .checked-indicator,:host(${it}:hover) .checked-indicator,:host(${it}:active) .checked-indicator{background-color:ButtonFace}`)),yp=bp.compose({name:`${b.prefix}-switch`,template:vp,styles:$p});yp.define(b.registry);class xp extends S{}function kp(){return v`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const wp=kp(),Cp=p`
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`
473
474
  ${z("block")}
474
475
 
475
- :host{box-sizing:border-box;padding:${ae} ${te}}`,Sp=xp.compose({name:`${b.prefix}-tab-panel`,template:wp,styles:Cp});Sp.define(b.registry);var Ip=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,Bp=(o,t,e,i)=>{for(var s=i>1?void 0:i?Pp(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&&Ip(t,e,s),s};class cs extends S{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
476
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Bp([a({mode:"boolean"})],cs.prototype,"disabled",2),Xt(cs,Wt);function zp(o={}){return v`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Ut(o)}<span class="tab-content"><slot></slot></span>${Gt(o)}</template>`}const Tp=zp({}),Fp=p`
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`
477
478
  ${z("inline-flex")}
478
479
 
479
- :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${R};font-family:${y};font-size:${O};color:${Ft};fill:currentcolor;grid-row:1;padding:${ae} ${te};border-radius:${L}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${M};font-weight:${N}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${R};font-weight:${N}}:host([aria-selected='true'])::after{background-color:${Hi};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${No};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${C}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${C};color:${C}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${xt};box-shadow:0 0 0 3px ${Zt};outline:1px solid ${jo}}`.withBehaviors(lt(p`
480
- :host([aria-selected='true'])::after{background-color:Highlight}`)),Op=cs.compose({name:`${b.prefix}-tab`,template:Tp,styles:Fp});Op.define(b.registry);const Ap={subtle:"subtle",transparent:"transparent"},hi=J;var Ep=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,Ae=(o,t,e,i)=>{for(var s=i>1?void 0:i?Lp(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 vo extends S{constructor(){super(...arguments),this.orientation=hi.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Re:t.preventDefault(),this.adjustBackward(t);break;case De:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case He:t.preventDefault(),this.adjustBackward(t);break;case _e:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Ao:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Oo: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-${Oi()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${Oi()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===hi.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),i=e.indexOf(this.activetab),s=Fi(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()}}Ae([a],vo.prototype,"orientation",2),Ae([a],vo.prototype,"activeid",2),Ae([$],vo.prototype,"tabs",2),Ae([$],vo.prototype,"tabpanels",2);class $o extends vo{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=Ap.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===hi.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===hi.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,i=(this.activetab||t[0])?.getBoundingClientRect(),s=this.getBoundingClientRect();this.activeTabData={x:i.x-s.x,y:i.y-s.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
481
- :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
482
- :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()}}Ae([a],$o.prototype,"appearance",2),Ae([a({mode:"boolean"})],$o.prototype,"disabled",2),Ae([a],$o.prototype,"size",2),Xt($o,Wt);function Mp(o={}){return v` ${Ut(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${rt("tabs")}></slot></div>${Gt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${rt("tabpanels")}></slot></div>`}const _p=Mp({}),Rp=p`
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`
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`
483
484
  ${z("grid")}
484
485
 
485
- :host{box-sizing:border-box;font-family:${y};font-size:${O};line-height:${R};color:${Ft};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${C}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${C}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${C}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${L}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${C}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Li};color:${dr};fill:${ur}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Vo};fill:${Vo};color:${M}}:host([size='small']) ::slotted(fluent-tab){font-size:${O};line-height:${R};padding:${no} ${Se}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${kt};padding:${Wr} ${te}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Ac};transition-timing-function:${Xr}}:host ::slotted(fluent-tab)::after{height:${ne};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${ne};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${ne};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${ne};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${ne};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:${ne}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${no};padding-bottom:${no}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Ko};padding-bottom:${Ko}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${U};padding-bottom:${U}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${Se};left:${Se}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${te};left:${te}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${te};left:${te}}: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:${no};bottom:${no}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${U};bottom:${U}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${qr};bottom:${qr}}`,Dp=$o.compose({name:`${b.prefix}-tabs`,template:_p,styles:Rp});Dp.define(b.registry);const Hp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Vp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Np=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,E=(o,t,e,i)=>{for(var s=i>1?void 0:i?jp(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&&Np(t,e,s),s};class P extends S{constructor(){super(...arguments),this.type=Hp.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 k.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),k.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=>Vp.includes(s.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,i=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,i)}}}P.formAssociated=!0,E([a],P.prototype,"appearance",2),E([a],P.prototype,"autocomplete",2),E([a({mode:"boolean"})],P.prototype,"autofocus",2),E([a({attribute:"control-size"})],P.prototype,"controlSize",2),E([$],P.prototype,"defaultSlottedNodes",2),E([a],P.prototype,"dirname",2),E([a({mode:"boolean"})],P.prototype,"disabled",2),E([a({attribute:"form"})],P.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],P.prototype,"initialValue",2),E([a],P.prototype,"list",2),E([a({converter:nt})],P.prototype,"maxlength",2),E([a({converter:nt})],P.prototype,"minlength",2),E([a({mode:"boolean"})],P.prototype,"multiple",2),E([a],P.prototype,"name",2),E([a],P.prototype,"pattern",2),E([a],P.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],P.prototype,"readOnly",2),E([a({mode:"boolean"})],P.prototype,"required",2),E([a({converter:nt})],P.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],P.prototype,"spellcheck",2),E([a],P.prototype,"type",2),E([$],P.prototype,"controlLabel",2),Xt(P,Wt);const qp=p`
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`
486
487
  ${z("block")}
487
488
 
488
- :host{font-family:${y};font-size:${O};font-weight:${A};line-height:${R};max-width:400px}.label{display:flex;color:${M};padding-bottom:${Tc};flex-shrink:0;padding-inline-end:${Jt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${_};border:${Y} solid ${Ne};border-bottom-color:${Yt};border-radius:${L};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${Ce};padding:0 ${te};position:relative;width:100%}:has(.control:user-invalid){border-color:${rl}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${L});border-radius:0 0 ${L} ${L};border-bottom:2px solid ${Hi};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Fc};transition-delay:${Gi}}.control{width:100%;height:100%;box-sizing:border-box;color:${M};border-radius:${L};background:${yt};font-family:${y};font-weight:${A};font-size:${O};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Ea}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${et};font-size:${ke}}:host ::slotted([slot='start']){padding-right:${Ce}}:host ::slotted([slot='end']){padding-left:${Ce};gap:${Jt}}:host(:hover) .root{border-color:${No};border-bottom-color:${oo}}:host(:active) .root{border-color:${Di}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Gr};transition-delay:${Ui}}:host(:focus-within:active) .root:after{border-bottom-color:${Ni}}:host([appearance='outline']:focus-within) .root{border:${Y} solid ${Ne}}:host(:focus-within) .control{color:${M}}:host([disabled]) .root{background:${yt};border:${Y} solid ${Qt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${C}}::selection{color:${Do};background-color:${Ua}}:host([control-size='small']) .control{font-size:${G};font-weight:${A};line-height:${ht}}:host([control-size='small']) .root{height:24px;gap:${Ce};padding:0 ${Se}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${dt}}:host([control-size='large']) .control{font-size:${dt};font-weight:${A};line-height:${kt}}:host([control-size='large']) .root{height:40px;gap:${At};padding:0 ${ae}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${qo}}:host([appearance='underline']) .root{background:${yt};border:0;border-radius:0;border-bottom:${Y} solid ${Yt}}:host([appearance='underline']:hover) .root{border-bottom-color:${oo}}:host([appearance='underline']:active) .root{border-bottom-color:${io}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${io}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Qt}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${Y} solid ${Ot};box-shadow:${Vr}}:host([appearance='filled-lighter']) .root{background:${_}}:host([appearance='filled-darker']) .root{background:${mr}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${wr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${wr};background:${mr}}`;function Wp(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" ${$t("controlLabel")}><slot ${rt({property:"defaultSlottedNodes",filter:cr})}></slot></label><div class="root" part="root">${Ut(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}" ${$t("control")} />${Gt(o)}</div></template>`}const Gp=Wp(),Up=P.compose({name:`${b.prefix}-text-input`,template:Gp,styles:qp,shadowOptions:{delegatesFocus:!0}});Up.define(b.registry);var Xp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Nt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Kp(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&&Xp(t,e,s),s};class Pt extends S{constructor(){super(...arguments),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Nt([a({mode:"boolean"})],Pt.prototype,"nowrap",2),Nt([a({mode:"boolean"})],Pt.prototype,"truncate",2),Nt([a({mode:"boolean"})],Pt.prototype,"italic",2),Nt([a({mode:"boolean"})],Pt.prototype,"underline",2),Nt([a({mode:"boolean"})],Pt.prototype,"strikethrough",2),Nt([a({mode:"boolean"})],Pt.prototype,"block",2),Nt([a],Pt.prototype,"size",2),Nt([a],Pt.prototype,"font",2),Nt([a],Pt.prototype,"weight",2),Nt([a],Pt.prototype,"align",2);const Yp=p`
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`
489
490
  ${z("inline")}
490
491
 
491
- :host{contain:content}::slotted(*){font-family:${y};font-size:${O};line-height:${R};font-weight:${A};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:${ro};line-height:${Go}}:host([size='200']) ::slotted(*),:host([size='200']){font-size:${G};line-height:${ht}}:host([size='400']) ::slotted(*),:host([size='400']){font-size:${dt};line-height:${kt}}:host([size='500']) ::slotted(*),:host([size='500']){font-size:${ke};line-height:${Uo}}:host([size='600']) ::slotted(*),:host([size='600']){font-size:${qo};line-height:${Mr}}:host([size='700']) ::slotted(*),:host([size='700']){font-size:${Or};line-height:${_r}}:host([size='800']) ::slotted(*),:host([size='800']){font-size:${Ar};line-height:${Rr}}:host([size='900']) ::slotted(*),:host([size='900']){font-size:${Er};line-height:${Dr}}:host([size='1000']) ::slotted(*),:host([size='1000']){font-size:${Lr};line-height:${Hr}}:host([font='monospace']) ::slotted(*),:host([font='monospace']){font-family:${kc}}:host([font='numeric']) ::slotted(*),:host([font='numeric']){font-family:${wc}}:host([weight='medium']) ::slotted(*),:host([weight='medium']){font-weight:${Cc}}:host([weight='semibold']) ::slotted(*),:host([weight='semibold']){font-weight:${N}}:host([weight='bold']) ::slotted(*),:host([weight='bold']){font-weight:${Wo}}: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}`,Qp=v`<slot></slot>`,Zp=Pt.compose({name:`${b.prefix}-text`,template:Qp,styles:Yp});Zp.define(b.registry);var Jp=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Hn=(o,t,e,i)=>{for(var s=i>1?void 0:i?tf(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&&Jp(t,e,s),s};class ds extends F{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,this.setAttribute("aria-pressed",t)}}}Hn([a({mode:"boolean"})],ds.prototype,"pressed",2),Hn([a({mode:"boolean"})],ds.prototype,"mixed",2);const ef=p`
492
- ${Zo}
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}
493
494
 
494
- :host([aria-pressed='true']){border-color:${Ne};background-color:${br};color:${M};border-width:${Y}}:host([aria-pressed='true']:hover){border-color:${No};background-color:${Ei}}:host([aria-pressed='true']:active){border-color:${Di};background-color:${gr}}:host([aria-pressed='true'][appearance='primary']){border-color:transparent;background-color:${Za};color:${Kt}}:host([aria-pressed='true'][appearance='primary']:hover){background-color:${vr}}:host([aria-pressed='true'][appearance='primary']:active){background-color:${$r}}:host([aria-pressed='true'][appearance='subtle']){border-color:transparent;background-color:${Ka};color:${Ta}}:host([aria-pressed='true'][appearance='subtle']:hover){background-color:${Li};color:${Lo}}:host([aria-pressed='true'][appearance='subtle']:active){background-color:${Vo};color:${Mo}}:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background-color:${Ya}}:host([aria-pressed='true'][appearance='outline']:hover),:host([aria-pressed='true'][appearance='transparent']:hover){background-color:${Mi}}:host([aria-pressed='true'][appearance='outline']:active),:host([aria-pressed='true'][appearance='transparent']:active){background-color:${_i}}:host([aria-pressed='true'][appearance='transparent']){border-color:transparent;color:${Fa}}:host([aria-pressed='true'][appearance='transparent']:hover){color:${_o}}:host([aria-pressed='true'][appearance='transparent']:active){color:${Ro}}`.withBehaviors(lt(p`
495
- :host([aria-pressed='true']),:host([aria-pressed='true'][appearance='primary']),:host([aria-pressed='true'][appearance='subtle']),:host([aria-pressed='true'][appearance='outline']),:host([aria-pressed='true'][appearance='transparent']){background:SelectedItem;color:SelectedItemText}`)),of=Qi(),sf=ds.compose({name:`${b.prefix}-toggle-button`,template:of,styles:ef});sf.define(b.registry);
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);