@fluentui/web-components 3.0.0-beta.55 → 3.0.0-beta.57

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 (61) hide show
  1. package/CHANGELOG.md +21 -2
  2. package/dist/dts/anchor-button/index.d.ts +1 -1
  3. package/dist/dts/checkbox/index.d.ts +1 -1
  4. package/dist/dts/helpers.tests.d.ts +22 -0
  5. package/dist/dts/index-rollup.d.ts +1 -0
  6. package/dist/dts/index.d.ts +3 -2
  7. package/dist/dts/menu/menu.d.ts +1 -2
  8. package/dist/dts/menu-item/menu-item.d.ts +2 -3
  9. package/dist/dts/slider/slider.d.ts +1 -1
  10. package/dist/dts/styles/states/index.d.ts +36 -0
  11. package/dist/dts/textarea/define.d.ts +1 -0
  12. package/dist/dts/textarea/index.d.ts +5 -0
  13. package/dist/dts/textarea/textarea.bench.d.ts +3 -0
  14. package/dist/dts/textarea/textarea.d.ts +390 -0
  15. package/dist/dts/textarea/textarea.definition.d.ts +9 -0
  16. package/dist/dts/textarea/textarea.options.d.ts +47 -0
  17. package/dist/dts/textarea/textarea.styles.d.ts +7 -0
  18. package/dist/dts/textarea/textarea.template.d.ts +12 -0
  19. package/dist/esm/anchor-button/index.js +1 -1
  20. package/dist/esm/anchor-button/index.js.map +1 -1
  21. package/dist/esm/checkbox/index.js +1 -1
  22. package/dist/esm/checkbox/index.js.map +1 -1
  23. package/dist/esm/helpers.tests.js +44 -0
  24. package/dist/esm/helpers.tests.js.map +1 -1
  25. package/dist/esm/index-rollup.js +1 -0
  26. package/dist/esm/index-rollup.js.map +1 -1
  27. package/dist/esm/index.js +3 -2
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/menu/menu.js +6 -1
  30. package/dist/esm/menu/menu.js.map +1 -1
  31. package/dist/esm/menu-item/menu-item.js +8 -1
  32. package/dist/esm/menu-item/menu-item.js.map +1 -1
  33. package/dist/esm/menu-item/menu-item.template.js +3 -1
  34. package/dist/esm/menu-item/menu-item.template.js.map +1 -1
  35. package/dist/esm/slider/slider.js +1 -1
  36. package/dist/esm/styles/states/index.js +40 -0
  37. package/dist/esm/styles/states/index.js.map +1 -1
  38. package/dist/esm/textarea/define.js +4 -0
  39. package/dist/esm/textarea/define.js.map +1 -0
  40. package/dist/esm/textarea/index.js +6 -0
  41. package/dist/esm/textarea/index.js.map +1 -0
  42. package/dist/esm/textarea/textarea.bench.js +10 -0
  43. package/dist/esm/textarea/textarea.bench.js.map +1 -0
  44. package/dist/esm/textarea/textarea.definition.js +20 -0
  45. package/dist/esm/textarea/textarea.definition.js.map +1 -0
  46. package/dist/esm/textarea/textarea.js +605 -0
  47. package/dist/esm/textarea/textarea.js.map +1 -0
  48. package/dist/esm/textarea/textarea.options.js +56 -0
  49. package/dist/esm/textarea/textarea.options.js.map +1 -0
  50. package/dist/esm/textarea/textarea.styles.js +268 -0
  51. package/dist/esm/textarea/textarea.styles.js.map +1 -0
  52. package/dist/esm/textarea/textarea.template.js +54 -0
  53. package/dist/esm/textarea/textarea.template.js.map +1 -0
  54. package/dist/esm/theme/set-theme.js +1 -0
  55. package/dist/esm/theme/set-theme.js.map +1 -1
  56. package/dist/esm/utils/element-internals.js +4 -2
  57. package/dist/esm/utils/element-internals.js.map +1 -1
  58. package/dist/web-components.d.ts +469 -10
  59. package/dist/web-components.js +1095 -542
  60. package/dist/web-components.min.js +284 -280
  61. package/package.json +6 -2
@@ -1,7 +1,7 @@
1
- const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Co;const Ai="fast-kernel";try{if(document.currentScript)Co=document.currentScript.getAttribute(Ai);else{const o=document.getElementsByTagName("script");Co=o[o.length-1].getAttribute(Ai)}}catch{Co="isolate"}let ae;switch(Co){case"share":ae=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ae=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)}`;ae=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const we=o=>typeof o=="function",zt=o=>typeof o=="string",Fi=()=>{};var zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof zs<"u")zs.globalThis=zs;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 Oi={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Oi));const Z=globalThis.FAST;if(Z.getById===void 0){const o=Object.create(null);Reflect.defineProperty(Z,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},Oi))}Z.error===void 0&&Object.assign(Z,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Tn=Object.freeze([]);function As(){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 _i(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=o.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Ce(o){o.prototype.toJSON=Fi}const ot=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Mi=o=>o,Bn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Mi}):{createHTML:Mi};let Io=Object.freeze({createHTML(o){return Bn.createHTML(o)},protect(o,t,e,s){return s}});const zn=Io,Ie=Object.freeze({get policy(){return Io},setPolicy(o){if(Io!==zn)throw Z.error(1201);Io=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)}}),At=Z.getById(ae.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(g){try{g.call()}catch(p){if(s)t.push(p),setTimeout(i,0);else throw o.length=0,p}}function n(){let p=0;for(;p<o.length;)if(r(o[p]),p++,p>1024){for(let d=0,b=o.length-p;d<b;d++)o[d]=o[d+p];o.length-=p,p=0}o.length=0}function h(g){o.push(g),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:g=>s=g})});class Fs{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 s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(s,t)}}class Ni{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,i;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new Fs(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Fs(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,i;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const Os=Object.freeze({unknown:void 0,coupled:1}),m=Z.getById(ae.observable,()=>{const o=At.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=p=>{throw Z.error(1101)};function r(p){var d;let b=(d=p.$fastController)!==null&&d!==void 0?d:e.get(p);return b===void 0&&(Array.isArray(p)?b=i(p):e.set(p,b=new Ni(p))),b}const n=_i();class h{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return s!==void 0&&s.watch(d,this.name),d[this.field]}setValue(d,b){const T=this.field,q=d[T];if(q!==b){d[T]=b;const ee=d[this.callback];we(ee)&&ee.call(d,q,b),r(d).notify(this.name)}}}class g extends Fs{constructor(d,b,T=!1){super(d,b),this.expression=d,this.isVolatileBinding=T,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(d){this.isAsync=this.needsQueue=d}bind(d){this.controller=d;const b=this.observe(d.source,d.context);return!d.isBound&&this.requiresUnbind(d)&&d.onUnbind(this),b}requiresUnbind(d){return d.sourceLifetime!==Os.coupled||this.first!==this.last||this.first.propertySource!==d.source}unbind(d){this.dispose()}observe(d,b){this.needsRefresh&&this.last!==null&&this.dispose();const T=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let q;try{q=this.expression(d,b)}finally{s=T}return q}disconnect(){this.dispose()}dispose(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(d,b){const T=this.last,q=r(d),ee=T===null?this.first:{};if(ee.propertySource=d,ee.propertyName=b,ee.notifier=q,q.subscribe(this,b),T!==null){if(!this.needsRefresh){let zi;s=void 0,zi=T.propertySource[T.propertyName],s=this,d===zi&&(this.needsRefresh=!0)}T.next=ee}this.last=ee}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 d=this.first;for(;d!==void 0;)yield d,d=d.next}}return Ce(g),Object.freeze({setArrayObserverFactory(p){i=p},getNotifier:r,track(p,d){s&&s.watch(p,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(p,d){r(p).notify(d)},defineProperty(p,d){zt(d)&&(d=new h(d)),n(p).push(d),Reflect.defineProperty(p,d.name,{enumerable:!0,get(){return d.getValue(this)},set(b){d.setValue(this,b)}})},getAccessors:n,binding(p,d,b=this.isVolatileBinding(p)){return new g(p,d,b)},isVolatileBinding(p){return t.test(p.toString())}})});function k(o,t){m.defineProperty(o,t)}function An(o,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const Ei=Z.getById(ae.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),je=Object.freeze({default:{index:0,length:0,get event(){return je.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Ei.get()},setEvent(o){Ei.set(o)}});class So{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class Fn extends So{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function Li(o,t,e=m.isVolatileBinding(o)){return new Fn(o,t,e)}class Di extends So{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Ce(Di);function Hi(o,t){return new Di(o,t)}let Vi;function ji(o){return o.map(t=>t instanceof ht?ji(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class ht{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof ht?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Vi),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(ji(this.styles)),this}static setDefaultStrategy(t){Vi=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new ht(t):t instanceof ht?t:new ht([t])}}ht.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const _s=As(),Ms=Object.freeze({getForInstance:_s.getForInstance,getByType:_s.getByType,define(o){return _s.register({type:o}),o}});function Ns(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class Es{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const s=t.source;if(!s.$cssBindings){s.$cssBindings=new Map;const r=s.setAttribute;s.setAttribute=(n,h)=>{r.call(s,n,h),n==="style"&&s.$cssBindings.forEach((g,p)=>Ns(p,g.controller,g.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){Ns(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){Ns(this,e.controller,e)}}Ms.define(Es);const On=`${Math.random().toString(36).substring(2,8)}`;let _n=0;const Ri=()=>`--v${On}${++_n}`;function qi(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,h=o.length-1;n<h;++n){s+=o[n];let g=t[n];we(g)?g=new Es(Li(g),Ri()).createCSS(r):g instanceof So?g=new Es(g,Ri()).createCSS(r):Ms.getForInstance(g)!==void 0&&(g=g.createCSS(r)),g instanceof ht||g instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(g)):s+=g}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=qi(o,t),i=new ht(e);return s.length?i.withBehaviors(...s):i};class Gi{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(zt(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new ht(s))}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)}}Ms.define(Gi),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=qi(o,t);return new Gi(e,s)};const Ls=`fast-${Math.random().toString(36).substring(2,8)}`,Po=`${Ls}{`,Re=`}${Ls}`,Mn=Re.length;let Nn=0;const Ds=()=>`${Ls}-${++Nn}`,Wi=Object.freeze({interpolation:o=>`${Po}${o}${Re}`,attribute:o=>`${Ds()}="${Po}${o}${Re}"`,comment:o=>`<!--${Po}${o}${Re}-->`}),To=Object.freeze({parse(o,t){const e=o.split(Po);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(Re);let g;if(h===-1)g=n;else{const p=n.substring(0,h);s.push(t[p]),g=n.substring(h+Mn)}g!==""&&s.push(g)}return s}}),Hs=As(),kt=Object.freeze({getForInstance:Hs.getForInstance,getByType:Hs.getByType,define(o,t){return t=t||{},t.type=o,Hs.register(t),o},assignAspect(o,t){if(!t){o.aspectType=ot.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?ot.tokenList:ot.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=ot.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=ot.event;break;default:o.targetAspect=t,o.aspectType=ot.attribute;break}}});class Vs{constructor(t){this.options=t}createHTML(t){return Wi.attribute(t(this))}createBehavior(){return this}}Ce(Vs);function En(o,t,e,s){if(e==null&&(e=""),e.create){o.textContent="";let i=o.$fastView;i===void 0?i=e.create():o.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(s.source,s.context)):(i.isComposed=!0,i.bind(s.source,s.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=e)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=e}}function Ln(o,t,e){var s;const i=`${this.id}-t`,r=(s=o[i])!==null&&s!==void 0?s:o[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const g=o[t];if(e!=null&&e.length){const p=e.split(/\s+/);for(let d=0,b=p.length;d<b;++d){const T=p[d];T!==""&&(n[T]=h,g.add(T))}}if(r.v=h+1,h!==0){h-=1;for(const p in n)n[p]===h&&g.remove(p)}}const Dn={[ot.attribute]:Ie.setAttribute,[ot.booleanAttribute]:Ie.setBooleanAttribute,[ot.property]:(o,t,e)=>o[t]=e,[ot.content]:En,[ot.tokenList]:Ln,[ot.event]:()=>{}};class Se{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=ot.content}createHTML(t){return Wi.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Dn[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw Z.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId];switch(this.aspectType){case ot.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case ot.content:t.onUnbind(this);default:const i=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);i.target=s,i.controller=t,this.updateTarget(s,this.targetAspect,i.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){je.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);je.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,i=e.controller;this.updateTarget(s,this.targetAspect,e.bind(i),i)}}kt.define(Se,{aspected:!0});function Ui(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;)i=s.nextSibling,e.removeChild(s),s=i;e.removeChild(t)}class Bo{constructor(t,e,s){this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Os.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return je.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 s=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,s.insertBefore(i,t),i=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,i;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){Ui(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),s[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=s.length;i<r;++i)s[i].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,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){Ui(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}Ce(Bo),m.defineProperty(Bo.prototype,"index"),m.defineProperty(Bo.prototype,"length");const Xi=(o,t)=>`${o}.${t}`,Ki={},Ft={index:0,node:null};function Yi(o){o.startsWith("fast-")||Z.warn(1204,{name:o})}const Hn=new Proxy(document.createElement("div"),{get(o,t){Yi(t);const e=Reflect.get(o,t);return we(e)?e.bind(o):e},set(o,t,e){return Yi(t),Reflect.set(o,t,e)}});class Vn{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,i,r){var n,h;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:Ds(),t.targetNodeId=s,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),g=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,g)}let r=Ki[e];if(!r){const n=`_${e}`;Ki[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[s]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??Hn;for(const i of this.nodeIds)s[i];return new Bo(e,this.factories,s)}}function Qi(o,t,e,s,i,r=!1){const n=e.attributes,h=o.directives;for(let g=0,p=n.length;g<p;++g){const d=n[g],b=d.value,T=To.parse(b,h);let q=null;T===null?r&&(q=new Se(Hi(()=>b,o.policy)),kt.assignAspect(q,d.name)):q=js.aggregate(T,o.policy),q!==null&&(e.removeAttributeNode(d),g--,p--,o.addFactory(q,t,s,i,e.tagName))}}function jn(o,t,e,s,i){const r=To.parse(t.textContent,o.directives);if(r===null)return Ft.node=t.nextSibling,Ft.index=i+1,Ft;let n,h=n=t;for(let g=0,p=r.length;g<p;++g){const d=r[g];g!==0&&(i++,s=Xi(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),zt(d)?n.textContent=d:(n.textContent=" ",kt.assignAspect(d),o.addFactory(d,e,s,i,null)),h=n}return Ft.index=i+1,Ft.node=h.nextSibling,Ft}function Zi(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=Rn(o,e,i,s);i=r.node,s=r.index}}function Rn(o,t,e,s){const i=Xi(t,s);switch(e.nodeType){case 1:Qi(o,t,e,i,s),Zi(o,e,i);break;case 3:return jn(o,e,t,i,s);case 8:const r=To.parse(e.data,o.directives);r!==null&&o.addFactory(js.aggregate(r),t,i,s,null);break}return Ft.index=s+1,Ft.node=e.nextSibling,Ft}function qn(o,t){return o&&o.nodeType==8&&To.parse(o.data,t)!==null}const Ji="TEMPLATE",js={compile(o,t,e=Ie.policy){let s;if(zt(o)){s=document.createElement(Ji),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Ji&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new Vn(i,t,e);return Qi(r,"",s,"h",0,!0),(qn(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Zi(r,i,"r"),Ft.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=Ie.policy){if(o.length===1)return o[0];let e,s,i=!1,r;const n=o.length,h=o.map(d=>zt(d)?()=>d:(e=d.sourceAspect||e,s=d.dataBinding||s,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),g=(d,b)=>{let T="";for(let q=0;q<n;++q)T+=h[q](d,b);return T};s.evaluate=g,s.isVolatile=i,s.policy=r??t;const p=new Se(s);return kt.assignAspect(p,e),p}},Gn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Wn=Object.create(null);class le{constructor(t,e=Wn){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}le.empty=new le(""),kt.define(le);function Un(o,t,e,s=kt.getForInstance(o)){if(s.aspected){const i=Gn.exec(t);i!==null&&kt.assignAspect(o,i[2])}return o.createHTML(e)}class Ps{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=js.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new le(zt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw Z.error(1208);if(this.policy)throw Z.error(1207);return this.policy=t,this}render(t,e,s){const i=this.create(s);return i.bind(t),i.appendTo(e),i}static create(t,e,s){let i="";const r=Object.create(null),n=h=>{var g;const p=(g=h.id)!==null&&g!==void 0?g:h.id=Ds();return r[p]=h,p};for(let h=0,g=t.length-1;h<g;++h){const p=t[h];let d=e[h],b;if(i+=p,we(d))d=new Se(Li(d));else if(d instanceof So)d=new Se(d);else if(!(b=kt.getForInstance(d))){const T=d;d=new Se(Hi(()=>T))}i+=Un(d,p,n,b)}return new Ps(i+t[t.length-1],r,s)}}Ce(Ps);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Ps.create(o,t);throw Z.error(1206)};f.partial=o=>new le(o);class tr extends Vs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}kt.define(tr);const Ot=o=>new tr(o),Xn=o=>o.nodeType===1,qe=o=>o?t=>t.nodeType===1&&t.matches(o):Xn;class er extends Vs{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,Tn),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 or="slotchange";class sr extends er{observe(t){t.addEventListener(or,this)}disconnect(t){t.removeEventListener(or,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}kt.define(sr);function ut(o){return zt(o)&&(o={property:o}),new sr(o)}class ir extends er{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,s)=>{const i=s.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=Fi,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)}}kt.define(ir);function Kn(o){return zt(o)&&(o={property:o}),new ir(o)}const rr="boolean",nr="reflect",zo=Object.freeze({locate:_i()}),Yn={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function ar(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const rt={toView(o){const t=ar(o);return t&&t.toString()},fromView:ar};class Ts{constructor(t,e,s=e.toLowerCase(),i=nr,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===rr&&r===void 0&&(this.converter=Yn)}setValue(t,e){const s=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return m.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,s=this.guards;s.has(t)||e==="fromView"||At.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case nr:const r=this.converter;Ie.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case rr:Ie.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(zo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,g=n.length;h<g;++h){const p=n[h];zt(p)?s.push(new Ts(t,p)):s.push(new Ts(t,p.property,p.attribute,p.mode,p.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),zo.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const lr={mode:"open"},cr={},dr=new Set,Ao=Z.getById(ae.elementRegistry,()=>As());class Bt{constructor(t,e=t.definition){var s;this.platformDefined=!1,zt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const i=t.prototype,r=Ts.collect(t,e.attributes),n=new Array(r.length),h={},g={};for(let p=0,d=r.length;p<d;++p){const b=r[p];n[p]=b.attribute,h[b.name]=b,g[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=g,this.shadowOptions=e.shadowOptions===void 0?lr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},lr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?cr:Object.assign(Object.assign({},cr),e.elementOptions),this.styles=ht.normalize(e.styles),Ao.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 dr.has(t)||Ao.getByType(t)?new Bt(class extends t{},e):new Bt(t,e)}static registerBaseType(t){dr.add(t)}}Bt.getByType=Ao.getByType,Bt.getForInstance=Ao.getForInstance;const Qn={bubbles:!0,composed:!0,cancelable:!0},Rs="isConnected",hr=new WeakMap;function Fo(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:hr.get(o))!==null&&e!==void 0?e:null}let ur;class Oo extends Ni{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 s=e.shadowOptions;if(s!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(s),s.mode==="closed"&&hr.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const g=i[n].name,p=t[g];p!==void 0&&(delete t[g],r[g]=p)}}}get isConnected(){return m.track(this,Rs),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:je.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,s;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=i.get(t))!==null&&s!==void 0?s:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const i=s.get(t);i!==void 0&&(i===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,i-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Fo(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const i=t.behaviors;if(t.addStylesTo(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Fo(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const i=t.behaviors;if(t.removeStylesFrom(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,s=this.boundObservables,i=Object.keys(s);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=s[h]}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,m.notify(this,Rs)}disconnect(){if(this.stage!==1)return;this.stage=2,m.notify(this,Rs),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,s){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},Qn),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=Fo(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(s,i,s),this.view.sourceLifetime=Os.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=Bt.getForInstance(t);if(s===void 0)throw Z.error(1401);return t.$fastController=new ur(t,s)}static setStrategy(t){ur=t}}Ce(Oo),Oo.setStrategy(Oo);function _o(o){var t;return"adoptedStyleSheets"in o?o:(t=Fo(o))!==null&&t!==void 0?t:o.getRootNode()}class Bs{constructor(t){const e=Bs.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){gr(_o(t),this.sheets)}removeStylesFrom(t){fr(_o(t),this.sheets)}}Bs.styleSheetCache=new Map;let Zn=0;const Jn=()=>`fast-${++Zn}`;function pr(o){return o===document?document.body:o}class ta{constructor(t){this.styles=t,this.styleClass=Jn()}addStylesTo(t){t=pr(_o(t));const e=this.styles,s=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=s,t.append(r)}}removeStylesFrom(t){t=pr(_o(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let gr=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},fr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(ht.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),gr=(o,t)=>{o.adoptedStyleSheets.push(...t)},fr=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}ht.setDefaultStrategy(Bs)}else ht.setDefaultStrategy(ta);function br(o){const t=class extends o{constructor(){super(),Oo.forCustomElement(this)}$emit(e,s,i){return this.$fastController.emit(e,s,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,i){this.$fastController.onAttributeChangedCallback(e,s,i)}};return Bt.registerBaseType(t),t}function ea(o,t){return we(o)?Bt.compose(o,t):Bt.compose(this,o)}function oa(o,t){return we(o)?Bt.compose(o,t).define().type:Bt.compose(this,o).define().type}function sa(o){return br(o)}const x=Object.assign(br(HTMLElement),{from:sa,define:oa,compose:ea}),pt={horizontal:"horizontal",vertical:"vertical"};function ia(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function mr(...o){return o.every(t=>t instanceof HTMLElement)}const Mo="ArrowDown",No="ArrowLeft",Eo="ArrowRight",Lo="ArrowUp",Do="End",Ho="Enter",ra="Escape",Vo="Home",qs=" ",na="Tab";var xt;(function(o){o.ltr="ltr",o.rtl="rtl"})(xt||(xt={}));function aa(o,t,e){return e<o?t:e>t?o:e}function Gs(o,t,e){return Math.min(Math.max(e,o),t)}let la=0;function Ge(o=""){return`${o}${la++}`}var ca=Object.defineProperty,da=Object.getOwnPropertyDescriptor,V=(o,t,e,s)=>{for(var i=s>1?void 0:s?da(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ca(t,e,i),i};class j{}V([a({attribute:"aria-atomic"})],j.prototype,"ariaAtomic",2),V([a({attribute:"aria-busy"})],j.prototype,"ariaBusy",2),V([a({attribute:"aria-controls"})],j.prototype,"ariaControls",2),V([a({attribute:"aria-current"})],j.prototype,"ariaCurrent",2),V([a({attribute:"aria-describedby"})],j.prototype,"ariaDescribedby",2),V([a({attribute:"aria-details"})],j.prototype,"ariaDetails",2),V([a({attribute:"aria-disabled"})],j.prototype,"ariaDisabled",2),V([a({attribute:"aria-errormessage"})],j.prototype,"ariaErrormessage",2),V([a({attribute:"aria-flowto"})],j.prototype,"ariaFlowto",2),V([a({attribute:"aria-haspopup"})],j.prototype,"ariaHaspopup",2),V([a({attribute:"aria-hidden"})],j.prototype,"ariaHidden",2),V([a({attribute:"aria-invalid"})],j.prototype,"ariaInvalid",2),V([a({attribute:"aria-keyshortcuts"})],j.prototype,"ariaKeyshortcuts",2),V([a({attribute:"aria-label"})],j.prototype,"ariaLabel",2),V([a({attribute:"aria-labelledby"})],j.prototype,"ariaLabelledby",2),V([a({attribute:"aria-live"})],j.prototype,"ariaLive",2),V([a({attribute:"aria-owns"})],j.prototype,"ariaOwns",2),V([a({attribute:"aria-relevant"})],j.prototype,"ariaRelevant",2),V([a({attribute:"aria-roledescription"})],j.prototype,"ariaRoledescription",2);const Ws={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},Us=o=>o.closest("[dir]")?.dir==="rtl"?xt.rtl:xt.ltr;function mt(o){return o?typeof o=="string"?new le(o):"inline"in o?o.inline():o:le.empty}const ha=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,ua=":host([hidden]){display:none}";function I(o){return`${ua}:host{display:${o}}`}class pa{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class wo extends pa{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new wo(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const J=wo.with(window.matchMedia("(forced-colors)"));wo.with(window.matchMedia("(prefers-color-scheme: dark)")),wo.with(window.matchMedia("(prefers-color-scheme: light)"));class jt{}function oe(o){return f`<slot name="end" ${Ot("end")}>${mt(o.end)}</slot>`.inline()}function Rt(o){return f`<slot name="start" ${Ot("start")}>${mt(o.start)}</slot>`.inline()}function qt(o,...t){const e=zo.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),zo.locate(s).forEach(r=>e.push(r))})}const ga=CSS.supports("selector(:state(g))");function c(o,t,e){if(!ga){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}var fa=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,ce=(o,t,e,s)=>{for(var i=s>1?void 0:s?ba(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&fa(t,e,i),i};class Gt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ge("accordion-")}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}ce([a({attribute:"heading-level",mode:"fromView",converter:rt})],Gt.prototype,"headinglevel",2),ce([a({mode:"boolean"})],Gt.prototype,"expanded",2),ce([a({mode:"boolean"})],Gt.prototype,"disabled",2),ce([a],Gt.prototype,"id",2);class We extends Gt{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}}ce([a],We.prototype,"size",2),ce([a({attribute:"marker-position"})],We.prototype,"markerPosition",2),ce([a({mode:"boolean"})],We.prototype,"block",2),qt(We,jt);const v=l.partial`:is([state--checked], :state(checked))`,O=l.partial`:is([state--disabled], :state(disabled))`,jo=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Ro=l.partial`:is([state--filled-darker], :state(filled-darker))`,Wt=l.partial`:is([state--ghost], :state(ghost))`,$r=l.partial`:is([state--inverted], :state(inverted))`,nt=l.partial`:is([state--primary], :state(primary))`,G=l.partial`:is([state--outline], :state(outline))`,Ue=l.partial`:is([state--strong], :state(strong))`,S=l.partial`:is([state--subtle], :state(subtle))`,se=l.partial`:is([state--tint], :state(tint))`,Xe=l.partial`:is([state--underline], :state(underline))`,X=l.partial`:is([state--transparent], :state(transparent))`,Ke=l.partial`:is([state--circular], :state(circular))`,Ut=l.partial`:is([state--rounded], :state(rounded))`,Ye=l.partial`:is([state--square], :state(square))`,Qe=l.partial`:is([state--tiny], :state(tiny))`,Ze=l.partial`:is([state--extra-small], :state(extra-small))`,P=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const w=l.partial`:is([state--large], :state(large))`,qo=l.partial`:is([state--extra-large], :state(extra-large))`,ma=l.partial`:is([state--huge], :state(huge))`,vr=l.partial`:is([state--align-start], :state(align-start))`,Xt=l.partial`:is([state--align-end], :state(align-end))`,Xs=l.partial`:is([state--inset], :state(inset))`,Pe=l.partial`:is([state--icon], :state(icon))`,A=l.partial`:is([state--pressed], :state(pressed))`,Kt=l.partial`:is([state--brand], :state(brand))`,Ks=l.partial`:is([state--error], :state(error))`,Go=l.partial`:is([state--danger], :state(danger))`,Wo=l.partial`:is([state--important], :state(important))`,Uo=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const Xo=l.partial`:is([state--neutral], :state(neutral))`,Ko=l.partial`:is([state--severe], :state(severe))`,de=l.partial`:is([state--success], :state(success))`,he=l.partial`:is([state--warning], :state(warning))`,C=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const Je=l.partial`:is([state--multiline], :state(multiline))`,ue=l.partial`:is([state--expanded], :state(expanded))`,$a=l.partial`:is([state--block], :state(block))`,B="var(--colorNeutralForeground1)",Ys="var(--colorNeutralForeground1Hover)",va="var(--colorNeutralForeground1Pressed)",_t="var(--colorNeutralForeground2)",Yo="var(--colorNeutralForeground2Hover)",Qo="var(--colorNeutralForeground2Pressed)",ya="var(--colorNeutralForeground2Selected)",Zo="var(--colorNeutralForeground2BrandHover)",Jo="var(--colorNeutralForeground2BrandPressed)",ka="var(--colorNeutralForeground2BrandSelected)",at="var(--colorNeutralForeground3)",xa="var(--colorNeutralForeground3Hover)",wa="var(--colorNeutralForeground3Pressed)",Ca="var(--colorNeutralForeground4)",z="var(--colorNeutralForegroundDisabled)",Ia="var(--colorBrandForegroundLink)",Sa="var(--colorBrandForegroundLinkHover)",Pa="var(--colorBrandForegroundLinkPressed)",Ta="var(--colorNeutralForeground2Link)",Ba="var(--colorNeutralForeground2LinkHover)",za="var(--colorNeutralForeground2LinkPressed)",yr="var(--colorCompoundBrandForeground1Hover)",Aa="var(--colorCompoundBrandForeground1Pressed)",Yt="var(--colorNeutralForegroundOnBrand)",to="var(--colorNeutralForegroundInverted)",Fa="var(--colorNeutralForegroundInvertedHover)",Oa="var(--colorNeutralForegroundInvertedPressed)",kr="var(--colorNeutralForegroundStaticInverted)",Qs="var(--colorBrandForeground1)",_a="var(--colorBrandForeground2)",Ma="var(--colorNeutralForeground1Static)",E="var(--colorNeutralBackground1)",Zs="var(--colorNeutralBackground1Hover)",Js="var(--colorNeutralBackground1Pressed)",xr="var(--colorNeutralBackground1Selected)",ti="var(--colorNeutralBackground3)",Na="var(--colorNeutralBackground4)",Ea="var(--colorNeutralBackground5)",ts="var(--colorNeutralBackground6)",La="var(--colorNeutralBackgroundInverted)",Da="var(--colorSubtleBackground)",es="var(--colorSubtleBackgroundHover)",Te="var(--colorSubtleBackgroundPressed)",Ha="var(--colorSubtleBackgroundSelected)",wt="var(--colorTransparentBackground)",ei="var(--colorTransparentBackgroundHover)",oi="var(--colorTransparentBackgroundPressed)",Va="var(--colorTransparentBackgroundSelected)",Be="var(--colorNeutralBackgroundDisabled)",si="var(--colorBackgroundOverlay)",ii="var(--colorBrandBackground)",wr="var(--colorBrandBackgroundHover)",Cr="var(--colorBrandBackgroundPressed)",ja="var(--colorBrandBackgroundSelected)",ze="var(--colorCompoundBrandBackground)",eo="var(--colorCompoundBrandBackgroundHover)",oo="var(--colorCompoundBrandBackgroundPressed)",Ir="var(--colorBrandBackgroundStatic)",Ra="var(--colorBrandBackground2)",pe="var(--colorNeutralStrokeAccessible)",so="var(--colorNeutralStrokeAccessibleHover)",io="var(--colorNeutralStrokeAccessiblePressed)",ge="var(--colorNeutralStroke1)",os="var(--colorNeutralStroke1Hover)",ri="var(--colorNeutralStroke1Pressed)",ro="var(--colorNeutralStroke2)",qa="var(--colorNeutralStroke3)",Ga="var(--colorNeutralStrokeOnBrand2)",Sr="var(--colorBrandStroke1)",ni="var(--colorBrandStroke2)",ss="var(--colorCompoundBrandStroke)",Wa="var(--colorCompoundBrandStrokeHover)",Pr="var(--colorCompoundBrandStrokePressed)",Mt="var(--colorNeutralStrokeDisabled)",lt="var(--colorTransparentStroke)",Tr="var(--colorTransparentStrokeInteractive)",ai="var(--colorStrokeFocus1)",Nt="var(--colorStrokeFocus2)",Br="var(--colorPaletteRedBackground1)",Ua="var(--colorPaletteRedBackground2)",zr="var(--colorPaletteRedBackground3)",Ar="var(--colorPaletteRedBorder1)",Xa="var(--colorPaletteRedBorder2)",Fr="var(--colorPaletteRedForeground1)",Ka="var(--colorPaletteRedForeground2)",Or="var(--colorPaletteRedForeground3)",_r="var(--colorPaletteGreenBackground1)",Mr="var(--colorPaletteGreenBackground3)",Ya="var(--colorPaletteGreenBorder1)",Qa="var(--colorPaletteGreenBorder2)",Za="var(--colorPaletteGreenForeground1)",Ja="var(--colorPaletteGreenForeground2)",tl="var(--colorPaletteGreenForeground3)",Nr="var(--colorPaletteDarkOrangeBackground1)",Er="var(--colorPaletteDarkOrangeBackground3)",Lr="var(--colorPaletteDarkOrangeBorder1)",el="var(--colorPaletteDarkOrangeForeground1)",Dr="var(--colorPaletteDarkOrangeForeground3)",ol="var(--colorPaletteYellowBackground1)",sl="var(--colorPaletteYellowBackground3)",il="var(--colorPaletteYellowBorder1)",li="var(--colorPaletteYellowForeground2)",Hr="var(--colorPaletteMarigoldBackground2)",rl="var(--colorPaletteMarigoldBackground3)",nl="var(--colorPaletteMarigoldForeground2)",al="var(--colorPaletteAnchorBackground2)",ll="var(--colorPaletteAnchorForeground2)",cl="var(--colorPaletteBeigeBackground2)",dl="var(--colorPaletteBeigeForeground2)",hl="var(--colorPaletteBlueBackground2)",ul="var(--colorPaletteBlueForeground2)",pl="var(--colorPaletteBrassBackground2)",gl="var(--colorPaletteBrassForeground2)",fl="var(--colorPaletteBrownBackground2)",bl="var(--colorPaletteBrownForeground2)",ml="var(--colorPaletteCornflowerBackground2)",$l="var(--colorPaletteCornflowerForeground2)",vl="var(--colorPaletteCranberryBackground2)",yl="var(--colorPaletteCranberryForeground2)",kl="var(--colorPaletteDarkGreenBackground2)",xl="var(--colorPaletteDarkGreenForeground2)",wl="var(--colorPaletteDarkRedBackground2)",Cl="var(--colorPaletteDarkRedForeground2)",Il="var(--colorPaletteForestBackground2)",Sl="var(--colorPaletteForestForeground2)",Pl="var(--colorPaletteGoldBackground2)",Tl="var(--colorPaletteGoldForeground2)",Bl="var(--colorPaletteGrapeBackground2)",zl="var(--colorPaletteGrapeForeground2)",Al="var(--colorPaletteLavenderBackground2)",Fl="var(--colorPaletteLavenderForeground2)",Ol="var(--colorPaletteLightTealBackground2)",_l="var(--colorPaletteLightTealForeground2)",Ml="var(--colorPaletteLilacBackground2)",Nl="var(--colorPaletteLilacForeground2)",El="var(--colorPaletteMagentaBackground2)",Ll="var(--colorPaletteMagentaForeground2)",Dl="var(--colorPaletteMinkBackground2)",Hl="var(--colorPaletteMinkForeground2)",Vl="var(--colorPaletteNavyBackground2)",jl="var(--colorPaletteNavyForeground2)",Rl="var(--colorPalettePeachBackground2)",ql="var(--colorPalettePeachForeground2)",Gl="var(--colorPalettePinkBackground2)",Wl="var(--colorPalettePinkForeground2)",Ul="var(--colorPalettePlatinumBackground2)",Xl="var(--colorPalettePlatinumForeground2)",Kl="var(--colorPalettePlumBackground2)",Yl="var(--colorPalettePlumForeground2)",Ql="var(--colorPalettePumpkinBackground2)",Zl="var(--colorPalettePumpkinForeground2)",Jl="var(--colorPalettePurpleBackground2)",tc="var(--colorPalettePurpleForeground2)",ec="var(--colorPaletteRoyalBlueBackground2)",oc="var(--colorPaletteRoyalBlueForeground2)",sc="var(--colorPaletteSeafoamBackground2)",ic="var(--colorPaletteSeafoamForeground2)",rc="var(--colorPaletteSteelBackground2)",nc="var(--colorPaletteSteelForeground2)",ac="var(--colorPaletteTealBackground2)",lc="var(--colorPaletteTealForeground2)",ci="var(--borderRadiusNone)",Et="var(--borderRadiusSmall)",_="var(--borderRadiusMedium)",Vr="var(--borderRadiusLarge)",jr="var(--borderRadiusXLarge)",ct="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",cc="var(--fontFamilyMonospace)",dc="var(--fontFamilyNumeric)",no="var(--fontSizeBase100)",W="var(--fontSizeBase200)",F="var(--fontSizeBase300)",dt="var(--fontSizeBase400)",Ae="var(--fontSizeBase500)",is="var(--fontSizeBase600)",Rr="var(--fontSizeHero700)",qr="var(--fontSizeHero800)",Gr="var(--fontSizeHero900)",Wr="var(--fontSizeHero1000)",L="var(--fontWeightRegular)",hc="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",rs="var(--fontWeightBold)",ns="var(--lineHeightBase100)",st="var(--lineHeightBase200)",H="var(--lineHeightBase300)",$t="var(--lineHeightBase400)",as="var(--lineHeightBase500)",Ur="var(--lineHeightBase600)",Xr="var(--lineHeightHero700)",Kr="var(--lineHeightHero800)",Yr="var(--lineHeightHero900)",Qr="var(--lineHeightHero1000)",Zr="var(--shadow2)",ls="var(--shadow4)",uc="var(--shadow8)",Jr="var(--shadow16)",pc="var(--shadow28)",tn="var(--shadow64)",K="var(--strokeWidthThin)",Ct="var(--strokeWidthThick)",tt="var(--strokeWidthThicker)",di="var(--strokeWidthThickest)",gt="var(--spacingHorizontalXXS)",Qt="var(--spacingHorizontalXS)",It="var(--spacingHorizontalSNudge)",Zt="var(--spacingHorizontalS)",ft="var(--spacingHorizontalMNudge)",bt="var(--spacingHorizontalM)",gc="var(--spacingHorizontalL)",fc="var(--spacingHorizontalXL)",bc="var(--spacingHorizontalXXL)",ao="var(--spacingVerticalXXS)",mc="var(--spacingVerticalXS)",fe="var(--spacingVerticalSNudge)",it="var(--spacingVerticalS)",Fe="var(--spacingVerticalMNudge)",$c="var(--spacingVerticalM)",cs="var(--spacingVerticalL)",lo="var(--spacingVerticalXXL)",vc="var(--durationUltraFast)",hi="var(--durationFaster)",en="var(--durationNormal)",ui="var(--durationGentle)",on="var(--durationSlow)",sn="var(--durationSlower)",ds="var(--durationUltraSlow)",yc="var(--curveAccelerateMax)",co="var(--curveAccelerateMid)",kc="var(--curveAccelerateMin)",pi="var(--curveDecelerateMax)",ho="var(--curveDecelerateMid)",xc="var(--curveDecelerateMin)",wc="var(--curveEasyEaseMax)",hs="var(--curveEasyEase)",gi="var(--curveLinear)",Cc=l`
2
- ${I("block")}
1
+ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Ao;const Ri="fast-kernel";try{if(document.currentScript)Ao=document.currentScript.getAttribute(Ri);else{const o=document.getElementsByTagName("script");Ao=o[o.length-1].getAttribute(Ri)}}catch{Ao="isolate"}let ue;switch(Ao){case"share":ue=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ue=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)}`;ue=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ie=o=>typeof o=="function",Et=o=>typeof o=="string",ji=()=>{};var Ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Ms<"u")Ms.globalThis=Ms;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 qi={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},qi));const et=globalThis.FAST;if(et.getById===void 0){const o=Object.create(null);Reflect.defineProperty(et,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},qi))}et.error===void 0&&Object.assign(et,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Rn=Object.freeze([]);function Ds(){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 Gi(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=o.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function Se(o){o.prototype.toJSON=ji}const at=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Wi=o=>o,jn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Wi}):{createHTML:Wi};let Fo=Object.freeze({createHTML(o){return jn.createHTML(o)},protect(o,t,e,s){return s}});const qn=Fo,ze=Object.freeze({get policy(){return Fo},setPolicy(o){if(Fo!==qn)throw et.error(1201);Fo=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)}}),_t=et.getById(ue.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(g){try{g.call()}catch(p){if(s)t.push(p),setTimeout(i,0);else throw o.length=0,p}}function n(){let p=0;for(;p<o.length;)if(r(o[p]),p++,p>1024){for(let d=0,m=o.length-p;d<m;d++)o[d]=o[d+p];o.length-=p,p=0}o.length=0}function h(g){o.push(g),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:g=>s=g})});class Ls{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 s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(s,t)}}class Ui{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,i;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new Ls(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Ls(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,i;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const Vs=Object.freeze({unknown:void 0,coupled:1}),f=et.getById(ue.observable,()=>{const o=_t.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=p=>{throw et.error(1101)};function r(p){var d;let m=(d=p.$fastController)!==null&&d!==void 0?d:e.get(p);return m===void 0&&(Array.isArray(p)?m=i(p):e.set(p,m=new Ui(p))),m}const n=Gi();class h{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return s!==void 0&&s.watch(d,this.name),d[this.field]}setValue(d,m){const A=this.field,W=d[A];if(W!==m){d[A]=m;const se=d[this.callback];Ie(se)&&se.call(d,W,m),r(d).notify(this.name)}}}class g extends Ls{constructor(d,m,A=!1){super(d,m),this.expression=d,this.isVolatileBinding=A,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(d){this.isAsync=this.needsQueue=d}bind(d){this.controller=d;const m=this.observe(d.source,d.context);return!d.isBound&&this.requiresUnbind(d)&&d.onUnbind(this),m}requiresUnbind(d){return d.sourceLifetime!==Vs.coupled||this.first!==this.last||this.first.propertySource!==d.source}unbind(d){this.dispose()}observe(d,m){this.needsRefresh&&this.last!==null&&this.dispose();const A=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let W;try{W=this.expression(d,m)}finally{s=A}return W}disconnect(){this.dispose()}dispose(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(d,m){const A=this.last,W=r(d),se=A===null?this.first:{};if(se.propertySource=d,se.propertyName=m,se.notifier=W,W.subscribe(this,m),A!==null){if(!this.needsRefresh){let Hi;s=void 0,Hi=A.propertySource[A.propertyName],s=this,d===Hi&&(this.needsRefresh=!0)}A.next=se}this.last=se}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 d=this.first;for(;d!==void 0;)yield d,d=d.next}}return Se(g),Object.freeze({setArrayObserverFactory(p){i=p},getNotifier:r,track(p,d){s&&s.watch(p,d)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(p,d){r(p).notify(d)},defineProperty(p,d){Et(d)&&(d=new h(d)),n(p).push(d),Reflect.defineProperty(p,d.name,{enumerable:!0,get(){return d.getValue(this)},set(m){d.setValue(this,m)}})},getAccessors:n,binding(p,d,m=this.isVolatileBinding(p)){return new g(p,d,m)},isVolatileBinding(p){return t.test(p.toString())}})});function k(o,t){f.defineProperty(o,t)}function Gn(o,t,e){return Object.assign({},e,{get(){return f.trackVolatile(),e.get.apply(this)}})}const Xi=et.getById(ue.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),Qe=Object.freeze({default:{index:0,length:0,get event(){return Qe.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return Xi.get()},setEvent(o){Xi.set(o)}});class Oo{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class Wn extends Oo{createObserver(t){return f.binding(this.evaluate,t,this.isVolatile)}}function Ki(o,t,e=f.isVolatileBinding(o)){return new Wn(o,t,e)}class Yi extends Oo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}Se(Yi);function Qi(o,t){return new Yi(o,t)}let Zi;function Ji(o){return o.map(t=>t instanceof mt?Ji(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class mt{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof mt?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Zi),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(Ji(this.styles)),this}static setDefaultStrategy(t){Zi=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new mt(t):t instanceof mt?t:new mt([t])}}mt.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Hs=Ds(),Rs=Object.freeze({getForInstance:Hs.getForInstance,getByType:Hs.getByType,define(o){return Hs.register({type:o}),o}});function js(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class qs{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const s=t.source;if(!s.$cssBindings){s.$cssBindings=new Map;const r=s.setAttribute;s.setAttribute=(n,h)=>{r.call(s,n,h),n==="style"&&s.$cssBindings.forEach((g,p)=>js(p,g.controller,g.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){js(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){js(this,e.controller,e)}}Rs.define(qs);const Un=`${Math.random().toString(36).substring(2,8)}`;let Xn=0;const tr=()=>`--v${Un}${++Xn}`;function er(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,h=o.length-1;n<h;++n){s+=o[n];let g=t[n];Ie(g)?g=new qs(Ki(g),tr()).createCSS(r):g instanceof Oo?g=new qs(g,tr()).createCSS(r):Rs.getForInstance(g)!==void 0&&(g=g.createCSS(r)),g instanceof mt||g instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(g)):s+=g}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=er(o,t),i=new mt(e);return s.length?i.withBehaviors(...s):i};class or{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Et(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new mt(s))}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)}}Rs.define(or),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=er(o,t);return new or(e,s)};const Gs=`fast-${Math.random().toString(36).substring(2,8)}`,Eo=`${Gs}{`,Ze=`}${Gs}`,Kn=Ze.length;let Yn=0;const Ws=()=>`${Gs}-${++Yn}`,sr=Object.freeze({interpolation:o=>`${Eo}${o}${Ze}`,attribute:o=>`${Ws()}="${Eo}${o}${Ze}"`,comment:o=>`<!--${Eo}${o}${Ze}-->`}),_o=Object.freeze({parse(o,t){const e=o.split(Eo);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(Ze);let g;if(h===-1)g=n;else{const p=n.substring(0,h);s.push(t[p]),g=n.substring(h+Kn)}g!==""&&s.push(g)}return s}}),Us=Ds(),St=Object.freeze({getForInstance:Us.getForInstance,getByType:Us.getByType,define(o,t){return t=t||{},t.type=o,Us.register(t),o},assignAspect(o,t){if(!t){o.aspectType=at.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?at.tokenList:at.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=at.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=at.event;break;default:o.targetAspect=t,o.aspectType=at.attribute;break}}});class Xs{constructor(t){this.options=t}createHTML(t){return sr.attribute(t(this))}createBehavior(){return this}}Se(Xs);function Qn(o,t,e,s){if(e==null&&(e=""),e.create){o.textContent="";let i=o.$fastView;i===void 0?i=e.create():o.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(s.source,s.context)):(i.isComposed=!0,i.bind(s.source,s.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=e)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=e}}function Zn(o,t,e){var s;const i=`${this.id}-t`,r=(s=o[i])!==null&&s!==void 0?s:o[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const g=o[t];if(e!=null&&e.length){const p=e.split(/\s+/);for(let d=0,m=p.length;d<m;++d){const A=p[d];A!==""&&(n[A]=h,g.add(A))}}if(r.v=h+1,h!==0){h-=1;for(const p in n)n[p]===h&&g.remove(p)}}const Jn={[at.attribute]:ze.setAttribute,[at.booleanAttribute]:ze.setBooleanAttribute,[at.property]:(o,t,e)=>o[t]=e,[at.content]:Qn,[at.tokenList]:Zn,[at.event]:()=>{}};class Pe{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=at.content}createHTML(t){return sr.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=Jn[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw et.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId];switch(this.aspectType){case at.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case at.content:t.onUnbind(this);default:const i=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);i.target=s,i.controller=t,this.updateTarget(s,this.targetAspect,i.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Qe.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);Qe.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,i=e.controller;this.updateTarget(s,this.targetAspect,e.bind(i),i)}}St.define(Pe,{aspected:!0});function ir(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;)i=s.nextSibling,e.removeChild(s),s=i;e.removeChild(t)}class No{constructor(t,e,s){this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Vs.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Qe.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 s=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,s.insertBefore(i,t),i=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,i;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){ir(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),s[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=s.length;i<r;++i)s[i].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,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){ir(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}Se(No),f.defineProperty(No.prototype,"index"),f.defineProperty(No.prototype,"length");const rr=(o,t)=>`${o}.${t}`,nr={},Nt={index:0,node:null};function ar(o){o.startsWith("fast-")||et.warn(1204,{name:o})}const ta=new Proxy(document.createElement("div"),{get(o,t){ar(t);const e=Reflect.get(o,t);return Ie(e)?e.bind(o):e},set(o,t,e){return ar(t),Reflect.set(o,t,e)}});class ea{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,i,r){var n,h;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:Ws(),t.targetNodeId=s,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),g=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,g)}let r=nr[e];if(!r){const n=`_${e}`;nr[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[s]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??ta;for(const i of this.nodeIds)s[i];return new No(e,this.factories,s)}}function lr(o,t,e,s,i,r=!1){const n=e.attributes,h=o.directives;for(let g=0,p=n.length;g<p;++g){const d=n[g],m=d.value,A=_o.parse(m,h);let W=null;A===null?r&&(W=new Pe(Qi(()=>m,o.policy)),St.assignAspect(W,d.name)):W=Ks.aggregate(A,o.policy),W!==null&&(e.removeAttributeNode(d),g--,p--,o.addFactory(W,t,s,i,e.tagName))}}function oa(o,t,e,s,i){const r=_o.parse(t.textContent,o.directives);if(r===null)return Nt.node=t.nextSibling,Nt.index=i+1,Nt;let n,h=n=t;for(let g=0,p=r.length;g<p;++g){const d=r[g];g!==0&&(i++,s=rr(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),Et(d)?n.textContent=d:(n.textContent=" ",St.assignAspect(d),o.addFactory(d,e,s,i,null)),h=n}return Nt.index=i+1,Nt.node=h.nextSibling,Nt}function cr(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=sa(o,e,i,s);i=r.node,s=r.index}}function sa(o,t,e,s){const i=rr(t,s);switch(e.nodeType){case 1:lr(o,t,e,i,s),cr(o,e,i);break;case 3:return oa(o,e,t,i,s);case 8:const r=_o.parse(e.data,o.directives);r!==null&&o.addFactory(Ks.aggregate(r),t,i,s,null);break}return Nt.index=s+1,Nt.node=e.nextSibling,Nt}function ia(o,t){return o&&o.nodeType==8&&_o.parse(o.data,t)!==null}const dr="TEMPLATE",Ks={compile(o,t,e=ze.policy){let s;if(Et(o)){s=document.createElement(dr),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===dr&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new ea(i,t,e);return lr(r,"",s,"h",0,!0),(ia(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),cr(r,i,"r"),Nt.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=ze.policy){if(o.length===1)return o[0];let e,s,i=!1,r;const n=o.length,h=o.map(d=>Et(d)?()=>d:(e=d.sourceAspect||e,s=d.dataBinding||s,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),g=(d,m)=>{let A="";for(let W=0;W<n;++W)A+=h[W](d,m);return A};s.evaluate=g,s.isVolatile=i,s.policy=r??t;const p=new Pe(s);return St.assignAspect(p,e),p}},ra=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,na=Object.create(null);class pe{constructor(t,e=na){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}pe.empty=new pe(""),St.define(pe);function aa(o,t,e,s=St.getForInstance(o)){if(s.aspected){const i=ra.exec(t);i!==null&&St.assignAspect(o,i[2])}return o.createHTML(e)}class Es{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=Ks.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new pe(Et(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw et.error(1208);if(this.policy)throw et.error(1207);return this.policy=t,this}render(t,e,s){const i=this.create(s);return i.bind(t),i.appendTo(e),i}static create(t,e,s){let i="";const r=Object.create(null),n=h=>{var g;const p=(g=h.id)!==null&&g!==void 0?g:h.id=Ws();return r[p]=h,p};for(let h=0,g=t.length-1;h<g;++h){const p=t[h];let d=e[h],m;if(i+=p,Ie(d))d=new Pe(Ki(d));else if(d instanceof Oo)d=new Pe(d);else if(!(m=St.getForInstance(d))){const A=d;d=new Pe(Qi(()=>A))}i+=aa(d,p,n,m)}return new Es(i+t[t.length-1],r,s)}}Se(Es);const b=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Es.create(o,t);throw et.error(1206)};b.partial=o=>new pe(o);class hr extends Xs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}St.define(hr);const kt=o=>new hr(o),la=o=>o.nodeType===1,Je=o=>o?t=>t.nodeType===1&&t.matches(o):la;class ur extends Xs{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,Rn),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 pr="slotchange";class gr extends ur{observe(t){t.addEventListener(pr,this)}disconnect(t){t.removeEventListener(pr,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}St.define(gr);function lt(o){return Et(o)&&(o={property:o}),new gr(o)}class br extends ur{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,s)=>{const i=s.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=ji,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)}}St.define(br);function ca(o){return Et(o)&&(o={property:o}),new br(o)}const fr="boolean",mr="reflect",Mo=Object.freeze({locate:Gi()}),da={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function $r(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const ot={toView(o){const t=$r(o);return t&&t.toString()},fromView:$r};class _s{constructor(t,e,s=e.toLowerCase(),i=mr,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===fr&&r===void 0&&(this.converter=da)}setValue(t,e){const s=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return f.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,s=this.guards;s.has(t)||e==="fromView"||_t.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case mr:const r=this.converter;ze.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case fr:ze.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(Mo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,g=n.length;h<g;++h){const p=n[h];Et(p)?s.push(new _s(t,p)):s.push(new _s(t,p.property,p.attribute,p.mode,p.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),Mo.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const vr={mode:"open"},yr={},kr=new Set,Do=et.getById(ue.elementRegistry,()=>Ds());class Ot{constructor(t,e=t.definition){var s;this.platformDefined=!1,Et(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const i=t.prototype,r=_s.collect(t,e.attributes),n=new Array(r.length),h={},g={};for(let p=0,d=r.length;p<d;++p){const m=r[p];n[p]=m.attribute,h[m.name]=m,g[m.attribute]=m,f.defineProperty(i,m)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=g,this.shadowOptions=e.shadowOptions===void 0?vr:e.shadowOptions===null?void 0:Object.assign(Object.assign({},vr),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?yr:Object.assign(Object.assign({},yr),e.elementOptions),this.styles=mt.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 kr.has(t)||Do.getByType(t)?new Ot(class extends t{},e):new Ot(t,e)}static registerBaseType(t){kr.add(t)}}Ot.getByType=Do.getByType,Ot.getForInstance=Do.getForInstance;const ha={bubbles:!0,composed:!0,cancelable:!0},Ys="isConnected",xr=new WeakMap;function Lo(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:xr.get(o))!==null&&e!==void 0?e:null}let wr;class Vo extends Ui{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 s=e.shadowOptions;if(s!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(s),s.mode==="closed"&&xr.set(t,r))}const i=f.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const g=i[n].name,p=t[g];p!==void 0&&(delete t[g],r[g]=p)}}}get isConnected(){return f.track(this,Ys),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:Qe.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,s;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=i.get(t))!==null&&s!==void 0?s:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const i=s.get(t);i!==void 0&&(i===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,i-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Lo(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const i=t.behaviors;if(t.addStylesTo(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=Lo(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const i=t.behaviors;if(t.removeStylesFrom(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,s=this.boundObservables,i=Object.keys(s);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=s[h]}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,f.notify(this,Ys)}disconnect(){if(this.stage!==1)return;this.stage=2,f.notify(this,Ys),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,s){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},ha),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=Lo(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(s,i,s),this.view.sourceLifetime=Vs.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=Ot.getForInstance(t);if(s===void 0)throw et.error(1401);return t.$fastController=new wr(t,s)}static setStrategy(t){wr=t}}Se(Vo),Vo.setStrategy(Vo);function Ho(o){var t;return"adoptedStyleSheets"in o?o:(t=Lo(o))!==null&&t!==void 0?t:o.getRootNode()}class Ns{constructor(t){const e=Ns.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){Ir(Ho(t),this.sheets)}removeStylesFrom(t){Sr(Ho(t),this.sheets)}}Ns.styleSheetCache=new Map;let ua=0;const pa=()=>`fast-${++ua}`;function Cr(o){return o===document?document.body:o}class ga{constructor(t){this.styles=t,this.styleClass=pa()}addStylesTo(t){t=Cr(Ho(t));const e=this.styles,s=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=s,t.append(r)}}removeStylesFrom(t){t=Cr(Ho(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let Ir=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},Sr=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(mt.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ir=(o,t)=>{o.adoptedStyleSheets.push(...t)},Sr=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}mt.setDefaultStrategy(Ns)}else mt.setDefaultStrategy(ga);function zr(o){const t=class extends o{constructor(){super(),Vo.forCustomElement(this)}$emit(e,s,i){return this.$fastController.emit(e,s,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,i){this.$fastController.onAttributeChangedCallback(e,s,i)}};return Ot.registerBaseType(t),t}function ba(o,t){return Ie(o)?Ot.compose(o,t):Ot.compose(this,o)}function fa(o,t){return Ie(o)?Ot.compose(o,t).define().type:Ot.compose(this,o).define().type}function ma(o){return zr(o)}const x=Object.assign(zr(HTMLElement),{from:ma,define:fa,compose:ba}),$t={horizontal:"horizontal",vertical:"vertical"};function $a(o,t){let e=o.length;for(;e--;)if(t(o[e],e,o))return e;return-1}function Pr(...o){return o.every(t=>t instanceof HTMLElement)}const Ro="ArrowDown",jo="ArrowLeft",qo="ArrowRight",Go="ArrowUp",Wo="End",Uo="Enter",va="Escape",Xo="Home",Qs=" ",ya="Tab";var zt;(function(o){o.ltr="ltr",o.rtl="rtl"})(zt||(zt={}));function ka(o,t,e){return e<o?t:e>t?o:e}function Zs(o,t,e){return Math.min(Math.max(e,o),t)}let xa=0;function to(o=""){return`${o}${xa++}`}var wa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,H=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ca(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&wa(t,e,i),i};class R{}H([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),H([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),H([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),H([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),H([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),H([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),H([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),H([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),H([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),H([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),H([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),H([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),H([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),H([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),H([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),H([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),H([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),H([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),H([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const Js={fromView(o){const t=parseFloat(o);return Number.isNaN(t)?"":t.toString()},toView(o){const t=parseFloat(o);return Number.isNaN(t)?void 0:t.toString()}},ti=o=>o.closest("[dir]")?.dir==="rtl"?zt.rtl:zt.ltr;function xt(o){return o?typeof o=="string"?new pe(o):"inline"in o?o.inline():o:pe.empty}const ei=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Ia=":host([hidden]){display:none}";function C(o){return`${Ia}:host{display:${o}}`}class Sa{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class Bo extends Sa{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Bo(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Q=Bo.with(window.matchMedia("(forced-colors)"));Bo.with(window.matchMedia("(prefers-color-scheme: dark)")),Bo.with(window.matchMedia("(prefers-color-scheme: light)"));class Gt{}function ie(o){return b`<slot name="end" ${kt("end")}>${xt(o.end)}</slot>`.inline()}function Wt(o){return b`<slot name="start" ${kt("start")}>${xt(o.start)}</slot>`.inline()}function Ut(o,...t){const e=Mo.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),Mo.locate(s).forEach(r=>e.push(r))})}const za=CSS.supports("selector(:state(g))");function c(o,t,e){if(!za){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e??!o.states.has(t)){o.states.add(t);return}o.states.delete(t)}var Pa=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,ge=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ta(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Pa(t,e,i),i};class Xt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=to("accordion-")}expandedChanged(t,e){c(this.elementInternals,"expanded",e)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}ge([a({attribute:"heading-level",mode:"fromView",converter:ot})],Xt.prototype,"headinglevel",2),ge([a({mode:"boolean"})],Xt.prototype,"expanded",2),ge([a({mode:"boolean"})],Xt.prototype,"disabled",2),ge([a],Xt.prototype,"id",2);class eo extends Xt{constructor(){super(...arguments),this.block=!1}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}markerPositionChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}blockChanged(t,e){c(this.elementInternals,"block",e)}}ge([a],eo.prototype,"size",2),ge([a({attribute:"marker-position"})],eo.prototype,"markerPosition",2),ge([a({mode:"boolean"})],eo.prototype,"block",2),Ut(eo,Gt);const v=l.partial`:is([state--checked], :state(checked))`,E=l.partial`:is([state--disabled], :state(disabled))`,Te=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Be=l.partial`:is([state--filled-darker], :state(filled-darker))`,Kt=l.partial`:is([state--ghost], :state(ghost))`,Tr=l.partial`:is([state--inverted], :state(inverted))`,ht=l.partial`:is([state--primary], :state(primary))`,U=l.partial`:is([state--outline], :state(outline))`,oo=l.partial`:is([state--strong], :state(strong))`,S=l.partial`:is([state--subtle], :state(subtle))`,re=l.partial`:is([state--tint], :state(tint))`,so=l.partial`:is([state--underline], :state(underline))`,Z=l.partial`:is([state--transparent], :state(transparent))`,io=l.partial`:is([state--circular], :state(circular))`,Yt=l.partial`:is([state--rounded], :state(rounded))`,ro=l.partial`:is([state--square], :state(square))`,no=l.partial`:is([state--tiny], :state(tiny))`,ao=l.partial`:is([state--extra-small], :state(extra-small))`,z=l.partial`:is([state--small], :state(small))`;l.partial`:is([state--medium], :state(medium))`;const w=l.partial`:is([state--large], :state(large))`,Ko=l.partial`:is([state--extra-large], :state(extra-large))`,Ba=l.partial`:is([state--huge], :state(huge))`,Br=l.partial`:is([state--align-start], :state(align-start))`,Qt=l.partial`:is([state--align-end], :state(align-end))`,oi=l.partial`:is([state--inset], :state(inset))`,Ae=l.partial`:is([state--icon], :state(icon))`,O=l.partial`:is([state--pressed], :state(pressed))`,Zt=l.partial`:is([state--brand], :state(brand))`,si=l.partial`:is([state--error], :state(error))`,Yo=l.partial`:is([state--danger], :state(danger))`,Qo=l.partial`:is([state--important], :state(important))`,Zo=l.partial`:is([state--informative], :state(informative))`;l.partial`:is([state--marigold], :state(marigold))`;const Jo=l.partial`:is([state--neutral], :state(neutral))`,ts=l.partial`:is([state--severe], :state(severe))`,be=l.partial`:is([state--success], :state(success))`,fe=l.partial`:is([state--warning], :state(warning))`,I=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`,l.partial`:is([state--singleline], :state(singleline))`;const lo=l.partial`:is([state--multiline], :state(multiline))`,me=l.partial`:is([state--expanded], :state(expanded))`,ii=l.partial`:is([state--block], :state(block))`;l.partial`:is([state--resize], :state(resize))`;const Aa=l.partial`:is([state--resize-horizontal], :state(resize-horizontal))`,Fa=l.partial`:is([state--resize-vertical], :state(resize-vertical))`,Oa=l.partial`:is([state--resize-both], :state(resize-both))`,Ar=l.partial`:is([state--auto-resize], :state(auto-resize))`,Fr=l.partial`:is([state--display-shadow], :state(display-shadow))`,Ea=l.partial`:is([state--user-invalid], :state(user-invalid))`;l.partial`:is([state--user-valid], :state(user-valid))`;const B="var(--colorNeutralForeground1)",ri="var(--colorNeutralForeground1Hover)",_a="var(--colorNeutralForeground1Pressed)",Mt="var(--colorNeutralForeground2)",es="var(--colorNeutralForeground2Hover)",os="var(--colorNeutralForeground2Pressed)",Na="var(--colorNeutralForeground2Selected)",ss="var(--colorNeutralForeground2BrandHover)",is="var(--colorNeutralForeground2BrandPressed)",Ma="var(--colorNeutralForeground2BrandSelected)",ut="var(--colorNeutralForeground3)",Da="var(--colorNeutralForeground3Hover)",La="var(--colorNeutralForeground3Pressed)",Or="var(--colorNeutralForeground4)",P="var(--colorNeutralForegroundDisabled)",Va="var(--colorBrandForegroundLink)",Ha="var(--colorBrandForegroundLinkHover)",Ra="var(--colorBrandForegroundLinkPressed)",ja="var(--colorNeutralForeground2Link)",qa="var(--colorNeutralForeground2LinkHover)",Ga="var(--colorNeutralForeground2LinkPressed)",Er="var(--colorCompoundBrandForeground1Hover)",Wa="var(--colorCompoundBrandForeground1Pressed)",Jt="var(--colorNeutralForegroundOnBrand)",Fe="var(--colorNeutralForegroundInverted)",Ua="var(--colorNeutralForegroundInvertedHover)",Xa="var(--colorNeutralForegroundInvertedPressed)",_r="var(--colorNeutralForegroundStaticInverted)",ni="var(--colorBrandForeground1)",Ka="var(--colorBrandForeground2)",Ya="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",ai="var(--colorNeutralBackground1Hover)",li="var(--colorNeutralBackground1Pressed)",Nr="var(--colorNeutralBackground1Selected)",rs="var(--colorNeutralBackground3)",Qa="var(--colorNeutralBackground4)",Za="var(--colorNeutralBackground5)",ns="var(--colorNeutralBackground6)",Mr="var(--colorNeutralBackgroundInverted)",Ja="var(--colorSubtleBackground)",as="var(--colorSubtleBackgroundHover)",Oe="var(--colorSubtleBackgroundPressed)",tl="var(--colorSubtleBackgroundSelected)",wt="var(--colorTransparentBackground)",ci="var(--colorTransparentBackgroundHover)",di="var(--colorTransparentBackgroundPressed)",el="var(--colorTransparentBackgroundSelected)",Ee="var(--colorNeutralBackgroundDisabled)",hi="var(--colorBackgroundOverlay)",ui="var(--colorBrandBackground)",Dr="var(--colorBrandBackgroundHover)",Lr="var(--colorBrandBackgroundPressed)",ol="var(--colorBrandBackgroundSelected)",_e="var(--colorCompoundBrandBackground)",co="var(--colorCompoundBrandBackgroundHover)",ho="var(--colorCompoundBrandBackgroundPressed)",Vr="var(--colorBrandBackgroundStatic)",sl="var(--colorBrandBackground2)",ne="var(--colorNeutralStrokeAccessible)",Ne="var(--colorNeutralStrokeAccessibleHover)",Me="var(--colorNeutralStrokeAccessiblePressed)",ae="var(--colorNeutralStroke1)",uo="var(--colorNeutralStroke1Hover)",ls="var(--colorNeutralStroke1Pressed)",po="var(--colorNeutralStroke2)",il="var(--colorNeutralStroke3)",rl="var(--colorNeutralStrokeOnBrand2)",Hr="var(--colorBrandStroke1)",pi="var(--colorBrandStroke2)",go="var(--colorCompoundBrandStroke)",nl="var(--colorCompoundBrandStrokeHover)",Rr="var(--colorCompoundBrandStrokePressed)",Pt="var(--colorNeutralStrokeDisabled)",pt="var(--colorTransparentStroke)",jr="var(--colorTransparentStrokeInteractive)",gi="var(--colorStrokeFocus1)",Dt="var(--colorStrokeFocus2)",qr="var(--colorPaletteRedBackground1)",al="var(--colorPaletteRedBackground2)",Gr="var(--colorPaletteRedBackground3)",Wr="var(--colorPaletteRedBorder1)",bi="var(--colorPaletteRedBorder2)",Ur="var(--colorPaletteRedForeground1)",ll="var(--colorPaletteRedForeground2)",Xr="var(--colorPaletteRedForeground3)",Kr="var(--colorPaletteGreenBackground1)",Yr="var(--colorPaletteGreenBackground3)",cl="var(--colorPaletteGreenBorder1)",dl="var(--colorPaletteGreenBorder2)",hl="var(--colorPaletteGreenForeground1)",ul="var(--colorPaletteGreenForeground2)",pl="var(--colorPaletteGreenForeground3)",Qr="var(--colorPaletteDarkOrangeBackground1)",Zr="var(--colorPaletteDarkOrangeBackground3)",Jr="var(--colorPaletteDarkOrangeBorder1)",gl="var(--colorPaletteDarkOrangeForeground1)",tn="var(--colorPaletteDarkOrangeForeground3)",bl="var(--colorPaletteYellowBackground1)",fl="var(--colorPaletteYellowBackground3)",ml="var(--colorPaletteYellowBorder1)",fi="var(--colorPaletteYellowForeground2)",en="var(--colorPaletteMarigoldBackground2)",$l="var(--colorPaletteMarigoldBackground3)",vl="var(--colorPaletteMarigoldForeground2)",yl="var(--colorPaletteAnchorBackground2)",kl="var(--colorPaletteAnchorForeground2)",xl="var(--colorPaletteBeigeBackground2)",wl="var(--colorPaletteBeigeForeground2)",Cl="var(--colorPaletteBlueBackground2)",Il="var(--colorPaletteBlueForeground2)",Sl="var(--colorPaletteBrassBackground2)",zl="var(--colorPaletteBrassForeground2)",Pl="var(--colorPaletteBrownBackground2)",Tl="var(--colorPaletteBrownForeground2)",Bl="var(--colorPaletteCornflowerBackground2)",Al="var(--colorPaletteCornflowerForeground2)",Fl="var(--colorPaletteCranberryBackground2)",Ol="var(--colorPaletteCranberryForeground2)",El="var(--colorPaletteDarkGreenBackground2)",_l="var(--colorPaletteDarkGreenForeground2)",Nl="var(--colorPaletteDarkRedBackground2)",Ml="var(--colorPaletteDarkRedForeground2)",Dl="var(--colorPaletteForestBackground2)",Ll="var(--colorPaletteForestForeground2)",Vl="var(--colorPaletteGoldBackground2)",Hl="var(--colorPaletteGoldForeground2)",Rl="var(--colorPaletteGrapeBackground2)",jl="var(--colorPaletteGrapeForeground2)",ql="var(--colorPaletteLavenderBackground2)",Gl="var(--colorPaletteLavenderForeground2)",Wl="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)",sc="var(--colorPalettePeachForeground2)",ic="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)",gc="var(--colorPaletteRoyalBlueBackground2)",bc="var(--colorPaletteRoyalBlueForeground2)",fc="var(--colorPaletteSeafoamBackground2)",mc="var(--colorPaletteSeafoamForeground2)",$c="var(--colorPaletteSteelBackground2)",vc="var(--colorPaletteSteelForeground2)",yc="var(--colorPaletteTealBackground2)",kc="var(--colorPaletteTealForeground2)",mi="var(--borderRadiusNone)",Lt="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",on="var(--borderRadiusLarge)",sn="var(--borderRadiusXLarge)",gt="var(--borderRadiusCircular)",$="var(--fontFamilyBase)",xc="var(--fontFamilyMonospace)",wc="var(--fontFamilyNumeric)",bo="var(--fontSizeBase100)",j="var(--fontSizeBase200)",F="var(--fontSizeBase300)",ct="var(--fontSizeBase400)",De="var(--fontSizeBase500)",cs="var(--fontSizeBase600)",rn="var(--fontSizeHero700)",nn="var(--fontSizeHero800)",an="var(--fontSizeHero900)",ln="var(--fontSizeHero1000)",N="var(--fontWeightRegular)",Cc="var(--fontWeightMedium)",V="var(--fontWeightSemibold)",ds="var(--fontWeightBold)",hs="var(--lineHeightBase100)",st="var(--lineHeightBase200)",L="var(--lineHeightBase300)",vt="var(--lineHeightBase400)",us="var(--lineHeightBase500)",cn="var(--lineHeightBase600)",dn="var(--lineHeightHero700)",hn="var(--lineHeightHero800)",un="var(--lineHeightHero900)",pn="var(--lineHeightHero1000)",$i="var(--shadow2)",ps="var(--shadow4)",Ic="var(--shadow8)",gn="var(--shadow16)",Sc="var(--shadow28)",bn="var(--shadow64)",X="var(--strokeWidthThin)",Tt="var(--strokeWidthThick)",it="var(--strokeWidthThicker)",vi="var(--strokeWidthThickest)",dt="var(--spacingHorizontalXXS)",Vt="var(--spacingHorizontalXS)",yt="var(--spacingHorizontalSNudge)",te="var(--spacingHorizontalS)",bt="var(--spacingHorizontalMNudge)",ft="var(--spacingHorizontalM)",zc="var(--spacingHorizontalL)",Pc="var(--spacingHorizontalXL)",Tc="var(--spacingHorizontalXXL)",fo="var(--spacingVerticalXXS)",yi="var(--spacingVerticalXS)",le="var(--spacingVerticalSNudge)",rt="var(--spacingVerticalS)",Le="var(--spacingVerticalMNudge)",Bc="var(--spacingVerticalM)",gs="var(--spacingVerticalL)",mo="var(--spacingVerticalXXL)",fn="var(--durationUltraFast)",ki="var(--durationFaster)",xi="var(--durationNormal)",wi="var(--durationGentle)",mn="var(--durationSlow)",$n="var(--durationSlower)",bs="var(--durationUltraSlow)",Ac="var(--curveAccelerateMax)",Ve="var(--curveAccelerateMid)",Fc="var(--curveAccelerateMin)",Ci="var(--curveDecelerateMax)",He="var(--curveDecelerateMid)",Oc="var(--curveDecelerateMin)",Ec="var(--curveEasyEaseMax)",fs="var(--curveEasyEase)",Ii="var(--curveLinear)",_c=l`
2
+ ${C("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${bt} ${ft};border-radius:${_};font-family:${$};font-size:${F};font-weight:${L};line-height:${H};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${wt};border:none;box-sizing:border-box;color:${B};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Et}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Zt};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${bt}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Zt};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Et};outline:none;border:2px solid ${ai};box-shadow:inset 0 0 0 1px ${Nt}}:host(${O}) .button{color:${z}}:host(${O}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${ue}) .content{display:block}:host(${ue}) .default-marker-collapsed,:host(${ue}) ::slotted([slot='marker-collapsed']),:host(:not(${ue})) :is(.default-marker-expanded,.content),:host(:not(${ue})) ::slotted([slot='marker-expanded']){display:none}:host(${ue}) ::slotted([slot='marker-expanded']),:host(:not(${ue})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${F};line-height:${H}}:host(${P}) .heading{font-size:${W};line-height:${st}}:host(${w}) .heading{font-size:${dt};line-height:${$t}}:host(${qo}) .heading{font-size:${Ae};line-height:${as}}:host(${Xt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${Xt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Zt};padding-inline-end:0}:host(${Xt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${Xt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${bt}}:host(${Xt}:has([slot='start'])) .heading{padding-inline:${ft} ${bt}}:host(${$a}${Xt}) .heading{grid-template-columns:auto 1fr}:host(${Xt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Ic=f.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ft} ${bt};border-radius:${T};font-family:${$};font-size:${F};font-weight:${N};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${wt};border:none;box-sizing:border-box;color:${B};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Lt}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${te};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ft}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${te};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Lt};outline:none;border:2px solid ${gi};box-shadow:inset 0 0 0 1px ${Dt}}:host(${E}) .button{color:${P}}:host(${E}) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host(${me}) .content{display:block}:host(${me}) .default-marker-collapsed,:host(${me}) ::slotted([slot='marker-collapsed']),:host(:not(${me})) :is(.default-marker-expanded,.content),:host(:not(${me})) ::slotted([slot='marker-expanded']){display:none}:host(${me}) ::slotted([slot='marker-expanded']),:host(:not(${me})) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${F};line-height:${L}}:host(${z}) .heading{font-size:${j};line-height:${st}}:host(${w}) .heading{font-size:${ct};line-height:${vt}}:host(${Ko}) .heading{font-size:${De};line-height:${us}}:host(${Qt}) :slotted([slot='start']){grid-column:1 / span 1}:host(${Qt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${te};padding-inline-end:0}:host(${Qt}) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host(${Qt}) .heading{grid-template-columns:auto auto 28px;padding-inline:${ft}}:host(${Qt}:has([slot='start'])) .heading{padding-inline:${bt} ${ft}}:host(${ii}${Qt}) .heading{grid-template-columns:auto 1fr}:host(${Qt}) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Nc=b.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -14,7 +14,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
14
14
  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"
15
15
  fill="currentColor"
16
16
  />
17
- </svg>`),Sc=f.partial(`<svg
17
+ </svg>`),Mc=b.partial(`<svg
18
18
  width="20"
19
19
  height="20"
20
20
  viewBox="0 0 20 20"
@@ -27,38 +27,38 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
27
27
  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"
28
28
  fill="currentColor"
29
29
  />
30
- </svg>`);function Pc(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Ot("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}"><slot name="heading"></slot></button>${Rt(o)}<slot name="marker-expanded">${mt(o.expandedIcon)}</slot><slot name="marker-collapsed">${mt(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const Tc=Pc({collapsedIcon:Ic,expandedIcon:Sc}),Bc=We.compose({name:`${u.prefix}-accordion-item`,template:Tc,styles:Cc});Bc.define(u.registry);const fi={single:"single",multi:"multi"};var zc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,rn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ac(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&zc(t,e,i),i};class bi extends x{constructor(){super(...arguments),this.expandmode=fi.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>m.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionItems.forEach((e,s)=>{e instanceof Gt&&(e.addEventListener("click",this.expandedChangedHandler),m.getNotifier(e).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,s)=>{m.getNotifier(e).unsubscribe(this,"disabled"),m.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=t=>{const e=t.target;e instanceof Gt&&(this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.$emit("change"))}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const s=this.findExpandedItem();if(s){if(e===fi.single){this.setSingleExpandMode(s);return}s?.expandbutton.removeAttribute("aria-disabled")}}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 Gt&&t.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===fi.single}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((s,i)=>{s instanceof Gt&&(this.activeItemIndex===i?(s.expanded=!0,s.expandbutton.setAttribute("aria-disabled","true")):(s.expanded=!1,s.hasAttribute("disabled")||s.expandbutton.removeAttribute("aria-disabled")))})}}rn([a({attribute:"expand-mode"})],bi.prototype,"expandmode",2),rn([k],bi.prototype,"slottedAccordionItems",2);const Fc=l`
31
- ${I("flex")}
30
+ </svg>`);function Dc(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${kt("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}"><slot name="heading"></slot></button>${Wt(o)}<slot name="marker-expanded">${xt(o.expandedIcon)}</slot><slot name="marker-collapsed">${xt(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const Lc=Dc({collapsedIcon:Nc,expandedIcon:Mc}),Vc=eo.compose({name:`${u.prefix}-accordion-item`,template:Lc,styles:_c});Vc.define(u.registry);const Si={single:"single",multi:"multi"};var Hc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,vn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Rc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Hc(t,e,i),i};class zi extends x{constructor(){super(...arguments),this.expandmode=Si.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>f.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionItems.forEach((e,s)=>{e instanceof Xt&&(e.addEventListener("click",this.expandedChangedHandler),f.getNotifier(e).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,s)=>{f.getNotifier(e).unsubscribe(this,"disabled"),f.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=t=>{const e=t.target;e instanceof Xt&&(this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.$emit("change"))}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const s=this.findExpandedItem();if(s){if(e===Si.single){this.setSingleExpandMode(s);return}s?.expandbutton.removeAttribute("aria-disabled")}}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 Xt&&t.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Si.single}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((s,i)=>{s instanceof Xt&&(this.activeItemIndex===i?(s.expanded=!0,s.expandbutton.setAttribute("aria-disabled","true")):(s.expanded=!1,s.hasAttribute("disabled")||s.expandbutton.removeAttribute("aria-disabled")))})}}vn([a({attribute:"expand-mode"})],zi.prototype,"expandmode",2),vn([k],zi.prototype,"slottedAccordionItems",2);const jc=l`
31
+ ${C("flex")}
32
32
 
33
- :host{flex-direction:column;width:100%;contain:content}`;function Oc(){return f`<template><slot ${ut({property:"slottedAccordionItems",filter:qe()})}></slot></template>`}const _c=Oc(),Mc=bi.compose({name:`${u.prefix}-accordion`,template:_c,styles:Fc});Mc.define(u.registry);const us={submit:"submit",reset:"reset",button:"button"},Nc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Ec=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,vt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Lc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ec(t,e,i),i};class Lt extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in Nc){const s=this.$fastController.definition.attributeLookup[e]?.attribute;s&&this.handleProxyAttributeChange(s,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===Ho){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}}vt([a],Lt.prototype,"download",2),vt([a],Lt.prototype,"href",2),vt([a],Lt.prototype,"hreflang",2),vt([a],Lt.prototype,"ping",2),vt([a],Lt.prototype,"referrerpolicy",2),vt([a],Lt.prototype,"rel",2),vt([a],Lt.prototype,"target",2),vt([a],Lt.prototype,"type",2);class Oe extends Lt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",!!e)}}vt([a],Oe.prototype,"appearance",2),vt([a],Oe.prototype,"shape",2),vt([a],Oe.prototype,"size",2),vt([a({attribute:"icon-only",mode:"boolean"})],Oe.prototype,"iconOnly",2),qt(Oe,jt);const nn=l`
34
- ${I("inline-flex")}
33
+ :host{flex-direction:column;width:100%;contain:content}`;function qc(){return b`<template><slot ${lt({property:"slottedAccordionItems",filter:Je()})}></slot></template>`}const Gc=qc(),Wc=zi.compose({name:`${u.prefix}-accordion`,template:Gc,styles:jc});Wc.define(u.registry);const ms={submit:"submit",reset:"reset",button:"button"},Uc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Xc=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,Ct=(o,t,e,s)=>{for(var i=s>1?void 0:s?Kc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Xc(t,e,i),i};class Ht extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in Uc){const s=this.$fastController.definition.attributeLookup[e]?.attribute;s&&this.handleProxyAttributeChange(s,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===Uo){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}Ct([a],Ht.prototype,"download",2),Ct([a],Ht.prototype,"href",2),Ct([a],Ht.prototype,"hreflang",2),Ct([a],Ht.prototype,"ping",2),Ct([a],Ht.prototype,"referrerpolicy",2),Ct([a],Ht.prototype,"rel",2),Ct([a],Ht.prototype,"target",2),Ct([a],Ht.prototype,"type",2);class Re extends Ht{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",!!e)}}Ct([a],Re.prototype,"appearance",2),Ct([a],Re.prototype,"shape",2),Ct([a],Re.prototype,"size",2),Ct([a({attribute:"icon-only",mode:"boolean"})],Re.prototype,"iconOnly",2),Ut(Re,Gt);const yn=l`
34
+ ${C("inline-flex")}
35
35
 
36
- :host{--icon-spacing:${It};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:${E};color:${B};border:${K} solid ${ge};padding:0 ${bt};min-width:96px;border-radius:${_};font-size:${F};font-family:${$};font-weight:${D};line-height:${H};transition-duration:${hi};transition-property:background,border,color;transition-timing-function:${hs};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Zs};color:${Ys};border-color:${os}}:host(:hover:active){background-color:${Js};border-color:${ri};color:${va};outline-style:none}:host(:focus-visible){border-color:${lt};outline:${Ct} solid ${lt};box-shadow:${ls},0 0 0 2px ${Nt}}@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(${Pe}){min-width:32px;max-width:32px}:host(${P}){--icon-spacing:${Qt};min-height:24px;min-width:64px;padding:0 ${Zt};border-radius:${Et};font-size:${W};line-height:${st};font-weight:${L}}:host(${P}${Pe}){min-width:24px;max-width:24px}:host(${w}){min-height:40px;border-radius:${Vr};padding:0 ${gc};font-size:${dt};line-height:${$t}}:host(${w}${Pe}){min-width:40px;max-width:40px}:host(${w}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${Ke},${Ke}:focus-visible)){border-radius:${ct}}:host(:is(${Ye},${Ye}:focus-visible)){border-radius:${ci}}:host(${nt}){background-color:${ii};color:${Yt};border-color:transparent}:host(${nt}:hover){background-color:${wr}}:host(${nt}:is(:hover,:hover:active)){border-color:transparent;color:${Yt}}:host(${nt}:hover:active){background-color:${Cr}}:host(${nt}:focus-visible){border-color:${Yt};box-shadow:${Zr},0 0 0 2px ${Nt}}:host(${G}){background-color:${wt}}:host(${G}:hover){background-color:${ei}}:host(${G}:hover:active){background-color:${oi}}:host(${S}){background-color:${Da};color:${_t};border-color:transparent}:host(${S}:hover){background-color:${es};color:${Yo};border-color:transparent}:host(${S}:hover:active){background-color:${Te};color:${Qo};border-color:transparent}:host(${S}:hover) ::slotted(svg){fill:${Zo}}:host(${S}:hover:active) ::slotted(svg){fill:${Jo}}:host(${X}){background-color:${wt};color:${_t}}:host(${X}:hover){background-color:${ei};color:${Zo}}:host(${X}:hover:active){background-color:${oi};color:${Jo}}:host(:is(${X},${X}:is(:hover,:active))){border-color:transparent}`,ps=l`
37
- ${nn}
36
+ :host{--icon-spacing:${yt};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:${_};color:${B};border:${X} solid ${ae};padding:0 ${ft};min-width:96px;border-radius:${T};font-size:${F};font-family:${$};font-weight:${V};line-height:${L};transition-duration:${ki};transition-property:background,border,color;transition-timing-function:${fs};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ai};color:${ri};border-color:${uo}}:host(:hover:active){background-color:${li};border-color:${ls};color:${_a};outline-style:none}:host(:focus-visible){border-color:${pt};outline:${Tt} solid ${pt};box-shadow:${ps},0 0 0 2px ${Dt}}@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(${Ae}){min-width:32px;max-width:32px}:host(${z}){--icon-spacing:${Vt};min-height:24px;min-width:64px;padding:0 ${te};border-radius:${Lt};font-size:${j};line-height:${st};font-weight:${N}}:host(${z}${Ae}){min-width:24px;max-width:24px}:host(${w}){min-height:40px;border-radius:${on};padding:0 ${zc};font-size:${ct};line-height:${vt}}:host(${w}${Ae}){min-width:40px;max-width:40px}:host(${w}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${io},${io}:focus-visible)){border-radius:${gt}}:host(:is(${ro},${ro}:focus-visible)){border-radius:${mi}}:host(${ht}){background-color:${ui};color:${Jt};border-color:transparent}:host(${ht}:hover){background-color:${Dr}}:host(${ht}:is(:hover,:hover:active)){border-color:transparent;color:${Jt}}:host(${ht}:hover:active){background-color:${Lr}}:host(${ht}:focus-visible){border-color:${Jt};box-shadow:${$i},0 0 0 2px ${Dt}}:host(${U}){background-color:${wt}}:host(${U}:hover){background-color:${ci}}:host(${U}:hover:active){background-color:${di}}:host(${S}){background-color:${Ja};color:${Mt};border-color:transparent}:host(${S}:hover){background-color:${as};color:${es};border-color:transparent}:host(${S}:hover:active){background-color:${Oe};color:${os};border-color:transparent}:host(${S}:hover) ::slotted(svg){fill:${ss}}:host(${S}:hover:active) ::slotted(svg){fill:${is}}:host(${Z}){background-color:${wt};color:${Mt}}:host(${Z}:hover){background-color:${ci};color:${ss}}:host(${Z}:hover:active){background-color:${di};color:${is}}:host(:is(${Z},${Z}:is(:hover,:active))){border-color:transparent}`,$s=l`
37
+ ${yn}
38
38
 
39
- :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:${Be};border-color:${Mt};color:${z};cursor:not-allowed}:host(${nt}:is(:disabled,[disabled-focusable])),:host(${nt}: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:${wt}}:host(${S}:is(:disabled,[disabled-focusable])),:host(${S}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${wt};border-color:transparent}:host(${X}:is(:disabled,[disabled-focusable])),:host(${X}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${wt}}`.withBehaviors(J(l`
40
- :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Dc=l`
41
- ${nn}
39
+ :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:${Ee};border-color:${Pt};color:${P};cursor:not-allowed}:host(${ht}:is(:disabled,[disabled-focusable])),:host(${ht}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${U}:is(:disabled,[disabled-focusable])),:host(${U}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${wt}}:host(${S}:is(:disabled,[disabled-focusable])),:host(${S}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${wt};border-color:transparent}:host(${Z}:is(:disabled,[disabled-focusable])),:host(${Z}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${wt}}`.withBehaviors(Q(l`
40
+ :host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),Yc=l`
41
+ ${yn}
42
42
 
43
- ::slotted(a){position:absolute;inset:0}`.withBehaviors(J(l`
44
- :host{border-color:LinkText;color:LinkText}`));function Hc(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Rt(o)}<span class="content" part="content"><slot></slot></span>${oe(o)}</template>`}const Vc=Hc(),jc=Oe.compose({name:`${u.prefix}-anchor-button`,template:Vc,styles:Dc});jc.define(u.registry);const Rc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,qc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Gc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Wc=/\s+/g,Uc=/[\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 Xc(o,t,e){let s="";const i=o.split(" ");return i.length!==0&&(s+=i[0].charAt(0).toUpperCase()),e||(i.length===2?s+=i[1].charAt(0).toUpperCase():i.length===3&&(s+=i[2].charAt(0).toUpperCase())),t&&s.length>1?s.charAt(1)+s.charAt(0):s}function Kc(o){return o=o.replace(Rc,""),o=o.replace(qc,""),o=o.replace(Wc," "),o=o.trim(),o}function Yc(o,t,e){return!o||(o=Kc(o),Uc.test(o)||!e?.allowPhoneInitials&&Gc.test(o))?"":Xc(o,t,e?.firstInitialOnly)}const an={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"},ln={neutral:"neutral",brand:"brand",colorful:"colorful",...an};var Qc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,ie=(o,t,e,s)=>{for(var i=s>1?void 0:s?Zc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Qc(t,e,i),i};class gs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}ie([a],gs.prototype,"name",2),ie([a],gs.prototype,"initials",2),ie([a],gs.prototype,"active",2);const be=class Ti extends gs{handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??Yc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}generateColor(){const t=this.color===ln.colorful,e=this.currentColor;c(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?Ti.colors[td(this.name??"")%Ti.colors.length]:this.color??ln.neutral,c(this.elementInternals,`${this.currentColor}`,!0)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};be.colors=Object.values(an),ie([a],be.prototype,"shape",2),ie([a],be.prototype,"appearance",2),ie([a({converter:rt})],be.prototype,"size",2),ie([a],be.prototype,"color",2),ie([a({attribute:"color-id"})],be.prototype,"colorId",2);let Jc=be;const td=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const s=o.charCodeAt(e),i=e%8;t^=(s<<i)+(s>>8-i)}return t},re={fastOutSlowInMax:pi,fastOutSlowInMid:ho,fastOutSlowInMin:xc,slowOutFastInMax:yc,slowOutFastInMid:co,slowOutFastInMin:kc,fastEase:wc,normalEase:hs,nullEasing:gi},ed=l`
45
- ${I("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${D};font-size:${F};border-radius:${ct};color:${at};background-color:${ts};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 ${K}) ${E}}: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 ${Ct}) ${E}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${no};font-weight:${L}}: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:${W}}: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:${Ae}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${is}}: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:${Et}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Vr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${jr}}:host(:is([state--brand],:state(brand))){color:${kr};background-color:${Ir}}:host(:is([state--dark-red],:state(dark-red))){color:${Cl};background-color:${wl}}:host(:is([state--cranberry],:state(cranberry))){color:${yl};background-color:${vl}}:host(:is([state--red],:state(red))){color:${Ka};background-color:${Ua}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Zl};background-color:${Ql}}:host(:is([state--peach],:state(peach))){color:${ql};background-color:${Rl}}:host(:is([state--marigold],:state(marigold))){color:${nl};background-color:${Hr}}:host(:is([state--gold],:state(gold))){color:${Tl};background-color:${Pl}}:host(:is([state--brass],:state(brass))){color:${gl};background-color:${pl}}:host(:is([state--brown],:state(brown))){color:${bl};background-color:${fl}}:host(:is([state--forest],:state(forest))){color:${Sl};background-color:${Il}}:host(:is([state--seafoam],:state(seafoam))){color:${ic};background-color:${sc}}:host(:is([state--dark-green],:state(dark-green))){color:${xl};background-color:${kl}}:host(:is([state--light-teal],:state(light-teal))){color:${_l};background-color:${Ol}}:host(:is([state--teal],:state(teal))){color:${lc};background-color:${ac}}:host(:is([state--steel],:state(steel))){color:${nc};background-color:${rc}}:host(:is([state--blue],:state(blue))){color:${ul};background-color:${hl}}:host(:is([state--royal-blue],:state(royal-blue))){color:${oc};background-color:${ec}}:host(:is([state--cornflower],:state(cornflower))){color:${$l};background-color:${ml}}:host(:is([state--navy],:state(navy))){color:${jl};background-color:${Vl}}:host(:is([state--lavender],:state(lavender))){color:${Fl};background-color:${Al}}:host(:is([state--purple],:state(purple))){color:${tc};background-color:${Jl}}:host(:is([state--grape],:state(grape))){color:${zl};background-color:${Bl}}:host(:is([state--lilac],:state(lilac))){color:${Nl};background-color:${Ml}}:host(:is([state--pink],:state(pink))){color:${Wl};background-color:${Gl}}:host(:is([state--magenta],:state(magenta))){color:${Ll};background-color:${El}}:host(:is([state--plum],:state(plum))){color:${Yl};background-color:${Kl}}:host(:is([state--beige],:state(beige))){color:${dl};background-color:${cl}}:host(:is([state--mink],:state(mink))){color:${Hl};background-color:${Dl}}:host(:is([state--platinum],:state(platinum))){color:${Xl};background-color:${Ul}}:host(:is([state--anchor],:state(anchor))){color:${ll};background-color:${al}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${ds},${hi};transition-delay:${re.fastEase},${re.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${ds}),${sn};transition-delay:${re.fastEase}),${re.nullEasing})}:host([active])::before{box-shadow:${uc};border-style:solid;border-color:${Ir}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ct});border-width:${Ct}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${tt});border-width:${tt}}: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 * ${di});border-width:${di}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${ls}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Jr}}: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:${pc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${ds},${hi};transition-delay:${re.fastOutSlowInMin},${re.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${ds},${sn};transition-delay:${re.fastOutSlowInMin},${re.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}}`,od=f`<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 sd(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():od}</slot><slot name="badge"></slot>`}const id=sd(),rd=Jc.compose({name:`${u.prefix}-avatar`,template:id,styles:ed});rd.define(u.registry);const nd={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},ad={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var ld=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,fs=(o,t,e,s)=>{for(var i=s>1?void 0:s?cd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ld(t,e,i),i};class _e extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=nd.filled,this.color=ad.brand}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}fs([a],_e.prototype,"appearance",2),fs([a],_e.prototype,"color",2),fs([a],_e.prototype,"shape",2),fs([a],_e.prototype,"size",2),qt(_e,jt);const cn=l.partial`
46
- ${I("inline-flex")} :host {
43
+ ::slotted(a){position:absolute;inset:0}`.withBehaviors(Q(l`
44
+ :host{border-color:LinkText;color:LinkText}`));function Qc(o={}){return b`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Wt(o)}<span class="content" part="content"><slot></slot></span>${ie(o)}</template>`}const Zc=Qc(),Jc=Re.compose({name:`${u.prefix}-anchor-button`,template:Zc,styles:Yc});Jc.define(u.registry);const td=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,ed=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,od=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,sd=/\s+/g,id=/[\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 rd(o,t,e){let s="";const i=o.split(" ");return i.length!==0&&(s+=i[0].charAt(0).toUpperCase()),e||(i.length===2?s+=i[1].charAt(0).toUpperCase():i.length===3&&(s+=i[2].charAt(0).toUpperCase())),t&&s.length>1?s.charAt(1)+s.charAt(0):s}function nd(o){return o=o.replace(td,""),o=o.replace(ed,""),o=o.replace(sd," "),o=o.trim(),o}function ad(o,t,e){return!o||(o=nd(o),id.test(o)||!e?.allowPhoneInitials&&od.test(o))?"":rd(o,t,e?.firstInitialOnly)}const kn={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"},xn={neutral:"neutral",brand:"brand",colorful:"colorful",...kn};var ld=Object.defineProperty,cd=Object.getOwnPropertyDescriptor,ce=(o,t,e,s)=>{for(var i=s>1?void 0:s?cd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ld(t,e,i),i};class vs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}ce([a],vs.prototype,"name",2),ce([a],vs.prototype,"initials",2),ce([a],vs.prototype,"active",2);const $e=class Li extends vs{handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??ad(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}generateColor(){const t=this.color===xn.colorful,e=this.currentColor;c(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?Li.colors[hd(this.name??"")%Li.colors.length]:this.color??xn.neutral,c(this.elementInternals,`${this.currentColor}`,!0)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}};$e.colors=Object.values(kn),ce([a],$e.prototype,"shape",2),ce([a],$e.prototype,"appearance",2),ce([a({converter:ot})],$e.prototype,"size",2),ce([a],$e.prototype,"color",2),ce([a({attribute:"color-id"})],$e.prototype,"colorId",2);let dd=$e;const hd=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const s=o.charCodeAt(e),i=e%8;t^=(s<<i)+(s>>8-i)}return t},de={fastOutSlowInMax:Ci,fastOutSlowInMid:He,fastOutSlowInMin:Oc,slowOutFastInMax:Ac,slowOutFastInMid:Ve,slowOutFastInMin:Fc,fastEase:Ec,normalEase:fs,nullEasing:Ii},ud=l`
45
+ ${C("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${$};font-weight:${V};font-size:${F};border-radius:${gt};color:${ut};background-color:${ns};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 ${X}) ${_}}: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 ${Tt}) ${_}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${bo};font-weight:${N}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${j}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ct}}: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:${De}}: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:${cs}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${T}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Lt}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${on}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${sn}}:host(:is([state--brand],:state(brand))){color:${_r};background-color:${Vr}}:host(:is([state--dark-red],:state(dark-red))){color:${Ml};background-color:${Nl}}:host(:is([state--cranberry],:state(cranberry))){color:${Ol};background-color:${Fl}}:host(:is([state--red],:state(red))){color:${ll};background-color:${al}}:host(:is([state--pumpkin],:state(pumpkin))){color:${hc};background-color:${dc}}:host(:is([state--peach],:state(peach))){color:${sc};background-color:${oc}}:host(:is([state--marigold],:state(marigold))){color:${vl};background-color:${en}}:host(:is([state--gold],:state(gold))){color:${Hl};background-color:${Vl}}:host(:is([state--brass],:state(brass))){color:${zl};background-color:${Sl}}:host(:is([state--brown],:state(brown))){color:${Tl};background-color:${Pl}}:host(:is([state--forest],:state(forest))){color:${Ll};background-color:${Dl}}:host(:is([state--seafoam],:state(seafoam))){color:${mc};background-color:${fc}}:host(:is([state--dark-green],:state(dark-green))){color:${_l};background-color:${El}}:host(:is([state--light-teal],:state(light-teal))){color:${Ul};background-color:${Wl}}:host(:is([state--teal],:state(teal))){color:${kc};background-color:${yc}}:host(:is([state--steel],:state(steel))){color:${vc};background-color:${$c}}:host(:is([state--blue],:state(blue))){color:${Il};background-color:${Cl}}:host(:is([state--royal-blue],:state(royal-blue))){color:${bc};background-color:${gc}}:host(:is([state--cornflower],:state(cornflower))){color:${Al};background-color:${Bl}}:host(:is([state--navy],:state(navy))){color:${ec};background-color:${tc}}:host(:is([state--lavender],:state(lavender))){color:${Gl};background-color:${ql}}:host(:is([state--purple],:state(purple))){color:${pc};background-color:${uc}}:host(:is([state--grape],:state(grape))){color:${jl};background-color:${Rl}}:host(:is([state--lilac],:state(lilac))){color:${Kl};background-color:${Xl}}:host(:is([state--pink],:state(pink))){color:${rc};background-color:${ic}}: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:${xl}}: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:${kl};background-color:${yl}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${bs},${ki};transition-delay:${de.fastEase},${de.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${bs}),${$n};transition-delay:${de.fastEase}),${de.nullEasing})}:host([active])::before{box-shadow:${Ic};border-style:solid;border-color:${Vr}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Tt});border-width:${Tt}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${it});border-width:${it}}: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 * ${vi});border-width:${vi}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${ps}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${gn}}: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:${Sc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${bs},${ki};transition-delay:${de.fastOutSlowInMin},${de.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${bs},${$n};transition-delay:${de.fastOutSlowInMin},${de.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}}`,pd=b`<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 gd(){return b`<slot>${o=>o.name||o.initials?o.generateInitials():pd}</slot><slot name="badge"></slot>`}const bd=gd(),fd=dd.compose({name:`${u.prefix}-avatar`,template:bd,styles:ud});fd.define(u.registry);const md={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},$d={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var vd=Object.defineProperty,yd=Object.getOwnPropertyDescriptor,ys=(o,t,e,s)=>{for(var i=s>1?void 0:s?yd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&vd(t,e,i),i};class je extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=md.filled,this.color=$d.brand}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ys([a],je.prototype,"appearance",2),ys([a],je.prototype,"color",2),ys([a],je.prototype,"shape",2),ys([a],je.prototype,"size",2),Ut(je,Gt);const wn=l.partial`
46
+ ${C("inline-flex")} :host {
47
47
  position: relative;
48
48
  box-sizing: border-box;
49
49
  align-items: center;
50
50
  justify-content: center;
51
51
  font-family: ${$};
52
- font-weight: ${D};
53
- font-size: ${W};
52
+ font-weight: ${V};
53
+ font-size: ${j};
54
54
  line-height: ${st};
55
55
  min-width: 20px;
56
56
  height: 20px;
57
- padding-inline: calc(${Qt} + ${gt});
58
- border-radius: ${ct};
59
- border-color: ${lt};
60
- background-color: ${ii};
61
- color: ${Yt};
57
+ padding-inline: calc(${Vt} + ${dt});
58
+ border-radius: ${gt};
59
+ border-color: ${pt};
60
+ background-color: ${ui};
61
+ color: ${Jt};
62
62
  contain: content;
63
63
  }
64
64
 
@@ -66,7 +66,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
66
66
  font-size: 12px;
67
67
  }
68
68
 
69
- :host(:not(${Wt}))::after {
69
+ :host(:not(${Kt}))::after {
70
70
  position: absolute;
71
71
  content: '';
72
72
  top: 0;
@@ -74,12 +74,12 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
74
74
  bottom: 0;
75
75
  right: 0;
76
76
  border-style: solid;
77
- border-width: ${K};
77
+ border-width: ${X};
78
78
  border-color: inherit;
79
79
  border-radius: inherit;
80
80
  }
81
- `,dn=l.partial`
82
- :host(${Qe}) {
81
+ `,Cn=l.partial`
82
+ :host(${no}) {
83
83
  width: 6px;
84
84
  height: 6px;
85
85
  font-size: 4px;
@@ -87,10 +87,10 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
87
87
  padding-inline: 0;
88
88
  min-width: unset;
89
89
  }
90
- :host(${Qe}) ::slotted(svg) {
90
+ :host(${no}) ::slotted(svg) {
91
91
  font-size: 6px;
92
92
  }
93
- :host(${Ze}) {
93
+ :host(${ao}) {
94
94
  width: 10px;
95
95
  height: 10px;
96
96
  font-size: 6px;
@@ -98,289 +98,289 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
98
98
  padding-inline: 0;
99
99
  min-width: unset;
100
100
  }
101
- :host(${Ze}) ::slotted(svg) {
101
+ :host(${ao}) ::slotted(svg) {
102
102
  font-size: 10px;
103
103
  }
104
- :host(${P}) {
104
+ :host(${z}) {
105
105
  min-width: 16px;
106
106
  height: 16px;
107
- font-size: ${no};
108
- line-height: ${ns};
109
- padding-inline: calc(${gt} + ${gt});
107
+ font-size: ${bo};
108
+ line-height: ${hs};
109
+ padding-inline: calc(${dt} + ${dt});
110
110
  }
111
- :host(${P}) ::slotted(svg) {
111
+ :host(${z}) ::slotted(svg) {
112
112
  font-size: 12px;
113
113
  }
114
114
  :host(${w}) {
115
115
  min-width: 24px;
116
116
  height: 24px;
117
- font-size: ${W};
117
+ font-size: ${j};
118
118
  line-height: ${st};
119
- padding-inline: calc(${Qt} + ${gt});
119
+ padding-inline: calc(${Vt} + ${dt});
120
120
  }
121
121
  :host(${w}) ::slotted(svg) {
122
122
  font-size: 16px;
123
123
  }
124
- :host(${qo}) {
124
+ :host(${Ko}) {
125
125
  min-width: 32px;
126
126
  height: 32px;
127
- font-size: ${W};
127
+ font-size: ${j};
128
128
  line-height: ${st};
129
- padding-inline: calc(${It} + ${gt});
129
+ padding-inline: calc(${yt} + ${dt});
130
130
  }
131
- :host(${qo}) ::slotted(svg) {
131
+ :host(${Ko}) ::slotted(svg) {
132
132
  font-size: 20px;
133
133
  }
134
- `,hn=l.partial`
135
- :host(${Go}) {
136
- background-color: ${zr};
137
- color: ${Yt};
134
+ `,In=l.partial`
135
+ :host(${Yo}) {
136
+ background-color: ${Gr};
137
+ color: ${Jt};
138
138
  }
139
139
 
140
- :host(${Wo}) {
140
+ :host(${Qo}) {
141
141
  background-color: ${B};
142
- color: ${E};
142
+ color: ${_};
143
143
  }
144
144
 
145
- :host(${Uo}) {
146
- background-color: ${Ea};
147
- color: ${at};
145
+ :host(${Zo}) {
146
+ background-color: ${Za};
147
+ color: ${ut};
148
148
  }
149
149
 
150
- :host(${Ko}) {
151
- background-color: ${Er};
152
- color: ${Yt};
150
+ :host(${ts}) {
151
+ background-color: ${Zr};
152
+ color: ${Jt};
153
153
  }
154
154
 
155
155
  :host(${S}) {
156
- background-color: ${E};
156
+ background-color: ${_};
157
157
  color: ${B};
158
158
  }
159
159
 
160
- :host(${de}) {
161
- background-color: ${Mr};
162
- color: ${Yt};
160
+ :host(${be}) {
161
+ background-color: ${Yr};
162
+ color: ${Jt};
163
163
  }
164
164
 
165
- :host(${he}) {
166
- background-color: ${sl};
167
- color: ${Ma};
165
+ :host(${fe}) {
166
+ background-color: ${fl};
167
+ color: ${Ya};
168
168
  }
169
- `,un=l.partial`
170
- :host(${Wt}) {
171
- color: ${Qs};
169
+ `,Sn=l.partial`
170
+ :host(${Kt}) {
171
+ color: ${ni};
172
172
  background-color: initial;
173
173
  }
174
174
 
175
- :host(${Wt}${Go}) {
176
- color: ${Or};
175
+ :host(${Kt}${Yo}) {
176
+ color: ${Xr};
177
177
  }
178
178
 
179
- :host(${Wt}${Wo}) {
179
+ :host(${Kt}${Qo}) {
180
180
  color: ${B};
181
181
  }
182
182
 
183
- :host(${Wt}${Uo}) {
184
- color: ${at};
183
+ :host(${Kt}${Zo}) {
184
+ color: ${ut};
185
185
  }
186
186
 
187
- :host(${Wt}${Ko}) {
188
- color: ${Dr};
187
+ :host(${Kt}${ts}) {
188
+ color: ${tn};
189
189
  }
190
190
 
191
- :host(${Wt}${S}) {
192
- color: ${to};
191
+ :host(${Kt}${S}) {
192
+ color: ${Fe};
193
193
  }
194
194
 
195
- :host(${Wt}${de}) {
196
- color: ${tl};
195
+ :host(${Kt}${be}) {
196
+ color: ${pl};
197
197
  }
198
198
 
199
- :host(${Wt}${he}) {
200
- color: ${li};
199
+ :host(${Kt}${fe}) {
200
+ color: ${fi};
201
201
  }
202
- `,dd=l.partial`
203
- :host(${G}) {
202
+ `,kd=l.partial`
203
+ :host(${U}) {
204
204
  border-color: currentColor;
205
- color: ${Qs};
205
+ color: ${ni};
206
206
  background-color: initial;
207
207
  }
208
208
 
209
- :host(${G}${Go}) {
210
- color: ${Or};
209
+ :host(${U}${Yo}) {
210
+ color: ${Xr};
211
211
  }
212
212
 
213
- :host(${G}${Wo}) {
214
- color: ${at};
215
- border-color: ${pe};
213
+ :host(${U}${Qo}) {
214
+ color: ${ut};
215
+ border-color: ${ne};
216
216
  }
217
217
 
218
- :host(${G}${Uo}) {
219
- color: ${at};
220
- border-color: ${ro};
218
+ :host(${U}${Zo}) {
219
+ color: ${ut};
220
+ border-color: ${po};
221
221
  }
222
222
 
223
- :host(${G}${Ko}) {
224
- color: ${Dr};
223
+ :host(${U}${ts}) {
224
+ color: ${tn};
225
225
  }
226
226
 
227
- :host(${G}${S}) {
228
- color: ${kr};
227
+ :host(${U}${S}) {
228
+ color: ${_r};
229
229
  }
230
230
 
231
- :host(${G}${de}) {
232
- color: ${Ja};
231
+ :host(${U}${be}) {
232
+ color: ${ul};
233
233
  }
234
234
 
235
- :host(${G}${he}) {
236
- color: ${li};
235
+ :host(${U}${fe}) {
236
+ color: ${fi};
237
237
  }
238
- `,hd=l.partial`
239
- :host(${se}) {
240
- background-color: ${Ra};
241
- color: ${_a};
242
- border-color: ${ni};
238
+ `,xd=l.partial`
239
+ :host(${re}) {
240
+ background-color: ${sl};
241
+ color: ${Ka};
242
+ border-color: ${pi};
243
243
  }
244
244
 
245
- :host(${se}${Go}) {
246
- background-color: ${Br};
247
- color: ${Fr};
248
- border-color: ${Ar};
245
+ :host(${re}${Yo}) {
246
+ background-color: ${qr};
247
+ color: ${Ur};
248
+ border-color: ${Wr};
249
249
  }
250
250
 
251
- :host(${se}${Wo}) {
252
- background-color: ${at};
253
- color: ${E};
254
- border-color: ${lt};
251
+ :host(${re}${Qo}) {
252
+ background-color: ${ut};
253
+ color: ${_};
254
+ border-color: ${pt};
255
255
  }
256
256
 
257
- :host(${se}${Uo}) {
258
- background-color: ${Na};
259
- color: ${at};
260
- border-color: ${ro};
257
+ :host(${re}${Zo}) {
258
+ background-color: ${Qa};
259
+ color: ${ut};
260
+ border-color: ${po};
261
261
  }
262
262
 
263
- :host(${se}${Ko}) {
264
- background-color: ${Nr};
265
- color: ${el};
266
- border-color: ${Lr};
263
+ :host(${re}${ts}) {
264
+ background-color: ${Qr};
265
+ color: ${gl};
266
+ border-color: ${Jr};
267
267
  }
268
268
 
269
- :host(${se}${S}) {
270
- background-color: ${E};
271
- color: ${at};
272
- border-color: ${ro};
269
+ :host(${re}${S}) {
270
+ background-color: ${_};
271
+ color: ${ut};
272
+ border-color: ${po};
273
273
  }
274
274
 
275
- :host(${se}${de}) {
276
- background-color: ${_r};
277
- color: ${Za};
278
- border-color: ${Qa};
275
+ :host(${re}${be}) {
276
+ background-color: ${Kr};
277
+ color: ${hl};
278
+ border-color: ${dl};
279
279
  }
280
280
 
281
- :host(${se}${he}) {
282
- background-color: ${ol};
283
- color: ${li};
284
- border-color: ${il};
281
+ :host(${re}${fe}) {
282
+ background-color: ${bl};
283
+ color: ${fi};
284
+ border-color: ${ml};
285
285
  }
286
286
  `;l.partial`
287
287
  font-family: ${$};
288
288
  font-size: ${F};
289
- line-height: ${H};
290
- font-weight: ${L};
289
+ line-height: ${L};
290
+ font-weight: ${N};
291
291
  `,l.partial`
292
292
  font-family: ${$};
293
293
  font-size: ${F};
294
- line-height: ${H};
295
- font-weight: ${D};
294
+ line-height: ${L};
295
+ font-weight: ${V};
296
296
  `,l.partial`
297
297
  font-family: ${$};
298
298
  font-size: ${F};
299
- line-height: ${H};
300
- font-weight: ${rs};
299
+ line-height: ${L};
300
+ font-weight: ${ds};
301
301
  `,l.partial`
302
302
  font-family: ${$};
303
- font-size: ${dt};
304
- line-height: ${$t};
305
- font-weight: ${L};
303
+ font-size: ${ct};
304
+ line-height: ${vt};
305
+ font-weight: ${N};
306
306
  `,l.partial`
307
307
  font-family: ${$};
308
- font-size: ${W};
308
+ font-size: ${j};
309
309
  line-height: ${st};
310
- font-weight: ${L};
310
+ font-weight: ${N};
311
311
  `,l.partial`
312
312
  font-family: ${$};
313
- font-size: ${W};
313
+ font-size: ${j};
314
314
  line-height: ${st};
315
- font-weight: ${D};
315
+ font-weight: ${V};
316
316
  `,l.partial`
317
317
  font-family: ${$};
318
- font-size: ${W};
318
+ font-size: ${j};
319
319
  line-height: ${st};
320
- font-weight: ${rs};
320
+ font-weight: ${ds};
321
321
  `,l.partial`
322
322
  font-family: ${$};
323
- font-size: ${no};
324
- line-height: ${ns};
325
- font-weight: ${L};
323
+ font-size: ${bo};
324
+ line-height: ${hs};
325
+ font-weight: ${N};
326
326
  `,l.partial`
327
327
  font-family: ${$};
328
- font-size: ${no};
329
- line-height: ${ns};
330
- font-weight: ${D};
331
- `;const ud=l.partial`
328
+ font-size: ${bo};
329
+ line-height: ${hs};
330
+ font-weight: ${V};
331
+ `;const wd=l.partial`
332
332
  font-family: ${$};
333
- font-size: ${Ae};
334
- line-height: ${as};
335
- font-weight: ${D};
333
+ font-size: ${De};
334
+ line-height: ${us};
335
+ font-weight: ${V};
336
336
  `;l.partial`
337
337
  font-family: ${$};
338
- font-size: ${dt};
339
- line-height: ${$t};
340
- font-weight: ${D};
338
+ font-size: ${ct};
339
+ line-height: ${vt};
340
+ font-weight: ${V};
341
341
  `,l.partial`
342
342
  font-family: ${$};
343
- font-size: ${dt};
344
- line-height: ${$t};
345
- font-weight: ${rs};
343
+ font-size: ${ct};
344
+ line-height: ${vt};
345
+ font-weight: ${ds};
346
346
  `,l.partial`
347
347
  font-family: ${$};
348
- font-size: ${qr};
349
- line-height: ${Kr};
350
- font-weight: ${D};
348
+ font-size: ${nn};
349
+ line-height: ${hn};
350
+ font-weight: ${V};
351
351
  `,l.partial`
352
352
  font-family: ${$};
353
- font-size: ${Rr};
354
- line-height: ${Xr};
355
- font-weight: ${D};
353
+ font-size: ${rn};
354
+ line-height: ${dn};
355
+ font-weight: ${V};
356
356
  `,l.partial`
357
357
  font-family: ${$};
358
- font-size: ${is};
359
- line-height: ${Ur};
360
- font-weight: ${D};
358
+ font-size: ${cs};
359
+ line-height: ${cn};
360
+ font-weight: ${V};
361
361
  `,l.partial`
362
362
  font-family: ${$};
363
- font-size: ${Gr};
364
- line-height: ${Yr};
365
- font-weight: ${D};
363
+ font-size: ${an};
364
+ line-height: ${un};
365
+ font-weight: ${V};
366
366
  `,l.partial`
367
367
  font-family: ${$};
368
- font-size: ${Wr};
369
- line-height: ${Qr};
370
- font-weight: ${D};
371
- `;const pd=l`
372
- :host(${Ye}){border-radius:${ci}}:host(${Ut}){border-radius:${_}}:host(${Ut}${Qe}),:host(${Ut}${Ze}),:host(${Ut}${P}){border-radius:${Et}}${dn}
373
- ${hn}
374
- ${un}
375
- ${dd}
376
- ${hd}
377
- ${cn}
378
- `.withBehaviors(J(l`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function pn(o={}){return f` ${Rt(o)}<slot>${mt(o.defaultContent)}</slot>${oe(o)} `}const gd=pn(),fd=_e.compose({name:`${u.prefix}-badge`,template:gd,styles:pd});fd.define(u.registry);var bd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,U=(o,t,e,s)=>{for(var i=s>1?void 0:s?md(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&bd(t,e,i),i};class et extends x{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),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!==us.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===Ho||t.key===qs){this.click();return}return!0}press(){switch(this.type){case us.reset:{this.resetForm();break}case us.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==us.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)}}}}et.formAssociated=!0,U([a({mode:"boolean"})],et.prototype,"autofocus",2),U([k],et.prototype,"defaultSlottedContent",2),U([a({mode:"boolean"})],et.prototype,"disabled",2),U([a({attribute:"disabled-focusable",mode:"boolean"})],et.prototype,"disabledFocusable",2),U([a({attribute:"tabindex",mode:"fromView",converter:rt})],et.prototype,"tabIndex",2),U([a({attribute:"formaction"})],et.prototype,"formAction",2),U([a({attribute:"form"})],et.prototype,"formAttribute",2),U([a({attribute:"formenctype"})],et.prototype,"formEnctype",2),U([a({attribute:"formmethod"})],et.prototype,"formMethod",2),U([a({attribute:"formnovalidate",mode:"boolean"})],et.prototype,"formNoValidate",2),U([a({attribute:"formtarget"})],et.prototype,"formTarget",2),U([a],et.prototype,"name",2),U([a],et.prototype,"type",2),U([a],et.prototype,"value",2);class Jt extends et{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",e)}}U([a],Jt.prototype,"appearance",2),U([a],Jt.prototype,"shape",2),U([a],Jt.prototype,"size",2),U([a({attribute:"icon-only",mode:"boolean"})],Jt.prototype,"iconOnly",2),qt(Jt,jt);function mi(o={}){return f`<template tabindex="${t=>t.disabled?null:t.tabIndex??0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Rt(o)}<span class="content" part="content"><slot ${ut("defaultSlottedContent")}></slot></span>${oe(o)}</template>`}const $d=mi(),vd=Jt.compose({name:`${u.prefix}-button`,template:$d,styles:ps});vd.define(u.registry);var yd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,St=(o,t,e,s)=>{for(var i=s>1?void 0:s?kd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yd(t,e,i),i};class yt extends x{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),c(this.elementInternals,"checked",t),m.notify(this,"checked")}disabledChanged(t,e){this.elementInternals.ariaDisabled=this.disabled?"true":"false",c(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(t,e){this.disabled=!!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=this.required?"true":"false")}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 m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(this.disabled)return;this.dirtyChecked=!0;const e=this.checked;return this.toggleChecked(),e!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.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.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(t=this.checked){this.elementInternals.ariaChecked=t?"true":"false"}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...t},e??this.validationMessage,s)}}toggleChecked(t=!this.checked){this.checked=t}}yt.formAssociated=!0,St([a({mode:"boolean"})],yt.prototype,"autofocus",2),St([k],yt.prototype,"disabled",2),St([a({attribute:"disabled",mode:"boolean"})],yt.prototype,"disabledAttribute",2),St([a({attribute:"form"})],yt.prototype,"formAttribute",2),St([a({attribute:"checked",mode:"boolean"})],yt.prototype,"initialChecked",2),St([a({attribute:"value",mode:"fromView"})],yt.prototype,"initialValue",2),St([a],yt.prototype,"name",2),St([a({mode:"boolean"})],yt.prototype,"required",2);class bs extends yt{indeterminateChanged(t,e){this.setAriaChecked(),c(this.elementInternals,"indeterminate",e)}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(t=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(t)}toggleChecked(t=!this.checked){this.indeterminate=!1,super.toggleChecked(t)}}St([k],bs.prototype,"indeterminate",2),St([a],bs.prototype,"shape",2),St([a],bs.prototype,"size",2);const me=l.partial`:is([state--indeterminate], :state(indeterminate))`,xd=l`
380
- ${I("inline-flex")}
381
-
382
- :host{--size:16px;background-color:${E};border-radius:${Et};border:${K} solid ${pe};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${so}}:host(:active){border-color:${io}}:host(${v}:hover){background-color:${eo};border-color:${Wa}}:host(${v}:active){background-color:${oo};border-color:${Pr}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Ct} solid ${lt};border-radius:${_}}:host(:not([slot='input']):focus-visible)::after{border-color:${Nt}}.indeterminate-indicator,.checked-indicator{color:${to};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(${v})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${v}),:host(${me}){border-color:${ss}}:host(${v}),:host(${me}) .indeterminate-indicator{background-color:${ze}}:host(${me}) .indeterminate-indicator{border-radius:${Et};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${w}){--size:20px}:host(${w}) ::slotted([slot='checked-indicator']),:host(${w}) .checked-indicator{width:16px}:host(${Ke}),:host(${Ke}) .indeterminate-indicator{border-radius:${ct}}:host([disabled]),:host([disabled]${v}){background-color:${Be};border-color:${Mt}}:host([disabled]){cursor:unset}:host([disabled]${me}) .indeterminate-indicator{background-color:${Mt}}:host([disabled]${v}) .checked-indicator{color:${Mt}}`.withBehaviors(J(l`
383
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${v}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${v}),:host(${me}) .indeterminate-indicator{background-color:FieldText}:host(${v}:not([disabled]):hover),:host(${me}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${me}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${v}) .checked-indicator{color:GrayText}`)),wd=f.partial(`
368
+ font-size: ${ln};
369
+ line-height: ${pn};
370
+ font-weight: ${V};
371
+ `;const Cd=l`
372
+ :host(${ro}){border-radius:${mi}}:host(${Yt}){border-radius:${T}}:host(${Yt}${no}),:host(${Yt}${ao}),:host(${Yt}${z}){border-radius:${Lt}}${Cn}
373
+ ${In}
374
+ ${Sn}
375
+ ${kd}
376
+ ${xd}
377
+ ${wn}
378
+ `.withBehaviors(Q(l`
379
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function zn(o={}){return b` ${Wt(o)}<slot>${xt(o.defaultContent)}</slot>${ie(o)} `}const Id=zn(),Sd=je.compose({name:`${u.prefix}-badge`,template:Id,styles:Cd});Sd.define(u.registry);var zd=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,K=(o,t,e,s)=>{for(var i=s>1?void 0:s?Pd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&zd(t,e,i),i};class nt extends x{constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),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!==ms.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===Uo||t.key===Qs){this.click();return}return!0}press(){switch(this.type){case ms.reset:{this.resetForm();break}case ms.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ms.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)}}}}nt.formAssociated=!0,K([a({mode:"boolean"})],nt.prototype,"autofocus",2),K([k],nt.prototype,"defaultSlottedContent",2),K([a({mode:"boolean"})],nt.prototype,"disabled",2),K([a({attribute:"disabled-focusable",mode:"boolean"})],nt.prototype,"disabledFocusable",2),K([a({attribute:"tabindex",mode:"fromView",converter:ot})],nt.prototype,"tabIndex",2),K([a({attribute:"formaction"})],nt.prototype,"formAction",2),K([a({attribute:"form"})],nt.prototype,"formAttribute",2),K([a({attribute:"formenctype"})],nt.prototype,"formEnctype",2),K([a({attribute:"formmethod"})],nt.prototype,"formMethod",2),K([a({attribute:"formnovalidate",mode:"boolean"})],nt.prototype,"formNoValidate",2),K([a({attribute:"formtarget"})],nt.prototype,"formTarget",2),K([a],nt.prototype,"name",2),K([a],nt.prototype,"type",2),K([a],nt.prototype,"value",2);class ee extends nt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){c(this.elementInternals,"icon",e)}}K([a],ee.prototype,"appearance",2),K([a],ee.prototype,"shape",2),K([a],ee.prototype,"size",2),K([a({attribute:"icon-only",mode:"boolean"})],ee.prototype,"iconOnly",2),Ut(ee,Gt);function Pi(o={}){return b`<template tabindex="${t=>t.disabled?null:t.tabIndex??0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Wt(o)}<span class="content" part="content"><slot ${lt("defaultSlottedContent")}></slot></span>${ie(o)}</template>`}const Td=Pi(),Bd=ee.compose({name:`${u.prefix}-button`,template:Td,styles:$s});Bd.define(u.registry);var Ad=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,Bt=(o,t,e,s)=>{for(var i=s>1?void 0:s?Fd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ad(t,e,i),i};class It extends x{constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return f.track(this,"checked"),!!this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),c(this.elementInternals,"checked",t),f.notify(this,"checked")}disabledChanged(t,e){this.elementInternals.ariaDisabled=this.disabled?"true":"false",c(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(t,e){this.disabled=!!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=this.required?"true":"false")}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 f.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),f.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(this.disabled)return;this.dirtyChecked=!0;const e=this.checked;return this.toggleChecked(),e!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.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.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(t=this.checked){this.elementInternals.ariaChecked=t?"true":"false"}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...t},e??this.validationMessage,s)}}toggleChecked(t=!this.checked){this.checked=t}}It.formAssociated=!0,Bt([a({mode:"boolean"})],It.prototype,"autofocus",2),Bt([k],It.prototype,"disabled",2),Bt([a({attribute:"disabled",mode:"boolean"})],It.prototype,"disabledAttribute",2),Bt([a({attribute:"form"})],It.prototype,"formAttribute",2),Bt([a({attribute:"checked",mode:"boolean"})],It.prototype,"initialChecked",2),Bt([a({attribute:"value",mode:"fromView"})],It.prototype,"initialValue",2),Bt([a],It.prototype,"name",2),Bt([a({mode:"boolean"})],It.prototype,"required",2);class ks extends It{indeterminateChanged(t,e){this.setAriaChecked(),c(this.elementInternals,"indeterminate",e)}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(t=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(t)}toggleChecked(t=!this.checked){this.indeterminate=!1,super.toggleChecked(t)}}Bt([k],ks.prototype,"indeterminate",2),Bt([a],ks.prototype,"shape",2),Bt([a],ks.prototype,"size",2);const ve=l.partial`:is([state--indeterminate], :state(indeterminate))`,Od=l`
380
+ ${C("inline-flex")}
381
+
382
+ :host{--size:16px;background-color:${_};border-radius:${Lt};border:${X} solid ${ne};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ne}}:host(:active){border-color:${Me}}:host(${v}:hover){background-color:${co};border-color:${nl}}:host(${v}:active){background-color:${ho};border-color:${Rr}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${Tt} solid ${pt};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Dt}}.indeterminate-indicator,.checked-indicator{color:${Fe};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(${v})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${v}),:host(${ve}){border-color:${go}}:host(${v}),:host(${ve}) .indeterminate-indicator{background-color:${_e}}:host(${ve}) .indeterminate-indicator{border-radius:${Lt};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${w}){--size:20px}:host(${w}) ::slotted([slot='checked-indicator']),:host(${w}) .checked-indicator{width:16px}:host(${io}),:host(${io}) .indeterminate-indicator{border-radius:${gt}}:host([disabled]),:host([disabled]${v}){background-color:${Ee};border-color:${Pt}}:host([disabled]){cursor:unset}:host([disabled]${ve}) .indeterminate-indicator{background-color:${Pt}}:host([disabled]${v}) .checked-indicator{color:${Pt}}`.withBehaviors(Q(l`
383
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${v}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${v}),:host(${ve}) .indeterminate-indicator{background-color:FieldText}:host(${v}:not([disabled]):hover),:host(${ve}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${ve}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${v}) .checked-indicator{color:GrayText}`)),Ed=b.partial(`
384
384
  <svg
385
385
  fill="currentColor"
386
386
  aria-hidden="true"
@@ -391,21 +391,21 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
391
391
  xmlns="http://www.w3.org/2000/svg">
392
392
  <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>
393
393
  </svg>
394
- `),Cd=f.partial(`
394
+ `),_d=b.partial(`
395
395
  <span class="indeterminate-indicator"></span>
396
- `);function Id(o={}){return f`<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">${mt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${mt(o.indeterminateIndicator)}</slot></template>`}const Sd=Id({checkedIndicator:wd,indeterminateIndicator:Cd}),Pd=bs.compose({name:`${u.prefix}-checkbox`,template:Sd,styles:xd});Pd.define(u.registry);class Td extends Jt{}const Bd=l`
397
- ${ps}
398
-
399
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${F};line-height:${H}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${_t};line-height:100%;font-size:${W};font-weight:${L}}::slotted(svg),:host(${w}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Yo}}:host(:active) ::slotted([slot='description']){color:${Qo}}:host(:is(${nt},${nt}:hover,${nt}:active)) ::slotted([slot='description']){color:${Yt}}:host(:is(${S},${S}:hover,${S}:active)) ::slotted([slot='description']),:host(${X}) ::slotted([slot='description']){color:${_t}}:host(${X}:hover) ::slotted([slot='description']){color:${Zo}}:host(${X}:active) ::slotted([slot='description']){color:${Jo}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
400
- ::slotted([slot='description']){color:${z}}:host(${P}){padding:8px;padding-bottom:10px}:host(${Pe}){min-width:52px;max-width:52px;padding:${It}}:host(${Pe}${P}){min-width:48px;max-width:48px;padding:${Qt}}:host(${Pe}${w}){min-width:56px;max-width:56px;padding:${Zt}}:host(${w}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${dt};line-height:${$t}}:host(${w}) ::slotted([slot='description']){font-size:${F}}`;function zd(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${Rt(o)}<span class="content" part="content"><slot ${ut("defaultSlottedContent")}></slot><slot name="description"></slot></span>${oe(o)}</template>`}const Ad=zd(),Fd=Td.compose({name:`${u.prefix}-compound-button`,template:Ad,styles:Bd});Fd.define(u.registry);var Od=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,ne=(o,t,e,s)=>{for(var i=s>1?void 0:s?_d(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Od(t,e,i),i};class Dt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){c(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}ne([a],Dt.prototype,"appearance",2),ne([a],Dt.prototype,"color",2),ne([a],Dt.prototype,"shape",2),ne([a],Dt.prototype,"size",2),ne([a({converter:rt})],Dt.prototype,"count",2),ne([a({attribute:"overflow-count",converter:rt})],Dt.prototype,"overflowCount",2),ne([a({attribute:"show-zero",mode:"boolean"})],Dt.prototype,"showZero",2),ne([a({mode:"boolean"})],Dt.prototype,"dot",2),qt(Dt,jt);const gn=l.partial`:is([state--dot], :state(dot))`,Md=l`
401
- :host(${Ut}){border-radius:${_}}:host(${Ut}${Qe}),:host(${Ut}${Ze}),:host(${Ut}${P}){border-radius:${Et}}${dn}
402
- ${hn}
403
- ${un}
404
- ${cn}
405
-
406
- :host(${gn}),:host(${gn}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Nd(o={}){return pn({defaultContent:f`${t=>t.setCount()}`})}const Ed=Nd(),Ld=Dt.compose({name:`${u.prefix}-counter-badge`,template:Ed,styles:Md});Ld.define(u.registry);const Ht={modal:"modal",nonModal:"non-modal",alert:"alert"};var Dd=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,ms=(o,t,e,s)=>{for(var i=s>1?void 0:s?Hd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Dd(t,e,i),i};class uo extends x{constructor(){super(...arguments),this.type=Ht.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(){At.enqueue(()=>{this.emitBeforeToggle(),this.type===Ht.alert||this.type===Ht.modal?this.dialog.showModal():this.type===Ht.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==Ht.alert&&t.target===this.dialog&&this.hide(),!0}}ms([k],uo.prototype,"dialog",2),ms([a({attribute:"aria-describedby"})],uo.prototype,"ariaDescribedby",2),ms([a({attribute:"aria-labelledby"})],uo.prototype,"ariaLabelledby",2),ms([a],uo.prototype,"type",2);const Vd=f`<dialog role="${o=>o.type===Ht.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Ht.modal||o.type===Ht.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===Ht.alert?t.event.preventDefault():o.hide()}" ${Ot("dialog")}><slot></slot></dialog>`,jd=l`
407
- @layer base{:host{--dialog-backdrop:${si};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${E};border-radius:${jr};border:none;box-shadow:${tn};color:${B};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:${ui};transition-timing-function:${ho};opacity:0}::backdrop{transition-timing-function:${gi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${co}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(J(l`
408
- @layer base{dialog{border:${K} solid ${lt}}}`)),Rd=uo.compose({name:`${u.prefix}-dialog`,template:Vd,styles:jd});Rd.define(u.registry);var qd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,Wd=(o,t,e,s)=>{for(var i=s>1?void 0:s?Gd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&qd(t,e,i),i};class fn extends x{constructor(){super(...arguments),this.noTitleAction=!1}}Wd([a({mode:"boolean",attribute:"no-title-action"})],fn.prototype,"noTitleAction",2);const Ud=f.partial(`
396
+ `);function Nd(o={}){return b`<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">${xt(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${xt(o.indeterminateIndicator)}</slot></template>`}const Md=Nd({checkedIndicator:Ed,indeterminateIndicator:_d}),Dd=ks.compose({name:`${u.prefix}-checkbox`,template:Md,styles:Od});Dd.define(u.registry);class Ld extends ee{}const Vd=l`
397
+ ${$s}
398
+
399
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${F};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Mt};line-height:100%;font-size:${j};font-weight:${N}}::slotted(svg),:host(${w}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${es}}:host(:active) ::slotted([slot='description']){color:${os}}:host(:is(${ht},${ht}:hover,${ht}:active)) ::slotted([slot='description']){color:${Jt}}:host(:is(${S},${S}:hover,${S}:active)) ::slotted([slot='description']),:host(${Z}) ::slotted([slot='description']){color:${Mt}}:host(${Z}:hover) ::slotted([slot='description']){color:${ss}}:host(${Z}:active) ::slotted([slot='description']){color:${is}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
400
+ ::slotted([slot='description']){color:${P}}:host(${z}){padding:8px;padding-bottom:10px}:host(${Ae}){min-width:52px;max-width:52px;padding:${yt}}:host(${Ae}${z}){min-width:48px;max-width:48px;padding:${Vt}}:host(${Ae}${w}){min-width:56px;max-width:56px;padding:${te}}:host(${w}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ct};line-height:${vt}}:host(${w}) ::slotted([slot='description']){font-size:${F}}`;function Hd(o={}){return b`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?null:t.tabIndex??0}">${Wt(o)}<span class="content" part="content"><slot ${lt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${ie(o)}</template>`}const Rd=Hd(),jd=Ld.compose({name:`${u.prefix}-compound-button`,template:Rd,styles:Vd});jd.define(u.registry);var qd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,he=(o,t,e,s)=>{for(var i=s>1?void 0:s?Gd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&qd(t,e,i),i};class Rt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){c(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}he([a],Rt.prototype,"appearance",2),he([a],Rt.prototype,"color",2),he([a],Rt.prototype,"shape",2),he([a],Rt.prototype,"size",2),he([a({converter:ot})],Rt.prototype,"count",2),he([a({attribute:"overflow-count",converter:ot})],Rt.prototype,"overflowCount",2),he([a({attribute:"show-zero",mode:"boolean"})],Rt.prototype,"showZero",2),he([a({mode:"boolean"})],Rt.prototype,"dot",2),Ut(Rt,Gt);const Pn=l.partial`:is([state--dot], :state(dot))`,Wd=l`
401
+ :host(${Yt}){border-radius:${T}}:host(${Yt}${no}),:host(${Yt}${ao}),:host(${Yt}${z}){border-radius:${Lt}}${Cn}
402
+ ${In}
403
+ ${Sn}
404
+ ${wn}
405
+
406
+ :host(${Pn}),:host(${Pn}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function Ud(o={}){return zn({defaultContent:b`${t=>t.setCount()}`})}const Xd=Ud(),Kd=Rt.compose({name:`${u.prefix}-counter-badge`,template:Xd,styles:Wd});Kd.define(u.registry);const jt={modal:"modal",nonModal:"non-modal",alert:"alert"};var Yd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,xs=(o,t,e,s)=>{for(var i=s>1?void 0:s?Qd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Yd(t,e,i),i};class $o extends x{constructor(){super(...arguments),this.type=jt.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(){_t.enqueue(()=>{this.emitBeforeToggle(),this.type===jt.alert||this.type===jt.modal?this.dialog.showModal():this.type===jt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==jt.alert&&t.target===this.dialog&&this.hide(),!0}}xs([k],$o.prototype,"dialog",2),xs([a({attribute:"aria-describedby"})],$o.prototype,"ariaDescribedby",2),xs([a({attribute:"aria-labelledby"})],$o.prototype,"ariaLabelledby",2),xs([a],$o.prototype,"type",2);const Zd=b`<dialog role="${o=>o.type===jt.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===jt.modal||o.type===jt.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===jt.alert?t.event.preventDefault():o.hide()}" ${kt("dialog")}><slot></slot></dialog>`,Jd=l`
407
+ @layer base{:host{--dialog-backdrop:${hi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${_};border-radius:${sn};border:none;box-shadow:${bn};color:${B};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:${wi};transition-timing-function:${He};opacity:0}::backdrop{transition-timing-function:${Ii}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Ve}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Q(l`
408
+ @layer base{dialog{border:${X} solid ${pt}}}`)),th=$o.compose({name:`${u.prefix}-dialog`,template:Zd,styles:Jd});th.define(u.registry);var eh=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,sh=(o,t,e,s)=>{for(var i=s>1?void 0:s?oh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&eh(t,e,i),i};class Tn extends x{constructor(){super(...arguments),this.noTitleAction=!1}}sh([a({mode:"boolean",attribute:"no-title-action"})],Tn.prototype,"noTitleAction",2);const ih=b.partial(`
409
409
  <svg
410
410
  fill="currentColor"
411
411
  aria-hidden="true"
@@ -418,103 +418,107 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
418
418
  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"
419
419
  fill="currentColor"
420
420
  ></path>
421
- </svg>`),Xd=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Ht.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${Ot("defaultTitleAction")}>${Ud}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Kd=l`
422
- ${I("grid")}
421
+ </svg>`),rh=b`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===jt.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${kt("defaultTitleAction")}>${ih}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,nh=l`
422
+ ${C("grid")}
423
423
 
424
- :host{background:${E};box-sizing:border-box;gap:${it};padding:${lo} ${bc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${E};color:${B};column-gap:8px;display:flex;font-family:${$};font-size:${Ae};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${as};margin-block-end:calc(${it} * -1);margin-block-start:calc(${lo} * -1);padding-block-end:${it};padding-block-start:${lo};position:sticky;z-index:1}.content{box-sizing:border-box;color:${B};font-family:${$};font-size:${F};font-weight:${L};line-height:${H};min-height:32px}.actions{box-sizing:border-box;background:${E};display:flex;flex-direction:column;gap:${it};inset-block-end:0;margin-block-end:calc(${lo} * -1);padding-block-end:${lo};padding-block-start:${cs};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(${it} * -1);padding-block-start:${it}}}`,Yd=fn.compose({name:`${u.prefix}-dialog-body`,template:Xd,styles:Kd});Yd.define(u.registry);const po={separator:"separator",presentation:"presentation"},Qd=pt;var Zd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,go=(o,t,e,s)=>{for(var i=s>1?void 0:s?Jd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Zd(t,e,i),i};class $i extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??po.separator,this.role!==po.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Qd.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??po.separator}`),e===po.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==po.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}go([a],$i.prototype,"role",2),go([a],$i.prototype,"orientation",2);class $s extends $i{constructor(){super(...arguments),this.inset=!1}alignContentChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}insetChanged(t,e){c(this.elementInternals,"inset",e)}}go([a({attribute:"align-content"})],$s.prototype,"alignContent",2),go([a],$s.prototype,"appearance",2),go([a({mode:"boolean"})],$s.prototype,"inset",2);function th(){return f`<slot></slot>`}const eh=th(),oh=l`
425
- ${I("flex")}
424
+ :host{background:${_};box-sizing:border-box;gap:${rt};padding:${mo} ${Tc};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${_};color:${B};column-gap:8px;display:flex;font-family:${$};font-size:${De};font-weight:${V};inset-block-start:0;justify-content:space-between;line-height:${us};margin-block-end:calc(${rt} * -1);margin-block-start:calc(${mo} * -1);padding-block-end:${rt};padding-block-start:${mo};position:sticky;z-index:1}.content{box-sizing:border-box;color:${B};font-family:${$};font-size:${F};font-weight:${N};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${_};display:flex;flex-direction:column;gap:${rt};inset-block-end:0;margin-block-end:calc(${mo} * -1);padding-block-end:${mo};padding-block-start:${gs};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(${rt} * -1);padding-block-start:${rt}}}`,ah=Tn.compose({name:`${u.prefix}-dialog-body`,template:rh,styles:nh});ah.define(u.registry);const vo={separator:"separator",presentation:"presentation"},lh=$t;var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,yo=(o,t,e,s)=>{for(var i=s>1?void 0:s?dh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ch(t,e,i),i};class Ti extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??vo.separator,this.role!==vo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??lh.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??vo.separator}`),e===vo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==vo.presentation?e:null,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}yo([a],Ti.prototype,"role",2),yo([a],Ti.prototype,"orientation",2);class ws extends Ti{constructor(){super(...arguments),this.inset=!1}alignContentChanged(t,e){t&&c(this.elementInternals,`align-${t}`,!1),e&&c(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}insetChanged(t,e){c(this.elementInternals,"inset",e)}}yo([a({attribute:"align-content"})],ws.prototype,"alignContent",2),yo([a],ws.prototype,"appearance",2),yo([a({mode:"boolean"})],ws.prototype,"inset",2);function hh(){return b`<slot></slot>`}const uh=hh(),ph=l`
425
+ ${C("flex")}
426
426
 
427
- :host{contain:content}:host::after,:host::before{align-self:center;background:${ro};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${K}}:host(${Xs}){padding:0 12px}:host ::slotted(*){color:${_t};font-family:${$};font-size:${W};font-weight:${L};margin:0;padding:0 12px}:host(${vr})::before,:host(${Xt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${C}){height:100%;min-height:84px}:host(${C}):empty{min-height:20px}:host(${C}){flex-direction:column;align-items:center}:host(${C}${Xs})::before{margin-top:12px}:host(${C}${Xs})::after{margin-bottom:12px}:host(${C}):empty::before,:host(${C}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${C})::before,:host(${C})::after{width:${K};min-height:20px;height:100%}:host(${C}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${C}${vr})::before{min-height:8px}:host(${C}${Xt})::after{min-height:8px}:host(${Ue})::before,:host(${Ue})::after{background:${ge}}:host(${Ue}) ::slotted(*){color:${B}}:host(${Kt})::before,:host(${Kt})::after{background:${Sr}}:host(${Kt}) ::slotted(*){color:${Qs}}:host(${S})::before,:host(${S})::after{background:${qa}}:host(${S}) ::slotted(*){color:${at}}`.withBehaviors(J(l`
428
- :host(${Ue})::before,:host(${Ue})::after,:host(${Kt})::before,:host(${Kt})::after,:host(${S})::before,:host(${S})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),sh=$s.compose({name:`${u.prefix}-divider`,template:eh,styles:oh});sh.define(u.registry);const ih={start:"start",end:"end"},rh={small:"small",medium:"medium",large:"large",full:"full"},vi={nonModal:"non-modal",modal:"modal",inline:"inline"};var nh=Object.defineProperty,ah=Object.getOwnPropertyDescriptor,Me=(o,t,e,s)=>{for(var i=s>1?void 0:s?ah(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&nh(t,e,i),i};class $e extends x{constructor(){super(...arguments),this.type=vi.modal,this.position=ih.start,this.size=rh.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}show(){At.enqueue(()=>{this.emitBeforeToggle(),this.type===vi.inline||this.type===vi.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}Me([a],$e.prototype,"type",2),Me([a({attribute:"aria-labelledby"})],$e.prototype,"ariaLabelledby",2),Me([a({attribute:"aria-describedby"})],$e.prototype,"ariaDescribedby",2),Me([a],$e.prototype,"position",2),Me([a({attribute:"size"})],$e.prototype,"size",2),Me([k],$e.prototype,"dialog",2);const lh=l`
429
- ${I("block")}
427
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${po};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${X}}:host(${oi}){padding:0 12px}:host ::slotted(*){color:${Mt};font-family:${$};font-size:${j};font-weight:${N};margin:0;padding:0 12px}:host(${Br})::before,:host(${Qt})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${I}){height:100%;min-height:84px}:host(${I}):empty{min-height:20px}:host(${I}){flex-direction:column;align-items:center}:host(${I}${oi})::before{margin-top:12px}:host(${I}${oi})::after{margin-bottom:12px}:host(${I}):empty::before,:host(${I}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${I})::before,:host(${I})::after{width:${X};min-height:20px;height:100%}:host(${I}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${I}${Br})::before{min-height:8px}:host(${I}${Qt})::after{min-height:8px}:host(${oo})::before,:host(${oo})::after{background:${ae}}:host(${oo}) ::slotted(*){color:${B}}:host(${Zt})::before,:host(${Zt})::after{background:${Hr}}:host(${Zt}) ::slotted(*){color:${ni}}:host(${S})::before,:host(${S})::after{background:${il}}:host(${S}) ::slotted(*){color:${ut}}`.withBehaviors(Q(l`
428
+ :host(${oo})::before,:host(${oo})::after,:host(${Zt})::before,:host(${Zt})::after,:host(${S})::before,:host(${S})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),gh=ws.compose({name:`${u.prefix}-divider`,template:uh,styles:ph});gh.define(u.registry);const bh={start:"start",end:"end"},fh={small:"small",medium:"medium",large:"large",full:"full"},Bi={nonModal:"non-modal",modal:"modal",inline:"inline"};var mh=Object.defineProperty,$h=Object.getOwnPropertyDescriptor,qe=(o,t,e,s)=>{for(var i=s>1?void 0:s?$h(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&mh(t,e,i),i};class ye extends x{constructor(){super(...arguments),this.type=Bi.modal,this.position=bh.start,this.size=fh.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}show(){_t.enqueue(()=>{this.emitBeforeToggle(),this.type===Bi.inline||this.type===Bi.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}qe([a],ye.prototype,"type",2),qe([a({attribute:"aria-labelledby"})],ye.prototype,"ariaLabelledby",2),qe([a({attribute:"aria-describedby"})],ye.prototype,"ariaDescribedby",2),qe([a],ye.prototype,"position",2),qe([a({attribute:"size"})],ye.prototype,"size",2),qe([k],ye.prototype,"dialog",2);const vh=l`
429
+ ${C("block")}
430
430
 
431
- :host{--dialog-backdrop:${si}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${F};line-height:${H};font-family:${$};font-weight:${L};color:${B};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${lt};border-inline-start-color:var(--drawer-separator,${lt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${tn};border:${K} solid ${lt};background:${E}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${ui};transition-timing-function:${ho}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${co}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${co}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${ui};transition-timing-function:${ho};background:var(--dialog-backdrop,${si});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${gi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function ch(){return f`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${Ot("dialog")}><slot></slot></dialog>`}const dh=ch(),hh=$e.compose({name:`${u.prefix}-drawer`,template:dh,styles:lh});hh.define(u.registry);class uh extends x{}const ph=l`
432
- ${I("grid")}
433
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${fc};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${ud}}.footer{display:flex;justify-content:flex-start;gap:${bt}}`;function gh(){return f`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const fh=gh(),bh=uh.compose({name:`${u.prefix}-drawer-body`,template:fh,styles:ph});bh.define(u.registry);const mh={above:"above",after:"after",before:"before"},y={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,vh=Object.getOwnPropertyDescriptor,fo=(o,t,e,s)=>{for(var i=s>1?void 0:s?vh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&$h(t,e,i),i};class bo extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ge("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(y))c(this.elementInternals,e,this.input.validity[t])}}fo([k],bo.prototype,"labelSlot",2),fo([k],bo.prototype,"messageSlot",2),fo([k],bo.prototype,"slottedInputs",2),fo([k],bo.prototype,"input",2);class bn extends bo{constructor(){super(...arguments),this.labelPosition=mh.above}}fo([a({attribute:"label-position"})],bn.prototype,"labelPosition",2);const yh=l.partial`:is([state--focus-visible], :state(focus-visible))`,kh=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,xh=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,wh=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,Ch=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,Ih=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,Sh=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,Ph=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,Th=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,Bh=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,zh=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,Ah=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,Fh=l.partial`:is([state--has-message], :state(has-message))`,Oh=l`
434
- ${I("inline-grid")}
431
+ :host{--dialog-backdrop:${hi}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${F};line-height:${L};font-family:${$};font-weight:${N};color:${B};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${pt};border-inline-start-color:var(--drawer-separator,${pt});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${bn};border:${X} solid ${pt};background:${_}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${wi};transition-timing-function:${He}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${Ve}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${Ve}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${wi};transition-timing-function:${He};background:var(--dialog-backdrop,${hi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ii}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function yh(){return b`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${kt("dialog")}><slot></slot></dialog>`}const kh=yh(),xh=ye.compose({name:`${u.prefix}-drawer`,template:kh,styles:vh});xh.define(u.registry);class wh extends x{}const Ch=l`
432
+ ${C("grid")}
433
+ :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Pc};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${wd}}.footer{display:flex;justify-content:flex-start;gap:${ft}}`;function Ih(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Sh=Ih(),zh=wh.compose({name:`${u.prefix}-drawer-body`,template:Sh,styles:Ch});zh.define(u.registry);const Ph={above:"above",after:"after",before:"before"},y={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 Th=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,ko=(o,t,e,s)=>{for(var i=s>1?void 0:s?Bh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Th(t,e,i),i};class xo extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(t,e){e&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(t,e){if(c(this.elementInternals,"has-message",!!e.length),!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){e?.length&&(this.input=e?.[0],this.setStates())}inputChanged(t,e){e&&(this.setStates(),this.setLabelProperties())}changeHandler(t){return this.setStates(),this.setValidationStates(),!0}clickHandler(t){return this===t.target&&this.input.click(),!0}focusinHandler(t){return this.matches(":focus-within:has(> :focus-visible)")&&c(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return c(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||to("input"),this.labelSlot?.forEach(t=>{t instanceof HTMLLabelElement&&(t.htmlFor=t.htmlFor||this.input.id,t.id=t.id||`${this.input.id}--label`,t.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",t.id))}))}setStates(){this.$fastController.isConnected&&(c(this.elementInternals,"disabled",!!this.input.disabled),c(this.elementInternals,"readonly",!!this.input.readOnly),c(this.elementInternals,"required",!!this.input.required),c(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[t,e]of Object.entries(y))c(this.elementInternals,e,this.input.validity[t])}}ko([k],xo.prototype,"labelSlot",2),ko([k],xo.prototype,"messageSlot",2),ko([k],xo.prototype,"slottedInputs",2),ko([k],xo.prototype,"input",2);class Bn extends xo{constructor(){super(...arguments),this.labelPosition=Ph.above}}ko([a({attribute:"label-position"})],Bn.prototype,"labelPosition",2);const Ah=l.partial`:is([state--focus-visible], :state(focus-visible))`,Fh=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,Oh=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,Eh=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,_h=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,Nh=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,Mh=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,Dh=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,Lh=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,Vh=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,Hh=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,Rh=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,jh=l.partial`:is([state--has-message], :state(has-message))`,qh=l`
434
+ ${C("inline-grid")}
435
435
 
436
- :host{color:${B};align-items:center;gap:0 ${bt};justify-items:start;position:relative}:has([slot='message']){color:${B};row-gap:${it}}: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:${bt}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${ao}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${$c}}:host([label-position='below']:not(${Fh})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${ao};grid-area:message}:host(${yh}:focus-within){border-radius:${_};outline:${Ct} solid ${Nt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${F};font-weight:${L};grid-area:label;line-height:${H};user-select:none}:host([size='small']) ::slotted(label){font-size:${W};line-height:${st}}:host([size='large']) ::slotted(label){font-size:${dt};line-height:${$t}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${O}){cursor:default}::slotted([flag]){display:none}:host(${kh}) ::slotted([flag='${y.badInput}']),:host(${xh}) ::slotted([flag='${y.customError}']),:host(${wh}) ::slotted([flag='${y.patternMismatch}']),:host(${Ch}) ::slotted([flag='${y.rangeOverflow}']),:host(${Ih}) ::slotted([flag='${y.rangeUnderflow}']),:host(${Sh}) ::slotted([flag='${y.stepMismatch}']),:host(${Ph}) ::slotted([flag='${y.tooLong}']),:host(${Th}) ::slotted([flag='${y.tooShort}']),:host(${Bh}) ::slotted([flag='${y.typeMismatch}']),:host(${Ah}) ::slotted([flag='${y.valueMissing}']),:host(${zh}) ::slotted([flag='${y.valid}']){display:block}`,_h=f`<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)}" ${Kn({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:qe()})}><slot name="label" part="label" ${ut("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${ut({property:"messageSlot",filter:qe("[flag]")})}></slot></template>`,Mh=bn.compose({name:`${u.prefix}-field`,template:_h,styles:Oh,shadowOptions:{delegatesFocus:!0}});Mh.define(u.registry);var Nh=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,mo=(o,t,e,s)=>{for(var i=s>1?void 0:s?Eh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Nh(t,e,i),i};class Ne extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){c(this.elementInternals,"block",e)}borderedChanged(t,e){c(this.elementInternals,"bordered",e)}shadowChanged(t,e){c(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&c(this.elementInternals,`fit-${t}`,!1),e&&c(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}mo([a({mode:"boolean"})],Ne.prototype,"block",2),mo([a({mode:"boolean"})],Ne.prototype,"bordered",2),mo([a({mode:"boolean"})],Ne.prototype,"shadow",2),mo([a],Ne.prototype,"fit",2),mo([a],Ne.prototype,"shape",2);const Lh=f`<slot></slot>`,Dh=l`
437
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${K} solid ${ro}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${ls}}:host(${Ke}) ::slotted(img){border-radius:${ct}}:host(${Ut}) ::slotted(img){border-radius:${_}}`,Hh=Ne.compose({name:`${u.prefix}-image`,template:Lh,styles:Dh});Hh.define(u.registry);var Vh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,vs=(o,t,e,s)=>{for(var i=s>1?void 0:s?jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Vh(t,e,i),i};class $o extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}vs([a],$o.prototype,"size",2),vs([a],$o.prototype,"weight",2),vs([a({mode:"boolean"})],$o.prototype,"disabled",2),vs([a({mode:"boolean"})],$o.prototype,"required",2);const Rh=l`
438
- ${I("inline-flex")}
436
+ :host{color:${B};align-items:center;gap:0 ${ft};justify-items:start;position:relative}:has([slot='message']){color:${B};row-gap:${rt}}: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:${ft}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${fo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Bc}}:host([label-position='below']:not(${jh})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${fo};grid-area:message}:host(${Ah}:focus-within){border-radius:${T};outline:${Tt} solid ${Dt}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${$};font-size:${F};font-weight:${N};grid-area:label;line-height:${L};user-select:none}:host([size='small']) ::slotted(label){font-size:${j};line-height:${st}}:host([size='large']) ::slotted(label){font-size:${ct};line-height:${vt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${V}}:host(${E}){cursor:default}::slotted([flag]){display:none}:host(${Fh}) ::slotted([flag='${y.badInput}']),:host(${Oh}) ::slotted([flag='${y.customError}']),:host(${Eh}) ::slotted([flag='${y.patternMismatch}']),:host(${_h}) ::slotted([flag='${y.rangeOverflow}']),:host(${Nh}) ::slotted([flag='${y.rangeUnderflow}']),:host(${Mh}) ::slotted([flag='${y.stepMismatch}']),:host(${Dh}) ::slotted([flag='${y.tooLong}']),:host(${Lh}) ::slotted([flag='${y.tooShort}']),:host(${Vh}) ::slotted([flag='${y.typeMismatch}']),:host(${Rh}) ::slotted([flag='${y.valueMissing}']),:host(${Hh}) ::slotted([flag='${y.valid}']){display:block}`,Gh=b`<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)}" ${ca({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:Je()})}><slot name="label" part="label" ${lt("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${lt({property:"messageSlot",filter:Je("[flag]")})}></slot></template>`,Wh=Bn.compose({name:`${u.prefix}-field`,template:Gh,styles:qh,shadowOptions:{delegatesFocus:!0}});Wh.define(u.registry);var Uh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,wo=(o,t,e,s)=>{for(var i=s>1?void 0:s?Xh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Uh(t,e,i),i};class Ge extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){c(this.elementInternals,"block",e)}borderedChanged(t,e){c(this.elementInternals,"bordered",e)}shadowChanged(t,e){c(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&c(this.elementInternals,`fit-${t}`,!1),e&&c(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}wo([a({mode:"boolean"})],Ge.prototype,"block",2),wo([a({mode:"boolean"})],Ge.prototype,"bordered",2),wo([a({mode:"boolean"})],Ge.prototype,"shadow",2),wo([a],Ge.prototype,"fit",2),wo([a],Ge.prototype,"shape",2);const Kh=b`<slot></slot>`,Yh=l`
437
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${X} solid ${po}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${ps}}:host(${io}) ::slotted(img){border-radius:${gt}}:host(${Yt}) ::slotted(img){border-radius:${T}}`,Qh=Ge.compose({name:`${u.prefix}-image`,template:Kh,styles:Yh});Qh.define(u.registry);var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,Cs=(o,t,e,s)=>{for(var i=s>1?void 0:s?Jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Zh(t,e,i),i};class Co extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}}Cs([a],Co.prototype,"size",2),Cs([a],Co.prototype,"weight",2),Cs([a({mode:"boolean"})],Co.prototype,"disabled",2),Cs([a({mode:"boolean"})],Co.prototype,"required",2);const tu=l`
438
+ ${C("inline-flex")}
439
439
 
440
- :host{color:${B};cursor:pointer;font-family:${$};font-size:${F};font-weight:${L};line-height:${H};user-select:none}.asterisk{color:${Fr};margin-inline-start:${Qt}}:host(${P}){font-size:${W};line-height:${st}}:host(${w}){font-size:${dt};line-height:${$t}}:host(${w}),:host(:is([state--semibold],:state(semibold))){font-weight:${D}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${z}}`;function qh(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const Gh=qh(),Wh=$o.compose({name:`${u.prefix}-label`,template:Gh,styles:Rh});Wh.define(u.registry);var Uh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,mn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Xh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Uh(t,e,i),i};class yi extends Lt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){c(this.elementInternals,"inline",e)}}mn([a],yi.prototype,"appearance",2),mn([a({mode:"boolean"})],yi.prototype,"inline",2);const Kh=l`
441
- ${I("inline")}
440
+ :host{color:${B};cursor:pointer;font-family:${$};font-size:${F};font-weight:${N};line-height:${L};user-select:none}.asterisk{color:${Ur};margin-inline-start:${Vt}}:host(${z}){font-size:${j};line-height:${st}}:host(${w}){font-size:${ct};line-height:${vt}}:host(${w}),:host(:is([state--semibold],:state(semibold))){font-weight:${V}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${P}}`;function eu(){return b`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const ou=eu(),su=Co.compose({name:`${u.prefix}-label`,template:ou,styles:tu});su.define(u.registry);var iu=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,An=(o,t,e,s)=>{for(var i=s>1?void 0:s?ru(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&iu(t,e,i),i};class Ai extends Ht{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){c(this.elementInternals,"inline",e)}}An([a],Ai.prototype,"appearance",2),An([a({mode:"boolean"})],Ai.prototype,"inline",2);const nu=l`
441
+ ${C("inline")}
442
442
 
443
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Ia};cursor:pointer;font-family:${$};font-size:${F};font-weight:${L};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${K};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Sa}}:host(:active){color:${Pa}}:host(${S}:hover){color:${Ba}}:host(${S}:active){color:${za}}}:host(${S}){color:${Ta}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(J(l`
444
- :host{color:LinkText}`));function Yh(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Qh=Yh(),Zh=yi.compose({name:`${u.prefix}-link`,template:Qh,styles:Kh});Zh.define(u.registry);class Jh extends Jt{}const tu=mi({end:f.partial(`
443
+ :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Va};cursor:pointer;font-family:${$};font-size:${F};font-weight:${N};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${X};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Ha}}:host(:active){color:${Ra}}:host(${S}:hover){color:${qa}}:host(${S}:active){color:${Ga}}}:host(${S}){color:${ja}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Q(l`
444
+ :host{color:LinkText}`));function au(){return b`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const lu=au(),cu=Ai.compose({name:`${u.prefix}-link`,template:lu,styles:nu});cu.define(u.registry);class du extends ee{}const hu=Pi({end:b.partial(`
445
445
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
446
446
  <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>
447
447
  </svg>
448
- `)}),eu=Jh.compose({name:`${u.prefix}-menu-button`,template:tu,styles:ps});eu.define(u.registry);const Y={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Y.menuitem+"",Y.menuitemcheckbox+"",Y.menuitemradio+"";var ou=Object.defineProperty,su=Object.getOwnPropertyDescriptor,Ee=(o,t,e,s)=>{for(var i=s>1?void 0:s?su(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ou(t,e,i),i};const iu=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class Pt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Y.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Ho:case qs:return this.invoke(),!1;case Eo:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case No:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case Y.menuitemcheckbox:this.checked=!this.checked;break;case Y.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Y.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),s=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[s]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}disabledChanged(t,e){this.elementInternals.ariaDisabled=e?`${e}`:null,c(this.elementInternals,"disabled",e)}roleChanged(t,e){this.elementInternals.role=e??Y.menuitem}checkedChanged(t,e){const s=this.role!==Y.menuitem;this.elementInternals.ariaChecked=s?`${!!e}`:null,c(this.elementInternals,"checked",s?e:!1),this.$fastController.isConnected&&this.$emit("change")}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length?(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",c(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,c(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Y.menuitem,this.elementInternals.ariaChecked=this.role!==Y.menuitem?`${!!this.checked}`:null}}Ee([a({mode:"boolean"})],Pt.prototype,"disabled",2),Ee([a],Pt.prototype,"role",2),Ee([a({mode:"boolean"})],Pt.prototype,"checked",2),Ee([a({mode:"boolean"})],Pt.prototype,"hidden",2),Ee([k],Pt.prototype,"slottedSubmenu",2),Ee([k],Pt.prototype,"submenu",2),qt(Pt,jt);const ys=l.partial`:is([state--submenu], :state(submenu))`,ru=l`
449
- ${I("grid")}
448
+ `)}),uu=du.compose({name:`${u.prefix}-menu-button`,template:hu,styles:$s});uu.define(u.registry);const J={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};J.menuitem+"",J.menuitemcheckbox+"",J.menuitemradio+"";var pu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,We=(o,t,e,s)=>{for(var i=s>1?void 0:s?gu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&pu(t,e,i),i};const bu=()=>o=>o.nodeType===1&&o.elementInternals.role==="menu";class At extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=J.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Uo:case Qs:return this.invoke(),!1;case qo:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case jo:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case J.menuitemcheckbox:this.checked=!this.checked;break;case J.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case J.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),s=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[s]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}disabledChanged(t,e){this.elementInternals.ariaDisabled=e?`${e}`:null,c(this.elementInternals,"disabled",e)}roleChanged(t,e){this.elementInternals.role=e??J.menuitem}checkedChanged(t,e){const s=this.role!==J.menuitem;this.elementInternals.ariaChecked=s?`${!!e}`:null,c(this.elementInternals,"checked",s?e:!1),this.$fastController.isConnected&&this.$emit("change")}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length?(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",c(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,c(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??J.menuitem,this.elementInternals.ariaChecked=this.role!==J.menuitem?`${!!this.checked}`:null}}We([a({mode:"boolean"})],At.prototype,"disabled",2),We([a],At.prototype,"role",2),We([a({mode:"boolean"})],At.prototype,"checked",2),We([a({mode:"boolean"})],At.prototype,"hidden",2),We([k],At.prototype,"slottedSubmenu",2),We([k],At.prototype,"submenu",2),Ut(At,Gt);const Is=l.partial`:is([state--submenu], :state(submenu))`,fu=l`
449
+ ${C("grid")}
450
450
 
451
- :host{--indent:0;align-items:center;background:${E};border-radius:${_};color:${_t};contain:layout;cursor:pointer;flex-shrink:0;font:${L} ${F} / ${H} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Zs};color:${Yo}}:host(:active){background-color:${xr};color:${Qo}}:host(:active) ::slotted([slot='start']){color:${Aa}}:host(${O}){background-color:${Be};color:${z}}:host(${O}) ::slotted([slot='start']),:host(${O}) ::slotted([slot='end']){color:${z}}:host(:focus-visible){border-radius:${_};outline:2px solid ${Nt}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${v})) .indicator,:host(:not(${v})) ::slotted([slot='indicator']),:host(:not(${ys})) .submenu-glyph,:host(:not(${ys})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${at};font:${L} ${W} / ${st} ${$};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${ys}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${ys}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){inset-area:inline-end span-block-end;margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-try-options:flip-inline,inset-area(block-start);z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(J(l`
452
- :host(${O}),:host(${O}) ::slotted([slot='start']),:host(${O}) ::slotted([slot='end']){color:GrayText}`)),nu=f.partial('<svg class="indicator" fill="currentColor" 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>'),au=f.partial('<svg class="submenu-glyph" fill="currentColor" 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 lu(o={}){return f`<template @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)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${mt(o.indicator)}</slot>${Rt(o)}<div part="content" class="content"><slot></slot></div>${oe(o)}<slot name="submenu-glyph">${mt(o.submenuGlyph)}</slot><slot name="submenu" ${ut({property:"slottedSubmenu",filter:iu()})}></slot></template>`}const cu=lu({indicator:nu,submenuGlyph:au}),du=Pt.compose({name:`${u.prefix}-menu-item`,template:cu,styles:ru});du.define(u.registry);var hu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,pu=(o,t,e,s)=>{for(var i=s>1?void 0:s?uu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&hu(t,e,i),i};const ki=class Bi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&mr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){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.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,s=this.menuItems.indexOf(e);if(s!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=s-1;r>=0;--r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===Y.menuitemradio&&(n.checked=!1),h==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===Y.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof Pt||mr(t)&&t.getAttribute("role")in Bi.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),At.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case Mo:this.setFocus(this.focusIndex+1,1);return;case Lo:this.setFocus(this.focusIndex-1,-1);return;case Do:this.setFocus(this.menuItems.length-1,-1);return;case Vo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),m.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),s=t.querySelector("[slot=start]");return e&&e!==Y.menuitem?s?2:1:s?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const s=this.menuItems.filter(this.isMenuItemElement);s.length&&(this.focusIndex=0),s.forEach((n,h)=>{n.setAttribute("tabindex",h===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,h)=>{const g=Bi.elementIndent(h);return Math.max(n,g)},0);i?.forEach(n=>{n instanceof Pt&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const s=this.menuItems[t];if(this.isFocusableElement(s)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,s.setAttribute("tabindex","0"),s.focus();break}t+=e}}};ki.focusableElementRoles=Y,pu([k],ki.prototype,"items",2);let gu=ki;const fu=l`
453
- ${I("flex")}
451
+ :host{--indent:0;align-items:center;background:${_};border-radius:${T};color:${Mt};contain:layout;cursor:pointer;flex-shrink:0;font:${N} ${F} / ${L} ${$};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ai};color:${es}}:host(:active){background-color:${Nr};color:${os}}:host(:active) ::slotted([slot='start']){color:${Wa}}:host(${E}){background-color:${Ee};color:${P}}:host(${E}) ::slotted([slot='start']),:host(${E}) ::slotted([slot='end']){color:${P}}:host(:focus-visible){border-radius:${T};outline:2px solid ${Dt}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${v})) .indicator,:host(:not(${v})) ::slotted([slot='indicator']),:host(:not(${Is})) .submenu-glyph,:host(:not(${Is})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ut};font:${N} ${j} / ${st} ${$};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${Is}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${Is}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){inset-area:inline-end span-block-end;margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-try-options:flip-inline,inset-area(block-start);z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(Q(l`
452
+ :host(${E}),:host(${E}) ::slotted([slot='start']),:host(${E}) ::slotted([slot='end']){color:GrayText}`)),mu=b.partial('<svg class="indicator" fill="currentColor" 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>'),$u=b.partial('<svg class="submenu-glyph" fill="currentColor" 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 b`<template @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)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${xt(o.indicator)}</slot>${Wt(o)}<div part="content" class="content"><slot></slot></div>${ie(o)}<slot name="submenu-glyph">${xt(o.submenuGlyph)}</slot><slot name="submenu" ${lt({property:"slottedSubmenu",filter:bu()})}></slot></template>`}const yu=vu({indicator:mu,submenuGlyph:$u}),ku=At.compose({name:`${u.prefix}-menu-item`,template:yu,styles:fu});ku.define(u.registry);var xu=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Cu=(o,t,e,s)=>{for(var i=s>1?void 0:s?wu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&xu(t,e,i),i};const Fi=class Vi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Pr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){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.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,s=this.menuItems.indexOf(e);if(s!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=s-1;r>=0;--r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===J.menuitemradio&&(n.checked=!1),h==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===J.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof At||Pr(t)&&t.getAttribute("role")in Vi.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t),this.elementInternals.role="menu"}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),_t.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case Ro:this.setFocus(this.focusIndex+1,1);return;case Go:this.setFocus(this.focusIndex-1,-1);return;case Wo:this.setFocus(this.menuItems.length-1,-1);return;case Xo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),f.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),s=t.querySelector("[slot=start]");return e&&e!==J.menuitem?s?2:1:s?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>f.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const s=this.menuItems.filter(this.isMenuItemElement);s.length&&(this.focusIndex=0),s.forEach((n,h)=>{n.setAttribute("tabindex",h===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,h)=>{const g=Vi.elementIndent(h);return Math.max(n,g)},0);i?.forEach(n=>{n instanceof At&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const s=this.menuItems[t];if(this.isFocusableElement(s)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,s.setAttribute("tabindex","0"),s.focus();break}t+=e}}};Fi.focusableElementRoles=J,Cu([k],Fi.prototype,"items",2);let Iu=Fi;const Su=l`
453
+ ${C("flex")}
454
454
 
455
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${E};border:1px solid ${lt};border-radius:${_};box-shadow:${Jr};padding:4px;row-gap:2px}`;function bu(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${ut("items")}></slot></template>`}const mu=bu(),$u=gu.compose({name:`${u.prefix}-menu-list`,template:mu,styles:fu});$u.define(u.registry);var vu=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,Le=(o,t,e,s)=>{for(var i=s>1?void 0:s?yu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&vu(t,e,i),i};class ve extends x{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof Pt&&(t.target.getAttribute("role")===Y.menuitemcheckbox||t.target.getAttribute("role")===Y.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t instanceof ToggleEvent){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case qs:case Ho:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),At.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),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._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){At.enqueue(()=>{this._menuList.focus()})}focusTrigger(){At.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",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)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case ra:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case na:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}Le([a({attribute:"open-on-hover",mode:"boolean"})],ve.prototype,"openOnHover",2),Le([a({attribute:"open-on-context",mode:"boolean"})],ve.prototype,"openOnContext",2),Le([a({attribute:"close-on-scroll",mode:"boolean"})],ve.prototype,"closeOnScroll",2),Le([a({attribute:"persist-on-item-click",mode:"boolean"})],ve.prototype,"persistOnItemClick",2),Le([k],ve.prototype,"slottedMenuList",2),Le([k],ve.prototype,"slottedTriggers",2);const ku=l`
456
- ${I("inline-block")}
455
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${pt};border-radius:${T};box-shadow:${gn};padding:4px;row-gap:2px}`;function zu(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${lt("items")}></slot></template>`}const Pu=zu(),Tu=Iu.compose({name:`${u.prefix}-menu-list`,template:Pu,styles:Su});Tu.define(u.registry);var Bu=Object.defineProperty,Au=Object.getOwnPropertyDescriptor,Ue=(o,t,e,s)=>{for(var i=s>1?void 0:s?Au(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Bu(t,e,i),i};class ke extends x{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=t=>{t?.target instanceof At&&(t.target.getAttribute("role")===J.menuitemcheckbox||t.target.getAttribute("role")===J.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t.type==="toggle"&&t.newState){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case Qs:case Uo:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),_t.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),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._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){_t.enqueue(()=>{this._menuList.focus()})}focusTrigger(){_t.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",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)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case va:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case ya:if(this._open&&this.closeMenu(),t.shiftKey&&t.composedPath()[0]!==this._trigger)this.focusTrigger();else if(t.shiftKey)return!0;default:return!0}}}Ue([a({attribute:"open-on-hover",mode:"boolean"})],ke.prototype,"openOnHover",2),Ue([a({attribute:"open-on-context",mode:"boolean"})],ke.prototype,"openOnContext",2),Ue([a({attribute:"close-on-scroll",mode:"boolean"})],ke.prototype,"closeOnScroll",2),Ue([a({attribute:"persist-on-item-click",mode:"boolean"})],ke.prototype,"persistOnItemClick",2),Ue([k],ke.prototype,"slottedMenuList",2),Ue([k],ke.prototype,"slottedTriggers",2);const Fu=l`
456
+ ${C("inline-block")}
457
457
 
458
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function xu(){return f`<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.menuKeydownHandler(t.event)}"><slot name="trigger" ${ut({property:"slottedTriggers",filter:qe()})}></slot><slot ${ut({property:"slottedMenuList",filter:qe()})}></slot></template>`}const wu=xu(),Cu=ve.compose({name:`${u.prefix}-menu`,template:wu,styles:ku});Cu.define(u.registry);var Iu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,xi=(o,t,e,s)=>{for(var i=s>1?void 0:s?Su(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Iu(t,e,i),i};class ks extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}layoutChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}intentChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}}xi([a],ks.prototype,"shape",2),xi([a],ks.prototype,"layout",2),xi([a],ks.prototype,"intent",2);const Pu=l`
459
- :host{display:grid;box-sizing:border-box;font-family:${$};font-size:${W};line-height:${st};width:100%;background:${ti};border:1px solid ${ge};padding-inline:${bt};border-radius:${_};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${Ye}){border-radius:0}:host(${de}){background-color:${_r};border-color:${Ya}}:host(${he}){background-color:${Nr};border-color:${Lr}}:host(${Ks}){background-color:${Br};border-color:${Ar}}:host(${Je}){grid-template-areas:'icon body dismiss'
460
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Fe};padding-inline:${bt}}.content{grid-area:body;max-width:520px;padding-block:${Fe};padding-inline:0}:host(${Je}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${at};margin-inline-end:${Zt}}:host(${Je}) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Zt};gap:${Zt}}:host(${Je}) .actions{margin-block-start:${Fe};margin-inline-end:0}:host(${Je}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${it}}::slotted(*){font-size:inherit}`;function Tu(){return f`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const Bu=Tu(),zu=ks.compose({name:`${u.prefix}-message-bar`,template:Bu,styles:Pu,shadowOptions:{mode:u.shadowRootMode}});zu.define(u.registry);var Au=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,ye=(o,t,e,s)=>{for(var i=s>1?void 0:s?Fu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Au(t,e,i),i};class De extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,s=this.value??0,i=e-t;return i===0?0:Math.fround((s-t)/i*100)}}ye([a({attribute:"validation-state"})],De.prototype,"validationState",2),ye([a({converter:rt})],De.prototype,"value",2),ye([a({converter:rt})],De.prototype,"min",2),ye([a({converter:rt})],De.prototype,"max",2),ye([An],De.prototype,"percentComplete",1);class wi extends De{thicknessChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}ye([a],wi.prototype,"thickness",2),ye([a],wi.prototype,"shape",2);const Ou=l`
461
- ${I("block")}
458
+ ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function Ou(){return b`<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.menuKeydownHandler(t.event)}"><slot name="trigger" ${lt({property:"slottedTriggers",filter:Je()})}></slot><slot ${lt({property:"slottedMenuList",filter:Je()})}></slot></template>`}const Eu=Ou(),_u=ke.compose({name:`${u.prefix}-menu`,template:Eu,styles:Fu});_u.define(u.registry);var Nu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Oi=(o,t,e,s)=>{for(var i=s>1?void 0:s?Mu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Nu(t,e,i),i};class Ss extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}shapeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}layoutChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}intentChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}}Oi([a],Ss.prototype,"shape",2),Oi([a],Ss.prototype,"layout",2),Oi([a],Ss.prototype,"intent",2);const Du=l`
459
+ :host{display:grid;box-sizing:border-box;font-family:${$};font-size:${j};line-height:${st};width:100%;background:${rs};border:1px solid ${ae};padding-inline:${ft};border-radius:${T};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host(${ro}){border-radius:0}:host(${be}){background-color:${Kr};border-color:${cl}}:host(${fe}){background-color:${Qr};border-color:${Jr}}:host(${si}){background-color:${qr};border-color:${Wr}}:host(${lo}){grid-template-areas:'icon body dismiss'
460
+ 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Le};padding-inline:${ft}}.content{grid-area:body;max-width:520px;padding-block:${Le};padding-inline:0}:host(${lo}) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ut};margin-inline-end:${te}}:host(${lo}) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${te};gap:${te}}:host(${lo}) .actions{margin-block-start:${Le};margin-inline-end:0}:host(${lo}) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${rt}}::slotted(*){font-size:inherit}`;function Lu(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const Vu=Lu(),Hu=Ss.compose({name:`${u.prefix}-message-bar`,template:Vu,styles:Du,shadowOptions:{mode:u.shadowRootMode}});Hu.define(u.registry);var Ru=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,xe=(o,t,e,s)=>{for(var i=s>1?void 0:s?ju(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ru(t,e,i),i};class Xe extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,s=this.value??0,i=e-t;return i===0?0:Math.fround((s-t)/i*100)}}xe([a({attribute:"validation-state"})],Xe.prototype,"validationState",2),xe([a({converter:ot})],Xe.prototype,"value",2),xe([a({converter:ot})],Xe.prototype,"min",2),xe([a({converter:ot})],Xe.prototype,"max",2),xe([Gn],Xe.prototype,"percentComplete",1);class Ei extends Xe{thicknessChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}xe([a],Ei.prototype,"thickness",2),xe([a],Ei.prototype,"shape",2);const qu=l`
461
+ ${C("block")}
462
462
 
463
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${ts};border-radius:${_};contain:content}:host(${w}){height:4px}:host(${Ye}){border-radius:${ci}}.indicator{background-color:${ze};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
464
- to right,${ts} 0%,${wt} 50%,${ts} 100%
465
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Ks}) .indicator{background-color:${zr}}:host(${he}) .indicator{background-color:${Er}}:host(${de}) .indicator{background-color:${Mr}}@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(J(l`
466
- :host{background-color:CanvasText}.indicator,:host(:is(${de},${he},${Ks})) .indicator{background-color:Highlight}`));function _u(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Mu=_u(),Nu=wi.compose({name:`${u.prefix}-progress-bar`,template:Mu,styles:Ou});Nu.define(u.registry);class $n extends yt{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.checked=!1,this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function vn(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const yn=pt;var Eu=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,ke=(o,t,e,s)=>{for(var i=s>1?void 0:s?Lu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Eu(t,e,i),i};class te extends x{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??yn.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(s=>{s.disabled=s.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(s=>{s.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??yn.horizontal}radiosChanged(t,e){const s=e?.length;if(!s)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const i=ia(this.enabledRadios,n=>n.initialChecked);e.forEach((n,h)=>{n.ariaPosInSet=`${h+1}`,n.ariaSetSize=`${s}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=h===i,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=i);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),At.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(s=>s.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),m.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),!0}checkRadio(t=this.checkedIndex){let e=this.checkedIndex;this.enabledRadios.forEach((s,i)=>{const r=i===t;s.checked=r,r&&(e=i)}),this.checkedIndex=e,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=Us(this)==="rtl",s=this.enabledRadios.findIndex(n=>n===vn(this))??this.checkedIndex;let i=0;switch(t.key){case"ArrowLeft":{i=e?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=e?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const r=s+i;this.checkedIndex=this.getEnabledIndexInBounds(r),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(vn(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((s,i)=>{s.tabIndex=i===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,s??this.enabledRadios[0])}}slotchangeHandler(t){At.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof $n)})}}te.formAssociated=!0,ke([k],te.prototype,"checkedIndex",2),ke([a({attribute:"disabled",mode:"boolean"})],te.prototype,"disabled",2),ke([a({attribute:"value",mode:"fromView"})],te.prototype,"initialValue",2),ke([a],te.prototype,"name",2),ke([a],te.prototype,"orientation",2),ke([k],te.prototype,"radios",2),ke([a({mode:"boolean"})],te.prototype,"required",2);const Du=l`
467
- ${I("flex")}
463
+ :host{width:100%;height:2px;overflow-x:hidden;background-color:${ns};border-radius:${T};contain:content}:host(${w}){height:4px}:host(${ro}){border-radius:${mi}}.indicator{background-color:${_e};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(
464
+ to right,${ns} 0%,${wt} 50%,${ns} 100%
465
+ );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${si}) .indicator{background-color:${Gr}}:host(${fe}) .indicator{background-color:${Zr}}:host(${be}) .indicator{background-color:${Yr}}@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(Q(l`
466
+ :host{background-color:CanvasText}.indicator,:host(:is(${be},${fe},${si})) .indicator{background-color:Highlight}`));function Gu(){return b`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Wu=Gu(),Uu=Ei.compose({name:`${u.prefix}-progress-bar`,template:Wu,styles:qu});Uu.define(u.registry);class Fn extends It{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(t,e){super.disabledChanged(t,e),e&&(this.checked=!1,this.tabIndex=-1),this.$emit("disabled",e,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(t=!0){super.toggleChecked(t)}}function On(o){const t=o.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}const En=$t;var Xu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,we=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ku(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Xu(t,e,i),i};class oe extends x{constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??En.horizontal}checkedIndexChanged(t,e){this.enabledRadios&&this.checkRadio(e)}disabledChanged(t,e){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(s=>{s.disabled=s.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(t,e){this.value=e??""}nameChanged(t,e){this.isConnected&&e&&this.radios?.forEach(s=>{s.name=this.name})}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.orientation??En.horizontal}radiosChanged(t,e){const s=e?.length;if(!s)return;!this.name&&e.every(n=>n.name===e[0].name)&&(this.name=e[0].name);const i=$a(this.enabledRadios,n=>n.initialChecked);e.forEach((n,h)=>{n.ariaPosInSet=`${h+1}`,n.ariaSetSize=`${s}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=h===i,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=i);const r=e.map(n=>n.id).join(" ").trim();r&&this.setAttribute("aria-owns",r),_t.enqueue(()=>{this.restrictFocus()})}requiredChanged(t,e){this.elementInternals.ariaRequired=e?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(t=>!t.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="radio",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return f.notify(this,"value"),this.enabledRadios.find(t=>t.checked)?.value??null}set value(t){const e=this.enabledRadios.findIndex(s=>s.value===t);this.checkedIndex=e,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity()),f.track(this,"value")}changeHandler(t){if(this===t.target)return!0;this.dirtyState=!0;const e=this.enabledRadios.indexOf(t.target);return this.checkRadio(e),!0}checkRadio(t=this.checkedIndex){let e=this.checkedIndex;this.enabledRadios.forEach((s,i)=>{const r=i===t;s.checked=r,r&&(e=i)}),this.checkedIndex=e,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){return this===t.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(t){return this.disabled||this.enabledRadios.forEach(e=>{e.tabIndex=0}),!0}focusoutHandler(t){return this.radios?.includes(t.relatedTarget)&&this.radios?.some(e=>e.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(t,e=this.enabledRadios.length){return e===0?-1:(t+e)%e}keydownHandler(t){const e=ti(this)==="rtl",s=this.enabledRadios.findIndex(n=>n===On(this))??this.checkedIndex;let i=0;switch(t.key){case"ArrowLeft":{i=e?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=e?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const r=s+i;this.checkedIndex=this.getEnabledIndexInBounds(r),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(t){t.detail===!0&&t.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let t=Math.max(this.checkedIndex,0);const e=this.enabledRadios.indexOf(On(this));e!==-1&&(t=e),t=this.getEnabledIndexInBounds(t),this.enabledRadios.forEach((s,i)=>{s.tabIndex=i===t?0:-1})}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...t},e??this.validationMessage,s??this.enabledRadios[0])}}slotchangeHandler(t){_t.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(e=>e instanceof Fn)})}}oe.formAssociated=!0,we([k],oe.prototype,"checkedIndex",2),we([a({attribute:"disabled",mode:"boolean"})],oe.prototype,"disabled",2),we([a({attribute:"value",mode:"fromView"})],oe.prototype,"initialValue",2),we([a],oe.prototype,"name",2),we([a],oe.prototype,"orientation",2),we([k],oe.prototype,"radios",2),we([a({mode:"boolean"})],oe.prototype,"required",2);const Yu=l`
467
+ ${C("flex")}
468
468
 
469
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${cs}}:host(${O}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${at}}::slotted(:hover){color:${_t}}::slotted(:active){color:${B}}::slotted(${O}){color:${z}}::slotted(${v}){color:${B}}`;function Hu(){return f`<template @disabled="${(o,t)=>o.disabledRadioHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @click="${(o,t)=>o.clickHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot @slotchange="${(o,t)=>o.slotchangeHandler(t.event)}"></slot></template>`}const Vu=Hu(),ju=te.compose({name:`${u.prefix}-radio-group`,template:Vu,styles:Du});ju.define(u.registry);const Ru=l`
470
- ${I("inline-flex")}
469
+ :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${gs}}:host(${E}),:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ut}}::slotted(:hover){color:${Mt}}::slotted(:active){color:${B}}::slotted(${E}){color:${P}}::slotted(${v}){color:${B}}`;function Qu(){return b`<template @disabled="${(o,t)=>o.disabledRadioHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @click="${(o,t)=>o.clickHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot @slotchange="${(o,t)=>o.slotchangeHandler(t.event)}"></slot></template>`}const Zu=Qu(),Ju=oe.compose({name:`${u.prefix}-radio-group`,template:Zu,styles:Yu});Ju.define(u.registry);const tp=l`
470
+ ${C("inline-flex")}
471
471
 
472
- :host{--size:16px;aspect-ratio:1;background-color:${E};border:${K} solid ${pe};border-radius:${ct};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ct};color:${to};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${Ct} solid ${lt};border-radius:${_}}:host(:not([slot='input']):focus-visible)::after{border-color:${Nt}}:host(:hover){border-color:${so}}:host(${v}){border-color:${ss}}:host(${v}) .checked-indicator{background-color:${ze}}:host(${v}:hover) .checked-indicator{background-color:${eo}}:host(:active){border-color:${io}}:host(${v}:active) .checked-indicator{background-color:${oo}}:host(:focus-visible){outline:none}:host(${O}){background-color:${Be};border-color:${Mt}}:host(${v}${O}) .checked-indicator{background-color:${Mt}}`.withBehaviors(J(l`
473
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${O}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${v}) .checked-indicator{background-color:FieldText}:host(${v}:not(${O}):hover) .checked-indicator{background-color:Highlight}:host(${O}){border-color:GrayText;color:GrayText}:host(${O}${v}) .checked-indicator{background-color:GrayText}`)),qu=f.partial(`
472
+ :host{--size:16px;aspect-ratio:1;background-color:${_};border:${X} solid ${ne};border-radius:${gt};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${gt};color:${Fe};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${Tt} solid ${pt};border-radius:${T}}:host(:not([slot='input']):focus-visible)::after{border-color:${Dt}}:host(:hover){border-color:${Ne}}:host(${v}){border-color:${go}}:host(${v}) .checked-indicator{background-color:${_e}}:host(${v}:hover) .checked-indicator{background-color:${co}}:host(:active){border-color:${Me}}:host(${v}:active) .checked-indicator{background-color:${ho}}:host(:focus-visible){outline:none}:host(${E}){background-color:${Ee};border-color:${Pt}}:host(${v}${E}) .checked-indicator{background-color:${Pt}}`.withBehaviors(Q(l`
473
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${E}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${v}) .checked-indicator{background-color:FieldText}:host(${v}:not(${E}):hover) .checked-indicator{background-color:Highlight}:host(${E}){border-color:GrayText;color:GrayText}:host(${E}${v}) .checked-indicator{background-color:GrayText}`)),ep=b.partial(`
474
474
  <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
475
- `);function Gu(o={}){return f`<template @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${mt(o.checkedIndicator)}</slot></template>`}const Wu=Gu({checkedIndicator:qu}),Uu=$n.compose({name:`${u.prefix}-radio`,template:Wu,styles:Ru});Uu.define(u.registry);var Xu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,He=(o,t,e,s)=>{for(var i=s>1?void 0:s?Ku(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Xu(t,e,i),i};class xs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let t="";const e=this.getSelectedValue();for(let s=0;s<this.getMaxIcons();s++){const i=(s+1)/2;t+=`<svg aria-hidden="true" ${i===e?"selected":""}><use href="#star"></use></svg>`}return t}}He([a({converter:rt})],xs.prototype,"count",2),He([a({converter:rt})],xs.prototype,"max",2),He([a({converter:rt})],xs.prototype,"value",2);class ws extends xs{constructor(){super(...arguments),this.compact=!1}colorChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}He([a],ws.prototype,"color",2),He([a],ws.prototype,"size",2),He([a({mode:"boolean"})],ws.prototype,"compact",2);const Yu=l`
476
- ${I("inline-flex")}
477
-
478
- :host{--icon-size:16px;align-items:center;color:${B};font-family:${$};font-size:${W};line-height:${st};contain:layout style;user-select:none}:host(${P}){--icon-size:12px}:host(${w}){--icon-size:20px;font-size:${F};line-height:${H}}svg{width:var(--icon-size);height:var(--icon-size);fill:${rl};margin-inline-end:${gt}}svg:nth-child(even){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Xo}) svg{fill:${B}}:host(${Kt}) svg{fill:${ii}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:${Hr}}:host(${Xo}:is([value^='-'],[value='0'])) svg,:host(${Xo}:not([value])) svg,:host(${Xo}) svg[selected] ~ svg{fill:${Js}}:host(${Kt}:is([value^='-'],[value='0'])) svg,:host(${Kt}:not([value])) svg,:host(${Kt}) svg[selected] ~ svg{fill:${ni}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Qt};font-weight:${D}}:host(${P}) .value-label,:host(${P}) ::slotted([slot='value']){margin-inline-start:${gt}}:host(${w}) .value-label,:host(${w}) ::slotted([slot='value']){margin-inline-start:${It}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Qt}}:host(${P}) .count-label::before,:host(${P}) ::slotted([slot='count'])::before{margin-inline:${gt}}:host(${w}) .count-label::before,:host(${w}) ::slotted([slot='count'])::before{margin-inline:${It}}`.withBehaviors(J(l`
479
- :host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),Qu=f`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star" viewBox="0 0 12 12"><path d="M5.28347 1.54556C5.57692 0.95096 6.42479 0.950961 6.71825 1.54556L7.82997 3.79817L10.3159 4.15939C10.9721 4.25474 11.2341 5.06112 10.7592 5.52394L8.96043 7.27736L9.38507 9.75321C9.49716 10.4067 8.81122 10.9051 8.22431 10.5966L6.00086 9.42761L3.7774 10.5966C3.19049 10.9051 2.50455 10.4067 2.61664 9.75321L3.04128 7.27736L1.24246 5.52394C0.767651 5.06111 1.02966 4.25474 1.68584 4.15939L4.17174 3.79817L5.28347 1.54556Z" /></symbol></svg>`;function Zu(){return f` ${Qu} ${o=>f`${f.partial(o.generateIcons())}`}<slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const Ju=Zu(),tp=ws.compose({name:`${u.prefix}-rating-display`,template:Ju,styles:Yu});tp.define(u.registry);const ep=pt,op={singleValue:"single-value"};function kn(o,t,e,s){let i=Gs(0,1,(o-t)/(e-t));return s===xt.rtl&&(i=1-i),i}var sp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,Q=(o,t,e,s)=>{for(var i=s>1?void 0:s?ip(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&sp(t,e,i),i};class R extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=xt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=op.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case Vo:t.preventDefault(),this.value=this.direction!==xt.rtl&&this.orientation!==pt.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Do:t.preventDefault(),this.value=this.direction!==xt.rtl&&this.orientation!==pt.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case Eo:case Lo:t.shiftKey||(t.preventDefault(),this.increment());break;case No:case Mo:t.shiftKey||(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),t&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("pointerup",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove,{passive:!0}),e("touchmove",this.handlePointerMove,{passive:!0}),e("touchend",this.handleWindowPointerUp),this.isDragging=t!==null},this.handlePointerMove=t=>{if(this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,s=this.orientation===pt.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=t=>{if(t===null||!this.disabled){const e=t!==null?window.addEventListener:window.removeEventListener,s=t!==null?document.addEventListener:document.removeEventListener;if(e("pointerup",this.handleWindowPointerUp),s("mouseleave",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove),t){this.setupTrackConstraints();const i=this.orientation===pt.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ep.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"min":case"max":this.setSliderPosition(this.direction);case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=l`
480
- :host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.setValidity({customError:!!t},t)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,s)}}get value(){return m.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),s=Gs(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(e)).toString();if(s!==t){this.value=s;return}this._value=t.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(this.direction),this.$emit("change"),this.setFormValue(t),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(t){this.setDisabledSideEffect(t)}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(t){this.value=t.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const t=parseFloat(this.min);if(!Number.isNaN(t))return t}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const t=parseFloat(this.max);if(!Number.isNaN(t))return t}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const t=parseFloat(this.step);if(!Number.isNaN(t)&&t>0)return t}return 1}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??pt.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=Us(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==xt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,e=this.convertToConstrainedValue(t),s=e<this.maxAsNumber?`${e}`:`${this.maxAsNumber}`;this.value=s}decrement(){const t=this.direction!==xt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),e=this.convertToConstrainedValue(t),s=e>this.minAsNumber?`${e}`:`${this.minAsNumber}`;this.value=s}setSliderPosition(t){const s=(1-kn(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,i=`calc(100% - ${s}%)`,r=this.orientation!==pt.vertical&&t===xt.rtl?`${s}%`:`calc(100% - ${s}%)`;this.position=`--slider-thumb: ${i}; --slider-progress: ${r}`}updateStepMultiplier(){const t=this.stepAsNumber+"",e=this.stepAsNumber%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(t){this.setupTrackConstraints();const e=kn(t,this.orientation===pt.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===pt.vertical?this.trackHeight:this.trackWidth,this.direction),s=(this.maxAsNumber-this.minAsNumber)*e+this.minAsNumber;return this.convertToConstrainedValue(s)}convertToConstrainedValue(t){isNaN(t)&&(t=this.minAsNumber);let e=t-this.minAsNumber;const s=Math.round(e/this.stepAsNumber),i=e-s*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return e=i>=Number(this.stepAsNumber)/2?e-i+Number(this.stepAsNumber):e-i,e+this.minAsNumber}setDisabledSideEffect(t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=t.toString(),this.tabIndex=t?-1:0)}}R.formAssociated=!0,Q([a],R.prototype,"size",2),Q([a({attribute:"value",mode:"fromView"})],R.prototype,"initialValue",2),Q([k],R.prototype,"direction",2),Q([k],R.prototype,"isDragging",2),Q([k],R.prototype,"position",2),Q([k],R.prototype,"trackWidth",2),Q([k],R.prototype,"trackMinWidth",2),Q([k],R.prototype,"trackHeight",2),Q([k],R.prototype,"trackLeft",2),Q([k],R.prototype,"trackMinHeight",2),Q([k],R.prototype,"valueTextFormatter",2),Q([a({mode:"boolean"})],R.prototype,"disabled",2),Q([a({converter:Ws})],R.prototype,"min",2),Q([a({converter:Ws})],R.prototype,"max",2),Q([a({converter:Ws})],R.prototype,"step",2),Q([a],R.prototype,"orientation",2),Q([a],R.prototype,"mode",2);const rp=l`
481
- ${I("inline-grid")}
482
-
483
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--slider-direction:90deg;--border-radius:${_};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${P}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Et}}:host(${C}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${Nt};outline:1px solid ${ai}}.track{position:relative;background-color:${pe};border-radius:var(--border-radius);grid-row:2 / 2;grid-column:2 / 2;width:100%;height:var(--track-size);forced-color-adjust:none}:host(${C}) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-size);height:100%}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${C}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
484
- var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${E} calc(var(--step-rate) - 1px),${E} var(--step-rate)
485
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${C}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${ct};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${E} inset;border:calc(var(--thumb-size) * 0.05) solid ${ge};box-sizing:border-box}.thumb,.track::before{background-color:${ze}}:host(:hover) .thumb,:host(:hover) .track::before{background-color:${eo}}:host(:active) .thumb,:host(:active) .track::before{background-color:${oo}}:host(:disabled) .track{background-color:${Be}}:host(:disabled) .thumb,:host(:disabled) .track::before{background-color:${z}}`.withBehaviors(J(l`
486
- .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function np(o={}){return f`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${Ot("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${Ot("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${mt(o.thumb)}</slot></div></template>`}const ap=np({thumb:'<div class="thumb"></div>'}),lp=R.compose({name:`${u.prefix}-slider`,template:ap,styles:rp});lp.define(u.registry);var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,xn=(o,t,e,s)=>{for(var i=s>1?void 0:s?dp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&cp(t,e,i),i};class hp extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class Ci extends hp{sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}xn([a],Ci.prototype,"size",2),xn([a],Ci.prototype,"appearance",2);const up=l`
487
- ${I("inline-flex")}
488
-
489
- :host{--duration:1.5s;--indicatorSize:${tt};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${Qe}){--indicatorSize:${Ct};--size:20px}:host(${Ze}){--indicatorSize:${Ct};--size:24px}:host(${P}){--indicatorSize:${Ct};--size:28px}:host(${w}){--indicatorSize:${tt};--size:36px}:host(${qo}){--indicatorSize:${tt};--size:40px}:host(${ma}){--indicatorSize:${di};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${hs}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ni};border-radius:50%}:host(${$r}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${Sr};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${$r}) .indicator{color:${Ga}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(J(l`
490
- .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),pp=f`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,gp=Ci.compose({name:`${u.prefix}-spinner`,template:pp,styles:up});gp.define(u.registry);class fp extends yt{constructor(){super(),this.elementInternals.role="switch"}}function bp(o={}){return f`<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">${mt(o.switch)}</slot></template>`}const mp=bp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),$p=l`
491
- ${I("inline-flex")}
492
-
493
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${gt};width:40px;height:20px;background-color:${wt};border:1px solid ${pe};border-radius:${ct};cursor:pointer}:host(:hover){background:none;border-color:${so}}:host(:active){border-color:${io}}:host(:disabled),:host([readonly]){border:1px solid ${Mt};background-color:none;pointer:default}:host(${v}){background:${ze};border-color:${ze}}:host(${v}:hover){background:${eo};border-color:${eo}}:host(${v}:active){background:${oo};border-color:${oo}}:host(${v}:disabled){background:${Be};border-color:${Mt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${at};transition-duration:${en};transition-timing-function:${hs};transition-property:margin-inline-start}:host(${v}) .checked-indicator{background-color:${to};margin-inline-start:calc(100% - 14px)}:host(${v}:hover) .checked-indicator{background:${Fa}}:host(${v}:active) .checked-indicator{background:${Oa}}:host(:hover) .checked-indicator{background-color:${xa}}:host(:active) .checked-indicator{background-color:${wa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${z}}:host(${v}:disabled) .checked-indicator{background:${z}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${lt};outline:${Ct} solid ${lt};box-shadow:${ls},0 0 0 2px ${Nt}}`.withBehaviors(J(l`
494
- :host{border-color:InactiveBorder}:host(${v}),:host(${v}:active),:host(${v}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${v}) .checked-indicator,:host(${v}:hover) .checked-indicator,:host(${v}:active) .checked-indicator{background-color:ButtonFace}`)),vp=fp.compose({name:`${u.prefix}-switch`,template:mp,styles:$p});vp.define(u.registry);class yp extends x{}function kp(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const xp=kp(),wp=l`
495
- ${I("block")}
496
-
497
- :host{box-sizing:border-box;padding:${bt} ${ft}}`,Cp=yp.compose({name:`${u.prefix}-tab-panel`,template:xp,styles:wp});Cp.define(u.registry);var Ip=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,Pp=(o,t,e,s)=>{for(var i=s>1?void 0:s?Sp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ip(t,e,i),i};class Ii extends x{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
498
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Pp([a({mode:"boolean"})],Ii.prototype,"disabled",2),qt(Ii,jt);function Tp(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Rt(o)}<span class="tab-content"><slot></slot></span>${oe(o)}</template>`}const Bp=Tp({}),zp=l`
499
- ${I("inline-flex")}
500
-
501
- :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${H};font-family:${$};font-size:${F};color:${_t};fill:currentcolor;grid-row:1;padding:${bt} ${ft};border-radius:${_}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${B};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${H};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${ss};border-radius:${ct};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${os};border-radius:${ct};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${z}}::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:${z};color:${z}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Et};box-shadow:0 0 0 3px ${Nt};outline:1px solid ${ai}}`.withBehaviors(J(l`
502
- :host([aria-selected='true'])::after{background-color:Highlight}`)),Ap=Ii.compose({name:`${u.prefix}-tab`,template:Bp,styles:zp});Ap.define(u.registry);const Fp={subtle:"subtle",transparent:"transparent"},Cs=pt;var Op=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,xe=(o,t,e,s)=>{for(var i=s>1?void 0:s?_p(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Op(t,e,i),i};class vo extends x{constructor(){super(...arguments),this.orientation=Cs.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 No:t.preventDefault(),this.adjustBackward(t);break;case Eo:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case Lo:t.preventDefault(),this.adjustBackward(t);break;case Mo:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Vo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Do: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(s=>s.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",s=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,r)=>{if(i.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(i),h=this.tabIds[r],g=this.tabpanelIds[r];i.setAttribute("id",h),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",g),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=h)}i.style[t]="",i.style[e]="",i.style[s]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const s=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",s),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${Ge()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${Ge()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Cs.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=Gs(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)+1:1,s===e.length&&(s=0);s<e.length&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else{if(this.activetab&&s===e.indexOf(this.activetab))break;s+1>=e.length?s=0:s+=1}}adjustBackward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)-1:0,s=s<0?e.length-1:s;s>=0&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else s-1<0?s=e.length-1:s-=1}moveToTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}xe([a],vo.prototype,"orientation",2),xe([a],vo.prototype,"activeid",2),xe([k],vo.prototype,"tabs",2),xe([k],vo.prototype,"tabpanels",2);class yo 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=Fp.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===Cs.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===Cs.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,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=l`
475
+ `);function op(o={}){return b`<template @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${xt(o.checkedIndicator)}</slot></template>`}const sp=op({checkedIndicator:ep}),ip=Fn.compose({name:`${u.prefix}-radio`,template:sp,styles:tp});ip.define(u.registry);var rp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Ke=(o,t,e,s)=>{for(var i=s>1?void 0:s?np(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&rp(t,e,i),i};class zs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let t="";const e=this.getSelectedValue();for(let s=0;s<this.getMaxIcons();s++){const i=(s+1)/2;t+=`<svg aria-hidden="true" ${i===e?"selected":""}><use href="#star"></use></svg>`}return t}}Ke([a({converter:ot})],zs.prototype,"count",2),Ke([a({converter:ot})],zs.prototype,"max",2),Ke([a({converter:ot})],zs.prototype,"value",2);class Ps extends zs{constructor(){super(...arguments),this.compact=!1}colorChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}sizeChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}Ke([a],Ps.prototype,"color",2),Ke([a],Ps.prototype,"size",2),Ke([a({mode:"boolean"})],Ps.prototype,"compact",2);const ap=l`
476
+ ${C("inline-flex")}
477
+
478
+ :host{--icon-size:16px;align-items:center;color:${B};font-family:${$};font-size:${j};line-height:${st};contain:layout style;user-select:none}:host(${z}){--icon-size:12px}:host(${w}){--icon-size:20px;font-size:${F};line-height:${L}}svg{width:var(--icon-size);height:var(--icon-size);fill:${$l};margin-inline-end:${dt}}svg:nth-child(even){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host(${Jo}) svg{fill:${B}}:host(${Zt}) svg{fill:${ui}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:${en}}:host(${Jo}:is([value^='-'],[value='0'])) svg,:host(${Jo}:not([value])) svg,:host(${Jo}) svg[selected] ~ svg{fill:${li}}:host(${Zt}:is([value^='-'],[value='0'])) svg,:host(${Zt}:not([value])) svg,:host(${Zt}) svg[selected] ~ svg{fill:${pi}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${Vt};font-weight:${V}}:host(${z}) .value-label,:host(${z}) ::slotted([slot='value']){margin-inline-start:${dt}}:host(${w}) .value-label,:host(${w}) ::slotted([slot='value']){margin-inline-start:${yt}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Vt}}:host(${z}) .count-label::before,:host(${z}) ::slotted([slot='count'])::before{margin-inline:${dt}}:host(${w}) .count-label::before,:host(${w}) ::slotted([slot='count'])::before{margin-inline:${yt}}`.withBehaviors(Q(l`
479
+ :host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),lp=b`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star" viewBox="0 0 12 12"><path d="M5.28347 1.54556C5.57692 0.95096 6.42479 0.950961 6.71825 1.54556L7.82997 3.79817L10.3159 4.15939C10.9721 4.25474 11.2341 5.06112 10.7592 5.52394L8.96043 7.27736L9.38507 9.75321C9.49716 10.4067 8.81122 10.9051 8.22431 10.5966L6.00086 9.42761L3.7774 10.5966C3.19049 10.9051 2.50455 10.4067 2.61664 9.75321L3.04128 7.27736L1.24246 5.52394C0.767651 5.06111 1.02966 4.25474 1.68584 4.15939L4.17174 3.79817L5.28347 1.54556Z" /></symbol></svg>`;function cp(){return b` ${lp} ${o=>b`${b.partial(o.generateIcons())}`}<slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const dp=cp(),hp=Ps.compose({name:`${u.prefix}-rating-display`,template:dp,styles:ap});hp.define(u.registry);const up=$t,pp={singleValue:"single-value"};function _n(o,t,e,s){let i=Zs(0,1,(o-t)/(e-t));return s===zt.rtl&&(i=1-i),i}var gp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,tt=(o,t,e,s)=>{for(var i=s>1?void 0:s?bp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&gp(t,e,i),i};class q extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=zt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=pp.singleValue,this.keypressHandler=t=>{if(!this.disabled)switch(t.key){case Xo:t.preventDefault(),this.value=this.direction!==zt.rtl&&this.orientation!==$t.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case Wo:t.preventDefault(),this.value=this.direction!==zt.rtl&&this.orientation!==$t.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case qo:case Go:t.shiftKey||(t.preventDefault(),this.increment());break;case jo:case Ro:t.shiftKey||(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),t&&this.removeEventListener("keydown",this.keypressHandler)},this.handleThumbPointerDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("pointerup",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove,{passive:!0}),e("touchmove",this.handlePointerMove,{passive:!0}),e("touchend",this.handleWindowPointerUp),this.isDragging=t!==null},this.handlePointerMove=t=>{if(this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,s=this.orientation===$t.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(s)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=t=>{if(t===null||!this.disabled){const e=t!==null?window.addEventListener:window.removeEventListener,s=t!==null?document.addEventListener:document.removeEventListener;if(e("pointerup",this.handleWindowPointerUp),s("mouseleave",this.handleWindowPointerUp),e("pointermove",this.handlePointerMove),t){this.setupTrackConstraints();const i=this.orientation===$t.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft;this.value=`${this.calculateNewValue(i)}`}}},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??up.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"min":case"max":this.setSliderPosition(this.direction);case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=l`
480
+ :host{--step-rate:${t}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(t,e){this.$fastController.isConnected?this.value=e:this._value=e}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.setValidity({customError:!!t},t)}setValidity(t,e,s){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!e,...t},e??this.validationMessage,s)}}get value(){return f.track(this,"value"),this._value.toString()}set value(t){if(!this.$fastController.isConnected){this._value=t.toString();return}const e=parseFloat(t),s=Zs(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(e)).toString();if(s!==t){this.value=s;return}this._value=t.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(this.direction),this.$emit("change"),this.setFormValue(t),f.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(t){this.setDisabledSideEffect(t)}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(t){this.value=t.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const t=parseFloat(this.min);if(!Number.isNaN(t))return t}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const t=parseFloat(this.max);if(!Number.isNaN(t))return t}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const t=parseFloat(this.step);if(!Number.isNaN(t)&&t>0)return t}return 1}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??$t.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setSliderPosition(this.direction)}connectedCallback(){super.connectedCallback(),this.direction=ti(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setSliderPosition(this.direction),f.getNotifier(this).subscribe(this,"max"),f.getNotifier(this).subscribe(this,"min"),f.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),f.getNotifier(this).unsubscribe(this,"max"),f.getNotifier(this).unsubscribe(this,"min"),f.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==zt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,e=this.convertToConstrainedValue(t),s=e<this.maxAsNumber?`${e}`:`${this.maxAsNumber}`;this.value=s}decrement(){const t=this.direction!==zt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),e=this.convertToConstrainedValue(t),s=e>this.minAsNumber?`${e}`:`${this.minAsNumber}`;this.value=s}setSliderPosition(t){const s=(1-_n(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,t))*100,i=`calc(100% - ${s}%)`,r=this.orientation!==$t.vertical&&t===zt.rtl?`${s}%`:`calc(100% - ${s}%)`;this.position=`--slider-thumb: ${i}; --slider-progress: ${r}`}updateStepMultiplier(){const t=this.stepAsNumber+"",e=this.stepAsNumber%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(t){this.setupTrackConstraints();const e=_n(t,this.orientation===$t.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===$t.vertical?this.trackHeight:this.trackWidth,this.direction),s=(this.maxAsNumber-this.minAsNumber)*e+this.minAsNumber;return this.convertToConstrainedValue(s)}convertToConstrainedValue(t){isNaN(t)&&(t=this.minAsNumber);let e=t-this.minAsNumber;const s=Math.round(e/this.stepAsNumber),i=e-s*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return e=i>=Number(this.stepAsNumber)/2?e-i+Number(this.stepAsNumber):e-i,e+this.minAsNumber}setDisabledSideEffect(t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=t.toString(),this.tabIndex=t?-1:0)}}q.formAssociated=!0,tt([a],q.prototype,"size",2),tt([a({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",2),tt([k],q.prototype,"direction",2),tt([k],q.prototype,"isDragging",2),tt([k],q.prototype,"position",2),tt([k],q.prototype,"trackWidth",2),tt([k],q.prototype,"trackMinWidth",2),tt([k],q.prototype,"trackHeight",2),tt([k],q.prototype,"trackLeft",2),tt([k],q.prototype,"trackMinHeight",2),tt([k],q.prototype,"valueTextFormatter",2),tt([a({mode:"boolean"})],q.prototype,"disabled",2),tt([a({converter:Js})],q.prototype,"min",2),tt([a({converter:Js})],q.prototype,"max",2),tt([a({converter:Js})],q.prototype,"step",2),tt([a],q.prototype,"orientation",2),tt([a],q.prototype,"mode",2);const fp=l`
481
+ ${C("inline-grid")}
482
+
483
+ :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--slider-direction:90deg;--border-radius:${T};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${z}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Lt}}:host(${I}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${Dt};outline:1px solid ${gi}}.track{position:relative;background-color:${ne};border-radius:var(--border-radius);grid-row:2 / 2;grid-column:2 / 2;width:100%;height:var(--track-size);forced-color-adjust:none}:host(${I}) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-size);height:100%}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(${I}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
484
+ var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${_} calc(var(--step-rate) - 1px),${_} var(--step-rate)
485
+ )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${I}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${gt};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${_} inset;border:calc(var(--thumb-size) * 0.05) solid ${ae};box-sizing:border-box}.thumb,.track::before{background-color:${_e}}:host(:hover) .thumb,:host(:hover) .track::before{background-color:${co}}:host(:active) .thumb,:host(:active) .track::before{background-color:${ho}}:host(:disabled) .track{background-color:${Ee}}:host(:disabled) .thumb,:host(:disabled) .track::before{background-color:${P}}`.withBehaviors(Q(l`
486
+ .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function mp(o={}){return b`<template tabindex="${t=>t.disabled?null:0}" @pointerdown="${(t,e)=>t.handlePointerDown(e.event)}"><div ${kt("track")} part="track-container" class="track" style="${t=>t.position}"></div><div ${kt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @pointerdown="${(t,e)=>t.handleThumbPointerDown(e.event)}"><slot name="thumb">${xt(o.thumb)}</slot></div></template>`}const $p=mp({thumb:'<div class="thumb"></div>'}),vp=q.compose({name:`${u.prefix}-slider`,template:$p,styles:fp});vp.define(u.registry);var yp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,Nn=(o,t,e,s)=>{for(var i=s>1?void 0:s?kp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yp(t,e,i),i};class xp extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}class _i extends xp{sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}Nn([a],_i.prototype,"size",2),Nn([a],_i.prototype,"appearance",2);const wp=l`
487
+ ${C("inline-flex")}
488
+
489
+ :host{--duration:1.5s;--indicatorSize:${it};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host(${no}){--indicatorSize:${Tt};--size:20px}:host(${ao}){--indicatorSize:${Tt};--size:24px}:host(${z}){--indicatorSize:${Tt};--size:28px}:host(${w}){--indicatorSize:${it};--size:36px}:host(${Ko}){--indicatorSize:${it};--size:40px}:host(${Ba}){--indicatorSize:${vi};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${fs}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${pi};border-radius:50%}:host(${Tr}) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;inset-inline-end:50%}.end{overflow:hidden;inset-inline-start:50%}.indicator{color:${Hr};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-inline-end-color:currentcolor}:host(${Tr}) .indicator{color:${rl}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(Q(l`
490
+ .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-inline-end-color:Highlight}`)),Cp=b`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,Ip=_i.compose({name:`${u.prefix}-spinner`,template:Cp,styles:wp});Ip.define(u.registry);class Sp extends It{constructor(){super(),this.elementInternals.role="switch"}}function zp(o={}){return b`<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">${xt(o.switch)}</slot></template>`}const Pp=zp({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Tp=l`
491
+ ${C("inline-flex")}
492
+
493
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${dt};width:40px;height:20px;background-color:${wt};border:1px solid ${ne};border-radius:${gt};cursor:pointer}:host(:hover){background:none;border-color:${Ne}}:host(:active){border-color:${Me}}:host(:disabled),:host([readonly]){border:1px solid ${Pt};background-color:none;pointer:default}:host(${v}){background:${_e};border-color:${_e}}:host(${v}:hover){background:${co};border-color:${co}}:host(${v}:active){background:${ho};border-color:${ho}}:host(${v}:disabled){background:${Ee};border-color:${Pt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ut};transition-duration:${xi};transition-timing-function:${fs};transition-property:margin-inline-start}:host(${v}) .checked-indicator{background-color:${Fe};margin-inline-start:calc(100% - 14px)}:host(${v}:hover) .checked-indicator{background:${Ua}}:host(${v}:active) .checked-indicator{background:${Xa}}:host(:hover) .checked-indicator{background-color:${Da}}:host(:active) .checked-indicator{background-color:${La}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${P}}:host(${v}:disabled) .checked-indicator{background:${P}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${pt};outline:${Tt} solid ${pt};box-shadow:${ps},0 0 0 2px ${Dt}}`.withBehaviors(Q(l`
494
+ :host{border-color:InactiveBorder}:host(${v}),:host(${v}:active),:host(${v}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${v}) .checked-indicator,:host(${v}:hover) .checked-indicator,:host(${v}:active) .checked-indicator{background-color:ButtonFace}`)),Bp=Sp.compose({name:`${u.prefix}-switch`,template:Pp,styles:Tp});Bp.define(u.registry);class Ap extends x{}function Fp(){return b`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Op=Fp(),Ep=l`
495
+ ${C("block")}
496
+
497
+ :host{box-sizing:border-box;padding:${ft} ${bt}}`,_p=Ap.compose({name:`${u.prefix}-tab-panel`,template:Op,styles:Ep});_p.define(u.registry);var Np=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,Dp=(o,t,e,s)=>{for(var i=s>1?void 0:s?Mp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Np(t,e,i),i};class Ni extends x{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
498
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Dp([a({mode:"boolean"})],Ni.prototype,"disabled",2),Ut(Ni,Gt);function Lp(o={}){return b`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Wt(o)}<span class="tab-content"><slot></slot></span>${ie(o)}</template>`}const Vp=Lp({}),Hp=l`
499
+ ${C("inline-flex")}
500
+
501
+ :host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${L};font-family:${$};font-size:${F};color:${Mt};fill:currentcolor;grid-row:1;padding:${ft} ${bt};border-radius:${T}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${B};font-weight:${V}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${L};font-weight:${V}}:host([aria-selected='true'])::after{background-color:${go};border-radius:${gt};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${uo};border-radius:${gt};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${P}}::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:${P};color:${P}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Lt};box-shadow:0 0 0 3px ${Dt};outline:1px solid ${gi}}`.withBehaviors(Q(l`
502
+ :host([aria-selected='true'])::after{background-color:Highlight}`)),Rp=Ni.compose({name:`${u.prefix}-tab`,template:Vp,styles:Hp});Rp.define(u.registry);const jp={subtle:"subtle",transparent:"transparent"},Ts=$t;var qp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,Ce=(o,t,e,s)=>{for(var i=s>1?void 0:s?Gp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&qp(t,e,i),i};class Io extends x{constructor(){super(...arguments),this.orientation=Ts.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 jo:t.preventDefault(),this.adjustBackward(t);break;case qo:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case Go:t.preventDefault(),this.adjustBackward(t);break;case Ro:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Xo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Wo: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(s=>s.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",s=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,r)=>{if(i.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(i),h=this.tabIds[r],g=this.tabpanelIds[r];i.setAttribute("id",h),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",g),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=h)}i.style[t]="",i.style[e]="",i.style[s]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const s=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",s),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${to()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${to()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Ts.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=Zs(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)+1:1,s===e.length&&(s=0);s<e.length&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else{if(this.activetab&&s===e.indexOf(this.activetab))break;s+1>=e.length?s=0:s+=1}}adjustBackward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)-1:0,s=s<0?e.length-1:s;s>=0&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else s-1<0?s=e.length-1:s-=1}moveToTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Ce([a],Io.prototype,"orientation",2),Ce([a],Io.prototype,"activeid",2),Ce([k],Io.prototype,"tabs",2),Ce([k],Io.prototype,"tabpanels",2);class So extends Io{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=jp.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===Ts.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===Ts.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,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=l`
503
503
  :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=l`
504
- :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()}}xe([a],yo.prototype,"appearance",2),xe([a({mode:"boolean"})],yo.prototype,"disabled",2),xe([a],yo.prototype,"size",2),qt(yo,jt);function Mp(o={}){return f` ${Rt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${ut("tabs")}></slot></div>${oe(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${ut("tabpanels")}></slot></div>`}const Np=Mp({}),Ep=l`
505
- ${I("grid")}
504
+ :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()}}Ce([a],So.prototype,"appearance",2),Ce([a({mode:"boolean"})],So.prototype,"disabled",2),Ce([a],So.prototype,"size",2),Ut(So,Gt);function Wp(o={}){return b` ${Wt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${lt("tabs")}></slot></div>${ie(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${lt("tabpanels")}></slot></div>`}const Up=Wp({}),Xp=l`
505
+ ${C("grid")}
506
+
507
+ :host{box-sizing:border-box;font-family:${$};font-size:${F};line-height:${L};color:${Mt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${P}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${P}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${P}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${P}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${T}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${P}}.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:${as};color:${ri};fill:${Er}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Oe};fill:${Oe};color:${B}}:host([size='small']) ::slotted(fluent-tab){font-size:${F};line-height:${L};padding:${le} ${yt}}:host([size='large']) ::slotted(fluent-tab){font-size:${ct};line-height:${vt};padding:${gs} ${bt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${mn};transition-timing-function:${Ci}}:host ::slotted(fluent-tab)::after{height:${it};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${it};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${it};border-radius:${gt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${it};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${it};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:${it}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${le};padding-bottom:${le}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${fo};padding-bottom:${fo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${rt};padding-bottom:${rt}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${yt};left:${yt}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${bt};left:${bt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${bt};left:${bt}}: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:${le};bottom:${le}}: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:${rt};bottom:${rt}}: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:${Le};bottom:${Le}}`,Kp=So.compose({name:`${u.prefix}-tabs`,template:Up,styles:Xp});Kp.define(u.registry);const Yp=o=>o.getAttribute("aria-disabled")==="true",Qp=o=>o.hasAttribute("hidden"),Bs=o=>!Yp(o)&&!Qp(o),Zp={subtle:"subtle",transparent:"transparent"},zo=$t;var Jp=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,Ye=(o,t,e,s)=>{for(var i=s>1?void 0:s?tg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Jp(t,e,i),i};class Po extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=zo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&Bs(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=ti(this);switch(t.key){case jo:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case qo:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case Go:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case Ro:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case Xo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Wo:t.preventDefault(),this.adjust(this.tabs.filter(s=>Bs(s)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??zo.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const s=this.activeTabIndex===e&&Bs(t),i=this.tabIds[e];t.setAttribute("id",i),t.setAttribute("aria-selected",s?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",s&&!this.disabled?"0":"-1"),s&&(this.activetab=t,this.activeid=i),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${to()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===zo.horizontal}adjust(t){const e=this.tabs.filter(n=>Bs(n)),s=e.indexOf(this.activetab),i=ka(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}Ye([a({mode:"boolean"})],Po.prototype,"disabled",2),Ye([a],Po.prototype,"orientation",2),Ye([a],Po.prototype,"activeid",2),Ye([k],Po.prototype,"tabs",2);class Mi extends Po{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=Zp.transparent}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===zo.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===zo.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}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,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Ye([a],Mi.prototype,"appearance",2),Ye([a],Mi.prototype,"size",2);const eg=b`<template role="tablist"><slot name="tab" ${lt("tabs")}></slot></template>`,og=l`
508
+ ${C("flex")}
506
509
 
507
- :host{box-sizing:border-box;font-family:${$};font-size:${F};line-height:${H};color:${_t};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${z}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${z}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${z}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${z}}: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:${z}}.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:${es};color:${Ys};fill:${yr}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${Te};fill:${Te};color:${B}}:host([size='small']) ::slotted(fluent-tab){font-size:${F};line-height:${H};padding:${fe} ${It}}:host([size='large']) ::slotted(fluent-tab){font-size:${dt};line-height:${$t};padding:${cs} ${ft}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${on};transition-timing-function:${pi}}:host ::slotted(fluent-tab)::after{height:${tt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${tt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${tt};border-radius:${ct};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${tt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${tt};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:${tt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${fe};padding-bottom:${fe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${ao};padding-bottom:${ao}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${it};padding-bottom:${it}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${It};left:${It}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ft};left:${ft}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ft};left:${ft}}: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:${fe};bottom:${fe}}: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:${it};bottom:${it}}: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:${Fe};bottom:${Fe}}`,Lp=yo.compose({name:`${u.prefix}-tabs`,template:Np,styles:Ep});Lp.define(u.registry);const Dp=o=>o.getAttribute("aria-disabled")==="true",Hp=o=>o.hasAttribute("hidden"),Is=o=>!Dp(o)&&!Hp(o),Vp={subtle:"subtle",transparent:"transparent"},ko=pt;var jp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,Ve=(o,t,e,s)=>{for(var i=s>1?void 0:s?Rp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&jp(t,e,i),i};class xo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=ko.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===Node.ELEMENT_NODE&&Is(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=Us(this);switch(t.key){case No:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?-1:1);break;case Eo:if(!this.isHorizontal())return;t.preventDefault(),this.adjust(e==="ltr"?1:-1);break;case Lo:if(this.isHorizontal())return;t.preventDefault(),this.adjust(-1);break;case Mo:if(this.isHorizontal())return;t.preventDefault(),this.adjust(1);break;case Vo:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case Do:t.preventDefault(),this.adjust(this.tabs.filter(s=>Is(s)).length-this.activeTabIndex-1);break}}}disabledChanged(t,e){c(this.elementInternals,"disabled",e)}orientationChanged(t,e){this.elementInternals.ariaOrientation=e??ko.horizontal,t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0),this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length>0&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length>0&&(this.tabIds=this.getTabIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((t,e)=>{if(t.slot==="tab"){const s=this.activeTabIndex===e&&Is(t),i=this.tabIds[e];t.setAttribute("id",i),t.setAttribute("aria-selected",s?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",s&&!this.disabled?"0":"-1"),s&&(this.activetab=t,this.activeid=i),this.change()}})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${Ge()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===ko.horizontal}adjust(t){const e=this.tabs.filter(n=>Is(n)),s=e.indexOf(this.activetab),i=aa(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.activateTabByIndex(this.tabs,r)}activateTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}Ve([a({mode:"boolean"})],xo.prototype,"disabled",2),Ve([a],xo.prototype,"orientation",2),Ve([a],xo.prototype,"activeid",2),Ve([k],xo.prototype,"tabs",2);class Si extends xo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Vp.transparent}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===ko.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===ko.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setAnimationVars()}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,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Ve([a],Si.prototype,"appearance",2),Ve([a],Si.prototype,"size",2);const qp=f`<template role="tablist"><slot name="tab" ${ut("tabs")}></slot></template>`,Gp=l`
508
- ${I("flex")}
510
+ :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Mt};flex-direction:row}:host(${I}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${mn};transition-timing-function:${Ci}}:host ::slotted([slot='tab'])::after{height:${it};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${I}) ::slotted([slot='tab'])::after{width:${it};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${it};border-radius:${gt};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${P}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${it};margin-block-start:auto;transform-origin:left}:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${it};margin-inline-end:auto;transform-origin:top}:host(:where(${z},${w})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${z}) ::slotted([slot='tab']){--tabPaddingBlock:${le};--tabPaddingInline:${yt};font-size:${F};line-height:${L}}:host(${w}) ::slotted([slot='tab']){--tabPaddingBlock:${gs};--tabPaddingInline:${bt};font-size:${ct};line-height:${vt}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${bt}}:host(${z}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${yt}}:host(${w}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${bt}}:host(${I}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${I}) ::slotted([slot='tab']){--tabPaddingBlock:${rt}}:host(${I}${z}) ::slotted([slot='tab']){--tabPaddingBlock:${fo}}:host(${I}${w}) ::slotted([slot='tab']){--tabPaddingBlock:${rt}}:host(${I}) ::slotted([slot='tab'])::after,:host(${I}) ::slotted([slot='tab'])::before,:host(${I}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${I}){--tabIndicatorInsetBlock:${rt}}:host(${I}${z}){--tabIndicatorInsetBlock:${le}}:host(${I}${w}){--tabIndicatorInsetBlock:${Le}}:host(${E}){cursor:not-allowed;color:${P}}:host(${E}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${P}}:host(${E}) ::slotted([slot='tab']:after){background-color:${P}}:host(${E}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${P}}:host(${E}) ::slotted([slot='tab']:hover):before{content:unset}:host(${S}) ::slotted([slot='tab']:hover){background-color:${as};color:${ri};fill:${Er}}:host(${S}) ::slotted([slot='tab']:active){background-color:${Oe};fill:${Oe};color:${B}}`,sg=Mi.compose({name:`${u.prefix}-tablist`,template:eg,styles:og});sg.define(u.registry);const To={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},ig=[To.filledLighter,To.filledDarker],As={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},rg=[As.both,As.horizontal,As.vertical];var ng=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,G=(o,t,e,s)=>{for(var i=s>1?void 0:s?ag(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ng(t,e,i),i};class Y extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=As.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const t=this.getContent();this.defaultValue=t,this.value=t}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(t=>{t.disabled=this.disabled,t.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),c(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.required=this.required)}resizeChanged(t,e){t&&c(this.elementInternals,`resize-${t}`,!1),e&&c(this.elementInternals,`resize-${e}`,!0),c(this.elementInternals,"resize",rg.includes(this.resize))}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(t){const e=this.controlEl??this.preConnectControlEl;e.defaultValue=t,this.controlEl&&!this.userInteracted&&(this.controlEl.value=t)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(t){const e=this.controlEl??this.preConnectControlEl;e.value=t,this.setFormValue(t),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(t){this.setDisabledSideEffect(t),this.setValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(t){this.elementInternals.setValidity({customError:!!t},t?t.toString():void 0),this.reportValidity()}setValidity(t,e,s){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(t??this.controlEl.validity,e??this.controlEl.validationMessage,s??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(t=>{switch(t.nodeType){case Node.ELEMENT_NODE:return t.outerHTML;case Node.TEXT_NODE:return t.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(t){this.elementInternals.ariaDisabled=`${t}`,this.controlEl&&(this.controlEl.disabled=t),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.disabled=this.disabled)}toggleUserValidityState(){c(this.elementInternals,"user-invalid",!this.validity.valid),c(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((t,e)=>{const s=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(s)!==""&&(this.autoSizerEl?.remove(),e.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}Y.formAssociated=!0,G([k],Y.prototype,"defaultSlottedNodes",2),G([k],Y.prototype,"labelSlottedNodes",2),G([a],Y.prototype,"autocomplete",2),G([a({attribute:"auto-resize",mode:"boolean"})],Y.prototype,"autoResize",2),G([a({attribute:"dirname"})],Y.prototype,"dirName",2),G([a({mode:"boolean"})],Y.prototype,"disabled",2),G([a({attribute:"display-shadow",mode:"boolean"})],Y.prototype,"displayShadow",2),G([a({attribute:"form"})],Y.prototype,"initialForm",2),G([a({attribute:"maxlength",converter:ot})],Y.prototype,"maxLength",2),G([a({attribute:"minlength",converter:ot})],Y.prototype,"minLength",2),G([a],Y.prototype,"name",2),G([a],Y.prototype,"placeholder",2),G([a({attribute:"readonly",mode:"boolean"})],Y.prototype,"readOnly",2),G([a({mode:"boolean"})],Y.prototype,"required",2),G([a({mode:"fromView"})],Y.prototype,"resize",2),G([a({mode:"boolean"})],Y.prototype,"spellcheck",2);class Fs extends Y{constructor(){super(...arguments),this.appearance=To.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(t=>{t.size=this.size})}appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),!e||!Array.from(Object.values(To)).includes(e)?c(this.elementInternals,To.outline,!0):c(this.elementInternals,`${e}`,!0)}blockChanged(){c(this.elementInternals,"block",this.block)}sizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}handleChange(t,e){switch(e){case"size":this.labelSlottedNodes.forEach(s=>{s.size=this.size});break;case"appearance":case"displayShadow":this.maybeDisplayShadow();break}}connectedCallback(){super.connectedCallback(),this.maybeDisplayShadow(),f.getNotifier(this).subscribe(this,"appearance"),f.getNotifier(this).subscribe(this,"displayShadow"),f.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this,"appearance"),f.getNotifier(this).unsubscribe(this,"displayShadow"),f.getNotifier(this).unsubscribe(this,"size")}maybeDisplayShadow(){c(this.elementInternals,"display-shadow",this.displayShadow&&ig.includes(this.appearance))}}G([a({mode:"fromView"})],Fs.prototype,"appearance",2),G([a({mode:"boolean"})],Fs.prototype,"block",2),G([a],Fs.prototype,"size",2);const lg=l`
511
+ ${C("inline-block")}
509
512
 
510
- :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${_t};flex-direction:row}:host(${C}){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${on};transition-timing-function:${pi}}:host ::slotted([slot='tab'])::after{height:${tt};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host(${C}) ::slotted([slot='tab'])::after{width:${tt};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${tt};border-radius:${ct};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${z}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${tt};margin-block-start:auto;transform-origin:left}:host(${C}) ::slotted([slot='tab'])::before,:host(${C}) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${tt};margin-inline-end:auto;transform-origin:top}:host(:where(${P},${w})) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host(${P}) ::slotted([slot='tab']){--tabPaddingBlock:${fe};--tabPaddingInline:${It};font-size:${F};line-height:${H}}:host(${w}) ::slotted([slot='tab']){--tabPaddingBlock:${cs};--tabPaddingInline:${ft};font-size:${dt};line-height:${$t}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${ft}}:host(${P}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${It}}:host(${w}) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ft}}:host(${C}) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host(${C}) ::slotted([slot='tab']){--tabPaddingBlock:${it}}:host(${C}${P}) ::slotted([slot='tab']){--tabPaddingBlock:${ao}}:host(${C}${w}) ::slotted([slot='tab']){--tabPaddingBlock:${it}}:host(${C}) ::slotted([slot='tab'])::after,:host(${C}) ::slotted([slot='tab'])::before,:host(${C}) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host(${C}){--tabIndicatorInsetBlock:${it}}:host(${C}${P}){--tabIndicatorInsetBlock:${fe}}:host(${C}${w}){--tabIndicatorInsetBlock:${Fe}}:host(${O}){cursor:not-allowed;color:${z}}:host(${O}) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${z}}:host(${O}) ::slotted([slot='tab']:after){background-color:${z}}:host(${O}) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${z}}:host(${O}) ::slotted([slot='tab']:hover):before{content:unset}:host(${S}) ::slotted([slot='tab']:hover){background-color:${es};color:${Ys};fill:${yr}}:host(${S}) ::slotted([slot='tab']:active){background-color:${Te};fill:${Te};color:${B}}`,Wp=Si.compose({name:`${u.prefix}-tablist`,template:qp,styles:Gp});Wp.define(u.registry);const Up={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Xp=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,M=(o,t,e,s)=>{for(var i=s>1?void 0:s?Yp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Kp(t,e,i),i};class N extends x{constructor(){super(...arguments),this.type=Up.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 m.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),m.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){return t.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){return t.target===this&&this.control?.focus(),!0}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(i=>i.getAttribute("type")==="submit");if(e){e.click();return}t.filter(i=>Xp.includes(i.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,s=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,s)}}}N.formAssociated=!0,M([a],N.prototype,"autocomplete",2),M([a({mode:"boolean"})],N.prototype,"autofocus",2),M([k],N.prototype,"defaultSlottedNodes",2),M([a],N.prototype,"dirname",2),M([a({mode:"boolean"})],N.prototype,"disabled",2),M([a({attribute:"form"})],N.prototype,"formAttribute",2),M([a({attribute:"value",mode:"fromView"})],N.prototype,"initialValue",2),M([a],N.prototype,"list",2),M([a({converter:rt})],N.prototype,"maxlength",2),M([a({converter:rt})],N.prototype,"minlength",2),M([a({mode:"boolean"})],N.prototype,"multiple",2),M([a],N.prototype,"name",2),M([a],N.prototype,"pattern",2),M([a],N.prototype,"placeholder",2),M([a({attribute:"readonly",mode:"boolean"})],N.prototype,"readOnly",2),M([a({mode:"boolean"})],N.prototype,"required",2),M([a({converter:rt})],N.prototype,"size",2),M([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],N.prototype,"spellcheck",2),M([a],N.prototype,"type",2),M([k],N.prototype,"controlLabel",2);class Ss extends N{appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}M([a],Ss.prototype,"appearance",2),M([a({attribute:"control-size"})],Ss.prototype,"controlSize",2),qt(Ss,jt);const Qp=l`
511
- ${I("block")}
513
+ :host{--font-size:${F};--line-height:${L};--padding-inline:${bt};--padding-block:${le};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${X};--control-padding-inline:${dt};--color:${B};--background-color:${_};--border-color:${ae};--border-block-end-color:${ne};--placeholder-color:${Or};--focus-indicator-color:${go};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${$};font-size:var(--font-size);font-weight:${N};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${uo};--border-block-end-color:${Ne}}:host(:active){--border-color:${ls};--border-block-end-color:${Me}}:host(:focus-within){outline:none}:host(${ii}:not([hidden])){display:block}:host(${z}){--font-size:${j};--line-height:${st};--min-block-size:40px;--padding-block:${yi};--padding-inline:${yt};--control-padding-inline:${dt}}:host(${w}){--font-size:${ct};--line-height:${vt};--min-block-size:64px;--padding-block:${rt};--padding-inline:${ft};--control-padding-inline:${yt}}:host(${Oa}:not(:disabled)){--resize:both}:host(${Aa}:not(:disabled)){--resize:horizontal}:host(${Fa}:not(:disabled)){--resize:vertical}:host(${Ar}){--block-size:auto;--contain-size:inline-size}:host(${Be}){--background-color:${rs};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Te}){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host(${Be}${Fr}),:host(${Te}${Fr}){--box-shadow:${$i}}:host(${Ea}){--border-color:${bi};--border-block-end-color:${bi}}:host(:disabled){--color:${P};--background-color:${wt};--border-color:${Pt};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${P};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${T};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host(${ii}) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${T} ${T};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${T});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${Ve};transition-duration:${fn};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${xi};transition-delay:${He}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${yi};padding-inline-end:${Vt}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host(${Ar}) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${Fe};background-color:${Mr}}`.withBehaviors(Q(l`
514
+ :host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function cg(){return b`<template><label ${kt("labelEl")} for="control" part="label"><slot name="label" ${lt({property:"labelSlottedNodes",filter:ei})}></slot></label><div class="root" part="root"><textarea ${kt("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${lt({property:"defaultSlottedNodes",filter:ei})}></slot></div></template>`}const dg=cg(),hg=Fs.compose({name:`${u.prefix}-textarea`,template:dg,styles:lg,shadowOptions:{delegatesFocus:!0}});hg.define(u.registry);const ug={email:"email",password:"password",tel:"tel",text:"text",url:"url"},pg=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var gg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,M=(o,t,e,s)=>{for(var i=s>1?void 0:s?bg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&gg(t,e,i),i};class D extends x{constructor(){super(...arguments),this.type=ug.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 f.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),f.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){return t.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){return t.target===this&&this.control?.focus(),!0}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(i=>i.getAttribute("type")==="submit");if(e){e.click();return}t.filter(i=>pg.includes(i.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,s=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,s)}}}D.formAssociated=!0,M([a],D.prototype,"autocomplete",2),M([a({mode:"boolean"})],D.prototype,"autofocus",2),M([k],D.prototype,"defaultSlottedNodes",2),M([a],D.prototype,"dirname",2),M([a({mode:"boolean"})],D.prototype,"disabled",2),M([a({attribute:"form"})],D.prototype,"formAttribute",2),M([a({attribute:"value",mode:"fromView"})],D.prototype,"initialValue",2),M([a],D.prototype,"list",2),M([a({converter:ot})],D.prototype,"maxlength",2),M([a({converter:ot})],D.prototype,"minlength",2),M([a({mode:"boolean"})],D.prototype,"multiple",2),M([a],D.prototype,"name",2),M([a],D.prototype,"pattern",2),M([a],D.prototype,"placeholder",2),M([a({attribute:"readonly",mode:"boolean"})],D.prototype,"readOnly",2),M([a({mode:"boolean"})],D.prototype,"required",2),M([a({converter:ot})],D.prototype,"size",2),M([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],D.prototype,"spellcheck",2),M([a],D.prototype,"type",2),M([k],D.prototype,"controlLabel",2);class Os extends D{appearanceChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&c(this.elementInternals,`${t}`,!1),e&&c(this.elementInternals,`${e}`,!0)}}M([a],Os.prototype,"appearance",2),M([a({attribute:"control-size"})],Os.prototype,"controlSize",2),Ut(Os,Gt);const fg=l`
515
+ ${C("block")}
512
516
 
513
- :host{font-family:${$};font-size:${F};font-weight:${L};line-height:${H};max-width:400px}.label{display:flex;color:${B};padding-bottom:${mc};flex-shrink:0;padding-inline-end:${Qt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${E};border:${K} solid ${ge};border-bottom-color:${pe};border-radius:${_};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${gt};padding:0 ${ft};position:relative;width:100%}:has(.control:user-invalid){border-color:${Xa}}.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 ${ss};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${vc};transition-delay:${co}}.control{width:100%;height:100%;box-sizing:border-box;color:${B};border-radius:${_};background:${wt};font-family:${$};font-weight:${L};font-size:${F};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Ca}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${at};font-size:${Ae}}:host ::slotted([slot='start']){padding-right:${gt}}:host ::slotted([slot='end']){padding-left:${gt};gap:${Qt}}:host(:hover) .root{border-color:${os};border-bottom-color:${so}}:host(:active) .root{border-color:${ri}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${en};transition-delay:${ho}}:host(:focus-within:active) .root:after{border-bottom-color:${Pr}}:host(${G}:focus-within) .root{border:${K} solid ${ge}}:host(:focus-within) .control{color:${B}}:host([disabled]) .root{background:${wt};border:${K} solid ${Mt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${z}}::selection{color:${to};background-color:${La}}:host(${P}) .control{font-size:${W};font-weight:${L};line-height:${st}}:host(${P}) .root{height:24px;gap:${gt};padding:0 ${It}}:host(${P}) ::slotted([slot='start']),:host(${P}) ::slotted([slot='end']){font-size:${dt}}:host(${w}) .control{font-size:${dt};font-weight:${L};line-height:${$t}}:host(${w}) .root{height:40px;gap:${Zt};padding:0 ${bt}}:host(${w}) ::slotted([slot='start']),:host(${w}) ::slotted([slot='end']){font-size:${is}}:host(${Xe}) .root{background:${wt};border:0;border-radius:0;border-bottom:${K} solid ${pe}}:host(${Xe}:hover) .root{border-bottom-color:${so}}:host(${Xe}:active) .root{border-bottom-color:${io}}:host(${Xe}:focus-within) .root{border:0;border-bottom-color:${io}}:host(${Xe}[disabled]) .root{border-bottom-color:${Mt}}:host(${jo}) .root,:host(${Ro}) .root{border:${K} solid ${lt};box-shadow:${Zr}}:host(${jo}) .root{background:${E}}:host(${Ro}) .root{background:${ti}}:host(${jo}:hover) .root,:host(${Ro}:hover) .root{border-color:${Tr}}:host(${jo}:active) .root,:host(${Ro}:active) .root{border-color:${Tr};background:${ti}}`;function Zp(o={}){return f`<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" ${Ot("controlLabel")}><slot ${ut({property:"defaultSlottedNodes",filter:ha})}></slot></label><div class="root" part="root">${Rt(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}" ${Ot("control")} />${oe(o)}</div></template>`}const Jp=Zp(),tg=Ss.compose({name:`${u.prefix}-text-input`,template:Jp,styles:Qp,shadowOptions:{delegatesFocus:!0}});tg.define(u.registry);var eg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,Vt=(o,t,e,s)=>{for(var i=s>1?void 0:s?og(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&eg(t,e,i),i};class Tt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(t,e){t&&c(this.elementInternals,`size-${t}`,!1),e&&c(this.elementInternals,`size-${e}`,!0)}fontChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}weightChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}alignChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":c(this.elementInternals,e,!!this[e]);break}}}Vt([a({mode:"boolean"})],Tt.prototype,"nowrap",2),Vt([a({mode:"boolean"})],Tt.prototype,"truncate",2),Vt([a({mode:"boolean"})],Tt.prototype,"italic",2),Vt([a({mode:"boolean"})],Tt.prototype,"underline",2),Vt([a({mode:"boolean"})],Tt.prototype,"strikethrough",2),Vt([a({mode:"boolean"})],Tt.prototype,"block",2),Vt([a],Tt.prototype,"size",2),Vt([a],Tt.prototype,"font",2),Vt([a],Tt.prototype,"weight",2),Vt([a],Tt.prototype,"align",2);const wn=l.partial`:is([state--nowrap], :state(nowrap))`,Cn=l.partial`:is([state--truncate], :state(truncate))`,In=l.partial`:is([state--underline], :state(underline))`,Sn=l.partial`:is([state--strikethrough], :state(strikethrough))`,sg=l`
514
- ${I("inline")}
517
+ :host{font-family:${$};font-size:${F};font-weight:${N};line-height:${L};max-width:400px}.label{display:flex;color:${B};padding-bottom:${yi};flex-shrink:0;padding-inline-end:${Vt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${_};border:${X} solid ${ae};border-bottom-color:${ne};border-radius:${T};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${dt};padding:0 ${bt};position:relative;width:100%}:has(.control:user-invalid){border-color:${bi}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${T});border-radius:0 0 ${T} ${T};border-bottom:2px solid ${go};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${fn};transition-delay:${Ve}}.control{width:100%;height:100%;box-sizing:border-box;color:${B};border-radius:${T};background:${wt};font-family:${$};font-weight:${N};font-size:${F};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Or}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ut};font-size:${De}}:host ::slotted([slot='start']){padding-right:${dt}}:host ::slotted([slot='end']){padding-left:${dt};gap:${Vt}}:host(:hover) .root{border-color:${uo};border-bottom-color:${Ne}}:host(:active) .root{border-color:${ls}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${xi};transition-delay:${He}}:host(:focus-within:active) .root:after{border-bottom-color:${Rr}}:host(${U}:focus-within) .root{border:${X} solid ${ae}}:host(:focus-within) .control{color:${B}}:host([disabled]) .root{background:${wt};border:${X} solid ${Pt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${P}}::selection{color:${Fe};background-color:${Mr}}:host(${z}) .control{font-size:${j};font-weight:${N};line-height:${st}}:host(${z}) .root{height:24px;gap:${dt};padding:0 ${yt}}:host(${z}) ::slotted([slot='start']),:host(${z}) ::slotted([slot='end']){font-size:${ct}}:host(${w}) .control{font-size:${ct};font-weight:${N};line-height:${vt}}:host(${w}) .root{height:40px;gap:${te};padding:0 ${ft}}:host(${w}) ::slotted([slot='start']),:host(${w}) ::slotted([slot='end']){font-size:${cs}}:host(${so}) .root{background:${wt};border:0;border-radius:0;border-bottom:${X} solid ${ne}}:host(${so}:hover) .root{border-bottom-color:${Ne}}:host(${so}:active) .root{border-bottom-color:${Me}}:host(${so}:focus-within) .root{border:0;border-bottom-color:${Me}}:host(${so}[disabled]) .root{border-bottom-color:${Pt}}:host(${Te}) .root,:host(${Be}) .root{border:${X} solid ${pt};box-shadow:${$i}}:host(${Te}) .root{background:${_}}:host(${Be}) .root{background:${rs}}:host(${Te}:hover) .root,:host(${Be}:hover) .root{border-color:${jr}}:host(${Te}:active) .root,:host(${Be}:active) .root{border-color:${jr};background:${rs}}`;function mg(o={}){return b`<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" ${kt("controlLabel")}><slot ${lt({property:"defaultSlottedNodes",filter:ei})}></slot></label><div class="root" part="root">${Wt(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}" ${kt("control")} />${ie(o)}</div></template>`}const $g=mg(),vg=Os.compose({name:`${u.prefix}-text-input`,template:$g,styles:fg,shadowOptions:{delegatesFocus:!0}});vg.define(u.registry);var yg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,qt=(o,t,e,s)=>{for(var i=s>1?void 0:s?kg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&yg(t,e,i),i};class Ft extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(t,e){t&&c(this.elementInternals,`size-${t}`,!1),e&&c(this.elementInternals,`size-${e}`,!0)}fontChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}weightChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}alignChanged(t,e){t&&c(this.elementInternals,t,!1),e&&c(this.elementInternals,e,!0)}connectedCallback(){super.connectedCallback(),f.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),f.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":c(this.elementInternals,e,!!this[e]);break}}}qt([a({mode:"boolean"})],Ft.prototype,"nowrap",2),qt([a({mode:"boolean"})],Ft.prototype,"truncate",2),qt([a({mode:"boolean"})],Ft.prototype,"italic",2),qt([a({mode:"boolean"})],Ft.prototype,"underline",2),qt([a({mode:"boolean"})],Ft.prototype,"strikethrough",2),qt([a({mode:"boolean"})],Ft.prototype,"block",2),qt([a],Ft.prototype,"size",2),qt([a],Ft.prototype,"font",2),qt([a],Ft.prototype,"weight",2),qt([a],Ft.prototype,"align",2);const Mn=l.partial`:is([state--nowrap], :state(nowrap))`,Dn=l.partial`:is([state--truncate], :state(truncate))`,Ln=l.partial`:is([state--underline], :state(underline))`,Vn=l.partial`:is([state--strikethrough], :state(strikethrough))`,xg=l`
518
+ ${C("inline")}
515
519
 
516
- :host{contain:content;font-family:${$};font-size:${F};line-height:${H};font-weight:${L};text-align:start}:host(${wn}),:host(${wn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${Cn}),:host(${Cn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${In}){text-decoration-line:underline}:host(${Sn}){text-decoration-line:line-through}:host(${In}${Sn}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${no};line-height:${ns}}:host(:is([state--size-200],:state(size-200))){font-size:${W};line-height:${st}}:host(:is([state--size-400],:state(size-400))){font-size:${dt};line-height:${$t}}:host(:is([state--size-500],:state(size-500))){font-size:${Ae};line-height:${as}}:host(:is([state--size-600],:state(size-600))){font-size:${is};line-height:${Ur}}:host(:is([state--size-700],:state(size-700))){font-size:${Rr};line-height:${Xr}}:host(:is([state--size-800],:state(size-800))){font-size:${qr};line-height:${Kr}}:host(:is([state--size-900],:state(size-900))){font-size:${Gr};line-height:${Yr}}:host(:is([state--size-1000],:state(size-1000))){font-size:${Wr};line-height:${Qr}}:host(:is([state--monospace],:state(monospace))){font-family:${cc}}:host(:is([state--numeric],:state(numeric))){font-family:${dc}}:host(:is([state--medium],:state(medium))){font-weight:${hc}}:host(:is([state--semibold],:state(semibold))){font-weight:${D}}:host(:is([state--bold],:state(bold))){font-weight:${rs}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,ig=f`<slot></slot>`,rg=Tt.compose({name:`${u.prefix}-text`,template:ig,styles:sg});rg.define(u.registry);var ng=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,Pn=(o,t,e,s)=>{for(var i=s>1?void 0:s?ag(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ng(t,e,i),i};class Pi extends Jt{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,c(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Pn([a({mode:"boolean"})],Pi.prototype,"pressed",2),Pn([a({mode:"boolean"})],Pi.prototype,"mixed",2);const lg=l`
517
- ${ps}
520
+ :host{contain:content;font-family:${$};font-size:${F};line-height:${L};font-weight:${N};text-align:start}:host(${Mn}),:host(${Mn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${Dn}),:host(${Dn}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${Ln}){text-decoration-line:underline}:host(${Vn}){text-decoration-line:line-through}:host(${Ln}${Vn}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${bo};line-height:${hs}}:host(:is([state--size-200],:state(size-200))){font-size:${j};line-height:${st}}:host(:is([state--size-400],:state(size-400))){font-size:${ct};line-height:${vt}}:host(:is([state--size-500],:state(size-500))){font-size:${De};line-height:${us}}:host(:is([state--size-600],:state(size-600))){font-size:${cs};line-height:${cn}}:host(:is([state--size-700],:state(size-700))){font-size:${rn};line-height:${dn}}:host(:is([state--size-800],:state(size-800))){font-size:${nn};line-height:${hn}}:host(:is([state--size-900],:state(size-900))){font-size:${an};line-height:${un}}:host(:is([state--size-1000],:state(size-1000))){font-size:${ln};line-height:${pn}}:host(:is([state--monospace],:state(monospace))){font-family:${xc}}:host(:is([state--numeric],:state(numeric))){font-family:${wc}}:host(:is([state--medium],:state(medium))){font-weight:${Cc}}:host(:is([state--semibold],:state(semibold))){font-weight:${V}}:host(:is([state--bold],:state(bold))){font-weight:${ds}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,wg=b`<slot></slot>`,Cg=Ft.compose({name:`${u.prefix}-text`,template:wg,styles:xg});Cg.define(u.registry);var Ig=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,Hn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Sg(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Ig(t,e,i),i};class Di extends ee{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,c(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Hn([a({mode:"boolean"})],Di.prototype,"pressed",2),Hn([a({mode:"boolean"})],Di.prototype,"mixed",2);const zg=l`
521
+ ${$s}
518
522
 
519
- :host(${A}){border-color:${ge};background-color:${xr};color:${B};border-width:${K}}:host(${A}:hover){border-color:${os};background-color:${Zs}}:host(${A}:active){border-color:${ri};background-color:${Js}}:host(${A}${nt}){border-color:transparent;background-color:${ja};color:${Yt}}:host(${A}${nt}:hover){background-color:${wr}}:host(${A}${nt}:active){background-color:${Cr}}:host(${A}${S}){border-color:transparent;background-color:${Ha};color:${ya}}:host(${A}${S}:hover){background-color:${es};color:${Yo}}:host(${A}${S}:active){background-color:${Te};color:${Qo}}:host(${A}${G}),:host(${A}${X}){background-color:${Va}}:host(${A}${G}:hover),:host(${A}${X}:hover){background-color:${ei}}:host(${A}${G}:active),:host(${A}${X}:active){background-color:${oi}}:host(${A}${X}){border-color:transparent;color:${ka}}:host(${A}${X}:hover){color:${Zo}}:host(${A}${X}:active){color:${Jo}}`.withBehaviors(J(l`
520
- :host(${A}),:host(${A}${nt}),:host(${A}${S}),:host(${A}${G}),:host(${A}${X}){background:SelectedItem;color:SelectedItemText}`)),cg=mi(),dg=Pi.compose({name:`${u.prefix}-toggle-button`,template:cg,styles:lg});dg.define(u.registry);
523
+ :host(${O}){border-color:${ae};background-color:${Nr};color:${B};border-width:${X}}:host(${O}:hover){border-color:${uo};background-color:${ai}}:host(${O}:active){border-color:${ls};background-color:${li}}:host(${O}${ht}){border-color:transparent;background-color:${ol};color:${Jt}}:host(${O}${ht}:hover){background-color:${Dr}}:host(${O}${ht}:active){background-color:${Lr}}:host(${O}${S}){border-color:transparent;background-color:${tl};color:${Na}}:host(${O}${S}:hover){background-color:${as};color:${es}}:host(${O}${S}:active){background-color:${Oe};color:${os}}:host(${O}${U}),:host(${O}${Z}){background-color:${el}}:host(${O}${U}:hover),:host(${O}${Z}:hover){background-color:${ci}}:host(${O}${U}:active),:host(${O}${Z}:active){background-color:${di}}:host(${O}${Z}){border-color:transparent;color:${Ma}}:host(${O}${Z}:hover){color:${ss}}:host(${O}${Z}:active){color:${is}}`.withBehaviors(Q(l`
524
+ :host(${O}),:host(${O}${ht}),:host(${O}${S}),:host(${O}${U}),:host(${O}${Z}){background:SelectedItem;color:SelectedItemText}`)),Pg=Pi(),Tg=Di.compose({name:`${u.prefix}-toggle-button`,template:Pg,styles:zg});Tg.define(u.registry);