@fluentui/web-components 3.0.0-beta.120 → 3.0.0-beta.121

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.
@@ -1,7 +1,7 @@
1
- const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Ho;const ts="fast-kernel";try{if(document.currentScript)Ho=document.currentScript.getAttribute(ts);else{const o=document.getElementsByTagName("script");Ho=o[o.length-1].getAttribute(ts)}}catch{Ho="isolate"}let ht;switch(Ho){case"share":ht=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ht=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)}`;ht=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const At=o=>typeof o=="function",We=o=>typeof o=="string",Pa=()=>{};var Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Gi<"u")Gi.globalThis=Gi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const os={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},os));const ie=globalThis.FAST;if(ie.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ie,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},os))}ie.error===void 0&&Object.assign(ie,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const za=Object.freeze([]);function Xi(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function is(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ut(o){o.prototype.toJSON=Pa}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),rs=o=>o,Ta=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:rs}):{createHTML:rs};let Lo=Object.freeze({createHTML(o){return Ta.createHTML(o)},protect(o,e,t,i){return i}});const Ba=Lo,pt=Object.freeze({get policy(){return Lo},setPolicy(o){if(Lo!==Ba)throw ie.error(1201);Lo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Q=ie.getById(ht.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Ui{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class ss{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Ui(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Ui(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Vo=Object.freeze({unknown:void 0,coupled:1}),m=ie.getById(ht.observable,()=>{const o=Q.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw ie.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new ss(d))),f}const n=is();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,ge=l[w];if(ge!==f){l[w]=f;const et=l[this.callback];At(et)&&et.call(l,ge,f),s(l).notify(this.name)}}}class h extends Ui{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Vo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let ge;try{ge=this.expression(l,f)}finally{i=w}return ge}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,ge=s(l),et=w===null?this.first:{};if(et.propertySource=l,et.propertyName=f,et.notifier=ge,ge.subscribe(this,f),w!==null){if(!this.needsRefresh){let es;i=void 0,es=w.propertySource[w.propertyName],i=this,l===es&&(this.needsRefresh=!0)}w.next=et}this.last=et}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){We(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function ns(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const as=ie.getById(ht.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),_t=Object.freeze({default:{index:0,length:0,get event(){return _t.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return as.get()},setEvent(o){as.set(o)}});class jo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Oa extends jo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Ki(o,e,t=m.isVolatileBinding(o)){return new Oa(o,e,t)}class ls extends jo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ut(ls);function cs(o,e){return new ls(o,e)}let ds;function hs(o){return o.map(e=>e instanceof we?hs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class we{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof we?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(ds),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(hs(this.styles)),this}static setDefaultStrategy(e){ds=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new we(e):e instanceof we?e:new we([e])}}we.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Yi=Xi(),Qi=Object.freeze({getForInstance:Yi.getForInstance,getByType:Yi.getByType,define(o){return Yi.register({type:o}),o}});function Zi(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Ji{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>Zi(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Zi(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Zi(this,t.controller,t)}}Qi.define(Ji);const Aa=`${Math.random().toString(36).substring(2,8)}`;let _a=0;const us=()=>`--v${Aa}${++_a}`;function ps(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];At(h)?h=new Ji(Ki(h),us()).createCSS(s):h instanceof jo?h=new Ji(h,us()).createCSS(s):Qi.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof we||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const p=(o,...e)=>{const{styles:t,behaviors:i}=ps(o,e),r=new we(t);return i.length?r.withBehaviors(...i):r};class bs{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(We(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new we(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Qi.define(bs),p.partial=(o,...e)=>{const{styles:t,behaviors:i}=ps(o,e);return new bs(t,i)};const gs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,fs=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ms=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,vs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,$s=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ys=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function xs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ee=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return gs.test(o)},isContentBindingEndMarker(o){return fs.test(o)},isRepeatViewStartMarker(o){return ms.test(o)},isRepeatViewEndMarker(o){return vs.test(o)},isElementBoundaryStartMarker(o){return xs(o)&&$s.test(o.data.trim())},isElementBoundaryEndMarker(o){return xs(o)&&ys.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Cs(gs,o)},parseContentBindingEndMarker(o){return Cs(fs,o)},parseRepeatStartMarker(o){return ks(ms,o)},parseRepeatEndMarker(o){return ks(vs,o)},parseElementBoundaryStartMarker(o){return ws($s,o.trim())},parseElementBoundaryEndMarker(o){return ws(ys,o)}});function ks(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function ws(o,e){const t=o.exec(e);return t===null?t:t[1]}function Cs(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ro=Symbol.for("fe-hydration");function qo(o){return o[Ro]===Ro}const er=`fast-${Math.random().toString(36).substring(2,8)}`,Wo=`${er}{`,ao=`}${er}`,Ea=ao.length;let Na=0;const lo=()=>`${er}-${++Na}`,Is=Object.freeze({interpolation:o=>`${Wo}${o}${ao}`,attribute:o=>`${lo()}="${Wo}${o}${ao}"`,comment:o=>`<!--${Wo}${o}${ao}-->`}),Go=Object.freeze({parse(o,e){const t=o.split(Wo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(ao);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Ea)}h!==""&&i.push(h)}return i}}),tr=Xi(),Ne=Object.freeze({getForInstance:tr.getForInstance,getByType:tr.getByType,define(o,e){return e=e||{},e.type=o,tr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Y.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=e,o.aspectType=Y.attribute;break}}});class or{constructor(e){this.options=e}createHTML(e){return Is.attribute(e(this))}createBehavior(){return this}}ut(or);class Ss extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function ir(o){return o.nodeType===Node.COMMENT_NODE}function Ps(o){return o.nodeType===Node.TEXT_NODE}function zs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ir(e)||Ps(e)?e.data.length:e.childNodes.length),t}function Fa(o){return o instanceof DocumentFragment&&"mode"in o}function Ma(o,e,t){const i=zs(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Da(h,t,n);break}case Node.COMMENT_NODE:{Ha(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function Da(o,e,t){const i=Ee.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new Ss(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);Xo(e[r],o,t)}o.removeAttribute(Ee.attributeMarkerName)}}function Ha(o,e,t,i,r){if(Ee.isElementBoundaryStartMarker(o)){La(o,e);return}if(Ee.isContentBindingStartMarker(o.data)){const s=Ee.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ir(l)){const w=Ee.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Fa(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Ps(d[0]))Xo(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Xo(h,w,i)}}}function La(o,e){const t=Ee.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(ir(i)){const r=Ee.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Xo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Ts;function rr(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class Bs{constructor(){this.index=0,this.length=0}get event(){return _t.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}}class Uo extends Bs{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){rr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){rr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ut(Uo),m.defineProperty(Uo.prototype,"index"),m.defineProperty(Uo.prototype,"length");const Et={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Va extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class ja extends Bs{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Ts]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Et.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==Et.hydrated&&(this._hydrationStage=Et.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Ma(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ss){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Xo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Va(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,zs(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=Et.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){rr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Ts=Ro,ut(ja);function Ra(o){return o.create!==void 0}function qa(o,e,t,i){if(t==null&&(t=""),Ra(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(qo(i)&&qo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Et.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Wa(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ga={[Y.attribute]:pt.setAttribute,[Y.booleanAttribute]:pt.setBooleanAttribute,[Y.property]:(o,e,t)=>o[e]=t,[Y.content]:qa,[Y.tokenList]:Wa,[Y.event]:()=>{}};class Nt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Y.content}createHTML(e){return Is.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ga[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ie.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=qo(e)&&e.hydrationStage&&e.hydrationStage!==Et.hydrated;switch(this.aspectType){case Y.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){_t.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);_t.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Ne.define(Nt,{aspected:!0});const Os=(o,e)=>`${o}.${e}`,As={},Fe={index:0,node:null};function _s(o){o.startsWith("fast-")||ie.warn(1204,{name:o})}const Xa=new Proxy(document.createElement("div"),{get(o,e){_s(e);const t=Reflect.get(o,e);return At(t)?t.bind(o):t},set(o,e,t){return _s(e),Reflect.set(o,e,t)}});class Ua{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:lo(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=As[t];if(!s){const n=`_${t}`;As[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Xa;for(const r of this.nodeIds)i[r];return new Uo(t,this.factories,i)}}function Es(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Go.parse(f,c);let ge=null;w===null?s&&(ge=new Nt(cs(()=>f,o.policy)),Ne.assignAspect(ge,l.name)):ge=sr.aggregate(w,o.policy),ge!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(ge,e,i,r,t.tagName))}}function Ka(o,e,t,i,r){const s=Go.parse(e.textContent,o.directives);if(s===null)return Fe.node=e.nextSibling,Fe.index=r+1,Fe;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=Os(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),We(l)?n.textContent=l:(n.textContent=" ",Ne.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return Fe.index=r+1,Fe.node=c.nextSibling,Fe}function Ns(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Ya(o,t,r,i);r=s.node,i=s.index}}function Ya(o,e,t,i){const r=Os(e,i);switch(t.nodeType){case 1:Es(o,e,t,r,i),Ns(o,t,r);break;case 3:return Ka(o,t,e,r,i);case 8:const s=Go.parse(t.data,o.directives);s!==null&&o.addFactory(sr.aggregate(s),e,r,i,null);break}return Fe.index=i+1,Fe.node=t.nextSibling,Fe}function Qa(o,e){return o&&o.nodeType==8&&Go.parse(o.data,e)!==null}const Fs="TEMPLATE",sr={compile(o,e,t=pt.policy){let i;if(We(o)){i=document.createElement(Fs),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Fs&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Ua(r,e,t);return Es(s,"",i,"h",0,!0),(Qa(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Ns(s,r,"r"),Fe.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=pt.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>We(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Nt(Ki(c,r??e,i));return Ne.assignAspect(h,t),h}},Za=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Ja=Object.create(null);class bt{constructor(e,t=Ja){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}bt.empty=new bt(""),Ne.define(bt);function el(o,e,t,i=Ne.getForInstance(o)){if(i.aspected){const r=Za.exec(e);r!==null&&Ne.assignAspect(o,r[2])}return o.createHTML(t)}class Ri{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=sr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new bt(We(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ie.error(1208);if(this.policy)throw ie.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,At(l))l=new Nt(Ki(l));else if(l instanceof jo)l=new Nt(l);else if(!(f=Ne.getForInstance(l))){const w=l;l=new Nt(cs(()=>w))}r+=el(l,d,n,f)}return new Ri(r+e[e.length-1],s,i)}}ut(Ri);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Ri.create(o,e);throw ie.error(1206)};b.partial=o=>new bt(o);class Ms extends or{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ne.define(Ms);const G=o=>new Ms(o),tl=o=>o.nodeType===1,tt=o=>o?e=>e.nodeType===1&&e.matches(o):tl;class ol extends or{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,za),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Ds="slotchange";class Hs extends ol{observe(e){e.addEventListener(Ds,this)}disconnect(e){e.removeEventListener(Ds,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ne.define(Hs);function N(o){return We(o)&&(o={property:o}),new Hs(o)}const Ls="boolean",Vs="reflect",Ko=Object.freeze({locate:is()}),il={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function js(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=js(o);return e&&e.toString()},fromView:js};class qi{constructor(e,t,i=t.toLowerCase(),r=Vs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Ls&&s===void 0&&(this.converter=il)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||Q.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Vs:const s=this.converter;pt.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case Ls:pt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Ko.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];We(d)?i.push(new qi(e,d)):i.push(new qi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Ko.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Rs={mode:"open"},qs={},Ws=new Set,Yo=ie.getById(ht.elementRegistry,()=>Xi());class _e{constructor(e,t=e.definition){var i;this.platformDefined=!1,We(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,s=qi.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Rs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Rs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?qs:Object.assign(Object.assign({},qs),t.elementOptions),this.styles=we.normalize(t.styles),Yo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Ws.has(e)||Yo.getByType(e)?new _e(class extends e{},t):new _e(e,t)}static registerBaseType(e){Ws.add(e)}}_e.getByType=Yo.getByType,_e.getForInstance=Yo.getForInstance;class rl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:_t.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:lo(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:lo(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:pt.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const sl={bubbles:!0,composed:!0,cancelable:!0},Qo="isConnected",Gs=new WeakMap;function co(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Gs.get(o))!==null&&t!==void 0?t:null}let Xs;class Ft extends ss{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Gs.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Qo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:_t.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),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,Qo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Qo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},sl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=co(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Vo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=_e.getForInstance(e);if(i===void 0)throw ie.error(1401);return e.$fastController=new Xs(e,i)}static setStrategy(e){Xs=e}}ut(Ft),Ft.setStrategy(Ft);function Zo(o){var e;return"adoptedStyleSheets"in o?o:(e=co(o))!==null&&e!==void 0?e:o.getRootNode()}class Wi{constructor(e){const t=Wi.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){Ks(Zo(e),this.sheets)}removeStylesFrom(e){Ys(Zo(e),this.sheets)}}Wi.styleSheetCache=new Map;let nl=0;const al=()=>`fast-${++nl}`;function Us(o){return o===document?document.body:o}class ll{constructor(e){this.styles=e,this.styleClass=al()}addStylesTo(e){e=Us(Zo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Us(Zo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let Ks=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Ys=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(we.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ks=(o,e)=>{o.adoptedStyleSheets.push(...e)},Ys=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}we.setDefaultStrategy(Wi)}else we.setDefaultStrategy(ll);const Qs="defer-hydration",Zs="needs-hydration";class Ot extends Ft{static hydrationObserverHandler(e){for(const t of e)Ot.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Zs)!==null),this.source.hasAttribute(Qs)){Ot.hydrationObserver.observe(this.source,{attributeFilter:[Qs]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=co(i))!==null&&e!==void 0?e:i;if(this.template)if(qo(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(Ee.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Ee.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(Zs),this.needsInitialization=this.needsHydration=!1,m.notify(this,Qo)}disconnect(){super.disconnect(),Ot.hydrationObserver.unobserve(this.source)}static install(){Ft.setStrategy(Ot)}}Ot.hydrationObserver=new rl(Ot.hydrationObserverHandler);function Js(o){const e=class extends o{constructor(){super(),Ft.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return _e.registerBaseType(e),e}function cl(o,e){return At(o)?_e.compose(o,e):_e.compose(this,o)}function dl(o,e){return At(o)?_e.compose(o,e).define().type:_e.compose(this,o).define().type}function hl(o){return Js(o)}const $=Object.assign(Js(HTMLElement),{from:hl,define:dl,compose:cl});var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,V=(o,e,t,i)=>{for(var r=i>1?void 0:i?pl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ul(e,t,r),r};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 nr={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},fe={horizontal:"horizontal",vertical:"vertical"};function bl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function ar(...o){return o.every(e=>e instanceof HTMLElement)}const ho="ArrowDown",uo="ArrowLeft",po="ArrowRight",bo="ArrowUp",go="End",fo="Enter",gl="Escape",mo="Home",Jo=" ",fl="Tab";var Me;(function(o){o.ltr="ltr",o.rtl="rtl"})(Me||(Me={}));function ml(o,e,t){return t<o?e:t>e?o:t}function lr(o,e,t){return Math.min(Math.max(t,o),e)}let vl=0;function Mt(o=""){return`${o}${vl++}`}const ei=o=>o.closest("[dir]")?.dir==="rtl"?Me.rtl:Me.ltr;function he(o){return o?typeof o=="string"?new bt(o):"inline"in o?o.inline():o:bt.empty}const en=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,$l=":host([hidden]){display:none}";function k(o){return`${$l}:host{display:${o}}`}class yl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Do extends yl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Do(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const X=Do.with(window.matchMedia("(forced-colors)"));Do.with(window.matchMedia("(prefers-color-scheme: dark)")),Do.with(window.matchMedia("(prefers-color-scheme: light)"));const ti=CSS.supports("anchor-name: --a"),xl="anchor"in HTMLElement.prototype,tn=CSS.supports("selector(:state(g))");class Ge{}function ot(o){return b`<slot name="end" ${G("end")}>${he(o.end)}</slot>`.inline()}function De(o){return b`<slot name="start" ${G("start")}>${he(o.start)}</slot>`.inline()}function Xe(o,...e){const t=Ko.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Ko.locate(i).forEach(s=>t.push(s))})}var kl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?wl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&kl(e,t,r),r};class it extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Mt("accordion-")}}oi([a({attribute:"heading-level",mode:"fromView",converter:re})],it.prototype,"headinglevel",2),oi([a({mode:"boolean"})],it.prototype,"expanded",2),oi([a({mode:"boolean"})],it.prototype,"disabled",2),oi([a],it.prototype,"id",2);var Cl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,cr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Il(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Cl(e,t,r),r};class vo extends it{constructor(){super(...arguments),this.block=!1}}cr([a],vo.prototype,"size",2),cr([a({attribute:"marker-position"})],vo.prototype,"markerPosition",2),cr([a({mode:"boolean"})],vo.prototype,"block",2),Xe(vo,Ge);const z="var(--colorNeutralForeground1)",dr="var(--colorNeutralForeground1Hover)",Sl="var(--colorNeutralForeground1Pressed)",Se="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",ii="var(--colorNeutralForeground2Selected)",ri="var(--colorNeutralForeground2BrandHover)",si="var(--colorNeutralForeground2BrandPressed)",Pl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",zl="var(--colorNeutralForeground3Hover)",Tl="var(--colorNeutralForeground3Pressed)",Bl="var(--colorNeutralForeground3Selected)",hr="var(--colorNeutralForeground4)",I="var(--colorNeutralForegroundDisabled)",Ol="var(--colorBrandForegroundLink)",Al="var(--colorBrandForegroundLinkHover)",_l="var(--colorBrandForegroundLinkPressed)",El="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Fl="var(--colorNeutralForeground2LinkPressed)",on="var(--colorCompoundBrandForeground1Hover)",Ml="var(--colorCompoundBrandForeground1Pressed)",Ue="var(--colorNeutralForegroundOnBrand)",gt="var(--colorNeutralForegroundInverted)",Dl="var(--colorNeutralForegroundInvertedHover)",Hl="var(--colorNeutralForegroundInvertedPressed)",rn="var(--colorNeutralForegroundStaticInverted)",ni="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",Vl="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",ai="var(--colorNeutralBackground1Hover)",ur="var(--colorNeutralBackground1Pressed)",sn="var(--colorNeutralBackground1Selected)",$o="var(--colorNeutralBackground3)",jl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",yo="var(--colorNeutralBackground6)",nn="var(--colorNeutralBackgroundInverted)",an="var(--colorSubtleBackground)",xo="var(--colorSubtleBackgroundHover)",ft="var(--colorSubtleBackgroundPressed)",ln="var(--colorSubtleBackgroundSelected)",ql="var(--colorSubtleBackgroundLightAlphaHover)",Wl="var(--colorSubtleBackgroundLightAlphaPressed)",Gl="var(--colorSubtleBackgroundLightAlphaSelected)",me="var(--colorTransparentBackground)",li="var(--colorTransparentBackgroundHover)",ci="var(--colorTransparentBackgroundPressed)",cn="var(--colorTransparentBackgroundSelected)",rt="var(--colorNeutralBackgroundDisabled)",pr="var(--colorBackgroundOverlay)",dn="var(--colorBrandBackground)",hn="var(--colorBrandBackgroundHover)",un="var(--colorBrandBackgroundPressed)",Xl="var(--colorBrandBackgroundSelected)",mt="var(--colorCompoundBrandBackground)",Lt="var(--colorCompoundBrandBackgroundHover)",Vt="var(--colorCompoundBrandBackgroundPressed)",pn="var(--colorBrandBackgroundStatic)",bn="var(--colorBrandBackground2)",He="var(--colorNeutralStrokeAccessible)",vt="var(--colorNeutralStrokeAccessibleHover)",$t="var(--colorNeutralStrokeAccessiblePressed)",Le="var(--colorNeutralStroke1)",jt="var(--colorNeutralStroke1Hover)",ko="var(--colorNeutralStroke1Pressed)",wo="var(--colorNeutralStroke2)",Ul="var(--colorNeutralStroke3)",Kl="var(--colorNeutralStrokeOnBrand2)",gn="var(--colorBrandStroke1)",fn="var(--colorBrandStroke2)",yt="var(--colorCompoundBrandStroke)",Yl="var(--colorCompoundBrandStrokeHover)",mn="var(--colorCompoundBrandStrokePressed)",Ce="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",br="var(--colorTransparentStrokeInteractive)",di="var(--colorStrokeFocus1)",ve="var(--colorStrokeFocus2)",Ql="var(--colorNeutralShadowAmbient)",Zl="var(--colorNeutralShadowKey)",vn="var(--colorPaletteRedBackground1)",Jl="var(--colorPaletteRedBackground2)",$n="var(--colorPaletteRedBackground3)",yn="var(--colorPaletteRedBorder1)",gr="var(--colorPaletteRedBorder2)",fr="var(--colorPaletteRedForeground1)",ec="var(--colorPaletteRedForeground2)",xn="var(--colorPaletteRedForeground3)",kn="var(--colorPaletteGreenBackground1)",wn="var(--colorPaletteGreenBackground3)",tc="var(--colorPaletteGreenBorder1)",oc="var(--colorPaletteGreenBorder2)",ic="var(--colorPaletteGreenForeground1)",rc="var(--colorPaletteGreenForeground2)",sc="var(--colorPaletteGreenForeground3)",Cn="var(--colorPaletteDarkOrangeBackground1)",In="var(--colorPaletteDarkOrangeBackground3)",Sn="var(--colorPaletteDarkOrangeBorder1)",nc="var(--colorPaletteDarkOrangeForeground1)",Pn="var(--colorPaletteDarkOrangeForeground3)",ac="var(--colorPaletteYellowBackground1)",lc="var(--colorPaletteYellowBackground3)",cc="var(--colorPaletteYellowBorder1)",mr="var(--colorPaletteYellowForeground2)",zn="var(--colorPaletteMarigoldBackground2)",dc="var(--colorPaletteMarigoldBorderActive)",hc="var(--colorPaletteMarigoldForeground2)",uc="var(--colorPaletteAnchorBackground2)",pc="var(--colorPaletteAnchorForeground2)",bc="var(--colorPaletteBeigeBackground2)",gc="var(--colorPaletteBeigeForeground2)",fc="var(--colorPaletteBlueBackground2)",mc="var(--colorPaletteBlueForeground2)",vc="var(--colorPaletteBrassBackground2)",$c="var(--colorPaletteBrassForeground2)",yc="var(--colorPaletteBrownBackground2)",xc="var(--colorPaletteBrownForeground2)",kc="var(--colorPaletteCornflowerBackground2)",wc="var(--colorPaletteCornflowerForeground2)",Cc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Sc="var(--colorPaletteDarkGreenBackground2)",Pc="var(--colorPaletteDarkGreenForeground2)",zc="var(--colorPaletteDarkRedBackground2)",Tc="var(--colorPaletteDarkRedForeground2)",Bc="var(--colorPaletteForestBackground2)",Oc="var(--colorPaletteForestForeground2)",Ac="var(--colorPaletteGoldBackground2)",_c="var(--colorPaletteGoldForeground2)",Ec="var(--colorPaletteGrapeBackground2)",Nc="var(--colorPaletteGrapeForeground2)",Fc="var(--colorPaletteLavenderBackground2)",Mc="var(--colorPaletteLavenderForeground2)",Dc="var(--colorPaletteLightTealBackground2)",Hc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",Vc="var(--colorPaletteLilacForeground2)",jc="var(--colorPaletteMagentaBackground2)",Rc="var(--colorPaletteMagentaForeground2)",qc="var(--colorPaletteMinkBackground2)",Wc="var(--colorPaletteMinkForeground2)",Gc="var(--colorPaletteNavyBackground2)",Xc="var(--colorPaletteNavyForeground2)",Uc="var(--colorPalettePeachBackground2)",Kc="var(--colorPalettePeachForeground2)",Yc="var(--colorPalettePinkBackground2)",Qc="var(--colorPalettePinkForeground2)",Zc="var(--colorPalettePlatinumBackground2)",Jc="var(--colorPalettePlatinumForeground2)",ed="var(--colorPalettePlumBackground2)",td="var(--colorPalettePlumForeground2)",od="var(--colorPalettePumpkinBackground2)",id="var(--colorPalettePumpkinForeground2)",rd="var(--colorPalettePurpleBackground2)",sd="var(--colorPalettePurpleForeground2)",nd="var(--colorPaletteRoyalBlueBackground2)",ad="var(--colorPaletteRoyalBlueForeground2)",ld="var(--colorPaletteSeafoamBackground2)",cd="var(--colorPaletteSeafoamForeground2)",dd="var(--colorPaletteSteelBackground2)",hd="var(--colorPaletteSteelForeground2)",ud="var(--colorPaletteTealBackground2)",pd="var(--colorPaletteTealForeground2)",hi="var(--borderRadiusNone)",Be="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",Tn="var(--borderRadiusLarge)",Bn="var(--borderRadiusXLarge)",$e="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",bd="var(--fontFamilyMonospace)",gd="var(--fontFamilyNumeric)",Co="var(--fontSizeBase100)",F="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",ui="var(--fontSizeBase600)",On="var(--fontSizeHero700)",An="var(--fontSizeHero800)",_n="var(--fontSizeHero900)",En="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",fd="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",pi="var(--fontWeightBold)",bi="var(--lineHeightBase100)",R="var(--lineHeightBase200)",_="var(--lineHeightBase300)",ye="var(--lineHeightBase400)",gi="var(--lineHeightBase500)",Nn="var(--lineHeightBase600)",Fn="var(--lineHeightHero700)",Mn="var(--lineHeightHero800)",Dn="var(--lineHeightHero900)",Hn="var(--lineHeightHero1000)",vr="var(--shadow2)",fi="var(--shadow4)",md="var(--shadow8)",$r="var(--shadow16)",vd="var(--shadow28)",Ln="var(--shadow64)",T="var(--strokeWidthThin)",pe="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",yr="var(--strokeWidthThickest)",q="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Oe="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",$d="var(--spacingHorizontalL)",yd="var(--spacingHorizontalXL)",xr="var(--spacingHorizontalXXL)",kr="var(--spacingVerticalNone)",qt="var(--spacingVerticalXXS)",Wt="var(--spacingVerticalXS)",Ve="var(--spacingVerticalSNudge)",H="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",xd="var(--spacingVerticalM)",mi="var(--spacingVerticalL)",xt="var(--spacingVerticalXXL)",kd="var(--spacingVerticalXXXL)",wr="var(--durationUltraFast)",vi="var(--durationFaster)",$i="var(--durationNormal)",Cr="var(--durationGentle)",Vn="var(--durationSlow)",jn="var(--durationSlower)",yi="var(--durationUltraSlow)",wd="var(--curveAccelerateMax)",kt="var(--curveAccelerateMid)",Cd="var(--curveAccelerateMin)",Ir="var(--curveDecelerateMax)",wt="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Rn="var(--curveEasyEaseMax)",xi="var(--curveEasyEase)",Sr="var(--curveLinear)",Sd=p`
1
+ const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Ho;const ts="fast-kernel";try{if(document.currentScript)Ho=document.currentScript.getAttribute(ts);else{const o=document.getElementsByTagName("script");Ho=o[o.length-1].getAttribute(ts)}}catch{Ho="isolate"}let dt;switch(Ho){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=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)}`;dt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const At=o=>typeof o=="function",Ge=o=>typeof o=="string",Pa=()=>{};var Gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Gi<"u")Gi.globalThis=Gi;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const os={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},os));const ie=globalThis.FAST;if(ie.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ie,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},os))}ie.error===void 0&&Object.assign(ie,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const za=Object.freeze([]);function Xi(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function is(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ht(o){o.prototype.toJSON=Pa}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),rs=o=>o,Ta=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:rs}):{createHTML:rs};let Lo=Object.freeze({createHTML(o){return Ta.createHTML(o)},protect(o,e,t,i){return i}});const Ba=Lo,ut=Object.freeze({get policy(){return Lo},setPolicy(o){if(Lo!==Ba)throw ie.error(1201);Lo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Q=ie.getById(dt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Ui{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class ss{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Ui(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Ui(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Vo=Object.freeze({unknown:void 0,coupled:1}),m=ie.getById(dt.observable,()=>{const o=Q.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw ie.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new ss(d))),f}const n=is();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,ge=l[w];if(ge!==f){l[w]=f;const et=l[this.callback];At(et)&&et.call(l,ge,f),s(l).notify(this.name)}}}class h extends Ui{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Vo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let ge;try{ge=this.expression(l,f)}finally{i=w}return ge}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,ge=s(l),et=w===null?this.first:{};if(et.propertySource=l,et.propertyName=f,et.notifier=ge,ge.subscribe(this,f),w!==null){if(!this.needsRefresh){let es;i=void 0,es=w.propertySource[w.propertyName],i=this,l===es&&(this.needsRefresh=!0)}w.next=et}this.last=et}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ht(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Ge(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function ns(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const as=ie.getById(dt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),_t=Object.freeze({default:{index:0,length:0,get event(){return _t.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return as.get()},setEvent(o){as.set(o)}});class jo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Oa extends jo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Ki(o,e,t=m.isVolatileBinding(o)){return new Oa(o,e,t)}class ls extends jo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ht(ls);function cs(o,e){return new ls(o,e)}let ds;function hs(o){return o.map(e=>e instanceof we?hs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class we{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof we?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(ds),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(hs(this.styles)),this}static setDefaultStrategy(e){ds=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new we(e):e instanceof we?e:new we([e])}}we.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Yi=Xi(),Qi=Object.freeze({getForInstance:Yi.getForInstance,getByType:Yi.getByType,define(o){return Yi.register({type:o}),o}});function Zi(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Ji{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>Zi(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){Zi(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Zi(this,t.controller,t)}}Qi.define(Ji);const Aa=`${Math.random().toString(36).substring(2,8)}`;let _a=0;const us=()=>`--v${Aa}${++_a}`;function ps(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];At(h)?h=new Ji(Ki(h),us()).createCSS(s):h instanceof jo?h=new Ji(h,us()).createCSS(s):Qi.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof we||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const u=(o,...e)=>{const{styles:t,behaviors:i}=ps(o,e),r=new we(t);return i.length?r.withBehaviors(...i):r};class bs{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Ge(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new we(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Qi.define(bs),u.partial=(o,...e)=>{const{styles:t,behaviors:i}=ps(o,e);return new bs(t,i)};const gs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,fs=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ms=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,vs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,$s=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ys=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function xs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ne=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return gs.test(o)},isContentBindingEndMarker(o){return fs.test(o)},isRepeatViewStartMarker(o){return ms.test(o)},isRepeatViewEndMarker(o){return vs.test(o)},isElementBoundaryStartMarker(o){return xs(o)&&$s.test(o.data.trim())},isElementBoundaryEndMarker(o){return xs(o)&&ys.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Cs(gs,o)},parseContentBindingEndMarker(o){return Cs(fs,o)},parseRepeatStartMarker(o){return ks(ms,o)},parseRepeatEndMarker(o){return ks(vs,o)},parseElementBoundaryStartMarker(o){return ws($s,o.trim())},parseElementBoundaryEndMarker(o){return ws(ys,o)}});function ks(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function ws(o,e){const t=o.exec(e);return t===null?t:t[1]}function Cs(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ro=Symbol.for("fe-hydration");function qo(o){return o[Ro]===Ro}const er=`fast-${Math.random().toString(36).substring(2,8)}`,Wo=`${er}{`,lo=`}${er}`,Ea=lo.length;let Na=0;const co=()=>`${er}-${++Na}`,Is=Object.freeze({interpolation:o=>`${Wo}${o}${lo}`,attribute:o=>`${co()}="${Wo}${o}${lo}"`,comment:o=>`<!--${Wo}${o}${lo}-->`}),Go=Object.freeze({parse(o,e){const t=o.split(Wo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(lo);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Ea)}h!==""&&i.push(h)}return i}}),tr=Xi(),Fe=Object.freeze({getForInstance:tr.getForInstance,getByType:tr.getByType,define(o,e){return e=e||{},e.type=o,tr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Y.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=e,o.aspectType=Y.attribute;break}}});class or{constructor(e){this.options=e}createHTML(e){return Is.attribute(e(this))}createBehavior(){return this}}ht(or);class Ss extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function ir(o){return o.nodeType===Node.COMMENT_NODE}function Ps(o){return o.nodeType===Node.TEXT_NODE}function zs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ir(e)||Ps(e)?e.data.length:e.childNodes.length),t}function Fa(o){return o instanceof DocumentFragment&&"mode"in o}function Ma(o,e,t){const i=zs(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Da(h,t,n);break}case Node.COMMENT_NODE:{Ha(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function Da(o,e,t){const i=Ne.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new Ss(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);Xo(e[r],o,t)}o.removeAttribute(Ne.attributeMarkerName)}}function Ha(o,e,t,i,r){if(Ne.isElementBoundaryStartMarker(o)){La(o,e);return}if(Ne.isContentBindingStartMarker(o.data)){const s=Ne.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ir(l)){const w=Ne.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Fa(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Ps(d[0]))Xo(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Xo(h,w,i)}}}function La(o,e){const t=Ne.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(ir(i)){const r=Ne.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Xo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Ts;function rr(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class Bs{constructor(){this.index=0,this.length=0}get event(){return _t.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}}class Uo extends Bs{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){rr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){rr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ht(Uo),m.defineProperty(Uo.prototype,"index"),m.defineProperty(Uo.prototype,"length");const Et={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Va extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class ja extends Bs{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Ts]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Vo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Et.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==Et.hydrated&&(this._hydrationStage=Et.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Ma(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ss){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Xo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new Va(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,zs(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=Et.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){rr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Ts=Ro,ht(ja);function Ra(o){return o.create!==void 0}function qa(o,e,t,i){if(t==null&&(t=""),Ra(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(qo(i)&&qo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Et.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Wa(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ga={[Y.attribute]:ut.setAttribute,[Y.booleanAttribute]:ut.setBooleanAttribute,[Y.property]:(o,e,t)=>o[e]=t,[Y.content]:qa,[Y.tokenList]:Wa,[Y.event]:()=>{}};class Nt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Y.content}createHTML(e){return Is.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ga[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ie.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=qo(e)&&e.hydrationStage&&e.hydrationStage!==Et.hydrated;switch(this.aspectType){case Y.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Y.attribute||this.aspectType===Y.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){_t.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);_t.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Fe.define(Nt,{aspected:!0});const Os=(o,e)=>`${o}.${e}`,As={},Me={index:0,node:null};function _s(o){o.startsWith("fast-")||ie.warn(1204,{name:o})}const Xa=new Proxy(document.createElement("div"),{get(o,e){_s(e);const t=Reflect.get(o,e);return At(t)?t.bind(o):t},set(o,e,t){return _s(e),Reflect.set(o,e,t)}});class Ua{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:co(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=As[t];if(!s){const n=`_${t}`;As[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Xa;for(const r of this.nodeIds)i[r];return new Uo(t,this.factories,i)}}function Es(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Go.parse(f,c);let ge=null;w===null?s&&(ge=new Nt(cs(()=>f,o.policy)),Fe.assignAspect(ge,l.name)):ge=sr.aggregate(w,o.policy),ge!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(ge,e,i,r,t.tagName))}}function Ka(o,e,t,i,r){const s=Go.parse(e.textContent,o.directives);if(s===null)return Me.node=e.nextSibling,Me.index=r+1,Me;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=Os(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ge(l)?n.textContent=l:(n.textContent=" ",Fe.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return Me.index=r+1,Me.node=c.nextSibling,Me}function Ns(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Ya(o,t,r,i);r=s.node,i=s.index}}function Ya(o,e,t,i){const r=Os(e,i);switch(t.nodeType){case 1:Es(o,e,t,r,i),Ns(o,t,r);break;case 3:return Ka(o,t,e,r,i);case 8:const s=Go.parse(t.data,o.directives);s!==null&&o.addFactory(sr.aggregate(s),e,r,i,null);break}return Me.index=i+1,Me.node=t.nextSibling,Me}function Qa(o,e){return o&&o.nodeType==8&&Go.parse(o.data,e)!==null}const Fs="TEMPLATE",sr={compile(o,e,t=ut.policy){let i;if(Ge(o)){i=document.createElement(Fs),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Fs&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Ua(r,e,t);return Es(s,"",i,"h",0,!0),(Qa(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Ns(s,r,"r"),Me.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ut.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>Ge(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Nt(Ki(c,r??e,i));return Fe.assignAspect(h,t),h}},Za=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Ja=Object.create(null);class pt{constructor(e,t=Ja){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}pt.empty=new pt(""),Fe.define(pt);function el(o,e,t,i=Fe.getForInstance(o)){if(i.aspected){const r=Za.exec(e);r!==null&&Fe.assignAspect(o,r[2])}return o.createHTML(t)}class Ri{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=sr.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new pt(Ge(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ie.error(1208);if(this.policy)throw ie.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=co();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,At(l))l=new Nt(Ki(l));else if(l instanceof jo)l=new Nt(l);else if(!(f=Fe.getForInstance(l))){const w=l;l=new Nt(cs(()=>w))}r+=el(l,d,n,f)}return new Ri(r+e[e.length-1],s,i)}}ht(Ri);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Ri.create(o,e);throw ie.error(1206)};b.partial=o=>new pt(o);class Ms extends or{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Fe.define(Ms);const M=o=>new Ms(o),tl=o=>o.nodeType===1,Ft=o=>o?e=>e.nodeType===1&&e.matches(o):tl;class ol extends or{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,za),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Ds="slotchange";class Hs extends ol{observe(e){e.addEventListener(Ds,this)}disconnect(e){e.removeEventListener(Ds,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Fe.define(Hs);function V(o){return Ge(o)&&(o={property:o}),new Hs(o)}const Ls="boolean",Vs="reflect",Ko=Object.freeze({locate:is()}),il={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function js(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=js(o);return e&&e.toString()},fromView:js};class qi{constructor(e,t,i=t.toLowerCase(),r=Vs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Ls&&s===void 0&&(this.converter=il)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||Q.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Vs:const s=this.converter;ut.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case Ls:ut.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Ko.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Ge(d)?i.push(new qi(e,d)):i.push(new qi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Ko.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Rs={mode:"open"},qs={},Ws=new Set,Yo=ie.getById(dt.elementRegistry,()=>Xi());class Ee{constructor(e,t=e.definition){var i;this.platformDefined=!1,Ge(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,s=qi.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Rs:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Rs),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?qs:Object.assign(Object.assign({},qs),t.elementOptions),this.styles=we.normalize(t.styles),Yo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Ws.has(e)||Yo.getByType(e)?new Ee(class extends e{},t):new Ee(e,t)}static registerBaseType(e){Ws.add(e)}}Ee.getByType=Yo.getByType,Ee.getForInstance=Yo.getForInstance;class rl extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:_t.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:co(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:co(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ut.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const sl={bubbles:!0,composed:!0,cancelable:!0},Qo="isConnected",Gs=new WeakMap;function ho(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Gs.get(o))!==null&&t!==void 0?t:null}let Xs;class Mt extends ss{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Gs.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Qo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:_t.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=ho(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=ho(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),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,Qo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Qo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},sl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=ho(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Vo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Ee.getForInstance(e);if(i===void 0)throw ie.error(1401);return e.$fastController=new Xs(e,i)}static setStrategy(e){Xs=e}}ht(Mt),Mt.setStrategy(Mt);function Zo(o){var e;return"adoptedStyleSheets"in o?o:(e=ho(o))!==null&&e!==void 0?e:o.getRootNode()}class Wi{constructor(e){const t=Wi.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){Ks(Zo(e),this.sheets)}removeStylesFrom(e){Ys(Zo(e),this.sheets)}}Wi.styleSheetCache=new Map;let nl=0;const al=()=>`fast-${++nl}`;function Us(o){return o===document?document.body:o}class ll{constructor(e){this.styles=e,this.styleClass=al()}addStylesTo(e){e=Us(Zo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Us(Zo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let Ks=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Ys=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(we.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ks=(o,e)=>{o.adoptedStyleSheets.push(...e)},Ys=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}we.setDefaultStrategy(Wi)}else we.setDefaultStrategy(ll);const Qs="defer-hydration",Zs="needs-hydration";class Ot extends Mt{static hydrationObserverHandler(e){for(const t of e)Ot.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(Zs)!==null),this.source.hasAttribute(Qs)){Ot.hydrationObserver.observe(this.source,{attributeFilter:[Qs]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=ho(i))!==null&&e!==void 0?e:i;if(this.template)if(qo(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(Ne.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Ne.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(Zs),this.needsInitialization=this.needsHydration=!1,m.notify(this,Qo)}disconnect(){super.disconnect(),Ot.hydrationObserver.unobserve(this.source)}static install(){Mt.setStrategy(Ot)}}Ot.hydrationObserver=new rl(Ot.hydrationObserverHandler);function Js(o){const e=class extends o{constructor(){super(),Mt.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Ee.registerBaseType(e),e}function cl(o,e){return At(o)?Ee.compose(o,e):Ee.compose(this,o)}function dl(o,e){return At(o)?Ee.compose(o,e).define().type:Ee.compose(this,o).define().type}function hl(o){return Js(o)}const $=Object.assign(Js(HTMLElement),{from:hl,define:dl,compose:cl});var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?pl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ul(e,t,r),r};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const nr={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},fe={horizontal:"horizontal",vertical:"vertical"};function bl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function ar(...o){return o.every(e=>e instanceof HTMLElement)}const uo="ArrowDown",po="ArrowLeft",bo="ArrowRight",go="ArrowUp",fo="End",mo="Enter",gl="Escape",vo="Home",Jo=" ",fl="Tab";var De;(function(o){o.ltr="ltr",o.rtl="rtl"})(De||(De={}));function ml(o,e,t){return t<o?e:t>e?o:t}function lr(o,e,t){return Math.min(Math.max(t,o),e)}let vl=0;function Dt(o=""){return`${o}${vl++}`}const ei=o=>o.closest("[dir]")?.dir==="rtl"?De.rtl:De.ltr;function he(o){return o?typeof o=="string"?new pt(o):"inline"in o?o.inline():o:pt.empty}const en=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,$l=":host([hidden]){display:none}";function k(o){return`${$l}:host{display:${o}}`}class yl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Do extends yl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Do(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const X=Do.with(window.matchMedia("(forced-colors)"));Do.with(window.matchMedia("(prefers-color-scheme: dark)")),Do.with(window.matchMedia("(prefers-color-scheme: light)"));const ti=CSS.supports("anchor-name: --a"),xl="anchor"in HTMLElement.prototype,tn=CSS.supports("selector(:state(g))");class Xe{}function tt(o){return b`<slot name="end" ${M("end")}>${he(o.end)}</slot>`.inline()}function He(o){return b`<slot name="start" ${M("start")}>${he(o.start)}</slot>`.inline()}function Ue(o,...e){const t=Ko.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Ko.locate(i).forEach(s=>t.push(s))})}var kl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?wl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&kl(e,t,r),r};class ot extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Dt("accordion-")}}oi([a({attribute:"heading-level",mode:"fromView",converter:re})],ot.prototype,"headinglevel",2),oi([a({mode:"boolean"})],ot.prototype,"expanded",2),oi([a({mode:"boolean"})],ot.prototype,"disabled",2),oi([a],ot.prototype,"id",2);var Cl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,cr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Il(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Cl(e,t,r),r};class $o extends ot{constructor(){super(...arguments),this.block=!1}}cr([a],$o.prototype,"size",2),cr([a({attribute:"marker-position"})],$o.prototype,"markerPosition",2),cr([a({mode:"boolean"})],$o.prototype,"block",2),Ue($o,Xe);const z="var(--colorNeutralForeground1)",dr="var(--colorNeutralForeground1Hover)",Sl="var(--colorNeutralForeground1Pressed)",Se="var(--colorNeutralForeground2)",Ht="var(--colorNeutralForeground2Hover)",Lt="var(--colorNeutralForeground2Pressed)",ii="var(--colorNeutralForeground2Selected)",ri="var(--colorNeutralForeground2BrandHover)",si="var(--colorNeutralForeground2BrandPressed)",Pl="var(--colorNeutralForeground2BrandSelected)",Z="var(--colorNeutralForeground3)",zl="var(--colorNeutralForeground3Hover)",Tl="var(--colorNeutralForeground3Pressed)",Bl="var(--colorNeutralForeground3Selected)",hr="var(--colorNeutralForeground4)",I="var(--colorNeutralForegroundDisabled)",Ol="var(--colorBrandForegroundLink)",Al="var(--colorBrandForegroundLinkHover)",_l="var(--colorBrandForegroundLinkPressed)",El="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Fl="var(--colorNeutralForeground2LinkPressed)",on="var(--colorCompoundBrandForeground1Hover)",Ml="var(--colorCompoundBrandForeground1Pressed)",Ke="var(--colorNeutralForegroundOnBrand)",bt="var(--colorNeutralForegroundInverted)",Dl="var(--colorNeutralForegroundInvertedHover)",Hl="var(--colorNeutralForegroundInvertedPressed)",rn="var(--colorNeutralForegroundStaticInverted)",ni="var(--colorBrandForeground1)",Ll="var(--colorBrandForeground2)",Vl="var(--colorNeutralForeground1Static)",S="var(--colorNeutralBackground1)",ai="var(--colorNeutralBackground1Hover)",ur="var(--colorNeutralBackground1Pressed)",sn="var(--colorNeutralBackground1Selected)",yo="var(--colorNeutralBackground3)",jl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",xo="var(--colorNeutralBackground6)",nn="var(--colorNeutralBackgroundInverted)",an="var(--colorSubtleBackground)",ko="var(--colorSubtleBackgroundHover)",gt="var(--colorSubtleBackgroundPressed)",ln="var(--colorSubtleBackgroundSelected)",ql="var(--colorSubtleBackgroundLightAlphaHover)",Wl="var(--colorSubtleBackgroundLightAlphaPressed)",Gl="var(--colorSubtleBackgroundLightAlphaSelected)",me="var(--colorTransparentBackground)",li="var(--colorTransparentBackgroundHover)",ci="var(--colorTransparentBackgroundPressed)",cn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",pr="var(--colorBackgroundOverlay)",dn="var(--colorBrandBackground)",hn="var(--colorBrandBackgroundHover)",un="var(--colorBrandBackgroundPressed)",Xl="var(--colorBrandBackgroundSelected)",ft="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",jt="var(--colorCompoundBrandBackgroundPressed)",pn="var(--colorBrandBackgroundStatic)",bn="var(--colorBrandBackground2)",Le="var(--colorNeutralStrokeAccessible)",mt="var(--colorNeutralStrokeAccessibleHover)",vt="var(--colorNeutralStrokeAccessiblePressed)",Ve="var(--colorNeutralStroke1)",Rt="var(--colorNeutralStroke1Hover)",wo="var(--colorNeutralStroke1Pressed)",Co="var(--colorNeutralStroke2)",Ul="var(--colorNeutralStroke3)",Kl="var(--colorNeutralStrokeOnBrand2)",gn="var(--colorBrandStroke1)",fn="var(--colorBrandStroke2)",$t="var(--colorCompoundBrandStroke)",Yl="var(--colorCompoundBrandStrokeHover)",mn="var(--colorCompoundBrandStrokePressed)",Ce="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",br="var(--colorTransparentStrokeInteractive)",di="var(--colorStrokeFocus1)",ve="var(--colorStrokeFocus2)",Ql="var(--colorNeutralShadowAmbient)",Zl="var(--colorNeutralShadowKey)",vn="var(--colorPaletteRedBackground1)",Jl="var(--colorPaletteRedBackground2)",$n="var(--colorPaletteRedBackground3)",yn="var(--colorPaletteRedBorder1)",gr="var(--colorPaletteRedBorder2)",fr="var(--colorPaletteRedForeground1)",ec="var(--colorPaletteRedForeground2)",xn="var(--colorPaletteRedForeground3)",kn="var(--colorPaletteGreenBackground1)",wn="var(--colorPaletteGreenBackground3)",tc="var(--colorPaletteGreenBorder1)",oc="var(--colorPaletteGreenBorder2)",ic="var(--colorPaletteGreenForeground1)",rc="var(--colorPaletteGreenForeground2)",sc="var(--colorPaletteGreenForeground3)",Cn="var(--colorPaletteDarkOrangeBackground1)",In="var(--colorPaletteDarkOrangeBackground3)",Sn="var(--colorPaletteDarkOrangeBorder1)",nc="var(--colorPaletteDarkOrangeForeground1)",Pn="var(--colorPaletteDarkOrangeForeground3)",ac="var(--colorPaletteYellowBackground1)",lc="var(--colorPaletteYellowBackground3)",cc="var(--colorPaletteYellowBorder1)",mr="var(--colorPaletteYellowForeground2)",zn="var(--colorPaletteMarigoldBackground2)",dc="var(--colorPaletteMarigoldBorderActive)",hc="var(--colorPaletteMarigoldForeground2)",uc="var(--colorPaletteAnchorBackground2)",pc="var(--colorPaletteAnchorForeground2)",bc="var(--colorPaletteBeigeBackground2)",gc="var(--colorPaletteBeigeForeground2)",fc="var(--colorPaletteBlueBackground2)",mc="var(--colorPaletteBlueForeground2)",vc="var(--colorPaletteBrassBackground2)",$c="var(--colorPaletteBrassForeground2)",yc="var(--colorPaletteBrownBackground2)",xc="var(--colorPaletteBrownForeground2)",kc="var(--colorPaletteCornflowerBackground2)",wc="var(--colorPaletteCornflowerForeground2)",Cc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Sc="var(--colorPaletteDarkGreenBackground2)",Pc="var(--colorPaletteDarkGreenForeground2)",zc="var(--colorPaletteDarkRedBackground2)",Tc="var(--colorPaletteDarkRedForeground2)",Bc="var(--colorPaletteForestBackground2)",Oc="var(--colorPaletteForestForeground2)",Ac="var(--colorPaletteGoldBackground2)",_c="var(--colorPaletteGoldForeground2)",Ec="var(--colorPaletteGrapeBackground2)",Nc="var(--colorPaletteGrapeForeground2)",Fc="var(--colorPaletteLavenderBackground2)",Mc="var(--colorPaletteLavenderForeground2)",Dc="var(--colorPaletteLightTealBackground2)",Hc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",Vc="var(--colorPaletteLilacForeground2)",jc="var(--colorPaletteMagentaBackground2)",Rc="var(--colorPaletteMagentaForeground2)",qc="var(--colorPaletteMinkBackground2)",Wc="var(--colorPaletteMinkForeground2)",Gc="var(--colorPaletteNavyBackground2)",Xc="var(--colorPaletteNavyForeground2)",Uc="var(--colorPalettePeachBackground2)",Kc="var(--colorPalettePeachForeground2)",Yc="var(--colorPalettePinkBackground2)",Qc="var(--colorPalettePinkForeground2)",Zc="var(--colorPalettePlatinumBackground2)",Jc="var(--colorPalettePlatinumForeground2)",ed="var(--colorPalettePlumBackground2)",td="var(--colorPalettePlumForeground2)",od="var(--colorPalettePumpkinBackground2)",id="var(--colorPalettePumpkinForeground2)",rd="var(--colorPalettePurpleBackground2)",sd="var(--colorPalettePurpleForeground2)",nd="var(--colorPaletteRoyalBlueBackground2)",ad="var(--colorPaletteRoyalBlueForeground2)",ld="var(--colorPaletteSeafoamBackground2)",cd="var(--colorPaletteSeafoamForeground2)",dd="var(--colorPaletteSteelBackground2)",hd="var(--colorPaletteSteelForeground2)",ud="var(--colorPaletteTealBackground2)",pd="var(--colorPaletteTealForeground2)",hi="var(--borderRadiusNone)",Be="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",Tn="var(--borderRadiusLarge)",Bn="var(--borderRadiusXLarge)",$e="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",bd="var(--fontFamilyMonospace)",gd="var(--fontFamilyNumeric)",Io="var(--fontSizeBase100)",N="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",qt="var(--fontSizeBase500)",ui="var(--fontSizeBase600)",On="var(--fontSizeHero700)",An="var(--fontSizeHero800)",_n="var(--fontSizeHero900)",En="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",fd="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",pi="var(--fontWeightBold)",bi="var(--lineHeightBase100)",q="var(--lineHeightBase200)",_="var(--lineHeightBase300)",ye="var(--lineHeightBase400)",gi="var(--lineHeightBase500)",Nn="var(--lineHeightBase600)",Fn="var(--lineHeightHero700)",Mn="var(--lineHeightHero800)",Dn="var(--lineHeightHero900)",Hn="var(--lineHeightHero1000)",vr="var(--shadow2)",fi="var(--shadow4)",md="var(--shadow8)",$r="var(--shadow16)",vd="var(--shadow28)",Ln="var(--shadow64)",T="var(--strokeWidthThin)",pe="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",yr="var(--strokeWidthThickest)",W="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Oe="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",$d="var(--spacingHorizontalL)",yd="var(--spacingHorizontalXL)",xr="var(--spacingHorizontalXXL)",kr="var(--spacingVerticalNone)",Wt="var(--spacingVerticalXXS)",Gt="var(--spacingVerticalXS)",je="var(--spacingVerticalSNudge)",H="var(--spacingVerticalS)",Xt="var(--spacingVerticalMNudge)",xd="var(--spacingVerticalM)",mi="var(--spacingVerticalL)",yt="var(--spacingVerticalXXL)",kd="var(--spacingVerticalXXXL)",wr="var(--durationUltraFast)",vi="var(--durationFaster)",$i="var(--durationNormal)",Cr="var(--durationGentle)",Vn="var(--durationSlow)",jn="var(--durationSlower)",yi="var(--durationUltraSlow)",wd="var(--curveAccelerateMax)",xt="var(--curveAccelerateMid)",Cd="var(--curveAccelerateMin)",Ir="var(--curveDecelerateMax)",kt="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Rn="var(--curveEasyEaseMax)",xi="var(--curveEasyEase)",Sr="var(--curveLinear)",Sd=u`
2
2
  ${k("block")}
3
3
 
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${le} ${ae};border-radius:${C};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${me};border:none;box-sizing:border-box;color:${z};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:${Be}}: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:${Oe};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${le}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Oe};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Be};outline:none;border:2px solid ${di};box-shadow:inset 0 0 0 1px ${ve}}:host([disabled]) .button{color:${I}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${_}}:host([size='small']) .heading{font-size:${F};line-height:${R}}:host([size='large']) .heading{font-size:${ue};line-height:${ye}}:host([size='extra-large']) .heading{font-size:${Rt};line-height:${gi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Oe};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${le}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ae} ${le}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Pd=b.partial(`<svg
4
+ :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${le} ${ae};border-radius:${C};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${me};border:none;box-sizing:border-box;color:${z};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:${Be}}: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:${Oe};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${le}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Oe};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Be};outline:none;border:2px solid ${di};box-shadow:inset 0 0 0 1px ${ve}}:host([disabled]) .button{color:${I}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${_}}:host([size='small']) .heading{font-size:${N};line-height:${q}}:host([size='large']) .heading{font-size:${ue};line-height:${ye}}:host([size='extra-large']) .heading{font-size:${qt};line-height:${gi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Oe};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${le}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ae} ${le}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Pd=b.partial(`<svg
5
5
  width="20"
6
6
  height="20"
7
7
  viewBox="0 0 20 20"
@@ -27,22 +27,22 @@ 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 Td(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${G("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${De(o)}<slot name="marker-expanded">${he(o.expandedIcon)}</slot><slot name="marker-collapsed">${he(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Bd=Td({collapsedIcon:Pd,expandedIcon:zd}),Od=vo.compose({name:`${u.prefix}-accordion-item`,template:Bd,styles:Sd});Od.define(u.registry);const Pr={single:"single",multi:"multi"};var Ad=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,qn=(o,e,t,i)=>{for(var r=i>1?void 0:i?_d(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ad(e,t,r),r};class zr extends ${constructor(){super(...arguments),this.expandmode=Pr.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof it&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Pr.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof it&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Pr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{i instanceof it&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}qn([a({attribute:"expand-mode"})],zr.prototype,"expandmode",2),qn([g],zr.prototype,"slottedAccordionItems",2);const Ed=p`
30
+ </svg>`);function Td(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${M("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${He(o)}<slot name="marker-expanded">${he(o.expandedIcon)}</slot><slot name="marker-collapsed">${he(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Bd=Td({collapsedIcon:Pd,expandedIcon:zd}),Od=$o.compose({name:`${p.prefix}-accordion-item`,template:Bd,styles:Sd});Od.define(p.registry);const Pr={single:"single",multi:"multi"};var Ad=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,qn=(o,e,t,i)=>{for(var r=i>1?void 0:i?_d(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ad(e,t,r),r};class zr extends ${constructor(){super(...arguments),this.expandmode=Pr.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof ot&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Pr.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof ot&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Pr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{i instanceof ot&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}qn([a({attribute:"expand-mode"})],zr.prototype,"expandmode",2),qn([g],zr.prototype,"slottedAccordionItems",2);const Ed=u`
31
31
  ${k("flex")}
32
32
 
33
- :host{flex-direction:column;width:100%;contain:content}`;function Nd(){return b`<template><slot ${N({property:"slottedAccordionItems",filter:tt()})}></slot></template>`}const Fd=Nd(),Md=zr.compose({name:`${u.prefix}-accordion`,template:Fd,styles:Ed});Md.define(u.registry);const Wn=new Map;function P(o){return Wn.get(o)??Wn.set(o,tn?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!tn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Tr=new WeakMap;function Gn(o,e){if(!o||!e)return!1;if(Tr.has(o))return Tr.get(o).has(e);const t=new Set(Object.values(o));return Tr.set(o,t),t.has(e)}function Ct(o,e="",t="",i,r=""){y(o,`${r}${e}`,!1),(!i||Gn(i,t))&&y(o,`${r}${t}`,!0)}const Dd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Hd={circular:"circular",rounded:"rounded",square:"square"},Ld={small:"small",medium:"medium",large:"large"},ki={submit:"submit",reset:"reset",button:"button"},Vd=Dd,jd=Hd,Rd=Ld,qd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Wd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,st=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Wd(e,t,r),r};class je extends ${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(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in qd){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===fo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}st([a],je.prototype,"download",2),st([a],je.prototype,"href",2),st([a],je.prototype,"hreflang",2),st([a],je.prototype,"ping",2),st([a],je.prototype,"referrerpolicy",2),st([a],je.prototype,"rel",2),st([a],je.prototype,"target",2),st([a],je.prototype,"type",2);var Xd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,wi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ud(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Xd(e,t,r),r};class Xt extends je{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Ct(this.elementInternals,e,t,Vd)}shapeChanged(e,t){Ct(this.elementInternals,e,t,jd)}sizeChanged(e,t){Ct(this.elementInternals,e,t,Rd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}wi([a],Xt.prototype,"appearance",2),wi([a],Xt.prototype,"shape",2),wi([a],Xt.prototype,"size",2),wi([a({attribute:"icon-only",mode:"boolean"})],Xt.prototype,"iconOnly",2),Xe(Xt,Ge);const Xn=p`
33
+ :host{flex-direction:column;width:100%;contain:content}`;function Nd(){return b`<template><slot ${V({property:"slottedAccordionItems",filter:Ft()})}></slot></template>`}const Fd=Nd(),Md=zr.compose({name:`${p.prefix}-accordion`,template:Fd,styles:Ed});Md.define(p.registry);const Wn=new Map;function P(o){return Wn.get(o)??Wn.set(o,tn?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!tn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Tr=new WeakMap;function Gn(o,e){if(!o||!e)return!1;if(Tr.has(o))return Tr.get(o).has(e);const t=new Set(Object.values(o));return Tr.set(o,t),t.has(e)}function wt(o,e="",t="",i,r=""){y(o,`${r}${e}`,!1),(!i||Gn(i,t))&&y(o,`${r}${t}`,!0)}const Dd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Hd={circular:"circular",rounded:"rounded",square:"square"},Ld={small:"small",medium:"medium",large:"large"},ki={submit:"submit",reset:"reset",button:"button"},Vd=Dd,jd=Hd,Rd=Ld,qd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Wd=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,rt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Wd(e,t,r),r};class Re extends ${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(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in qd){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===mo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}rt([a],Re.prototype,"download",2),rt([a],Re.prototype,"href",2),rt([a],Re.prototype,"hreflang",2),rt([a],Re.prototype,"ping",2),rt([a],Re.prototype,"referrerpolicy",2),rt([a],Re.prototype,"rel",2),rt([a],Re.prototype,"target",2),rt([a],Re.prototype,"type",2);var Xd=Object.defineProperty,Ud=Object.getOwnPropertyDescriptor,wi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ud(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Xd(e,t,r),r};class Ut extends Re{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){wt(this.elementInternals,e,t,Vd)}shapeChanged(e,t){wt(this.elementInternals,e,t,jd)}sizeChanged(e,t){wt(this.elementInternals,e,t,Rd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}wi([a],Ut.prototype,"appearance",2),wi([a],Ut.prototype,"shape",2),wi([a],Ut.prototype,"size",2),wi([a({attribute:"icon-only",mode:"boolean"})],Ut.prototype,"iconOnly",2),Ue(Ut,Xe);const Xn=u`
34
34
  ${k("inline-flex")}
35
35
 
36
- :host{--icon-spacing:${ee};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:${S};color:${z};border:${T} solid ${Le};padding:0 ${le};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${D};line-height:${_};transition-duration:${vi};transition-property:background,border,color;transition-timing-function:${xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ai};color:${dr};border-color:${jt}}:host(:hover:active){background-color:${ur};border-color:${ko};color:${Sl};outline-style:none}:host(:focus-visible){border-color:${J};outline:${pe} solid ${J};box-shadow:${fi},0 0 0 2px ${ve}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ne};min-height:24px;min-width:64px;padding:0 ${Oe};border-radius:${Be};font-size:${F};line-height:${R};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Tn};padding:0 ${$d};font-size:${ue};line-height:${ye}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${$e}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${hi}}:host([appearance='primary']){background-color:${dn};color:${Ue};border-color:transparent}:host([appearance='primary']:hover){background-color:${hn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ue}}:host([appearance='primary']:hover:active){background-color:${un}}:host([appearance='primary']:focus-visible){border-color:${Ue};box-shadow:${vr},0 0 0 2px ${ve}}:host([appearance='outline']){background-color:${me}}:host([appearance='outline']:hover){background-color:${li}}:host([appearance='outline']:hover:active){background-color:${ci}}:host([appearance='subtle']){background-color:${an};color:${Se};border-color:transparent}:host([appearance='subtle']:hover){background-color:${xo};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${ft};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ri}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${si}}:host([appearance='transparent']){background-color:${me};color:${Se}}:host([appearance='transparent']:hover){background-color:${li};color:${ri}}:host([appearance='transparent']:hover:active){background-color:${ci};color:${si}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Ci=p`
36
+ :host{--icon-spacing:${ee};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:${S};color:${z};border:${T} solid ${Ve};padding:0 ${le};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${D};line-height:${_};transition-duration:${vi};transition-property:background,border,color;transition-timing-function:${xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ai};color:${dr};border-color:${Rt}}:host(:hover:active){background-color:${ur};border-color:${wo};color:${Sl};outline-style:none}:host(:focus-visible){border-color:${J};outline:${pe} solid ${J};box-shadow:${fi},0 0 0 2px ${ve}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ne};min-height:24px;min-width:64px;padding:0 ${Oe};border-radius:${Be};font-size:${N};line-height:${q};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Tn};padding:0 ${$d};font-size:${ue};line-height:${ye}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${$e}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${hi}}:host([appearance='primary']){background-color:${dn};color:${Ke};border-color:transparent}:host([appearance='primary']:hover){background-color:${hn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ke}}:host([appearance='primary']:hover:active){background-color:${un}}:host([appearance='primary']:focus-visible){border-color:${Ke};box-shadow:${vr},0 0 0 2px ${ve}}:host([appearance='outline']){background-color:${me}}:host([appearance='outline']:hover){background-color:${li}}:host([appearance='outline']:hover:active){background-color:${ci}}:host([appearance='subtle']){background-color:${an};color:${Se};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ko};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${gt};color:${Lt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ri}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${si}}:host([appearance='transparent']){background-color:${me};color:${Se}}:host([appearance='transparent']:hover){background-color:${li};color:${ri}}:host([appearance='transparent']:hover:active){background-color:${ci};color:${si}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Ci=u`
37
37
  ${Xn}
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:${rt};border-color:${Ce};color:${I};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${me}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${me};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${me}}`.withBehaviors(X(p`
40
- :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),Kd=p`
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:${it};border-color:${Ce};color:${I};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${me}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${me};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${me}}`.withBehaviors(X(u`
40
+ :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),Kd=u`
41
41
  ${Xn}
42
42
 
43
- ::slotted(a){position:absolute;inset:0}`.withBehaviors(X(p`
44
- :host{border-color:LinkText;color:LinkText}`));function Yd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${De(o)}<span class="content" part="content"><slot></slot></span>${ot(o)}</template>`}const Qd=Yd(),Zd=Xt.compose({name:`${u.prefix}-anchor-button`,template:Qd,styles:Kd});Zd.define(u.registry);const Jd=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,eh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,th=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,oh=/\s+/g,ih=/[\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 rh(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function sh(o){return o=o.replace(Jd,""),o=o.replace(eh,""),o=o.replace(oh," "),o=o.trim(),o}function nh(o,e,t){return!o||(o=sh(o),ih.test(o)||!t?.allowPhoneInitials&&th.test(o))?"":rh(o,e,t?.firstInitialOnly)}var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,Un=(o,e,t,i)=>{for(var r=i>1?void 0:i?lh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ah(e,t,r),r};class Br extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Un([a],Br.prototype,"name",2),Un([a],Br.prototype,"initials",2);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"},Yn={neutral:"neutral",brand:"brand",colorful:"colorful",...Kn};var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?dh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ch(e,t,r),r};const nt=class Zr extends Br{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??nh(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Yn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Zr.colors[uh(this.name??"")%Zr.colors.length]:this.color??Yn.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};nt.colors=Object.values(Kn),Ut([a],nt.prototype,"active",2),Ut([a],nt.prototype,"shape",2),Ut([a],nt.prototype,"appearance",2),Ut([a({converter:re})],nt.prototype,"size",2),Ut([a],nt.prototype,"color",2),Ut([a({attribute:"color-id"})],nt.prototype,"colorId",2);let hh=nt;const uh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},at={fastOutSlowInMax:Ir,fastOutSlowInMid:wt,fastOutSlowInMin:Id,slowOutFastInMax:wd,slowOutFastInMid:kt,slowOutFastInMin:Cd,fastEase:Rn,normalEase:xi,nullEasing:Sr},ph=p`
45
- ${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${D};font-size:${B};border-radius:${$e};color:${Z};background-color:${yo};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:${$e}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${T}) ${S}}: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 ${pe}) ${S}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Co};font-weight:${A}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${F}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}: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:${Rt}}: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:${ui}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Be}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Tn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Bn}}:host([data-color='brand']){color:${rn};background-color:${pn}}:host([data-color='dark-red']){color:${Tc};background-color:${zc}}:host([data-color='cranberry']){color:${Ic};background-color:${Cc}}:host([data-color='red']){color:${ec};background-color:${Jl}}:host([data-color='pumpkin']){color:${id};background-color:${od}}:host([data-color='peach']){color:${Kc};background-color:${Uc}}:host([data-color='marigold']){color:${hc};background-color:${zn}}:host([data-color='gold']){color:${_c};background-color:${Ac}}:host([data-color='brass']){color:${$c};background-color:${vc}}:host([data-color='brown']){color:${xc};background-color:${yc}}:host([data-color='forest']){color:${Oc};background-color:${Bc}}:host([data-color='seafoam']){color:${cd};background-color:${ld}}:host([data-color='dark-green']){color:${Pc};background-color:${Sc}}:host([data-color='light-teal']){color:${Hc};background-color:${Dc}}:host([data-color='teal']){color:${pd};background-color:${ud}}:host([data-color='steel']){color:${hd};background-color:${dd}}:host([data-color='blue']){color:${mc};background-color:${fc}}:host([data-color='royal-blue']){color:${ad};background-color:${nd}}:host([data-color='cornflower']){color:${wc};background-color:${kc}}:host([data-color='navy']){color:${Xc};background-color:${Gc}}:host([data-color='lavender']){color:${Mc};background-color:${Fc}}:host([data-color='purple']){color:${sd};background-color:${rd}}:host([data-color='grape']){color:${Nc};background-color:${Ec}}:host([data-color='lilac']){color:${Vc};background-color:${Lc}}:host([data-color='pink']){color:${Qc};background-color:${Yc}}:host([data-color='magenta']){color:${Rc};background-color:${jc}}:host([data-color='plum']){color:${td};background-color:${ed}}:host([data-color='beige']){color:${gc};background-color:${bc}}:host([data-color='mink']){color:${Wc};background-color:${qc}}:host([data-color='platinum']){color:${Jc};background-color:${Zc}}:host([data-color='anchor']){color:${pc};background-color:${uc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${at.fastEase},${at.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${yi}),${jn};transition-delay:${at.fastEase}),${at.nullEasing})}:host([active])::before{box-shadow:${md};border-style:solid;border-color:${pn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${pe});border-width:${pe}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}: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 * ${yr});border-width:${yr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${fi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${$r}}: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:${vd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${at.fastOutSlowInMin},${at.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${yi},${jn};transition-delay:${at.fastOutSlowInMin},${at.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}}`,bh=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 gh(){return b`<slot>${o=>o.name||o.initials?o.generateInitials():bh}</slot><slot name="badge"></slot>`}const fh=gh(),mh=hh.compose({name:`${u.prefix}-avatar`,template:fh,styles:ph});mh.define(u.registry);const vh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},$h={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var yh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yh(e,t,r),r};class Kt extends ${constructor(){super(...arguments),this.appearance=vh.filled,this.color=$h.brand}}Ii([a],Kt.prototype,"appearance",2),Ii([a],Kt.prototype,"color",2),Ii([a],Kt.prototype,"shape",2),Ii([a],Kt.prototype,"size",2),Xe(Kt,Ge);const Qn=p.partial`
43
+ ::slotted(a){position:absolute;inset:0}`.withBehaviors(X(u`
44
+ :host{border-color:LinkText;color:LinkText}`));function Yd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${He(o)}<span class="content" part="content"><slot></slot></span>${tt(o)}</template>`}const Qd=Yd(),Zd=Ut.compose({name:`${p.prefix}-anchor-button`,template:Qd,styles:Kd});Zd.define(p.registry);const Jd=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,eh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,th=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,oh=/\s+/g,ih=/[\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 rh(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function sh(o){return o=o.replace(Jd,""),o=o.replace(eh,""),o=o.replace(oh," "),o=o.trim(),o}function nh(o,e,t){return!o||(o=sh(o),ih.test(o)||!t?.allowPhoneInitials&&th.test(o))?"":rh(o,e,t?.firstInitialOnly)}var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,Un=(o,e,t,i)=>{for(var r=i>1?void 0:i?lh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ah(e,t,r),r};class Br extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Un([a],Br.prototype,"name",2),Un([a],Br.prototype,"initials",2);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"},Yn={neutral:"neutral",brand:"brand",colorful:"colorful",...Kn};var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,Kt=(o,e,t,i)=>{for(var r=i>1?void 0:i?dh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ch(e,t,r),r};const st=class Zr extends Br{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??nh(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Yn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?Zr.colors[uh(this.name??"")%Zr.colors.length]:this.color??Yn.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};st.colors=Object.values(Kn),Kt([a],st.prototype,"active",2),Kt([a],st.prototype,"shape",2),Kt([a],st.prototype,"appearance",2),Kt([a({converter:re})],st.prototype,"size",2),Kt([a],st.prototype,"color",2),Kt([a({attribute:"color-id"})],st.prototype,"colorId",2);let hh=st;const uh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},nt={fastOutSlowInMax:Ir,fastOutSlowInMid:kt,fastOutSlowInMin:Id,slowOutFastInMax:wd,slowOutFastInMid:xt,slowOutFastInMin:Cd,fastEase:Rn,normalEase:xi,nullEasing:Sr},ph=u`
45
+ ${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${D};font-size:${B};border-radius:${$e};color:${Z};background-color:${xo};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:${$e}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${T}) ${S}}: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 ${pe}) ${S}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Io};font-weight:${A}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${N}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}: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:${qt}}: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:${ui}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Be}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Tn}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Bn}}:host([data-color='brand']){color:${rn};background-color:${pn}}:host([data-color='dark-red']){color:${Tc};background-color:${zc}}:host([data-color='cranberry']){color:${Ic};background-color:${Cc}}:host([data-color='red']){color:${ec};background-color:${Jl}}:host([data-color='pumpkin']){color:${id};background-color:${od}}:host([data-color='peach']){color:${Kc};background-color:${Uc}}:host([data-color='marigold']){color:${hc};background-color:${zn}}:host([data-color='gold']){color:${_c};background-color:${Ac}}:host([data-color='brass']){color:${$c};background-color:${vc}}:host([data-color='brown']){color:${xc};background-color:${yc}}:host([data-color='forest']){color:${Oc};background-color:${Bc}}:host([data-color='seafoam']){color:${cd};background-color:${ld}}:host([data-color='dark-green']){color:${Pc};background-color:${Sc}}:host([data-color='light-teal']){color:${Hc};background-color:${Dc}}:host([data-color='teal']){color:${pd};background-color:${ud}}:host([data-color='steel']){color:${hd};background-color:${dd}}:host([data-color='blue']){color:${mc};background-color:${fc}}:host([data-color='royal-blue']){color:${ad};background-color:${nd}}:host([data-color='cornflower']){color:${wc};background-color:${kc}}:host([data-color='navy']){color:${Xc};background-color:${Gc}}:host([data-color='lavender']){color:${Mc};background-color:${Fc}}:host([data-color='purple']){color:${sd};background-color:${rd}}:host([data-color='grape']){color:${Nc};background-color:${Ec}}:host([data-color='lilac']){color:${Vc};background-color:${Lc}}:host([data-color='pink']){color:${Qc};background-color:${Yc}}:host([data-color='magenta']){color:${Rc};background-color:${jc}}:host([data-color='plum']){color:${td};background-color:${ed}}:host([data-color='beige']){color:${gc};background-color:${bc}}:host([data-color='mink']){color:${Wc};background-color:${qc}}:host([data-color='platinum']){color:${Jc};background-color:${Zc}}:host([data-color='anchor']){color:${pc};background-color:${uc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${nt.fastEase},${nt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${yi}),${jn};transition-delay:${nt.fastEase}),${nt.nullEasing})}:host([active])::before{box-shadow:${md};border-style:solid;border-color:${pn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${pe});border-width:${pe}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}: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 * ${yr});border-width:${yr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${fi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${$r}}: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:${vd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${nt.fastOutSlowInMin},${nt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${yi},${jn};transition-delay:${nt.fastOutSlowInMin},${nt.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}}`,bh=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 gh(){return b`<slot>${o=>o.name||o.initials?o.generateInitials():bh}</slot><slot name="badge"></slot>`}const fh=gh(),mh=hh.compose({name:`${p.prefix}-avatar`,template:fh,styles:ph});mh.define(p.registry);const vh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},$h={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var yh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yh(e,t,r),r};class Yt extends ${constructor(){super(...arguments),this.appearance=vh.filled,this.color=$h.brand}}Ii([a],Yt.prototype,"appearance",2),Ii([a],Yt.prototype,"color",2),Ii([a],Yt.prototype,"shape",2),Ii([a],Yt.prototype,"size",2),Ue(Yt,Xe);const Qn=u.partial`
46
46
  ${k("inline-flex")} :host {
47
47
  position: relative;
48
48
  box-sizing: border-box;
@@ -50,15 +50,15 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
50
50
  justify-content: center;
51
51
  font-family: ${v};
52
52
  font-weight: ${D};
53
- font-size: ${F};
54
- line-height: ${R};
53
+ font-size: ${N};
54
+ line-height: ${q};
55
55
  min-width: 20px;
56
56
  height: 20px;
57
- padding-inline: calc(${ne} + ${q});
57
+ padding-inline: calc(${ne} + ${W});
58
58
  border-radius: ${$e};
59
59
  border-color: ${J};
60
60
  background-color: ${dn};
61
- color: ${Ue};
61
+ color: ${Ke};
62
62
  contain: content;
63
63
  }
64
64
 
@@ -78,7 +78,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
78
78
  border-color: inherit;
79
79
  border-radius: inherit;
80
80
  }
81
- `,Zn=p.partial`
81
+ `,Zn=u.partial`
82
82
  :host([size='tiny']) {
83
83
  width: 6px;
84
84
  height: 6px;
@@ -104,9 +104,9 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
104
104
  :host([size='small']) {
105
105
  min-width: 16px;
106
106
  height: 16px;
107
- font-size: ${Co};
107
+ font-size: ${Io};
108
108
  line-height: ${bi};
109
- padding-inline: calc(${q} + ${q});
109
+ padding-inline: calc(${W} + ${W});
110
110
  }
111
111
  :host([size='small']) ::slotted(svg) {
112
112
  font-size: 12px;
@@ -114,9 +114,9 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
114
114
  :host([size='large']) {
115
115
  min-width: 24px;
116
116
  height: 24px;
117
- font-size: ${F};
118
- line-height: ${R};
119
- padding-inline: calc(${ne} + ${q});
117
+ font-size: ${N};
118
+ line-height: ${q};
119
+ padding-inline: calc(${ne} + ${W});
120
120
  }
121
121
  :host([size='large']) ::slotted(svg) {
122
122
  font-size: 16px;
@@ -124,17 +124,17 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
124
124
  :host([size='extra-large']) {
125
125
  min-width: 32px;
126
126
  height: 32px;
127
- font-size: ${F};
128
- line-height: ${R};
129
- padding-inline: calc(${ee} + ${q});
127
+ font-size: ${N};
128
+ line-height: ${q};
129
+ padding-inline: calc(${ee} + ${W});
130
130
  }
131
131
  :host([size='extra-large']) ::slotted(svg) {
132
132
  font-size: 20px;
133
133
  }
134
- `,Jn=p.partial`
134
+ `,Jn=u.partial`
135
135
  :host([color='danger']) {
136
136
  background-color: ${$n};
137
- color: ${Ue};
137
+ color: ${Ke};
138
138
  }
139
139
 
140
140
  :host([color='important']) {
@@ -149,7 +149,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
149
149
 
150
150
  :host([color='severe']) {
151
151
  background-color: ${In};
152
- color: ${Ue};
152
+ color: ${Ke};
153
153
  }
154
154
 
155
155
  :host([color='subtle']) {
@@ -159,14 +159,14 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
159
159
 
160
160
  :host([color='success']) {
161
161
  background-color: ${wn};
162
- color: ${Ue};
162
+ color: ${Ke};
163
163
  }
164
164
 
165
165
  :host([color='warning']) {
166
166
  background-color: ${lc};
167
167
  color: ${Vl};
168
168
  }
169
- `,ea=p.partial`
169
+ `,ea=u.partial`
170
170
  :host([appearance='ghost']) {
171
171
  color: ${ni};
172
172
  background-color: initial;
@@ -189,7 +189,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
189
189
  }
190
190
 
191
191
  :host([appearance='ghost'][color='subtle']) {
192
- color: ${gt};
192
+ color: ${bt};
193
193
  }
194
194
 
195
195
  :host([appearance='ghost'][color='success']) {
@@ -199,7 +199,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
199
199
  :host([appearance='ghost'][color='warning']) {
200
200
  color: ${mr};
201
201
  }
202
- `,kh=p.partial`
202
+ `,kh=u.partial`
203
203
  :host([appearance='outline']) {
204
204
  border-color: currentColor;
205
205
  color: ${ni};
@@ -212,12 +212,12 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
212
212
 
213
213
  :host([appearance='outline'][color='important']) {
214
214
  color: ${Z};
215
- border-color: ${He};
215
+ border-color: ${Le};
216
216
  }
217
217
 
218
218
  :host([appearance='outline'][color='informative']) {
219
219
  color: ${Z};
220
- border-color: ${wo};
220
+ border-color: ${Co};
221
221
  }
222
222
 
223
223
  :host([appearance='outline'][color='severe']) {
@@ -235,7 +235,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
235
235
  :host([appearance='outline'][color='warning']) {
236
236
  color: ${mr};
237
237
  }
238
- `,wh=p.partial`
238
+ `,wh=u.partial`
239
239
  :host([appearance='tint']) {
240
240
  background-color: ${bn};
241
241
  color: ${Ll};
@@ -257,7 +257,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
257
257
  :host([appearance='tint'][color='informative']) {
258
258
  background-color: ${jl};
259
259
  color: ${Z};
260
- border-color: ${wo};
260
+ border-color: ${Co};
261
261
  }
262
262
 
263
263
  :host([appearance='tint'][color='severe']) {
@@ -269,7 +269,7 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
269
269
  :host([appearance='tint'][color='subtle']) {
270
270
  background-color: ${S};
271
271
  color: ${Z};
272
- border-color: ${wo};
272
+ border-color: ${Co};
273
273
  }
274
274
 
275
275
  :host([appearance='tint'][color='success']) {
@@ -283,104 +283,104 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
283
283
  color: ${mr};
284
284
  border-color: ${cc};
285
285
  }
286
- `,ta=p.partial`
286
+ `,ta=u.partial`
287
287
  font-family: ${v};
288
288
  font-size: ${B};
289
289
  line-height: ${_};
290
290
  font-weight: ${A};
291
- `;p.partial`
291
+ `;u.partial`
292
292
  font-family: ${v};
293
293
  font-size: ${B};
294
294
  line-height: ${_};
295
295
  font-weight: ${D};
296
- `,p.partial`
296
+ `,u.partial`
297
297
  font-family: ${v};
298
298
  font-size: ${B};
299
299
  line-height: ${_};
300
300
  font-weight: ${pi};
301
- `;const Ch=p.partial`
301
+ `;const Ch=u.partial`
302
302
  font-family: ${v};
303
303
  font-size: ${ue};
304
304
  line-height: ${ye};
305
305
  font-weight: ${A};
306
- `,oa=p.partial`
306
+ `,oa=u.partial`
307
307
  font-family: ${v};
308
- font-size: ${F};
309
- line-height: ${R};
308
+ font-size: ${N};
309
+ line-height: ${q};
310
310
  font-weight: ${A};
311
- `;p.partial`
311
+ `;u.partial`
312
312
  font-family: ${v};
313
- font-size: ${F};
314
- line-height: ${R};
313
+ font-size: ${N};
314
+ line-height: ${q};
315
315
  font-weight: ${D};
316
- `,p.partial`
316
+ `,u.partial`
317
317
  font-family: ${v};
318
- font-size: ${F};
319
- line-height: ${R};
318
+ font-size: ${N};
319
+ line-height: ${q};
320
320
  font-weight: ${pi};
321
- `,p.partial`
321
+ `,u.partial`
322
322
  font-family: ${v};
323
- font-size: ${Co};
323
+ font-size: ${Io};
324
324
  line-height: ${bi};
325
325
  font-weight: ${A};
326
- `,p.partial`
326
+ `,u.partial`
327
327
  font-family: ${v};
328
- font-size: ${Co};
328
+ font-size: ${Io};
329
329
  line-height: ${bi};
330
330
  font-weight: ${D};
331
- `;const Ih=p.partial`
331
+ `;const Ih=u.partial`
332
332
  font-family: ${v};
333
- font-size: ${Rt};
333
+ font-size: ${qt};
334
334
  line-height: ${gi};
335
335
  font-weight: ${D};
336
- `;p.partial`
336
+ `;u.partial`
337
337
  font-family: ${v};
338
338
  font-size: ${ue};
339
339
  line-height: ${ye};
340
340
  font-weight: ${D};
341
- `,p.partial`
341
+ `,u.partial`
342
342
  font-family: ${v};
343
343
  font-size: ${ue};
344
344
  line-height: ${ye};
345
345
  font-weight: ${pi};
346
- `,p.partial`
346
+ `,u.partial`
347
347
  font-family: ${v};
348
348
  font-size: ${An};
349
349
  line-height: ${Mn};
350
350
  font-weight: ${D};
351
- `,p.partial`
351
+ `,u.partial`
352
352
  font-family: ${v};
353
353
  font-size: ${On};
354
354
  line-height: ${Fn};
355
355
  font-weight: ${D};
356
- `,p.partial`
356
+ `,u.partial`
357
357
  font-family: ${v};
358
358
  font-size: ${ui};
359
359
  line-height: ${Nn};
360
360
  font-weight: ${D};
361
- `,p.partial`
361
+ `,u.partial`
362
362
  font-family: ${v};
363
363
  font-size: ${_n};
364
364
  line-height: ${Dn};
365
365
  font-weight: ${D};
366
- `,p.partial`
366
+ `,u.partial`
367
367
  font-family: ${v};
368
368
  font-size: ${En};
369
369
  line-height: ${Hn};
370
370
  font-weight: ${D};
371
- `;const Sh=p`
371
+ `;const Sh=u`
372
372
  :host([shape='square']){border-radius:${hi}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Be}}${wh}
373
373
  ${kh}
374
374
  ${ea}
375
375
  ${Jn}
376
376
  ${Zn}
377
377
  ${Qn}
378
- `.withBehaviors(X(p`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function ia(o={}){return b` ${De(o)}<slot>${he(o.defaultContent)}</slot>${ot(o)} `}const Ph=ia(),zh=Kt.compose({name:`${u.prefix}-badge`,template:Ph,styles:Sh});zh.define(u.registry);var Th=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,Ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Th(e,t,r),r};class be extends ${constructor(){super(),this.disabled=!1,this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.$fastController.isConnected&&(this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0)}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==ki.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.disabledChanged()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===fo||e.key===Jo){this.click();return}return!0}press(){switch(this.type){case ki.reset:{this.resetForm();break}case ki.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ki.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!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)}}}}be.formAssociated=!0,Ie([a({mode:"boolean"})],be.prototype,"autofocus",2),Ie([g],be.prototype,"defaultSlottedContent",2),Ie([a({mode:"boolean"})],be.prototype,"disabled",2),Ie([a({attribute:"disabled-focusable",mode:"boolean"})],be.prototype,"disabledFocusable",2),Ie([a({attribute:"formaction"})],be.prototype,"formAction",2),Ie([a({attribute:"form"})],be.prototype,"formAttribute",2),Ie([a({attribute:"formenctype"})],be.prototype,"formEnctype",2),Ie([a({attribute:"formmethod"})],be.prototype,"formMethod",2),Ie([a({attribute:"formnovalidate",mode:"boolean"})],be.prototype,"formNoValidate",2),Ie([a({attribute:"formtarget"})],be.prototype,"formTarget",2),Ie([a],be.prototype,"name",2),Ie([a],be.prototype,"type",2),Ie([a],be.prototype,"value",2);var Oh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Si=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Oh(e,t,r),r};class Ke extends be{constructor(){super(...arguments),this.iconOnly=!1}}Si([a],Ke.prototype,"appearance",2),Si([a],Ke.prototype,"shape",2),Si([a],Ke.prototype,"size",2),Si([a({attribute:"icon-only",mode:"boolean"})],Ke.prototype,"iconOnly",2),Xe(Ke,Ge);function Or(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${De(o)}<span class="content" part="content"><slot ${N("defaultSlottedContent")}></slot></span>${ot(o)}</template>`}const _h=Or(),Eh=Ke.compose({name:`${u.prefix}-button`,template:_h,styles:Ci});Eh.define(u.registry);var Nh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,lt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Nh(e,t,r),r};class Pe extends ${constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=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 e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,lt([a({mode:"boolean"})],Pe.prototype,"autofocus",2),lt([g],Pe.prototype,"disabled",2),lt([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),lt([a({attribute:"form"})],Pe.prototype,"formAttribute",2),lt([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),lt([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),lt([a],Pe.prototype,"name",2),lt([a({mode:"boolean"})],Pe.prototype,"required",2);var Mh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Ar=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mh(e,t,r),r};class Pi extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ar([g],Pi.prototype,"indeterminate",2),Ar([a],Pi.prototype,"shape",2),Ar([a],Pi.prototype,"size",2);const Hh=P("active"),Lh=P("bad-input"),x=P("checked"),Vh=P("custom-error"),jh=P("description"),xe=P("disabled");P("error");const Rh=P("flip-block"),qh=P("focus-visible");P("has-message");const It=P("indeterminate"),Yt=P("multiple"),Wh=P("open"),Gh=P("pattern-mismatch"),Xh=P("placeholder-shown"),M=P("pressed"),Uh=P("range-overflow"),Kh=P("range-underflow"),Yh=P("required"),_r=P("selected"),Qh=P("step-mismatch"),zi=P("submenu"),Zh=P("too-long"),Jh=P("too-short"),eu=P("type-mismatch"),tu=P("user-invalid"),ou=P("valid"),iu=P("value-missing"),ru=p`
378
+ `.withBehaviors(X(u`
379
+ :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function ia(o={}){return b` ${He(o)}<slot>${he(o.defaultContent)}</slot>${tt(o)} `}const Ph=ia(),zh=Yt.compose({name:`${p.prefix}-badge`,template:Ph,styles:Sh});zh.define(p.registry);var Th=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,Ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Th(e,t,r),r};class be extends ${constructor(){super(),this.disabled=!1,this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.$fastController.isConnected&&(this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0)}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==ki.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.disabledChanged()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===mo||e.key===Jo){this.click();return}return!0}press(){switch(this.type){case ki.reset:{this.resetForm();break}case ki.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ki.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!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)}}}}be.formAssociated=!0,Ie([a({mode:"boolean"})],be.prototype,"autofocus",2),Ie([g],be.prototype,"defaultSlottedContent",2),Ie([a({mode:"boolean"})],be.prototype,"disabled",2),Ie([a({attribute:"disabled-focusable",mode:"boolean"})],be.prototype,"disabledFocusable",2),Ie([a({attribute:"formaction"})],be.prototype,"formAction",2),Ie([a({attribute:"form"})],be.prototype,"formAttribute",2),Ie([a({attribute:"formenctype"})],be.prototype,"formEnctype",2),Ie([a({attribute:"formmethod"})],be.prototype,"formMethod",2),Ie([a({attribute:"formnovalidate",mode:"boolean"})],be.prototype,"formNoValidate",2),Ie([a({attribute:"formtarget"})],be.prototype,"formTarget",2),Ie([a],be.prototype,"name",2),Ie([a],be.prototype,"type",2),Ie([a],be.prototype,"value",2);var Oh=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Si=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Oh(e,t,r),r};class Ye extends be{constructor(){super(...arguments),this.iconOnly=!1}}Si([a],Ye.prototype,"appearance",2),Si([a],Ye.prototype,"shape",2),Si([a],Ye.prototype,"size",2),Si([a({attribute:"icon-only",mode:"boolean"})],Ye.prototype,"iconOnly",2),Ue(Ye,Xe);function Or(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${He(o)}<span class="content" part="content"><slot ${V("defaultSlottedContent")}></slot></span>${tt(o)}</template>`}const _h=Or(),Eh=Ye.compose({name:`${p.prefix}-button`,template:_h,styles:Ci});Eh.define(p.registry);var Nh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,at=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Nh(e,t,r),r};class Pe extends ${constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=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 e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,at([a({mode:"boolean"})],Pe.prototype,"autofocus",2),at([g],Pe.prototype,"disabled",2),at([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),at([a({attribute:"form"})],Pe.prototype,"formAttribute",2),at([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),at([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),at([a],Pe.prototype,"name",2),at([a({mode:"boolean"})],Pe.prototype,"required",2);var Mh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Ar=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mh(e,t,r),r};class Pi extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ar([g],Pi.prototype,"indeterminate",2),Ar([a],Pi.prototype,"shape",2),Ar([a],Pi.prototype,"size",2);const Hh=P("active"),Lh=P("bad-input"),x=P("checked"),Vh=P("custom-error"),jh=P("description"),xe=P("disabled");P("error");const Rh=P("flip-block"),qh=P("focus-visible");P("has-message");const Ct=P("indeterminate"),Qt=P("multiple"),Wh=P("open"),Gh=P("pattern-mismatch"),Xh=P("placeholder-shown"),F=P("pressed"),Uh=P("range-overflow"),Kh=P("range-underflow"),Yh=P("required"),_r=P("selected"),Qh=P("step-mismatch"),zi=P("submenu"),Zh=P("too-long"),Jh=P("too-short"),eu=P("type-mismatch"),tu=P("user-invalid"),ou=P("valid"),iu=P("value-missing"),ru=u`
380
380
  ${k("inline-flex")}
381
381
 
382
- :host{--size:16px;background-color:${S};border-radius:${Be};border:${T} solid ${He};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${vt}}:host(:active){border-color:${$t}}:host(${x}:hover){background-color:${Lt};border-color:${Yl}}:host(${x}:active){background-color:${Vt};border-color:${mn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${pe} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ve}}.indeterminate-indicator,.checked-indicator{color:${gt};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(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${It}){border-color:${yt}}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:${mt}}:host(${It}) .indeterminate-indicator{border-radius:${Be};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${$e}}:host([disabled]),:host([disabled]${x}){background-color:${rt};border-color:${Ce}}:host([disabled]){cursor:unset}:host([disabled]${It}) .indeterminate-indicator{background-color:${Ce}}:host([disabled]${x}) .checked-indicator{color:${Ce}}`.withBehaviors(X(p`
383
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${It}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${It}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),su=b.partial(`
382
+ :host{--size:16px;background-color:${S};border-radius:${Be};border:${T} solid ${Le};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${mt}}:host(:active){border-color:${vt}}:host(${x}:hover){background-color:${Vt};border-color:${Yl}}:host(${x}:active){background-color:${jt};border-color:${mn}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${pe} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ve}}.indeterminate-indicator,.checked-indicator{color:${bt};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(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Ct}){border-color:${$t}}:host(${x}),:host(${Ct}) .indeterminate-indicator{background-color:${ft}}:host(${Ct}) .indeterminate-indicator{border-radius:${Be};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${$e}}:host([disabled]),:host([disabled]${x}){background-color:${it};border-color:${Ce}}:host([disabled]){cursor:unset}:host([disabled]${Ct}) .indeterminate-indicator{background-color:${Ce}}:host([disabled]${x}) .checked-indicator{color:${Ce}}`.withBehaviors(X(u`
383
+ :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${Ct}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${Ct}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ct}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),su=b.partial(`
384
384
  <svg
385
385
  fill="currentColor"
386
386
  aria-hidden="true"
@@ -393,71 +393,71 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
393
393
  </svg>
394
394
  `),nu=b.partial(`
395
395
  <span class="indeterminate-indicator"></span>
396
- `);function au(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${he(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${he(o.indeterminateIndicator)}</slot></template>`}const lu=au({checkedIndicator:su,indeterminateIndicator:nu}),cu=Pi.compose({name:`${u.prefix}-checkbox`,template:lu,styles:ru});cu.define(u.registry);class du extends Ke{}const hu=p`
396
+ `);function au(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${he(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${he(o.indeterminateIndicator)}</slot></template>`}const lu=au({checkedIndicator:su,indeterminateIndicator:nu}),cu=Pi.compose({name:`${p.prefix}-checkbox`,template:lu,styles:ru});cu.define(p.registry);class du extends Ye{}const hu=u`
397
397
  ${Ci}
398
398
 
399
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${_}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Se};line-height:100%;font-size:${F};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Ht}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ue}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
399
+ :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${_}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Se};line-height:100%;font-size:${N};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Ht}}:host(:active) ::slotted([slot='description']){color:${Lt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ke}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
400
400
  ::slotted([slot='description']){color:${Se}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ri}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${si}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
401
- ::slotted([slot='description']){color:${I}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ne}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Oe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${ye}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`.withBehaviors(X(p`
401
+ ::slotted([slot='description']){color:${I}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ne}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Oe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${ye}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`.withBehaviors(X(u`
402
402
  :host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
403
- ::slotted([slot='description']){color:HighlightText}`));function uu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${De(o)}<span class="content" part="content"><slot ${N("defaultSlottedContent")}></slot><slot name="description"></slot></span>${ot(o)}</template>`}const pu=uu(),bu=du.compose({name:`${u.prefix}-compound-button`,template:pu,styles:hu});bu.define(u.registry);var gu=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?fu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gu(e,t,r),r};class Re extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}ct([a],Re.prototype,"appearance",2),ct([a],Re.prototype,"color",2),ct([a],Re.prototype,"shape",2),ct([a],Re.prototype,"size",2),ct([a({converter:re})],Re.prototype,"count",2),ct([a({attribute:"overflow-count",converter:re})],Re.prototype,"overflowCount",2),ct([a({attribute:"show-zero",mode:"boolean"})],Re.prototype,"showZero",2),ct([a({mode:"boolean"})],Re.prototype,"dot",2),Xe(Re,Ge);const mu=p`
403
+ ::slotted([slot='description']){color:HighlightText}`));function uu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${He(o)}<span class="content" part="content"><slot ${V("defaultSlottedContent")}></slot><slot name="description"></slot></span>${tt(o)}</template>`}const pu=uu(),bu=du.compose({name:`${p.prefix}-compound-button`,template:pu,styles:hu});bu.define(p.registry);var gu=Object.defineProperty,fu=Object.getOwnPropertyDescriptor,lt=(o,e,t,i)=>{for(var r=i>1?void 0:i?fu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gu(e,t,r),r};class qe extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}lt([a],qe.prototype,"appearance",2),lt([a],qe.prototype,"color",2),lt([a],qe.prototype,"shape",2),lt([a],qe.prototype,"size",2),lt([a({converter:re})],qe.prototype,"count",2),lt([a({attribute:"overflow-count",converter:re})],qe.prototype,"overflowCount",2),lt([a({attribute:"show-zero",mode:"boolean"})],qe.prototype,"showZero",2),lt([a({mode:"boolean"})],qe.prototype,"dot",2),Ue(qe,Xe);const mu=u`
404
404
  :host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Be}}${Zn}
405
405
  ${Jn}
406
406
  ${ea}
407
407
  ${Qn}
408
408
 
409
- :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function vu(o={}){return ia({defaultContent:b`${e=>e.setCount()}`})}const $u=vu(),yu=Re.compose({name:`${u.prefix}-counter-badge`,template:$u,styles:mu});yu.define(u.registry);const St={modal:"modal",nonModal:"non-modal",alert:"alert"};function ra(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var xu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,Ti=(o,e,t,i)=>{for(var r=i>1?void 0:i?ku(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xu(e,t,r),r};class Io extends ${constructor(){super(...arguments),this.type=St.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"})}}typeChanged(e,t){this.dialog&&(t===St.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),t!==St.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(void 0,this.type)}show(){Q.enqueue(()=>{this.emitBeforeToggle(),this.type===St.alert||this.type===St.modal?this.dialog.showModal():this.type===St.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==St.alert&&e.target===this.dialog&&this.hide(),!0}}Ti([g],Io.prototype,"dialog",2),Ti([a({attribute:"aria-describedby"})],Io.prototype,"ariaDescribedby",2),Ti([a({attribute:"aria-labelledby"})],Io.prototype,"ariaLabelledby",2),Ti([a],Io.prototype,"type",2);const wu=b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${G("dialog")}><slot></slot></dialog>`,Cu=p`
410
- @layer base{:host{--dialog-backdrop:${pr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${S};border-radius:${Bn};border:none;box-shadow:${Ln};color:${z};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${wt};opacity:0}::backdrop{transition-timing-function:${Sr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${kt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(X(p`
411
- @layer base{dialog{border:${T} solid ${J}}}`)),Iu=Io.compose({name:`${u.prefix}-dialog`,template:wu,styles:Cu});Iu.define(u.registry);class Su extends ${clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t)&&t.hide()}return!0}}const Pu=b`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,zu=p`
409
+ :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function vu(o={}){return ia({defaultContent:b`${e=>e.setCount()}`})}const $u=vu(),yu=qe.compose({name:`${p.prefix}-counter-badge`,template:$u,styles:mu});yu.define(p.registry);const It={modal:"modal",nonModal:"non-modal",alert:"alert"};function ra(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var xu=Object.defineProperty,ku=Object.getOwnPropertyDescriptor,Ti=(o,e,t,i)=>{for(var r=i>1?void 0:i?ku(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xu(e,t,r),r};class So extends ${constructor(){super(...arguments),this.type=It.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"})}}typeChanged(e,t){this.dialog&&(t===It.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),t!==It.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(void 0,this.type)}show(){Q.enqueue(()=>{this.emitBeforeToggle(),this.type===It.alert||this.type===It.modal?this.dialog.showModal():this.type===It.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==It.alert&&e.target===this.dialog&&this.hide(),!0}}Ti([g],So.prototype,"dialog",2),Ti([a({attribute:"aria-describedby"})],So.prototype,"ariaDescribedby",2),Ti([a({attribute:"aria-labelledby"})],So.prototype,"ariaLabelledby",2),Ti([a],So.prototype,"type",2);const wu=b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${M("dialog")}><slot></slot></dialog>`,Cu=u`
410
+ @layer base{:host{--dialog-backdrop:${pr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${S};border-radius:${Bn};border:none;box-shadow:${Ln};color:${z};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${kt};opacity:0}::backdrop{transition-timing-function:${Sr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${xt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(X(u`
411
+ @layer base{dialog{border:${T} solid ${J}}}`)),Iu=So.compose({name:`${p.prefix}-dialog`,template:wu,styles:Cu});Iu.define(p.registry);class Su extends ${clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t)&&t.hide()}return!0}}const Pu=b`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,zu=u`
412
412
  ${k("grid")}
413
413
 
414
- :host{background:${S};box-sizing:border-box;gap:${H};padding:${xt} ${xr};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${S};color:${z};column-gap:8px;display:flex;font-family:${v};font-size:${Rt};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${gi};margin-block-end:calc(${H} * -1);margin-block-start:calc(${xt} * -1);padding-block-end:${H};padding-block-start:${xt}}.content{box-sizing:border-box;color:${z};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};min-height:32px}.actions{box-sizing:border-box;background:${S};display:flex;flex-direction:column;gap:${H};inset-block-end:0;margin-block-end:calc(${xt} * -1);padding-block-end:${xt};padding-block-start:${mi}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${H} * -1);padding-block-start:${H}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,Tu=Su.compose({name:`${u.prefix}-dialog-body`,template:Pu,styles:zu});Tu.define(u.registry);const So={separator:"separator",presentation:"presentation"},sa=fe;var Bu=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,na=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ou(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bu(e,t,r),r};class Er extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??So.separator,this.role!==So.presentation&&(this.elementInternals.ariaOrientation=this.orientation??sa.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??So.separator}`),t===So.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==So.presentation?t??null:null,Ct(this.elementInternals,e,t,sa)}}na([a],Er.prototype,"role",2),na([a],Er.prototype,"orientation",2);var Au=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,Nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?_u(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Au(e,t,r),r};class Bi extends Er{}Nr([a({attribute:"align-content"})],Bi.prototype,"alignContent",2),Nr([a],Bi.prototype,"appearance",2),Nr([a({mode:"boolean"})],Bi.prototype,"inset",2);function Eu(){return b`<slot></slot>`}const Nu=Eu(),Fu=p`
414
+ :host{background:${S};box-sizing:border-box;gap:${H};padding:${yt} ${xr};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${S};color:${z};column-gap:8px;display:flex;font-family:${v};font-size:${qt};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${gi};margin-block-end:calc(${H} * -1);margin-block-start:calc(${yt} * -1);padding-block-end:${H};padding-block-start:${yt}}.content{box-sizing:border-box;color:${z};font-family:${v};font-size:${B};font-weight:${A};line-height:${_};min-height:32px}.actions{box-sizing:border-box;background:${S};display:flex;flex-direction:column;gap:${H};inset-block-end:0;margin-block-end:calc(${yt} * -1);padding-block-end:${yt};padding-block-start:${mi}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${H} * -1);padding-block-start:${H}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,Tu=Su.compose({name:`${p.prefix}-dialog-body`,template:Pu,styles:zu});Tu.define(p.registry);const Po={separator:"separator",presentation:"presentation"},sa=fe;var Bu=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,na=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ou(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bu(e,t,r),r};class Er extends ${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??sa.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??Po.separator}`),t===Po.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==Po.presentation?t??null:null,wt(this.elementInternals,e,t,sa)}}na([a],Er.prototype,"role",2),na([a],Er.prototype,"orientation",2);var Au=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,Nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?_u(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Au(e,t,r),r};class Bi extends Er{}Nr([a({attribute:"align-content"})],Bi.prototype,"alignContent",2),Nr([a],Bi.prototype,"appearance",2),Nr([a({mode:"boolean"})],Bi.prototype,"inset",2);function Eu(){return b`<slot></slot>`}const Nu=Eu(),Fu=u`
415
415
  ${k("flex")}
416
416
 
417
- :host{contain:content}:host::after,:host::before{align-self:center;background:${wo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${T}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Se};font-family:${v};font-size:${F};font-weight:${A};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${T};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Le}}:host([appearance='strong']) ::slotted(*){color:${z}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${gn}}:host([appearance='brand']) ::slotted(*){color:${ni}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ul}}:host([appearance='subtle']) ::slotted(*){color:${Z}}`.withBehaviors(X(p`
418
- :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Mu=Bi.compose({name:`${u.prefix}-divider`,template:Nu,styles:Fu});Mu.define(u.registry);const Du={start:"start",end:"end"},Hu={small:"small",medium:"medium",large:"large",full:"full"},Po={nonModal:"non-modal",modal:"modal",inline:"inline"};var Lu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Qt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Vu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lu(e,t,r),r};class Pt extends ${constructor(){super(...arguments),this.type=Po.modal,this.position=Du.start,this.size=Hu.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"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===Po.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){Q.enqueue(()=>{this.emitBeforeToggle(),this.type===Po.inline||this.type===Po.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){console.log(this.role),this.dialog&&(this.dialog.role=this.type===Po.modal?"dialog":this.role)}}Qt([a],Pt.prototype,"type",2),Qt([a({attribute:"aria-labelledby"})],Pt.prototype,"ariaLabelledby",2),Qt([a({attribute:"aria-describedby"})],Pt.prototype,"ariaDescribedby",2),Qt([a],Pt.prototype,"position",2),Qt([a({attribute:"size"})],Pt.prototype,"size",2),Qt([g],Pt.prototype,"dialog",2);const ju=p`
417
+ :host{contain:content}:host::after,:host::before{align-self:center;background:${Co};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${T}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Se};font-family:${v};font-size:${N};font-weight:${A};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${T};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Ve}}:host([appearance='strong']) ::slotted(*){color:${z}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${gn}}:host([appearance='brand']) ::slotted(*){color:${ni}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ul}}:host([appearance='subtle']) ::slotted(*){color:${Z}}`.withBehaviors(X(u`
418
+ :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Mu=Bi.compose({name:`${p.prefix}-divider`,template:Nu,styles:Fu});Mu.define(p.registry);const Du={start:"start",end:"end"},Hu={small:"small",medium:"medium",large:"large",full:"full"},zo={nonModal:"non-modal",modal:"modal",inline:"inline"};var Lu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Zt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Vu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lu(e,t,r),r};class St extends ${constructor(){super(...arguments),this.type=zo.modal,this.position=Du.start,this.size=Hu.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"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===zo.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){Q.enqueue(()=>{this.emitBeforeToggle(),this.type===zo.inline||this.type===zo.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){console.log(this.role),this.dialog&&(this.dialog.role=this.type===zo.modal?"dialog":this.role)}}Zt([a],St.prototype,"type",2),Zt([a({attribute:"aria-labelledby"})],St.prototype,"ariaLabelledby",2),Zt([a({attribute:"aria-describedby"})],St.prototype,"ariaDescribedby",2),Zt([a],St.prototype,"position",2),Zt([a({attribute:"size"})],St.prototype,"size",2),Zt([g],St.prototype,"dialog",2);const ju=u`
419
419
  ${k("block")}
420
420
 
421
- :host{--dialog-backdrop:${pr}}: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:${B};line-height:${_};font-family:${v};font-weight:${A};color:${z};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${J};border-inline-start-color:var(--drawer-separator,${J});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Ln};border:${T} solid ${J};background:${S}}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:${Cr};transition-timing-function:${wt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${kt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${kt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${wt};background:var(--dialog-backdrop,${pr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Sr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Ru(){return b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.cancelHandler()}" ${G("dialog")}><slot></slot></dialog>`}const qu=Ru(),Wu=Pt.compose({name:`${u.prefix}-drawer`,template:qu,styles:ju});Wu.define(u.registry);class Gu extends ${clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t,"-drawer")&&t.hide()}return!0}}const Xu=p`
421
+ :host{--dialog-backdrop:${pr}}: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:${B};line-height:${_};font-family:${v};font-weight:${A};color:${z};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${J};border-inline-start-color:var(--drawer-separator,${J});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Ln};border:${T} solid ${J};background:${S}}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:${Cr};transition-timing-function:${kt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${xt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${xt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Cr};transition-timing-function:${kt};background:var(--dialog-backdrop,${pr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Sr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Ru(){return b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.cancelHandler()}" ${M("dialog")}><slot></slot></dialog>`}const qu=Ru(),Wu=St.compose({name:`${p.prefix}-drawer`,template:qu,styles:ju});Wu.define(p.registry);class Gu extends ${clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t,"-drawer")&&t.hide()}return!0}}const Xu=u`
422
422
  ${k("grid")}
423
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${yd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Ih}}.footer{display:flex;justify-content:flex-start;gap:${le}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Uu(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Ku=Uu(),Yu=Gu.compose({name:`${u.prefix}-drawer-body`,template:Ku,styles:Xu});Yu.define(u.registry);function aa(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Oi(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function la(o){return o.closest("[lang]")?.lang??"en"}let Qu=0;function Zt(o="id-"){const e=`${o}${Qu++}`;return document.getElementById(e)?Zt(o):e}function Zu(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1})},1)}function Ju(o){"cancelIdleCallback"in globalThis?globalThis.cancelIdleCallback(o):clearTimeout(o)}function ca(o,e,t={shallow:!1,timeout:50}){let i;const r=t.shallow?":scope > *":"*";if(!o.isConnected)return;const s=()=>{if(i&&(i=Ju(i)),Array.from(o.querySelectorAll(r)).filter(n=>n.tagName.includes("-")).every(n=>n.isConnected)){e();return}i=Zu(s,{timeout:t.timeout})};s()}const ep={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Fr={combobox:"combobox",dropdown:"dropdown",select:"select"},tp=b`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${G("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 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.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,op=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" slot="control" ${G("control")} />`,ip=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" slot="control" ${G("control")}>${o=>o.displayValue}</button>`;function rp(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${G("controlSlot")}></slot><slot name="indicator" ${G("indicatorSlot")}>${he(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const sp=rp({indicator:tp});var np=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,U=(o,e,t,i)=>{for(var r=i>1?void 0:i?ap(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&np(e,t,r),r};const L=class no extends ${constructor(){super(),this.activeIndex=0,this.id=Zt("dropdown-"),this.required=!1,this.type=Fr.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||ei(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",Q.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,s)=>{r.active=s===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Zt("input-"))}disabledChanged(e,t){Q.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(la(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);if(Q.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0}),this.setValidity()}),ti){const r=Zt("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){Q.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,ti||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Fr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Oi(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(la(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Fr.combobox){op.render(this,this);return}ip.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Oi(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}}slotchangeHandler(e){const t=e.target;ca(this,()=>{const i=t.assignedElements().find(r=>aa(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}disconnectedCallback(){no.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(no.AnchorPositionFallbackObserver||(no.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:s})=>{if(aa(s)){if(i.bottom>window.innerHeight){y(s.elementInternals,"flip-block",!0);return}i.top<0&&y(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,no.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}no.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};L.formAssociated=!0,U([ns],L.prototype,"activeDescendant",1),U([g],L.prototype,"activeIndex",2),U([a({attribute:"aria-labelledby",mode:"fromView"})],L.prototype,"ariaLabelledBy",2),U([g],L.prototype,"control",2),U([a({mode:"boolean"})],L.prototype,"disabled",2),U([ns],L.prototype,"displayValue",1),U([a({attribute:"id"})],L.prototype,"id",2),U([g],L.prototype,"indicator",2),U([g],L.prototype,"indicatorSlot",2),U([a({attribute:"value",mode:"fromView"})],L.prototype,"initialValue",2),U([g],L.prototype,"listbox",2),U([a({mode:"boolean"})],L.prototype,"multiple",2),U([a],L.prototype,"name",2),U([g],L.prototype,"open",2),U([a],L.prototype,"placeholder",2),U([a({mode:"boolean"})],L.prototype,"required",2),U([a],L.prototype,"type",2),U([a({attribute:"value"})],L.prototype,"valueAttribute",2);let lp=L;var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,da=(o,e,t,i)=>{for(var r=i>1?void 0:i?dp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cp(e,t,r),r};class Mr extends lp{constructor(){super(...arguments),this.appearance=ep.outline}}da([a],Mr.prototype,"appearance",2),da([a],Mr.prototype,"size",2);const hp=p`
423
+ :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${yd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Ih}}.footer{display:flex;justify-content:flex-start;gap:${le}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Uu(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Ku=Uu(),Yu=Gu.compose({name:`${p.prefix}-drawer-body`,template:Ku,styles:Xu});Yu.define(p.registry);function aa(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Oi(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function la(o){return o.closest("[lang]")?.lang??"en"}let Qu=0;function Jt(o="id-"){const e=`${o}${Qu++}`;return document.getElementById(e)?Jt(o):e}function Zu(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1})},1)}function Ju(o){"cancelIdleCallback"in globalThis?globalThis.cancelIdleCallback(o):clearTimeout(o)}function ca(o,e,t={shallow:!1,timeout:50}){let i;const r=t.shallow?":scope > *":"*";if(!o.isConnected)return;const s=()=>{if(i&&(i=Ju(i)),Array.from(o.querySelectorAll(r)).filter(n=>n.tagName.includes("-")).every(n=>n.isConnected)){e();return}i=Zu(s,{timeout:t.timeout})};s()}const ep={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Fr={combobox:"combobox",dropdown:"dropdown",select:"select"},tp=b`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${M("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 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.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,op=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" slot="control" ${M("control")} />`,ip=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" slot="control" ${M("control")}>${o=>o.displayValue}</button>`;function rp(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${M("controlSlot")}></slot><slot name="indicator" ${M("indicatorSlot")}>${he(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const sp=rp({indicator:tp});var np=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,U=(o,e,t,i)=>{for(var r=i>1?void 0:i?ap(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&np(e,t,r),r};const L=class ao extends ${constructor(){super(),this.activeIndex=0,this.id=Jt("dropdown-"),this.required=!1,this.type=Fr.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||ei(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",Q.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,s)=>{r.active=s===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Jt("input-"))}disabledChanged(e,t){Q.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(la(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);if(Q.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0}),this.setValidity()}),ti){const r=Jt("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){Q.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,ti||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Fr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Oi(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(la(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Fr.combobox){op.render(this,this);return}ip.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Oi(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}}slotchangeHandler(e){const t=e.target;ca(this,()=>{const i=t.assignedElements().find(r=>aa(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}disconnectedCallback(){ao.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(ao.AnchorPositionFallbackObserver||(ao.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:s})=>{if(aa(s)){if(i.bottom>window.innerHeight){y(s.elementInternals,"flip-block",!0);return}i.top<0&&y(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,ao.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}ao.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};L.formAssociated=!0,U([ns],L.prototype,"activeDescendant",1),U([g],L.prototype,"activeIndex",2),U([a({attribute:"aria-labelledby",mode:"fromView"})],L.prototype,"ariaLabelledBy",2),U([g],L.prototype,"control",2),U([a({mode:"boolean"})],L.prototype,"disabled",2),U([ns],L.prototype,"displayValue",1),U([a({attribute:"id"})],L.prototype,"id",2),U([g],L.prototype,"indicator",2),U([g],L.prototype,"indicatorSlot",2),U([a({attribute:"value",mode:"fromView"})],L.prototype,"initialValue",2),U([g],L.prototype,"listbox",2),U([a({mode:"boolean"})],L.prototype,"multiple",2),U([a],L.prototype,"name",2),U([g],L.prototype,"open",2),U([a],L.prototype,"placeholder",2),U([a({mode:"boolean"})],L.prototype,"required",2),U([a],L.prototype,"type",2),U([a({attribute:"value"})],L.prototype,"valueAttribute",2);let lp=L;var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,da=(o,e,t,i)=>{for(var r=i>1?void 0:i?dp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cp(e,t,r),r};class Mr extends lp{constructor(){super(...arguments),this.appearance=ep.outline}}da([a],Mr.prototype,"appearance",2),da([a],Mr.prototype,"size",2);const hp=u`
424
424
  ${k("inline-flex")}
425
425
 
426
- :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${z};cursor:pointer}:host(${Xh}){color:${hr}}.control{appearance:none;background-color:${S};border-radius:${C};border:none;box-shadow:inset 0 0 0 ${T} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${q};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${Ve} ${ae};position:relative;text-align:start;width:100%;z-index:1;${ta}}:host([size='small']) .control{column-gap:${q};padding:${Wt} ${ee};${oa}}:host([size='large']) .control{column-gap:${Oe};padding:${H} ${le};${Ch}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${T}}.control::after{background-color:${yt};height:${pe};scale:0 1;transition:scale ${wr} ${wt}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${di};outline:${pe} solid ${ve}}:host(:where(${Wh},:focus-within)) .control::after{scale:1 1;transition-duration:${$i};transition-timing-function:${kt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${He}}:host([appearance='transparent']) .control{--control-border-color:${br};background-color:${me};border-radius:${hi}}:host([appearance='outline']) .control{--control-border-color:${Le}}:host([appearance='outline']) .control:hover{--control-border-color:${jt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${vt}}:host([appearance='outline']) .control:hover::after{background-color:${Lt}}:host([appearance='outline']) .control:active{--control-border-color:${ko}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${$t}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Vt}}:host([appearance='filled-darker']) .control{background-color:${$o}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${J}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${Ce};background-color:${rt};color:${I}}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${_} + (${Ve} * 2) + ${T})}:host([size='small']){--margin-offset:calc(${R} + (${Wt} * 2) + ${T})}:host([size='large']){--margin-offset:calc(${ye} + (${H} * 2) + ${T})}}`,up=Mr.compose({name:`${u.prefix}-dropdown`,template:sp,styles:hp});up.define(u.registry);const pp={above:"above",after:"after",before:"before"},ze={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 bp=Object.defineProperty,gp=Object.getOwnPropertyDescriptor,Ai=(o,e,t,i)=>{for(var r=i>1?void 0:i?gp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bp(e,t,r),r};class zo extends ${constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){y(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const i=t?.filter(r=>r.nodeType===Node.ELEMENT_NODE)??[];i?.length&&(this.input=i?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Mt("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(ze))y(this.elementInternals,t,this.input.validity[e])}}Ai([g],zo.prototype,"labelSlot",2),Ai([g],zo.prototype,"messageSlot",2),Ai([g],zo.prototype,"slottedInputs",2),Ai([g],zo.prototype,"input",2);var fp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,vp=(o,e,t,i)=>{for(var r=i>1?void 0:i?mp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fp(e,t,r),r};class ha extends zo{constructor(){super(...arguments),this.labelPosition=pp.above}}vp([a({attribute:"label-position"})],ha.prototype,"labelPosition",2);const $p=p`
426
+ :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${z};cursor:pointer}:host(${Xh}){color:${hr}}.control{appearance:none;background-color:${S};border-radius:${C};border:none;box-shadow:inset 0 0 0 ${T} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${W};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${je} ${ae};position:relative;text-align:start;width:100%;z-index:1;${ta}}:host([size='small']) .control{column-gap:${W};padding:${Gt} ${ee};${oa}}:host([size='large']) .control{column-gap:${Oe};padding:${H} ${le};${Ch}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${Z};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${T}}.control::after{background-color:${$t};height:${pe};scale:0 1;transition:scale ${wr} ${kt}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${di};outline:${pe} solid ${ve}}:host(:where(${Wh},:focus-within)) .control::after{scale:1 1;transition-duration:${$i};transition-timing-function:${xt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Le}}:host([appearance='transparent']) .control{--control-border-color:${br};background-color:${me};border-radius:${hi}}:host([appearance='outline']) .control{--control-border-color:${Ve}}:host([appearance='outline']) .control:hover{--control-border-color:${Rt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${mt}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${wo}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${vt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${jt}}:host([appearance='filled-darker']) .control{background-color:${yo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${J}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${Ce};background-color:${it};color:${I}}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${_} + (${je} * 2) + ${T})}:host([size='small']){--margin-offset:calc(${q} + (${Gt} * 2) + ${T})}:host([size='large']){--margin-offset:calc(${ye} + (${H} * 2) + ${T})}}`,up=Mr.compose({name:`${p.prefix}-dropdown`,template:sp,styles:hp});up.define(p.registry);const pp={above:"above",after:"after",before:"before"},ze={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 bp=Object.defineProperty,gp=Object.getOwnPropertyDescriptor,Ai=(o,e,t,i)=>{for(var r=i>1?void 0:i?gp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bp(e,t,r),r};class To extends ${constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){y(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const i=t?.filter(r=>r.nodeType===Node.ELEMENT_NODE)??[];i?.length&&(this.input=i?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Dt("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(ze))y(this.elementInternals,t,this.input.validity[e])}}Ai([g],To.prototype,"labelSlot",2),Ai([g],To.prototype,"messageSlot",2),Ai([g],To.prototype,"slottedInputs",2),Ai([g],To.prototype,"input",2);var fp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,vp=(o,e,t,i)=>{for(var r=i>1?void 0:i?mp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fp(e,t,r),r};class ha extends To{constructor(){super(...arguments),this.labelPosition=pp.above}}vp([a({attribute:"label-position"})],ha.prototype,"labelPosition",2);const $p=u`
427
427
  ${k("inline-grid")}
428
428
 
429
- :host{color:${z};align-items:center;gap:0 ${le};justify-items:start}:has([slot='message']){color:${z};row-gap:${H}}: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:${le}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${qt}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${xd}}:host(${Yh}) ::slotted([slot='label'])::after{content:'*' / '';color:${fr};margin-inline-start:${ne}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${F};font-weight:${A};grid-area:message;line-height:${R};margin-block-start:${qt}}:host(${qh}:focus-within){border-radius:${C};outline:${pe} solid ${ve}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${A};grid-area:label;line-height:${_};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${F};line-height:${R}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${ye}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${xe}){cursor:default}::slotted([flag]){display:none}:host(${Lh}) ::slotted([flag='${ze.badInput}']),:host(${Vh}) ::slotted([flag='${ze.customError}']),:host(${Gh}) ::slotted([flag='${ze.patternMismatch}']),:host(${Uh}) ::slotted([flag='${ze.rangeOverflow}']),:host(${Kh}) ::slotted([flag='${ze.rangeUnderflow}']),:host(${Qh}) ::slotted([flag='${ze.stepMismatch}']),:host(${Zh}) ::slotted([flag='${ze.tooLong}']),:host(${Jh}) ::slotted([flag='${ze.tooShort}']),:host(${eu}) ::slotted([flag='${ze.typeMismatch}']),:host(${iu}) ::slotted([flag='${ze.valueMissing}']),:host(${ou}) ::slotted([flag='${ze.valid}']){display:block}`,yp=b`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}"><slot name="label" part="label" ${N("labelSlot")}></slot><slot name="input" part="input" ${N("slottedInputs")}></slot><slot name="message" part="message" ${N({property:"messageSlot",filter:tt("[flag]")})}></slot></template>`,xp=ha.compose({name:`${u.prefix}-field`,template:yp,styles:$p,shadowOptions:{delegatesFocus:!0}});xp.define(u.registry);var kp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,To=(o,e,t,i)=>{for(var r=i>1?void 0:i?wp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&kp(e,t,r),r};class Jt extends ${}To([a({mode:"boolean"})],Jt.prototype,"block",2),To([a({mode:"boolean"})],Jt.prototype,"bordered",2),To([a({mode:"boolean"})],Jt.prototype,"shadow",2),To([a],Jt.prototype,"fit",2),To([a],Jt.prototype,"shape",2);const Cp=b`<slot></slot>`,Ip=p`
430
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${T} solid ${wo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${fi}}:host([shape='circular']) ::slotted(img){border-radius:${$e}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Sp=Jt.compose({name:`${u.prefix}-image`,template:Cp,styles:Ip});Sp.define(u.registry);var Pp=Object.defineProperty,zp=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?zp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pp(e,t,r),r};class Bo extends ${constructor(){super(...arguments),this.disabled=!1,this.required=!1}}_i([a],Bo.prototype,"size",2),_i([a],Bo.prototype,"weight",2),_i([a({mode:"boolean"})],Bo.prototype,"disabled",2),_i([a({mode:"boolean"})],Bo.prototype,"required",2);const Tp=p`
429
+ :host{color:${z};align-items:center;gap:0 ${le};justify-items:start}:has([slot='message']){color:${z};row-gap:${H}}: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:${le}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Wt}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${xd}}:host(${Yh}) ::slotted([slot='label'])::after{content:'*' / '';color:${fr};margin-inline-start:${ne}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${Z};font-family:${v};font-size:${N};font-weight:${A};grid-area:message;line-height:${q};margin-block-start:${Wt}}:host(${qh}:focus-within){border-radius:${C};outline:${pe} solid ${ve}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${A};grid-area:label;line-height:${_};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${N};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${ye}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${xe}){cursor:default}::slotted([flag]){display:none}:host(${Lh}) ::slotted([flag='${ze.badInput}']),:host(${Vh}) ::slotted([flag='${ze.customError}']),:host(${Gh}) ::slotted([flag='${ze.patternMismatch}']),:host(${Uh}) ::slotted([flag='${ze.rangeOverflow}']),:host(${Kh}) ::slotted([flag='${ze.rangeUnderflow}']),:host(${Qh}) ::slotted([flag='${ze.stepMismatch}']),:host(${Zh}) ::slotted([flag='${ze.tooLong}']),:host(${Jh}) ::slotted([flag='${ze.tooShort}']),:host(${eu}) ::slotted([flag='${ze.typeMismatch}']),:host(${iu}) ::slotted([flag='${ze.valueMissing}']),:host(${ou}) ::slotted([flag='${ze.valid}']){display:block}`,yp=b`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}"><slot name="label" part="label" ${V("labelSlot")}></slot><slot name="input" part="input" ${V("slottedInputs")}></slot><slot name="message" part="message" ${V({property:"messageSlot",filter:Ft("[flag]")})}></slot></template>`,xp=ha.compose({name:`${p.prefix}-field`,template:yp,styles:$p,shadowOptions:{delegatesFocus:!0}});xp.define(p.registry);var kp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,Bo=(o,e,t,i)=>{for(var r=i>1?void 0:i?wp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&kp(e,t,r),r};class eo extends ${}Bo([a({mode:"boolean"})],eo.prototype,"block",2),Bo([a({mode:"boolean"})],eo.prototype,"bordered",2),Bo([a({mode:"boolean"})],eo.prototype,"shadow",2),Bo([a],eo.prototype,"fit",2),Bo([a],eo.prototype,"shape",2);const Cp=b`<slot></slot>`,Ip=u`
430
+ :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${T} solid ${Co}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${fi}}:host([shape='circular']) ::slotted(img){border-radius:${$e}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Sp=eo.compose({name:`${p.prefix}-image`,template:Cp,styles:Ip});Sp.define(p.registry);var Pp=Object.defineProperty,zp=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?zp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pp(e,t,r),r};class Oo extends ${constructor(){super(...arguments),this.disabled=!1,this.required=!1}}_i([a],Oo.prototype,"size",2),_i([a],Oo.prototype,"weight",2),_i([a({mode:"boolean"})],Oo.prototype,"disabled",2),_i([a({mode:"boolean"})],Oo.prototype,"required",2);const Tp=u`
431
431
  ${k("inline-flex")}
432
432
 
433
- :host{color:${z};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};line-height:${_};user-select:none}.asterisk{color:${fr};margin-inline-start:${ne}}:host([size='small']){font-size:${F};line-height:${R}}:host([size='large']){font-size:${ue};line-height:${ye}}:host(:is([size='large'],[weight='semibold'])){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${I}}`;function Bp(){return b`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Op=Bp(),Ap=Bo.compose({name:`${u.prefix}-label`,template:Op,styles:Tp});Ap.define(u.registry);var _p=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ep(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_p(e,t,r),r};class Dr extends je{constructor(){super(...arguments),this.inline=!1}}ua([a],Dr.prototype,"appearance",2),ua([a({mode:"boolean"})],Dr.prototype,"inline",2);const Np=p`
433
+ :host{color:${z};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};line-height:${_};user-select:none}.asterisk{color:${fr};margin-inline-start:${ne}}:host([size='small']){font-size:${N};line-height:${q}}:host([size='large']){font-size:${ue};line-height:${ye}}:host(:is([size='large'],[weight='semibold'])){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${I}}`;function Bp(){return b`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Op=Bp(),Ap=Oo.compose({name:`${p.prefix}-label`,template:Op,styles:Tp});Ap.define(p.registry);var _p=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ep(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_p(e,t,r),r};class Dr extends Re{constructor(){super(...arguments),this.inline=!1}}ua([a],Dr.prototype,"appearance",2),ua([a({mode:"boolean"})],Dr.prototype,"inline",2);const Np=u`
434
434
  ${k("inline")}
435
435
 
436
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Ol};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${T};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Al}}:host(:active){color:${_l}}:host([appearance='subtle']:hover){color:${Nl}}:host([appearance='subtle']:active){color:${Fl}}}:host([appearance='subtle']){color:${El}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(X(p`
437
- :host{color:LinkText}`));function Fp(){return b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Mp=Fp(),Dp=Dr.compose({name:`${u.prefix}-link`,template:Mp,styles:Np});Dp.define(u.registry);var Hp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,Oo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hp(e,t,r),r};class eo extends ${constructor(){super(),this.id=Zt("listbox-"),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),Q.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Oi(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const s=r===e;i.selected=s,s&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){ca(this,()=>{const t=e.target.assignedElements().filter(i=>Oi(i));this.options=t})}}Oo([a({attribute:"id",mode:"fromView"})],eo.prototype,"id",2),Oo([g],eo.prototype,"multiple",2),Oo([g],eo.prototype,"options",2),Oo([g],eo.prototype,"selectedIndex",2),Oo([g],eo.prototype,"dropdown",2);const Vp=p`
436
+ :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Ol};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${T};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Al}}:host(:active){color:${_l}}:host([appearance='subtle']:hover){color:${Nl}}:host([appearance='subtle']:active){color:${Fl}}}:host([appearance='subtle']){color:${El}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(X(u`
437
+ :host{color:LinkText}`));function Fp(){return b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Mp=Fp(),Dp=Dr.compose({name:`${p.prefix}-link`,template:Mp,styles:Np});Dp.define(p.registry);var Hp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,Ao=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hp(e,t,r),r};class to extends ${constructor(){super(),this.id=Jt("listbox-"),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),Q.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Oi(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const s=r===e;i.selected=s,s&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){ca(this,()=>{const t=e.target.assignedElements().filter(i=>Oi(i));this.options=t})}}Ao([a({attribute:"id",mode:"fromView"})],to.prototype,"id",2),Ao([g],to.prototype,"multiple",2),Ao([g],to.prototype,"options",2),Ao([g],to.prototype,"selectedIndex",2),Ao([g],to.prototype,"dropdown",2);const Vp=u`
438
438
  ${k("inline-flex")}
439
439
 
440
- :host{background-color:${S};border-radius:${C};border:none;box-shadow:${$r};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${ne};row-gap:${q};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Rh}){margin-block-start:revert;translate:0 -100%}}`;function jp(){return b`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Rp=jp(),qp=eo.compose({name:`${u.prefix}-listbox`,template:Rp,styles:Vp});qp.define(u.registry);class Wp extends Ke{}const Gp=Or({end:b.partial(`
440
+ :host{background-color:${S};border-radius:${C};border:none;box-shadow:${$r};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${ne};row-gap:${W};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Rh}){margin-block-start:revert;translate:0 -100%}}`;function jp(){return b`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Rp=jp(),qp=to.compose({name:`${p.prefix}-listbox`,template:Rp,styles:Vp});qp.define(p.registry);class Wp extends Ye{}const Gp=Or({end:b.partial(`
441
441
  <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
442
442
  <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>
443
443
  </svg>
444
- `)}),Xp=Wp.compose({name:`${u.prefix}-menu-button`,template:Gp,styles:Ci});Xp.define(u.registry);const te={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};te.menuitem+"",te.menuitemcheckbox+"",te.menuitemradio+"";function Up(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,to=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kp(e,t,r),r};class Ye extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=te.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case fo:case Jo:return this.invoke(),!1;case po:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case uo:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=e=>{e instanceof ToggleEvent&&e.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e instanceof ToggleEvent&&e.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case te.menuitemcheckbox:this.checked=!this.checked;break;case te.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case te.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,y(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??te.menuitem}checkedChanged(e,t){const i=this.role!==te.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,y(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.toggleHandler),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",y(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,y(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??te.menuitem,this.elementInternals.ariaChecked=this.role!==te.menuitem?`${!!this.checked}`:null}}to([a({mode:"boolean"})],Ye.prototype,"disabled",2),to([a],Ye.prototype,"role",2),to([a({mode:"boolean"})],Ye.prototype,"checked",2),to([a({mode:"boolean"})],Ye.prototype,"hidden",2),to([g],Ye.prototype,"slottedSubmenu",2),to([g],Ye.prototype,"submenu",2),Xe(Ye,Ge);const Qp=p`
444
+ `)}),Xp=Wp.compose({name:`${p.prefix}-menu-button`,template:Gp,styles:Ci});Xp.define(p.registry);const te={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};te.menuitem+"",te.menuitemcheckbox+"",te.menuitemradio+"";function Up(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,oo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kp(e,t,r),r};class Qe extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=te.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case mo:case Jo:return this.invoke(),!1;case bo:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case po:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=e=>{e instanceof ToggleEvent&&e.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e instanceof ToggleEvent&&e.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case te.menuitemcheckbox:this.checked=!this.checked;break;case te.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case te.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,y(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??te.menuitem}checkedChanged(e,t){const i=this.role!==te.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,y(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.toggleHandler),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",y(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,y(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??te.menuitem,this.elementInternals.ariaChecked=this.role!==te.menuitem?`${!!this.checked}`:null}}oo([a({mode:"boolean"})],Qe.prototype,"disabled",2),oo([a],Qe.prototype,"role",2),oo([a({mode:"boolean"})],Qe.prototype,"checked",2),oo([a({mode:"boolean"})],Qe.prototype,"hidden",2),oo([g],Qe.prototype,"slottedSubmenu",2),oo([g],Qe.prototype,"submenu",2),Ue(Qe,Xe);const Qp=u`
445
445
  ${k("grid")}
446
446
 
447
- :host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${Se};contain:layout;cursor:pointer;flex-shrink:0;font:${A} ${B} / ${_} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ai};color:${Dt}}:host(:active){background-color:${sn};color:${Ht}}:host(:active) ::slotted([slot='start']){color:${Ml}}:host(${xe}){background-color:${rt};color:${I}}:host(${xe}) ::slotted([slot='start']),:host(${xe}) ::slotted([slot='end']){color:${I}}:host(:focus-visible){border-radius:${C};outline:2px solid ${ve}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${zi})) .submenu-glyph,:host(:not(${zi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${A} ${F} / ${R} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${zi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${zi}){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]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;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(X(p`
448
- :host(${xe}),:host(${xe}) ::slotted([slot='start']),:host(${xe}) ::slotted([slot='end']){color:GrayText}`)),Zp=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>'),Jp=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 eb(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${he(o.indicator)}</slot>${De(o)}<div part="content" class="content"><slot></slot></div>${ot(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${N({property:"slottedSubmenu"})}></slot></template>`}const tb=eb({indicator:Zp,submenuGlyph:Jp}),ob=Ye.compose({name:`${u.prefix}-menu-item`,template:tb,styles:Qp});ob.define(u.registry);var ib=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,sb=(o,e,t,i)=>{for(var r=i>1?void 0:i?rb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ib(e,t,r),r};const Hr=class Jr extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&ar(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>Up(e)||ar(e)&&e.getAttribute("role")in Jr.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Q.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(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case ho:this.setFocus(this.focusIndex+1,1);return;case bo:this.setFocus(this.focusIndex-1,-1);return;case go:this.setFocus(this.menuItems.length-1,-1);return;case mo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==te.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement),s=r?.reduce((n,c)=>{const h=Jr.elementIndent(c);return Math.max(n,h)},0);r?.forEach(n=>{n.dataset.indent=`${s}`})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};Hr.focusableElementRoles=te,sb([g],Hr.prototype,"items",2);let nb=Hr;const ab=p`
447
+ :host{--indent:0;align-items:center;background:${S};border-radius:${C};color:${Se};contain:layout;cursor:pointer;flex-shrink:0;font:${A} ${B} / ${_} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ai};color:${Ht}}:host(:active){background-color:${sn};color:${Lt}}:host(:active) ::slotted([slot='start']){color:${Ml}}:host(${xe}){background-color:${it};color:${I}}:host(${xe}) ::slotted([slot='start']),:host(${xe}) ::slotted([slot='end']){color:${I}}:host(:focus-visible){border-radius:${C};outline:2px solid ${ve}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${zi})) .submenu-glyph,:host(:not(${zi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${Z};font:${A} ${N} / ${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${zi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${zi}){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]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;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(X(u`
448
+ :host(${xe}),:host(${xe}) ::slotted([slot='start']),:host(${xe}) ::slotted([slot='end']){color:GrayText}`)),Zp=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>'),Jp=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 eb(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${he(o.indicator)}</slot>${He(o)}<div part="content" class="content"><slot></slot></div>${tt(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${V({property:"slottedSubmenu"})}></slot></template>`}const tb=eb({indicator:Zp,submenuGlyph:Jp}),ob=Qe.compose({name:`${p.prefix}-menu-item`,template:tb,styles:Qp});ob.define(p.registry);var ib=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,sb=(o,e,t,i)=>{for(var r=i>1?void 0:i?rb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ib(e,t,r),r};const Hr=class Jr extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&ar(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>Up(e)||ar(e)&&e.getAttribute("role")in Jr.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Q.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(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case uo:this.setFocus(this.focusIndex+1,1);return;case go:this.setFocus(this.focusIndex-1,-1);return;case fo:this.setFocus(this.menuItems.length-1,-1);return;case vo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==te.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement),s=r?.reduce((n,c)=>{const h=Jr.elementIndent(c);return Math.max(n,h)},0);r?.forEach(n=>{n.dataset.indent=`${s}`})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};Hr.focusableElementRoles=te,sb([g],Hr.prototype,"items",2);let nb=Hr;const ab=u`
449
449
  ${k("flex")}
450
450
 
451
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${J};border-radius:${C};box-shadow:${$r};padding:4px;row-gap:2px}`;function lb(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${N("items")}></slot></template>`}const cb=lb(),db=nb.compose({name:`${u.prefix}-menu-list`,template:cb,styles:ab});db.define(u.registry);var hb=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,dt=(o,e,t,i)=>{for(var r=i>1?void 0:i?ub(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&hb(e,t,r),r};class Qe extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ye&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Jo:case fo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Q.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(){Q.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Q.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}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(e){if(e.defaultPrevented)return;switch(e.key){case gl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case fl:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}dt([a({attribute:"open-on-hover",mode:"boolean"})],Qe.prototype,"openOnHover",2),dt([a({attribute:"open-on-context",mode:"boolean"})],Qe.prototype,"openOnContext",2),dt([a({attribute:"close-on-scroll",mode:"boolean"})],Qe.prototype,"closeOnScroll",2),dt([a({attribute:"persist-on-item-click",mode:"boolean"})],Qe.prototype,"persistOnItemClick",2),dt([a({mode:"boolean"})],Qe.prototype,"split",2),dt([g],Qe.prototype,"slottedMenuList",2),dt([g],Qe.prototype,"slottedTriggers",2),dt([g],Qe.prototype,"primaryAction",2);const pb=p`
451
+ :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${S};border:1px solid ${J};border-radius:${C};box-shadow:${$r};padding:4px;row-gap:2px}`;function lb(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${V("items")}></slot></template>`}const cb=lb(),db=nb.compose({name:`${p.prefix}-menu-list`,template:cb,styles:ab});db.define(p.registry);var hb=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?ub(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&hb(e,t,r),r};class Ze extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Qe&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Jo:case mo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Q.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(){Q.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Q.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}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(e){if(e.defaultPrevented)return;switch(e.key){case gl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case fl:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}ct([a({attribute:"open-on-hover",mode:"boolean"})],Ze.prototype,"openOnHover",2),ct([a({attribute:"open-on-context",mode:"boolean"})],Ze.prototype,"openOnContext",2),ct([a({attribute:"close-on-scroll",mode:"boolean"})],Ze.prototype,"closeOnScroll",2),ct([a({attribute:"persist-on-item-click",mode:"boolean"})],Ze.prototype,"persistOnItemClick",2),ct([a({mode:"boolean"})],Ze.prototype,"split",2),ct([g],Ze.prototype,"slottedMenuList",2),ct([g],Ze.prototype,"slottedTriggers",2),ct([g],Ze.prototype,"primaryAction",2);const pb=u`
452
452
  ${k("inline-block")}
453
453
 
454
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${T} solid ${Le};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function bb(){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,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${G("primaryAction")}></slot><slot name="trigger" ${N({property:"slottedTriggers",filter:tt()})}></slot><slot ${N({property:"slottedMenuList",filter:tt()})}></slot></template>`}const gb=bb(),fb=Qe.compose({name:`${u.prefix}-menu`,template:gb,styles:pb});fb.define(u.registry);var mb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,Lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?vb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mb(e,t,r),r};class Ei extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Lr([a],Ei.prototype,"shape",2),Lr([a],Ei.prototype,"layout",2),Lr([a],Ei.prototype,"intent",2);const $b=p`
455
- :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${F};line-height:${R};width:100%;background:${$o};border:1px solid ${Le};padding-inline:${le};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${kn};border-color:${tc}}:host([intent='warning']){background-color:${Cn};border-color:${Sn}}:host([intent='error']){background-color:${vn};border-color:${yn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
456
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Gt};padding-inline:${le}}.content{grid-area:body;max-width:520px;padding-block:${Gt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Oe}}:host([layout='multiline']) ::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:${Oe};gap:${Oe}}:host([layout='multiline']) .actions{margin-block-start:${Gt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${H}}::slotted(*){font-size:inherit}`;function yb(){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 xb=yb(),kb=Ei.compose({name:`${u.prefix}-message-bar`,template:xb,styles:$b,shadowOptions:{mode:u.shadowRootMode}});kb.define(u.registry);var wb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,ke=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wb(e,t,r),r};class ce extends ${constructor(){super(),this.active=!1,this.id=Zt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Q.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ce.formAssociated=!0,ke([g],ce.prototype,"active",2),ke([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),ke([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),ke([g],ce.prototype,"descriptionSlot",2),ke([g],ce.prototype,"disabled",2),ke([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),ke([a({attribute:"form"})],ce.prototype,"formAttribute",2),ke([a({mode:"boolean"})],ce.prototype,"freeform",2),ke([a({attribute:"id"})],ce.prototype,"id",2),ke([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),ke([g],ce.prototype,"multiple",2),ke([a],ce.prototype,"name",2),ke([g],ce.prototype,"start",2),ke([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const Ib=p`
454
+ ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${T} solid ${Ve};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function bb(){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,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${M("primaryAction")}></slot><slot name="trigger" ${V({property:"slottedTriggers",filter:Ft()})}></slot><slot ${V({property:"slottedMenuList",filter:Ft()})}></slot></template>`}const gb=bb(),fb=Ze.compose({name:`${p.prefix}-menu`,template:gb,styles:pb});fb.define(p.registry);var mb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,Lr=(o,e,t,i)=>{for(var r=i>1?void 0:i?vb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mb(e,t,r),r};class Ei extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Lr([a],Ei.prototype,"shape",2),Lr([a],Ei.prototype,"layout",2),Lr([a],Ei.prototype,"intent",2);const $b=u`
455
+ :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${N};line-height:${q};width:100%;background:${yo};border:1px solid ${Ve};padding-inline:${le};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${kn};border-color:${tc}}:host([intent='warning']){background-color:${Cn};border-color:${Sn}}:host([intent='error']){background-color:${vn};border-color:${yn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
456
+ 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Xt};padding-inline:${le}}.content{grid-area:body;max-width:520px;padding-block:${Xt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${Z};margin-inline-end:${Oe}}:host([layout='multiline']) ::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:${Oe};gap:${Oe}}:host([layout='multiline']) .actions{margin-block-start:${Xt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${H}}::slotted(*){font-size:inherit}`;function yb(){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 xb=yb(),kb=Ei.compose({name:`${p.prefix}-message-bar`,template:xb,styles:$b,shadowOptions:{mode:p.shadowRootMode}});kb.define(p.registry);var wb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,ke=(o,e,t,i)=>{for(var r=i>1?void 0:i?Cb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wb(e,t,r),r};class ce extends ${constructor(){super(),this.active=!1,this.id=Jt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Q.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ce.formAssociated=!0,ke([g],ce.prototype,"active",2),ke([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),ke([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),ke([g],ce.prototype,"descriptionSlot",2),ke([g],ce.prototype,"disabled",2),ke([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),ke([a({attribute:"form"})],ce.prototype,"formAttribute",2),ke([a({mode:"boolean"})],ce.prototype,"freeform",2),ke([a({attribute:"id"})],ce.prototype,"id",2),ke([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),ke([g],ce.prototype,"multiple",2),ke([a],ce.prototype,"name",2),ke([g],ce.prototype,"start",2),ke([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const Ib=u`
457
457
  ${k("inline-grid")}
458
458
 
459
459
  :host{-webkit-tap-highlight-color:transparent;${ta}
460
- align-items:center;background-color:${S};border-radius:${C};border:${pe} solid ${J};box-sizing:border-box;color:${Se};column-gap:${ne};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ee};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ai};color:${Dt}}:host(:active){background-color:${ur};color:${Ht}}:host(:disabled){background-color:${S};color:${I};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${_r}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Yt}) .checkmark-16-filled,:host(:not(${Yt})) .checkmark-12-regular{display:none}:host(${Yt}) .checkmark-12-regular{background-color:${S};border-radius:${Be};border:${T} solid ${He};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Yt}${_r}) .checkmark-12-regular{background-color:${mt};border-color:${yt};fill:${gt}}:host(:disabled${Yt}) .checkmark-12-regular{border-color:${Ce}}:host(:disabled${Yt}${_r}) .checkmark-12-regular{background-color:${rt}}:host(${Hh}){border:${pe} solid ${ve}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ee}}}:host(${jh}){column-gap:${ee};grid-template-areas:'indicator start content'
460
+ align-items:center;background-color:${S};border-radius:${C};border:${pe} solid ${J};box-sizing:border-box;color:${Se};column-gap:${ne};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ee};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ai};color:${Ht}}:host(:active){background-color:${ur};color:${Lt}}:host(:disabled){background-color:${S};color:${I};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${_r}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Qt}) .checkmark-16-filled,:host(:not(${Qt})) .checkmark-12-regular{display:none}:host(${Qt}) .checkmark-12-regular{background-color:${S};border-radius:${Be};border:${T} solid ${Le};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Qt}${_r}) .checkmark-12-regular{background-color:${ft};border-color:${$t};fill:${bt}}:host(:disabled${Qt}) .checkmark-12-regular{border-color:${Ce}}:host(:disabled${Qt}${_r}) .checkmark-12-regular{background-color:${it}}:host(${Hh}){border:${pe} solid ${ve}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ee}}}:host(${jh}){column-gap:${ee};grid-template-areas:'indicator start content'
461
461
  'indicator start description'}::slotted([slot='description']){color:${Z};grid-area:description;${oa}}`,Sb=b.partial(`
462
462
  <svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
463
463
  <path
@@ -469,75 +469,75 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
469
469
  d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"
470
470
  />
471
471
  </svg>
472
- `);function Pb(o={}){return b`<slot name="checked-indicator">${he(o.checkedIndicator)}</slot>${De(o)}<div class="content" part="content"><slot ${N({property:"freeformOutputs",filter:tt("output")})}></slot></div><div class="description" part="description"><slot name="description" ${N("descriptionSlot")}></slot></div>`}const zb=Pb({checkedIndicator:Sb}),Tb=ce.compose({name:`${u.prefix}-option`,template:zb,styles:Ib});Tb.define(u.registry);const Bb={success:"success",warning:"warning",error:"error"};var Ob=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,Ao=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ab(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ob(e,t,r),r};class oo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){Ct(this.elementInternals,e,t,Bb)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}connectedCallback(){super.connectedCallback(),this.setIndicatorWidth()}setIndicatorWidth(){if(!this.$fastController.isConnected||CSS.supports("width: attr(value type(<number>))"))return;if(typeof this.value!="number"){this.indicator.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e,s=r===0?0:Math.fround((i-e)/r*100);this.indicator.style.setProperty("width",`${s}%`)}}Ao([g],oo.prototype,"indicator",2),Ao([a({attribute:"validation-state"})],oo.prototype,"validationState",2),Ao([a({converter:re})],oo.prototype,"value",2),Ao([a({converter:re})],oo.prototype,"min",2),Ao([a({converter:re})],oo.prototype,"max",2);var _b=Object.defineProperty,Eb=Object.getOwnPropertyDescriptor,pa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Eb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_b(e,t,r),r};class Vr extends oo{}pa([a],Vr.prototype,"thickness",2),pa([a],Vr.prototype,"shape",2);const Nb=p`
472
+ `);function Pb(o={}){return b`<slot name="checked-indicator">${he(o.checkedIndicator)}</slot>${He(o)}<div class="content" part="content"><slot ${V({property:"freeformOutputs",filter:Ft("output")})}></slot></div><div class="description" part="description"><slot name="description" ${V("descriptionSlot")}></slot></div>`}const zb=Pb({checkedIndicator:Sb}),Tb=ce.compose({name:`${p.prefix}-option`,template:zb,styles:Ib});Tb.define(p.registry);const Bb={success:"success",warning:"warning",error:"error"};var Ob=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,_o=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ab(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ob(e,t,r),r};class io extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){wt(this.elementInternals,e,t,Bb)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}connectedCallback(){super.connectedCallback(),this.setIndicatorWidth()}setIndicatorWidth(){if(!this.$fastController.isConnected||CSS.supports("width: attr(value type(<number>))"))return;if(typeof this.value!="number"){this.indicator.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e,s=r===0?0:Math.fround((i-e)/r*100);this.indicator.style.setProperty("width",`${s}%`)}}_o([g],io.prototype,"indicator",2),_o([a({attribute:"validation-state"})],io.prototype,"validationState",2),_o([a({converter:re})],io.prototype,"value",2),_o([a({converter:re})],io.prototype,"min",2),_o([a({converter:re})],io.prototype,"max",2);var _b=Object.defineProperty,Eb=Object.getOwnPropertyDescriptor,pa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Eb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_b(e,t,r),r};class Vr extends io{}pa([a],Vr.prototype,"thickness",2),pa([a],Vr.prototype,"shape",2);const Nb=u`
473
473
  ${k("block")}
474
474
 
475
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${yo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${hi}}.indicator{background-color:${mt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
476
- to right,${yo} 0%,${me} 50%,${yo} 100%
477
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${$n}}:host([validation-state='warning']) .indicator{background-color:${In}}:host([validation-state='success']) .indicator{background-color:${wn}}@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(X(p`
478
- :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Fb(){return b`<div class="indicator" part="indicator" ${G("indicator")}></div>`}const Mb=Fb(),Db=Vr.compose({name:`${u.prefix}-progress-bar`,template:Mb,styles:Nb});Db.define(u.registry);class ba extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function ga(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const fa=fe;var Hb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,zt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hb(e,t,r),r};class Ze extends ${constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??fa.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??fa.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const r=bl(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===r,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),Q.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.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 e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,s)=>{const n=s===e;r.checked=n,n&&(i=s,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=ei(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===ga(this))??this.checkedIndex;let r=0;switch(e.key){case"ArrowLeft":{r=t?1:-1;break}case"ArrowUp":{r=-1;break}case"ArrowRight":{r=t?-1:1;break}case"ArrowDown":{r=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!r)return!0;const s=i+r;this.checkRadio(this.getEnabledIndexInBounds(s),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(ga(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,r)=>{i.tabIndex=r===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(e){Q.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof ba)})}}Ze.formAssociated=!0,zt([g],Ze.prototype,"checkedIndex",2),zt([a({attribute:"disabled",mode:"boolean"})],Ze.prototype,"disabled",2),zt([a({attribute:"value",mode:"fromView"})],Ze.prototype,"initialValue",2),zt([a],Ze.prototype,"name",2),zt([a],Ze.prototype,"orientation",2),zt([g],Ze.prototype,"radios",2),zt([a({mode:"boolean"})],Ze.prototype,"required",2);const Vb=p`
475
+ :host{width:100%;height:2px;overflow-x:hidden;background-color:${xo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${hi}}.indicator{background-color:${ft};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
476
+ to right,${xo} 0%,${me} 50%,${xo} 100%
477
+ );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${$n}}:host([validation-state='warning']) .indicator{background-color:${In}}:host([validation-state='success']) .indicator{background-color:${wn}}@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(X(u`
478
+ :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Fb(){return b`<div class="indicator" part="indicator" ${M("indicator")}></div>`}const Mb=Fb(),Db=Vr.compose({name:`${p.prefix}-progress-bar`,template:Mb,styles:Nb});Db.define(p.registry);class ba extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function ga(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const fa=fe;var Hb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,Pt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hb(e,t,r),r};class Je extends ${constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??fa.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??fa.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const r=bl(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===r,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),Q.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.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 e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,s)=>{const n=s===e;r.checked=n,n&&(i=s,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=ei(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===ga(this))??this.checkedIndex;let r=0;switch(e.key){case"ArrowLeft":{r=t?1:-1;break}case"ArrowUp":{r=-1;break}case"ArrowRight":{r=t?-1:1;break}case"ArrowDown":{r=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!r)return!0;const s=i+r;this.checkRadio(this.getEnabledIndexInBounds(s),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(ga(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,r)=>{i.tabIndex=r===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,i??this.enabledRadios[0])}}slotchangeHandler(e){Q.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof ba)})}}Je.formAssociated=!0,Pt([g],Je.prototype,"checkedIndex",2),Pt([a({attribute:"disabled",mode:"boolean"})],Je.prototype,"disabled",2),Pt([a({attribute:"value",mode:"fromView"})],Je.prototype,"initialValue",2),Pt([a],Je.prototype,"name",2),Pt([a],Je.prototype,"orientation",2),Pt([g],Je.prototype,"radios",2),Pt([a({mode:"boolean"})],Je.prototype,"required",2);const Vb=u`
479
479
  ${k("flex")}
480
480
 
481
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${mi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Se}}::slotted(:active){color:${z}}::slotted(${xe}){color:${I}}::slotted(${x}){color:${z}}:host([slot='input']){margin:${H} ${Oe}}`;function jb(){return b`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Rb=jb(),qb=Ze.compose({name:`${u.prefix}-radio-group`,template:Rb,styles:Vb});qb.define(u.registry);const Wb=p`
481
+ :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${mi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${Z}}::slotted(:hover){color:${Se}}::slotted(:active){color:${z}}::slotted(${xe}){color:${I}}::slotted(${x}){color:${z}}:host([slot='input']){margin:${H} ${Oe}}`;function jb(){return b`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Rb=jb(),qb=Je.compose({name:`${p.prefix}-radio-group`,template:Rb,styles:Vb});qb.define(p.registry);const Wb=u`
482
482
  ${k("inline-flex")}
483
483
 
484
- :host{--size:16px;aspect-ratio:1;background-color:${S};border:${T} solid ${He};border-radius:${$e};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${$e};color:${gt};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:${pe} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ve}}:host(:hover){border-color:${vt}}:host(${x}){border-color:${yt}}:host(${x}) .checked-indicator{background-color:${mt}}:host(${x}:hover) .checked-indicator{background-color:${Lt}}:host(:active){border-color:${$t}}:host(${x}:active) .checked-indicator{background-color:${Vt}}:host(:focus-visible){outline:none}:host(${xe}){background-color:${rt};border-color:${Ce}}:host(${x}${xe}) .checked-indicator{background-color:${Ce}}`.withBehaviors(X(p`
484
+ :host{--size:16px;aspect-ratio:1;background-color:${S};border:${T} solid ${Le};border-radius:${$e};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${$e};color:${bt};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:${pe} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${ve}}:host(:hover){border-color:${mt}}:host(${x}){border-color:${$t}}:host(${x}) .checked-indicator{background-color:${ft}}:host(${x}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${vt}}:host(${x}:active) .checked-indicator{background-color:${jt}}:host(:focus-visible){outline:none}:host(${xe}){background-color:${it};border-color:${Ce}}:host(${x}${xe}) .checked-indicator{background-color:${Ce}}`.withBehaviors(X(u`
485
485
  :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${xe}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${xe}):hover) .checked-indicator{background-color:Highlight}:host(${xe}){border-color:GrayText;color:GrayText}:host(${xe}${x}) .checked-indicator{background-color:GrayText}`)),Gb=b.partial(`
486
486
  <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
487
- `);function Xb(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${he(o.checkedIndicator)}</slot></template>`}const Ub=Xb({checkedIndicator:Gb}),Kb=ba.compose({name:`${u.prefix}-radio`,template:Ub,styles:Wb});Kb.define(u.registry);var Yb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,io=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yb(e,t,r),r};class Tt extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}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 e="",t;this.customIcon&&(t=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const i=this.getSelectedValue();for(let r=0;r<this.getMaxIcons();r++){const s=(r+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${s===i?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}io([a({converter:re})],Tt.prototype,"count",2),io([a({attribute:"icon-view-box"})],Tt.prototype,"iconViewBox",2),io([a({converter:re})],Tt.prototype,"max",2),io([a({converter:re})],Tt.prototype,"value",2),io([g],Tt.prototype,"slottedIcon",2),io([g],Tt.prototype,"customIcon",2);var Zb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Zb(e,t,r),r};class Ni extends Tt{constructor(){super(...arguments),this.compact=!1}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}jr([a],Ni.prototype,"color",2),jr([a],Ni.prototype,"size",2),jr([a({mode:"boolean"})],Ni.prototype,"compact",2);const eg=p`
487
+ `);function Xb(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${he(o.checkedIndicator)}</slot></template>`}const Ub=Xb({checkedIndicator:Gb}),Kb=ba.compose({name:`${p.prefix}-radio`,template:Ub,styles:Wb});Kb.define(p.registry);var Yb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,ro=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yb(e,t,r),r};class zt extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}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 e="",t;this.customIcon&&(t=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const i=this.getSelectedValue();for(let r=0;r<this.getMaxIcons();r++){const s=(r+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${s===i?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}ro([a({converter:re})],zt.prototype,"count",2),ro([a({attribute:"icon-view-box"})],zt.prototype,"iconViewBox",2),ro([a({converter:re})],zt.prototype,"max",2),ro([a({converter:re})],zt.prototype,"value",2),ro([g],zt.prototype,"slottedIcon",2),ro([g],zt.prototype,"customIcon",2);var Zb=Object.defineProperty,Jb=Object.getOwnPropertyDescriptor,jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Zb(e,t,r),r};class Ni extends zt{constructor(){super(...arguments),this.compact=!1}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}jr([a],Ni.prototype,"color",2),jr([a],Ni.prototype,"size",2),jr([a({mode:"boolean"})],Ni.prototype,"compact",2);const eg=u`
488
488
  ${k("inline-flex")}
489
489
 
490
- :host{--icon-size:16px;--icon-color-filled:${dc};--icon-color-empty:${zn};align-items:center;color:${z};font-family:${v};font-size:${F};line-height:${R};contain:layout style;user-select:none}:host([size='small']){--icon-size:12px}:host([size='large']){--icon-size:20px;font-size:${B};line-height:${_}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${q}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host([color='neutral']) svg{--icon-color-filled:${z}}:host([color='brand']) svg{--icon-color-filled:${ni}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host([color='neutral']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='neutral']) svg[selected] ~ svg{--icon-color-empty:${yo}}:host([color='brand']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='brand']) svg[selected] ~ svg{--icon-color-empty:${bn}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${ne};font-weight:${D}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${q}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ee}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${ne}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${q}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ee}}`.withBehaviors(X(p`
491
- :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}`)),tg=b`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function og(){return b` ${o=>b`${he(o.generateIcons())}`}<slot name="icon" ${N({property:"slottedIcon",filter:tt("svg")})}>${tg}</slot><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 ig=og(),rg=Ni.compose({name:`${u.prefix}-rating-display`,template:ig,styles:eg});rg.define(u.registry);const sg=fe,ng={singleValue:"single-value"};function ma(o,e,t,i){let r=lr(0,1,(o-e)/(t-e));return i===Me.rtl&&(r=1-r),r}var ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?lg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ag(e,t,r),r};class W extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Me.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=ng.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===fe.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(r)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const r=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===fe.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??sg.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`
492
- :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}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(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=lr(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(i!==e){this.value=i;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.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 e=parseFloat(this.min);if(!Number.isNaN(e))return e}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 e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??fe.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=ei(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==Me.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),i=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=i}decrement(){const e=this.direction!==Me.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),i=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=i}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case mo:e.preventDefault(),this.value=this.direction!==Me.rtl&&this.orientation!==fe.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case go:e.preventDefault(),this.value=this.direction!==Me.rtl&&this.orientation!==fe.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case po:case bo:e.shiftKey||(e.preventDefault(),this.increment());break;case uo:case ho:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=ma(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===fe.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}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(e){this.setupTrackConstraints();const t=ma(e,this.orientation===fe.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===fe.vertical?this.trackHeight:this.trackWidth,this.orientation===fe.vertical?void 0:this.direction),i=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const i=Math.round(t/this.stepAsNumber),r=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=r>=Number(this.stepAsNumber)/2?t-r+Number(this.stepAsNumber):t-r,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}W.formAssociated=!0,oe([a],W.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),oe([g],W.prototype,"direction",2),oe([g],W.prototype,"isDragging",2),oe([g],W.prototype,"position",2),oe([g],W.prototype,"trackWidth",2),oe([g],W.prototype,"trackMinWidth",2),oe([g],W.prototype,"trackHeight",2),oe([g],W.prototype,"trackLeft",2),oe([g],W.prototype,"trackMinHeight",2),oe([g],W.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],W.prototype,"disabled",2),oe([a({converter:nr})],W.prototype,"min",2),oe([a({converter:nr})],W.prototype,"max",2),oe([a({converter:nr})],W.prototype,"step",2),oe([a],W.prototype,"orientation",2),oe([a],W.prototype,"mode",2);const cg=p`
490
+ :host{--icon-size:16px;--icon-color-filled:${dc};--icon-color-empty:${zn};align-items:center;color:${z};font-family:${v};font-size:${N};line-height:${q};contain:layout style;user-select:none}:host([size='small']){--icon-size:12px}:host([size='large']){--icon-size:20px;font-size:${B};line-height:${_}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${W}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host([color='neutral']) svg{--icon-color-filled:${z}}:host([color='brand']) svg{--icon-color-filled:${ni}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host([color='neutral']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='neutral']) svg[selected] ~ svg{--icon-color-empty:${xo}}:host([color='brand']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='brand']) svg[selected] ~ svg{--icon-color-empty:${bn}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${ne};font-weight:${D}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${W}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ee}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${ne}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${W}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ee}}`.withBehaviors(X(u`
491
+ :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}`)),tg=b`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function og(){return b` ${o=>b`${he(o.generateIcons())}`}<slot name="icon" ${V({property:"slottedIcon",filter:Ft("svg")})}>${tg}</slot><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 ig=og(),rg=Ni.compose({name:`${p.prefix}-rating-display`,template:ig,styles:eg});rg.define(p.registry);const sg=fe,ng={singleValue:"single-value"};function ma(o,e,t,i){let r=lr(0,1,(o-e)/(t-e));return i===De.rtl&&(r=1-r),r}var ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?lg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ag(e,t,r),r};class G extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=De.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=ng.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===fe.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(r)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const r=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===fe.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??sg.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=u`
492
+ :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}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(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=lr(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(i!==e){this.value=i;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.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 e=parseFloat(this.min);if(!Number.isNaN(e))return e}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 e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??fe.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=ei(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==De.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),i=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=i}decrement(){const e=this.direction!==De.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),i=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=i}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case vo:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==fe.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case fo:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==fe.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case bo:case go:e.shiftKey||(e.preventDefault(),this.increment());break;case po:case uo:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=ma(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===fe.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}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(e){this.setupTrackConstraints();const t=ma(e,this.orientation===fe.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===fe.vertical?this.trackHeight:this.trackWidth,this.orientation===fe.vertical?void 0:this.direction),i=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const i=Math.round(t/this.stepAsNumber),r=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=r>=Number(this.stepAsNumber)/2?t-r+Number(this.stepAsNumber):t-r,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}G.formAssociated=!0,oe([a],G.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],G.prototype,"initialValue",2),oe([g],G.prototype,"direction",2),oe([g],G.prototype,"isDragging",2),oe([g],G.prototype,"position",2),oe([g],G.prototype,"trackWidth",2),oe([g],G.prototype,"trackMinWidth",2),oe([g],G.prototype,"trackHeight",2),oe([g],G.prototype,"trackLeft",2),oe([g],G.prototype,"trackMinHeight",2),oe([g],G.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],G.prototype,"disabled",2),oe([a({converter:nr})],G.prototype,"min",2),oe([a({converter:nr})],G.prototype,"max",2),oe([a({converter:nr})],G.prototype,"step",2),oe([a],G.prototype,"orientation",2),oe([a],G.prototype,"mode",2);const cg=u`
493
493
  ${k("inline-grid")}
494
494
 
495
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${mt};--track-color:${He};--slider-direction:90deg;--border-radius:${C};--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(:hover){--rail-color:${Lt}}:host(:active){--rail-color:${Vt}}:host(:disabled){--rail-color:${I};--track-color:${rt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Be}}:host([orientation='vertical']){--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 ${ve};outline:1px solid ${di}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
495
+ :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${ft};--track-color:${Le};--slider-direction:90deg;--border-radius:${C};--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(:hover){--rail-color:${Vt}}:host(:active){--rail-color:${jt}}:host(:disabled){--rail-color:${I};--track-color:${it}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Be}}:host([orientation='vertical']){--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 ${ve};outline:1px solid ${di}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
496
496
  var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
497
497
  );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .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(
498
498
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${S} calc(var(--step-rate) - 1px),${S} var(--step-rate)
499
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .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:${$e};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${S} inset;border:calc(var(--thumb-size) * 0.05) solid ${Le};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(X(p`
500
- .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 dg(o={}){return b`<template @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${G("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${G("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${he(o.thumb)}</slot></div></template>`}const hg=dg({thumb:'<div class="thumb"></div>'}),ug=W.compose({name:`${u.prefix}-slider`,template:hg,styles:cg});ug.define(u.registry);class pg extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var bg=Object.defineProperty,gg=Object.getOwnPropertyDescriptor,va=(o,e,t,i)=>{for(var r=i>1?void 0:i?gg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bg(e,t,r),r};class Rr extends pg{}va([a],Rr.prototype,"size",2),va([a],Rr.prototype,"appearance",2);const fg=p`
499
+ )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .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:${$e};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${S} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ve};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(X(u`
500
+ .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 dg(o={}){return b`<template @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${M("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${M("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${he(o.thumb)}</slot></div></template>`}const hg=dg({thumb:'<div class="thumb"></div>'}),ug=G.compose({name:`${p.prefix}-slider`,template:hg,styles:cg});ug.define(p.registry);class pg extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var bg=Object.defineProperty,gg=Object.getOwnPropertyDescriptor,va=(o,e,t,i)=>{for(var r=i>1?void 0:i?gg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bg(e,t,r),r};class Rr extends pg{}va([a],Rr.prototype,"size",2),va([a],Rr.prototype,"appearance",2);const fg=u`
501
501
  ${k("inline-flex")}
502
502
 
503
- :host{--duration:1.5s;--indicatorSize:${se};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${pe};--size:20px}:host([size='extra-small']){--indicatorSize:${pe};--size:24px}:host([size='small']){--indicatorSize:${pe};--size:28px}:host([size='large']){--indicatorSize:${se};--size:36px}:host([size='extra-large']){--indicatorSize:${se};--size:40px}:host([size='huge']){--indicatorSize:${yr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${xi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${fn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${gn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Kl}}.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(X(p`
504
- .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),mg=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>`,vg=Rr.compose({name:`${u.prefix}-spinner`,template:mg,styles:fg});vg.define(u.registry);class $g extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function yg(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${he(o.switch)}</slot></template>`}const xg=yg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),kg=p`
503
+ :host{--duration:1.5s;--indicatorSize:${se};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${pe};--size:20px}:host([size='extra-small']){--indicatorSize:${pe};--size:24px}:host([size='small']){--indicatorSize:${pe};--size:28px}:host([size='large']){--indicatorSize:${se};--size:36px}:host([size='extra-large']){--indicatorSize:${se};--size:40px}:host([size='huge']){--indicatorSize:${yr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${xi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${fn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${gn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Kl}}.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(X(u`
504
+ .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),mg=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>`,vg=Rr.compose({name:`${p.prefix}-spinner`,template:mg,styles:fg});vg.define(p.registry);class $g extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function yg(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${he(o.switch)}</slot></template>`}const xg=yg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),kg=u`
505
505
  ${k("inline-flex")}
506
506
 
507
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${q};width:40px;height:20px;background-color:${me};border:1px solid ${He};border-radius:${$e}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${vt}}:host(:active){border-color:${$t}}:host(:disabled),:host([readonly]){border:1px solid ${Ce};background-color:none;pointer:default}:host(${x}){background:${mt};border-color:${mt}}:host(${x}:hover){background:${Lt};border-color:${Lt}}:host(${x}:active){background:${Vt};border-color:${Vt}}:host(${x}:disabled){background:${rt};border-color:${Ce}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Z};transition-duration:${$i};transition-timing-function:${xi};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${gt};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Dl}}:host(${x}:active) .checked-indicator{background:${Hl}}:host(:hover) .checked-indicator{background-color:${zl}}:host(:active) .checked-indicator{background-color:${Tl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${I}}:host(${x}:disabled) .checked-indicator{background:${I}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${J};outline:${pe} solid ${J};box-shadow:${fi},0 0 0 2px ${ve}}`.withBehaviors(X(p`
508
- :host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}`)),wg=$g.compose({name:`${u.prefix}-switch`,template:xg,styles:kg});wg.define(u.registry);class Cg extends ${}function Ig(){return b`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Sg=Ig(),Pg=p`
507
+ :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${W};width:40px;height:20px;background-color:${me};border:1px solid ${Le};border-radius:${$e}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${mt}}:host(:active){border-color:${vt}}:host(:disabled),:host([readonly]){border:1px solid ${Ce};background-color:none;pointer:default}:host(${x}){background:${ft};border-color:${ft}}:host(${x}:hover){background:${Vt};border-color:${Vt}}:host(${x}:active){background:${jt};border-color:${jt}}:host(${x}:disabled){background:${it};border-color:${Ce}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${Z};transition-duration:${$i};transition-timing-function:${xi};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${bt};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Dl}}:host(${x}:active) .checked-indicator{background:${Hl}}:host(:hover) .checked-indicator{background-color:${zl}}:host(:active) .checked-indicator{background-color:${Tl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${I}}:host(${x}:disabled) .checked-indicator{background:${I}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${J};outline:${pe} solid ${J};box-shadow:${fi},0 0 0 2px ${ve}}`.withBehaviors(X(u`
508
+ :host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}`)),wg=$g.compose({name:`${p.prefix}-switch`,template:xg,styles:kg});wg.define(p.registry);class Cg extends ${}function Ig(){return b`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Sg=Ig(),Pg=u`
509
509
  ${k("block")}
510
510
 
511
- :host{box-sizing:border-box;padding:${le} ${ae}}`,zg=Cg.compose({name:`${u.prefix}-tab-panel`,template:Sg,styles:Pg});zg.define(u.registry);var Tg=Object.defineProperty,Bg=Object.getOwnPropertyDescriptor,Og=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Tg(e,t,r),r};class qr extends ${connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
512
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Og([a({mode:"boolean"})],qr.prototype,"disabled",2),Xe(qr,Ge);function Ag(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${De(o)}<span class="tab-content"><slot></slot></span>${ot(o)}</template>`}const _g=Ag({}),Eg=p`
511
+ :host{box-sizing:border-box;padding:${le} ${ae}}`,zg=Cg.compose({name:`${p.prefix}-tab-panel`,template:Sg,styles:Pg});zg.define(p.registry);var Tg=Object.defineProperty,Bg=Object.getOwnPropertyDescriptor,Og=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Tg(e,t,r),r};class qr extends ${connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
512
+ :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Og([a({mode:"boolean"})],qr.prototype,"disabled",2),Ue(qr,Xe);function Ag(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${He(o)}<span class="tab-content"><slot></slot></span>${tt(o)}</template>`}const _g=Ag({}),Eg=u`
513
513
  ${k("inline-flex")}
514
514
 
515
- :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${_};font-family:${v};font-size:${B};color:${Se};fill:currentcolor;grid-row:1;padding:${le} ${ae};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${z};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${_};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${yt};border-radius:${$e};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${jt};border-radius:${$e};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${I}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${I};color:${I}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Be};box-shadow:0 0 0 3px ${ve};outline:1px solid ${di}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}`.withBehaviors(X(p`
516
- :host([aria-selected='true'])::after{background-color:Highlight}`)),Ng=qr.compose({name:`${u.prefix}-tab`,template:_g,styles:Eg});Ng.define(u.registry);const Fg={subtle:"subtle",transparent:"transparent"},Fi=fe;var Mg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Mi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mg(e,t,r),r};class _o extends ${constructor(){super(...arguments),this.orientation=Fi.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case uo:e.preventDefault(),this.adjustBackward(e);break;case po:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case bo:e.preventDefault(),this.adjustBackward(e);break;case ho:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((r,s)=>{if(r.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(r),c=this.tabIds[s],h=this.tabpanelIds[s];r.setAttribute("id",c),r.setAttribute("aria-selected",n?"true":"false"),r.setAttribute("aria-controls",h),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=r,this.activeid=c)}r.style[e]="",r.style[t]="",r.style[i]=`${s+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mt()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Mt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Fi.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),r=lr(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Mi([a],_o.prototype,"orientation",2),Mi([a],_o.prototype,"activeid",2),Mi([g],_o.prototype,"tabs",2),Mi([g],_o.prototype,"tabpanels",2);var Hg=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,Wr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hg(e,t,r),r};class Eo extends _o{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=Fg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Fi.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Fi.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}getTabPositionData(e){const t=e.getBoundingClientRect(),i=this.getBoundingClientRect();return{x:t.x-i.x,y:t.y-i.y,height:t.height,width:t.width}}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,t=this.activetab||e[0];this.activeTabData=this.getTabPositionData(t),this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=p`
517
- :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=p`
518
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const i=this.tabs.find(r=>r.id===e);i&&(this.previousActiveTabData=this.getTabPositionData(i))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Wr([a],Eo.prototype,"appearance",2),Wr([a({mode:"boolean"})],Eo.prototype,"disabled",2),Wr([a],Eo.prototype,"size",2),Xe(Eo,Ge);function Vg(o={}){return b` ${De(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${N("tabs")}></slot></div>${ot(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${N("tabpanels")}></slot></div>`}const jg=Vg({}),Rg=p`
515
+ :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${_};font-family:${v};font-size:${B};color:${Se};fill:currentcolor;grid-row:1;padding:${le} ${ae};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${z};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${_};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${$t};border-radius:${$e};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Rt};border-radius:${$e};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${I}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${I};color:${I}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Be};box-shadow:0 0 0 3px ${ve};outline:1px solid ${di}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}`.withBehaviors(X(u`
516
+ :host([aria-selected='true'])::after{background-color:Highlight}`)),Ng=qr.compose({name:`${p.prefix}-tab`,template:_g,styles:Eg});Ng.define(p.registry);const Fg={subtle:"subtle",transparent:"transparent"},Fi=fe;var Mg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Mi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mg(e,t,r),r};class Eo extends ${constructor(){super(...arguments),this.orientation=Fi.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case po:e.preventDefault(),this.adjustBackward(e);break;case bo:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case go:e.preventDefault(),this.adjustBackward(e);break;case uo:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case vo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case fo:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((r,s)=>{if(r.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(r),c=this.tabIds[s],h=this.tabpanelIds[s];r.setAttribute("id",c),r.setAttribute("aria-selected",n?"true":"false"),r.setAttribute("aria-controls",h),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=r,this.activeid=c)}r.style[e]="",r.style[t]="",r.style[i]=`${s+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Dt()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Dt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Fi.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),r=lr(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Mi([a],Eo.prototype,"orientation",2),Mi([a],Eo.prototype,"activeid",2),Mi([g],Eo.prototype,"tabs",2),Mi([g],Eo.prototype,"tabpanels",2);var Hg=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,Wr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hg(e,t,r),r};class No extends Eo{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=Fg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Fi.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Fi.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}getTabPositionData(e){const t=e.getBoundingClientRect(),i=this.getBoundingClientRect();return{x:t.x-i.x,y:t.y-i.y,height:t.height,width:t.width}}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,t=this.activetab||e[0];this.activeTabData=this.getTabPositionData(t),this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=u`
517
+ :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=u`
518
+ :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const i=this.tabs.find(r=>r.id===e);i&&(this.previousActiveTabData=this.getTabPositionData(i))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Wr([a],No.prototype,"appearance",2),Wr([a({mode:"boolean"})],No.prototype,"disabled",2),Wr([a],No.prototype,"size",2),Ue(No,Xe);function Vg(o={}){return b` ${He(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${V("tabs")}></slot></div>${tt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${V("tabpanels")}></slot></div>`}const jg=Vg({}),Rg=u`
519
519
  ${k("grid")}
520
520
 
521
- :host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${_};color:${Se};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${I}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${I}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${I}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${I}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${I}}.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:${xo};color:${dr};fill:${on}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${ft};fill:${ft};color:${z}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${_};padding:${Ve} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${ye};padding:${mi} ${ae}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Vn};transition-timing-function:${Ir}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${$e};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};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:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Ve};padding-bottom:${Ve}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${qt};padding-bottom:${qt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${H};padding-bottom:${H}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}: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:${Ve};bottom:${Ve}}: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:${H};bottom:${H}}: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:${Gt};bottom:${Gt}}`,qg=Eo.compose({name:`${u.prefix}-tabs`,template:jg,styles:Rg});qg.define(u.registry);const Wg=o=>o.getAttribute("aria-disabled")==="true",Gg=o=>o.hasAttribute("hidden"),Di=o=>!Wg(o)&&!Gg(o);function Xg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Ug={subtle:"subtle",transparent:"transparent"},Bt=fe;var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,No=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kg(e,t,r),r};class ro extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Bt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&Di(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ei(this);switch(e.key){case uo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case po:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case ho:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.filter(i=>Di(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Bt.horizontal,Ct(this.elementInternals,e,t,Bt),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Xg(i))??[]}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs.some(t=>!!t.querySelector("[slot='start']"));this.tabs.forEach((t,i)=>{if(t.slot==="tab"){const r=this.activeTabIndex===i&&Di(t),s=this.tabIds[i];t.setAttribute("id",s),t.setAttribute("aria-selected",r?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=t,this.activeid=s),e&&this.orientation===Bt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Mt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===Bt.horizontal}adjust(e){const t=this.tabs.filter(n=>Di(n)),i=t.indexOf(this.activetab),r=ml(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}No([a({mode:"boolean"})],ro.prototype,"disabled",2),No([a],ro.prototype,"orientation",2),No([a],ro.prototype,"activeid",2),No([g],ro.prototype,"slottedTabs",2),No([g],ro.prototype,"tabs",2);var Qg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,$a=(o,e,t,i)=>{for(var r=i>1?void 0:i?Zg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Qg(e,t,r),r};class Gr extends ro{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ug.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Bt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Bt.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}$a([a],Gr.prototype,"appearance",2),$a([a],Gr.prototype,"size",2);const Jg=b`<template role="tablist"><slot name="tab" ${N("slottedTabs")}></slot></template>`,ef=p`
521
+ :host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${_};color:${Se};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${I}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${I}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${I}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${I}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${I}}.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:${ko};color:${dr};fill:${on}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${gt};fill:${gt};color:${z}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${_};padding:${je} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${ye};padding:${mi} ${ae}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Vn};transition-timing-function:${Ir}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${$e};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};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:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${je};padding-bottom:${je}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Wt};padding-bottom:${Wt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${H};padding-bottom:${H}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}: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:${je};bottom:${je}}: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:${H};bottom:${H}}: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:${Xt};bottom:${Xt}}`,qg=No.compose({name:`${p.prefix}-tabs`,template:jg,styles:Rg});qg.define(p.registry);const Wg=o=>o.getAttribute("aria-disabled")==="true",Gg=o=>o.hasAttribute("hidden"),Di=o=>!Wg(o)&&!Gg(o);function Xg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Ug={subtle:"subtle",transparent:"transparent"},Tt=fe;var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,Fo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kg(e,t,r),r};class so extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Tt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&Di(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ei(this);switch(e.key){case po:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case bo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case go:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case uo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case vo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case fo:e.preventDefault(),this.adjust(this.tabs.filter(i=>Di(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Tt.horizontal,wt(this.elementInternals,e,t,Tt),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Xg(i))??[]}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs.some(t=>!!t.querySelector("[slot='start']"));this.tabs.forEach((t,i)=>{if(t.slot==="tab"){const r=this.activeTabIndex===i&&Di(t),s=this.tabIds[i];t.setAttribute("id",s),t.setAttribute("aria-selected",r?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=t,this.activeid=s),e&&this.orientation===Tt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Dt()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===Tt.horizontal}adjust(e){const t=this.tabs.filter(n=>Di(n)),i=t.indexOf(this.activetab),r=ml(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}Fo([a({mode:"boolean"})],so.prototype,"disabled",2),Fo([a],so.prototype,"orientation",2),Fo([a],so.prototype,"activeid",2),Fo([g],so.prototype,"slottedTabs",2),Fo([g],so.prototype,"tabs",2);var Qg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,$a=(o,e,t,i)=>{for(var r=i>1?void 0:i?Zg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Qg(e,t,r),r};class Gr extends so{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ug.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Tt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Tt.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}$a([a],Gr.prototype,"appearance",2),$a([a],Gr.prototype,"size",2);const Jg=b`<template role="tablist"><slot name="tab" ${V("slottedTabs")}></slot></template>`,ef=u`
522
522
  ${k("flex")}
523
523
 
524
- :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Se};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Vn};transition-timing-function:${Ir}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${$e};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:${I}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Ve};--tabPaddingInline:${ee};font-size:${B};line-height:${_}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${mi};--tabPaddingInline:${ae};font-size:${ue};line-height:${ye}}: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:${ae}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ae}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${qt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${H}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${Ve}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Gt}}:host([disabled]){cursor:not-allowed;color:${I}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${I}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${I}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${I}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${xo};color:${dr};fill:${on}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${ft};fill:${ft};color:${z}}`,tf=Gr.compose({name:`${u.prefix}-tablist`,template:Jg,styles:ef});tf.define(u.registry);const of={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Hi={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var rf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,de=(o,e,t,i)=>{for(var r=i>1?void 0:i?sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rf(e,t,r),r};class K extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],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=Hi.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(en),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(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.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){Ct(this.elementInternals,e,t,Hi,"resize-"),y(this.elementInternals,"resize",Gn(Hi,t)&&t!==Hi.none)}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(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),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(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,i??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(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.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(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(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((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.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")}}K.formAssociated=!0,de([g],K.prototype,"defaultSlottedNodes",2),de([g],K.prototype,"labelSlottedNodes",2),de([a],K.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],K.prototype,"autoResize",2),de([a({attribute:"dirname"})],K.prototype,"dirName",2),de([a({mode:"boolean"})],K.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],K.prototype,"displayShadow",2),de([a({attribute:"form"})],K.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:re})],K.prototype,"maxLength",2),de([a({attribute:"minlength",converter:re})],K.prototype,"minLength",2),de([a],K.prototype,"name",2),de([a],K.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],K.prototype,"readOnly",2),de([a({mode:"boolean"})],K.prototype,"required",2),de([a({mode:"fromView"})],K.prototype,"resize",2),de([a({mode:"boolean"})],K.prototype,"spellcheck",2);var nf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?af(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&nf(e,t,r),r};class Li extends K{constructor(){super(...arguments),this.appearance=of.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Xr([a({mode:"fromView"})],Li.prototype,"appearance",2),Xr([a({mode:"boolean"})],Li.prototype,"block",2),Xr([a],Li.prototype,"size",2);const lf=p`
524
+ :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Se};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Vn};transition-timing-function:${Ir}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${$e};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:${I}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${je};--tabPaddingInline:${ee};font-size:${B};line-height:${_}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${mi};--tabPaddingInline:${ae};font-size:${ue};line-height:${ye}}: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:${ae}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ae}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Wt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${H}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${H}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${je}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Xt}}:host([disabled]){cursor:not-allowed;color:${I}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${I}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${I}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${I}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ko};color:${dr};fill:${on}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${gt};fill:${gt};color:${z}}`,tf=Gr.compose({name:`${p.prefix}-tablist`,template:Jg,styles:ef});tf.define(p.registry);const of={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Hi={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var rf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,de=(o,e,t,i)=>{for(var r=i>1?void 0:i?sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&rf(e,t,r),r};class K extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],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=Hi.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(en),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(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.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){wt(this.elementInternals,e,t,Hi,"resize-"),y(this.elementInternals,"resize",Gn(Hi,t)&&t!==Hi.none)}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(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),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(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,i??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(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.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(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(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((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.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")}}K.formAssociated=!0,de([g],K.prototype,"defaultSlottedNodes",2),de([g],K.prototype,"labelSlottedNodes",2),de([a],K.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],K.prototype,"autoResize",2),de([a({attribute:"dirname"})],K.prototype,"dirName",2),de([a({mode:"boolean"})],K.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],K.prototype,"displayShadow",2),de([a({attribute:"form"})],K.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:re})],K.prototype,"maxLength",2),de([a({attribute:"minlength",converter:re})],K.prototype,"minLength",2),de([a],K.prototype,"name",2),de([a],K.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],K.prototype,"readOnly",2),de([a({mode:"boolean"})],K.prototype,"required",2),de([a({mode:"fromView"})],K.prototype,"resize",2),de([a({mode:"boolean"})],K.prototype,"spellcheck",2);var nf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?af(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&nf(e,t,r),r};class Li extends K{constructor(){super(...arguments),this.appearance=of.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Xr([a({mode:"fromView"})],Li.prototype,"appearance",2),Xr([a({mode:"boolean"})],Li.prototype,"block",2),Xr([a],Li.prototype,"size",2);const lf=u`
525
525
  ${k("inline-block")}
526
526
 
527
- :host{--font-size:${B};--line-height:${_};--padding-inline:${ae};--padding-block:${Ve};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${T};--control-padding-inline:${q};--color:${z};--background-color:${S};--border-color:${Le};--border-block-end-color:${He};--placeholder-color:${hr};--focus-indicator-color:${yt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${A};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${jt};--border-block-end-color:${vt}}:host(:active){--border-color:${ko};--border-block-end-color:${$t}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${F};--line-height:${R};--min-block-size:40px;--padding-block:${Wt};--padding-inline:${ee};--control-padding-inline:${q}}:host([size='large']){--font-size:${ue};--line-height:${ye};--min-block-size:64px;--padding-block:${H};--padding-inline:${le};--control-padding-inline:${ee}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${$o};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${vr}}:host(${tu}){--border-color:${gr};--border-block-end-color:${gr}}:host(:disabled){--color:${I};--background-color:${me};--border-color:${Ce};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${I};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:${C};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([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${kt};transition-duration:${wr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${wt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Wt};padding-inline-end:${ne}}: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([auto-resize]) .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:${gt};background-color:${nn}}`.withBehaviors(X(p`
528
- :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 cf(){return b`<template><label ${G("labelEl")} for="control" part="label"><slot name="label" ${N("labelSlottedNodes")}></slot></label><div class="root" part="root"><textarea ${G("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 ${N("defaultSlottedNodes")}></slot></div></template>`}const df=cf(),hf=Li.compose({name:`${u.prefix}-textarea`,template:df,styles:lf,shadowOptions:{delegatesFocus:!0}});hf.define(u.registry);const uf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},pf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var bf=Object.defineProperty,gf=Object.getOwnPropertyDescriptor,E=(o,e,t,i)=>{for(var r=i>1?void 0:i?gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bf(e,t,r),r};class O extends ${constructor(){super(...arguments),this.type=uf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){this.setValidity()}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.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 e=[...this.elementInternals.form.elements],t=e.find(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>pf.includes(r.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}O.formAssociated=!0,E([a],O.prototype,"autocomplete",2),E([a({mode:"boolean"})],O.prototype,"autofocus",2),E([a({attribute:"current-value"})],O.prototype,"currentValue",2),E([g],O.prototype,"defaultSlottedNodes",2),E([a],O.prototype,"dirname",2),E([a({mode:"boolean"})],O.prototype,"disabled",2),E([a({attribute:"form"})],O.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),E([a],O.prototype,"list",2),E([a({converter:re})],O.prototype,"maxlength",2),E([a({converter:re})],O.prototype,"minlength",2),E([a({mode:"boolean"})],O.prototype,"multiple",2),E([a],O.prototype,"name",2),E([a],O.prototype,"pattern",2),E([a],O.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),E([a({mode:"boolean"})],O.prototype,"required",2),E([a({converter:re})],O.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),E([a],O.prototype,"type",2),E([g],O.prototype,"control",2),E([g],O.prototype,"controlLabel",2);var ff=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,ya=(o,e,t,i)=>{for(var r=i>1?void 0:i?mf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ff(e,t,r),r};class Vi extends O{}ya([a],Vi.prototype,"appearance",2),ya([a({attribute:"control-size"})],Vi.prototype,"controlSize",2),Xe(Vi,Ge);const vf=p`
527
+ :host{--font-size:${B};--line-height:${_};--padding-inline:${ae};--padding-block:${je};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${T};--control-padding-inline:${W};--color:${z};--background-color:${S};--border-color:${Ve};--border-block-end-color:${Le};--placeholder-color:${hr};--focus-indicator-color:${$t};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${A};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Rt};--border-block-end-color:${mt}}:host(:active){--border-color:${wo};--border-block-end-color:${vt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${N};--line-height:${q};--min-block-size:40px;--padding-block:${Gt};--padding-inline:${ee};--control-padding-inline:${W}}:host([size='large']){--font-size:${ue};--line-height:${ye};--min-block-size:64px;--padding-block:${H};--padding-inline:${le};--control-padding-inline:${ee}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${yo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${vr}}:host(${tu}){--border-color:${gr};--border-block-end-color:${gr}}:host(:disabled){--color:${I};--background-color:${me};--border-color:${Ce};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${I};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:${C};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([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${xt};transition-duration:${wr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${kt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Gt};padding-inline-end:${ne}}: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([auto-resize]) .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:${bt};background-color:${nn}}`.withBehaviors(X(u`
528
+ :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 cf(){return b`<template><label ${M("labelEl")} for="control" part="label"><slot name="label" ${V("labelSlottedNodes")}></slot></label><div class="root" part="root"><textarea ${M("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 ${V("defaultSlottedNodes")}></slot></div></template>`}const df=cf(),hf=Li.compose({name:`${p.prefix}-textarea`,template:df,styles:lf,shadowOptions:{delegatesFocus:!0}});hf.define(p.registry);const uf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},pf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var bf=Object.defineProperty,gf=Object.getOwnPropertyDescriptor,E=(o,e,t,i)=>{for(var r=i>1?void 0:i?gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bf(e,t,r),r};class O extends ${constructor(){super(...arguments),this.type=uf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){this.setValidity()}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.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 e=[...this.elementInternals.form.elements],t=e.find(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>pf.includes(r.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}O.formAssociated=!0,E([a],O.prototype,"autocomplete",2),E([a({mode:"boolean"})],O.prototype,"autofocus",2),E([a({attribute:"current-value"})],O.prototype,"currentValue",2),E([g],O.prototype,"defaultSlottedNodes",2),E([a],O.prototype,"dirname",2),E([a({mode:"boolean"})],O.prototype,"disabled",2),E([a({attribute:"form"})],O.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),E([a],O.prototype,"list",2),E([a({converter:re})],O.prototype,"maxlength",2),E([a({converter:re})],O.prototype,"minlength",2),E([a({mode:"boolean"})],O.prototype,"multiple",2),E([a],O.prototype,"name",2),E([a],O.prototype,"pattern",2),E([a],O.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),E([a({mode:"boolean"})],O.prototype,"required",2),E([a({converter:re})],O.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),E([a],O.prototype,"type",2),E([g],O.prototype,"control",2),E([g],O.prototype,"controlLabel",2);var ff=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,ya=(o,e,t,i)=>{for(var r=i>1?void 0:i?mf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ff(e,t,r),r};class Vi extends O{}ya([a],Vi.prototype,"appearance",2),ya([a({attribute:"control-size"})],Vi.prototype,"controlSize",2),Ue(Vi,Xe);const vf=u`
529
529
  ${k("block")}
530
530
 
531
- :host{font-family:${v};font-size:${B};font-weight:${A};line-height:${_};max-width:400px}.label{display:flex;color:${z};padding-bottom:${Wt};flex-shrink:0;padding-inline-end:${ne}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${S};border:${T} solid ${Le};border-bottom-color:${He};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${q};padding:0 ${ae};position:relative;width:100%}:has(.control:user-invalid){border-color:${gr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${yt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${wr};transition-delay:${kt}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${C};background:${me};font-family:${v};font-weight:${A};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${hr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${Rt}}:host ::slotted([slot='start']){padding-right:${q}}:host ::slotted([slot='end']){padding-left:${q};gap:${ne}}:host(:hover) .root{border-color:${jt};border-bottom-color:${vt}}:host(:active) .root{border-color:${ko}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${wt}}:host(:focus-within:active) .root:after{border-bottom-color:${mn}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${Le}}:host(:focus-within) .control{color:${z}}:host([disabled]) .root{background:${me};border:${T} solid ${Ce}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${I}}::selection{color:${gt};background-color:${nn}}:host([control-size='small']) .control{font-size:${F};font-weight:${A};line-height:${R}}:host([control-size='small']) .root{height:24px;gap:${q};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${A};line-height:${ye}}:host([control-size='large']) .root{height:40px;gap:${Oe};padding:0 ${le}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ui}}:host([appearance='underline']) .root{background:${me};border:0;border-radius:0;border-bottom:${T} solid ${He}}:host([appearance='underline']:hover) .root{border-bottom-color:${vt}}:host([appearance='underline']:active) .root{border-bottom-color:${$t}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${$t}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Ce}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${vr}}:host([appearance='filled-lighter']) .root{background:${S}}:host([appearance='filled-darker']) .root{background:${$o}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${br}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${br};background:${$o}}`;function $f(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${G("controlLabel")}><slot ${N({property:"defaultSlottedNodes",filter:en})}></slot></label><div class="root" part="root">${De(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${G("control")} />${ot(o)}</div></template>`}const yf=$f(),xf=Vi.compose({name:`${u.prefix}-text-input`,template:yf,styles:vf,shadowOptions:{delegatesFocus:!0}});xf.define(u.registry);var kf=Object.defineProperty,wf=Object.getOwnPropertyDescriptor,qe=(o,e,t,i)=>{for(var r=i>1?void 0:i?wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&kf(e,t,r),r};class Ae extends ${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}}qe([a({mode:"boolean"})],Ae.prototype,"nowrap",2),qe([a({mode:"boolean"})],Ae.prototype,"truncate",2),qe([a({mode:"boolean"})],Ae.prototype,"italic",2),qe([a({mode:"boolean"})],Ae.prototype,"underline",2),qe([a({mode:"boolean"})],Ae.prototype,"strikethrough",2),qe([a({mode:"boolean"})],Ae.prototype,"block",2),qe([a],Ae.prototype,"size",2),qe([a],Ae.prototype,"font",2),qe([a],Ae.prototype,"weight",2),qe([a],Ae.prototype,"align",2);const Cf=p`
531
+ :host{font-family:${v};font-size:${B};font-weight:${A};line-height:${_};max-width:400px}.label{display:flex;color:${z};padding-bottom:${Gt};flex-shrink:0;padding-inline-end:${ne}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${S};border:${T} solid ${Ve};border-bottom-color:${Le};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${W};padding:0 ${ae};position:relative;width:100%}:has(.control:user-invalid){border-color:${gr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${$t};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${wr};transition-delay:${xt}}.control{width:100%;height:100%;box-sizing:border-box;color:${z};border-radius:${C};background:${me};font-family:${v};font-weight:${A};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${hr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${Z};font-size:${qt}}:host ::slotted([slot='start']){padding-right:${W}}:host ::slotted([slot='end']){padding-left:${W};gap:${ne}}:host(:hover) .root{border-color:${Rt};border-bottom-color:${mt}}:host(:active) .root{border-color:${wo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${kt}}:host(:focus-within:active) .root:after{border-bottom-color:${mn}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${Ve}}:host(:focus-within) .control{color:${z}}:host([disabled]) .root{background:${me};border:${T} solid ${Ce}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${I}}::selection{color:${bt};background-color:${nn}}:host([control-size='small']) .control{font-size:${N};font-weight:${A};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${W};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${A};line-height:${ye}}:host([control-size='large']) .root{height:40px;gap:${Oe};padding:0 ${le}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ui}}:host([appearance='underline']) .root{background:${me};border:0;border-radius:0;border-bottom:${T} solid ${Le}}:host([appearance='underline']:hover) .root{border-bottom-color:${mt}}:host([appearance='underline']:active) .root{border-bottom-color:${vt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${vt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Ce}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${vr}}:host([appearance='filled-lighter']) .root{background:${S}}:host([appearance='filled-darker']) .root{background:${yo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${br}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${br};background:${yo}}`;function $f(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${M("controlLabel")}><slot ${V({property:"defaultSlottedNodes",filter:en})}></slot></label><div class="root" part="root">${He(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${M("control")} />${tt(o)}</div></template>`}const yf=$f(),xf=Vi.compose({name:`${p.prefix}-text-input`,template:yf,styles:vf,shadowOptions:{delegatesFocus:!0}});xf.define(p.registry);var kf=Object.defineProperty,wf=Object.getOwnPropertyDescriptor,We=(o,e,t,i)=>{for(var r=i>1?void 0:i?wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&kf(e,t,r),r};class Ae extends ${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}}We([a({mode:"boolean"})],Ae.prototype,"nowrap",2),We([a({mode:"boolean"})],Ae.prototype,"truncate",2),We([a({mode:"boolean"})],Ae.prototype,"italic",2),We([a({mode:"boolean"})],Ae.prototype,"underline",2),We([a({mode:"boolean"})],Ae.prototype,"strikethrough",2),We([a({mode:"boolean"})],Ae.prototype,"block",2),We([a],Ae.prototype,"size",2),We([a],Ae.prototype,"font",2),We([a],Ae.prototype,"weight",2),We([a],Ae.prototype,"align",2);const Cf=u`
532
532
  ${k("inline")}
533
533
 
534
- :host{font-family:${v};font-size:${B};line-height:${_};font-weight:${A};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${Co};line-height:${bi}}:host([size='200']){font-size:${F};line-height:${R}}:host([size='400']){font-size:${ue};line-height:${ye}}:host([size='500']){font-size:${Rt};line-height:${gi}}:host([size='600']){font-size:${ui};line-height:${Nn}}:host([size='700']){font-size:${On};line-height:${Fn}}:host([size='800']){font-size:${An};line-height:${Mn}}:host([size='900']){font-size:${_n};line-height:${Dn}}:host([size='1000']){font-size:${En};line-height:${Hn}}:host([font='monospace']){font-family:${bd}}:host([font='numeric']){font-family:${gd}}:host([weight='medium']){font-weight:${fd}}:host([weight='semibold']){font-weight:${D}}:host([weight='bold']){font-weight:${pi}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,If=b`<slot></slot>`,Sf=Ae.compose({name:`${u.prefix}-text`,template:If,styles:Cf});Sf.define(u.registry);var Pf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?zf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pf(e,t,r),r};class Ur extends Ke{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}xa([a({mode:"boolean"})],Ur.prototype,"pressed",2),xa([a({mode:"boolean"})],Ur.prototype,"mixed",2);const Tf=p`
534
+ :host{font-family:${v};font-size:${B};line-height:${_};font-weight:${A};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${Io};line-height:${bi}}:host([size='200']){font-size:${N};line-height:${q}}:host([size='400']){font-size:${ue};line-height:${ye}}:host([size='500']){font-size:${qt};line-height:${gi}}:host([size='600']){font-size:${ui};line-height:${Nn}}:host([size='700']){font-size:${On};line-height:${Fn}}:host([size='800']){font-size:${An};line-height:${Mn}}:host([size='900']){font-size:${_n};line-height:${Dn}}:host([size='1000']){font-size:${En};line-height:${Hn}}:host([font='monospace']){font-family:${bd}}:host([font='numeric']){font-family:${gd}}:host([weight='medium']){font-weight:${fd}}:host([weight='semibold']){font-weight:${D}}:host([weight='bold']){font-weight:${pi}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,If=b`<slot></slot>`,Sf=Ae.compose({name:`${p.prefix}-text`,template:If,styles:Cf});Sf.define(p.registry);var Pf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?zf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pf(e,t,r),r};class Ur extends Ye{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}xa([a({mode:"boolean"})],Ur.prototype,"pressed",2),xa([a({mode:"boolean"})],Ur.prototype,"mixed",2);const Tf=u`
535
535
  ${Ci}
536
536
 
537
- :host(${M}){border-color:${Le};background-color:${sn};color:${z};border-width:${T}}:host(${M}:hover){border-color:${jt};background-color:${ai}}:host(${M}:active){border-color:${ko};background-color:${ur}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${Xl};color:${Ue}}:host(${M}[appearance='primary']:hover){background-color:${hn}}:host(${M}[appearance='primary']:active){background-color:${un}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${ln};color:${ii}}:host(${M}[appearance='subtle']:hover){background-color:${xo};color:${Dt}}:host(${M}[appearance='subtle']:active){background-color:${ft};color:${Ht}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${cn}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${li}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${ci}}:host(${M}[appearance='transparent']){border-color:transparent;color:${Pl}}:host(${M}[appearance='transparent']:hover){color:${ri}}:host(${M}[appearance='transparent']:active){color:${si}}`.withBehaviors(X(p`
538
- :host(${M}),:host(
539
- ${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
540
- ){background:SelectedItem;color:SelectedItemText}`)),Bf=Or(),Of=Ur.compose({name:`${u.prefix}-toggle-button`,template:Bf,styles:Tf});Of.define(u.registry);var Af=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,ji=(o,e,t,i)=>{for(var r=i>1?void 0:i?_f(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Af(e,t,r),r};class Fo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Mt("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){ti||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),ti){xl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}Q.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}setFallbackStyles(){if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,i]=this.positioning?.split("-")??[];i||((t==="above"||t==="below")&&(i="centerX"),(t==="before"||t==="after")&&(i="centerY"));const r={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=r[t]??r.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
537
+ :host(${F}){border-color:${Ve};background-color:${sn};color:${z};border-width:${T}}:host(${F}:hover){border-color:${Rt};background-color:${ai}}:host(${F}:active){border-color:${wo};background-color:${ur}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${Xl};color:${Ke}}:host(${F}[appearance='primary']:hover){background-color:${hn}}:host(${F}[appearance='primary']:active){background-color:${un}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${ln};color:${ii}}:host(${F}[appearance='subtle']:hover){background-color:${ko};color:${Ht}}:host(${F}[appearance='subtle']:active){background-color:${gt};color:${Lt}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${cn}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${li}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${ci}}:host(${F}[appearance='transparent']){border-color:transparent;color:${Pl}}:host(${F}[appearance='transparent']:hover){color:${ri}}:host(${F}[appearance='transparent']:active){color:${si}}`.withBehaviors(X(u`
538
+ :host(${F}),:host(
539
+ ${F}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
540
+ ){background:SelectedItem;color:SelectedItemText}`)),Bf=Or(),Of=Ur.compose({name:`${p.prefix}-toggle-button`,template:Bf,styles:Tf});Of.define(p.registry);var Af=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,ji=(o,e,t,i)=>{for(var r=i>1?void 0:i?_f(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Af(e,t,r),r};class Mo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Dt("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){ti||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),ti){xl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}Q.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}setFallbackStyles(){if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,i]=this.positioning?.split("-")??[];i||((t==="above"||t==="below")&&(i="centerX"),(t==="before"||t==="after")&&(i="centerY"));const r={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=r[t]??r.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
541
541
  #${this.anchor} {
542
542
  anchor-name: ${e};
543
543
  }
@@ -548,15 +548,15 @@ const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
548
548
  ${s}
549
549
  ${c}
550
550
  }
551
- `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}ji([a],Fo.prototype,"id",2),ji([a({converter:re})],Fo.prototype,"delay",2),ji([a],Fo.prototype,"positioning",2),ji([a],Fo.prototype,"anchor",2);const Te={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Ef=p`
551
+ `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}ji([a],Mo.prototype,"id",2),ji([a({converter:re})],Mo.prototype,"delay",2),ji([a],Mo.prototype,"positioning",2),ji([a],Mo.prototype,"anchor",2);const Te={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Ef=u`
552
552
  ${k("inline-flex")}
553
553
 
554
- :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Wt};--inline-offset:${ne};background:${S};border-radius:${C};border:1px solid ${J};box-sizing:border-box;color:${z};display:inline-flex;filter:drop-shadow(0 0 2px ${Ql}) drop-shadow(0 4px 8px ${Zl});font-family:${v};font-size:${F};inset:unset;line-height:${R};margin:unset;max-width:240px;overflow:visible;padding:4px ${ae} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Te["above-start"]}}:host([positioning='above']){--position-area:${Te.above}}:host([positioning='above-end']){--position-area:${Te["above-end"]}}:host([positioning='below-start']){--position-area:${Te["below-start"]}}:host([positioning='below']){--position-area:${Te.below}}:host([positioning='below-end']){--position-area:${Te["below-end"]}}:host([positioning='before-top']){--position-area:${Te["before-top"]}}:host([positioning='before']){--position-area:${Te.before}}:host([positioning='before-bottom']){--position-area:${Te["before-bottom"]}}:host([positioning='after-top']){--position-area:${Te["after-top"]}}:host([positioning='after']){--position-area:${Te.after}}:host([positioning='after-bottom']){--position-area:${Te["after-bottom"]}}`,Nf=b`<template popover aria-hidden="true"><slot></slot></template>`,Ff=Fo.compose({name:`${u.prefix}-tooltip`,template:Nf,styles:Ef});Ff.define(u.registry);const ka={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},wa={small:"small",medium:"medium"};function Je(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Ca=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mf(e,t,r),r};class Kr extends ${constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.childTreeItems=[],this.elementInternals.role="tree"}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Je(t)||this.childTreeItems.length<1)return!0;const i=this.getVisibleNodes();switch(e.key){case mo:{i.length&&i[0].focus();return}case go:{i.length&&i[i.length-1].focus();return}case uo:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Je(t.parentElement)&&t.parentElement.focus();return}case po:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case ho:{this.focusNextNode(1,t);return}case bo:{this.focusNextNode(-1,t);return}case fo:{this.clickHandler(e);return}case Jo:{t.selected=!0;return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused=this.getValidFocusableItem(),this.currentFocused&&this.currentFocused.tabIndex<0&&(this.currentFocused.tabIndex=0),this.currentFocused?.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!Je(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Je(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Je(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(i=>i.selected);return t===-1&&(t=e.findIndex(i=>Je(i))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>Je(e)&&e.offsetParent!==null)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i.length)return;const r=i[i.indexOf(t)+e];ar(r)&&r.focus()}}Ca([g],Kr.prototype,"currentSelected",2),Ca([g],Kr.prototype,"childTreeItems",2);var Hf=Object.defineProperty,Lf=Object.getOwnPropertyDescriptor,Ia=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hf(e,t,r),r};class Yr extends Kr{constructor(){super(...arguments),this.size=wa.small,this.appearance=ka.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Ia([a],Yr.prototype,"size",2),Ia([a],Yr.prototype,"appearance",2);const Vf=p`
554
+ :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Gt};--inline-offset:${ne};background:${S};border-radius:${C};border:1px solid ${J};box-sizing:border-box;color:${z};display:inline-flex;filter:drop-shadow(0 0 2px ${Ql}) drop-shadow(0 4px 8px ${Zl});font-family:${v};font-size:${N};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${ae} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Te["above-start"]}}:host([positioning='above']){--position-area:${Te.above}}:host([positioning='above-end']){--position-area:${Te["above-end"]}}:host([positioning='below-start']){--position-area:${Te["below-start"]}}:host([positioning='below']){--position-area:${Te.below}}:host([positioning='below-end']){--position-area:${Te["below-end"]}}:host([positioning='before-top']){--position-area:${Te["before-top"]}}:host([positioning='before']){--position-area:${Te.before}}:host([positioning='before-bottom']){--position-area:${Te["before-bottom"]}}:host([positioning='after-top']){--position-area:${Te["after-top"]}}:host([positioning='after']){--position-area:${Te.after}}:host([positioning='after-bottom']){--position-area:${Te["after-bottom"]}}`,Nf=b`<template popover aria-hidden="true"><slot></slot></template>`,Ff=Mo.compose({name:`${p.prefix}-tooltip`,template:Nf,styles:Ef});Ff.define(p.registry);const ka={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},wa={small:"small",medium:"medium"};function _e(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Ca=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mf(e,t,r),r};class Kr extends ${constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.childTreeItems=[],this.elementInternals.role="tree"}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!_e(t)||this.childTreeItems.length<1)return!0;const i=this.getVisibleNodes();switch(e.key){case vo:{i.length&&i[0].focus();return}case fo:{i.length&&i[i.length-1].focus();return}case po:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:_e(t.parentElement)&&t.parentElement.focus();return}case bo:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case uo:{this.focusNextNode(1,t);return}case go:{this.focusNextNode(-1,t);return}case mo:{this.clickHandler(e);return}case Jo:{t.selected=!0;return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused=this.getValidFocusableItem(),this.currentFocused&&this.currentFocused.tabIndex<0&&(this.currentFocused.tabIndex=0),this.currentFocused?.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!_e(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!_e(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&_e(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(i=>i.selected);return t===-1&&(t=e.findIndex(i=>_e(i))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>_e(e)&&e.offsetParent!==null)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i.length)return;const r=i[i.indexOf(t)+e];ar(r)&&r.focus()}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>_e(e))}}Ca([g],Kr.prototype,"currentSelected",2),Ca([g],Kr.prototype,"childTreeItems",2);var Hf=Object.defineProperty,Lf=Object.getOwnPropertyDescriptor,Ia=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hf(e,t,r),r};class Yr extends Kr{constructor(){super(...arguments),this.size=wa.small,this.appearance=ka.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Ia([a],Yr.prototype,"size",2),Ia([a],Yr.prototype,"appearance",2);const Vf=u`
555
555
  ${k("block")}
556
556
 
557
- :host{outline:none}`,jf=b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}"><slot ${N({property:"childTreeItems",filter:tt(`${u.prefix}-tree-item`)})}></slot></template>`,Rf=Yr.compose({name:`${u.prefix}-tree`,template:jf,styles:Vf});Rf.define(u.registry);var qf=Object.defineProperty,Wf=Object.getOwnPropertyDescriptor,Mo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&qf(e,t,r),r};class so extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.selected=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.updateTabindexBySelected(),this.$emit("change"),y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`
558
- :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}connectedCallback(){super.connectedCallback(),this.updateTabindexBySelected()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Je(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Je(this.parentElement)}updateTabindexBySelected(){this.$fastController.isConnected&&(this.tabIndex=this.selected?0:-1)}}Mo([a({mode:"boolean"})],so.prototype,"expanded",2),Mo([a({mode:"boolean"})],so.prototype,"selected",2),Mo([a({mode:"boolean"})],so.prototype,"empty",2),Mo([a({attribute:"data-indent"})],so.prototype,"dataIndent",2),Mo([g],so.prototype,"childTreeItems",2);var Gf=Object.defineProperty,Xf=Object.getOwnPropertyDescriptor,Sa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Gf(e,t,r),r};class Qr extends so{constructor(){super(...arguments),this.size=wa.small,this.appearance=ka.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Sa([a],Qr.prototype,"size",2),Sa([a],Qr.prototype,"appearance",2);const Uf=p`
557
+ :host{outline:none}`,jf=b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}"><slot ${M("defaultSlot")} @slotchange="${o=>o.handleDefaultSlotChange()}"></slot></template>`,Rf=Yr.compose({name:`${p.prefix}-tree`,template:jf,styles:Vf});Rf.define(p.registry);var qf=Object.defineProperty,Wf=Object.getOwnPropertyDescriptor,no=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&qf(e,t,r),r};class Bt extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.selected=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.updateTabindexBySelected(),this.$emit("change"),y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
558
+ :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}connectedCallback(){super.connectedCallback(),this.updateTabindexBySelected()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>_e(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return _e(this.parentElement)}updateTabindexBySelected(){this.$fastController.isConnected&&(this.tabIndex=this.selected?0:-1)}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>_e(e))}}no([g],Bt.prototype,"itemSlot",2),no([a({mode:"boolean"})],Bt.prototype,"expanded",2),no([a({mode:"boolean"})],Bt.prototype,"selected",2),no([a({mode:"boolean"})],Bt.prototype,"empty",2),no([a({attribute:"data-indent"})],Bt.prototype,"dataIndent",2),no([g],Bt.prototype,"childTreeItems",2);var Gf=Object.defineProperty,Xf=Object.getOwnPropertyDescriptor,Sa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Gf(e,t,r),r};class Qr extends Bt{constructor(){super(...arguments),this.size=wa.small,this.appearance=ka.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Sa([a],Qr.prototype,"size",2),Sa([a],Qr.prototype,"appearance",2);const Uf=u`
559
559
  ${k("block")}
560
560
 
561
- :host{outline:none;font-size:${B};line-height:${_}}:host(:focus-visible) .positioning-region{box-shadow:${kr} ${kr} ${kr} ${qt}
562
- ${ve} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${kd};padding-inline-start:calc(var(--indent) * ${xr});padding-inline-end:${H};border-radius:${C};background-color:${an};color:${Se};gap:${ne}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ve}}}.content{display:flex;align-items:center;gap:${ne}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${xr};height:${xt};transition:transform ${vi} ${Rn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${xo};color:${Dt}}.positioning-region:active{background-color:${ft};color:${Ht}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${q}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${ln};color:${ii}}:host([selected]) .content,:host([selected]) .chevron{color:${Bl}}:host([size='small']) .positioning-region{height:${xt};padding-inline-start:calc(var(--indent) * ${le})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${ql}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Wl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Gl};color:${ii}}:host([appearance='transparent']) .positioning-region{background-color:${me}}:host([appearance='transparent']) .positioning-region:hover{background-color:${li}}:host([appearance='transparent']) .positioning-region:active{background-color:${ci}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${cn};color:${ii}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Kf=b`<svg viewBox="0 0 12 12" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Yf=b`<template slot="${o=>o.isNestedItem?"item":void 0}"><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron" aria-hidden="true"><slot name="chevron">${Kf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item" ${N({property:"childTreeItems",filter:tt(`${u.prefix}-tree-item`)})}></slot></div></template>`,Qf=Qr.compose({name:`${u.prefix}-tree-item`,template:Yf,styles:Uf});Qf.define(u.registry);
561
+ :host{outline:none;font-size:${B};line-height:${_}}:host(:focus-visible) .positioning-region{box-shadow:${kr} ${kr} ${kr} ${Wt}
562
+ ${ve} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${kd};padding-inline-start:calc(var(--indent) * ${xr});padding-inline-end:${H};border-radius:${C};background-color:${an};color:${Se};gap:${ne}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ve}}}.content{display:flex;align-items:center;gap:${ne}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${xr};height:${yt};transition:transform ${vi} ${Rn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${ko};color:${Ht}}.positioning-region:active{background-color:${gt};color:${Lt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${W}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${ln};color:${ii}}:host([selected]) .content,:host([selected]) .chevron{color:${Bl}}:host([size='small']) .positioning-region{height:${yt};padding-inline-start:calc(var(--indent) * ${le})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${ql}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Wl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Gl};color:${ii}}:host([appearance='transparent']) .positioning-region{background-color:${me}}:host([appearance='transparent']) .positioning-region:hover{background-color:${li}}:host([appearance='transparent']) .positioning-region:active{background-color:${ci}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${cn};color:${ii}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Kf=b`<svg viewBox="0 0 12 12" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Yf=b`<template slot="${o=>o.isNestedItem?"item":void 0}"><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron" aria-hidden="true"><slot name="chevron">${Kf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item" ${M("itemSlot")} @slotchange="${o=>o.handleItemSlotChange()}"></slot></div></template>`,Qf=Qr.compose({name:`${p.prefix}-tree-item`,template:Yf,styles:Uf});Qf.define(p.registry);