@fluentui/web-components 3.0.0-rc.30 → 3.0.0-rc.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -2
- package/custom-elements.json +220 -240
- package/dist/esm/accordion/accordion.definition-async.d.ts +2 -2
- package/dist/esm/accordion/accordion.definition-async.js +5 -2
- package/dist/esm/accordion/accordion.definition-async.js.map +1 -1
- package/dist/esm/accordion/define-async.js +1 -2
- package/dist/esm/accordion/define-async.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.definition-async.d.ts +3 -3
- package/dist/esm/accordion-item/accordion-item.definition-async.js +6 -3
- package/dist/esm/accordion-item/accordion-item.definition-async.js.map +1 -1
- package/dist/esm/accordion-item/define-async.js +2 -3
- package/dist/esm/accordion-item/define-async.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.definition-async.d.ts +3 -3
- package/dist/esm/anchor-button/anchor-button.definition-async.js +6 -3
- package/dist/esm/anchor-button/anchor-button.definition-async.js.map +1 -1
- package/dist/esm/anchor-button/define-async.js +2 -3
- package/dist/esm/anchor-button/define-async.js.map +1 -1
- package/dist/esm/avatar/avatar.definition-async.d.ts +3 -3
- package/dist/esm/avatar/avatar.definition-async.js +6 -3
- package/dist/esm/avatar/avatar.definition-async.js.map +1 -1
- package/dist/esm/avatar/define-async.js +2 -3
- package/dist/esm/avatar/define-async.js.map +1 -1
- package/dist/esm/badge/badge.definition-async.d.ts +3 -3
- package/dist/esm/badge/badge.definition-async.js +6 -3
- package/dist/esm/badge/badge.definition-async.js.map +1 -1
- package/dist/esm/badge/define-async.js +2 -3
- package/dist/esm/badge/define-async.js.map +1 -1
- package/dist/esm/button/button.definition-async.d.ts +3 -3
- package/dist/esm/button/button.definition-async.js +6 -3
- package/dist/esm/button/button.definition-async.js.map +1 -1
- package/dist/esm/button/define-async.js +2 -3
- package/dist/esm/button/define-async.js.map +1 -1
- package/dist/esm/checkbox/checkbox.definition-async.d.ts +3 -3
- package/dist/esm/checkbox/checkbox.definition-async.js +6 -3
- package/dist/esm/checkbox/checkbox.definition-async.js.map +1 -1
- package/dist/esm/checkbox/define-async.js +2 -3
- package/dist/esm/checkbox/define-async.js.map +1 -1
- package/dist/esm/compound-button/compound-button.definition-async.d.ts +3 -3
- package/dist/esm/compound-button/compound-button.definition-async.js +6 -3
- package/dist/esm/compound-button/compound-button.definition-async.js.map +1 -1
- package/dist/esm/compound-button/define-async.js +2 -3
- package/dist/esm/compound-button/define-async.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.definition-async.d.ts +3 -3
- package/dist/esm/counter-badge/counter-badge.definition-async.js +6 -3
- package/dist/esm/counter-badge/counter-badge.definition-async.js.map +1 -1
- package/dist/esm/counter-badge/define-async.js +2 -3
- package/dist/esm/counter-badge/define-async.js.map +1 -1
- package/dist/esm/dialog/define-async.js +2 -3
- package/dist/esm/dialog/define-async.js.map +1 -1
- package/dist/esm/dialog/dialog.definition-async.d.ts +3 -3
- package/dist/esm/dialog/dialog.definition-async.js +6 -3
- package/dist/esm/dialog/dialog.definition-async.js.map +1 -1
- package/dist/esm/dialog/dialog.js +4 -0
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/dialog-body/define-async.js +2 -3
- package/dist/esm/dialog-body/define-async.js.map +1 -1
- package/dist/esm/dialog-body/dialog-body.definition-async.d.ts +3 -3
- package/dist/esm/dialog-body/dialog-body.definition-async.js +6 -3
- package/dist/esm/dialog-body/dialog-body.definition-async.js.map +1 -1
- package/dist/esm/divider/define-async.js +2 -3
- package/dist/esm/divider/define-async.js.map +1 -1
- package/dist/esm/divider/divider.definition-async.d.ts +3 -3
- package/dist/esm/divider/divider.definition-async.js +6 -3
- package/dist/esm/divider/divider.definition-async.js.map +1 -1
- package/dist/esm/drawer/define-async.js +2 -3
- package/dist/esm/drawer/define-async.js.map +1 -1
- package/dist/esm/drawer/drawer.definition-async.d.ts +3 -3
- package/dist/esm/drawer/drawer.definition-async.js +6 -3
- package/dist/esm/drawer/drawer.definition-async.js.map +1 -1
- package/dist/esm/drawer/drawer.js +4 -0
- package/dist/esm/drawer/drawer.js.map +1 -1
- package/dist/esm/drawer-body/define-async.js +2 -3
- package/dist/esm/drawer-body/define-async.js.map +1 -1
- package/dist/esm/drawer-body/drawer-body.definition-async.d.ts +3 -3
- package/dist/esm/drawer-body/drawer-body.definition-async.js +6 -3
- package/dist/esm/drawer-body/drawer-body.definition-async.js.map +1 -1
- package/dist/esm/dropdown/define-async.js +2 -3
- package/dist/esm/dropdown/define-async.js.map +1 -1
- package/dist/esm/dropdown/dropdown.definition-async.d.ts +3 -3
- package/dist/esm/dropdown/dropdown.definition-async.js +6 -3
- package/dist/esm/dropdown/dropdown.definition-async.js.map +1 -1
- package/dist/esm/field/define-async.js +2 -3
- package/dist/esm/field/define-async.js.map +1 -1
- package/dist/esm/field/field.base.d.ts +12 -1
- package/dist/esm/field/field.base.js +12 -4
- package/dist/esm/field/field.base.js.map +1 -1
- package/dist/esm/field/field.definition-async.d.ts +3 -3
- package/dist/esm/field/field.definition-async.js +6 -3
- package/dist/esm/field/field.definition-async.js.map +1 -1
- package/dist/esm/image/define-async.js +2 -3
- package/dist/esm/image/define-async.js.map +1 -1
- package/dist/esm/image/image.definition-async.d.ts +3 -3
- package/dist/esm/image/image.definition-async.js +6 -3
- package/dist/esm/image/image.definition-async.js.map +1 -1
- package/dist/esm/label/define-async.js +2 -3
- package/dist/esm/label/define-async.js.map +1 -1
- package/dist/esm/label/label.definition-async.d.ts +3 -3
- package/dist/esm/label/label.definition-async.js +6 -3
- package/dist/esm/label/label.definition-async.js.map +1 -1
- package/dist/esm/link/define-async.js +2 -3
- package/dist/esm/link/define-async.js.map +1 -1
- package/dist/esm/link/link.definition-async.d.ts +3 -3
- package/dist/esm/link/link.definition-async.js +6 -3
- package/dist/esm/link/link.definition-async.js.map +1 -1
- package/dist/esm/link/link.styles.js +11 -2
- package/dist/esm/link/link.styles.js.map +1 -1
- package/dist/esm/listbox/define-async.js +2 -3
- package/dist/esm/listbox/define-async.js.map +1 -1
- package/dist/esm/listbox/listbox.definition-async.d.ts +3 -3
- package/dist/esm/listbox/listbox.definition-async.js +6 -3
- package/dist/esm/listbox/listbox.definition-async.js.map +1 -1
- package/dist/esm/listbox/listbox.js +3 -1
- package/dist/esm/listbox/listbox.js.map +1 -1
- package/dist/esm/menu/define-async.js +2 -3
- package/dist/esm/menu/define-async.js.map +1 -1
- package/dist/esm/menu/menu.definition-async.d.ts +3 -3
- package/dist/esm/menu/menu.definition-async.js +6 -3
- package/dist/esm/menu/menu.definition-async.js.map +1 -1
- package/dist/esm/menu-button/define-async.js +2 -3
- package/dist/esm/menu-button/define-async.js.map +1 -1
- package/dist/esm/menu-button/menu-button.definition-async.d.ts +3 -3
- package/dist/esm/menu-button/menu-button.definition-async.js +6 -3
- package/dist/esm/menu-button/menu-button.definition-async.js.map +1 -1
- package/dist/esm/menu-item/define-async.js +2 -3
- package/dist/esm/menu-item/define-async.js.map +1 -1
- package/dist/esm/menu-item/menu-item.definition-async.d.ts +3 -3
- package/dist/esm/menu-item/menu-item.definition-async.js +6 -3
- package/dist/esm/menu-item/menu-item.definition-async.js.map +1 -1
- package/dist/esm/menu-list/define-async.js +2 -3
- package/dist/esm/menu-list/define-async.js.map +1 -1
- package/dist/esm/menu-list/menu-list.definition-async.d.ts +3 -3
- package/dist/esm/menu-list/menu-list.definition-async.js +6 -3
- package/dist/esm/menu-list/menu-list.definition-async.js.map +1 -1
- package/dist/esm/message-bar/define-async.js +2 -3
- package/dist/esm/message-bar/define-async.js.map +1 -1
- package/dist/esm/message-bar/message-bar.definition-async.d.ts +3 -3
- package/dist/esm/message-bar/message-bar.definition-async.js +6 -3
- package/dist/esm/message-bar/message-bar.definition-async.js.map +1 -1
- package/dist/esm/option/define-async.js +2 -3
- package/dist/esm/option/define-async.js.map +1 -1
- package/dist/esm/option/option.definition-async.d.ts +3 -3
- package/dist/esm/option/option.definition-async.js +6 -3
- package/dist/esm/option/option.definition-async.js.map +1 -1
- package/dist/esm/progress-bar/define-async.js +2 -3
- package/dist/esm/progress-bar/define-async.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.definition-async.d.ts +3 -3
- package/dist/esm/progress-bar/progress-bar.definition-async.js +6 -3
- package/dist/esm/progress-bar/progress-bar.definition-async.js.map +1 -1
- package/dist/esm/radio/define-async.js +2 -3
- package/dist/esm/radio/define-async.js.map +1 -1
- package/dist/esm/radio/radio.definition-async.d.ts +3 -3
- package/dist/esm/radio/radio.definition-async.js +6 -3
- package/dist/esm/radio/radio.definition-async.js.map +1 -1
- package/dist/esm/radio-group/define-async.js +2 -3
- package/dist/esm/radio-group/define-async.js.map +1 -1
- package/dist/esm/radio-group/radio-group.base.js +4 -2
- package/dist/esm/radio-group/radio-group.base.js.map +1 -1
- package/dist/esm/radio-group/radio-group.definition-async.d.ts +3 -3
- package/dist/esm/radio-group/radio-group.definition-async.js +6 -3
- package/dist/esm/radio-group/radio-group.definition-async.js.map +1 -1
- package/dist/esm/rating-display/define-async.js +2 -3
- package/dist/esm/rating-display/define-async.js.map +1 -1
- package/dist/esm/rating-display/rating-display.definition-async.d.ts +3 -3
- package/dist/esm/rating-display/rating-display.definition-async.js +6 -3
- package/dist/esm/rating-display/rating-display.definition-async.js.map +1 -1
- package/dist/esm/slider/define-async.js +2 -3
- package/dist/esm/slider/define-async.js.map +1 -1
- package/dist/esm/slider/slider.definition-async.d.ts +3 -3
- package/dist/esm/slider/slider.definition-async.js +6 -3
- package/dist/esm/slider/slider.definition-async.js.map +1 -1
- package/dist/esm/spinner/define-async.js +2 -3
- package/dist/esm/spinner/define-async.js.map +1 -1
- package/dist/esm/spinner/spinner.definition-async.d.ts +3 -3
- package/dist/esm/spinner/spinner.definition-async.js +6 -3
- package/dist/esm/spinner/spinner.definition-async.js.map +1 -1
- package/dist/esm/switch/define-async.js +2 -3
- package/dist/esm/switch/define-async.js.map +1 -1
- package/dist/esm/switch/switch.definition-async.d.ts +3 -3
- package/dist/esm/switch/switch.definition-async.js +6 -3
- package/dist/esm/switch/switch.definition-async.js.map +1 -1
- package/dist/esm/tab/define-async.js +2 -3
- package/dist/esm/tab/define-async.js.map +1 -1
- package/dist/esm/tab/tab.definition-async.d.ts +3 -3
- package/dist/esm/tab/tab.definition-async.js +6 -3
- package/dist/esm/tab/tab.definition-async.js.map +1 -1
- package/dist/esm/tablist/define-async.js +2 -3
- package/dist/esm/tablist/define-async.js.map +1 -1
- package/dist/esm/tablist/tablist.definition-async.d.ts +3 -3
- package/dist/esm/tablist/tablist.definition-async.js +9 -3
- package/dist/esm/tablist/tablist.definition-async.js.map +1 -1
- package/dist/esm/text/define-async.js +2 -3
- package/dist/esm/text/define-async.js.map +1 -1
- package/dist/esm/text/text.definition-async.d.ts +3 -3
- package/dist/esm/text/text.definition-async.js +6 -3
- package/dist/esm/text/text.definition-async.js.map +1 -1
- package/dist/esm/text-input/define-async.js +2 -3
- package/dist/esm/text-input/define-async.js.map +1 -1
- package/dist/esm/text-input/text-input.definition-async.d.ts +3 -3
- package/dist/esm/text-input/text-input.definition-async.js +6 -3
- package/dist/esm/text-input/text-input.definition-async.js.map +1 -1
- package/dist/esm/textarea/define-async.js +2 -3
- package/dist/esm/textarea/define-async.js.map +1 -1
- package/dist/esm/textarea/textarea.definition-async.d.ts +3 -3
- package/dist/esm/textarea/textarea.definition-async.js +6 -3
- package/dist/esm/textarea/textarea.definition-async.js.map +1 -1
- package/dist/esm/toggle-button/define-async.js +2 -3
- package/dist/esm/toggle-button/define-async.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.definition-async.d.ts +3 -3
- package/dist/esm/toggle-button/toggle-button.definition-async.js +6 -3
- package/dist/esm/toggle-button/toggle-button.definition-async.js.map +1 -1
- package/dist/esm/tooltip/define-async.js +2 -3
- package/dist/esm/tooltip/define-async.js.map +1 -1
- package/dist/esm/tooltip/tooltip.definition-async.d.ts +3 -3
- package/dist/esm/tooltip/tooltip.definition-async.js +6 -3
- package/dist/esm/tooltip/tooltip.definition-async.js.map +1 -1
- package/dist/esm/tree/define-async.js +2 -3
- package/dist/esm/tree/define-async.js.map +1 -1
- package/dist/esm/tree/tree.definition-async.d.ts +3 -3
- package/dist/esm/tree/tree.definition-async.js +6 -3
- package/dist/esm/tree/tree.definition-async.js.map +1 -1
- package/dist/esm/tree-item/define-async.js +2 -3
- package/dist/esm/tree-item/define-async.js.map +1 -1
- package/dist/esm/tree-item/tree-item.definition-async.d.ts +3 -3
- package/dist/esm/tree-item/tree-item.definition-async.js +6 -3
- package/dist/esm/tree-item/tree-item.definition-async.js.map +1 -1
- package/dist/web-components-all.js +3409 -3465
- package/dist/web-components-all.min.js +14 -18
- package/dist/web-components.d.ts +12 -1
- package/dist/web-components.js +3409 -3465
- package/dist/web-components.min.js +16 -20
- package/package.json +5 -10
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function an(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function ln(...o){return o.every(e=>e instanceof HTMLElement)}function Gi(o,e="-accordion-item"){return an(e)(o)}const Ta=`${u.prefix}-accordion-item`;let Lo;const cn="fast-kernel";try{if(document.currentScript)Lo=document.currentScript.getAttribute(cn);else{const o=document.getElementsByTagName("script");Lo=o[o.length-1].getAttribute(cn)}}catch{Lo="isolate"}let mt;switch(Lo){case"share":mt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":mt=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)}`;mt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}var He;(function(o){o[o.needsArrayObservation=1101]="needsArrayObservation",o[o.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",o[o.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",o[o.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",o[o.hostBindingWithoutHost=1204]="hostBindingWithoutHost",o[o.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",o[o.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",o[o.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",o[o.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",o[o.blockedByDOMPolicy=1209]="blockedByDOMPolicy",o[o.missingElementDefinition=1401]="missingElementDefinition",o[o.noRegistrationForContext=1501]="noRegistrationForContext",o[o.noFactoryForResolver=1502]="noFactoryForResolver",o[o.invalidResolverStrategy=1503]="invalidResolverStrategy",o[o.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",o[o.cannotResolveKey=1505]="cannotResolveKey",o[o.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",o[o.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",o[o.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",o[o.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",o[o.invalidResolver=1510]="invalidResolver",o[o.invalidKey=1511]="invalidKey",o[o.noDefaultResolver=1512]="noDefaultResolver",o[o.cyclicDependency=1513]="cyclicDependency",o[o.connectUpdateRequiresController=1514]="connectUpdateRequiresController"})(He||(He={}));const vt=o=>typeof o=="function",Qe=o=>typeof o=="string",_a=()=>{};var Xi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Xi<"u")Xi.globalThis=Xi;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}})(),function(){"requestIdleCallback"in globalThis||(globalThis.requestIdleCallback=function(t,i){const r=Date.now();return setTimeout(()=>{t({didTimeout:i?.timeout?Date.now()-r>=i.timeout:!1,timeRemaining:()=>0})},1)},globalThis.cancelIdleCallback=function(t){clearTimeout(t)})}();const dn={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},dn));const G=globalThis.FAST;if(G.getById===void 0){const o=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},dn))}G.error===void 0&&Object.assign(G,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Oa=Object.freeze([]);function Ki(){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 hn(){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 $t(o){o.prototype.toJSON=_a}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),un=o=>o,Ba=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:un}):{createHTML:un};let Vo=Object.freeze({createHTML(o){return Ba.createHTML(o)},protect(o,e,t,i){return i}});const Na=Vo,yt=Object.freeze({get policy(){return Vo},setPolicy(o){if(Vo!==Na)throw G.error(He.onlySetDOMPolicyOnce);Vo=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)}});class Yi{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,n=this.sub2;r!==void 0&&r.handleChange(i,e),n!==void 0&&n.handleChange(i,e)}else for(let r=0,n=t.length;r<n;++r)t[r].handleChange(i,e)}}class pn{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 n;t?n=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Yi(this.subject):n=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Yi(this.subject),n.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 B=G.getById(mt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function n(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function s(){let d=0;for(;d<o.length;)if(n(o[d]),d++,d>1024){for(let l=0,p=o.length-d;l<p;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(s):s())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:s,setMode:h=>i=h})}),Ho=Object.freeze({unknown:void 0,coupled:1}),m=G.getById(mt.observable,()=>{const o=B.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw G.error(He.needsArrayObservation)};function n(d){var l;let p=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return p===void 0&&(Array.isArray(d)?p=r(d):t.set(d,p=new pn(d))),p}const s=hn();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,p){const x=this.field,C=l[x];if(C!==p){l[x]=p;const Be=l[this.callback];vt(Be)&&Be.call(l,C,p),n(l).notify(this.name)}}}class h extends Yi{constructor(l,p,x=!1){super(l,p),this.expression=l,this.isVolatileBinding=x,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const p=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),p}requiresUnbind(l){return l.sourceLifetime!==Ho.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,p){this.needsRefresh&&this.last!==null&&this.dispose();const x=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let C;try{C=this.expression(l,p)}finally{i=x}return C}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,p){const x=this.last,C=n(l),Be=x===null?this.first:{};if(Be.propertySource=l,Be.propertyName=p,Be.notifier=C,C.subscribe(this,p),x!==null){if(!this.needsRefresh){let bt;i=void 0,bt=x.propertySource[x.propertyName],i=this,l===bt&&(this.needsRefresh=!0)}x.next=Be}this.last=Be}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 $t(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:n,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){n(d).notify(l)},defineProperty(d,l){Qe(l)&&(l=new c(l)),s(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(p){l.setValue(this,p)}})},getAccessors:s,binding(d,l,p=this.isVolatileBinding(d)){return new h(d,l,p)},isVolatileBinding(d){return e.test(d.toString())}})});function f(o,e){m.defineProperty(o,e)}function $e(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const gn=G.getById(mt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Et=Object.freeze({default:{index:0,length:0,get event(){return Et.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return gn.get()},setEvent(o){gn.set(o)}});class Ro{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Aa extends Ro{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Ji(o,e,t=m.isVolatileBinding(o)){return new Aa(o,e,t)}class fn extends Ro{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}$t(fn);function bn(o,e){return new fn(o,e)}const Qi=Ki(),Zi=Object.freeze({getForInstance:Qi.getForInstance,getByType:Qi.getByType,define(o){return Qi.register({type:o}),o}});function er(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class tr{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 n=i.setAttribute;i.setAttribute=(s,c)=>{n.call(i,s,c),s==="style"&&i.$cssBindings.forEach((h,d)=>er(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){er(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){er(this,t.controller,t)}}Zi.define(tr);let mn;function vn(o){return o.map(e=>e instanceof ve?vn(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ve{get strategy(){return this._strategy===null&&this.withStrategy(mn),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ve?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}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(vn(this.styles)),this}static setDefaultStrategy(e){mn=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ve(e):e instanceof ve?e:new ve([e])}}ve.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Ea=`${Math.random().toString(36).substring(2,8)}`;let Fa=0;const $n=()=>`--v${Ea}${++Fa}`;function yn(o,e){const t=[];let i="";const r=[],n=s=>{r.push(s)};for(let s=0,c=o.length-1;s<c;++s){i+=o[s];let h=e[s];vt(h)?h=new tr(Ji(h),$n()).createCSS(n):h instanceof Ro?h=new tr(h,$n()).createCSS(n):Zi.getForInstance(h)!==void 0&&(h=h.createCSS(n)),h instanceof ve||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 g=(o,...e)=>{const{styles:t,behaviors:i}=yn(o,e),r=new ve(t);return i.length?r.withBehaviors(...i):r};class xn{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,n)=>(Qe(n)?this.css+=n:r.push(n),r),[]);i.length&&(this.styles=new ve(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)}}Zi.define(xn),g.partial=(o,...e)=>{const{styles:t,behaviors:i}=yn(o,e);return new xn(t,i)};const or=`fast-${Math.random().toString(36).substring(2,8)}`,jo=`${or}{`,ao=`}${or}`,Ma=ao.length;let Da=0;const lo=()=>`${or}-${++Da}`,kn=Object.freeze({interpolation:o=>`${jo}${o}${ao}`,attribute:o=>`${lo()}="${jo}${o}${ao}"`,comment:o=>`<!--${jo}${o}${ao}-->`}),qo=Object.freeze({parse(o,e){const t=o.split(jo);if(t.length===1)return null;const i=[];for(let r=0,n=t.length;r<n;++r){const s=t[r],c=s.indexOf(ao);let h;if(c===-1)h=s;else{const d=s.substring(0,c);i.push(e[d]),h=s.substring(c+Ma)}h!==""&&i.push(h)}return i}}),ir=Ki(),Re=Object.freeze({getForInstance:ir.getForInstance,getByType:ir.getByType,define(o,e){return e=e||{},e.type=o,ir.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Q.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=e,o.aspectType=Q.attribute;break}}});class rr{constructor(e){this.options=e}createHTML(e){return kn.attribute(e(this))}createBehavior(){return this}}$t(rr);const La=o=>o.nodeType===1,co=o=>o?e=>e.nodeType===1&&e.matches(o):La;class Va extends rr{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,Oa),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 wn=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Cn=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Sn=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,In=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Pn=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,zn=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Tn(o){return o&&o.nodeType===Node.COMMENT_NODE}const Se=Object.freeze({attributeMarkerName:"data-fe-b",compactAttributeMarkerName:"data-fe-c",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 wn.test(o)},isContentBindingEndMarker(o){return Cn.test(o)},isRepeatViewStartMarker(o){return Sn.test(o)},isRepeatViewEndMarker(o){return In.test(o)},isElementBoundaryStartMarker(o){return Tn(o)&&Pn.test(o.data.trim())},isElementBoundaryEndMarker(o){return Tn(o)&&zn.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseEnumeratedAttributeBinding(o){const e=[],t=this.attributeMarkerName.length+1,i=`${this.attributeMarkerName}-`;for(const r of o.getAttributeNames())if(r.startsWith(i)){const n=Number(r.slice(t));if(!Number.isNaN(n))e.push(n);else throw G.error(1601,{name:r,expectedFormat:`${i}<number>`})}return e.length===0?null:e},parseCompactAttributeBinding(o){const e=`${this.compactAttributeMarkerName}-`,t=o.getAttributeNames().find(h=>h.startsWith(e));if(!t)return null;const r=t.slice(e.length).split("-"),n=parseInt(r[0],10),s=parseInt(r[1],10);if(r.length!==2||Number.isNaN(n)||Number.isNaN(s)||n<0||s<1)throw G.error(1604,{name:t,expectedFormat:`${this.compactAttributeMarkerName}-{index}-{count}`});const c=[];for(let h=0;h<s;h++)c.push(n+h);return c},parseContentBindingStartMarker(o){return Bn(wn,o)},parseContentBindingEndMarker(o){return Bn(Cn,o)},parseRepeatStartMarker(o){return _n(Sn,o)},parseRepeatEndMarker(o){return _n(In,o)},parseElementBoundaryStartMarker(o){return On(Pn,o.trim())},parseElementBoundaryEndMarker(o){return On(zn,o)}});function _n(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function On(o,e){const t=o.exec(e);return t===null?t:t[1]}function Bn(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Wo=Symbol.for("fe-hydration");function Uo(o){return o[Wo]===Wo}const Go="defer-hydration";class Nn extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function nr(o){return o.nodeType===Node.COMMENT_NODE}function An(o){return o.nodeType===Node.TEXT_NODE}function En(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,nr(e)||An(e)?e.data.length:e.childNodes.length),t}function Ha(o){return o instanceof DocumentFragment&&"mode"in o}function Ra(o,e,t){const i=En(o,e),r=i.commonAncestorContainer,n=Ua(t),s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(l){return i.comparePoint(l,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),c={},h={};let d=s.currentNode=o;for(;d!==null;){switch(d.nodeType){case Node.ELEMENT_NODE:{ja(d,t,c,n);break}case Node.COMMENT_NODE:{qa(d,s,t,c,h,n);break}}d=s.nextNode()}return i.detach(),{targets:c,boundaries:h}}function ja(o,e,t,i){var r,n;const s=(n=(r=Se.parseAttributeBinding(o))!==null&&r!==void 0?r:Se.parseEnumeratedAttributeBinding(o))!==null&&n!==void 0?n:Se.parseCompactAttributeBinding(o);if(s!==null){for(const c of s){const h=e[c+i];if(!h)throw new Nn(`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(h,o,t)}o.removeAttribute(Se.attributeMarkerName)}}function qa(o,e,t,i,r,n){if(Se.isElementBoundaryStartMarker(o)){Wa(o,e);return}if(Se.isContentBindingStartMarker(o.data)){const s=Se.parseContentBindingStartMarker(o.data);if(s===null)return;const[c,h]=s,d=t[c+n],l=[];let p=e.nextSibling();o.data="";const x=p;for(;p!==null;){if(nr(p)){const C=Se.parseContentBindingEndMarker(p.data);if(C&&C[1]===h)break}l.push(p),p=e.nextSibling()}if(p===null){const C=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ha(C)?C.host.nodeName:C.nodeName}".`)}if(p.data="",l.length===1&&An(l[0]))Xo(d,l[0],i);else{p!==x&&p.previousSibling!==null&&(r[d.targetNodeId]={first:x,last:p.previousSibling});const C=p.parentNode.insertBefore(document.createTextNode(""),p);Xo(d,C,i)}}}function Wa(o,e){const t=Se.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(nr(i)){const r=Se.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Ua(o){let e=0;for(let t=0,i=o.length;t<i&&o[t].targetNodeId==="h";++t)e++;return e}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 Fn;function sr(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 Mn{constructor(){this.index=0,this.length=0}get event(){return Et.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 Ko extends Mn{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=Ho.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,n;for(;r!==t;)n=r.nextSibling,i.insertBefore(r,e),r=n;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(){sr(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 n=0,s=r.length;n<s;++n){const c=r[n].createBehavior();c.bind(this),i[n]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,n=i.length;r<n;++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){sr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}$t(Ko),m.defineProperty(Ko.prototype,"index"),m.defineProperty(Ko.prototype,"length");const Ft={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ga extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class Xa extends Mn{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Fn]=Wo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ho.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Ft.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}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,n;for(;r!==t;)n=r.nextSibling,i.insertBefore(r,e),r=n;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;if(this.hydrationStage!==Ft.hydrated&&(this._hydrationStage=Ft.hydrating),this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:s,boundaries:c}=Ra(this.firstChild,this.lastChild,this.factories);this._targets=s,this._bindingViewBoundaries=c}catch(s){if(s instanceof Nn){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),s.templateString=c}throw s}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let s=0,c=n.length;s<c;++s){const h=n[s];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Xo(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const d=h.createBehavior();d.bind(this),r[s]=d}else{let d=this.sourceTemplate.html;typeof d!="string"&&(d=d.innerHTML);const l=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host,p=l?.nodeName||"unknown",x=h,C=[`HydrationView was unable to successfully target bindings inside "<${p.toLowerCase()}>".`,`
|
|
2
|
-
Mismatch Details:`,` - Expected target node ID: "${h.targetNodeId}"`,` - Available target IDs: [${Object.keys(this.targets).join(", ")||"none"}]`];throw h.targetTagName&&C.push(` - Expected tag name: "${h.targetTagName}"`),x.sourceAspect&&C.push(` - Source aspect: "${x.sourceAspect}"`),x.aspectType!==void 0&&C.push(` - Aspect type: ${x.aspectType}`),C.push(`
|
|
3
|
-
This usually means:`," 1. The server-rendered HTML doesn't match the client template"," 2. The hydration markers are missing or corrupted"," 3. The DOM structure was modified before hydration",`
|
|
4
|
-
Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Ga(C.join(`
|
|
5
|
-
`),h,En(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,s=r.length;n<s;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=Ft.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){sr(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}}Fn=Wo,$t(Xa);function Ka(o){return o.create!==void 0}function Ya(o,e,t,i){if(t==null&&(t=""),Ka(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(Uo(i)&&Uo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==Ft.hydrated){const n=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(n.first,n.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 Ja(o,e,t){var i;const r=`${this.id}-t`,n=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},s=n.cv;let c=n.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,p=d.length;l<p;++l){const x=d[l];x!==""&&(s[x]=c,h.add(x))}}if(n.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const Qa={[Q.attribute]:yt.setAttribute,[Q.booleanAttribute]:yt.setBooleanAttribute,[Q.property]:(o,e,t)=>o[e]=t,[Q.content]:Ya,[Q.tokenList]:Ja,[Q.event]:()=>{}};class Mt{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Q.content}createHTML(e){return kn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Qa[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw G.error(He.unsupportedBindingBehavior);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=Uo(e)&&e.hydrationStage&&e.hydrationStage!==Ft.hydrated;switch(this.aspectType){case Q.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:e.onUnbind(this);default:{const n=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(n.target=i,n.controller=e,r&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){n.bind(e);break}this.updateTarget(i,this.targetAspect,n.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){Et.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);Et.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.controller;if(!i.isBound)return;const r=t.target;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Re.define(Mt,{aspected:!0});const Dn=(o,e)=>`${o}.${e}`,Ln={},je={index:0,node:null};function Vn(o){o.startsWith("fast-")||G.warn(He.hostBindingWithoutHost,{name:o})}const Za=new Proxy(document.createElement("div"),{get(o,e){Vn(e);const t=Reflect.get(o,e);return vt(t)?t.bind(o):t},set(o,e,t){return Vn(e),Reflect.set(o,e,t)}});class el{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,n){var s,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(s=e.id)!==null&&s!==void 0?s:lo(),e.targetNodeId=i,e.targetTagName=n,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 s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let n=Ln[t];if(!n){const s=`_${t}`;Ln[t]=n={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[i]}}}r[t]=n}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Za;for(const r of this.nodeIds)Reflect.get(i,r);return new Ko(t,this.factories,i)}}function Hn(o,e,t,i,r,n=!1){const s=t.attributes,c=o.directives;for(let h=0,d=s.length;h<d;++h){const l=s[h],p=l.value,x=qo.parse(p,c);let C=null;x===null?n&&(C=new Mt(bn(()=>p,o.policy)),Re.assignAspect(C,l.name)):C=ar.aggregate(x,o.policy),C!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(C,e,i,r,t.tagName))}}function tl(o,e,t,i,r){const n=qo.parse(e.textContent,o.directives);if(n===null)return je.node=e.nextSibling,je.index=r+1,je;let s,c=s=e;for(let h=0,d=n.length;h<d;++h){const l=n[h];h!==0&&(r++,i=Dn(t,r),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Qe(l)?s.textContent=l:(s.textContent=" ",Re.assignAspect(l),o.addFactory(l,t,i,r,null)),c=s}return je.index=r+1,je.node=c.nextSibling,je}function Rn(o,e,t){let i=0,r=e.firstChild;for(;r;){const n=ol(o,t,r,i);r=n.node,i=n.index}}function ol(o,e,t,i){const r=Dn(e,i);switch(t.nodeType){case 1:Hn(o,e,t,r,i),Rn(o,t,r);break;case 3:return tl(o,t,e,r,i);case 8:{const n=qo.parse(t.data,o.directives);n!==null&&o.addFactory(ar.aggregate(n),e,r,i,null);break}}return je.index=i+1,je.node=t.nextSibling,je}function il(o,e){return o&&o.nodeType===8&&qo.parse(o.data,e)!==null}const jn="TEMPLATE",ar={compile(o,e,t=yt.policy){let i;if(Qe(o)){i=document.createElement(jn),i.innerHTML=t.createHTML(o);const s=i.content.firstElementChild;s!==null&&s.tagName===jn&&(i=s)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),n=new el(r,e,t);return Hn(n,"",i,"h",0,!0),(il(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Rn(n,r,"r"),je.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=yt.policy){if(o.length===1)return o[0];let t,i=!1,r;const n=o.length,s=o.map(d=>Qe(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let x=0;x<n;++x)p+=s[x](d,l);return p},h=new Mt(Ji(c,r??e,i));return Re.assignAspect(h,t),h}};class qn extends rr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Re.define(qn);const _=o=>new qn(o),Wn="boolean",Un="reflect",Yo=Object.freeze({locate:hn()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Gn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ie={toView(o){const e=Gn(o);return e&&e.toString()},fromView:Gn};class qi{constructor(e,t,i=t.toLowerCase(),r=Un,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===Wn&&n===void 0&&(this.converter=rl)}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"||B.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Un:const n=this.converter;yt.setAttribute(e,this.attribute,n!==void 0?n.toView(r):r);break;case Wn:yt.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Yo.locate(e));for(let r=0,n=t.length;r<n;++r){const s=t[r];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];Qe(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,n){arguments.length>1&&(t.property=n),Yo.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}var nl=window&&window.__awaiter||function(o,e,t,i){function r(n){return n instanceof t?n:new t(function(s){s(n)})}return new(t||(t=Promise))(function(n,s){function c(l){try{d(i.next(l))}catch(p){s(p)}}function h(l){try{d(i.throw(l))}catch(p){s(p)}}function d(l){l.done?n(l.value):r(l.value).then(c,h)}d((i=i.apply(o,e||[])).next())})},Ne;const Xn={mode:"open"},Kn={},lr=new Set,ho=G.getById(mt.elementRegistry,()=>Ki()),sl={deferAndHydrate:"defer-and-hydrate"};class le{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var i;this.platformDefined=!1,Qe(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,n=qi.collect(e,t.attributes),s=new Array(n.length),c={},h={};for(let d=0,l=n.length;d<l;++d){const p=n[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(r,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Xn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Xn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Kn:Object.assign(Object.assign({},Kn),t.elementOptions),this.styles=ve.normalize(t.styles),ho.register(this),m.defineProperty(Ne.isRegistered,this.name),Ne.isRegistered[this.name]=this.type}define(e=this.registry){var t,i;const r=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,r,this.elementOptions),(i=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||i===void 0||i.call(t,this.name)),this}static compose(e,t){return lr.has(e)||ho.getByType(e)?new Ne(class extends e{},t):new Ne(e,t)}static registerBaseType(e){lr.add(e)}static composeAsync(e,t){return new Promise(i=>{(lr.has(e)||ho.getByType(e))&&i(new Ne(class extends e{},t));const r=new Ne(e,t);m.getNotifier(r).subscribe({handleChange:()=>{var n,s;(s=(n=r.lifecycleCallbacks)===null||n===void 0?void 0:n.templateDidUpdate)===null||s===void 0||s.call(n,r.name),i(r)}},"template")})}}Ne=le,le.isRegistered={},le.getByType=ho.getByType,le.getForInstance=ho.getForInstance,le.registerAsync=o=>nl(void 0,void 0,void 0,function*(){return new Promise(e=>{Ne.isRegistered[o]&&e(Ne.isRegistered[o]),m.getNotifier(Ne.isRegistered).subscribe({handleChange:()=>e(Ne.isRegistered[o])},o)})}),m.defineProperty(le.prototype,"template");const al=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ll=Object.create(null);class xt{constructor(e,t=ll){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}xt.empty=new xt(""),Re.define(xt);function cl(o,e,t,i=Re.getForInstance(o)){if(i.aspected){const r=al.exec(e);r!==null&&Re.assignAspect(o,r[2])}return o.createHTML(t)}class Wi{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ar.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new xt(Qe(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw G.error(He.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw G.error(He.onlySetTemplatePolicyOnce);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 n=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=lo();return n[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(r+=d,vt(l))l=new Mt(Ji(l));else if(l instanceof Ro)l=new Mt(l);else if(!(p=Re.getForInstance(l))){const x=l;l=new Mt(bn(()=>x))}r+=cl(l,d,s,p)}return new Wi(r+e[e.length-1],n,i)}}$t(Wi);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Wi.create(o,e);throw G.error(He.directCallToHTMLTagNotAllowed)};b.partial=o=>new xt(o);const Yn="slotchange";class Jn extends Va{observe(e){e.addEventListener(Yn,this)}disconnect(e){e.removeEventListener(Yn,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Re.define(Jn);function X(o){return Qe(o)&&(o={property:o}),new Jn(o)}class dl 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:Et.default,targets:t,get isBound(){return r},addBehaviorFactory(n,s){var c,h,d,l;const p=n;p.id=(c=p.id)!==null&&c!==void 0?c:lo(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:lo(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:yt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(n,s){t[n]=s},addBehavior(n){e.push(n),r&&n.bind(this)},onUnbind(n){i===null&&(i=[]),i.push(n)},connectedCallback(n){r||(r=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(n){r&&(r=!1,i!==null&&i.forEach(s=>s.unbind(this)))}}}});const hl={bubbles:!0,composed:!0,cancelable:!0},Jo="isConnected",Qn=new WeakMap;function uo(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qn.get(o))!==null&&t!==void 0?t:null}let Zn;var Z;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(Z||(Z={}));class Ve extends pn{get isConnected(){return m.track(this,Jo),this.stage===Z.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Et.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 shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Qn.set(this.source,t))}}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))}constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=Z.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const i=m.getAccessors(e);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,s=i.length;n<s;++n){const c=i[n].name,h=e[c];h!==void 0&&(delete e[c],r[c]=h)}}}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,n=(i=r.get(e))!==null&&i!==void 0?i:0;n===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===Z.connected||this.stage===Z.connecting)&&e.connectedCallback(this)):r.set(e,n+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!==Z.disconnected&&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=uo(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 n=0,s=r.length;n<s;++n)this.addBehavior(r[n])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=uo(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 n=0,s=r.length;n<s;++n)this.removeBehavior(r[n])}}connect(){this.stage===Z.disconnected&&(this.stage=Z.connecting,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=Z.connected,m.notify(this,Jo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,n=i.length;r<n;++r){const s=i[r];e[s]=t[s]}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===Z.connected&&(this.stage=Z.disconnecting,m.notify(this,Jo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=Z.disconnected)}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===Z.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},hl),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=uo(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 n=r.firstChild;n!==null;n=r.firstChild)r.removeChild(n)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Ho.coupled)}static forCustomElement(e,t=!1){const i=e.$fastController;if(i!==void 0&&!t)return i;const r=le.getForInstance(e);if(r===void 0)throw G.error(He.missingElementDefinition);return m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(r).subscribe({handleChange:()=>{Ve.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Zn(e,r)}static setStrategy(e){Zn=e}}$t(Ve),Ve.setStrategy(Ve);function Qo(o){var e;return"adoptedStyleSheets"in o?o:(e=uo(o))!==null&&e!==void 0?e:o.getRootNode()}class Ui{constructor(e){const t=Ui.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){ts(Qo(e),this.sheets)}removeStylesFrom(e){os(Qo(e),this.sheets)}}Ui.styleSheetCache=new Map;let ul=0;const pl=()=>`fast-${++ul}`;function es(o){return o===document?document.body:o}class gl{constructor(e){this.styles=e,this.styleClass=pl()}addStylesTo(e){e=es(Qo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const n=document.createElement("style");n.innerHTML=t[r],n.className=i,e.append(n)}}removeStylesFrom(e){e=es(Qo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let ts=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},os=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ve.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),ts=(o,e)=>{o.adoptedStyleSheets.push(...e)},os=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}ve.setDefaultStrategy(Ui)}else ve.setDefaultStrategy(gl);const cr="needs-hydration";class I extends Ve{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===sl.deferAndHydrate&&(this.source.toggleAttribute(Go,!0),this.source.toggleAttribute(cr,!0))}addHydratingInstance(){if(!I.hydratingInstances)return;const e=this.definition.name;let t=I.hydratingInstances.get(e);t||(t=new Set,I.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return I.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Go)||(I.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,i,r;if(e.didTimeout){I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50});return}if(((t=I.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(r=(i=I.lifecycleCallbacks).hydrationComplete)===null||r===void 0||r.call(i)}catch{}Ve.setStrategy(Ve)}}connect(){var e,t,i,r,n,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(cr),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Go)){this.addHydratingInstance(),I.hydrationObserver.observe(this.source,{attributeFilter:[Go]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===Z.disconnected){if(!I.hydrationStarted){I.hydrationStarted=!0;try{(i=(t=I.lifecycleCallbacks).hydrationStarted)===null||i===void 0||i.call(t)}catch{}}try{(n=(r=I.lifecycleCallbacks).elementWillHydrate)===null||n===void 0||n.call(r,this.source)}catch{}if(this.stage=Z.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Uo(this.template)){const h=this.source,d=(s=uo(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Se.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Se.isElementBoundaryEndMarker(p)&&(p.data="",p=p.previousSibling)),this.view=this.template.hydrate(l,p,h),(c=this.view)===null||c===void 0||c.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=Z.connected,this.source.removeAttribute(cr),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,Jo)}}removeHydratingInstance(){var e,t;if(!I.hydratingInstances)return;try{(t=(e=I.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const i=this.definition.name,r=I.hydratingInstances.get(i);r&&(r.delete(this.source),r.size||I.hydratingInstances.delete(i),I.idleCallbackId&&cancelIdleCallback(I.idleCallbackId),I.idleCallbackId=requestIdleCallback(I.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),I.hydrationObserver.unobserve(this.source)}static install(){Ve.setStrategy(I)}}I.hydrationObserver=new dl(I.hydrationObserverHandler),I.lifecycleCallbacks={},I.hydrationStarted=!1,I.idleCallbackId=null,I.hydratingInstances=new Map;function is(o){const e=class extends o{constructor(){super(),Ve.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 le.registerBaseType(e),e}function fl(o,e){return vt(o)?le.compose(o,e):le.compose(this,o)}function bl(o,e){return vt(o)?new Promise(t=>{le.composeAsync(o,e).then(i=>{t(i)})}).then(t=>t.define().type):new Promise(t=>{le.composeAsync(this,o).then(i=>{t(i)})}).then(t=>t.define().type)}function ml(o,e){return vt(o)?le.compose(o,e).define().type:le.compose(this,o).define().type}function vl(o){return is(o)}const k=Object.assign(is(HTMLElement),{from:vl,define:ml,compose:fl,defineAsync:bl}),$l=":host([hidden]){display:none}";function w(o){return`${$l}:host{display:${o}}`}const O="var(--colorNeutralForeground1)",rs="var(--colorNeutralForeground1Hover)",yl="var(--colorNeutralForeground1Pressed)",Ae="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Lt="var(--colorNeutralForeground2Pressed)",Zo="var(--colorNeutralForeground2Selected)",ei="var(--colorNeutralForeground2BrandHover)",ti="var(--colorNeutralForeground2BrandPressed)",xl="var(--colorNeutralForeground2BrandSelected)",K="var(--colorNeutralForeground3)",kl="var(--colorNeutralForeground3Hover)",wl="var(--colorNeutralForeground3Pressed)",Cl="var(--colorNeutralForeground3Selected)",dr="var(--colorNeutralForeground4)",N="var(--colorNeutralForegroundDisabled)",Sl="var(--colorBrandForegroundLink)",Il="var(--colorBrandForegroundLinkHover)",Pl="var(--colorBrandForegroundLinkPressed)",zl="var(--colorNeutralForeground2Link)",Tl="var(--colorNeutralForeground2LinkHover)",_l="var(--colorNeutralForeground2LinkPressed)",Ol="var(--colorCompoundBrandForeground1Hover)",Bl="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",kt="var(--colorNeutralForegroundInverted)",Nl="var(--colorNeutralForegroundInvertedHover)",Al="var(--colorNeutralForegroundInvertedPressed)",ns="var(--colorNeutralForegroundStaticInverted)",oi="var(--colorBrandForeground1)",El="var(--colorBrandForeground2)",Fl="var(--colorNeutralForeground1Static)",P="var(--colorNeutralBackground1)",ii="var(--colorNeutralBackground1Hover)",hr="var(--colorNeutralBackground1Pressed)",ss="var(--colorNeutralBackground1Selected)",po="var(--colorNeutralBackground3)",Ml="var(--colorNeutralBackground4)",Dl="var(--colorNeutralBackground5)",go="var(--colorNeutralBackground6)",as="var(--colorNeutralBackgroundInverted)",ls="var(--colorSubtleBackground)",ri="var(--colorSubtleBackgroundHover)",fo="var(--colorSubtleBackgroundPressed)",cs="var(--colorSubtleBackgroundSelected)",Ll="var(--colorSubtleBackgroundLightAlphaHover)",Vl="var(--colorSubtleBackgroundLightAlphaPressed)",Hl="var(--colorSubtleBackgroundLightAlphaSelected)",ce="var(--colorTransparentBackground)",ni="var(--colorTransparentBackgroundHover)",si="var(--colorTransparentBackgroundPressed)",ds="var(--colorTransparentBackgroundSelected)",nt="var(--colorNeutralBackgroundDisabled)",ur="var(--colorBackgroundOverlay)",hs="var(--colorBrandBackground)",us="var(--colorBrandBackgroundHover)",ps="var(--colorBrandBackgroundPressed)",Rl="var(--colorBrandBackgroundSelected)",wt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",gs="var(--colorBrandBackgroundStatic)",fs="var(--colorBrandBackground2)",qe="var(--colorNeutralStrokeAccessible)",Ct="var(--colorNeutralStrokeAccessibleHover)",St="var(--colorNeutralStrokeAccessiblePressed)",We="var(--colorNeutralStroke1)",It="var(--colorNeutralStroke1Hover)",bo="var(--colorNeutralStroke1Pressed)",mo="var(--colorNeutralStroke2)",jl="var(--colorNeutralStroke3)",ql="var(--colorNeutralStrokeOnBrand2)",bs="var(--colorBrandStroke1)",ms="var(--colorBrandStroke2)",st="var(--colorCompoundBrandStroke)",Wl="var(--colorCompoundBrandStrokeHover)",vs="var(--colorCompoundBrandStrokePressed)",ye="var(--colorNeutralStrokeDisabled)",Y="var(--colorTransparentStroke)",pr="var(--colorTransparentStrokeInteractive)",ai="var(--colorStrokeFocus1)",de="var(--colorStrokeFocus2)",Ul="var(--colorNeutralShadowAmbient)",Gl="var(--colorNeutralShadowKey)",$s="var(--colorPaletteRedBackground1)",Xl="var(--colorPaletteRedBackground2)",ys="var(--colorPaletteRedBackground3)",xs="var(--colorPaletteRedBorder1)",gr="var(--colorPaletteRedBorder2)",fr="var(--colorPaletteRedForeground1)",Kl="var(--colorPaletteRedForeground2)",ks="var(--colorPaletteRedForeground3)",ws="var(--colorPaletteGreenBackground1)",Cs="var(--colorPaletteGreenBackground3)",Yl="var(--colorPaletteGreenBorder1)",Jl="var(--colorPaletteGreenBorder2)",Ql="var(--colorPaletteGreenForeground1)",Zl="var(--colorPaletteGreenForeground2)",ec="var(--colorPaletteGreenForeground3)",Ss="var(--colorPaletteDarkOrangeBackground1)",Is="var(--colorPaletteDarkOrangeBackground3)",Ps="var(--colorPaletteDarkOrangeBorder1)",tc="var(--colorPaletteDarkOrangeForeground1)",zs="var(--colorPaletteDarkOrangeForeground3)",oc="var(--colorPaletteYellowBackground1)",ic="var(--colorPaletteYellowBackground3)",rc="var(--colorPaletteYellowBorder1)",br="var(--colorPaletteYellowForeground2)",Ts="var(--colorPaletteMarigoldBackground2)",nc="var(--colorPaletteMarigoldBorderActive)",sc="var(--colorPaletteMarigoldForeground2)",ac="var(--colorPaletteAnchorBackground2)",lc="var(--colorPaletteAnchorForeground2)",cc="var(--colorPaletteBeigeBackground2)",dc="var(--colorPaletteBeigeForeground2)",hc="var(--colorPaletteBlueBackground2)",uc="var(--colorPaletteBlueForeground2)",pc="var(--colorPaletteBrassBackground2)",gc="var(--colorPaletteBrassForeground2)",fc="var(--colorPaletteBrownBackground2)",bc="var(--colorPaletteBrownForeground2)",mc="var(--colorPaletteCornflowerBackground2)",vc="var(--colorPaletteCornflowerForeground2)",$c="var(--colorPaletteCranberryBackground2)",yc="var(--colorPaletteCranberryForeground2)",xc="var(--colorPaletteDarkGreenBackground2)",kc="var(--colorPaletteDarkGreenForeground2)",wc="var(--colorPaletteDarkRedBackground2)",Cc="var(--colorPaletteDarkRedForeground2)",Sc="var(--colorPaletteForestBackground2)",Ic="var(--colorPaletteForestForeground2)",Pc="var(--colorPaletteGoldBackground2)",zc="var(--colorPaletteGoldForeground2)",Tc="var(--colorPaletteGrapeBackground2)",_c="var(--colorPaletteGrapeForeground2)",Oc="var(--colorPaletteLavenderBackground2)",Bc="var(--colorPaletteLavenderForeground2)",Nc="var(--colorPaletteLightTealBackground2)",Ac="var(--colorPaletteLightTealForeground2)",Ec="var(--colorPaletteLilacBackground2)",Fc="var(--colorPaletteLilacForeground2)",Mc="var(--colorPaletteMagentaBackground2)",Dc="var(--colorPaletteMagentaForeground2)",Lc="var(--colorPaletteMinkBackground2)",Vc="var(--colorPaletteMinkForeground2)",Hc="var(--colorPaletteNavyBackground2)",Rc="var(--colorPaletteNavyForeground2)",jc="var(--colorPalettePeachBackground2)",qc="var(--colorPalettePeachForeground2)",Wc="var(--colorPalettePinkBackground2)",Uc="var(--colorPalettePinkForeground2)",Gc="var(--colorPalettePlatinumBackground2)",Xc="var(--colorPalettePlatinumForeground2)",Kc="var(--colorPalettePlumBackground2)",Yc="var(--colorPalettePlumForeground2)",Jc="var(--colorPalettePumpkinBackground2)",Qc="var(--colorPalettePumpkinForeground2)",Zc="var(--colorPalettePurpleBackground2)",ed="var(--colorPalettePurpleForeground2)",td="var(--colorPaletteRoyalBlueBackground2)",od="var(--colorPaletteRoyalBlueForeground2)",id="var(--colorPaletteSeafoamBackground2)",rd="var(--colorPaletteSeafoamForeground2)",nd="var(--colorPaletteSteelBackground2)",sd="var(--colorPaletteSteelForeground2)",ad="var(--colorPaletteTealBackground2)",ld="var(--colorPaletteTealForeground2)",li="var(--borderRadiusNone)",Ee="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",_s="var(--borderRadiusLarge)",Os="var(--borderRadiusXLarge)",he="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",cd="var(--fontFamilyMonospace)",dd="var(--fontFamilyNumeric)",vo="var(--fontSizeBase100)",D="var(--fontSizeBase200)",A="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",Rt="var(--fontSizeBase500)",ci="var(--fontSizeBase600)",Bs="var(--fontSizeHero700)",Ns="var(--fontSizeHero800)",As="var(--fontSizeHero900)",Es="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",hd="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",di="var(--fontWeightBold)",hi="var(--lineHeightBase100)",q="var(--lineHeightBase200)",L="var(--lineHeightBase300)",xe="var(--lineHeightBase400)",ui="var(--lineHeightBase500)",Fs="var(--lineHeightBase600)",Ms="var(--lineHeightHero700)",Ds="var(--lineHeightHero800)",Ls="var(--lineHeightHero900)",Vs="var(--lineHeightHero1000)",mr="var(--shadow2)",pi="var(--shadow4)",ud="var(--shadow8)",vr="var(--shadow16)",pd="var(--shadow28)",Hs="var(--shadow64)",z="var(--strokeWidthThin)",pe="var(--strokeWidthThick)",Ie="var(--strokeWidthThicker)",$r="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",re="var(--spacingHorizontalXS)",ke="var(--spacingHorizontalSNudge)",Fe="var(--spacingHorizontalS)",et="var(--spacingHorizontalMNudge)",ne="var(--spacingHorizontalM)",gd="var(--spacingHorizontalL)",fd="var(--spacingHorizontalXL)",gi="var(--spacingHorizontalXXL)",yr="var(--spacingVerticalNone)",fi="var(--spacingVerticalXXS)",jt="var(--spacingVerticalXS)",$o="var(--spacingVerticalSNudge)",se="var(--spacingVerticalS)",bi="var(--spacingVerticalMNudge)",bd="var(--spacingVerticalM)",xr="var(--spacingVerticalL)",Pt="var(--spacingVerticalXXL)",md="var(--spacingVerticalXXXL)",kr="var(--durationUltraFast)",mi="var(--durationFaster)",vi="var(--durationNormal)",wr="var(--durationGentle)",vd="var(--durationSlow)",Rs="var(--durationSlower)",$i="var(--durationUltraSlow)",$d="var(--curveAccelerateMax)",zt="var(--curveAccelerateMid)",yd="var(--curveAccelerateMin)",js="var(--curveDecelerateMax)",Tt="var(--curveDecelerateMid)",xd="var(--curveDecelerateMin)",qs="var(--curveEasyEaseMax)",yi="var(--curveEasyEase)",Cr="var(--curveLinear)",kd=g`${w("block")} :host{max-width:fit-content;contain:content;color:${O}}.heading{height:44px;display:grid;position:relative;padding-inline:${ne} ${et};border-radius:${S};font-family:${v};font-size:${A};font-weight:${E};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ce};border:none;box-sizing:border-box;color:inherit;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:${Ee}}: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:${Fe};grid-column:1/span 1;grid-row:1}.content{margin:0 ${ne}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Fe};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee};outline:none;border:2px solid ${ai};box-shadow:inset 0 0 0 1px ${de}}:host([disabled]) .button{color:${N}}: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:${A};line-height:${L}}:host([size='small']) .heading{font-size:${D};line-height:${q}}:host([size='large']) .heading{font-size:${ue};line-height:${xe}}:host([size='extra-large']) .heading{font-size:${Rt};line-height:${ui}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${Fe};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:${ne}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${et} ${ne}}: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}`;function ge(o){return o?typeof o=="string"?new xt(o):"inline"in o?o.inline():o:xt.empty}class at{}function lt(o){return b`<slot name=end ${_("end")}>${ge(o.end)}</slot>`.inline()}function Ue(o){return b`<slot name=start ${_("start")}>${ge(o.start)}</slot>`.inline()}const wd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),Cd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path 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" fill=currentColor /></svg>');function Sd(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${_("expandbutton")}><slot name=heading></slot></button> ${Ue(o)}<slot name=marker-expanded>${ge(o.expandedIcon)}</slot><slot name=marker-collapsed>${ge(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const Id=Sd({collapsedIcon:wd,expandedIcon:Cd}),Pd={name:Ta,registry:u.registry,styles:kd,template:Id};function ct(o,...e){const t=Yo.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(i.prototype,n))}),Yo.locate(i).forEach(n=>t.push(n))})}var zd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,xi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Td(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&zd(e,t,r),r};class yo extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}xi([a({attribute:"heading-level",mode:"fromView",converter:ie})],yo.prototype,"headinglevel",2),xi([a({mode:"boolean"})],yo.prototype,"expanded",2),xi([a({mode:"boolean"})],yo.prototype,"disabled",2),xi([f],yo.prototype,"expandbutton",2);var _d=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,Sr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Od(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&_d(e,t,r),r};class xo extends yo{constructor(){super(...arguments),this.block=!1}}Sr([a],xo.prototype,"size",2),Sr([a({attribute:"marker-position"})],xo.prototype,"markerPosition",2),Sr([a({mode:"boolean"})],xo.prototype,"block",2),ct(xo,at),xo.define(Pd);const Ir={single:"single",multi:"multi"},Bd=`${u.prefix}-accordion`,Nd=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Ad(){return b`<template><slot ${X({property:"slottedAccordionItems",filter:co()})}></slot></template>`}const Ed=Ad(),Fd={name:Bd,registry:u.registry,styles:Nd,template:Ed};function Ws(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,timeRemaining:()=>0})},e?.timeout??1)}function ko(o,e,t){const i=t?.shallow??!1,r=t?.timeout??50,n=t?.idleCallback??!1,s=`${i?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){n?Ws(e,{timeout:r}):e();return}Ws(c,{timeout:r})};c()}var Md=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,Us=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Md(e,t,r),r};class Pr extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{ko(this,()=>{if(!this.slottedAccordionItems?.length)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;Gi(t)&&(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===Ir.single){this.setSingleExpandMode(i);return}i?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Gi(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ir.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{Gi(i)&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton?.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Ir.multi,this.setItems()}}Us([a({attribute:"expand-mode"})],Pr.prototype,"expandmode",2),Us([f],Pr.prototype,"slottedAccordionItems",2),Pr.define(Fd);const Ld={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Vd={circular:"circular",rounded:"rounded",square:"square"},Hd={small:"small",medium:"medium",large:"large"},ki={submit:"submit",reset:"reset",button:"button"},Rd=`${u.prefix}-button`,jd=Ld,qd=Vd,Wd=Hd,Ud={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},Gd=`${u.prefix}-anchor-button`,Gs=g`${w("inline-flex")} :host{--icon-spacing:${ke};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:${P};color:${O};border:${z} solid ${We};padding:0 ${ne};min-width:96px;border-radius:${S};font-size:${A};font-family:${v};font-weight:${H};line-height:${L};transition-duration:${mi};transition-property:background,border,color;transition-timing-function:${yi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ii};color:${rs};border-color:${It}}:host(:hover:active){background-color:${hr};border-color:${bo};color:${yl};outline-style:none}:host(:focus-visible){border-color:${Y};outline:${pe} solid ${Y};box-shadow:${pi},0 0 0 2px ${de}}@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:${re};min-height:24px;min-width:64px;padding:0 ${Fe};border-radius:${Ee};font-size:${D};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${_s};padding:0 ${gd};font-size:${ue};line-height:${xe}}: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:${he}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${li}}:host([appearance='primary']){background-color:${hs};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${us}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ze}}:host([appearance='primary']:hover:active){background-color:${ps}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${mr},0 0 0 2px ${de}}:host([appearance='outline']){background-color:${ce}}:host([appearance='outline']:hover){background-color:${ni}}:host([appearance='outline']:hover:active){background-color:${si}}:host([appearance='subtle']){background-color:${ls};color:${Ae};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ri};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${fo};color:${Lt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ei}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${ti}}:host([appearance='transparent']){background-color:${ce};color:${Ae}}:host([appearance='transparent']:hover){background-color:${ni};color:${ei}}:host([appearance='transparent']:hover:active){background-color:${si};color:${ti}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,wi=g`${Gs} :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:${nt};border-color:${ye};color:${N};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:${ce}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ce};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:${ce}}@media (forced-colors:active){: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}}`,Xd=g`${Gs} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Kd(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${Ue(o)} <span class=content part=content><slot></slot></span>${lt(o)}</template>`}const Yd=Kd(),Jd={name:Gd,registry:u.registry,styles:Xd,template:Yd},Ci=CSS.supports("anchor-name: --a"),Qd="anchor"in HTMLElement.prototype,Xs=CSS.supports("selector(:state(g))"),Ks=new Map;function T(o){return Ks.get(o)??Ks.set(o,Xs?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Xs){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const zr=new WeakMap;function Ys(o,e){if(!o||!e)return!1;if(zr.has(o))return zr.get(o).has(e);const t=new Set(Object.values(o));return zr.set(o,t),t.has(e)}function _t(o,e="",t="",i,r=""){$(o,`${r}${e}`,!1),(!i||Ys(i,t))&&$(o,`${r}${t}`,!0)}var Zd=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,dt=(o,e,t,i)=>{for(var r=i>1?void 0:i?eh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Zd(e,t,r),r};class Ge extends k{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,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 Ud){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){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.inert=!0,e}}dt([a],Ge.prototype,"download",2),dt([a],Ge.prototype,"href",2),dt([a],Ge.prototype,"hreflang",2),dt([a],Ge.prototype,"ping",2),dt([a],Ge.prototype,"referrerpolicy",2),dt([a],Ge.prototype,"rel",2),dt([a],Ge.prototype,"target",2),dt([a],Ge.prototype,"type",2);var th=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,Si=(o,e,t,i)=>{for(var r=i>1?void 0:i?oh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&th(e,t,r),r};class qt extends Ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){_t(this.elementInternals,e,t,jd)}shapeChanged(e,t){_t(this.elementInternals,e,t,qd)}sizeChanged(e,t){_t(this.elementInternals,e,t,Wd)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Si([a],qt.prototype,"appearance",2),Si([a],qt.prototype,"shape",2),Si([a],qt.prototype,"size",2),Si([a({attribute:"icon-only",mode:"boolean"})],qt.prototype,"iconOnly",2),ct(qt,at),qt.define(Jd);const Js={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"},Qs={neutral:"neutral",brand:"brand",colorful:"colorful",...Js},ih=`${u.prefix}-avatar`,ht={fastOutSlowInMax:js,fastOutSlowInMid:Tt,fastOutSlowInMin:xd,slowOutFastInMax:$d,slowOutFastInMid:zt,slowOutFastInMin:yd,fastEase:qs,normalEase:yi,nullEasing:Cr},rh=g`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${A};border-radius:${he};color:${K};background-color:${go};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${he}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${z} ${P}}: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} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${vo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${D}}: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:${ci}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ee}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${_s}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Os}}:host([data-color='brand']){color:${ns};background-color:${gs}}:host([data-color='dark-red']){color:${Cc};background-color:${wc}}:host([data-color='cranberry']){color:${yc};background-color:${$c}}:host([data-color='red']){color:${Kl};background-color:${Xl}}:host([data-color='pumpkin']){color:${Qc};background-color:${Jc}}:host([data-color='peach']){color:${qc};background-color:${jc}}:host([data-color='marigold']){color:${sc};background-color:${Ts}}:host([data-color='gold']){color:${zc};background-color:${Pc}}:host([data-color='brass']){color:${gc};background-color:${pc}}:host([data-color='brown']){color:${bc};background-color:${fc}}:host([data-color='forest']){color:${Ic};background-color:${Sc}}:host([data-color='seafoam']){color:${rd};background-color:${id}}:host([data-color='dark-green']){color:${kc};background-color:${xc}}:host([data-color='light-teal']){color:${Ac};background-color:${Nc}}:host([data-color='teal']){color:${ld};background-color:${ad}}:host([data-color='steel']){color:${sd};background-color:${nd}}:host([data-color='blue']){color:${uc};background-color:${hc}}:host([data-color='royal-blue']){color:${od};background-color:${td}}:host([data-color='cornflower']){color:${vc};background-color:${mc}}:host([data-color='navy']){color:${Rc};background-color:${Hc}}:host([data-color='lavender']){color:${Bc};background-color:${Oc}}:host([data-color='purple']){color:${ed};background-color:${Zc}}:host([data-color='grape']){color:${_c};background-color:${Tc}}:host([data-color='lilac']){color:${Fc};background-color:${Ec}}:host([data-color='pink']){color:${Uc};background-color:${Wc}}:host([data-color='magenta']){color:${Dc};background-color:${Mc}}:host([data-color='plum']){color:${Yc};background-color:${Kc}}:host([data-color='beige']){color:${dc};background-color:${cc}}:host([data-color='mink']){color:${Vc};background-color:${Lc}}:host([data-color='platinum']){color:${Xc};background-color:${Gc}}:host([data-color='anchor']){color:${lc};background-color:${ac}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${$i},${mi};transition-delay:${ht.fastEase},${ht.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${$i},${Rs};transition-delay:${ht.fastEase},${ht.nullEasing}}:host([active])::before{box-shadow:${ud};border-style:solid;border-color:${gs}}: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 * ${Ie});border-width:${Ie}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${$r});border-width:${$r}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${pi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${vr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${pd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${$i},${mi};transition-delay:${ht.fastOutSlowInMin},${ht.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${$i},${Rs};transition-delay:${ht.fastOutSlowInMin},${ht.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}}`,nh=b`<svg width=1em height=1em viewBox="0 0 20 20" 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 sh(){return b`<slot class=default-slot ${X("slottedDefaults")} ${_("defaultSlot")}></slot><span class=monogram ${_("monogram")}>${o=>o.initials}</span> ${nh}<slot name=badge></slot>`}const ah=sh(),lh={name:ih,registry:u.registry,styles:rh,template:ah},ch=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,dh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,hh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,uh=/\s+/g,ph=/[\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 gh(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 fh(o){return o=o.replace(ch,""),o=o.replace(dh,""),o=o.replace(uh," "),o=o.trim(),o}function Zs(o,e,t){return!o||(o=fh(o),ph.test(o)||!t?.allowPhoneInitials&&hh.test(o))?"":gh(o,e,t?.firstInitialOnly)}var bh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,wo=(o,e,t,i)=>{for(var r=i>1?void 0:i?mh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&bh(e,t,r),r};class Wt extends k{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}B.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Zs(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}wo([f],Wt.prototype,"defaultSlot",2),wo([f],Wt.prototype,"monogram",2),wo([f],Wt.prototype,"slottedDefaults",2),wo([a],Wt.prototype,"name",2),wo([a],Wt.prototype,"initials",2);var vh=Object.defineProperty,$h=Object.getOwnPropertyDescriptor,Ut=(o,e,t,i)=>{for(var r=i>1?void 0:i?$h(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&vh(e,t,r),r};const ut=class nn extends Wt{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||Zs(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Qs.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?nn.colors[xh(this.name??"")%nn.colors.length]:this.color??Qs.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)}};ut.colors=Object.values(Js),Ut([a],ut.prototype,"active",2),Ut([a],ut.prototype,"shape",2),Ut([a],ut.prototype,"appearance",2),Ut([a({converter:ie})],ut.prototype,"size",2),Ut([a],ut.prototype,"color",2),Ut([a({attribute:"color-id"})],ut.prototype,"colorId",2);let yh=ut;const xh=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};yh.define(lh);const kh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},wh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Ch=`${u.prefix}-badge`,ea=g.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${D};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${re} + ${R});border-radius:${he};border-color:${Y};background-color:${hs};color:${Ze};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${z};border-color:inherit;border-radius:inherit}`,ta=g.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${vo};line-height:${hi};padding-inline:calc(${R} + ${R})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${D};line-height:${q};padding-inline:calc(${re} + ${R})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${D};line-height:${q};padding-inline:calc(${ke} + ${R})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,oa=g.partial`:host([color='danger']){background-color:${ys};color:${Ze}}:host([color='important']){background-color:${O};color:${P}}:host([color='informative']){background-color:${Dl};color:${K}}:host([color='severe']){background-color:${Is};color:${Ze}}:host([color='subtle']){background-color:${P};color:${O}}:host([color='success']){background-color:${Cs};color:${Ze}}:host([color='warning']){background-color:${ic};color:${Fl}}`,ia=g.partial`:host([appearance='ghost']){color:${oi};background-color:initial}:host([appearance='ghost'][color='danger']){color:${ks}}:host([appearance='ghost'][color='important']){color:${O}}:host([appearance='ghost'][color='informative']){color:${K}}:host([appearance='ghost'][color='severe']){color:${zs}}:host([appearance='ghost'][color='subtle']){color:${kt}}:host([appearance='ghost'][color='success']){color:${ec}}:host([appearance='ghost'][color='warning']){color:${br}}`,Sh=g.partial`:host([appearance='outline']){border-color:currentColor;color:${oi};background-color:initial}:host([appearance='outline'][color='danger']){color:${ks}}:host([appearance='outline'][color='important']){color:${K};border-color:${qe}}:host([appearance='outline'][color='informative']){color:${K};border-color:${mo}}:host([appearance='outline'][color='severe']){color:${zs}}:host([appearance='outline'][color='subtle']){color:${ns}}:host([appearance='outline'][color='success']){color:${Zl}}:host([appearance='outline'][color='warning']){color:${br}}`,Ih=g.partial`:host([appearance='tint']){background-color:${fs};color:${El};border-color:${ms}}:host([appearance='tint'][color='danger']){background-color:${$s};color:${fr};border-color:${xs}}:host([appearance='tint'][color='important']){background-color:${K};color:${P};border-color:${Y}}:host([appearance='tint'][color='informative']){background-color:${Ml};color:${K};border-color:${mo}}:host([appearance='tint'][color='severe']){background-color:${Ss};color:${tc};border-color:${Ps}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${K};border-color:${mo}}:host([appearance='tint'][color='success']){background-color:${ws};color:${Ql};border-color:${Jl}}:host([appearance='tint'][color='warning']){background-color:${oc};color:${br};border-color:${rc}}`,Ph=g`:host([shape='square']){border-radius:${li}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${Ih} ${Sh} ${ia} ${oa} ${ta} ${ea} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function zh(o={}){return b`${Ue(o)}<slot>${ge(o.defaultContent)}</slot>${lt(o)}`}const Th=zh(),_h={name:Ch,registry:u.registry,styles:Ph,template:Th};var Oh=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Oh(e,t,r),r};class Gt extends k{constructor(){super(...arguments),this.appearance=kh.filled,this.color=wh.brand}}Ii([a],Gt.prototype,"appearance",2),Ii([a],Gt.prototype,"color",2),Ii([a],Gt.prototype,"shape",2),Ii([a],Gt.prototype,"size",2),ct(Gt,at),Gt.define(_h);function Tr(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ue(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot></span>${lt(o)}</template>`}const Nh=Tr(),Ah={name:Rd,registry:u.registry,styles:wi,template:Nh};function tt(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&B.enqueue(()=>{o.focus()})}var Eh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Pe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Eh(e,t,r),r};class fe extends k{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(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.setTabIndex(),tt(this)}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==="Enter"||e.key===" "){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()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}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)}}}}fe.formAssociated=!0,Pe([f],fe.prototype,"defaultSlottedContent",2),Pe([a({mode:"boolean"})],fe.prototype,"disabled",2),Pe([a({attribute:"disabled-focusable",mode:"boolean"})],fe.prototype,"disabledFocusable",2),Pe([a({attribute:"formaction"})],fe.prototype,"formAction",2),Pe([a({attribute:"form"})],fe.prototype,"formAttribute",2),Pe([a({attribute:"formenctype"})],fe.prototype,"formEnctype",2),Pe([a({attribute:"formmethod"})],fe.prototype,"formMethod",2),Pe([a({attribute:"formnovalidate",mode:"boolean"})],fe.prototype,"formNoValidate",2),Pe([a({attribute:"formtarget"})],fe.prototype,"formTarget",2),Pe([a],fe.prototype,"name",2),Pe([a],fe.prototype,"type",2),Pe([a],fe.prototype,"value",2);var Mh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mh(e,t,r),r};class ot extends fe{constructor(){super(...arguments),this.iconOnly=!1}}Pi([a],ot.prototype,"appearance",2),Pi([a],ot.prototype,"shape",2),Pi([a],ot.prototype,"size",2),Pi([a({attribute:"icon-only",mode:"boolean"})],ot.prototype,"iconOnly",2),ct(ot,at),ot.define(Ah);const Lh=`${u.prefix}-checkbox`,Vh=T("active"),Hh=T("bad-input"),y=T("checked"),Rh=T("custom-error"),jh=T("description"),be=T("disabled");T("error");const qh=T("flip-block"),Wh=T("focus-visible");T("has-message");const Ot=T("indeterminate"),Xt=T("multiple"),Uh=T("open"),Gh=T("pattern-mismatch"),Xh=T("placeholder-shown"),M=T("pressed"),Kh=T("range-overflow"),Yh=T("range-underflow"),Jh=T("required"),_r=T("selected"),Qh=T("step-mismatch"),zi=T("submenu"),Zh=T("too-long"),eu=T("too-short"),tu=T("type-mismatch"),ou=T("user-invalid"),iu=T("valid"),ru=T("value-missing"),nu=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${Ee};border:${z} solid ${qe};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ct}}:host(:active){border-color:${St}}:host(${y}:hover){background-color:${Vt};border-color:${Wl}}:host(${y}:active){background-color:${Ht};border-color:${vs}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${pe} solid ${Y};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${de}}.indeterminate-indicator,.checked-indicator{color:${kt};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(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${Ot}){border-color:${st}}:host(${y}),:host(${Ot}) .indeterminate-indicator{background-color:${wt}}:host(${Ot}) .indeterminate-indicator{border-radius:${Ee};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:${he}}:host([disabled]),:host([disabled]${y}){background-color:${nt};border-color:${ye}}:host([disabled]){cursor:unset}:host([disabled]${Ot}) .indeterminate-indicator{background-color:${ye}}:host([disabled]${y}) .checked-indicator{color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${Ot}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Ot}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ot}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,su=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),au=b.partial("<span class=indeterminate-indicator></span>");function lu(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>${ge(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ge(o.indeterminateIndicator)}</slot></template>`}const cu=lu({checkedIndicator:su,indeterminateIndicator:au}),du={name:Lh,registry:u.registry,styles:nu,template:cu};var hu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,Bt=(o,e,t,i)=>{for(var r=i>1?void 0:i?uu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&hu(e,t,r),r};class Me extends k{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(),$(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",$(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.elementInternals&&(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.elementInternals&&(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(),tt(this)}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&&(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.elementInternals){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}}Me.formAssociated=!0,Bt([f],Me.prototype,"disabled",2),Bt([a({attribute:"disabled",mode:"boolean"})],Me.prototype,"disabledAttribute",2),Bt([a({attribute:"form"})],Me.prototype,"formAttribute",2),Bt([a({attribute:"checked",mode:"boolean"})],Me.prototype,"initialChecked",2),Bt([a({attribute:"value",mode:"fromView"})],Me.prototype,"initialValue",2),Bt([a],Me.prototype,"name",2),Bt([a({mode:"boolean"})],Me.prototype,"required",2);var pu=Object.defineProperty,gu=Object.getOwnPropertyDescriptor,Or=(o,e,t,i)=>{for(var r=i>1?void 0:i?gu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&pu(e,t,r),r};class Ti extends Me{indeterminateChanged(e,t){this.setAriaChecked(),$(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)}}Or([f],Ti.prototype,"indeterminate",2),Or([a],Ti.prototype,"shape",2),Or([a],Ti.prototype,"size",2),Ti.define(du);const fu=`${u.prefix}-compound-button`,bu=g`${wi} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${A};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ae};line-height:100%;font-size:${D};font-weight:${E}}::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:${Lt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ae}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ei}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${ti}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${N}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ke}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${re}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Fe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${xe}}:host([size='large']) ::slotted([slot='description']){font-size:${A}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function mu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ue(o)} <span class=content part=content><slot ${X("defaultSlottedContent")}></slot><slot name=description></slot></span>${lt(o)}</template>`}const vu=mu(),$u={name:fu,registry:u.registry,styles:bu,template:vu};class yu extends ot{}yu.define($u);const xu=`${u.prefix}-counter-badge`,ku=g`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${ta} ${oa} ${ia} ${ea} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function wu(o={}){return b`${Ue(o)} <span>${e=>e.displayValue}</span> ${lt(o)}`}const Cu=wu(),Su={name:xu,registry:u.registry,styles:ku,template:Cu};var Iu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,Co=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Iu(e,t,r),r};class Kt extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Co([a({converter:ie})],Kt.prototype,"count",2),Co([a({attribute:"overflow-count",converter:ie})],Kt.prototype,"overflowCount",2),Co([a({attribute:"show-zero",mode:"boolean"})],Kt.prototype,"showZero",2),Co([a({mode:"boolean"})],Kt.prototype,"dot",2),Co([$e],Kt.prototype,"displayValue",1);var zu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?Tu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&zu(e,t,r),r};class Yt extends Kt{}_i([a],Yt.prototype,"appearance",2),_i([a],Yt.prototype,"color",2),_i([a],Yt.prototype,"shape",2),_i([a],Yt.prototype,"size",2),ct(Yt,at),Yt.define(Su);const Nt={modal:"modal",nonModal:"non-modal",alert:"alert"};function ra(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const _u=`${u.prefix}-dialog`,Ou=g`@layer base{:host{--dialog-backdrop:${ur};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${Os};border:none;box-shadow:${Hs};color:${O};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;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:${wr};transition-timing-function:${Tt};opacity:0}::backdrop{transition-timing-function:${Cr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${zt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${z} solid ${Y}}}}`,Bu=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${_("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,Nu={name:_u,registry:u.registry,styles:Ou,template:Bu};var Au=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,Xe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Eu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Au(e,t,r),r};class De extends k{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==Nt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Nt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Nt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Nt.alert||this.type===Nt.modal?this.dialog.showModal():this.type===Nt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Nt.alert&&e.target===this.dialog&&this.hide(),!0}}Xe([f],De.prototype,"dialog",2),Xe([a({attribute:"aria-describedby"})],De.prototype,"ariaDescribedby",2),Xe([a({attribute:"aria-labelledby"})],De.prototype,"ariaLabelledby",2),Xe([a({attribute:"aria-label"})],De.prototype,"ariaLabel",2),Xe([a],De.prototype,"type",2),Xe([$e],De.prototype,"dialogDescribedby",1),Xe([$e],De.prototype,"dialogLabel",1),Xe([$e],De.prototype,"dialogLabelledby",1),Xe([$e],De.prototype,"dialogModal",1),Xe([$e],De.prototype,"dialogRole",1),De.define(Nu);const Fu=`${u.prefix}-dialog-body`,Mu=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${se};padding:${Pt} ${gi};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${O};column-gap:8px;display:flex;font-family:${v};font-size:${Rt};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${ui};margin-block-end:calc(${se} * -1);margin-block-start:calc(${Pt} * -1);padding-block-end:${se};padding-block-start:${Pt}}.content{box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${se};inset-block-end:0;margin-block-end:calc(${Pt} * -1);padding-block-end:${Pt};padding-block-start:${xr}}::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(${se} * -1);padding-block-start:${se}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,Du=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>`,Lu={name:Fu,registry:u.registry,styles:Mu,template:Du};class Vu extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t)&&t.hide()}return!0}}Vu.define(Lu);const we={horizontal:"horizontal",vertical:"vertical"},So={separator:"separator",presentation:"presentation"},na=we,Hu=`${u.prefix}-divider`,Ru=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${mo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${z}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ae};font-family:${v};font-size:${D};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){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:${z};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:${We}}:host([appearance='strong']) ::slotted(*){color:${O}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${bs}}:host([appearance='brand']) ::slotted(*){color:${oi}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${jl}}:host([appearance='subtle']) ::slotted(*){color:${K}}@media (forced-colors:active){: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}}`;function ju(){return b`<slot></slot>`}const qu=ju(),Wu={name:Hu,registry:u.registry,styles:Ru,template:qu};var Uu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,sa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Uu(e,t,r),r};class Br extends k{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??na.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,_t(this.elementInternals,e,t,na)}}sa([a],Br.prototype,"role",2),sa([a],Br.prototype,"orientation",2);var Xu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Nr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ku(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Xu(e,t,r),r};class Oi extends Br{}Nr([a({attribute:"align-content"})],Oi.prototype,"alignContent",2),Nr([a],Oi.prototype,"appearance",2),Nr([a({mode:"boolean"})],Oi.prototype,"inset",2),Oi.define(Wu);const Yu={start:"start",end:"end"},Ju={small:"small",medium:"medium",large:"large",full:"full"},Io={nonModal:"non-modal",modal:"modal",inline:"inline"},Qu=`${u.prefix}-drawer`,Zu=g`${w("block")} :host{--dialog-backdrop:${ur}}: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{background:${P};border-radius:0;border:${z} solid ${Y};border-inline-end-color:${Y};border-inline-start-color:var(--drawer-separator,${Y});box-shadow:${Hs};box-sizing:border-box;color:${O};font-family:${v};font-size:${A};font-weight:${E};height:100%;line-height:${L};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${gi});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}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:${wr};transition-timing-function:${Tt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${zt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${zt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${wr};transition-timing-function:${Tt};background:var(--dialog-backdrop,${ur});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Cr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function ep(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${_("dialog")}><slot></slot></dialog>`}const tp=ep(),op={name:Qu,registry:u.registry,styles:Zu,template:tp};var ip=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,ze=(o,e,t,i)=>{for(var r=i>1?void 0:i?rp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ip(e,t,r),r};class Ce extends k{constructor(){super(...arguments),this.position=Yu.start,this.size=Ju.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"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===Io.modal)return!0}get dialogRole(){return this.dialog&&this.type===Io.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.type=this.type??Io.modal})}show(){B.enqueue(()=>{this.emitBeforeToggle(),this.type===Io.inline||this.type===Io.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}ze([a],Ce.prototype,"type",2),ze([a({attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledby",2),ze([a({attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedby",2),ze([a],Ce.prototype,"position",2),ze([f],Ce.prototype,"role",2),ze([a({attribute:"size"})],Ce.prototype,"size",2),ze([f],Ce.prototype,"dialog",2),ze([$e],Ce.prototype,"dialogDescribedby",1),ze([$e],Ce.prototype,"dialogLabel",1),ze([$e],Ce.prototype,"dialogLabelledby",1),ze([$e],Ce.prototype,"dialogModal",1),ze([$e],Ce.prototype,"dialogRole",1),Ce.define(op);const np=`${u.prefix}-drawer-body`,aa=g.partial`font-family:${v};font-size:${A};line-height:${L};font-weight:${E};`;g.partial`font-family:${v};font-size:${A};line-height:${L};font-weight:${H};`,g.partial`font-family:${v};font-size:${A};line-height:${L};font-weight:${di};`;const sp=g.partial`font-family:${v};font-size:${ue};line-height:${xe};font-weight:${E};`,la=g.partial`font-family:${v};font-size:${D};line-height:${q};font-weight:${E};`;g.partial`font-family:${v};font-size:${D};line-height:${q};font-weight:${H};`,g.partial`font-family:${v};font-size:${D};line-height:${q};font-weight:${di};`,g.partial`font-family:${v};font-size:${vo};line-height:${hi};font-weight:${E};`,g.partial`font-family:${v};font-size:${vo};line-height:${hi};font-weight:${H};`;const ap=g.partial`font-family:${v};font-size:${Rt};line-height:${ui};font-weight:${H};`;g.partial`font-family:${v};font-size:${ue};line-height:${xe};font-weight:${H};`,g.partial`font-family:${v};font-size:${ue};line-height:${xe};font-weight:${di};`,g.partial`font-family:${v};font-size:${Ns};line-height:${Ds};font-weight:${H};`,g.partial`font-family:${v};font-size:${Bs};line-height:${Ms};font-weight:${H};`,g.partial`font-family:${v};font-size:${ci};line-height:${Fs};font-weight:${H};`,g.partial`font-family:${v};font-size:${As};line-height:${Ls};font-weight:${H};`,g.partial`font-family:${v};font-size:${Es};line-height:${Vs};font-weight:${H};`;const lp=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${fd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${ap}}.footer{display:flex;justify-content:flex-start;gap:${ne}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function cp(){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 dp=cp(),hp={name:np,registry:u.registry,styles:lp,template:dp};class up extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ra(t,"-drawer")&&t.hide()}return!0}}up.define(hp);const pp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Ar={combobox:"combobox",dropdown:"dropdown",select:"select"},gp=`${u.prefix}-dropdown`,fp=g`${w("inline-flex")} :host{box-sizing:border-box;color:${O};cursor:pointer}:host(${Xh}){color:${dr}}.control{appearance:none;background-color:${P};border-radius:${S};border:${z} solid ${Y};box-shadow:inset 0 0 0 ${z} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${$o} ${et};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${aa}}:host([size='small']) .control{column-gap:${R};padding:${jt} ${ke};${la}}:host([size='large']) .control{column-gap:${Fe};padding:${se} ${ne};${sp}}::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:${K};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:${z}}.control::after{background-color:${st};height:${pe};scale:0 1;transition:scale ${kr} ${Tt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${ai};outline:${pe} solid ${de}}:host(:where(${Uh},:focus-within)) .control::after{scale:1 1;transition-duration:${vi};transition-timing-function:${zt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${qe}}:host([appearance='transparent']) .control{--control-border-color:${pr};background-color:${ce};border-radius:${li}}:host([appearance='outline']) .control{--control-border-color:${We}}:host([appearance='outline']) .control:hover{--control-border-color:${It}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${Ct}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${bo}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${St}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ht}}:host([appearance='filled-darker']) .control{background-color:${po}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${Y}}: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:${ye};background-color:${nt};color:${N}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${L} + (${$o} * 2) + ${z})}:host([size='small']){--margin-offset:calc(${q} + (${jt} * 2) + ${z})}:host([size='large']){--margin-offset:calc(${xe} + (${se} * 2) + ${z})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,bp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${_("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>`,mp=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 ${_("control")}>`,vp=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 ${_("control")}>${o=>o.displayValue}</button>`;function $p(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 ${_("controlSlot")}></slot><slot name=indicator ${_("indicatorSlot")}>${ge(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const yp=$p({indicator:bp}),xp={name:gp,registry:u.registry,styles:fp,template:yp};function ca(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const kp=`${u.prefix}-listbox`;function Jt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const wp=`${u.prefix}-option`,pt={ltr:"ltr",rtl:"rtl"},da=o=>o.closest("[dir]")?.dir==="rtl"?pt.rtl:pt.ltr;function ha(o){return o.closest("[lang]")?.lang??"en"}let Cp=0;function Ke(o="id-"){const e=`${o}${Cp++}`;return document.getElementById(e)?Ke(o):e}var Sp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ip(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Sp(e,t,r),r};const j=class so extends k{constructor(){super(),this.activeIndex=0,this.id=Ke("dropdown-"),this.required=!1,this.type=Ar.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||da(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._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}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,n)=>{r.active=n===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ke("input-"))}disabledChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ha(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(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);if(i.subscribe(t),i.notify("multiple"),B.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled,r.name=this.name}),this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,n)=>{r.selected=this.multiple||n===0}),this.setValidity()}),Ci){const r=Ke("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&B.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Ci||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Ar.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Jt(e))}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||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Jt(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(ha(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._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Ar.combobox){mp.render(this,this);return}vp.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let i=this.searchString.length>1?this.filterOptions(this.searchString):[],r=!1;if(!i.length&&t&&(i=this.filterOptions(e),r=!0),i.length){const n=this.enabledOptions[this.activeIndex],s=i.indexOf(n),c=r?i[this.getEnabledIndexInBounds(s+1,i.length)]:s>=0?n:i[0];this.activeIndex=this.enabledOptions.indexOf(c)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}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!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!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!Jt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(!this.elementInternals)return;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;ko(this,()=>{const i=t.assignedElements().find(r=>ca(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}}connectedCallback(){super.connectedCallback(),B.enqueue(()=>{this.insertControl()}),tt(this)}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:n})=>{if(ca(n)){if(i.bottom>window.innerHeight){$(n.elementInternals,"flip-block",!0);return}i.top<0&&$(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.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}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};j.formAssociated=!0,J([$e],j.prototype,"activeDescendant",1),J([f],j.prototype,"activeIndex",2),J([a({attribute:"aria-labelledby",mode:"fromView"})],j.prototype,"ariaLabelledBy",2),J([f],j.prototype,"control",2),J([a({mode:"boolean"})],j.prototype,"disabled",2),J([$e],j.prototype,"displayValue",1),J([a({attribute:"id"})],j.prototype,"id",2),J([f],j.prototype,"indicator",2),J([f],j.prototype,"indicatorSlot",2),J([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),J([f],j.prototype,"listbox",2),J([a({mode:"boolean"})],j.prototype,"multiple",2),J([a],j.prototype,"name",2),J([f],j.prototype,"open",2),J([a],j.prototype,"placeholder",2),J([a({mode:"boolean"})],j.prototype,"required",2),J([a],j.prototype,"type",2),J([a({attribute:"value"})],j.prototype,"valueAttribute",2);let Pp=j;var zp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?Tp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&zp(e,t,r),r};class Er extends Pp{constructor(){super(...arguments),this.appearance=pp.outline}}ua([a],Er.prototype,"appearance",2),ua([a],Er.prototype,"size",2),Er.define(xp);const _p={above:"above",after:"after",before:"before"},Te={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"},Op=`${u.prefix}-field`,Bp=g`${w("inline-grid")} :host{color:${O};align-items:center;gap:0 ${ne};justify-items:start}:has([slot='message']){color:${O};row-gap:${se}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ne}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${fi}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${bd}}:host(${Jh}) ::slotted([slot='label'])::after{content:'*'/'';color:${fr};margin-inline-start:${re}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${K};font-family:${v};font-size:${D};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${fi}}:host(${Wh}:focus-within){border-radius:${S};outline:${pe} solid ${de}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${A};font-weight:${E};grid-area:label;line-height:${L};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${D};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${xe}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${be}){cursor:default}::slotted([flag]){display:none}:host(${Hh}) ::slotted([flag='${Te.badInput}']),:host(${Rh}) ::slotted([flag='${Te.customError}']),:host(${Gh}) ::slotted([flag='${Te.patternMismatch}']),:host(${Kh}) ::slotted([flag='${Te.rangeOverflow}']),:host(${Yh}) ::slotted([flag='${Te.rangeUnderflow}']),:host(${Qh}) ::slotted([flag='${Te.stepMismatch}']),:host(${Zh}) ::slotted([flag='${Te.tooLong}']),:host(${eu}) ::slotted([flag='${Te.tooShort}']),:host(${tu}) ::slotted([flag='${Te.typeMismatch}']),:host(${ru}) ::slotted([flag='${Te.valueMissing}']),:host(${iu}) ::slotted([flag='${Te.valid}']){display:block}`,Np=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 ${X("labelSlot")}></slot><slot name=input part=input ${X("slottedInputs")}></slot><slot name=message part=message ${X({property:"messageSlot",filter:co("[flag]")})}></slot></template>`,Ap={name:Op,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:Bp,template:Np};var Ep=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Bi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ep(e,t,r),r};class Po extends k{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){$(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)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(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||Ke("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Te))$(this.elementInternals,t,this.input.validity[e])}}Bi([f],Po.prototype,"labelSlot",2),Bi([f],Po.prototype,"messageSlot",2),Bi([f],Po.prototype,"slottedInputs",2),Bi([f],Po.prototype,"input",2);var Mp=Object.defineProperty,Dp=Object.getOwnPropertyDescriptor,Lp=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mp(e,t,r),r};class pa extends Po{constructor(){super(...arguments),this.labelPosition=_p.above}}Lp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2),pa.define(Ap);const Vp=`${u.prefix}-image`,Hp=g`: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:${z} solid ${mo}}: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:${pi}}:host([shape='circular']) ::slotted(img){border-radius:${he}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,Rp=b`<slot></slot>`,jp={name:Vp,registry:u.registry,styles:Hp,template:Rp};var qp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,zo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&qp(e,t,r),r};class Qt extends k{}zo([a({mode:"boolean"})],Qt.prototype,"block",2),zo([a({mode:"boolean"})],Qt.prototype,"bordered",2),zo([a({mode:"boolean"})],Qt.prototype,"shadow",2),zo([a],Qt.prototype,"fit",2),zo([a],Qt.prototype,"shape",2),Qt.define(jp);const Up=`${u.prefix}-label`,Gp=g`${w("inline-flex")} :host{color:${O};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};line-height:${L};user-select:none}.asterisk{color:${fr};margin-inline-start:${re}}:host([size='small']){font-size:${D};line-height:${q}}:host([size='large']){font-size:${ue};line-height:${xe}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${N}}`;function Xp(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Kp=Xp(),Yp={name:Up,registry:u.registry,styles:Gp,template:Kp};var Jp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Jp(e,t,r),r};class To extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Ni([a],To.prototype,"size",2),Ni([a],To.prototype,"weight",2),Ni([a({mode:"boolean"})],To.prototype,"disabled",2),Ni([a({mode:"boolean"})],To.prototype,"required",2),To.define(Yp);const Zp=`${u.prefix}-link`,eg=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Sl};cursor:pointer;font-family:${v};font-size:${A};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${z};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Il}}:host(:active){color:${Pl}}:host([appearance='subtle']:hover){color:${Tl}}:host([appearance='subtle']:active){color:${_l}}}:host([appearance='subtle']){color:${zl}}: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}@media (forced-colors:active){:host{color:LinkText}}`;function tg(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const og=tg(),ig={name:Zp,registry:u.registry,styles:eg,template:og};var rg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,ga=(o,e,t,i)=>{for(var r=i>1?void 0:i?ng(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&rg(e,t,r),r};class Fr extends Ge{constructor(){super(...arguments),this.inline=!1}}ga([a],Fr.prototype,"appearance",2),ga([a({mode:"boolean"})],Fr.prototype,"inline",2),Fr.define(ig);const sg=g`${w("inline-flex")} :host{background-color:${P};border-radius:${S};border:${z} solid ${Y};box-shadow:${vr};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${re};row-gap:${R};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${qh}){margin-block-start:revert;translate:0 -100%}}`;function ag(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${_("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const lg=ag(),cg={name:kp,registry:u.registry,styles:sg,template:lg};var dg=Object.defineProperty,hg=Object.getOwnPropertyDescriptor,_o=(o,e,t,i)=>{for(var r=i>1?void 0:i?hg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&dg(e,t,r),r};class Zt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),B.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 Jt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),ko(this,()=>{this.id=this.id||Ke("listbox-")},{shallow:!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 n=r===e;i.selected=n,n&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){ko(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(i=>Jt(i));this.options=t}})}}_o([f],Zt.prototype,"defaultSlot",2),_o([f],Zt.prototype,"multiple",2),_o([f],Zt.prototype,"options",2),_o([f],Zt.prototype,"selectedIndex",2),_o([f],Zt.prototype,"dropdown",2),Zt.define(cg);const ug=`${u.prefix}-menu-button`,pg=wi,gg=Tr({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><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></svg>')}),fg={name:ug,registry:u.registry,styles:pg,template:gg};class bg extends ot{}bg.define(fg);const ee={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ee.menuitem+"",ee.menuitemcheckbox+"",ee.menuitemradio+"";function mg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const vg=`${u.prefix}-menu-item`,$g=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${S};color:${Ae};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${A}/${L} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ii};color:${Dt}}:host(:active){background-color:${ss};color:${Lt}}:host(:active) ::slotted([slot='start']){color:${Bl}}:host(${be}){background-color:${nt};color:${N}}:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:${N}}:host(:focus-visible){border-radius:${S};outline:2px solid ${de}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${zi})) .submenu-glyph,:host(:not(${zi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${K};font:${E} ${D}/${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}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${be}),:host(${be}) ::slotted([slot='start']),:host(${be}) ::slotted([slot='end']){color:GrayText}}`,yg=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>'),xg=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 kg(o={}){return b`<template tabindex=0 @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.handleToggle(t.event)}><slot name=indicator>${ge(o.indicator)}</slot>${Ue(o)}<div part=content class=content><slot></slot></div>${lt(o)}<slot name=submenu-glyph>${ge(o.submenuGlyph)}</slot><slot name=submenu ${X({property:"slottedSubmenu"})}></slot></template>`}const wg=kg({indicator:yg,submenuGlyph:xg}),Cg={name:vg,registry:u.registry,styles:$g,template:wg};var Sg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ig(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Sg(e,t,r),r};class it extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=ee.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":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.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case ee.menuitemcheckbox:this.checked=!this.checked;break;case ee.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ee.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,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??ee.menuitem}checkedChanged(e,t){const i=this.role!==ee.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,$(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??ee.menuitem,this.elementInternals.ariaChecked=this.role!==ee.menuitem?`${!!this.checked}`:null,tt(this)}}eo([a({mode:"boolean"})],it.prototype,"disabled",2),eo([a],it.prototype,"role",2),eo([a({mode:"boolean"})],it.prototype,"checked",2),eo([a({mode:"boolean"})],it.prototype,"hidden",2),eo([f],it.prototype,"slottedSubmenu",2),eo([f],it.prototype,"submenu",2),ct(it,at),it.define(Cg);const Pg=`${u.prefix}-menu-list`,zg=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${Y};border-radius:${S};box-shadow:${vr};padding:4px;row-gap:2px}`;function Tg(){return b`<template focusgroup=menu><slot ${X("items")}></slot></template>`}const _g=Tg(),Og={name:Pg,registry:u.registry,styles:zg,template:_g};var Oo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Mr={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Dr(o,e){return o.contains(e)}function Bg(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function Ng(o,e,t){const i="forward",r="backward",n="block",s="inline";if(Ag(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?r:i:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:c,direction:h}=window.getComputedStyle(e),d=!c.startsWith("horizontal-"),l=h==="rtl",p=d?n:s,x=d?s:n,C=d?c.endsWith("-rl")!==l:l,Be=d&&l,bt={ArrowUp:{axis:x,dir:Be?i:r},ArrowDown:{axis:x,dir:Be?r:i},ArrowLeft:{axis:p,dir:C?i:r},ArrowRight:{axis:p,dir:C?r:i},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!bt||t&&bt.axis&&bt.axis!==t?null:bt.dir}function Ag(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var Eg=globalThis.__FOCUSGROUP_POLYFILL__,Fg=Eg.o;function Lr(){for(const o of Fg)o.takeRecords()}var Ai=class{#t;#e;#s=Mr.NONE;#u=void 0;#c=!1;#a=!0;#i;#o=null;#r=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(Bg()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const i={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),i),this.#t.addEventListener("focusin",this.#y.bind(this),i),this.#t.addEventListener("focusout",this.#x.bind(this),i)}disconnect(){this.#n(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Mr.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Mr.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Oo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#i=o,this.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Oo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Oo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(Ng(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#r&&(!o.relatedTarget||!Dr(this.#t,o.relatedTarget))){const i=this.#o||this.#i;this.#n(),i&&i.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#r&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const i=t??this.#i;i&&this.#v(i,e)}}#x(o){if(!o.relatedTarget||!Dr(this.#t,o.relatedTarget)){const i=this.#a?this.#o||this.#i:this.#i;i&&this.#m(i)}if(o.relatedTarget&&Dr(this.#t,o.relatedTarget)||this.#a||!this.#i)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#i||t!==this.#i){for(const{element:i,segmentBoundary:r}of this.#e.items())i.tabIndex=r?0:-1;t&&(t.tabIndex=0,this.#i=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(Oo.AUTHOR_TABINDEX);this.#r||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#r=!0,Lr())}#n(){this.#r&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#r=!1,this.#l=null,this.#e.flush?.(),Lr())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),Lr()}};class Ei{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),i=t.indexOf(e);return i===-1?null:t[i+1]??null}previous(e){const t=this.getItems(),i=t.indexOf(e);return i<=0?null:t[i-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var Mg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Lg=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mg(e,t,r),r};const Vr=class sn extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&ln(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,i=this.menuChildren.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=i-1;n>=0;--n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}const r=this.menuChildren.length-1;for(let n=i+1;n<=r;++n){const s=this.menuChildren[n],c=s.role;if(c===ee.menuitemradio&&(s.checked=!1),c==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),B.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,i=e.querySelector("[slot=start]");return t&&t!==ee.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);e.forEach(i=>{m.getNotifier(i).subscribe(this,"hidden")}),this.menuChildren=e.filter(i=>!i.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((i,r)=>{const n=sn.elementIndent(r);return Math.max(i,n)},0);this.menuItems?.forEach(i=>{i.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return mg(e)||ln(e)&&!!e.role&&e.role in sn.focusableElementRoles}};Vr.focusableElementRoles=ee,Lg([f],Vr.prototype,"items",2);let Vg=Vr;class Hg extends Vg{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Ei(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}Hg.define(Og);const Rg=`${u.prefix}-menu`,jg=g`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${z} solid ${We};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:${z} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function qg(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${_("primaryAction")}></slot><slot name=trigger ${X({property:"slottedTriggers",filter:co()})}></slot><slot ${X({property:"slottedMenuList",filter:co()})}></slot></template>`}const Wg=qg(),Ug={name:Rg,registry:u.registry,styles:jg,template:Wg};var Gg=Object.defineProperty,Xg=Object.getOwnPropertyDescriptor,gt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Xg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Gg(e,t,r),r};class rt extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof it&&(e.target.getAttribute("role")===ee.menuitemcheckbox||e.target.getAttribute("role")===ee.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._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const i=t[0];this._trigger=i,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){B.enqueue(()=>{this._menuList.focus()})}focusTrigger(){B.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":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}}}gt([a({attribute:"open-on-hover",mode:"boolean"})],rt.prototype,"openOnHover",2),gt([a({attribute:"open-on-context",mode:"boolean"})],rt.prototype,"openOnContext",2),gt([a({attribute:"close-on-scroll",mode:"boolean"})],rt.prototype,"closeOnScroll",2),gt([a({attribute:"persist-on-item-click",mode:"boolean"})],rt.prototype,"persistOnItemClick",2),gt([a({mode:"boolean"})],rt.prototype,"split",2),gt([f],rt.prototype,"slottedMenuList",2),gt([f],rt.prototype,"slottedTriggers",2),gt([f],rt.prototype,"primaryAction",2),rt.define(Ug);const Kg=`${u.prefix}-message-bar`,Yg=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${D};line-height:${q};width:100%;background:${po};color:${K};border:1px solid ${We};padding-inline:${ne};border-radius:${S};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:${ws};border-color:${Yl}}:host([intent='warning']){background-color:${Ss};border-color:${Ps}}:host([intent='error']){background-color:${$s};border-color:${xs}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${bi};padding-inline:${ne}}.content{grid-area:body;max-width:520px;padding-block:${bi};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${K};margin-inline-end:${Fe}}: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:${Fe};gap:${Fe}}:host([layout='multiline']) .actions{margin-block-start:${bi};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${se}}::slotted(*){font-size:inherit}`;function Jg(){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 Qg=Jg(),Zg={name:Kg,registry:u.registry,styles:Yg,template:Qg};var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Hr=(o,e,t,i)=>{for(var r=i>1?void 0:i?tf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&ef(e,t,r),r};class Fi extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Hr([a],Fi.prototype,"shape",2),Hr([a],Fi.prototype,"layout",2),Hr([a],Fi.prototype,"intent",2),Fi.define(Zg);const of=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${aa} align-items:center;background-color:${P};border-radius:${S};box-sizing:border-box;color:${Ae};column-gap:${re};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ke};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ii};color:${Dt}}:host(:active){background-color:${hr};color:${Lt}}:host(:disabled){background-color:${P};color:${N};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(${Xt}) .checkmark-16-filled,:host(:not(${Xt})) .checkmark-12-regular{display:none}:host(${Xt}) .checkmark-12-regular{background-color:${P};border-radius:${Ee};border:${z} solid ${qe};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Xt}${_r}) .checkmark-12-regular{background-color:${wt};border-color:${st};fill:${kt}}:host(:disabled${Xt}) .checkmark-12-regular{border-color:${ye}}:host(:disabled${Xt}${_r}) .checkmark-12-regular{background-color:${nt}}:host(${Vh}){border:${pe} solid ${de}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ke}}}:host(${jh}){column-gap:${ke};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${K};grid-area:description;${la}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,rf=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path 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"/></svg>');function nf(o={}){return b`<slot name=checked-indicator>${ge(o.checkedIndicator)}</slot>${Ue(o)}<div class=content part=content><slot ${X({property:"freeformOutputs",filter:co("output")})}></slot></div><div class=description part=description><slot name=description ${X("descriptionSlot")}></slot></div>`}const sf=nf({checkedIndicator:rf}),af={name:wp,registry:u.registry,styles:of,template:sf};var lf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,me=(o,e,t,i)=>{for(var r=i>1?void 0:i?cf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&lf(e,t,r),r};class ae extends k{constructor(){super(),this.active=!1,this.id=Ke("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(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){$(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,B.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(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}}ae.formAssociated=!0,me([f],ae.prototype,"active",2),me([a({attribute:"current-selected",mode:"boolean"})],ae.prototype,"currentSelected",2),me([a({attribute:"selected",mode:"boolean"})],ae.prototype,"defaultSelected",2),me([f],ae.prototype,"descriptionSlot",2),me([f],ae.prototype,"disabled",2),me([a({attribute:"disabled",mode:"boolean"})],ae.prototype,"disabledAttribute",2),me([a({attribute:"form"})],ae.prototype,"formAttribute",2),me([a({mode:"boolean"})],ae.prototype,"freeform",2),me([a({attribute:"id"})],ae.prototype,"id",2),me([a({attribute:"value",mode:"fromView"})],ae.prototype,"initialValue",2),me([f],ae.prototype,"multiple",2),me([a],ae.prototype,"name",2),me([f],ae.prototype,"start",2),me([a({attribute:"text",mode:"fromView"})],ae.prototype,"textAttribute",2),ae.define(af);const df={success:"success",warning:"warning",error:"error"},hf=`${u.prefix}-progress-bar`,uf=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${go};border-radius:${S};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:${li}}.indicator{background-color:${wt};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( to right,${go} 0%,${ce} 50%,${go} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${ys}}:host([validation-state='warning']) .indicator{background-color:${Is}}:host([validation-state='success']) .indicator{background-color:${Cs}}@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%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function pf(){return b`<div class=indicator part=indicator ${_("indicator")}></div>`}const gf=pf(),ff={name:hf,registry:u.registry,styles:uf,template:gf};var bf=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,Bo=(o,e,t,i)=>{for(var r=i>1?void 0:i?mf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&bf(e,t,r),r};class to extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){_t(this.elementInternals,e,t,df)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||B.enqueue(()=>{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,n=r===0?0:Math.fround((i-e)/r*100);this.indicator?.style.setProperty("width",`${n}%`)})}}Bo([f],to.prototype,"indicator",2),Bo([a({attribute:"validation-state"})],to.prototype,"validationState",2),Bo([a({converter:ie})],to.prototype,"value",2),Bo([a({converter:ie})],to.prototype,"min",2),Bo([a({converter:ie})],to.prototype,"max",2);var vf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,fa=(o,e,t,i)=>{for(var r=i>1?void 0:i?$f(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&vf(e,t,r),r};class Rr extends to{}fa([a],Rr.prototype,"thickness",2),fa([a],Rr.prototype,"shape",2),Rr.define(ff);const ba=we,yf=`${u.prefix}-radio-group`,xf=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${xr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${K}}::slotted(:hover){color:${Ae}}::slotted(:active){color:${O}}::slotted(${be}){color:${N}}::slotted(${y}){color:${O}}:host([slot='input']){margin:${se} ${Fe}}`;function kf(){return b`<template focusgroup="radiogroup wrap" @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)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${X("slottedRadios")}></slot></template>`}const wf=kf(),Cf={name:yf,registry:u.registry,styles:xf,template:wf};function Sf(o,e="-radio"){return an(e)(o)}const If=`${u.prefix}-radio`;var Pf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,ft=(o,e,t,i)=>{for(var r=i>1?void 0:i?zf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Pf(e,t,r),r};class Ye extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??ba.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}))}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??ba.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const r=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===r,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(i=>Sf(i))}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,n)=>{const s=n===e;r.checked=s,s&&(i=n,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()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(i=>{i.disabled&&i.checked&&(i.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(n,s,c):c.elementInternals.setValidity({})})}}}Ye.formAssociated=!0,ft([f],Ye.prototype,"checkedIndex",2),ft([a({attribute:"disabled",mode:"boolean"})],Ye.prototype,"disabled",2),ft([a({attribute:"value",mode:"fromView"})],Ye.prototype,"initialValue",2),ft([a],Ye.prototype,"name",2),ft([a],Ye.prototype,"orientation",2),ft([f],Ye.prototype,"radios",2),ft([a({mode:"boolean"})],Ye.prototype,"required",2),ft([f],Ye.prototype,"slottedRadios",2);class Tf extends Ye{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Ei(()=>this.enabledRadios?.filter(i=>!i.hidden)??[],()=>this.enabledRadios?.find(i=>i.checked)??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}Tf.define(Cf);const _f=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${z} solid ${qe};border-radius:${he};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${he};color:${kt};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 ${Y};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${de}}:host(:hover){border-color:${Ct}}:host(${y}){border-color:${st}}:host(${y}) .checked-indicator{background-color:${wt}}:host(${y}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${St}}:host(${y}:active) .checked-indicator{background-color:${Ht}}:host(:focus-visible){outline:none}:host(${be}){background-color:${nt};border-color:${ye}}:host(${y}${be}) .checked-indicator{background-color:${ye}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${be}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${be}):hover) .checked-indicator{background-color:Highlight}:host(${be}){border-color:GrayText;color:GrayText}:host(${be}${y}) .checked-indicator{background-color:GrayText}}`,Of=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function Bf(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>${ge(o.checkedIndicator)}</slot></template>`}const Nf=Bf({checkedIndicator:Of}),Af={name:If,registry:u.registry,styles:_f,template:Nf};class Ef extends Me{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)}}Ef.define(Af);const Ff=`${u.prefix}-rating-display`;var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,No=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Mf(e,t,r),r};const Lf=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Mi(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class io extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,i=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,r=`
|
|
1
|
+
const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function un(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function pn(...o){return o.every(e=>e instanceof HTMLElement)}function Xr(o,e="-accordion-item"){return un(e)(o)}const Ea=`${h.prefix}-accordion-item`;class Kr{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}var ae;(function(o){o[o.needsArrayObservation=1101]="needsArrayObservation",o[o.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",o[o.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",o[o.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",o[o.hostBindingWithoutHost=1204]="hostBindingWithoutHost",o[o.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",o[o.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",o[o.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",o[o.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",o[o.blockedByDOMPolicy=1209]="blockedByDOMPolicy",o[o.invalidHydrationAttributeMarker=1210]="invalidHydrationAttributeMarker",o[o.duplicateRenderInstruction=1211]="duplicateRenderInstruction",o[o.missingElementDefinition=1401]="missingElementDefinition",o[o.noRegistrationForContext=1501]="noRegistrationForContext",o[o.noFactoryForResolver=1502]="noFactoryForResolver",o[o.invalidResolverStrategy=1503]="invalidResolverStrategy",o[o.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",o[o.cannotResolveKey=1505]="cannotResolveKey",o[o.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",o[o.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",o[o.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",o[o.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",o[o.invalidResolver=1510]="invalidResolver",o[o.invalidKey=1511]="invalidKey",o[o.noDefaultResolver=1512]="noDefaultResolver",o[o.cyclicDependency=1513]="cyclicDependency",o[o.connectUpdateRequiresController=1514]="connectUpdateRequiresController"})(ae||(ae={}));const lo=o=>typeof o=="function",nt=o=>typeof o=="string",Na=()=>{},Fa=Object.create(null),$e={warn(o,e){},error(o,e){return new Error(`Error ${o}`)},addMessages(o){Object.assign(Fa,o)}},Ma=Object.freeze([]);function Yr(){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 gn(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function mt(o){o.prototype.toJSON=Na}class fn extends Kr{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}mt(fn);function bn(o,e){return new fn(o,e)}class Jr{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 r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,n=this.sub2;i!==void 0&&i.handleChange(r,e),n!==void 0&&n.handleChange(r,e)}else for(let i=0,n=t.length;i<n;++i)t[i].handleChange(r,e)}}class mn{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let n;t?n=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new Jr(this.subject):n=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Jr(this.subject),n.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const He=[],Zr=[],La=globalThis.requestAnimationFrame;let Qr=!0;function Da(){if(Zr.length)throw Zr.shift()}function Ha(o){try{o.call()}catch(e){if(Qr)Zr.push(e),setTimeout(Da,0);else throw He.length=0,e}}function ei(){let e=0;for(;e<He.length;)if(Ha(He[e]),e++,e>1024){for(let t=0,r=He.length-e;t<r;t++)He[t]=He[t+e];He.length-=e,e=0}He.length=0}function vn(o){He.push(o),He.length<2&&(Qr?La(ei):ei())}const O=Object.freeze({enqueue:vn,next:()=>new Promise(vn),process:ei,setMode:o=>Qr=o}),Ro=Object.freeze({unknown:void 0,coupled:1}),m=(()=>{const o=O.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw $e.error(ae.needsArrayObservation)};function n(d){var c;let f=(c=d.$fastController)!==null&&c!==void 0?c:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new mn(d))),f}const s=gn();class l{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return r!==void 0&&r.watch(c,this.name),c[this.field]}setValue(c,f){const k=this.field,A=c[k];if(A!==f){c[k]=f;const j=c[this.callback];lo(j)&&j.call(c,A,f),n(c).notify(this.name)}}}class u extends Jr{constructor(c,f,k=!1){super(c,f),this.expression=c,this.isVolatileBinding=k,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(c){this.isAsync=this.needsQueue=c}bind(c){const f=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),f}requiresUnbind(c){return c.sourceLifetime!==Ro.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,f){this.needsRefresh&&this.last!==null&&this.dispose();const k=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let A;try{A=this.expression(c,f)}finally{r=k}return A}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,f){const k=this.last,A=n(c),j=k===null?this.first:{};if(j.propertySource=c,j.propertyName=f,j.notifier=A,A.subscribe(this,f),k!==null){if(!this.needsRefresh){let se;r=void 0,se=k.propertySource[k.propertyName],r=this,c===se&&(this.needsRefresh=!0)}k.next=j}this.last=j}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 c=this.first;for(;c!==void 0;)yield c,c=c.next}}return mt(u),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:n,track(d,c){r&&r.watch(d,c)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,c){n(d).notify(c)},defineProperty(d,c){nt(c)&&(c=new l(c)),s(d).push(c),Reflect.defineProperty(d,c.name,{enumerable:!0,get(){return c.getValue(this)},set(f){c.setValue(this,f)}})},getAccessors:s,binding(d,c,f=this.isVolatileBinding(d)){return new u(d,c,f)},isVolatileBinding(d){return e.test(d.toString())}})})();function g(o,e){m.defineProperty(o,e)}const $n=(()=>{let o=null;return{get(){return o},set(e){o=e}}})(),co=Object.freeze({default:{index:0,length:0,get event(){return co.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return $n.get()},setEvent(o){$n.set(o)}});class Va extends Kr{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function yn(o,e,t=m.isVolatileBinding(o)){return new Va(o,e,t)}const J=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),xn=o=>o,Ra=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:xn}):{createHTML:xn};let jo=Object.freeze({createHTML(o){return Ra.createHTML(o)},protect(o,e,t,r){return r}});const ja=jo,Mt=Object.freeze({get policy(){return jo},setPolicy(o){if(jo!==ja)throw $e.error(ae.onlySetDOMPolicyOnce);jo=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)}}),ti="boolean",kn="reflect",qo=Object.freeze({locate:gn()}),qa={toView(o){return o?"":null},fromView(o){return!!o}};function wn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const te={toView(o){const e=wn(o);return e&&e.toString()},fromView:wn};class qr{constructor(e,t,r=t.toLowerCase(),i=kn,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===ti&&n===void 0&&(this.converter=qa)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,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.mode===ti?this.setValue(e,t!==null):this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||O.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case kn:{const n=this.converter;Mt.setAttribute(e,this.attribute,n!==void 0?n.toView(i):i);break}case ti:Mt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(qo.locate(e));for(let i=0,n=t.length;i<n;++i){const s=t[i];if(s!==void 0)for(let l=0,u=s.length;l<u;++l){const d=s[l];nt(d)?r.push(new qr(e,d)):r.push(new qr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,n){arguments.length>1&&(t.property=n),qo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}let oi;function Sn(o){return o.reduce((e,t)=>(t instanceof ce?e.push(...Sn(t.styles)):e.push(t),e),[])}class ce{get strategy(){return this._strategy===null&&(oi||ce.setDefaultStrategy(ce.supportsAdoptedStyleSheets?Wa():Ga()),this.withStrategy(oi)),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null}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)}withStrategy(e){return this._strategy=new e(Sn(this.styles)),this}static setDefaultStrategy(e){oi=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ce(e):e instanceof ce?e:new ce([e])}}ce.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;function Wa(){const o=new Map;return class{constructor(t){this.sheets=t.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=o.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),o.set(r,i)),i})}addStylesTo(t){const r=t;r.adoptedStyleSheets=[...r.adoptedStyleSheets,...this.sheets]}removeStylesFrom(t){const r=t;r.adoptedStyleSheets=r.adoptedStyleSheets.filter(i=>this.sheets.indexOf(i)===-1)}}}let Ua=0;function Ga(){return class{constructor(e){this.styles=e,this.styleClass=`fast-${++Ua}`}addStylesTo(e){const t=e===document?document.body:e;for(let r=0;r<this.styles.length;r++){const i=document.createElement("style");i.innerHTML=this.styles[r],i.className=this.styleClass,t.append(i)}}removeStylesFrom(e){const t=e===document?document.body:e,r=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,n=r.length;i<n;++i)t.removeChild(r[i])}}}const Xa={},Cn=new WeakMap,ri=Yr(),ho=Object.freeze({register(o){if(!ri.register(o))return!1;const e=In(o.registry);return Object.prototype.hasOwnProperty.call(e,o.name)||m.defineProperty(e,o.name),e[o.name]=o.type,!0},getByType:ri.getByType,getForInstance:ri.getForInstance,whenRegistered:Ka});function In(o=customElements){if(o===customElements)return Xa;let e=Cn.get(o);return e||(e={},Cn.set(o,e)),e}function Pn(o){return o===void 0?void 0:ho.getByType(o)}function Ka(o,e=customElements){const t=In(e);Object.prototype.hasOwnProperty.call(t,o)||m.defineProperty(t,o);const r=Pn(t[o]);return r!==void 0?Promise.resolve(r):new Promise(i=>{const n=m.getNotifier(t),s={handleChange:()=>{const l=Pn(t[o]);l!==void 0&&(n.unsubscribe(s,o),i(l))}};n.subscribe(s,o)})}const zn={mode:"open"},_n={},On=new Set,Wo=new WeakMap,Uo=new WeakMap,vt=new WeakMap,Tn=new WeakMap,Ya=new WeakMap;function Ja(o){return lo(o)}function Za(o){return typeof o?.then=="function"}function An(o,e){if(Uo.delete(o),o.template===void 0&&e!==void 0&&(o.template=e),o.template!==void 0)return vt.delete(o),Wo.delete(o),o.template}function Bn(o,e=o.registry,t){if(!t?.length)return;const r=o;let i=Tn.get(r);if(!i?.has(e)){i===void 0&&(i=new WeakSet,Tn.set(r,i)),i.add(e);for(const n of t)n(o)}}function ii(o){var e;return(e=Ya.get(o))!==null&&e!==void 0?e:null}function En(o){if(o.template!==void 0)return vt.delete(o),o.template;const e=Uo.get(o);if(e)return e;const t=Wo.get(o);if(!t)return;vt.delete(o);let r;try{r=t(o)}catch(i){throw vt.set(o,i),i}if(Za(r)){const i=Promise.resolve(r).then(n=>An(o,n)).catch(n=>{throw Uo.delete(o),vt.set(o,n),n});return Uo.set(o,i),i}return An(o,r)}function Qa(o,e){const t=o;if(e===void 0){vt.delete(t);return}vt.set(t,e)}class Je{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,nt(t)&&(t={name:t}),this.type=e,this.name=t.name,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements,Ja(t.template)?Wo.set(this,t.template):this.template=t.template;const i=e.prototype,n=qr.collect(e,t.attributes),s=new Array(n.length),l={},u={};for(let d=0,c=n.length;d<c;++d){const f=n[d];s[d]=f.attribute,l[f.name]=f,u[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=l,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?zn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},zn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?_n:Object.assign(Object.assign({},_n),t.elementOptions),this.styles=ce.normalize(t.styles),this.schema=t.schema,ho.register(this)}define(e=this.registry,t){const r=this.type;if(!e.get(this.name)){if(Bn(this,e,t),this.template===void 0&&Wo.has(this))return Promise.resolve().then(()=>En(this)).then(i=>{i!==void 0&&!e.get(this.name)&&(this.platformDefined=!0,e.define(this.name,r,this.elementOptions))}).catch(i=>{Qa(this,i),m.notify(this,"template")}),this;this.platformDefined=!0,e.define(this.name,r,this.elementOptions)}return this}static compose(e,t){const r=On.has(e)||ho.getByType(e)?new Je(class extends e{},t):new Je(e,t);return Promise.resolve(r)}static registerBaseType(e){On.add(e)}}Je.getByType=ho.getByType,Je.getForInstance=ho.getForInstance,m.defineProperty(Je.prototype,"template");const el={bubbles:!0,composed:!0,cancelable:!0},ni="isConnected",Nn=new WeakMap,si=Symbol("fast-late-attribute-observer");function Go(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Nn.get(o))!==null&&t!==void 0?t:null}let Fn;var de;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(de||(de={}));class De{get isConnected(){return m.track(this,ni),this.stage===de.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:co.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 shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Nn.set(this.source,t))}}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))}constructor(e,t){this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this.isPrerendered=new Promise(n=>{this._resolvePrerendered=n}),this.isHydrated=new Promise(n=>{this._resolveHydrated=n}),this._template=null,this.stage=de.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new mn(e),this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const r=Reflect.getPrototypeOf(e),i=r===null?[]:m.getAccessors(r);if(i.length>0){const n=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s<l;++s){const u=i[s].name,d=e[u];d!==void 0&&(delete e[u],n[u]=d)}Object.keys(n).length===0&&(this.boundObservables=null)}this.captureBoundObservables()}get subject(){return this._notifier.subject}notify(e){this._notifier.notify(e)}subscribe(e,t){this._notifier.subscribe(e,t)}unsubscribe(e,t){this._notifier.unsubscribe(e,t)}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(r=i.get(e))!==null&&r!==void 0?r:0;n===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===de.connected||this.stage===de.connecting)&&e.connectedCallback(this)):i.set(e,n+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==de.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=Go(r))!==null&&t!==void 0?t:this.source).append(e):e.isAttachedTo(r)||e.addStylesTo(r)}removeStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=Go(r))!==null&&t!==void 0?t:r).removeChild(e):e.isAttachedTo(r)&&e.removeStylesFrom(r)}connect(){this.stage===de.disconnected&&(this.stage=de.connecting,this.captureBoundObservables(),this.syncLateAttributes(),this.observeLateAttributes(),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=de.connected,m.notify(this,ni))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,n=r.length;i<n;++i){const s=r[i];e[s]=t[s]}this.boundObservables=null}}captureBoundObservables(){const e=this.source,t=Object.getOwnPropertyNames(e),r=n=>{let s=Reflect.getPrototypeOf(e);for(;s!==null;){const l=Reflect.getOwnPropertyDescriptor(s,n);if(l?.get||l?.set)return!0;s=Reflect.getPrototypeOf(s)}return!1};let i=this.boundObservables;for(let n=0,s=t.length;n<s;++n){const l=t[n],u=l[0]==="_"?l.slice(1):l;if(!r(u))continue;const d=e[u],c=l!==u,f=d!==null&&typeof d=="object"&&!d?.$isProxy&&!(Array.isArray(d)&&d?.$fastController);if(d===void 0){c||delete e[l];continue}c&&!f||(delete e[l],(i??(i=this.boundObservables=Object.create(null)))[u]=d)}}syncLateAttributes(){const e=ii(this.definition);if(e!==null)for(const t of Object.keys(e))this.source.hasAttribute(t)&&this.onAttributeChangedCallback(t,null,this.source.getAttribute(t))}observeLateAttributes(){const e=ii(this.definition);if(e===null)return;const t=this.source;t[si]===void 0&&(t[si]=new MutationObserver(r=>{const i=t.$fastController,n=ii(i.definition);if(n!==null)for(let s=0,l=r.length;s<l;++s){const u=r[s].attributeName;u===null||n[u]===void 0||i.onAttributeChangedCallback(u,null,t.getAttribute(u))}}),t[si].observe(t,{attributes:!0,attributeFilter:Object.keys(e)}))}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===de.connected&&(this.stage=de.disconnecting,m.notify(this,ni),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=de.disconnected)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===de.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},el),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=Go(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if((!this.needsInitialization||this.hasExistingShadowRoot)&&(!this.hasExistingShadowRoot||!this.needsInitialization))for(let n=i.firstChild;n!==null;n=i.firstChild)i.removeChild(n);if(e){const n=this.hasExistingShadowRoot&&this.needsInitialization;let s=!1;n&&De.hydrationHook&&(s=De.hydrationHook(this,e,r,i)),s||this.renderClientSide(e,r,i),this._resolvePrerendered(n),this._resolveHydrated(s)}else this.needsInitialization&&(this._resolvePrerendered(!1),this._resolveHydrated(!1))}renderClientSide(e,t,r){if(this.hasExistingShadowRoot){for(let i=r.firstChild;i!==null;i=r.firstChild)r.removeChild(i);this.hasExistingShadowRoot=!1}this.view=e.render(t,r,t),this.view.sourceLifetime=Ro.coupled}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const i=Je.getForInstance(e);if(i===void 0)throw $e.error(ae.missingElementDefinition);return m.getNotifier(i).subscribe({handleChange:()=>{De.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(i).subscribe({handleChange:()=>{De.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Fn(e,i)}static setStrategy(e){Fn=e}static installHydrationHook(e){De.hydrationHook=e}}De.hydrationHook=null,mt(De),De.setStrategy(De);function Xo(o){var e;return"adoptedStyleSheets"in o?o:(e=Go(o))!==null&&e!==void 0?e:o.getRootNode()}class Wr{constructor(e){const t=Wr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){Ln(Xo(e),this.sheets)}removeStylesFrom(e){Dn(Xo(e),this.sheets)}}Wr.styleSheetCache=new Map;let tl=0;const ol=()=>`fast-${++tl}`;function Mn(o){return o===document?document.body:o}class rl{constructor(e){this.styles=e,this.styleClass=ol()}addStylesTo(e){e=Mn(Xo(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const n=document.createElement("style");n.innerHTML=t[i],n.className=r,e.append(n)}}removeStylesFrom(e){e=Mn(Xo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Ln=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Dn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ce.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ln=(o,e)=>{o.adoptedStyleSheets.push(...e)},Dn=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ce.setDefaultStrategy(Wr)}else ce.setDefaultStrategy(rl);function Hn(o){const e=class extends o{constructor(){super(),De.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Je.registerBaseType(e),e}function il(o){return typeof o?.then=="function"}function nl(o,e,t){return Array.isArray(e)&&(t=e,e=void 0),(lo(o)?Je.compose(o,e):Je.compose(this,o)).then(i=>{Bn(i,i.registry,t);const n=En(i);return il(n)?n.then(()=>i.define().type):i.define().type})}function sl(o){return Hn(o)}const x=Object.assign(Hn(HTMLElement),{from:sl,define:nl});function ye(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ai=Yr(),Vn=Object.freeze({getForInstance:ai.getForInstance,getByType:ai.getByType,define(o){return ai.register({type:o}),o}});function Rn(o,e){const t=[];let r="";for(let i=0,n=o.length-1;i<n;++i){r+=o[i];let s=e[i];Vn.getForInstance(s)!==void 0&&(s=s.createCSS()),s instanceof ce||s instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(s)):r+=s}return r+=o[o.length-1],r.trim()!==""&&t.push(r),t}const p=(o,...e)=>new ce(Rn(o,e));class jn{constructor(e){this.value=e.length===0?"":e.length===1?e[0]:new ce(e)}createCSS(){return this.value}}Vn.define(jn),p.partial=(o,...e)=>new jn(Rn(o,e));const li=`fast-${Math.random().toString(36).substring(2,8)}`,Ko=`${li}{`,uo=`}${li}`,al=uo.length;let ll=0;const ci=()=>`${li}-${++ll}`,qn=Object.freeze({interpolation:o=>`${Ko}${o}${uo}`,attribute:o=>`${ci()}="${Ko}${o}${uo}"`,comment:o=>`<!--${Ko}${o}${uo}-->`}),Yo=Object.freeze({parse(o,e){const t=o.split(Ko);if(t.length===1)return null;const r=[];for(let i=0,n=t.length;i<n;++i){const s=t[i],l=s.indexOf(uo);let u;if(l===-1)u=s;else{const d=s.substring(0,l);r.push(e[d]),u=s.substring(l+al)}u!==""&&r.push(u)}return r}}),di=Yr(),Ve=Object.freeze({getForInstance:di.getForInstance,getByType:di.getByType,define(o,e){return e=e||{},e.type=o,di.register(e),o},assignAspect(o,e){if(!e){o.aspectType=J.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?J.tokenList:J.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=J.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=J.event;break;default:o.targetAspect=e,o.aspectType=J.attribute;break}}});class hi{constructor(e){this.options=e}createHTML(e){return qn.attribute(e(this))}createBehavior(){return this}}mt(hi);const cl=o=>o.nodeType===1,po=o=>o?e=>e.nodeType===1&&e.matches(o):cl;class dl extends hi{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,Ma),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 Wn=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,hl=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ul=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,pl=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,gl=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,fl=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Un(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ae=Object.freeze({attributeMarkerName:"data-fe",legacyAttributeMarkerName:"data-fe-b",legacyCompactAttributeMarkerName:"data-fe-c",contentBindingStartMarker(){return"fe:b"},contentBindingEndMarker(){return"fe:/b"},repeatStartMarker(){return"fe:r"},repeatEndMarker(){return"fe:/r"},elementBoundaryStartMarker(){return"fe:e"},elementBoundaryEndMarker(){return"fe:/e"},isContentBindingStartMarker(o){return o==="fe:b"||Wn.test(o)},isContentBindingEndMarker(o){return o==="fe:/b"||hl.test(o)},isRepeatViewStartMarker(o){return o==="fe:r"||ul.test(o)},isRepeatViewEndMarker(o){return o==="fe:/r"||pl.test(o)},isElementBoundaryStartMarker(o){return Un(o)&&(o.data==="fe:e"||gl.test(o.data))},isElementBoundaryEndMarker(o){return Un(o)&&(o.data==="fe:/e"||fl.test(o.data))},parseAttributeBindingCount(o){const e=o.getAttribute(this.attributeMarkerName);if(e===null)return null;const t=e.trim();if(!/^\d+$/.test(t))throw $e.error(ae.invalidHydrationAttributeMarker,{value:e});const r=parseInt(t,10);if(r<1)throw $e.error(ae.invalidHydrationAttributeMarker,{value:e});return r},parseLegacyAttributeBindingIndices(o){const e=[],t=o.getAttribute(this.legacyAttributeMarkerName);if(t!==null)for(const n of t.trim().split(/\s+/)){if(n==="")continue;const s=Number(n);if(!Number.isInteger(s)||s<0)throw $e.error(ae.invalidHydrationAttributeMarker,{value:t});e.push(s)}const r=`${this.legacyAttributeMarkerName}-`,i=`${this.legacyCompactAttributeMarkerName}-`;for(const n of o.getAttributeNames())if(n.startsWith(r)){const s=Number(n.slice(r.length));if(!Number.isInteger(s)||s<0)throw $e.error(ae.invalidHydrationAttributeMarker,{value:n});e.push(s)}else if(n.startsWith(i)){const[s,l]=n.slice(i.length).split("-").map(u=>Number(u));if(!Number.isInteger(s)||!Number.isInteger(l)||s<0||l<1)throw $e.error(ae.invalidHydrationAttributeMarker,{value:n});for(let u=0;u<l;u++)e.push(s+u)}return e.length===0?null:e},removeLegacyAttributeBindingMarkers(o){o.removeAttribute(this.legacyAttributeMarkerName);for(const e of o.getAttributeNames())(e.startsWith(`${this.legacyAttributeMarkerName}-`)||e.startsWith(`${this.legacyCompactAttributeMarkerName}-`))&&o.removeAttribute(e)},parseLegacyContentBindingStartIndex(o){return bl(Wn,o)}});function bl(o,e){const t=o.exec(e);return t===null?null:Number(t[1])}const Jo=Symbol.for("fe-hydration");function Gn(o){return o[Jo]===Jo}const ml="unknown";function vl(o,e){const t=e?`: ${e}`:"";return`Hydration mismatch in <${o}>${t}. Install hydrationDebugger() from "@microsoft/fast-element/hydration.js" and pass it as enableHydration({ debugger: hydrationDebugger() }) for an "Expected / Received" report including the SSR HTML snippet.`}const $l="content following `<!--fe:b-->` content binding marker",yl="matching `<!--fe:/b-->` content binding close marker",xl="matching `<!--fe:/e-->` element boundary close marker";function Xn(o){return`no more attribute bindings (template defines ${o})`}function kl(o){return`no more content bindings (template defines ${o})`}function Kn(o,e){const t=(o??ml).toLowerCase();return vl(t,e)}const wl={formatBindingMismatch(o,e,t,r){return{message:Kn(r,void 0)}},formatStructuralError(o,e,t){return{message:Kn(e,t)}}};let Sl=wl;function $t(){return Sl}function yt(o){var e;return o?(e=o.getRootNode().host)===null||e===void 0?void 0:e.nodeName:void 0}class xt extends Error{constructor(e,t,r,i,n){super(e),this.factories=t,this.node=r,this.expected=i,this.received=n}}function ui(o){return o.nodeType===Node.COMMENT_NODE}function Yn(o){return o.nodeType===Node.TEXT_NODE}function Jn(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ui(e)||Yn(e)?e.data.length:e.childNodes.length),t}function Cl(o,e,t){const r=Jn(o,e),i=r.commonAncestorContainer,n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(f){return r.comparePoint(f,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),s={},l={},u=zl(t);let d=u,c=n.currentNode=o;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{const f=c,k=Ae.parseLegacyAttributeBindingIndices(f);if(k!==null){for(const j of k){const se=j+u,it=t[se];if(!it){const ao=Xn(t.length),Gr=$t().formatStructuralError(c,yt(c),ao);throw new xt(Gr.message,t,f,Gr.expected,Gr.received)}go(it,c,s),d=Math.max(d,se+1)}Ae.removeLegacyAttributeBindingMarkers(f);break}const A=Ae.parseAttributeBindingCount(f);if(A!==null){for(let j=0;j<A;j++){const se=t[d++];if(!se){const it=Xn(t.length),ao=$t().formatStructuralError(c,yt(c),it);throw new xt(ao.message,t,c,ao.expected,ao.received)}go(se,c,s)}f.removeAttribute(Ae.attributeMarkerName)}break}case Node.COMMENT_NODE:{const f=c.data;if(Ae.isElementBoundaryStartMarker(c))c.data="",Pl(n,t,c);else if(Ae.isContentBindingStartMarker(f)){const k=Ae.parseLegacyContentBindingStartIndex(f),A=k===null?d++:k+u,j=t[A];if(d=Math.max(d,A+1),!j){const se=kl(t.length),it=$t().formatStructuralError(c,yt(c),se);throw new xt(it.message,t,c,it.expected,it.received)}Il(c,n,j,t,s,l)}break}}c=n.nextNode()}return r.detach(),{targets:s,boundaries:l}}function Il(o,e,t,r,i,n){const s=[];let l=e.nextSibling();if(o.data="",l===null){const c=$l,f=$t().formatStructuralError(o,yt(o),c);throw new xt(f.message,r,o,f.expected,f.received)}const u=l;let d=0;for(;l!==null;){if(ui(l)){if(Ae.isContentBindingStartMarker(l.data))d++;else if(Ae.isContentBindingEndMarker(l.data)){if(d===0)break;d--}}s.push(l),l=e.nextSibling()}if(l===null){const c=yl,f=$t().formatStructuralError(o,yt(o),c);throw new xt(f.message,r,o,f.expected,f.received)}if(l.data="",s.length===1&&Yn(s[0]))go(t,s[0],i);else{l!==u&&l.previousSibling!==null&&(n[t.targetNodeId]={first:u,last:l.previousSibling});const c=l.parentNode.insertBefore(document.createTextNode(""),l);go(t,c,i)}}function Pl(o,e,t){let r=0,i=o.nextSibling();for(;i!==null;){if(ui(i)){if(Ae.isElementBoundaryStartMarker(i))i.data="",r++;else if(Ae.isElementBoundaryEndMarker(i)){if(r===0){i.data="";return}i.data="",r--}}i=o.nextSibling()}const n=xl,s=$t().formatStructuralError(t,yt(t),n);throw new xt(s.message,e,t,s.expected,s.received)}function zl(o){let e=0;for(let t=0,r=o.length;t<r&&o[t].targetNodeId==="h";++t)e++;return e}function go(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}function pi(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class Zn{constructor(){this.index=0,this.length=0}get event(){return co.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 Zo extends Zn{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Ro.unknown,this._skipAttrUpdates=!1,this.isPrerendered=Promise.resolve(!1),this.isHydrated=Promise.resolve(!1),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 r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){pi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e&&this.context===t)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n].createBehavior();l.bind(this),r[n]=l}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){pi(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}mt(Zo),m.defineProperty(Zo.prototype,"index"),m.defineProperty(Zo.prototype,"length");var Qn;const fo={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class _l extends Error{constructor(e,t,r,i,n,s){super(e),this.factory=t,this.fragment=r,this.templateString=i,this.expected=n,this.received=s}}class Ol extends Zn{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[Qn]=Jo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ro.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=fo.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}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 r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.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 r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){if(this.source===e&&this.context===t)return;this.hydrationStage!==fo.hydrated&&(this._hydrationStage=fo.hydrating);let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:n,boundaries:s}=Cl(this.firstChild,this.lastChild,this.factories);this._targets=n,this._bindingViewBoundaries=s}catch(n){if(n instanceof xt){let s=this.sourceTemplate.html;typeof s!="string"&&(s=s.innerHTML),n.templateString=s}throw n}this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n];if(l.targetNodeId==="h"&&this.hostBindingTarget&&go(l,this.hostBindingTarget,this._targets),l.targetNodeId in this.targets){const u=l.createBehavior();u.bind(this),r[n]=u}else{let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML);const d=Jn(this.firstChild,this.lastChild).cloneContents(),c=$t().formatBindingMismatch(l,this.firstChild,this.lastChild,yt(this.firstChild));throw new _l(c.message,l,d,u,c.expected,c.received)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0,this._hydrationStage=fo.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){pi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}Qn=Jo,mt(Ol);function Tl(o){return o.create!==void 0}function Al(o,e,t,r){if(t==null&&(t=""),Tl(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Gn(r)&&Gn(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==fo.hydrated){const n=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(n.first,n.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Bl(o,e,t){var r;const i=`${this.id}-t`,n=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},s=n.cv;let l=n.v;const u=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let c=0,f=d.length;c<f;++c){const k=d[c];k!==""&&(s[k]=l,u.add(k))}}if(n.v=l+1,l!==0){l-=1;for(const d in s)s[d]===l&&u.remove(d)}}const El={[J.attribute]:Mt.setAttribute,[J.booleanAttribute]:Mt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:Al,[J.tokenList]:Bl,[J.event]:()=>{}};class Lt{constructor(e){this.updateTarget=null,this.aspectType=J.content,this.dataBinding=e}createHTML(e){return qn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=El[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw $e.error(ae.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId];switch(this.aspectType){case J.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);i.target=r,i.controller=e;const n=i.bind(e);if(e._skipAttrUpdates&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute))break;this.updateTarget(r,this.targetAspect,n,e);break}}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){co.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);co.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const i=t.target;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Ve.define(Lt,{aspected:!0});const es=(o,e)=>`${o}.${e}`,ts={},Re={index:0,node:null};function os(o){o.startsWith("fast-")||$e.warn(ae.hostBindingWithoutHost,{name:o})}const Nl=new Proxy(document.createElement("div"),{get(o,e){os(e);const t=Reflect.get(o,e);return lo(t)?t.bind(o):t},set(o,e,t){return os(e),Reflect.set(o,e,t)}});class Fl{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,n){var s,l;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(s=e.id)!==null&&s!==void 0?s:ci(),e.targetNodeId=r,e.targetTagName=n,e.policy=(l=e.policy)!==null&&l!==void 0?l:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const s=e.lastIndexOf("."),l=e.substring(0,s),u=parseInt(e.substring(s+1),10);this.addTargetDescriptor(l,e,u)}let n=ts[t];if(!n){const s=`_${t}`;ts[t]=n={get(){var l;return(l=this[s])!==null&&l!==void 0?l:this[s]=this[e].childNodes[r]}}}i[t]=n}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Nl;for(const i of this.nodeIds)Reflect.get(r,i);return new Zo(t,this.factories,r)}}function rs(o,e,t,r,i,n=!1){const s=t.attributes,l=o.directives;for(let u=0,d=s.length;u<d;++u){const c=s[u],f=c.value,k=Yo.parse(f,l);let A=null;k===null?n&&(A=new Lt(bn(()=>f,o.policy)),Ve.assignAspect(A,c.name)):A=gi.aggregate(k,o.policy),A!==null&&(t.removeAttributeNode(c),u--,d--,o.addFactory(A,e,r,i,t.tagName))}}function Ml(o,e,t,r,i){const n=Yo.parse(e.textContent,o.directives);if(n===null)return Re.node=e.nextSibling,Re.index=i+1,Re;let s,l=s=e;for(let u=0,d=n.length;u<d;++u){const c=n[u];u!==0&&(i++,r=es(t,i),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),nt(c)?s.textContent=c:(s.textContent=" ",Ve.assignAspect(c),o.addFactory(c,t,r,i,null)),l=s}return Re.index=i+1,Re.node=l.nextSibling,Re}function is(o,e,t){let r=0,i=e.firstChild;for(;i;){const n=Ll(o,t,i,r);i=n.node,r=n.index}}function Ll(o,e,t,r){const i=es(e,r);switch(t.nodeType){case 1:rs(o,e,t,i,r),is(o,t,i);break;case 3:return Ml(o,t,e,i,r);case 8:{const n=Yo.parse(t.data,o.directives);n!==null&&o.addFactory(gi.aggregate(n),e,i,r,null);break}}return Re.index=r+1,Re.node=t.nextSibling,Re}function Dl(o,e){return o&&o.nodeType===8&&Yo.parse(o.data,e)!==null}const ns="TEMPLATE",gi={compile(o,e,t=Mt.policy){let r;if(nt(o)){r=document.createElement(ns),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===ns&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),n=new Fl(i,e,t);return rs(n,"",r,"h",0,!0),(Dl(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),is(n,i,"r"),Re.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Mt.policy){if(o.length===1)return o[0];let t,r=!1,i;const n=o.length,s=o.map(d=>nt(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),l=(d,c)=>{let f="";for(let k=0;k<n;++k)f+=s[k](d,c);return f},u=new Lt(yn(l,i??e,r));return Ve.assignAspect(u,t),u}};class ss extends hi{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ve.define(ss);const z=o=>new ss(o),Hl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Vl=Object.create(null);class kt{constructor(e,t=Vl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}kt.empty=new kt(""),Ve.define(kt);function Rl(o,e,t,r=Ve.getForInstance(o)){if(r.aspected){const i=Hl.exec(e);i!==null&&Ve.assignAspect(o,i[2])}return o.createHTML(t)}class Ur{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=gi.compile(this.html,this.factories,this.policy)),this.result}inline(){return new kt(nt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw $e.error(ae.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw $e.error(ae.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}create(e){return this.compile().createView(e)}static create(e,t,r){let i="";const n=Object.create(null),s=l=>{var u;const d=(u=l.id)!==null&&u!==void 0?u:l.id=ci();return n[d]=l,d};for(let l=0,u=e.length-1;l<u;++l){const d=e[l];let c=t[l],f;if(i+=d,lo(c))c=new Lt(yn(c));else if(c instanceof Kr)c=new Lt(c);else if(!(f=Ve.getForInstance(c))){const k=c;c=new Lt(bn(()=>k))}i+=Rl(c,d,s,f)}return new Ur(i+e[e.length-1],n,r)}}mt(Ur);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Ur.create(o,e);throw $e.error(ae.directCallToHTMLTagNotAllowed)};b.partial=o=>new kt(o);const as="slotchange";class ls extends dl{observe(e){e.addEventListener(as,this)}disconnect(e){e.removeEventListener(as,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ve.define(ls);function G(o){return nt(o)&&(o={property:o}),new ls(o)}const jl=":host([hidden]){display:none}";function w(o){return`${jl}:host{display:${o}}`}const _="var(--colorNeutralForeground1)",cs="var(--colorNeutralForeground1Hover)",ql="var(--colorNeutralForeground1Pressed)",Be="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",Qo="var(--colorNeutralForeground2Selected)",er="var(--colorNeutralForeground2BrandHover)",tr="var(--colorNeutralForeground2BrandPressed)",Wl="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",Ul="var(--colorNeutralForeground3Hover)",Gl="var(--colorNeutralForeground3Pressed)",Xl="var(--colorNeutralForeground3Selected)",fi="var(--colorNeutralForeground4)",T="var(--colorNeutralForegroundDisabled)",Kl="var(--colorBrandForegroundLink)",Yl="var(--colorBrandForegroundLinkHover)",Jl="var(--colorBrandForegroundLinkPressed)",Zl="var(--colorNeutralForeground2Link)",Ql="var(--colorNeutralForeground2LinkHover)",ec="var(--colorNeutralForeground2LinkPressed)",tc="var(--colorCompoundBrandForeground1Hover)",oc="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",wt="var(--colorNeutralForegroundInverted)",rc="var(--colorNeutralForegroundInvertedHover)",ic="var(--colorNeutralForegroundInvertedPressed)",ds="var(--colorNeutralForegroundStaticInverted)",or="var(--colorBrandForeground1)",nc="var(--colorBrandForeground2)",sc="var(--colorNeutralForeground1Static)",C="var(--colorNeutralBackground1)",rr="var(--colorNeutralBackground1Hover)",bi="var(--colorNeutralBackground1Pressed)",hs="var(--colorNeutralBackground1Selected)",bo="var(--colorNeutralBackground3)",ac="var(--colorNeutralBackground4)",lc="var(--colorNeutralBackground5)",mo="var(--colorNeutralBackground6)",us="var(--colorNeutralBackgroundInverted)",ps="var(--colorSubtleBackground)",ir="var(--colorSubtleBackgroundHover)",vo="var(--colorSubtleBackgroundPressed)",gs="var(--colorSubtleBackgroundSelected)",cc="var(--colorSubtleBackgroundLightAlphaHover)",dc="var(--colorSubtleBackgroundLightAlphaPressed)",hc="var(--colorSubtleBackgroundLightAlphaSelected)",he="var(--colorTransparentBackground)",nr="var(--colorTransparentBackgroundHover)",sr="var(--colorTransparentBackgroundPressed)",fs="var(--colorTransparentBackgroundSelected)",st="var(--colorNeutralBackgroundDisabled)",mi="var(--colorBackgroundOverlay)",bs="var(--colorBrandBackground)",ms="var(--colorBrandBackgroundHover)",vs="var(--colorBrandBackgroundPressed)",uc="var(--colorBrandBackgroundSelected)",St="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Rt="var(--colorCompoundBrandBackgroundPressed)",$s="var(--colorBrandBackgroundStatic)",ys="var(--colorBrandBackground2)",je="var(--colorNeutralStrokeAccessible)",Ct="var(--colorNeutralStrokeAccessibleHover)",It="var(--colorNeutralStrokeAccessiblePressed)",qe="var(--colorNeutralStroke1)",Pt="var(--colorNeutralStroke1Hover)",$o="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",pc="var(--colorNeutralStroke3)",gc="var(--colorNeutralStrokeOnBrand2)",xs="var(--colorBrandStroke1)",ks="var(--colorBrandStroke2)",at="var(--colorCompoundBrandStroke)",fc="var(--colorCompoundBrandStrokeHover)",ws="var(--colorCompoundBrandStrokePressed)",xe="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",vi="var(--colorTransparentStrokeInteractive)",ar="var(--colorStrokeFocus1)",le="var(--colorStrokeFocus2)",bc="var(--colorNeutralShadowAmbient)",mc="var(--colorNeutralShadowKey)",Ss="var(--colorPaletteRedBackground1)",vc="var(--colorPaletteRedBackground2)",Cs="var(--colorPaletteRedBackground3)",Is="var(--colorPaletteRedBorder1)",$i="var(--colorPaletteRedBorder2)",yi="var(--colorPaletteRedForeground1)",$c="var(--colorPaletteRedForeground2)",Ps="var(--colorPaletteRedForeground3)",zs="var(--colorPaletteGreenBackground1)",_s="var(--colorPaletteGreenBackground3)",yc="var(--colorPaletteGreenBorder1)",xc="var(--colorPaletteGreenBorder2)",kc="var(--colorPaletteGreenForeground1)",wc="var(--colorPaletteGreenForeground2)",Sc="var(--colorPaletteGreenForeground3)",Os="var(--colorPaletteDarkOrangeBackground1)",Ts="var(--colorPaletteDarkOrangeBackground3)",As="var(--colorPaletteDarkOrangeBorder1)",Cc="var(--colorPaletteDarkOrangeForeground1)",Bs="var(--colorPaletteDarkOrangeForeground3)",Ic="var(--colorPaletteYellowBackground1)",Pc="var(--colorPaletteYellowBackground3)",zc="var(--colorPaletteYellowBorder1)",xi="var(--colorPaletteYellowForeground2)",Es="var(--colorPaletteMarigoldBackground2)",_c="var(--colorPaletteMarigoldBorderActive)",Oc="var(--colorPaletteMarigoldForeground2)",Tc="var(--colorPaletteAnchorBackground2)",Ac="var(--colorPaletteAnchorForeground2)",Bc="var(--colorPaletteBeigeBackground2)",Ec="var(--colorPaletteBeigeForeground2)",Nc="var(--colorPaletteBlueBackground2)",Fc="var(--colorPaletteBlueForeground2)",Mc="var(--colorPaletteBrassBackground2)",Lc="var(--colorPaletteBrassForeground2)",Dc="var(--colorPaletteBrownBackground2)",Hc="var(--colorPaletteBrownForeground2)",Vc="var(--colorPaletteCornflowerBackground2)",Rc="var(--colorPaletteCornflowerForeground2)",jc="var(--colorPaletteCranberryBackground2)",qc="var(--colorPaletteCranberryForeground2)",Wc="var(--colorPaletteDarkGreenBackground2)",Uc="var(--colorPaletteDarkGreenForeground2)",Gc="var(--colorPaletteDarkRedBackground2)",Xc="var(--colorPaletteDarkRedForeground2)",Kc="var(--colorPaletteForestBackground2)",Yc="var(--colorPaletteForestForeground2)",Jc="var(--colorPaletteGoldBackground2)",Zc="var(--colorPaletteGoldForeground2)",Qc="var(--colorPaletteGrapeBackground2)",ed="var(--colorPaletteGrapeForeground2)",td="var(--colorPaletteLavenderBackground2)",od="var(--colorPaletteLavenderForeground2)",rd="var(--colorPaletteLightTealBackground2)",id="var(--colorPaletteLightTealForeground2)",nd="var(--colorPaletteLilacBackground2)",sd="var(--colorPaletteLilacForeground2)",ad="var(--colorPaletteMagentaBackground2)",ld="var(--colorPaletteMagentaForeground2)",cd="var(--colorPaletteMinkBackground2)",dd="var(--colorPaletteMinkForeground2)",hd="var(--colorPaletteNavyBackground2)",ud="var(--colorPaletteNavyForeground2)",pd="var(--colorPalettePeachBackground2)",gd="var(--colorPalettePeachForeground2)",fd="var(--colorPalettePinkBackground2)",bd="var(--colorPalettePinkForeground2)",md="var(--colorPalettePlatinumBackground2)",vd="var(--colorPalettePlatinumForeground2)",$d="var(--colorPalettePlumBackground2)",yd="var(--colorPalettePlumForeground2)",xd="var(--colorPalettePumpkinBackground2)",kd="var(--colorPalettePumpkinForeground2)",wd="var(--colorPalettePurpleBackground2)",Sd="var(--colorPalettePurpleForeground2)",Cd="var(--colorPaletteRoyalBlueBackground2)",Id="var(--colorPaletteRoyalBlueForeground2)",Pd="var(--colorPaletteSeafoamBackground2)",zd="var(--colorPaletteSeafoamForeground2)",_d="var(--colorPaletteSteelBackground2)",Od="var(--colorPaletteSteelForeground2)",Td="var(--colorPaletteTealBackground2)",Ad="var(--colorPaletteTealForeground2)",lr="var(--borderRadiusNone)",Ee="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",Ns="var(--borderRadiusLarge)",Fs="var(--borderRadiusXLarge)",ue="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Bd="var(--fontFamilyMonospace)",Ed="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",M="var(--fontSizeBase200)",B="var(--fontSizeBase300)",pe="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",cr="var(--fontSizeBase600)",Ms="var(--fontSizeHero700)",Ls="var(--fontSizeHero800)",Ds="var(--fontSizeHero900)",Hs="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",Nd="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",dr="var(--fontWeightBold)",hr="var(--lineHeightBase100)",q="var(--lineHeightBase200)",L="var(--lineHeightBase300)",ke="var(--lineHeightBase400)",ur="var(--lineHeightBase500)",Vs="var(--lineHeightBase600)",Rs="var(--lineHeightHero700)",js="var(--lineHeightHero800)",qs="var(--lineHeightHero900)",Ws="var(--lineHeightHero1000)",ki="var(--shadow2)",pr="var(--shadow4)",Fd="var(--shadow8)",wi="var(--shadow16)",Md="var(--shadow28)",Us="var(--shadow64)",I="var(--strokeWidthThin)",ge="var(--strokeWidthThick)",Ie="var(--strokeWidthThicker)",Si="var(--strokeWidthThickest)",V="var(--spacingHorizontalXXS)",oe="var(--spacingHorizontalXS)",we="var(--spacingHorizontalSNudge)",Ne="var(--spacingHorizontalS)",Qe="var(--spacingHorizontalMNudge)",re="var(--spacingHorizontalM)",Ld="var(--spacingHorizontalL)",Dd="var(--spacingHorizontalXL)",gr="var(--spacingHorizontalXXL)",Ci="var(--spacingVerticalNone)",fr="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",ko="var(--spacingVerticalSNudge)",ie="var(--spacingVerticalS)",br="var(--spacingVerticalMNudge)",Hd="var(--spacingVerticalM)",Ii="var(--spacingVerticalL)",zt="var(--spacingVerticalXXL)",Vd="var(--spacingVerticalXXXL)",Pi="var(--durationUltraFast)",mr="var(--durationFaster)",vr="var(--durationNormal)",zi="var(--durationGentle)",Rd="var(--durationSlow)",Gs="var(--durationSlower)",$r="var(--durationUltraSlow)",jd="var(--curveAccelerateMax)",_t="var(--curveAccelerateMid)",qd="var(--curveAccelerateMin)",Xs="var(--curveDecelerateMax)",Ot="var(--curveDecelerateMid)",Wd="var(--curveDecelerateMin)",Ks="var(--curveEasyEaseMax)",yr="var(--curveEasyEase)",_i="var(--curveLinear)",Ud=p`${w("block")} :host{max-width:fit-content;contain:content;color:${_}}.heading{height:44px;display:grid;position:relative;padding-inline:${re} ${Qe};border-radius:${S};font-family:${v};font-size:${B};font-weight:${E};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${he};border:none;box-sizing:border-box;color:inherit;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:${Ee}}: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:${Ne};grid-column:1/span 1;grid-row:1}.content{margin:0 ${re}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Ne};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee};outline:none;border:2px solid ${ar};box-shadow:inset 0 0 0 1px ${le}}:host([disabled]) .button{color:${T}}: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:${L}}:host([size='small']) .heading{font-size:${M};line-height:${q}}:host([size='large']) .heading{font-size:${pe};line-height:${ke}}:host([size='extra-large']) .heading{font-size:${jt};line-height:${ur}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${Ne};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:${re}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Qe} ${re}}: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}`;function fe(o){return o?typeof o=="string"?new kt(o):"inline"in o?o.inline():o:kt.empty}class lt{}function ct(o){return b`<slot name=end ${z("end")}>${fe(o.end)}</slot>`.inline()}function We(o){return b`<slot name=start ${z("start")}>${fe(o.start)}</slot>`.inline()}const Gd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),Xd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path 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" fill=currentColor /></svg>');function Kd(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${z("expandbutton")}><slot name=heading></slot></button> ${We(o)}<slot name=marker-expanded>${fe(o.expandedIcon)}</slot><slot name=marker-collapsed>${fe(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const Yd=Kd({collapsedIcon:Gd,expandedIcon:Xd}),Jd={name:Ea,registry:h.registry,styles:Ud,template:Yd};function dt(o,...e){const t=qo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n))}),qo.locate(r).forEach(n=>t.push(n))})}var Zd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,xr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zd(e,t,i),i};class wo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}xr([a({attribute:"heading-level",mode:"fromView",converter:te})],wo.prototype,"headinglevel",2),xr([a({mode:"boolean"})],wo.prototype,"expanded",2),xr([a({mode:"boolean"})],wo.prototype,"disabled",2),xr([g],wo.prototype,"expandbutton",2);var eh=Object.defineProperty,th=Object.getOwnPropertyDescriptor,Oi=(o,e,t,r)=>{for(var i=r>1?void 0:r?th(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&eh(e,t,i),i};class So extends wo{constructor(){super(...arguments),this.block=!1}}Oi([a],So.prototype,"size",2),Oi([a({attribute:"marker-position"})],So.prototype,"markerPosition",2),Oi([a({mode:"boolean"})],So.prototype,"block",2),dt(So,lt),So.define(Jd);const Ti={single:"single",multi:"multi"},oh=`${h.prefix}-accordion`,rh=p`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function ih(){return b`<template><slot ${G({property:"slottedAccordionItems",filter:po()})}></slot></template>`}const nh=ih(),sh={name:oh,registry:h.registry,styles:rh,template:nh};function Ys(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,timeRemaining:()=>0})},e?.timeout??1)}function Co(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,n=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,l=u=>{if(o.querySelector(s)===null||u&&u.timeRemaining()<=0){n?Ys(e,{timeout:i}):e();return}Ys(l,{timeout:i})};l()}var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,Js=(o,e,t,r)=>{for(var i=r>1?void 0:r?lh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ah(e,t,i),i};class Ai extends x{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Co(this,()=>{if(!this.slottedAccordionItems?.length)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,r)=>{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,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Xr(t)&&(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 r=this.findExpandedItem();if(r){if(t===Ti.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Xr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ti.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{Xr(r)&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Ti.multi,this.setItems()}}Js([a({attribute:"expand-mode"})],Ai.prototype,"expandmode",2),Js([g],Ai.prototype,"slottedAccordionItems",2),Ai.define(sh);const ch={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},dh={circular:"circular",rounded:"rounded",square:"square"},hh={small:"small",medium:"medium",large:"large"},kr={submit:"submit",reset:"reset",button:"button"},uh=`${h.prefix}-button`,ph=ch,gh=dh,fh=hh,bh={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},mh=`${h.prefix}-anchor-button`,Zs=p`${w("inline-flex")} :host{--icon-spacing:${we};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:${C};color:${_};border:${I} solid ${qe};padding:0 ${re};min-width:96px;border-radius:${S};font-size:${B};font-family:${v};font-weight:${H};line-height:${L};transition-duration:${mr};transition-property:background,border,color;transition-timing-function:${yr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${rr};color:${cs};border-color:${Pt}}:host(:hover:active){background-color:${bi};border-color:${$o};color:${ql};outline-style:none}:host(:focus-visible){border-color:${K};outline:${ge} solid ${K};box-shadow:${pr},0 0 0 2px ${le}}@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:${oe};min-height:24px;min-width:64px;padding:0 ${Ne};border-radius:${Ee};font-size:${M};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Ns};padding:0 ${Ld};font-size:${pe};line-height:${ke}}: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:${ue}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${lr}}:host([appearance='primary']){background-color:${bs};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${ms}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ze}}:host([appearance='primary']:hover:active){background-color:${vs}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${ki},0 0 0 2px ${le}}:host([appearance='outline']){background-color:${he}}:host([appearance='outline']:hover){background-color:${nr}}:host([appearance='outline']:hover:active){background-color:${sr}}:host([appearance='subtle']){background-color:${ps};color:${Be};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ir};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${vo};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${er}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${tr}}:host([appearance='transparent']){background-color:${he};color:${Be}}:host([appearance='transparent']:hover){background-color:${nr};color:${er}}:host([appearance='transparent']:hover:active){background-color:${sr};color:${tr}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,wr=p`${Zs} :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:${st};border-color:${xe};color:${T};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:${he}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he};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:${he}}@media (forced-colors:active){: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}}`,vh=p`${Zs} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function $h(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${We(o)} <span class=content part=content><slot></slot></span>${ct(o)}</template>`}const yh=$h(),xh={name:mh,registry:h.registry,styles:vh,template:yh},Sr=CSS.supports("anchor-name: --a"),kh="anchor"in HTMLElement.prototype,Qs=CSS.supports("selector(:state(g))"),ea=new Map;function P(o){return ea.get(o)??ea.set(o,Qs?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Qs){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Bi=new WeakMap;function ta(o,e){if(!o||!e)return!1;if(Bi.has(o))return Bi.get(o).has(e);const t=new Set(Object.values(o));return Bi.set(o,t),t.has(e)}function Tt(o,e="",t="",r,i=""){$(o,`${i}${e}`,!1),(!r||ta(r,t))&&$(o,`${i}${t}`,!0)}var wh=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,ht=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&wh(e,t,i),i};class Ue extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,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 bh){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){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.inert=!0,e}}ht([a],Ue.prototype,"download",2),ht([a],Ue.prototype,"href",2),ht([a],Ue.prototype,"hreflang",2),ht([a],Ue.prototype,"ping",2),ht([a],Ue.prototype,"referrerpolicy",2),ht([a],Ue.prototype,"rel",2),ht([a],Ue.prototype,"target",2),ht([a],Ue.prototype,"type",2);var Ch=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Cr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ih(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ch(e,t,i),i};class Wt extends Ue{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Tt(this.elementInternals,e,t,ph)}shapeChanged(e,t){Tt(this.elementInternals,e,t,gh)}sizeChanged(e,t){Tt(this.elementInternals,e,t,fh)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Cr([a],Wt.prototype,"appearance",2),Cr([a],Wt.prototype,"shape",2),Cr([a],Wt.prototype,"size",2),Cr([a({attribute:"icon-only",mode:"boolean"})],Wt.prototype,"iconOnly",2),dt(Wt,lt),Wt.define(xh);const oa={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"},ra={neutral:"neutral",brand:"brand",colorful:"colorful",...oa},Ph=`${h.prefix}-avatar`,ut={fastOutSlowInMax:Xs,fastOutSlowInMid:Ot,fastOutSlowInMin:Wd,slowOutFastInMax:jd,slowOutFastInMid:_t,slowOutFastInMin:qd,fastEase:Ks,normalEase:yr,nullEasing:_i},zh=p`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${B};border-radius:${ue};color:${X};background-color:${mo};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ue}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${C}}: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 ${ge} ${C}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${xo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${M}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${pe}}: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:${jt}}: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:${cr}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ee}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Ns}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Fs}}:host([data-color='brand']){color:${ds};background-color:${$s}}:host([data-color='dark-red']){color:${Xc};background-color:${Gc}}:host([data-color='cranberry']){color:${qc};background-color:${jc}}:host([data-color='red']){color:${$c};background-color:${vc}}:host([data-color='pumpkin']){color:${kd};background-color:${xd}}:host([data-color='peach']){color:${gd};background-color:${pd}}:host([data-color='marigold']){color:${Oc};background-color:${Es}}:host([data-color='gold']){color:${Zc};background-color:${Jc}}:host([data-color='brass']){color:${Lc};background-color:${Mc}}:host([data-color='brown']){color:${Hc};background-color:${Dc}}:host([data-color='forest']){color:${Yc};background-color:${Kc}}:host([data-color='seafoam']){color:${zd};background-color:${Pd}}:host([data-color='dark-green']){color:${Uc};background-color:${Wc}}:host([data-color='light-teal']){color:${id};background-color:${rd}}:host([data-color='teal']){color:${Ad};background-color:${Td}}:host([data-color='steel']){color:${Od};background-color:${_d}}:host([data-color='blue']){color:${Fc};background-color:${Nc}}:host([data-color='royal-blue']){color:${Id};background-color:${Cd}}:host([data-color='cornflower']){color:${Rc};background-color:${Vc}}:host([data-color='navy']){color:${ud};background-color:${hd}}:host([data-color='lavender']){color:${od};background-color:${td}}:host([data-color='purple']){color:${Sd};background-color:${wd}}:host([data-color='grape']){color:${ed};background-color:${Qc}}:host([data-color='lilac']){color:${sd};background-color:${nd}}:host([data-color='pink']){color:${bd};background-color:${fd}}:host([data-color='magenta']){color:${ld};background-color:${ad}}:host([data-color='plum']){color:${yd};background-color:${$d}}:host([data-color='beige']){color:${Ec};background-color:${Bc}}:host([data-color='mink']){color:${dd};background-color:${cd}}:host([data-color='platinum']){color:${vd};background-color:${md}}:host([data-color='anchor']){color:${Ac};background-color:${Tc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${$r},${mr};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${$r},${Gs};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{box-shadow:${Fd};border-style:solid;border-color:${$s}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ge});border-width:${ge}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ie});border-width:${Ie}}: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 * ${Si});border-width:${Si}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${pr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${wi}}: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:${Md}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${$r},${mr};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${$r},${Gs};transition-delay:${ut.fastOutSlowInMin},${ut.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}}`,_h=b`<svg width=1em height=1em viewBox="0 0 20 20" 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 Oh(){return b`<slot class=default-slot ${G("slottedDefaults")} ${z("defaultSlot")}></slot><span class=monogram ${z("monogram")}>${o=>o.initials}</span> ${_h}<slot name=badge></slot>`}const Th=Oh(),Ah={name:Ph,registry:h.registry,styles:zh,template:Th},Bh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Eh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Nh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Fh=/\s+/g,Mh=/[\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 Lh(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function Dh(o){return o=o.replace(Bh,""),o=o.replace(Eh,""),o=o.replace(Fh," "),o=o.trim(),o}function ia(o,e,t){return!o||(o=Dh(o),Mh.test(o)||!t?.allowPhoneInitials&&Nh.test(o))?"":Lh(o,e,t?.firstInitialOnly)}var Hh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Io=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Hh(e,t,i),i};class Ut extends x{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}O.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||ia(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}Io([g],Ut.prototype,"defaultSlot",2),Io([g],Ut.prototype,"monogram",2),Io([g],Ut.prototype,"slottedDefaults",2),Io([a],Ut.prototype,"name",2),Io([a],Ut.prototype,"initials",2);var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Gt=(o,e,t,r)=>{for(var i=r>1?void 0:r?jh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Rh(e,t,i),i};const pt=class dn extends Ut{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||ia(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===ra.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?dn.colors[Wh(this.name??"")%dn.colors.length]:this.color??ra.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)}};pt.colors=Object.values(oa),Gt([a],pt.prototype,"active",2),Gt([a],pt.prototype,"shape",2),Gt([a],pt.prototype,"appearance",2),Gt([a({converter:te})],pt.prototype,"size",2),Gt([a],pt.prototype,"color",2),Gt([a({attribute:"color-id"})],pt.prototype,"colorId",2);let qh=pt;const Wh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e};qh.define(Ah);const Uh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Gh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Xh=`${h.prefix}-badge`,na=p.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${M};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${oe} + ${V});border-radius:${ue};border-color:${K};background-color:${bs};color:${Ze};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${I};border-color:inherit;border-radius:inherit}`,sa=p.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${xo};line-height:${hr};padding-inline:calc(${V} + ${V})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${M};line-height:${q};padding-inline:calc(${oe} + ${V})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${M};line-height:${q};padding-inline:calc(${we} + ${V})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,aa=p.partial`:host([color='danger']){background-color:${Cs};color:${Ze}}:host([color='important']){background-color:${_};color:${C}}:host([color='informative']){background-color:${lc};color:${X}}:host([color='severe']){background-color:${Ts};color:${Ze}}:host([color='subtle']){background-color:${C};color:${_}}:host([color='success']){background-color:${_s};color:${Ze}}:host([color='warning']){background-color:${Pc};color:${sc}}`,la=p.partial`:host([appearance='ghost']){color:${or};background-color:initial}:host([appearance='ghost'][color='danger']){color:${Ps}}:host([appearance='ghost'][color='important']){color:${_}}:host([appearance='ghost'][color='informative']){color:${X}}:host([appearance='ghost'][color='severe']){color:${Bs}}:host([appearance='ghost'][color='subtle']){color:${wt}}:host([appearance='ghost'][color='success']){color:${Sc}}:host([appearance='ghost'][color='warning']){color:${xi}}`,Kh=p.partial`:host([appearance='outline']){border-color:currentColor;color:${or};background-color:initial}:host([appearance='outline'][color='danger']){color:${Ps}}:host([appearance='outline'][color='important']){color:${X};border-color:${je}}:host([appearance='outline'][color='informative']){color:${X};border-color:${yo}}:host([appearance='outline'][color='severe']){color:${Bs}}:host([appearance='outline'][color='subtle']){color:${ds}}:host([appearance='outline'][color='success']){color:${wc}}:host([appearance='outline'][color='warning']){color:${xi}}`,Yh=p.partial`:host([appearance='tint']){background-color:${ys};color:${nc};border-color:${ks}}:host([appearance='tint'][color='danger']){background-color:${Ss};color:${yi};border-color:${Is}}:host([appearance='tint'][color='important']){background-color:${X};color:${C};border-color:${K}}:host([appearance='tint'][color='informative']){background-color:${ac};color:${X};border-color:${yo}}:host([appearance='tint'][color='severe']){background-color:${Os};color:${Cc};border-color:${As}}:host([appearance='tint'][color='subtle']){background-color:${C};color:${X};border-color:${yo}}:host([appearance='tint'][color='success']){background-color:${zs};color:${kc};border-color:${xc}}:host([appearance='tint'][color='warning']){background-color:${Ic};color:${xi};border-color:${zc}}`,Jh=p`:host([shape='square']){border-radius:${lr}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${Yh} ${Kh} ${la} ${aa} ${sa} ${na} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Zh(o={}){return b`${We(o)}<slot>${fe(o.defaultContent)}</slot>${ct(o)}`}const Qh=Zh(),eu={name:Xh,registry:h.registry,styles:Jh,template:Qh};var tu=Object.defineProperty,ou=Object.getOwnPropertyDescriptor,Ir=(o,e,t,r)=>{for(var i=r>1?void 0:r?ou(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&tu(e,t,i),i};class Xt extends x{constructor(){super(...arguments),this.appearance=Uh.filled,this.color=Gh.brand}}Ir([a],Xt.prototype,"appearance",2),Ir([a],Xt.prototype,"color",2),Ir([a],Xt.prototype,"shape",2),Ir([a],Xt.prototype,"size",2),dt(Xt,lt),Xt.define(eu);function Ei(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${We(o)} <span class=content part=content><slot ${G("defaultSlottedContent")}></slot></span>${ct(o)}</template>`}const ru=Ei(),iu={name:uh,registry:h.registry,styles:wr,template:ru};function et(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&O.enqueue(()=>{o.focus()})}var nu=Object.defineProperty,su=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?su(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&nu(e,t,i),i};class be extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==kr.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.setTabIndex(),et(this)}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==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case kr.reset:{this.resetForm();break}case kr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==kr.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,Pe([g],be.prototype,"defaultSlottedContent",2),Pe([a({mode:"boolean"})],be.prototype,"disabled",2),Pe([a({attribute:"disabled-focusable",mode:"boolean"})],be.prototype,"disabledFocusable",2),Pe([a({attribute:"formaction"})],be.prototype,"formAction",2),Pe([a({attribute:"form"})],be.prototype,"formAttribute",2),Pe([a({attribute:"formenctype"})],be.prototype,"formEnctype",2),Pe([a({attribute:"formmethod"})],be.prototype,"formMethod",2),Pe([a({attribute:"formnovalidate",mode:"boolean"})],be.prototype,"formNoValidate",2),Pe([a({attribute:"formtarget"})],be.prototype,"formTarget",2),Pe([a],be.prototype,"name",2),Pe([a],be.prototype,"type",2),Pe([a],be.prototype,"value",2);var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?lu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&au(e,t,i),i};class tt extends be{constructor(){super(...arguments),this.iconOnly=!1}}Pr([a],tt.prototype,"appearance",2),Pr([a],tt.prototype,"shape",2),Pr([a],tt.prototype,"size",2),Pr([a({attribute:"icon-only",mode:"boolean"})],tt.prototype,"iconOnly",2),dt(tt,lt),tt.define(iu);const cu=`${h.prefix}-checkbox`,du=P("active"),hu=P("bad-input"),y=P("checked"),uu=P("custom-error"),pu=P("description"),me=P("disabled");P("error");const gu=P("flip-block"),fu=P("focus-visible");P("has-message");const At=P("indeterminate"),Kt=P("multiple"),bu=P("open"),mu=P("pattern-mismatch"),vu=P("placeholder-shown"),F=P("pressed"),$u=P("range-overflow"),yu=P("range-underflow"),xu=P("required"),Ni=P("selected"),ku=P("step-mismatch"),zr=P("submenu"),wu=P("too-long"),Su=P("too-short"),Cu=P("type-mismatch"),Iu=P("user-invalid"),Pu=P("valid"),zu=P("value-missing"),_u=p`${w("inline-flex")} :host{--size:16px;background-color:${C};border-radius:${Ee};border:${I} solid ${je};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ct}}:host(:active){border-color:${It}}:host(${y}:hover){background-color:${Vt};border-color:${fc}}:host(${y}:active){background-color:${Rt};border-color:${ws}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}.indeterminate-indicator,.checked-indicator{color:${wt};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(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${At}){border-color:${at}}:host(${y}),:host(${At}) .indeterminate-indicator{background-color:${St}}:host(${At}) .indeterminate-indicator{border-radius:${Ee};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:${ue}}:host([disabled]),:host([disabled]${y}){background-color:${st};border-color:${xe}}:host([disabled]){cursor:unset}:host([disabled]${At}) .indeterminate-indicator{background-color:${xe}}:host([disabled]${y}) .checked-indicator{color:${xe}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${At}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${At}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${At}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,Ou=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),Tu=b.partial("<span class=indeterminate-indicator></span>");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>${fe(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${fe(o.indeterminateIndicator)}</slot></template>`}const Bu=Au({checkedIndicator:Ou,indeterminateIndicator:Tu}),Eu={name:cu,registry:h.registry,styles:_u,template:Bu};var Nu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Bt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nu(e,t,i),i};class Fe extends x{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(),$(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",$(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.elementInternals&&(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.elementInternals&&(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(),et(this)}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&&(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,r){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Fe.formAssociated=!0,Bt([g],Fe.prototype,"disabled",2),Bt([a({attribute:"disabled",mode:"boolean"})],Fe.prototype,"disabledAttribute",2),Bt([a({attribute:"form"})],Fe.prototype,"formAttribute",2),Bt([a({attribute:"checked",mode:"boolean"})],Fe.prototype,"initialChecked",2),Bt([a({attribute:"value",mode:"fromView"})],Fe.prototype,"initialValue",2),Bt([a],Fe.prototype,"name",2),Bt([a({mode:"boolean"})],Fe.prototype,"required",2);var Mu=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,Fi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Mu(e,t,i),i};class _r extends Fe{indeterminateChanged(e,t){this.setAriaChecked(),$(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)}}Fi([g],_r.prototype,"indeterminate",2),Fi([a],_r.prototype,"shape",2),Fi([a],_r.prototype,"size",2),_r.define(Eu);const Du=`${h.prefix}-compound-button`,Hu=p`${wr} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Be};line-height:100%;font-size:${M};font-weight:${E}}::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:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Be}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${er}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${tr}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${T}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${we}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${oe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ne}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function Vu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${We(o)} <span class=content part=content><slot ${G("defaultSlottedContent")}></slot><slot name=description></slot></span>${ct(o)}</template>`}const Ru=Vu(),ju={name:Du,registry:h.registry,styles:Hu,template:Ru};class qu extends tt{}qu.define(ju);const Wu=`${h.prefix}-counter-badge`,Uu=p`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${sa} ${aa} ${la} ${na} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Gu(o={}){return b`${We(o)} <span>${e=>e.displayValue}</span> ${ct(o)}`}const Xu=Gu(),Ku={name:Wu,registry:h.registry,styles:Uu,template:Xu};var Yu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ju(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Yu(e,t,i),i};class Yt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Po([a({converter:te})],Yt.prototype,"count",2),Po([a({attribute:"overflow-count",converter:te})],Yt.prototype,"overflowCount",2),Po([a({attribute:"show-zero",mode:"boolean"})],Yt.prototype,"showZero",2),Po([a({mode:"boolean"})],Yt.prototype,"dot",2),Po([ye],Yt.prototype,"displayValue",1);var Zu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,Or=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zu(e,t,i),i};class Jt extends Yt{}Or([a],Jt.prototype,"appearance",2),Or([a],Jt.prototype,"color",2),Or([a],Jt.prototype,"shape",2),Or([a],Jt.prototype,"size",2),dt(Jt,lt),Jt.define(Ku);const Et={modal:"modal",nonModal:"non-modal",alert:"alert"};function ca(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ep=`${h.prefix}-dialog`,tp=p`@layer base{:host{--dialog-backdrop:${mi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${C};border-radius:${Fs};border:none;box-shadow:${Us};color:${_};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;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:${zi};transition-timing-function:${Ot};opacity:0}::backdrop{transition-timing-function:${_i}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${_t}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${K}}}}`,op=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${z("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,rp={name:ep,registry:h.registry,styles:tp,template:op};var ip=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Ge=(o,e,t,r)=>{for(var i=r>1?void 0:r?np(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ip(e,t,i),i};class Me extends x{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==Et.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Et.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),O.enqueue(()=>{this.type=this.type??Et.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){O.enqueue(()=>{this.emitBeforeToggle(),this.type===Et.alert||this.type===Et.modal?this.dialog.showModal():this.type===Et.nonModal&&this.dialog.show(),this.querySelector("[autofocus]")?.focus?.(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Et.alert&&e.target===this.dialog&&this.hide(),!0}}Ge([g],Me.prototype,"dialog",2),Ge([a({attribute:"aria-describedby"})],Me.prototype,"ariaDescribedby",2),Ge([a({attribute:"aria-labelledby"})],Me.prototype,"ariaLabelledby",2),Ge([a({attribute:"aria-label"})],Me.prototype,"ariaLabel",2),Ge([a],Me.prototype,"type",2),Ge([ye],Me.prototype,"dialogDescribedby",1),Ge([ye],Me.prototype,"dialogLabel",1),Ge([ye],Me.prototype,"dialogLabelledby",1),Ge([ye],Me.prototype,"dialogModal",1),Ge([ye],Me.prototype,"dialogRole",1),Me.define(rp);const sp=`${h.prefix}-dialog-body`,ap=p`${w("grid")} :host{background:${C};box-sizing:border-box;gap:${ie};padding:${zt} ${gr};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${C};color:${_};column-gap:8px;display:flex;font-family:${v};font-size:${jt};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${ur};margin-block-end:calc(${ie} * -1);margin-block-start:calc(${zt} * -1);padding-block-end:${ie};padding-block-start:${zt}}.content{box-sizing:border-box;color:${_};font-family:${v};font-size:${B};font-weight:${E};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${C};display:flex;flex-direction:column;gap:${ie};inset-block-end:0;margin-block-end:calc(${zt} * -1);padding-block-end:${zt};padding-block-start:${Ii}}::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(${ie} * -1);padding-block-start:${ie}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,lp=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>`,cp={name:sp,registry:h.registry,styles:ap,template:lp};class dp extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ca(t)&&t.hide()}return!0}}dp.define(cp);const Se={horizontal:"horizontal",vertical:"vertical"},zo={separator:"separator",presentation:"presentation"},da=Se,hp=`${h.prefix}-divider`,up=p`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Be};font-family:${v};font-size:${M};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){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:${I};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:${qe}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${xs}}:host([appearance='brand']) ::slotted(*){color:${or}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${pc}}:host([appearance='subtle']) ::slotted(*){color:${X}}@media (forced-colors:active){: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}}`;function pp(){return b`<slot></slot>`}const gp=pp(),fp={name:hp,registry:h.registry,styles:up,template:gp};var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,ha=(o,e,t,r)=>{for(var i=r>1?void 0:r?mp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bp(e,t,i),i};class Mi extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??zo.separator,this.role!==zo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??da.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??zo.separator}`),t===zo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==zo.presentation?t??null:null,Tt(this.elementInternals,e,t,da)}}ha([a],Mi.prototype,"role",2),ha([a],Mi.prototype,"orientation",2);var vp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Li=(o,e,t,r)=>{for(var i=r>1?void 0:r?$p(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&vp(e,t,i),i};class Tr extends Mi{}Li([a({attribute:"align-content"})],Tr.prototype,"alignContent",2),Li([a],Tr.prototype,"appearance",2),Li([a({mode:"boolean"})],Tr.prototype,"inset",2),Tr.define(fp);const yp={start:"start",end:"end"},xp={small:"small",medium:"medium",large:"large",full:"full"},_o={nonModal:"non-modal",modal:"modal",inline:"inline"},kp=`${h.prefix}-drawer`,wp=p`${w("block")} :host{--dialog-backdrop:${mi}}: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{background:${C};border-radius:0;border:${I} solid ${K};border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});box-shadow:${Us};box-sizing:border-box;color:${_};font-family:${v};font-size:${B};font-weight:${E};height:100%;line-height:${L};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${gr});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}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:${zi};transition-timing-function:${Ot}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${_t}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${_t}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${zi};transition-timing-function:${Ot};background:var(--dialog-backdrop,${mi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${_i}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Sp(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${z("dialog")}><slot></slot></dialog>`}const Cp=Sp(),Ip={name:kp,registry:h.registry,styles:wp,template:Cp};var Pp=Object.defineProperty,zp=Object.getOwnPropertyDescriptor,ze=(o,e,t,r)=>{for(var i=r>1?void 0:r?zp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Pp(e,t,i),i};class Ce extends x{constructor(){super(...arguments),this.position=yp.start,this.size=xp.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"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===_o.modal)return!0}get dialogRole(){return this.dialog&&this.type===_o.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),O.enqueue(()=>{this.type=this.type??_o.modal})}show(){O.enqueue(()=>{this.emitBeforeToggle(),this.type===_o.inline||this.type===_o.nonModal?this.dialog.show():this.dialog.showModal(),this.querySelector("[autofocus]")?.focus?.(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}ze([a],Ce.prototype,"type",2),ze([a({attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledby",2),ze([a({attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedby",2),ze([a],Ce.prototype,"position",2),ze([g],Ce.prototype,"role",2),ze([a({attribute:"size"})],Ce.prototype,"size",2),ze([g],Ce.prototype,"dialog",2),ze([ye],Ce.prototype,"dialogDescribedby",1),ze([ye],Ce.prototype,"dialogLabel",1),ze([ye],Ce.prototype,"dialogLabelledby",1),ze([ye],Ce.prototype,"dialogModal",1),ze([ye],Ce.prototype,"dialogRole",1),Ce.define(Ip);const _p=`${h.prefix}-drawer-body`,ua=p.partial`font-family:${v};font-size:${B};line-height:${L};font-weight:${E};`;p.partial`font-family:${v};font-size:${B};line-height:${L};font-weight:${H};`,p.partial`font-family:${v};font-size:${B};line-height:${L};font-weight:${dr};`;const Op=p.partial`font-family:${v};font-size:${pe};line-height:${ke};font-weight:${E};`,pa=p.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${E};`;p.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${H};`,p.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${dr};`,p.partial`font-family:${v};font-size:${xo};line-height:${hr};font-weight:${E};`,p.partial`font-family:${v};font-size:${xo};line-height:${hr};font-weight:${H};`;const Tp=p.partial`font-family:${v};font-size:${jt};line-height:${ur};font-weight:${H};`;p.partial`font-family:${v};font-size:${pe};line-height:${ke};font-weight:${H};`,p.partial`font-family:${v};font-size:${pe};line-height:${ke};font-weight:${dr};`,p.partial`font-family:${v};font-size:${Ls};line-height:${js};font-weight:${H};`,p.partial`font-family:${v};font-size:${Ms};line-height:${Rs};font-weight:${H};`,p.partial`font-family:${v};font-size:${cr};line-height:${Vs};font-weight:${H};`,p.partial`font-family:${v};font-size:${Ds};line-height:${qs};font-weight:${H};`,p.partial`font-family:${v};font-size:${Hs};line-height:${Ws};font-weight:${H};`;const Ap=p`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Dd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Tp}}.footer{display:flex;justify-content:flex-start;gap:${re}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Bp(){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 Ep=Bp(),Np={name:_p,registry:h.registry,styles:Ap,template:Ep};class Fp extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ca(t,"-drawer")&&t.hide()}return!0}}Fp.define(Np);const Mp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Di={combobox:"combobox",dropdown:"dropdown",select:"select"},Lp=`${h.prefix}-dropdown`,Dp=p`${w("inline-flex")} :host{box-sizing:border-box;color:${_};cursor:pointer}:host(${vu}){color:${fi}}.control{appearance:none;background-color:${C};border-radius:${S};border:${I} solid ${K};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${V};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${ko} ${Qe};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${ua}}:host([size='small']) .control{column-gap:${V};padding:${qt} ${we};${pa}}:host([size='large']) .control{column-gap:${Ne};padding:${ie} ${re};${Op}}::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:${X};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:${I}}.control::after{background-color:${at};height:${ge};scale:0 1;transition:scale ${Pi} ${Ot}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${ar};outline:${ge} solid ${le}}:host(:where(${bu},:focus-within)) .control::after{scale:1 1;transition-duration:${vr};transition-timing-function:${_t}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${je}}:host([appearance='transparent']) .control{--control-border-color:${vi};background-color:${he};border-radius:${lr}}:host([appearance='outline']) .control{--control-border-color:${qe}}:host([appearance='outline']) .control:hover{--control-border-color:${Pt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${Ct}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${$o}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${It}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Rt}}:host([appearance='filled-darker']) .control{background-color:${bo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}: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:${xe};background-color:${st};color:${T}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${L} + (${ko} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${q} + (${qt} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${ke} + (${ie} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,Hp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${z("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>`,Vp=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 ${z("control")}>`,Rp=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 ${z("control")}>${o=>o.displayValue}</button>`;function jp(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 ${z("controlSlot")}></slot><slot name=indicator ${z("indicatorSlot")}>${fe(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const qp=jp({indicator:Hp}),Wp={name:Lp,registry:h.registry,styles:Dp,template:qp};function ga(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Up=`${h.prefix}-listbox`;function Nt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gp=`${h.prefix}-option`,gt={ltr:"ltr",rtl:"rtl"},fa=o=>o.closest("[dir]")?.dir==="rtl"?gt.rtl:gt.ltr;function ba(o){return o.closest("[lang]")?.lang??"en"}let Xp=0;function Xe(o="id-"){const e=`${o}${Xp++}`;return document.getElementById(e)?Xe(o):e}var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Kp(e,t,i),i};const R=class so extends x{constructor(){super(),this.activeIndex=0,this.id=Xe("dropdown-"),this.required=!1,this.type=Di.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||fa(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,n)=>{i.active=n===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Xe("input-"))}disabledChanged(e,t){this.listbox&&O.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ba(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(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 r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),O.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,n)=>{i.selected=this.multiple||n===0}),this.setValidity()}),Sr){const i=Xe("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&O.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Sr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Nt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Di.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Nt(e))}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(r=>r.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||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Nt(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(ba(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.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,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Di.combobox){Vp.render(this,this);return}Rp.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let r=this.searchString.length>1?this.filterOptions(this.searchString):[],i=!1;if(!r.length&&t&&(r=this.filterOptions(e),i=!0),r.length){const n=this.enabledOptions[this.activeIndex],s=r.indexOf(n),l=i?r[this.getEnabledIndexInBounds(s+1,r.length)]:s>=0?n:r[0];this.activeIndex=this.enabledOptions.indexOf(l)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}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!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Nt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Co(this,()=>{const r=t.assignedElements().find(i=>ga(i));r&&(this.listbox=r)})}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}}connectedCallback(){super.connectedCallback(),O.enqueue(()=>{this.insertControl()}),et(this)}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:n})=>{if(ga(n)){if(r.bottom>window.innerHeight){$(n.elementInternals,"flip-block",!0);return}r.top<0&&$(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.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}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};R.formAssociated=!0,Y([ye],R.prototype,"activeDescendant",1),Y([g],R.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],R.prototype,"ariaLabelledBy",2),Y([g],R.prototype,"control",2),Y([a({mode:"boolean"})],R.prototype,"disabled",2),Y([ye],R.prototype,"displayValue",1),Y([a({attribute:"id"})],R.prototype,"id",2),Y([g],R.prototype,"indicator",2),Y([g],R.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],R.prototype,"initialValue",2),Y([g],R.prototype,"listbox",2),Y([a({mode:"boolean"})],R.prototype,"multiple",2),Y([a],R.prototype,"name",2),Y([g],R.prototype,"open",2),Y([a],R.prototype,"placeholder",2),Y([a({mode:"boolean"})],R.prototype,"required",2),Y([a],R.prototype,"type",2),Y([a({attribute:"value"})],R.prototype,"valueAttribute",2);let Jp=R;var Zp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,ma=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zp(e,t,i),i};class Hi extends Jp{constructor(){super(...arguments),this.appearance=Mp.outline}}ma([a],Hi.prototype,"appearance",2),ma([a],Hi.prototype,"size",2),Hi.define(Wp);const eg={above:"above",after:"after",before:"before"},_e={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"},tg=`${h.prefix}-field`,og=p`${w("inline-grid")} :host{color:${_};align-items:center;gap:0 ${re};justify-items:start}:has([slot='message']){color:${_};row-gap:${ie}}: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:${re}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${fr}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Hd}}:host(${xu}) ::slotted([slot='label'])::after{content:'*'/'';color:${yi};margin-inline-start:${oe}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${X};font-family:${v};font-size:${M};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${fr}}:host(${fu}:focus-within){border-radius:${S};outline:${ge} solid ${le}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${E};grid-area:label;line-height:${L};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${M};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${me}){cursor:default}::slotted([flag]){display:none}:host(${hu}) ::slotted([flag='${_e.badInput}']),:host(${uu}) ::slotted([flag='${_e.customError}']),:host(${mu}) ::slotted([flag='${_e.patternMismatch}']),:host(${$u}) ::slotted([flag='${_e.rangeOverflow}']),:host(${yu}) ::slotted([flag='${_e.rangeUnderflow}']),:host(${ku}) ::slotted([flag='${_e.stepMismatch}']),:host(${wu}) ::slotted([flag='${_e.tooLong}']),:host(${Su}) ::slotted([flag='${_e.tooShort}']),:host(${Cu}) ::slotted([flag='${_e.typeMismatch}']),:host(${zu}) ::slotted([flag='${_e.valueMissing}']),:host(${Pu}) ::slotted([flag='${_e.valid}']){display:block}`,rg=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 ${G("labelSlot")}></slot><slot name=input part=input ${G("slottedInputs")}></slot><slot name=message part=message ${G({property:"messageSlot",filter:po("[flag]")})}></slot></template>`,ig={name:tg,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:og,template:rg};var ng=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,Ar=(o,e,t,r)=>{for(var i=r>1?void 0:r?sg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ng(e,t,i),i};class Oo extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}get slottedInputObserver(){return this._slottedInputObserver??(this._slottedInputObserver=new MutationObserver(()=>{this.setStates()})),this._slottedInputObserver}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(t,{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})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(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||Xe("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(_e))$(this.elementInternals,t,this.input.validity[e])}}Ar([g],Oo.prototype,"labelSlot",2),Ar([g],Oo.prototype,"messageSlot",2),Ar([g],Oo.prototype,"slottedInputs",2),Ar([g],Oo.prototype,"input",2);var ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,cg=(o,e,t,r)=>{for(var i=r>1?void 0:r?lg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ag(e,t,i),i};class va extends Oo{constructor(){super(...arguments),this.labelPosition=eg.above}}cg([a({attribute:"label-position"})],va.prototype,"labelPosition",2),va.define(ig);const dg=`${h.prefix}-image`,hg=p`: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:${I} solid ${yo}}: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:${pr}}:host([shape='circular']) ::slotted(img){border-radius:${ue}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,ug=b`<slot></slot>`,pg={name:dg,registry:h.registry,styles:hg,template:ug};var gg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,To=(o,e,t,r)=>{for(var i=r>1?void 0:r?fg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&gg(e,t,i),i};class Zt extends x{}To([a({mode:"boolean"})],Zt.prototype,"block",2),To([a({mode:"boolean"})],Zt.prototype,"bordered",2),To([a({mode:"boolean"})],Zt.prototype,"shadow",2),To([a],Zt.prototype,"fit",2),To([a],Zt.prototype,"shape",2),Zt.define(pg);const bg=`${h.prefix}-label`,mg=p`${w("inline-flex")} :host{color:${_};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};line-height:${L};user-select:none}.asterisk{color:${yi};margin-inline-start:${oe}}:host([size='small']){font-size:${M};line-height:${q}}:host([size='large']){font-size:${pe};line-height:${ke}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${T}}`;function vg(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const $g=vg(),yg={name:bg,registry:h.registry,styles:mg,template:$g};var xg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Br=(o,e,t,r)=>{for(var i=r>1?void 0:r?kg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&xg(e,t,i),i};class Ao extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Br([a],Ao.prototype,"size",2),Br([a],Ao.prototype,"weight",2),Br([a({mode:"boolean"})],Ao.prototype,"disabled",2),Br([a({mode:"boolean"})],Ao.prototype,"required",2),Ao.define(yg);const wg=`${h.prefix}-link`,Sg=p`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Kl};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:hover){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Yl}}:host(:active){color:${Jl}}:host([appearance='subtle']:hover){color:${Ql}}:host([appearance='subtle']:active){color:${ec}}}:host([appearance='subtle']){color:${Zl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:focus-visible),:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)):focus-visible,:host([inline]:focus-visible){outline-style:none;text-decoration-line:underline;text-decoration-style:double;text-decoration-color:${le}}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function Cg(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Ig=Cg(),Pg={name:wg,registry:h.registry,styles:Sg,template:Ig};var zg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,$a=(o,e,t,r)=>{for(var i=r>1?void 0:r?_g(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&zg(e,t,i),i};class Vi extends Ue{constructor(){super(...arguments),this.inline=!1}}$a([a],Vi.prototype,"appearance",2),$a([a({mode:"boolean"})],Vi.prototype,"inline",2),Vi.define(Pg);const Og=p`${w("inline-flex")} :host{background-color:${C};border-radius:${S};border:${I} solid ${K};box-shadow:${wi};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${oe};row-gap:${V};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${gu}){margin-block-start:revert;translate:0 -100%}}`;function Tg(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${z("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const Ag=Tg(),Bg={name:Up,registry:h.registry,styles:Og,template:Ag};var Eg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,Bo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ng(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Eg(e,t,i),i};class Qt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),O.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.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)??Array.from(this.querySelectorAll("*")).filter(e=>Nt(e)&&!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Nt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Co(this,()=>{this.id=this.id||Xe("listbox-")},{shallow:!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((r,i)=>{const n=i===e;r.selected=n,n&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Co(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Nt(r));this.options=t}})}}Bo([g],Qt.prototype,"defaultSlot",2),Bo([g],Qt.prototype,"multiple",2),Bo([g],Qt.prototype,"options",2),Bo([g],Qt.prototype,"selectedIndex",2),Bo([g],Qt.prototype,"dropdown",2),Qt.define(Bg);const Fg=`${h.prefix}-menu-button`,Mg=wr,Lg=Ei({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><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></svg>')}),Dg={name:Fg,registry:h.registry,styles:Mg,template:Lg};class Hg extends tt{}Hg.define(Dg);const Z={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Z.menuitem+"",Z.menuitemcheckbox+"",Z.menuitemradio+"";function Vg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Rg=`${h.prefix}-menu-item`,jg=p`${w("grid")} :host{--indent:0;align-items:center;background:${C};border-radius:${S};color:${Be};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${B}/${L} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${rr};color:${Dt}}:host(:active){background-color:${hs};color:${Ht}}:host(:active) ::slotted([slot='start']){color:${oc}}:host(${me}){background-color:${st};color:${T}}:host(${me}) ::slotted([slot='start']),:host(${me}) ::slotted([slot='end']){color:${T}}:host(:focus-visible){border-radius:${S};outline:2px solid ${le}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${zr})) .submenu-glyph,:host(:not(${zr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${X};font:${E} ${M}/${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(${zr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${zr}){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}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${me}),:host(${me}) ::slotted([slot='start']),:host(${me}) ::slotted([slot='end']){color:GrayText}}`,qg=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>'),Wg=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 Ug(o={}){return b`<template tabindex=0 @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.handleToggle(t.event)}><slot name=indicator>${fe(o.indicator)}</slot>${We(o)}<div part=content class=content><slot></slot></div>${ct(o)}<slot name=submenu-glyph>${fe(o.submenuGlyph)}</slot><slot name=submenu ${G({property:"slottedSubmenu"})}></slot></template>`}const Gg=Ug({indicator:qg,submenuGlyph:Wg}),Xg={name:Rg,registry:h.registry,styles:jg,template:Gg};var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,eo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Kg(e,t,i),i};class ot extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Z.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":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.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Z.menuitemcheckbox:this.checked=!this.checked;break;case Z.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Z.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(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+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,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??Z.menuitem}checkedChanged(e,t){const r=this.role!==Z.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Z.menuitem,this.elementInternals.ariaChecked=this.role!==Z.menuitem?`${!!this.checked}`:null,et(this)}}eo([a({mode:"boolean"})],ot.prototype,"disabled",2),eo([a],ot.prototype,"role",2),eo([a({mode:"boolean"})],ot.prototype,"checked",2),eo([a({mode:"boolean"})],ot.prototype,"hidden",2),eo([g],ot.prototype,"slottedSubmenu",2),eo([g],ot.prototype,"submenu",2),dt(ot,lt),ot.define(Xg);const Jg=`${h.prefix}-menu-list`,Zg=p`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${C};border:1px solid ${K};border-radius:${S};box-shadow:${wi};padding:4px;row-gap:2px}`;function Qg(){return b`<template focusgroup=menu><slot ${G("items")}></slot></template>`}const ef=Qg(),tf={name:Jg,registry:h.registry,styles:Zg,template:ef};var Eo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Ri={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function ji(o,e){return o.contains(e)}function of(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function rf(o,e,t){const r="forward",i="backward",n="block",s="inline";if(nf(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?i:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:l,direction:u}=window.getComputedStyle(e),d=!l.startsWith("horizontal-"),c=u==="rtl",f=d?n:s,k=d?s:n,A=d?l.endsWith("-rl")!==c:c,j=d&&c,se={ArrowUp:{axis:k,dir:j?r:i},ArrowDown:{axis:k,dir:j?i:r},ArrowLeft:{axis:f,dir:A?r:i},ArrowRight:{axis:f,dir:A?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!se||t&&se.axis&&se.axis!==t?null:se.dir}function nf(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var sf=globalThis.__FOCUSGROUP_POLYFILL__,af=sf.o;function qi(){for(const o of af)o.takeRecords()}var Er=class{#t;#e;#s=Ri.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#i=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(of()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const r={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#x.bind(this),r)}disconnect(){this.#n(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(Eo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Ri.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Ri.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Eo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#r=o,this.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Eo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Eo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(rf(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#i&&(!o.relatedTarget||!ji(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#n(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#i&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#x(o){if(!o.relatedTarget||!ji(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&ji(this.#t,o.relatedTarget)||this.#a||!this.#r)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#r||t!==this.#r){for(const{element:r,segmentBoundary:i}of this.#e.items())r.tabIndex=i?0:-1;t&&(t.tabIndex=0,this.#r=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(Eo.AUTHOR_TABINDEX);this.#i||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#i=!0,qi())}#n(){this.#i&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#i=!1,this.#l=null,this.#e.flush?.(),qi())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),qi()}};class Nr{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),r=t.indexOf(e);return r===-1?null:t[r+1]??null}previous(e){const t=this.getItems(),r=t.indexOf(e);return r<=0?null:t[r-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var lf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,df=(o,e,t,r)=>{for(var i=r>1?void 0:r?cf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&lf(e,t,i),i};const Wi=class hn extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&pn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,r=this.menuChildren.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=r-1;n>=0;--n){const s=this.menuChildren[n],l=s.role;if(l===Z.menuitemradio&&(s.checked=!1),l==="separator")break}const i=this.menuChildren.length-1;for(let n=r+1;n<=i;++n){const s=this.menuChildren[n],l=s.role;if(l===Z.menuitemradio&&(s.checked=!1),l==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),O.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==Z.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);e.forEach(r=>{m.getNotifier(r).subscribe(this,"hidden")}),this.menuChildren=e.filter(r=>!r.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((r,i)=>{const n=hn.elementIndent(i);return Math.max(r,n)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return Vg(e)||pn(e)&&!!e.role&&e.role in hn.focusableElementRoles}};Wi.focusableElementRoles=Z,df([g],Wi.prototype,"items",2);let hf=Wi;class uf extends hf{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Nr(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}uf.define(tf);const pf=`${h.prefix}-menu`,gf=p`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${qe};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:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function ff(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${z("primaryAction")}></slot><slot name=trigger ${G({property:"slottedTriggers",filter:po()})}></slot><slot ${G({property:"slottedMenuList",filter:po()})}></slot></template>`}const bf=ff(),mf={name:pf,registry:h.registry,styles:gf,template:bf};var vf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,ft=(o,e,t,r)=>{for(var i=r>1?void 0:r?$f(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&vf(e,t,i),i};class rt extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof ot&&(e.target.getAttribute("role")===Z.menuitemcheckbox||e.target.getAttribute("role")===Z.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._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){O.enqueue(()=>{this._menuList.focus()})}focusTrigger(){O.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":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}}}ft([a({attribute:"open-on-hover",mode:"boolean"})],rt.prototype,"openOnHover",2),ft([a({attribute:"open-on-context",mode:"boolean"})],rt.prototype,"openOnContext",2),ft([a({attribute:"close-on-scroll",mode:"boolean"})],rt.prototype,"closeOnScroll",2),ft([a({attribute:"persist-on-item-click",mode:"boolean"})],rt.prototype,"persistOnItemClick",2),ft([a({mode:"boolean"})],rt.prototype,"split",2),ft([g],rt.prototype,"slottedMenuList",2),ft([g],rt.prototype,"slottedTriggers",2),ft([g],rt.prototype,"primaryAction",2),rt.define(mf);const yf=`${h.prefix}-message-bar`,xf=p`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${M};line-height:${q};width:100%;background:${bo};color:${X};border:1px solid ${qe};padding-inline:${re};border-radius:${S};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:${zs};border-color:${yc}}:host([intent='warning']){background-color:${Os};border-color:${As}}:host([intent='error']){background-color:${Ss};border-color:${Is}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${br};padding-inline:${re}}.content{grid-area:body;max-width:520px;padding-block:${br};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${X};margin-inline-end:${Ne}}: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:${Ne};gap:${Ne}}:host([layout='multiline']) .actions{margin-block-start:${br};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${ie}}::slotted(*){font-size:inherit}`;function kf(){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 wf=kf(),Sf={name:yf,registry:h.registry,styles:xf,template:wf};var Cf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,Ui=(o,e,t,r)=>{for(var i=r>1?void 0:r?If(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cf(e,t,i),i};class Fr extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ui([a],Fr.prototype,"shape",2),Ui([a],Fr.prototype,"layout",2),Ui([a],Fr.prototype,"intent",2),Fr.define(Sf);const Pf=p`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${ua} align-items:center;background-color:${C};border-radius:${S};box-sizing:border-box;color:${Be};column-gap:${oe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${we};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${rr};color:${Dt}}:host(:active){background-color:${bi};color:${Ht}}:host(:disabled){background-color:${C};color:${T};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(${Ni}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Kt}) .checkmark-16-filled,:host(:not(${Kt})) .checkmark-12-regular{display:none}:host(${Kt}) .checkmark-12-regular{background-color:${C};border-radius:${Ee};border:${I} solid ${je};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Kt}${Ni}) .checkmark-12-regular{background-color:${St};border-color:${at};fill:${wt}}:host(:disabled${Kt}) .checkmark-12-regular{border-color:${xe}}:host(:disabled${Kt}${Ni}) .checkmark-12-regular{background-color:${st}}:host(${du}){border:${ge} solid ${le}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${we}}}:host(${pu}){column-gap:${we};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${X};grid-area:description;${pa}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,zf=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path 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"/></svg>');function _f(o={}){return b`<slot name=checked-indicator>${fe(o.checkedIndicator)}</slot>${We(o)}<div class=content part=content><slot ${G({property:"freeformOutputs",filter:po("output")})}></slot></div><div class=description part=description><slot name=description ${G("descriptionSlot")}></slot></div>`}const Of=_f({checkedIndicator:zf}),Tf={name:Gp,registry:h.registry,styles:Pf,template:Of};var Af=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,ve=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Af(e,t,i),i};class ne extends x{constructor(){super(),this.active=!1,this.id=Xe("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(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){$(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,O.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(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}}ne.formAssociated=!0,ve([g],ne.prototype,"active",2),ve([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),ve([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),ve([g],ne.prototype,"descriptionSlot",2),ve([g],ne.prototype,"disabled",2),ve([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),ve([a({attribute:"form"})],ne.prototype,"formAttribute",2),ve([a({mode:"boolean"})],ne.prototype,"freeform",2),ve([a({attribute:"id"})],ne.prototype,"id",2),ve([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),ve([g],ne.prototype,"multiple",2),ve([a],ne.prototype,"name",2),ve([g],ne.prototype,"start",2),ve([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2),ne.define(Tf);const Ef={success:"success",warning:"warning",error:"error"},Nf=`${h.prefix}-progress-bar`,Ff=p`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${mo};border-radius:${S};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:${lr}}.indicator{background-color:${St};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( to right,${mo} 0%,${he} 50%,${mo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Cs}}:host([validation-state='warning']) .indicator{background-color:${Ts}}:host([validation-state='success']) .indicator{background-color:${_s}}@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%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function Mf(){return b`<div class=indicator part=indicator ${z("indicator")}></div>`}const Lf=Mf(),Df={name:Nf,registry:h.registry,styles:Ff,template:Lf};var Hf=Object.defineProperty,Vf=Object.getOwnPropertyDescriptor,No=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Hf(e,t,i),i};class to extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){Tt(this.elementInternals,e,t,Ef)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||O.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e,n=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${n}%`)})}}No([g],to.prototype,"indicator",2),No([a({attribute:"validation-state"})],to.prototype,"validationState",2),No([a({converter:te})],to.prototype,"value",2),No([a({converter:te})],to.prototype,"min",2),No([a({converter:te})],to.prototype,"max",2);var Rf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,ya=(o,e,t,r)=>{for(var i=r>1?void 0:r?jf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Rf(e,t,i),i};class Gi extends to{}ya([a],Gi.prototype,"thickness",2),ya([a],Gi.prototype,"shape",2),Gi.define(Df);const xa=Se,qf=`${h.prefix}-radio-group`,Wf=p`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ii}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${X}}::slotted(:hover){color:${Be}}::slotted(:active){color:${_}}::slotted(${me}){color:${T}}::slotted(${y}){color:${_}}:host([slot='input']){margin:${ie} ${Ne}}`;function Uf(){return b`<template focusgroup="radiogroup wrap" @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)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${G("slottedRadios")}></slot></template>`}const Gf=Uf(),Xf={name:qf,registry:h.registry,styles:Wf,template:Gf};function Kf(o,e="-radio"){return un(e)(o)}const Yf=`${h.prefix}-radio`;var Jf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,bt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Jf(e,t,i),i};class Ke extends x{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??xa.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??xa.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const i=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,l)=>{s.ariaPosInSet=`${l+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=l===i,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&i>=0)&&(this.checkedIndex=i);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){O.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(r=>Kf(r))})}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(r=>r.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(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,n)=>{const s=n===e;i.checked=s,s&&(r=n,t&&i.$emit("change"))}),this.checkedIndex=r,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()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(r=>{r.disabled&&r.checked&&(r.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(l=>{l.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((l,u)=>{u===0?l.elementInternals.setValidity(n,s,l):l.elementInternals.setValidity({})})}}}Ke.formAssociated=!0,bt([g],Ke.prototype,"checkedIndex",2),bt([a({attribute:"disabled",mode:"boolean"})],Ke.prototype,"disabled",2),bt([a({attribute:"value",mode:"fromView"})],Ke.prototype,"initialValue",2),bt([a],Ke.prototype,"name",2),bt([a],Ke.prototype,"orientation",2),bt([g],Ke.prototype,"radios",2),bt([a({mode:"boolean"})],Ke.prototype,"required",2),bt([g],Ke.prototype,"slottedRadios",2);class Qf extends Ke{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Nr(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}Qf.define(Xf);const eb=p`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${C};border:${I} solid ${je};border-radius:${ue};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ue};color:${wt};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:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}:host(:hover){border-color:${Ct}}:host(${y}){border-color:${at}}:host(${y}) .checked-indicator{background-color:${St}}:host(${y}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${It}}:host(${y}:active) .checked-indicator{background-color:${Rt}}:host(:focus-visible){outline:none}:host(${me}){background-color:${st};border-color:${xe}}:host(${y}${me}) .checked-indicator{background-color:${xe}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${me}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${me}):hover) .checked-indicator{background-color:Highlight}:host(${me}){border-color:GrayText;color:GrayText}:host(${me}${y}) .checked-indicator{background-color:GrayText}}`,tb=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function ob(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>${fe(o.checkedIndicator)}</slot></template>`}const rb=ob({checkedIndicator:tb}),ib={name:Yf,registry:h.registry,styles:eb,template:rb};class nb extends Fe{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)}}nb.define(ib);const sb=`${h.prefix}-rating-display`;var ab=Object.defineProperty,lb=Object.getOwnPropertyDescriptor,Fo=(o,e,t,r)=>{for(var i=r>1?void 0:r?lb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ab(e,t,i),i};const cb=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Mr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class ro extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
|
|
6
2
|
<svg
|
|
7
|
-
viewBox="${
|
|
3
|
+
viewBox="${r}"
|
|
8
4
|
xmlns="http://www.w3.org/2000/svg"
|
|
9
5
|
>${t}</svg>`,n=`
|
|
10
6
|
<svg
|
|
11
|
-
viewBox="${
|
|
7
|
+
viewBox="${r}"
|
|
12
8
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
9
|
fill="none"
|
|
14
10
|
stroke="black"
|
|
15
11
|
stroke-width="2"
|
|
16
|
-
>${t}</svg>`;this.display.style.setProperty(oo.maskImageFilled,`url(${
|
|
17
|
-
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${
|
|
18
|
-
`,
|
|
12
|
+
>${t}</svg>`;this.display.style.setProperty(oo.maskImageFilled,`url(${Mr(i)})`),this.display.style.setProperty(oo.maskImageOutlined,`url(${Mr(n)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||cb)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(oo[e]):this.display.style.setProperty(oo[e],`${t}`)})}}Fo([g],ro.prototype,"iconSlot",2),Fo([a({converter:te})],ro.prototype,"count",2),Fo([a({attribute:"icon-view-box"})],ro.prototype,"iconViewBox",2),Fo([a({converter:te})],ro.prototype,"max",2),Fo([a({converter:te})],ro.prototype,"value",2);const ka='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',db=`
|
|
13
|
+
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${ka}</svg>
|
|
14
|
+
`,hb=`
|
|
19
15
|
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
|
|
20
16
|
fill="none" stroke="black" stroke-width="2"
|
|
21
|
-
>${
|
|
22
|
-
`;function Rf(){return b`<div ${_("display")} class=display aria-hidden=true></div><slot name=icon ${_("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></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 jf=Rf(),qf=g`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${nc};--_icon-color-empty:${Ts};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Mi(Vf)});--_mask-image-outlined:url(${Mi(Hf)});--_mask-position-x:left;align-items:center;color:${O};font-family:${v};font-size:${D};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${A};line-height:${L}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${O};--_icon-color-empty:${go}}:host([color='brand']){--_icon-color-value:${oi};--_icon-color-empty:${fs}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${R});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${R}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${re};font-weight:${H}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${R}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ke}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${re}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${R}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ke}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,Wf={name:Ff,registry:u.registry,styles:qf,template:jf};var Uf=Object.defineProperty,Gf=Object.getOwnPropertyDescriptor,jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Uf(e,t,r),r};class Di extends io{constructor(){super(...arguments),this.compact=!1}}jr([a],Di.prototype,"color",2),jr([a],Di.prototype,"size",2),jr([a({mode:"boolean"})],Di.prototype,"compact",2),Di.define(Wf);const Xf=we,Kf={singleValue:"single-value"},Yf=`${u.prefix}-slider`,Jf=g`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${wt};--track-color:${qe};--slider-direction:90deg;--border-radius:${S};--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:${Ht}}:host(:disabled){--rail-color:${N};--track-color:${nt}}: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:${Ee}}: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 ${de};outline:1px solid ${ai}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );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( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${P} calc(var(--step-rate) - 1px),${P} var(--step-rate) )}.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:${he};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${P} inset;border:calc(var(--thumb-size) * 0.05) solid ${We};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.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 Qf(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${_("track")} part=track-container class=track style=${e=>e.position}></div><div ${_("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ge(o.thumb)}</slot></div></template>`}const Zf=Qf({thumb:'<div class="thumb"></div>'}),eb={name:Yf,registry:u.registry,styles:Jf,template:Zf};function va(o,e,t){return Math.min(Math.max(t,o),e)}const qr={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()}};function $a(o,e,t,i){let r=va(0,1,(o-e)/(t-e));return i===pt.rtl&&(r=1-r),r}var tb=Object.defineProperty,ob=Object.getOwnPropertyDescriptor,te=(o,e,t,i)=>{for(var r=i>1?void 0:i?ob(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&tb(e,t,r),r};class W extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=pt.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=Kf.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=>{if(this.isDisabled)return!0;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.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===we.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.isDisabled){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 n=this.orientation===we.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Xf.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=g`: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.isDisabled){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=va(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)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":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??we.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=da(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),tt(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==pt.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!==pt.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.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==pt.rtl&&this.orientation!==we.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==pt.rtl&&this.orientation!==we.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=$a(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===we.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=$a(e,this.orientation===we.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===we.vertical?this.trackHeight:this.trackWidth,this.orientation===we.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.isDisabled){B.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,te([a],W.prototype,"size",2),te([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),te([f],W.prototype,"direction",2),te([f],W.prototype,"isDragging",2),te([f],W.prototype,"position",2),te([f],W.prototype,"trackWidth",2),te([f],W.prototype,"trackMinWidth",2),te([f],W.prototype,"trackHeight",2),te([f],W.prototype,"trackLeft",2),te([f],W.prototype,"trackMinHeight",2),te([f],W.prototype,"valueTextFormatter",2),te([a({mode:"boolean"})],W.prototype,"disabled",2),te([a({converter:qr})],W.prototype,"min",2),te([a({converter:qr})],W.prototype,"max",2),te([a({converter:qr})],W.prototype,"step",2),te([a],W.prototype,"orientation",2),te([a],W.prototype,"mode",2),W.define(eb);const ib=`${u.prefix}-spinner`,rb=g`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Ie};--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:${Ie};--size:36px}:host([size='extra-large']){--indicatorSize:${Ie};--size:40px}:host([size='huge']){--indicatorSize:${$r};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${yi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ms};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:${bs};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:${ql}}.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)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,nb=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>`,sb={name:ib,registry:u.registry,styles:rb,template:nb};class ab extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var lb=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,ya=(o,e,t,i)=>{for(var r=i>1?void 0:i?cb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&lb(e,t,r),r};class Wr extends ab{}ya([a],Wr.prototype,"size",2),ya([a],Wr.prototype,"appearance",2),Wr.define(sb);const db=`${u.prefix}-switch`,hb=g`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${R};width:40px;height:20px;background-color:${ce};border:1px solid ${qe};border-radius:${he}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${Ct}}:host(:active){border-color:${St}}:host(:disabled),:host([readonly]){border:1px solid ${ye};background-color:none;pointer:default}:host(${y}){background:${wt};border-color:${wt}}:host(${y}:hover){background:${Vt};border-color:${Vt}}:host(${y}:active){background:${Ht};border-color:${Ht}}:host(${y}:disabled){background:${nt};border-color:${ye}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${K};transition-duration:${vi};transition-timing-function:${yi};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${kt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${Nl}}:host(${y}:active) .checked-indicator{background:${Al}}:host(:hover) .checked-indicator{background-color:${kl}}:host(:active) .checked-indicator{background-color:${wl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${N}}:host(${y}:disabled) .checked-indicator{background:${N}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${Y};outline:${pe} solid ${Y};outline-offset:1px;box-shadow:${pi},0 0 0 2px ${de}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}}`;function ub(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>${ge(o.switch)}</slot></template>`}const pb=ub({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),gb={name:db,registry:u.registry,styles:hb,template:pb};class fb extends Me{constructor(){super(),this.elementInternals.role="switch"}}fb.define(gb);function Ur(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const bb=`${u.prefix}-tab`,mb=g`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${L};font-family:${v};font-size:${A};color:${Ae};fill:currentcolor;grid-row:1;padding:${ne} ${et};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${O};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${L};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${st};border-radius:${he};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${It};border-radius:${he};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${It}}}:host([aria-selected='true'][disabled])::after{background-color:${N}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${N};color:${N};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ee};box-shadow:0 0 0 3px ${de};outline:1px solid ${ai}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function vb(o={}){return b`<template slot=tab role=tab>${Ue(o)} <span class=tab-content><slot></slot></span>${lt(o)}</template>`}const $b=vb({}),yb={name:bb,registry:u.registry,styles:mb,template:$b};var xb=Object.defineProperty,kb=Object.getOwnPropertyDescriptor,wb=(o,e,t,i)=>{for(var r=i>1?void 0:i?kb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&xb(e,t,r),r};class Gr extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=g`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),tt(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}wb([a({mode:"boolean"})],Gr.prototype,"disabled",2),ct(Gr,at),Gr.define(yb);const Cb={subtle:"subtle",transparent:"transparent"},Ao=we,Sb=`${u.prefix}-tablist`,Ib=g`${w("flex")} :host{--tabPaddingInline:${et};--tabPaddingBlock:${ne};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ae};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${$o};--tabPaddingInline:${ke}}:host([size='large']){--tabPaddingBlock:${xr};--tabPaddingInline:${et}}:host([orientation='vertical']){--tabPaddingBlock:${se};--tabIndicatorInsetBlock:${se};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${fi};--tabIndicatorInsetBlock:${$o}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${se};--tabIndicatorInsetBlock:${bi}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Ie};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Ie};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Ie};border-radius:${he};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:${N}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Ie};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:${Ie};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${A};line-height:${L}}:host([size='large']) ::slotted([slot='tab']){font-size:${ue};line-height:${xe}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}: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([disabled]){cursor:not-allowed;color:${N}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${N}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${N}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${N}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ri};color:${rs};fill:${Ol}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${fo};fill:${fo};color:${O}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${st};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${vd};transition-timing-function:${js};z-index:3;border-radius:${he};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Ie}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Ie};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${N}}}`,Pb=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${X("slottedTabs")}></slot></template>`,zb={name:Sb,registry:u.registry,styles:Ib,template:Pb};var Tb=Object.defineProperty,_b=Object.getOwnPropertyDescriptor,Eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?_b(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Tb(e,t,r),r};class ro extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Ao.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Ao.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Ao.horizontal,_t(this.elementInternals,e,t,Ao)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Ur(i))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const i=this.tabs.some(s=>!!s.querySelector("[slot='start']")),r=this.getRootNode();let n="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Ke("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!n&&!s.disabled&&(n=s.id);const c=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",c),s.setAttribute("aria-selected",c.toString()),s.toggleAttribute("data-hasIndent",i&&this.orientation===Ao.vertical),e){const h=s.getAttribute("aria-controls")??"",d=r.getElementById(h);h&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):n&&(this.activeid=n))}handleFocusIn(e){const t=e.target;!Ur(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const i=this.getRootNode(),r=e?i.getElementById(e):null,n=i.getElementById(t);if(!Ur(n)||!this.contains(n))return;if(r){r.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(r);c&&(c.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),ko(this,()=>{this.setTabs()},{shallow:!0})}}Eo([a({mode:"boolean"})],ro.prototype,"disabled",2),Eo([a],ro.prototype,"orientation",2),Eo([a],ro.prototype,"activeid",2),Eo([f],ro.prototype,"slottedTabs",2),Eo([f],ro.prototype,"tabs",2);var Ob=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Bb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ob(e,t,r),r};class Xr extends ro{constructor(){super(...arguments),this.appearance=Cb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Ei(()=>this.tabs?.filter(i=>(i.getAttribute("aria-selected")==="true"||!i.disabled)&&!i.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}xa([a],Xr.prototype,"appearance",2),xa([a],Xr.prototype,"size",2),Xr.define(zb);const Nb={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Li={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Ab=`${u.prefix}-textarea`,Eb=g`${w("inline-block")} :host{--font-size:${A};--line-height:${L};--padding-inline:${et};--padding-block:${$o};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${z};--control-padding-inline:${R};--color:${O};--background-color:${P};--border-color:${We};--border-block-end-color:${qe};--placeholder-color:${dr};--focus-indicator-color:${st};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${It};--border-block-end-color:${Ct}}:host(:active){--border-color:${bo};--border-block-end-color:${St}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${D};--line-height:${q};--min-block-size:40px;--padding-block:${jt};--padding-inline:${ke};--control-padding-inline:${R}}:host([size='large']){--font-size:${ue};--line-height:${xe};--min-block-size:64px;--padding-block:${se};--padding-inline:${ne};--control-padding-inline:${ke}}: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:${po};--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:${mr}}:host(${ou}){--border-color:${gr};--border-block-end-color:${gr}}:host(:disabled){--color:${N};--background-color:${ce};--border-color:${ye};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${N};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:${S};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 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${zt};transition-duration:${kr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vi};transition-delay:${Tt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${jt};padding-inline-end:${re}}: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:${kt};background-color:${as}}@media (forced-colors:active){: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 Fb(){return b`<template><label ${_("labelEl")} for=control part=label><slot name=label ${X("labelSlottedNodes")}></slot></label><div class=root part=root ${_("rootEl")}><textarea ${_("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 ${X("defaultSlottedNodes")}></slot></div></template>`}const Mb=Fb(),Db={name:Ab,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:Eb,template:Mb},Lb=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var Vb=Object.defineProperty,Hb=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Vb(e,t,r),r};class U extends k{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=Li.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){B.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Lb),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(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&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){_t(this.elementInternals,e,t,Li,"resize-"),$(this.elementInternals,"resize",Ys(Li,t)&&t!==Li.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(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),tt(this)})}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.elementInternals&&(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()}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("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(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.rootEl?.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")}}U.formAssociated=!0,oe([f],U.prototype,"controlEl",2),oe([f],U.prototype,"defaultSlottedNodes",2),oe([f],U.prototype,"labelSlottedNodes",2),oe([a],U.prototype,"autocomplete",2),oe([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),oe([a({attribute:"dirname"})],U.prototype,"dirName",2),oe([a({mode:"boolean"})],U.prototype,"disabled",2),oe([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),oe([a({attribute:"form"})],U.prototype,"initialForm",2),oe([a({attribute:"maxlength",converter:ie})],U.prototype,"maxLength",2),oe([a({attribute:"minlength",converter:ie})],U.prototype,"minLength",2),oe([a],U.prototype,"name",2),oe([a],U.prototype,"placeholder",2),oe([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),oe([a({mode:"boolean"})],U.prototype,"required",2),oe([a({mode:"fromView"})],U.prototype,"resize",2),oe([a({mode:"boolean"})],U.prototype,"spellcheck",2);var Rb=Object.defineProperty,jb=Object.getOwnPropertyDescriptor,Kr=(o,e,t,i)=>{for(var r=i>1?void 0:i?jb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Rb(e,t,r),r};class Vi extends U{constructor(){super(...arguments),this.appearance=Nb.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")}}Kr([a({mode:"fromView"})],Vi.prototype,"appearance",2),Kr([a({mode:"boolean"})],Vi.prototype,"block",2),Kr([a],Vi.prototype,"size",2),Vi.define(Db);const qb={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Wb=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Ub=`${u.prefix}-text-input`,Gb=g`${w("block")} :host{font-family:${v};font-size:${A};font-weight:${E};line-height:${L};max-width:400px}.label{display:flex;color:${O};padding-bottom:${jt};flex-shrink:0;padding-inline-end:${re}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${P};border:${z} solid ${We};border-bottom-color:${qe};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${R};padding:0 ${et};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,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${st};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${kr};transition-delay:${zt}}.control{width:100%;height:100%;box-sizing:border-box;color:${O};border-radius:${S};background:${ce};font-family:${v};font-weight:${E};font-size:${A};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${dr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${K};font-size:${Rt}}:host ::slotted([slot='start']){padding-right:${R}}:host ::slotted([slot='end']){padding-left:${R};gap:${re}}:host(:hover) .root{border-color:${It};border-bottom-color:${Ct}}:host(:active) .root{border-color:${bo}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vi};transition-delay:${Tt}}:host(:focus-within:active) .root:after{border-bottom-color:${vs}}:host([appearance='outline']:focus-within) .root{border:${z} solid ${We}}:host(:focus-within) .control{color:${O}}:host([disabled]) .root{background:${ce};border:${z} solid ${ye}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${N}}::selection{color:${kt};background-color:${as}}:host([control-size='small']) .control{font-size:${D};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${R};padding:0 ${ke}}: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:${E};line-height:${xe}}:host([control-size='large']) .root{height:40px;gap:${Fe};padding:0 ${ne}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ci}}:host([appearance='underline']) .root{background:${ce};border:0;border-radius:0;border-bottom:${z} solid ${qe}}:host([appearance='underline']:hover) .root{border-bottom-color:${Ct}}:host([appearance='underline']:active) .root{border-bottom-color:${St}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${St}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${ye}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${z} solid ${Y};box-shadow:${mr}}:host([appearance='filled-lighter']) .root{background:${P}}:host([appearance='filled-darker']) .root{background:${po}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${pr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${pr};background:${po}}`;function Xb(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${_("controlLabel")}><slot ${X("defaultSlottedNodes")}></slot></label><div class=root part=root>${Ue(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} 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.value} ${_("control")}> ${lt(o)}</div></template>`}const Kb=Xb(),Yb={name:Ub,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:Gb,template:Kb};var Jb=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,V=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Jb(e,t,r),r};class F extends k{constructor(){super(...arguments),this.type=qb.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){B.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(i=>i.nodeType===Node.ELEMENT_NODE||i.nodeType===Node.TEXT_NODE&&!!i.textContent?.trim()))})}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){B.enqueue(()=>{this.$fastController.isConnected&&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.elementInternals&&this.control&&(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}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(),tt(this)}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=>Wb.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.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}F.formAssociated=!0,V([a],F.prototype,"autocomplete",2),V([a({attribute:"current-value"})],F.prototype,"currentValue",2),V([f],F.prototype,"defaultSlottedNodes",2),V([a],F.prototype,"dirname",2),V([a({mode:"boolean"})],F.prototype,"disabled",2),V([a({attribute:"form"})],F.prototype,"formAttribute",2),V([a({attribute:"value",mode:"fromView"})],F.prototype,"initialValue",2),V([a],F.prototype,"list",2),V([a({converter:ie})],F.prototype,"maxlength",2),V([a({converter:ie})],F.prototype,"minlength",2),V([a({mode:"boolean"})],F.prototype,"multiple",2),V([a],F.prototype,"name",2),V([a],F.prototype,"pattern",2),V([a],F.prototype,"placeholder",2),V([a({attribute:"readonly",mode:"boolean"})],F.prototype,"readOnly",2),V([a({mode:"boolean"})],F.prototype,"required",2),V([a({converter:ie})],F.prototype,"size",2),V([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],F.prototype,"spellcheck",2),V([a],F.prototype,"type",2),V([f],F.prototype,"control",2),V([f],F.prototype,"controlLabel",2);var Zb=Object.defineProperty,em=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?em(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Zb(e,t,r),r};class Hi extends F{}ka([a],Hi.prototype,"appearance",2),ka([a({attribute:"control-size"})],Hi.prototype,"controlSize",2),ct(Hi,at),Hi.define(Yb);const tm=`${u.prefix}-text`,om=g`${w("inline")} :host{font-family:${v};font-size:${A};line-height:${L};font-weight:${E};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:${vo};line-height:${hi}}:host([size='200']){font-size:${D};line-height:${q}}:host([size='400']){font-size:${ue};line-height:${xe}}:host([size='500']){font-size:${Rt};line-height:${ui}}:host([size='600']){font-size:${ci};line-height:${Fs}}:host([size='700']){font-size:${Bs};line-height:${Ms}}:host([size='800']){font-size:${Ns};line-height:${Ds}}:host([size='900']){font-size:${As};line-height:${Ls}}:host([size='1000']){font-size:${Es};line-height:${Vs}}:host([font='monospace']){font-family:${cd}}:host([font='numeric']){font-family:${dd}}:host([weight='medium']){font-weight:${hd}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${di}}: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}`,im=b`<slot></slot>`,rm={name:tm,registry:u.registry,styles:om,template:im};var nm=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,Je=(o,e,t,i)=>{for(var r=i>1?void 0:i?sm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&nm(e,t,r),r};class Le extends k{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}}Je([a({mode:"boolean"})],Le.prototype,"nowrap",2),Je([a({mode:"boolean"})],Le.prototype,"truncate",2),Je([a({mode:"boolean"})],Le.prototype,"italic",2),Je([a({mode:"boolean"})],Le.prototype,"underline",2),Je([a({mode:"boolean"})],Le.prototype,"strikethrough",2),Je([a({mode:"boolean"})],Le.prototype,"block",2),Je([a],Le.prototype,"size",2),Je([a],Le.prototype,"font",2),Je([a],Le.prototype,"weight",2),Je([a],Le.prototype,"align",2),Le.define(rm);const am=`${u.prefix}-toggle-button`,lm=g`${wi} :host(${M}){border-color:${We};background-color:${ss};color:${O};border-width:${z}}:host(${M}:hover){border-color:${It};background-color:${ii}}:host(${M}:active){border-color:${bo};background-color:${hr}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${Rl};color:${Ze}}:host(${M}[appearance='primary']:hover){background-color:${us}}:host(${M}[appearance='primary']:active){background-color:${ps}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${cs};color:${Zo}}:host(${M}[appearance='subtle']:hover){background-color:${ri};color:${Dt}}:host(${M}[appearance='subtle']:active){background-color:${fo};color:${Lt}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${ds}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${ni}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${si}}:host(${M}[appearance='transparent']){border-color:transparent;color:${xl}}:host(${M}[appearance='transparent']:hover){color:${ei}}:host(${M}[appearance='transparent']:active){color:${ti}}@media (forced-colors:active){:host(${M}),:host( ${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${M}[appearance='primary']){color:SelectedItemText}}`,cm=Tr(),dm={name:am,registry:u.registry,styles:lm,template:cm};var hm=Object.defineProperty,um=Object.getOwnPropertyDescriptor,wa=(o,e,t,i)=>{for(var r=i>1?void 0:i?um(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&hm(e,t,r),r};class Yr extends ot{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}wa([a({mode:"boolean"})],Yr.prototype,"pressed",2),wa([a({mode:"boolean"})],Yr.prototype,"mixed",2),Yr.define(dm);const _e={"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"},pm=`${u.prefix}-tooltip`,gm=g`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${jt};--inline-offset:${re};background:${P};border-radius:${S};border:1px solid ${Y};box-sizing:border-box;color:${O};display:inline-flex;filter:drop-shadow(0 0 2px ${Ul}) drop-shadow(0 4px 8px ${Gl});font-family:${v};font-size:${D};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${et} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks: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:${_e["above-start"]}}:host([positioning='above']){--position-area:${_e.above}}:host([positioning='above-end']){--position-area:${_e["above-end"]}}:host([positioning='below-start']){--position-area:${_e["below-start"]}}:host([positioning='below']){--position-area:${_e.below}}:host([positioning='below-end']){--position-area:${_e["below-end"]}}:host([positioning='before-top']){--position-area:${_e["before-top"]}}:host([positioning='before']){--position-area:${_e.before}}:host([positioning='before-bottom']){--position-area:${_e["before-bottom"]}}:host([positioning='after-top']){--position-area:${_e["after-top"]}}:host([positioning='after']){--position-area:${_e.after}}:host([positioning='after-bottom']){--position-area:${_e["after-bottom"]}}`,fm=b`<template popover aria-hidden=true><slot></slot></template>`,bm={name:pm,registry:u.registry,styles:gm,template:fm};var mm=Object.defineProperty,vm=Object.getOwnPropertyDescriptor,Ri=(o,e,t,i)=>{for(var r=i>1?void 0:i?vm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&mm(e,t,r),r};class Fo extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ke("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.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!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),Ci){Qd||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}B.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(i=>i!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}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)}async setFallbackStyles(){if(Ci){this.anchorPositioningReady=!0;return}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);"},n=r[t]??r.above,s={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=s[i]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
17
|
+
>${ka}</svg>
|
|
18
|
+
`;function ub(){return b`<div ${z("display")} class=display aria-hidden=true></div><slot name=icon ${z("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></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 pb=ub(),gb=p`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${_c};--_icon-color-empty:${Es};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Mr(db)});--_mask-image-outlined:url(${Mr(hb)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${M};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${L}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${mo}}:host([color='brand']){--_icon-color-value:${or};--_icon-color-empty:${ys}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${V});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${V}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${oe};font-weight:${H}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${V}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${we}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${oe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${V}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${we}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,fb={name:sb,registry:h.registry,styles:gb,template:pb};var bb=Object.defineProperty,mb=Object.getOwnPropertyDescriptor,Xi=(o,e,t,r)=>{for(var i=r>1?void 0:r?mb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bb(e,t,i),i};class Lr extends ro{constructor(){super(...arguments),this.compact=!1}}Xi([a],Lr.prototype,"color",2),Xi([a],Lr.prototype,"size",2),Xi([a({mode:"boolean"})],Lr.prototype,"compact",2),Lr.define(fb);const vb=Se,$b={singleValue:"single-value"},yb=`${h.prefix}-slider`,xb=p`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${St};--track-color:${je};--slider-direction:90deg;--border-radius:${S};--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:${Rt}}:host(:disabled){--rail-color:${T};--track-color:${st}}: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:${Ee}}: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 ${le};outline:1px solid ${ar}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );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( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.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:${ue};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${qe};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.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 kb(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${z("track")} part=track-container class=track style=${e=>e.position}></div><div ${z("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${fe(o.thumb)}</slot></div></template>`}const wb=kb({thumb:'<div class="thumb"></div>'}),Sb={name:yb,registry:h.registry,styles:xb,template:wb};function wa(o,e,t){return Math.min(Math.max(t,o),e)}const Ki={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()}};function Sa(o,e,t,r){let i=wa(0,1,(o-e)/(t-e));return r===gt.rtl&&(i=1-i),i}var Cb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Q=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ib(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cb(e,t,i),i};class W extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=gt.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=$b.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=>{if(this.isDisabled)return!0;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.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===Se.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===Se.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??vb.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`: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,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}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),r=wa(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;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)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":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??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=fa(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),et(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==gt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==gt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=Sa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===Se.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=Sa(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.orientation===Se.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){O.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,Q([a],W.prototype,"size",2),Q([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),Q([g],W.prototype,"direction",2),Q([g],W.prototype,"isDragging",2),Q([g],W.prototype,"position",2),Q([g],W.prototype,"trackWidth",2),Q([g],W.prototype,"trackMinWidth",2),Q([g],W.prototype,"trackHeight",2),Q([g],W.prototype,"trackLeft",2),Q([g],W.prototype,"trackMinHeight",2),Q([g],W.prototype,"valueTextFormatter",2),Q([a({mode:"boolean"})],W.prototype,"disabled",2),Q([a({converter:Ki})],W.prototype,"min",2),Q([a({converter:Ki})],W.prototype,"max",2),Q([a({converter:Ki})],W.prototype,"step",2),Q([a],W.prototype,"orientation",2),Q([a],W.prototype,"mode",2),W.define(Sb);const Pb=`${h.prefix}-spinner`,zb=p`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Ie};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ge};--size:20px}:host([size='extra-small']){--indicatorSize:${ge};--size:24px}:host([size='small']){--indicatorSize:${ge};--size:28px}:host([size='large']){--indicatorSize:${Ie};--size:36px}:host([size='extra-large']){--indicatorSize:${Ie};--size:40px}:host([size='huge']){--indicatorSize:${Si};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${yr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ks};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:${xs};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:${gc}}.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)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,_b=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>`,Ob={name:Pb,registry:h.registry,styles:zb,template:_b};class Tb extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Ab=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ab(e,t,i),i};class Yi extends Tb{}Ca([a],Yi.prototype,"size",2),Ca([a],Yi.prototype,"appearance",2),Yi.define(Ob);const Eb=`${h.prefix}-switch`,Nb=p`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${V};width:40px;height:20px;background-color:${he};border:1px solid ${je};border-radius:${ue}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${Ct}}:host(:active){border-color:${It}}:host(:disabled),:host([readonly]){border:1px solid ${xe};background-color:none;pointer:default}:host(${y}){background:${St};border-color:${St}}:host(${y}:hover){background:${Vt};border-color:${Vt}}:host(${y}:active){background:${Rt};border-color:${Rt}}:host(${y}:disabled){background:${st};border-color:${xe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${vr};transition-timing-function:${yr};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${wt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${rc}}:host(${y}:active) .checked-indicator{background:${ic}}:host(:hover) .checked-indicator{background-color:${Ul}}:host(:active) .checked-indicator{background-color:${Gl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${y}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${ge} solid ${K};outline-offset:1px;box-shadow:${pr},0 0 0 2px ${le}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}}`;function Fb(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>${fe(o.switch)}</slot></template>`}const Mb=Fb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Lb={name:Eb,registry:h.registry,styles:Nb,template:Mb};class Db extends Fe{constructor(){super(),this.elementInternals.role="switch"}}Db.define(Lb);function Ji(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Hb=`${h.prefix}-tab`,Vb=p`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${L};font-family:${v};font-size:${B};color:${Be};fill:currentcolor;grid-row:1;padding:${re} ${Qe};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${L};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${at};border-radius:${ue};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Pt};border-radius:${ue};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${Pt}}}:host([aria-selected='true'][disabled])::after{background-color:${T}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${T};color:${T};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ee};box-shadow:0 0 0 3px ${le};outline:1px solid ${ar}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Rb(o={}){return b`<template slot=tab role=tab>${We(o)} <span class=tab-content><slot></slot></span>${ct(o)}</template>`}const jb=Rb({}),qb={name:Hb,registry:h.registry,styles:Vb,template:jb};var Wb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Gb=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ub(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Wb(e,t,i),i};class Zi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),et(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Gb([a({mode:"boolean"})],Zi.prototype,"disabled",2),dt(Zi,lt),Zi.define(qb);const Xb={subtle:"subtle",transparent:"transparent"},Mo=Se,Kb=`${h.prefix}-tablist`,Yb=p`${w("flex")} :host{--tabPaddingInline:${Qe};--tabPaddingBlock:${re};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Be};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ko};--tabPaddingInline:${we}}:host([size='large']){--tabPaddingBlock:${Ii};--tabPaddingInline:${Qe}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${fr};--tabIndicatorInsetBlock:${ko}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${br}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Ie};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Ie};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Ie};border-radius:${ue};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:${T}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Ie};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:${Ie};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${L}}:host([size='large']) ::slotted([slot='tab']){font-size:${pe};line-height:${ke}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}: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([disabled]){cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${T}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${T}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ir};color:${cs};fill:${tc}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${vo};fill:${vo};color:${_}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${at};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${Rd};transition-timing-function:${Xs};z-index:3;border-radius:${ue};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Ie}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Ie};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${T}}}`,Jb=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${G("slottedTabs")}></slot></template>`,Zb={name:Kb,registry:h.registry,styles:Yb,template:Jb};var Qb=Object.defineProperty,em=Object.getOwnPropertyDescriptor,Lo=(o,e,t,r)=>{for(var i=r>1?void 0:r?em(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Qb(e,t,i),i};class io extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Mo.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Mo.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Mo.horizontal,Tt(this.elementInternals,e,t,Mo)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Ji(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(s=>!!s.querySelector("[slot='start']")),i=this.getRootNode();let n="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Xe("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!n&&!s.disabled&&(n=s.id);const l=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",l),s.setAttribute("aria-selected",l.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===Mo.vertical),e){const u=s.getAttribute("aria-controls")??"",d=i.getElementById(u);u&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):n&&(this.activeid=n))}handleFocusIn(e){const t=e.target;!Ji(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,n=r.getElementById(t);if(!Ji(n)||!this.contains(n))return;if(i){i.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(i);l&&(l.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),Co(this,()=>{this.setTabs()},{shallow:!0})}}Lo([a({mode:"boolean"})],io.prototype,"disabled",2),Lo([a],io.prototype,"orientation",2),Lo([a],io.prototype,"activeid",2),Lo([g],io.prototype,"slottedTabs",2),Lo([g],io.prototype,"tabs",2);var tm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&tm(e,t,i),i};class Qi extends io{constructor(){super(...arguments),this.appearance=Xb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Nr(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Ia([a],Qi.prototype,"appearance",2),Ia([a],Qi.prototype,"size",2),Qi.define(Zb);const rm={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Dr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},im=`${h.prefix}-textarea`,nm=p`${w("inline-block")} :host{--font-size:${B};--line-height:${L};--padding-inline:${Qe};--padding-block:${ko};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${V};--color:${_};--background-color:${C};--border-color:${qe};--border-block-end-color:${je};--placeholder-color:${fi};--focus-indicator-color:${at};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Pt};--border-block-end-color:${Ct}}:host(:active){--border-color:${$o};--border-block-end-color:${It}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${M};--line-height:${q};--min-block-size:40px;--padding-block:${qt};--padding-inline:${we};--control-padding-inline:${V}}:host([size='large']){--font-size:${pe};--line-height:${ke};--min-block-size:64px;--padding-block:${ie};--padding-inline:${re};--control-padding-inline:${we}}: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:${bo};--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:${ki}}:host(${Iu}){--border-color:${$i};--border-block-end-color:${$i}}:host(:disabled){--color:${T};--background-color:${he};--border-color:${xe};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${T};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:${S};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 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${_t};transition-duration:${Pi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${oe}}: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:${wt};background-color:${us}}@media (forced-colors:active){: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 sm(){return b`<template><label ${z("labelEl")} for=control part=label><slot name=label ${G("labelSlottedNodes")}></slot></label><div class=root part=root ${z("rootEl")}><textarea ${z("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 ${G("defaultSlottedNodes")}></slot></div></template>`}const am=sm(),lm={name:im,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:nm,template:am},cm=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var dm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?hm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&dm(e,t,i),i};class U extends x{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=Dr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){O.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(cm),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(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&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){Tt(this.elementInternals,e,t,Dr,"resize-"),$(this.elementInternals,"resize",ta(Dr,t)&&t!==Dr.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(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),et(this)})}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,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}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("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(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.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(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")}}U.formAssociated=!0,ee([g],U.prototype,"controlEl",2),ee([g],U.prototype,"defaultSlottedNodes",2),ee([g],U.prototype,"labelSlottedNodes",2),ee([a],U.prototype,"autocomplete",2),ee([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),ee([a({attribute:"dirname"})],U.prototype,"dirName",2),ee([a({mode:"boolean"})],U.prototype,"disabled",2),ee([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),ee([a({attribute:"form"})],U.prototype,"initialForm",2),ee([a({attribute:"maxlength",converter:te})],U.prototype,"maxLength",2),ee([a({attribute:"minlength",converter:te})],U.prototype,"minLength",2),ee([a],U.prototype,"name",2),ee([a],U.prototype,"placeholder",2),ee([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),ee([a({mode:"boolean"})],U.prototype,"required",2),ee([a({mode:"fromView"})],U.prototype,"resize",2),ee([a({mode:"boolean"})],U.prototype,"spellcheck",2);var um=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var i=r>1?void 0:r?pm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&um(e,t,i),i};class Hr extends U{constructor(){super(...arguments),this.appearance=rm.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(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}en([a({mode:"fromView"})],Hr.prototype,"appearance",2),en([a({mode:"boolean"})],Hr.prototype,"block",2),en([a],Hr.prototype,"size",2),Hr.define(lm);const gm={email:"email",password:"password",tel:"tel",text:"text",url:"url"},fm=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],bm=`${h.prefix}-text-input`,mm=p`${w("block")} :host{font-family:${v};font-size:${B};font-weight:${E};line-height:${L};max-width:400px}.label{display:flex;color:${_};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${oe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${I} solid ${qe};border-bottom-color:${je};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${V};padding:0 ${Qe};position:relative;width:100%}:has(.control:user-invalid){border-color:${$i}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${at};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Pi};transition-delay:${_t}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${S};background:${he};font-family:${v};font-weight:${E};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${fi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${V}}:host ::slotted([slot='end']){padding-left:${V};gap:${oe}}:host(:hover) .root{border-color:${Pt};border-bottom-color:${Ct}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host(:focus-within:active) .root:after{border-bottom-color:${ws}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${qe}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${he};border:${I} solid ${xe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${wt};background-color:${us}}:host([control-size='small']) .control{font-size:${M};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${V};padding:0 ${we}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${pe}}:host([control-size='large']) .control{font-size:${pe};font-weight:${E};line-height:${ke}}:host([control-size='large']) .root{height:40px;gap:${Ne};padding:0 ${re}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${cr}}:host([appearance='underline']) .root{background:${he};border:0;border-radius:0;border-bottom:${I} solid ${je}}:host([appearance='underline']:hover) .root{border-bottom-color:${Ct}}:host([appearance='underline']:active) .root{border-bottom-color:${It}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${It}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${xe}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${K};box-shadow:${ki}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${bo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${vi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${vi};background:${bo}}`;function vm(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${z("controlLabel")}><slot ${G("defaultSlottedNodes")}></slot></label><div class=root part=root>${We(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} 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.value} ${z("control")}> ${ct(o)}</div></template>`}const $m=vm(),ym={name:bm,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:mm,template:$m};var xm=Object.defineProperty,km=Object.getOwnPropertyDescriptor,D=(o,e,t,r)=>{for(var i=r>1?void 0:r?km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&xm(e,t,i),i};class N extends x{constructor(){super(...arguments),this.type=gm.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){O.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}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){O.enqueue(()=>{this.$fastController.isConnected&&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.elementInternals&&this.control&&(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}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(),et(this)}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(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>fm.includes(i.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,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}N.formAssociated=!0,D([a],N.prototype,"autocomplete",2),D([a({attribute:"current-value"})],N.prototype,"currentValue",2),D([g],N.prototype,"defaultSlottedNodes",2),D([a],N.prototype,"dirname",2),D([a({mode:"boolean"})],N.prototype,"disabled",2),D([a({attribute:"form"})],N.prototype,"formAttribute",2),D([a({attribute:"value",mode:"fromView"})],N.prototype,"initialValue",2),D([a],N.prototype,"list",2),D([a({converter:te})],N.prototype,"maxlength",2),D([a({converter:te})],N.prototype,"minlength",2),D([a({mode:"boolean"})],N.prototype,"multiple",2),D([a],N.prototype,"name",2),D([a],N.prototype,"pattern",2),D([a],N.prototype,"placeholder",2),D([a({attribute:"readonly",mode:"boolean"})],N.prototype,"readOnly",2),D([a({mode:"boolean"})],N.prototype,"required",2),D([a({converter:te})],N.prototype,"size",2),D([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],N.prototype,"spellcheck",2),D([a],N.prototype,"type",2),D([g],N.prototype,"control",2),D([g],N.prototype,"controlLabel",2);var wm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&wm(e,t,i),i};class Vr extends N{}Pa([a],Vr.prototype,"appearance",2),Pa([a({attribute:"control-size"})],Vr.prototype,"controlSize",2),dt(Vr,lt),Vr.define(ym);const Cm=`${h.prefix}-text`,Im=p`${w("inline")} :host{font-family:${v};font-size:${B};line-height:${L};font-weight:${E};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:${xo};line-height:${hr}}:host([size='200']){font-size:${M};line-height:${q}}:host([size='400']){font-size:${pe};line-height:${ke}}:host([size='500']){font-size:${jt};line-height:${ur}}:host([size='600']){font-size:${cr};line-height:${Vs}}:host([size='700']){font-size:${Ms};line-height:${Rs}}:host([size='800']){font-size:${Ls};line-height:${js}}:host([size='900']){font-size:${Ds};line-height:${qs}}:host([size='1000']){font-size:${Hs};line-height:${Ws}}:host([font='monospace']){font-family:${Bd}}:host([font='numeric']){font-family:${Ed}}:host([weight='medium']){font-weight:${Nd}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${dr}}: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}`,Pm=b`<slot></slot>`,zm={name:Cm,registry:h.registry,styles:Im,template:Pm};var _m=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Ye=(o,e,t,r)=>{for(var i=r>1?void 0:r?Om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&_m(e,t,i),i};class Le extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Ye([a({mode:"boolean"})],Le.prototype,"nowrap",2),Ye([a({mode:"boolean"})],Le.prototype,"truncate",2),Ye([a({mode:"boolean"})],Le.prototype,"italic",2),Ye([a({mode:"boolean"})],Le.prototype,"underline",2),Ye([a({mode:"boolean"})],Le.prototype,"strikethrough",2),Ye([a({mode:"boolean"})],Le.prototype,"block",2),Ye([a],Le.prototype,"size",2),Ye([a],Le.prototype,"font",2),Ye([a],Le.prototype,"weight",2),Ye([a],Le.prototype,"align",2),Le.define(zm);const Tm=`${h.prefix}-toggle-button`,Am=p`${wr} :host(${F}){border-color:${qe};background-color:${hs};color:${_};border-width:${I}}:host(${F}:hover){border-color:${Pt};background-color:${rr}}:host(${F}:active){border-color:${$o};background-color:${bi}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${uc};color:${Ze}}:host(${F}[appearance='primary']:hover){background-color:${ms}}:host(${F}[appearance='primary']:active){background-color:${vs}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${gs};color:${Qo}}:host(${F}[appearance='subtle']:hover){background-color:${ir};color:${Dt}}:host(${F}[appearance='subtle']:active){background-color:${vo};color:${Ht}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${fs}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${nr}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${sr}}:host(${F}[appearance='transparent']){border-color:transparent;color:${Wl}}:host(${F}[appearance='transparent']:hover){color:${er}}:host(${F}[appearance='transparent']:active){color:${tr}}@media (forced-colors:active){:host(${F}),:host( ${F}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${F}[appearance='primary']){color:SelectedItemText}}`,Bm=Ei(),Em={name:Tm,registry:h.registry,styles:Am,template:Bm};var Nm=Object.defineProperty,Fm=Object.getOwnPropertyDescriptor,za=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nm(e,t,i),i};class tn extends tt{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}za([a({mode:"boolean"})],tn.prototype,"pressed",2),za([a({mode:"boolean"})],tn.prototype,"mixed",2),tn.define(Em);const Oe={"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"},Mm=`${h.prefix}-tooltip`,Lm=p`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${oe};background:${C};border-radius:${S};border:1px solid ${K};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${bc}) drop-shadow(0 4px 8px ${mc});font-family:${v};font-size:${M};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Qe} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks: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:${Oe["above-start"]}}:host([positioning='above']){--position-area:${Oe.above}}:host([positioning='above-end']){--position-area:${Oe["above-end"]}}:host([positioning='below-start']){--position-area:${Oe["below-start"]}}:host([positioning='below']){--position-area:${Oe.below}}:host([positioning='below-end']){--position-area:${Oe["below-end"]}}:host([positioning='before-top']){--position-area:${Oe["before-top"]}}:host([positioning='before']){--position-area:${Oe.before}}:host([positioning='before-bottom']){--position-area:${Oe["before-bottom"]}}:host([positioning='after-top']){--position-area:${Oe["after-top"]}}:host([positioning='after']){--position-area:${Oe.after}}:host([positioning='after-bottom']){--position-area:${Oe["after-bottom"]}}`,Dm=b`<template popover aria-hidden=true><slot></slot></template>`,Hm={name:Mm,registry:h.registry,styles:Lm,template:Dm};var Vm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,Rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Vm(e,t,i),i};class Do extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Xe("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.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!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),Sr){kh||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}O.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}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)}async setFallbackStyles(){if(Sr){this.anchorPositioningReady=!0;return}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,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=i[t]??i.above,s={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%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
23
19
|
#${this.anchor} {
|
|
24
20
|
anchor-name: ${e};
|
|
25
21
|
}
|
|
@@ -28,20 +24,20 @@ Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Ga(C.join(`
|
|
|
28
24
|
position-anchor: ${e};
|
|
29
25
|
position: fixed;
|
|
30
26
|
${n}
|
|
31
|
-
${
|
|
27
|
+
${l}
|
|
32
28
|
}
|
|
33
|
-
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Ri([a],Fo.prototype,"id",2),Ri([a({converter:ie})],Fo.prototype,"delay",2),Ri([a],Fo.prototype,"positioning",2),Ri([a],Fo.prototype,"anchor",2),Fo.define(bm);const $m=`${u.prefix}-tree`,ym=g`${w("block")} :host{outline:none}`,xm=b`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${_("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,km={name:$m,registry:u.registry,styles:ym,template:xm},Ca={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Sa={small:"small",medium:"medium"};function Oe(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const wm=`${u.prefix}-tree-item`;var Cm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Sm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Cm(e,t,r),r};class ji extends k{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Oe(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Oe(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Oe(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Oe(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Oe(e))}get descendantTreeItems(){const e=[],t=i=>{if(i)for(const r of i)e.push(r),t(r.childTreeItems)};return t(this.childTreeItems),e}}Jr([f],ji.prototype,"currentSelected",2),Jr([f],ji.prototype,"defaultSlot",2),Jr([f],ji.prototype,"childTreeItems",2);var Im=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,Ia=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Im(e,t,r),r};class Qr extends ji{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Ei(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Ai(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Ia([a],Qr.prototype,"size",2),Ia([a],Qr.prototype,"appearance",2),Qr.define(km);const zm=g`${w("block")} :host{outline:none;font-size:${A};line-height:${L}}:host(:focus-visible) .positioning-region{box-shadow:${yr} ${yr} ${yr} ${fi} ${de} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${md};padding-inline-start:calc(var(--indent) * ${gi});padding-inline-end:${se};border-radius:${S};background-color:${ls};color:${Ae};gap:${re}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${de}}}.content{display:flex;align-items:center;gap:${re}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${gi};height:${Pt};transition:transform ${mi} ${qs};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:${ri};color:${Dt}}.positioning-region:active{background-color:${fo};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:${R}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${cs};color:${Zo}}:host([selected]) .content,:host([selected]) .chevron{color:${Cl}}:host([size='small']) .positioning-region{height:${Pt};padding-inline-start:calc(var(--indent) * ${ne})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Ll}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Vl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Hl};color:${Zo}}:host([appearance='transparent']) .positioning-region{background-color:${ce}}:host([appearance='transparent']) .positioning-region:hover{background-color:${ni}}:host([appearance='transparent']) .positioning-region:active{background-color:${si}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${ds};color:${Zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Tm=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>`,_m=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Tm}</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 ${_("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Om={name:wm,registry:u.registry,styles:zm,template:_m};var Bm=Object.defineProperty,Nm=Object.getOwnPropertyDescriptor,no=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Bm(e,t,r),r};class At extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Oe(this.parentElement)&&(this.slot||(this.slot="item")),tt(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const i=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,r=>Oe(r)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;i.nextNode();){const r=i.currentNode;t?r.removeAttribute("focusgroup"):(r.selected&&(r.selected=!1),r.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&($(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=g`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Oe(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 Oe(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Oe(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Oe(e))}}no([f],At.prototype,"itemSlot",2),no([a({mode:"boolean"})],At.prototype,"expanded",2),no([a({mode:"boolean"})],At.prototype,"selected",2),no([a({mode:"boolean"})],At.prototype,"empty",2),no([a({attribute:"data-indent"})],At.prototype,"dataIndent",2),no([f],At.prototype,"childTreeItems",2);var Am=Object.defineProperty,Em=Object.getOwnPropertyDescriptor,Pa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Em(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Am(e,t,r),r};class Zr extends At{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.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})}}Pa([a],Zr.prototype,"size",2),Pa([a],Zr.prototype,"appearance",2),Zr.define(Om);const Fm="adoptedStyleSheets"in document,Mm="CSSScopeRule"in window,en=new Map,tn=new Map,Mo=new Map,on=new Map,Do=new CSSStyleSheet;function Dm(o,e=document){if(!(!e||!Lm(e))){if(!Fm||e instanceof HTMLElement&&!e.shadowRoot&&!Mm){const t=e===document?document.documentElement:e;qm(o,t);return}[document,document.documentElement,document.body].includes(e)?Vm(o):Hm(o,e)}}function rn(o){if(!en.has(o)){const e=[];for(const[t,i]of Object.entries(o))e.push(`--${t}:${i.toString()};`);en.set(o,e.join(""))}return en.get(o)}function Lm(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function Vm(o){if(o===null){document.adoptedStyleSheets.includes(Do)&&Do.replaceSync("");return}Do.replaceSync(`
|
|
29
|
+
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Rr([a],Do.prototype,"id",2),Rr([a({converter:te})],Do.prototype,"delay",2),Rr([a],Do.prototype,"positioning",2),Rr([a],Do.prototype,"anchor",2),Do.define(Hm);const jm=`${h.prefix}-tree`,qm=p`${w("block")} :host{outline:none}`,Wm=b`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${z("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Um={name:jm,registry:h.registry,styles:qm,template:Wm},_a={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Oa={small:"small",medium:"medium"};function Te(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gm=`${h.prefix}-tree-item`;var Xm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,on=(o,e,t,r)=>{for(var i=r>1?void 0:r?Km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Xm(e,t,i),i};class jr extends x{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Te(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Te(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Te(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Te(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}on([g],jr.prototype,"currentSelected",2),on([g],jr.prototype,"defaultSlot",2),on([g],jr.prototype,"childTreeItems",2);var Ym=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,Ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ym(e,t,i),i};class rn extends jr{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Nr(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Ta([a],rn.prototype,"size",2),Ta([a],rn.prototype,"appearance",2),rn.define(Um);const Zm=p`${w("block")} :host{outline:none;font-size:${B};line-height:${L}}:host(:focus-visible) .positioning-region{box-shadow:${Ci} ${Ci} ${Ci} ${fr} ${le} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Vd};padding-inline-start:calc(var(--indent) * ${gr});padding-inline-end:${ie};border-radius:${S};background-color:${ps};color:${Be};gap:${oe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${le}}}.content{display:flex;align-items:center;gap:${oe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${gr};height:${zt};transition:transform ${mr} ${Ks};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:${ir};color:${Dt}}.positioning-region:active{background-color:${vo};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:${V}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${gs};color:${Qo}}:host([selected]) .content,:host([selected]) .chevron{color:${Xl}}:host([size='small']) .positioning-region{height:${zt};padding-inline-start:calc(var(--indent) * ${re})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${cc}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${dc}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${hc};color:${Qo}}:host([appearance='transparent']) .positioning-region{background-color:${he}}:host([appearance='transparent']) .positioning-region:hover{background-color:${nr}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${fs};color:${Qo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Qm=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>`,ev=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Qm}</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 ${z("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,tv={name:Gm,registry:h.registry,styles:Zm,template:ev};var ov=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,no=(o,e,t,r)=>{for(var i=r>1?void 0:r?rv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ov(e,t,i),i};class Ft extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Te(this.parentElement)&&(this.slot||(this.slot="item")),et(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Te(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&($(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`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Te(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 Te(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Te(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Te(e))}}no([g],Ft.prototype,"itemSlot",2),no([a({mode:"boolean"})],Ft.prototype,"expanded",2),no([a({mode:"boolean"})],Ft.prototype,"selected",2),no([a({mode:"boolean"})],Ft.prototype,"empty",2),no([a({attribute:"data-indent"})],Ft.prototype,"dataIndent",2),no([g],Ft.prototype,"childTreeItems",2);var iv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,Aa=(o,e,t,r)=>{for(var i=r>1?void 0:r?nv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&iv(e,t,i),i};class nn extends Ft{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.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})}}Aa([a],nn.prototype,"size",2),Aa([a],nn.prototype,"appearance",2),nn.define(tv);const sv="adoptedStyleSheets"in document,av="CSSScopeRule"in window,sn=new Map,an=new Map,Ho=new Map,ln=new Map,Vo=new CSSStyleSheet;function lv(o,e=document){if(!(!e||!cv(e))){if(!sv||e instanceof HTMLElement&&!e.shadowRoot&&!av){const t=e===document?document.documentElement:e;gv(o,t);return}[document,document.documentElement,document.body].includes(e)?dv(o):hv(o,e)}}function cn(o){if(!sn.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);sn.set(o,e.join(""))}return sn.get(o)}function cv(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function dv(o){if(o===null){document.adoptedStyleSheets.includes(Vo)&&Vo.replaceSync("");return}Vo.replaceSync(`
|
|
34
30
|
html {
|
|
35
|
-
${
|
|
31
|
+
${cn(o)}
|
|
36
32
|
}
|
|
37
|
-
`),document.adoptedStyleSheets.includes(
|
|
33
|
+
`),document.adoptedStyleSheets.includes(Vo)||document.adoptedStyleSheets.push(Vo)}function hv(o,e){if(o===null){e.shadowRoot&&Ho.has(e)?Ho.get(e).replaceSync(""):(delete e.dataset.fluentTheme,Ba(e));return}e.shadowRoot?uv(e).replaceSync(`
|
|
38
34
|
:host {
|
|
39
|
-
${
|
|
35
|
+
${cn(o)}
|
|
40
36
|
}
|
|
41
|
-
`):(e.dataset.fluentTheme=
|
|
37
|
+
`):(e.dataset.fluentTheme=pv(o),Ba(e))}function uv(o){if(!Ho.has(o)){const e=new CSSStyleSheet;Ho.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return Ho.get(o)}function pv(o){if(!an.has(o)){const e=Xe("fluent-theme-"),t=new CSSStyleSheet;an.set(o,e),t.replaceSync(`
|
|
42
38
|
@scope ([data-fluent-theme="${e}"]) {
|
|
43
39
|
:scope {
|
|
44
|
-
${
|
|
40
|
+
${cn(o)}
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
|
-
`),document.adoptedStyleSheets.push(t)}return
|
|
43
|
+
`),document.adoptedStyleSheets.push(t)}return an.get(o)}function gv(o,e){let t;if(o===null){if(!ln.has(e))return;t=ln.get(e)}else ln.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:fv}=navigator,bv=/\bAppleWebKit\/[\d+\.]+\b/.test(fv);function Ba(o){if(!bv)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),O.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:lv};
|