@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,8 +1,4 @@
|
|
|
1
|
-
const u=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function ls(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function cs(...o){return o.every(e=>e instanceof HTMLElement)}const Tu={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Au={start:"start",end:"end"};function Pn(o,e="-accordion-item"){return ls(e)(o)}const zu=`${u.prefix}-accordion-item`;let yr;const ds="fast-kernel";try{if(document.currentScript)yr=document.currentScript.getAttribute(ds);else{const o=document.getElementsByTagName("script");yr=o[o.length-1].getAttribute(ds)}}catch{yr="isolate"}let Ct;switch(yr){case"share":Ct=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":Ct=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)}`;Ct=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}var Ge;(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"})(Ge||(Ge={}));const Pt=o=>typeof o=="function",rt=o=>typeof o=="string",_u=()=>{};var In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof In<"u")In.globalThis=In;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,r){const n=Date.now();return setTimeout(()=>{t({didTimeout:r?.timeout?Date.now()-n>=r.timeout:!1,timeRemaining:()=>0})},1)},globalThis.cancelIdleCallback=function(t){clearTimeout(t)})}();const hs={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},hs));const K=globalThis.FAST;if(K.getById===void 0){const o=Object.create(null);Reflect.defineProperty(K,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},hs))}K.error===void 0&&Object.assign(K,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ou=Object.freeze([]);function Nn(){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 us(){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 It(o){o.prototype.toJSON=_u}const Z=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ps=o=>o,Fu=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ps}):{createHTML:ps};let kr=Object.freeze({createHTML(o){return Fu.createHTML(o)},protect(o,e,t,r){return r}});const Eu=kr,Nt=Object.freeze({get policy(){return kr},setPolicy(o){if(kr!==Eu)throw K.error(Ge.onlySetDOMPolicyOnce);kr=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 Tn{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 n=this.sub1,i=this.sub2;n!==void 0&&n.handleChange(r,e),i!==void 0&&i.handleChange(r,e)}else for(let n=0,i=t.length;n<i;++n)t[n].handleChange(r,e)}}class gs{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,n;let i;t?i=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new Tn(this.subject):i=(n=this.subjectSubscribers)!==null&&n!==void 0?n:this.subjectSubscribers=new Tn(this.subject),i.subscribe(e)}unsubscribe(e,t){var r,n;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(n=this.subjectSubscribers)===null||n===void 0||n.unsubscribe(e)}}const _=K.getById(Ct.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function n(){if(e.length)throw e.shift()}function i(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(n,0);else throw o.length=0,d}}function s(){let d=0;for(;d<o.length;)if(i(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&&(r?t(s):s())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:s,setMode:h=>r=h})}),xr=Object.freeze({unknown:void 0,coupled:1}),m=K.getById(Ct.observable,()=>{const o=_.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,n=d=>{throw K.error(Ge.needsArrayObservation)};function i(d){var l;let p=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return p===void 0&&(Array.isArray(d)?p=n(d):t.set(d,p=new gs(d))),p}const s=us();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,p){const k=this.field,S=l[k];if(S!==p){l[k]=p;const Le=l[this.callback];Pt(Le)&&Le.call(l,S,p),i(l).notify(this.name)}}}class h extends Tn{constructor(l,p,k=!1){super(l,p),this.expression=l,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(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!==xr.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 k=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let S;try{S=this.expression(l,p)}finally{r=k}return S}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 k=this.last,S=i(l),Le=k===null?this.first:{};if(Le.propertySource=l,Le.propertyName=p,Le.notifier=S,S.subscribe(this,p),k!==null){if(!this.needsRefresh){let Bt;r=void 0,Bt=k.propertySource[k.propertyName],r=this,l===Bt&&(this.needsRefresh=!0)}k.next=Le}this.last=Le}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 It(h),Object.freeze({setArrayObserverFactory(d){n=d},getNotifier:i,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){i(d).notify(l)},defineProperty(d,l){rt(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 Se(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const fs=K.getById(Ct.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),Qt=Object.freeze({default:{index:0,length:0,get event(){return Qt.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return fs.get()},setEvent(o){fs.set(o)}});class wr{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Du extends wr{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function An(o,e,t=m.isVolatileBinding(o)){return new Du(o,e,t)}class bs extends wr{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}It(bs);function ms(o,e){return new bs(o,e)}const zn=Nn(),_n=Object.freeze({getForInstance:zn.getForInstance,getByType:zn.getByType,define(o){return zn.register({type:o}),o}});function On(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Fn{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const i=r.setAttribute;r.setAttribute=(s,c)=>{i.call(r,s,c),s==="style"&&r.$cssBindings.forEach((h,d)=>On(d,h.controller,h.observer))}}const n=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);n.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:n})}connectedCallback(e){On(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){On(this,t.controller,t)}}_n.define(Fn);let vs;function $s(o){return o.map(e=>e instanceof we?$s(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class we{get strategy(){return this._strategy===null&&this.withStrategy(vs),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof we?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),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($s(this.styles)),this}static setDefaultStrategy(e){vs=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new we(e):e instanceof we?e:new we([e])}}we.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Lu=`${Math.random().toString(36).substring(2,8)}`;let Mu=0;const ys=()=>`--v${Lu}${++Mu}`;function ks(o,e){const t=[];let r="";const n=[],i=s=>{n.push(s)};for(let s=0,c=o.length-1;s<c;++s){r+=o[s];let h=e[s];Pt(h)?h=new Fn(An(h),ys()).createCSS(i):h instanceof wr?h=new Fn(h,ys()).createCSS(i):_n.getForInstance(h)!==void 0&&(h=h.createCSS(i)),h instanceof we||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:n}}const g=(o,...e)=>{const{styles:t,behaviors:r}=ks(o,e),n=new we(t);return r.length?n.withBehaviors(...r):n};class xs{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((n,i)=>(rt(i)?this.css+=i:n.push(i),n),[]);r.length&&(this.styles=new we(r))}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)}}_n.define(xs),g.partial=(o,...e)=>{const{styles:t,behaviors:r}=ks(o,e);return new xs(t,r)};const En=`fast-${Math.random().toString(36).substring(2,8)}`,Sr=`${En}{`,So=`}${En}`,Hu=So.length;let Vu=0;const Bo=()=>`${En}-${++Vu}`,ws=Object.freeze({interpolation:o=>`${Sr}${o}${So}`,attribute:o=>`${Bo()}="${Sr}${o}${So}"`,comment:o=>`<!--${Sr}${o}${So}-->`}),Br=Object.freeze({parse(o,e){const t=o.split(Sr);if(t.length===1)return null;const r=[];for(let n=0,i=t.length;n<i;++n){const s=t[n],c=s.indexOf(So);let h;if(c===-1)h=s;else{const d=s.substring(0,c);r.push(e[d]),h=s.substring(c+Hu)}h!==""&&r.push(h)}return r}}),Dn=Nn(),Xe=Object.freeze({getForInstance:Dn.getForInstance,getByType:Dn.getByType,define(o,e){return e=e||{},e.type=o,Dn.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Z.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Z.tokenList:Z.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Z.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Z.event;break;default:o.targetAspect=e,o.aspectType=Z.attribute;break}}});class Ln{constructor(e){this.options=e}createHTML(e){return ws.attribute(e(this))}createBehavior(){return this}}It(Ln);const Ru=o=>o.nodeType===1,Co=o=>o?e=>e.nodeType===1&&e.matches(o):Ru;class ju extends Ln{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,Ou),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 Ss=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Bs=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Cs=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,Ps=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,Is=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Ns=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Ts(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ie=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 Ss.test(o)},isContentBindingEndMarker(o){return Bs.test(o)},isRepeatViewStartMarker(o){return Cs.test(o)},isRepeatViewEndMarker(o){return Ps.test(o)},isElementBoundaryStartMarker(o){return Ts(o)&&Is.test(o.data.trim())},isElementBoundaryEndMarker(o){return Ts(o)&&Ns.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,r=`${this.attributeMarkerName}-`;for(const n of o.getAttributeNames())if(n.startsWith(r)){const i=Number(n.slice(t));if(!Number.isNaN(i))e.push(i);else throw K.error(1601,{name:n,expectedFormat:`${r}<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 n=t.slice(e.length).split("-"),i=parseInt(n[0],10),s=parseInt(n[1],10);if(n.length!==2||Number.isNaN(i)||Number.isNaN(s)||i<0||s<1)throw K.error(1604,{name:t,expectedFormat:`${this.compactAttributeMarkerName}-{index}-{count}`});const c=[];for(let h=0;h<s;h++)c.push(i+h);return c},parseContentBindingStartMarker(o){return _s(Ss,o)},parseContentBindingEndMarker(o){return _s(Bs,o)},parseRepeatStartMarker(o){return As(Cs,o)},parseRepeatEndMarker(o){return As(Ps,o)},parseElementBoundaryStartMarker(o){return zs(Is,o.trim())},parseElementBoundaryEndMarker(o){return zs(Ns,o)}});function As(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function zs(o,e){const t=o.exec(e);return t===null?t:t[1]}function _s(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Cr=Symbol.for("fe-hydration");function Pr(o){return o[Cr]===Cr}const Ir="defer-hydration";class Os extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function Mn(o){return o.nodeType===Node.COMMENT_NODE}function Fs(o){return o.nodeType===Node.TEXT_NODE}function Es(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Mn(e)||Fs(e)?e.data.length:e.childNodes.length),t}function qu(o){return o instanceof DocumentFragment&&"mode"in o}function Wu(o,e,t){const r=Es(o,e),n=r.commonAncestorContainer,i=Ku(t),s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(l){return r.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:{Gu(d,t,c,i);break}case Node.COMMENT_NODE:{Xu(d,s,t,c,h,i);break}}d=s.nextNode()}return r.detach(),{targets:c,boundaries:h}}function Gu(o,e,t,r){var n,i;const s=(i=(n=Ie.parseAttributeBinding(o))!==null&&n!==void 0?n:Ie.parseEnumeratedAttributeBinding(o))!==null&&i!==void 0?i:Ie.parseCompactAttributeBinding(o);if(s!==null){for(const c of s){const h=e[c+r];if(!h)throw new Os(`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);Nr(h,o,t)}o.removeAttribute(Ie.attributeMarkerName)}}function Xu(o,e,t,r,n,i){if(Ie.isElementBoundaryStartMarker(o)){Uu(o,e);return}if(Ie.isContentBindingStartMarker(o.data)){const s=Ie.parseContentBindingStartMarker(o.data);if(s===null)return;const[c,h]=s,d=t[c+i],l=[];let p=e.nextSibling();o.data="";const k=p;for(;p!==null;){if(Mn(p)){const S=Ie.parseContentBindingEndMarker(p.data);if(S&&S[1]===h)break}l.push(p),p=e.nextSibling()}if(p===null){const S=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${qu(S)?S.host.nodeName:S.nodeName}".`)}if(p.data="",l.length===1&&Fs(l[0]))Nr(d,l[0],r);else{p!==k&&p.previousSibling!==null&&(n[d.targetNodeId]={first:k,last:p.previousSibling});const S=p.parentNode.insertBefore(document.createTextNode(""),p);Nr(d,S,r)}}}function Uu(o,e){const t=Ie.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(Mn(r)){const n=Ie.parseElementBoundaryEndMarker(r.data);if(n&&n===t)break}r=e.nextSibling()}}function Ku(o){let e=0;for(let t=0,r=o.length;t<r&&o[t].targetNodeId==="h";++t)e++;return e}function Nr(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Ds;function Hn(o,e){const t=o.parentNode;let r=o,n;for(;r!==e;){if(n=r.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=n}t.removeChild(e)}class Ls{constructor(){this.index=0,this.length=0}get event(){return Qt.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 Tr extends Ls{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=xr.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 r=e.parentNode;let n=this.firstChild,i;for(;n!==t;)i=n.nextSibling,r.insertBefore(n,e),n=i;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,e.appendChild(r),r=n;e.appendChild(t)}dispose(){Hn(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let i=0,s=n.length;i<s;++i){const c=n[i].createBehavior();c.bind(this),r[i]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,i=r.length;n<i;++n)r[n].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){Hn(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}It(Tr),m.defineProperty(Tr.prototype,"index"),m.defineProperty(Tr.prototype,"length");const Zt={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Yu extends Error{constructor(e,t,r,n){super(e),this.factory=t,this.fragment=r,this.templateString=n}}class Ju extends Ls{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,r,n){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=n,this[Ds]=Cr,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=xr.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=Zt.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 n=this.firstChild,i;for(;n!==t;)i=n.nextSibling,r.insertBefore(n,e),n=i;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,n;for(;r!==t;){if(n=r.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=n}e.appendChild(t)}bind(e,t=this){var r;if(this.hydrationStage!==Zt.hydrated&&(this._hydrationStage=Zt.hydrating),this.source===e)return;let n=this.behaviors;if(n===null){this.source=e,this.context=t;try{const{targets:s,boundaries:c}=Wu(this.firstChild,this.lastChild,this.factories);this._targets=s,this._bindingViewBoundaries=c}catch(s){if(s instanceof Os){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),s.templateString=c}throw s}this.behaviors=n=new Array(this.factories.length);const i=this.factories;for(let s=0,c=i.length;s<c;++s){const h=i[s];if(h.targetNodeId==="h"&&this.hostBindingTarget&&Nr(h,this.hostBindingTarget,this._targets),h.targetNodeId in this.targets){const d=h.createBehavior();d.bind(this),n[s]=d}else{let d=this.sourceTemplate.html;typeof d!="string"&&(d=d.innerHTML);const l=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host,p=l?.nodeName||"unknown",k=h,S=[`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&&S.push(` - Expected tag name: "${h.targetTagName}"`),k.sourceAspect&&S.push(` - Source aspect: "${k.sourceAspect}"`),k.aspectType!==void 0&&S.push(` - Aspect type: ${k.aspectType}`),S.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 Yu(S.join(`
|
|
5
|
-
`),h,Es(this.firstChild,this.lastChild).cloneContents(),d)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=n.length;i<s;++i)n[i].bind(this)}this.isBound=!0,this._hydrationStage=Zt.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Hn(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}}Ds=Cr,It(Ju);function Qu(o){return o.create!==void 0}function Zu(o,e,t,r){if(t==null&&(t=""),Qu(t)){o.textContent="";let n=o.$fastView;if(n===void 0)if(Pr(r)&&Pr(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==Zt.hydrated){const i=r.bindingViewBoundaries[this.targetNodeId];n=t.hydrate(i.first,i.last)}else n=t.create();else o.$fastTemplate!==t&&(n.isComposed&&(n.remove(),n.unbind()),n=t.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(r.source,r.context)):(n.isComposed=!0,n.bind(r.source,r.context),n.insertBefore(o),o.$fastView=n,o.$fastTemplate=t)}else{const n=o.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),o.textContent=t}}function ep(o,e,t){var r;const n=`${this.id}-t`,i=(r=o[n])!==null&&r!==void 0?r:o[n]={v:0,cv:Object.create(null)},s=i.cv;let c=i.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 k=d[l];k!==""&&(s[k]=c,h.add(k))}}if(i.v=c+1,c!==0){c-=1;for(const d in s)s[d]===c&&h.remove(d)}}const tp={[Z.attribute]:Nt.setAttribute,[Z.booleanAttribute]:Nt.setBooleanAttribute,[Z.property]:(o,e,t)=>o[e]=t,[Z.content]:Zu,[Z.tokenList]:ep,[Z.event]:()=>{}};class eo{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Z.content}createHTML(e){return ws.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=tp[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw K.error(Ge.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],n=Pr(e)&&e.hydrationStage&&e.hydrationStage!==Zt.hydrated;switch(this.aspectType){case Z.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Z.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(i.target=r,i.controller=e,n&&(this.aspectType===Z.attribute||this.aspectType===Z.booleanAttribute)){i.bind(e);break}this.updateTarget(r,this.targetAspect,i.bind(e),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){Qt.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Qt.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const n=t.target;this.updateTarget(n,this.targetAspect,t.bind(r),r)}}Xe.define(eo,{aspected:!0});const Ms=(o,e)=>`${o}.${e}`,Hs={},Ue={index:0,node:null};function Vs(o){o.startsWith("fast-")||K.warn(Ge.hostBindingWithoutHost,{name:o})}const op=new Proxy(document.createElement("div"),{get(o,e){Vs(e);const t=Reflect.get(o,e);return Pt(t)?t.bind(o):t},set(o,e,t){return Vs(e),Reflect.set(o,e,t)}});class rp{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,n,i){var s,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,n)),e.id=(s=e.id)!==null&&s!==void 0?s:Bo(),e.targetNodeId=r,e.targetTagName=i,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,r){const n=this.descriptors;if(t==="r"||t==="h"||n[t])return;if(!n[e]){const s=e.lastIndexOf("."),c=e.substring(0,s),h=parseInt(e.substring(s+1),10);this.addTargetDescriptor(c,e,h)}let i=Hs[t];if(!i){const s=`_${t}`;Hs[t]=i={get(){var c;return(c=this[s])!==null&&c!==void 0?c:this[s]=this[e].childNodes[r]}}}n[t]=i}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??op;for(const n of this.nodeIds)Reflect.get(r,n);return new Tr(t,this.factories,r)}}function Rs(o,e,t,r,n,i=!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,k=Br.parse(p,c);let S=null;k===null?i&&(S=new eo(ms(()=>p,o.policy)),Xe.assignAspect(S,l.name)):S=Vn.aggregate(k,o.policy),S!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(S,e,r,n,t.tagName))}}function np(o,e,t,r,n){const i=Br.parse(e.textContent,o.directives);if(i===null)return Ue.node=e.nextSibling,Ue.index=n+1,Ue;let s,c=s=e;for(let h=0,d=i.length;h<d;++h){const l=i[h];h!==0&&(n++,r=Ms(t,n),s=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),rt(l)?s.textContent=l:(s.textContent=" ",Xe.assignAspect(l),o.addFactory(l,t,r,n,null)),c=s}return Ue.index=n+1,Ue.node=c.nextSibling,Ue}function js(o,e,t){let r=0,n=e.firstChild;for(;n;){const i=ip(o,t,n,r);n=i.node,r=i.index}}function ip(o,e,t,r){const n=Ms(e,r);switch(t.nodeType){case 1:Rs(o,e,t,n,r),js(o,t,n);break;case 3:return np(o,t,e,n,r);case 8:{const i=Br.parse(t.data,o.directives);i!==null&&o.addFactory(Vn.aggregate(i),e,n,r,null);break}}return Ue.index=r+1,Ue.node=t.nextSibling,Ue}function sp(o,e){return o&&o.nodeType===8&&Br.parse(o.data,e)!==null}const qs="TEMPLATE",Vn={compile(o,e,t=Nt.policy){let r;if(rt(o)){r=document.createElement(qs),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===qs&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const n=document.adoptNode(r.content),i=new rp(n,e,t);return Rs(i,"",r,"h",0,!0),(sp(n.firstChild,e)||n.childNodes.length===1&&Object.keys(e).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),js(i,n,"r"),Ue.node=null,i.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Nt.policy){if(o.length===1)return o[0];let t,r=!1,n;const i=o.length,s=o.map(d=>rt(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,n=n||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let p="";for(let k=0;k<i;++k)p+=s[k](d,l);return p},h=new eo(An(c,n??e,r));return Xe.assignAspect(h,t),h}};class Ws extends Ln{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Xe.define(Ws);const A=o=>new Ws(o),Gs="boolean",Xs="reflect",Ar=Object.freeze({locate:us()}),ap={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Us(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ae={toView(o){const e=Us(o);return e&&e.toString()},fromView:Us};class Sn{constructor(e,t,r=t.toLowerCase(),n=Xs,i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=n,this.converter=i,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,n===Gs&&i===void 0&&(this.converter=ap)}setValue(e,t){const r=e[this.fieldName],n=this.converter;n!==void 0&&(t=n.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.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||_.enqueue(()=>{r.add(e);const n=e[this.fieldName];switch(t){case Xs:const i=this.converter;Nt.setAttribute(e,this.attribute,i!==void 0?i.toView(n):n);break;case Gs:Nt.setBooleanAttribute(e,this.attribute,n);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Ar.locate(e));for(let n=0,i=t.length;n<i;++n){const s=t[n];if(s!==void 0)for(let c=0,h=s.length;c<h;++c){const d=s[c];rt(d)?r.push(new Sn(e,d)):r.push(new Sn(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(n,i){arguments.length>1&&(t.property=i),Ar.locate(n.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}var lp=window&&window.__awaiter||function(o,e,t,r){function n(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(l){try{d(r.next(l))}catch(p){s(p)}}function h(l){try{d(r.throw(l))}catch(p){s(p)}}function d(l){l.done?i(l.value):n(l.value).then(c,h)}d((r=r.apply(o,e||[])).next())})},Me;const Ks={mode:"open"},Ys={},Rn=new Set,Po=K.getById(Ct.elementRegistry,()=>Nn()),cp={deferAndHydrate:"defer-and-hydrate"};class ge{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,rt(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.templateOptions=t.templateOptions,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const n=e.prototype,i=Sn.collect(e,t.attributes),s=new Array(i.length),c={},h={};for(let d=0,l=i.length;d<l;++d){const p=i[d];s[d]=p.attribute,c[p.name]=p,h[p.attribute]=p,m.defineProperty(n,p)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=i,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Ks:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Ks),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ys:Object.assign(Object.assign({},Ys),t.elementOptions),this.styles=we.normalize(t.styles),Po.register(this),m.defineProperty(Me.isRegistered,this.name),Me.isRegistered[this.name]=this.type}define(e=this.registry){var t,r;const n=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,n,this.elementOptions),(r=(t=this.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidDefine)===null||r===void 0||r.call(t,this.name)),this}static compose(e,t){return Rn.has(e)||Po.getByType(e)?new Me(class extends e{},t):new Me(e,t)}static registerBaseType(e){Rn.add(e)}static composeAsync(e,t){return new Promise(r=>{(Rn.has(e)||Po.getByType(e))&&r(new Me(class extends e{},t));const n=new Me(e,t);m.getNotifier(n).subscribe({handleChange:()=>{var i,s;(s=(i=n.lifecycleCallbacks)===null||i===void 0?void 0:i.templateDidUpdate)===null||s===void 0||s.call(i,n.name),r(n)}},"template")})}}Me=ge,ge.isRegistered={},ge.getByType=Po.getByType,ge.getForInstance=Po.getForInstance,ge.registerAsync=o=>lp(void 0,void 0,void 0,function*(){return new Promise(e=>{Me.isRegistered[o]&&e(Me.isRegistered[o]),m.getNotifier(Me.isRegistered).subscribe({handleChange:()=>e(Me.isRegistered[o])},o)})}),m.defineProperty(ge.prototype,"template");const dp=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,hp=Object.create(null);class Tt{constructor(e,t=hp){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}Tt.empty=new Tt(""),Xe.define(Tt);function up(o,e,t,r=Xe.getForInstance(o)){if(r.aspected){const n=dp.exec(e);n!==null&&Xe.assignAspect(o,n[2])}return o.createHTML(t)}class Bn{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=Vn.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new Tt(rt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw K.error(Ge.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw K.error(Ge.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const n=this.create(r);return n.bind(e),n.appendTo(t),n}static create(e,t,r){let n="";const i=Object.create(null),s=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=Bo();return i[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],p;if(n+=d,Pt(l))l=new eo(An(l));else if(l instanceof wr)l=new eo(l);else if(!(p=Xe.getForInstance(l))){const k=l;l=new eo(ms(()=>k))}n+=up(l,d,s,p)}return new Bn(n+e[e.length-1],i,r)}}It(Bn);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Bn.create(o,e);throw K.error(Ge.directCallToHTMLTagNotAllowed)};b.partial=o=>new Tt(o);const Js="slotchange";class Qs extends ju{observe(e){e.addEventListener(Js,this)}disconnect(e){e.removeEventListener(Js,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Xe.define(Qs);function Y(o){return rt(o)&&(o={property:o}),new Qs(o)}class pp extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(n=>this.observedNodes.has(n.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 r=null,n=!1;return{source:o,context:Qt.default,targets:t,get isBound(){return n},addBehaviorFactory(i,s){var c,h,d,l;const p=i;p.id=(c=p.id)!==null&&c!==void 0?c:Bo(),p.targetNodeId=(h=p.targetNodeId)!==null&&h!==void 0?h:Bo(),p.targetTagName=(d=s.tagName)!==null&&d!==void 0?d:null,p.policy=(l=p.policy)!==null&&l!==void 0?l:Nt.policy,this.addTarget(p.targetNodeId,s),this.addBehavior(p.createBehavior())},addTarget(i,s){t[i]=s},addBehavior(i){e.push(i),n&&i.bind(this)},onUnbind(i){r===null&&(r=[]),r.push(i)},connectedCallback(i){n||(n=!0,e.forEach(s=>s.bind(this)))},disconnectedCallback(i){n&&(n=!1,r!==null&&r.forEach(s=>s.unbind(this)))}}}});const gp={bubbles:!0,composed:!0,cancelable:!0},zr="isConnected",Zs=new WeakMap;function Io(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Zs.get(o))!==null&&t!==void 0?t:null}let ea;var ee;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(ee||(ee={}));class We extends gs{get isConnected(){return m.track(this,zr),this.stage===ee.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Qt.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"&&Zs.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=ee.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 r=m.getAccessors(e);if(r.length>0){const n=this.boundObservables=Object.create(null);for(let i=0,s=r.length;i<s;++i){const c=r[i].name,h=e[c];h!==void 0&&(delete e[c],n[c]=h)}}}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const n=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,i=(r=n.get(e))!==null&&r!==void 0?r:0;i===0?(n.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===ee.connected||this.stage===ee.connecting)&&e.connectedCallback(this)):n.set(e,i+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const n=r.get(e);n!==void 0&&(n===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==ee.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,n-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Io(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const n=e.behaviors;if(e.addStylesTo(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.addBehavior(n[i])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=Io(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const n=e.behaviors;if(e.removeStylesFrom(r),n!==null)for(let i=0,s=n.length;i<s;++i)this.removeBehavior(n[i])}}connect(){this.stage===ee.disconnected&&(this.stage=ee.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=ee.connected,m.notify(this,zr))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let n=0,i=r.length;n<i;++n){const s=r[n];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===ee.connected&&(this.stage=ee.disconnecting,m.notify(this,zr),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=ee.disconnected)}onAttributeChangedCallback(e,t,r){const n=this.definition.attributeLookup[e];n!==void 0&&n.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===ee.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},gp),r))):!1}renderTemplate(e){var t;const r=this.source,n=(t=Io(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=!1;for(let i=n.firstChild;i!==null;i=n.firstChild)n.removeChild(i)}e&&(this.view=e.render(r,n,r),this.view.sourceLifetime=xr.coupled)}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const n=ge.getForInstance(e);if(n===void 0)throw K.error(Ge.missingElementDefinition);return m.getNotifier(n).subscribe({handleChange:()=>{We.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(n).subscribe({handleChange:()=>{We.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new ea(e,n)}static setStrategy(e){ea=e}}It(We),We.setStrategy(We);function _r(o){var e;return"adoptedStyleSheets"in o?o:(e=Io(o))!==null&&e!==void 0?e:o.getRootNode()}class Cn{constructor(e){const t=Cn.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let n=t.get(r);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(r),t.set(r,n)),n})}addStylesTo(e){oa(_r(e),this.sheets)}removeStylesFrom(e){ra(_r(e),this.sheets)}}Cn.styleSheetCache=new Map;let fp=0;const bp=()=>`fast-${++fp}`;function ta(o){return o===document?document.body:o}class mp{constructor(e){this.styles=e,this.styleClass=bp()}addStylesTo(e){e=ta(_r(e));const t=this.styles,r=this.styleClass;for(let n=0;n<t.length;n++){const i=document.createElement("style");i.innerHTML=t[n],i.className=r,e.append(i)}}removeStylesFrom(e){e=ta(_r(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,n=t.length;r<n;++r)e.removeChild(t[r])}}let oa=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},ra=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(we.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),oa=(o,e)=>{o.adoptedStyleSheets.push(...e)},ra=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}we.setDefaultStrategy(Cn)}else we.setDefaultStrategy(mp);const jn="needs-hydration";class C extends We{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===cp.deferAndHydrate&&(this.source.toggleAttribute(Ir,!0),this.source.toggleAttribute(jn,!0))}addHydratingInstance(){if(!C.hydratingInstances)return;const e=this.definition.name;let t=C.hydratingInstances.get(e);t||(t=new Set,C.hydratingInstances.set(e,t)),t.add(this.source)}static config(e){return C.lifecycleCallbacks=e,this}static hydrationObserverHandler(e){for(const t of e)t.target.hasAttribute(Ir)||(C.hydrationObserver.unobserve(t.target),t.target.$fastController.connect())}static checkHydrationComplete(e){var t,r,n;if(e.didTimeout){C.idleCallbackId=requestIdleCallback(C.checkHydrationComplete,{timeout:50});return}if(((t=C.hydratingInstances)===null||t===void 0?void 0:t.size)===0){try{(n=(r=C.lifecycleCallbacks).hydrationComplete)===null||n===void 0||n.call(r)}catch{}We.setStrategy(We)}}connect(){var e,t,r,n,i,s,c;if(this.needsHydration=(e=this.needsHydration)!==null&&e!==void 0?e:this.source.hasAttribute(jn),this.needsHydration&&this.addHydratingInstance(),this.source.hasAttribute(Ir)){this.addHydratingInstance(),C.hydrationObserver.observe(this.source,{attributeFilter:[Ir]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===ee.disconnected){if(!C.hydrationStarted){C.hydrationStarted=!0;try{(r=(t=C.lifecycleCallbacks).hydrationStarted)===null||r===void 0||r.call(t)}catch{}}try{(i=(n=C.lifecycleCallbacks).elementWillHydrate)===null||i===void 0||i.call(n,this.source)}catch{}if(this.stage=ee.connecting,this.bindObservables(),this.connectBehaviors(),this.template)if(Pr(this.template)){const h=this.source,d=(s=Io(h))!==null&&s!==void 0?s:h;let l=d.firstChild,p=d.lastChild;h.shadowRoot===null&&(Ie.isElementBoundaryStartMarker(l)&&(l.data="",l=l.nextSibling),Ie.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=ee.connected,this.source.removeAttribute(jn),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),m.notify(this,zr)}}removeHydratingInstance(){var e,t;if(!C.hydratingInstances)return;try{(t=(e=C.lifecycleCallbacks).elementDidHydrate)===null||t===void 0||t.call(e,this.source)}catch{}const r=this.definition.name,n=C.hydratingInstances.get(r);n&&(n.delete(this.source),n.size||C.hydratingInstances.delete(r),C.idleCallbackId&&cancelIdleCallback(C.idleCallbackId),C.idleCallbackId=requestIdleCallback(C.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),C.hydrationObserver.unobserve(this.source)}static install(){We.setStrategy(C)}}C.hydrationObserver=new pp(C.hydrationObserverHandler),C.lifecycleCallbacks={},C.hydrationStarted=!1,C.idleCallbackId=null,C.hydratingInstances=new Map;function na(o){const e=class extends o{constructor(){super(),We.forCustomElement(this)}$emit(t,r,n){return this.$fastController.emit(t,r,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,n){this.$fastController.onAttributeChangedCallback(t,r,n)}};return ge.registerBaseType(e),e}function vp(o,e){return Pt(o)?ge.compose(o,e):ge.compose(this,o)}function $p(o,e){return Pt(o)?new Promise(t=>{ge.composeAsync(o,e).then(r=>{t(r)})}).then(t=>t.define().type):new Promise(t=>{ge.composeAsync(this,o).then(r=>{t(r)})}).then(t=>t.define().type)}function yp(o,e){return Pt(o)?ge.compose(o,e).define().type:ge.compose(this,o).define().type}function kp(o){return na(o)}const x=Object.assign(na(HTMLElement),{from:kp,define:yp,compose:vp,defineAsync:$p}),xp=":host([hidden]){display:none}";function w(o){return`${xp}:host{display:${o}}`}const T="var(--colorNeutralForeground1)",qn="var(--colorNeutralForeground1Hover)",ia="var(--colorNeutralForeground1Pressed)",wp="var(--colorNeutralForeground1Selected)",Ne="var(--colorNeutralForeground2)",At="var(--colorNeutralForeground2Hover)",zt="var(--colorNeutralForeground2Pressed)",No="var(--colorNeutralForeground2Selected)",To="var(--colorNeutralForeground2BrandHover)",Ao="var(--colorNeutralForeground2BrandPressed)",sa="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",aa="var(--colorNeutralForeground3Hover)",la="var(--colorNeutralForeground3Pressed)",ca="var(--colorNeutralForeground3Selected)",Sp="var(--colorNeutralForeground3BrandHover)",Bp="var(--colorNeutralForeground3BrandPressed)",Cp="var(--colorNeutralForeground3BrandSelected)",Or="var(--colorNeutralForeground4)",Pp="var(--colorNeutralForeground5)",Ip="var(--colorNeutralForeground5Hover)",Np="var(--colorNeutralForeground5Pressed)",Tp="var(--colorNeutralForeground5Selected)",z="var(--colorNeutralForegroundDisabled)",da="var(--colorBrandForegroundLink)",ha="var(--colorBrandForegroundLinkHover)",ua="var(--colorBrandForegroundLinkPressed)",Ap="var(--colorBrandForegroundLinkSelected)",pa="var(--colorNeutralForeground2Link)",ga="var(--colorNeutralForeground2LinkHover)",fa="var(--colorNeutralForeground2LinkPressed)",zp="var(--colorNeutralForeground2LinkSelected)",_p="var(--colorCompoundBrandForeground1)",ba="var(--colorCompoundBrandForeground1Hover)",ma="var(--colorCompoundBrandForeground1Pressed)",Ke="var(--colorNeutralForegroundOnBrand)",dt="var(--colorNeutralForegroundInverted)",va="var(--colorNeutralForegroundInvertedHover)",$a="var(--colorNeutralForegroundInvertedPressed)",Op="var(--colorNeutralForegroundInvertedSelected)",Fp="var(--colorNeutralForegroundInverted2)",Wn="var(--colorNeutralForegroundStaticInverted)",Ep="var(--colorNeutralForegroundInvertedLink)",Dp="var(--colorNeutralForegroundInvertedLinkHover)",Lp="var(--colorNeutralForegroundInvertedLinkPressed)",Mp="var(--colorNeutralForegroundInvertedLinkSelected)",Hp="var(--colorNeutralForegroundInvertedDisabled)",zo="var(--colorBrandForeground1)",ya="var(--colorBrandForeground2)",Vp="var(--colorBrandForeground2Hover)",Rp="var(--colorBrandForeground2Pressed)",ka="var(--colorNeutralForeground1Static)",jp="var(--colorBrandForegroundInverted)",qp="var(--colorBrandForegroundInvertedHover)",Wp="var(--colorBrandForegroundInvertedPressed)",Gp="var(--colorBrandForegroundOnLight)",Xp="var(--colorBrandForegroundOnLightHover)",Up="var(--colorBrandForegroundOnLightPressed)",Kp="var(--colorBrandForegroundOnLightSelected)",P="var(--colorNeutralBackground1)",_o="var(--colorNeutralBackground1Hover)",Fr="var(--colorNeutralBackground1Pressed)",Gn="var(--colorNeutralBackground1Selected)",Yp="var(--colorNeutralBackground2)",Jp="var(--colorNeutralBackground2Hover)",Qp="var(--colorNeutralBackground2Pressed)",Zp="var(--colorNeutralBackground2Selected)",to="var(--colorNeutralBackground3)",eg="var(--colorNeutralBackground3Hover)",tg="var(--colorNeutralBackground3Pressed)",og="var(--colorNeutralBackground3Selected)",xa="var(--colorNeutralBackground4)",rg="var(--colorNeutralBackground4Hover)",ng="var(--colorNeutralBackground4Pressed)",ig="var(--colorNeutralBackground4Selected)",wa="var(--colorNeutralBackground5)",sg="var(--colorNeutralBackground5Hover)",ag="var(--colorNeutralBackground5Pressed)",lg="var(--colorNeutralBackground5Selected)",oo="var(--colorNeutralBackground6)",cg="var(--colorNeutralBackground7)",dg="var(--colorNeutralBackground7Hover)",hg="var(--colorNeutralBackground7Pressed)",ug="var(--colorNeutralBackground7Selected)",pg="var(--colorNeutralBackground8)",Xn="var(--colorNeutralBackgroundInverted)",gg="var(--colorNeutralBackgroundInvertedHover)",fg="var(--colorNeutralBackgroundInvertedPressed)",bg="var(--colorNeutralBackgroundInvertedSelected)",mg="var(--colorNeutralBackgroundStatic)",vg="var(--colorNeutralBackgroundAlpha)",$g="var(--colorNeutralBackgroundAlpha2)",Un="var(--colorSubtleBackground)",Oo="var(--colorSubtleBackgroundHover)",ro="var(--colorSubtleBackgroundPressed)",Kn="var(--colorSubtleBackgroundSelected)",Sa="var(--colorSubtleBackgroundLightAlphaHover)",Ba="var(--colorSubtleBackgroundLightAlphaPressed)",Ca="var(--colorSubtleBackgroundLightAlphaSelected)",yg="var(--colorSubtleBackgroundInverted)",kg="var(--colorSubtleBackgroundInvertedHover)",xg="var(--colorSubtleBackgroundInvertedPressed)",wg="var(--colorSubtleBackgroundInvertedSelected)",le="var(--colorTransparentBackground)",Fo="var(--colorTransparentBackgroundHover)",Eo="var(--colorTransparentBackgroundPressed)",Yn="var(--colorTransparentBackgroundSelected)",nt="var(--colorNeutralBackgroundDisabled)",Sg="var(--colorNeutralBackgroundDisabled2)",Bg="var(--colorNeutralBackgroundInvertedDisabled)",Cg="var(--colorNeutralStencil1)",Pg="var(--colorNeutralStencil2)",Ig="var(--colorNeutralStencil1Alpha)",Ng="var(--colorNeutralStencil2Alpha)",Er="var(--colorBackgroundOverlay)",Tg="var(--colorScrollbarOverlay)",Jn="var(--colorBrandBackground)",Qn="var(--colorBrandBackgroundHover)",Zn="var(--colorBrandBackgroundPressed)",Pa="var(--colorBrandBackgroundSelected)",ht="var(--colorCompoundBrandBackground)",_t="var(--colorCompoundBrandBackgroundHover)",Ot="var(--colorCompoundBrandBackgroundPressed)",ei="var(--colorBrandBackgroundStatic)",ti="var(--colorBrandBackground2)",Ag="var(--colorBrandBackground2Hover)",zg="var(--colorBrandBackground2Pressed)",_g="var(--colorBrandBackground3Static)",Og="var(--colorBrandBackground4Static)",Fg="var(--colorBrandBackgroundInverted)",Eg="var(--colorBrandBackgroundInvertedHover)",Dg="var(--colorBrandBackgroundInvertedPressed)",Lg="var(--colorBrandBackgroundInvertedSelected)",Mg="var(--colorNeutralCardBackground)",Hg="var(--colorNeutralCardBackgroundHover)",Vg="var(--colorNeutralCardBackgroundPressed)",Rg="var(--colorNeutralCardBackgroundSelected)",jg="var(--colorNeutralCardBackgroundDisabled)",He="var(--colorNeutralStrokeAccessible)",ut="var(--colorNeutralStrokeAccessibleHover)",pt="var(--colorNeutralStrokeAccessiblePressed)",qg="var(--colorNeutralStrokeAccessibleSelected)",Ve="var(--colorNeutralStroke1)",gt="var(--colorNeutralStroke1Hover)",no="var(--colorNeutralStroke1Pressed)",Wg="var(--colorNeutralStroke1Selected)",io="var(--colorNeutralStroke2)",Ia="var(--colorNeutralStroke3)",Gg="var(--colorNeutralStroke4)",Xg="var(--colorNeutralStroke4Hover)",Ug="var(--colorNeutralStroke4Pressed)",Kg="var(--colorNeutralStroke4Selected)",Yg="var(--colorNeutralStrokeSubtle)",Jg="var(--colorNeutralStrokeOnBrand)",Na="var(--colorNeutralStrokeOnBrand2)",Qg="var(--colorNeutralStrokeOnBrand2Hover)",Zg="var(--colorNeutralStrokeOnBrand2Pressed)",ef="var(--colorNeutralStrokeOnBrand2Selected)",oi="var(--colorBrandStroke1)",ri="var(--colorBrandStroke2)",tf="var(--colorBrandStroke2Hover)",of="var(--colorBrandStroke2Pressed)",rf="var(--colorBrandStroke2Contrast)",it="var(--colorCompoundBrandStroke)",Ta="var(--colorCompoundBrandStrokeHover)",ni="var(--colorCompoundBrandStrokePressed)",fe="var(--colorNeutralStrokeDisabled)",nf="var(--colorNeutralStrokeDisabled2)",sf="var(--colorNeutralStrokeInvertedDisabled)",U="var(--colorTransparentStroke)",Dr="var(--colorTransparentStrokeInteractive)",af="var(--colorTransparentStrokeDisabled)",lf="var(--colorNeutralStrokeAlpha)",cf="var(--colorNeutralStrokeAlpha2)",Do="var(--colorStrokeFocus1)",ce="var(--colorStrokeFocus2)",Aa="var(--colorNeutralShadowAmbient)",za="var(--colorNeutralShadowKey)",df="var(--colorNeutralShadowAmbientLighter)",hf="var(--colorNeutralShadowKeyLighter)",uf="var(--colorNeutralShadowAmbientDarker)",pf="var(--colorNeutralShadowKeyDarker)",gf="var(--colorBrandShadowAmbient)",ff="var(--colorBrandShadowKey)",ii="var(--colorPaletteRedBackground1)",_a="var(--colorPaletteRedBackground2)",si="var(--colorPaletteRedBackground3)",bf="var(--colorPaletteRedBorderActive)",ai="var(--colorPaletteRedBorder1)",Lr="var(--colorPaletteRedBorder2)",Mr="var(--colorPaletteRedForeground1)",Oa="var(--colorPaletteRedForeground2)",li="var(--colorPaletteRedForeground3)",mf="var(--colorPaletteRedForegroundInverted)",ci="var(--colorPaletteGreenBackground1)",vf="var(--colorPaletteGreenBackground2)",di="var(--colorPaletteGreenBackground3)",$f="var(--colorPaletteGreenBorderActive)",Fa="var(--colorPaletteGreenBorder1)",Ea="var(--colorPaletteGreenBorder2)",Da="var(--colorPaletteGreenForeground1)",La="var(--colorPaletteGreenForeground2)",Ma="var(--colorPaletteGreenForeground3)",yf="var(--colorPaletteGreenForegroundInverted)",hi="var(--colorPaletteDarkOrangeBackground1)",kf="var(--colorPaletteDarkOrangeBackground2)",ui="var(--colorPaletteDarkOrangeBackground3)",xf="var(--colorPaletteDarkOrangeBorderActive)",pi="var(--colorPaletteDarkOrangeBorder1)",wf="var(--colorPaletteDarkOrangeBorder2)",Ha="var(--colorPaletteDarkOrangeForeground1)",Sf="var(--colorPaletteDarkOrangeForeground2)",gi="var(--colorPaletteDarkOrangeForeground3)",Va="var(--colorPaletteYellowBackground1)",Bf="var(--colorPaletteYellowBackground2)",Ra="var(--colorPaletteYellowBackground3)",Cf="var(--colorPaletteYellowBorderActive)",ja="var(--colorPaletteYellowBorder1)",Pf="var(--colorPaletteYellowBorder2)",If="var(--colorPaletteYellowForeground1)",Hr="var(--colorPaletteYellowForeground2)",Nf="var(--colorPaletteYellowForeground3)",Tf="var(--colorPaletteYellowForegroundInverted)",Af="var(--colorPaletteBerryBackground1)",zf="var(--colorPaletteBerryBackground2)",_f="var(--colorPaletteBerryBackground3)",Of="var(--colorPaletteBerryBorderActive)",Ff="var(--colorPaletteBerryBorder1)",Ef="var(--colorPaletteBerryBorder2)",Df="var(--colorPaletteBerryForeground1)",Lf="var(--colorPaletteBerryForeground2)",Mf="var(--colorPaletteBerryForeground3)",Hf="var(--colorPaletteMarigoldBackground1)",fi="var(--colorPaletteMarigoldBackground2)",Vf="var(--colorPaletteMarigoldBackground3)",qa="var(--colorPaletteMarigoldBorderActive)",Rf="var(--colorPaletteMarigoldBorder1)",jf="var(--colorPaletteMarigoldBorder2)",qf="var(--colorPaletteMarigoldForeground1)",Wa="var(--colorPaletteMarigoldForeground2)",Wf="var(--colorPaletteMarigoldForeground3)",Gf="var(--colorPaletteLightGreenBackground1)",Xf="var(--colorPaletteLightGreenBackground2)",Uf="var(--colorPaletteLightGreenBackground3)",Kf="var(--colorPaletteLightGreenBorderActive)",Yf="var(--colorPaletteLightGreenBorder1)",Jf="var(--colorPaletteLightGreenBorder2)",Qf="var(--colorPaletteLightGreenForeground1)",Zf="var(--colorPaletteLightGreenForeground2)",eb="var(--colorPaletteLightGreenForeground3)",Ga="var(--colorPaletteAnchorBackground2)",tb="var(--colorPaletteAnchorBorderActive)",Xa="var(--colorPaletteAnchorForeground2)",Ua="var(--colorPaletteBeigeBackground2)",ob="var(--colorPaletteBeigeBorderActive)",Ka="var(--colorPaletteBeigeForeground2)",Ya="var(--colorPaletteBlueBackground2)",rb="var(--colorPaletteBlueBorderActive)",Ja="var(--colorPaletteBlueForeground2)",Qa="var(--colorPaletteBrassBackground2)",nb="var(--colorPaletteBrassBorderActive)",Za="var(--colorPaletteBrassForeground2)",el="var(--colorPaletteBrownBackground2)",ib="var(--colorPaletteBrownBorderActive)",tl="var(--colorPaletteBrownForeground2)",ol="var(--colorPaletteCornflowerBackground2)",sb="var(--colorPaletteCornflowerBorderActive)",rl="var(--colorPaletteCornflowerForeground2)",nl="var(--colorPaletteCranberryBackground2)",ab="var(--colorPaletteCranberryBorderActive)",il="var(--colorPaletteCranberryForeground2)",sl="var(--colorPaletteDarkGreenBackground2)",lb="var(--colorPaletteDarkGreenBorderActive)",al="var(--colorPaletteDarkGreenForeground2)",ll="var(--colorPaletteDarkRedBackground2)",cb="var(--colorPaletteDarkRedBorderActive)",cl="var(--colorPaletteDarkRedForeground2)",dl="var(--colorPaletteForestBackground2)",db="var(--colorPaletteForestBorderActive)",hl="var(--colorPaletteForestForeground2)",ul="var(--colorPaletteGoldBackground2)",hb="var(--colorPaletteGoldBorderActive)",pl="var(--colorPaletteGoldForeground2)",gl="var(--colorPaletteGrapeBackground2)",ub="var(--colorPaletteGrapeBorderActive)",fl="var(--colorPaletteGrapeForeground2)",bl="var(--colorPaletteLavenderBackground2)",pb="var(--colorPaletteLavenderBorderActive)",ml="var(--colorPaletteLavenderForeground2)",vl="var(--colorPaletteLightTealBackground2)",gb="var(--colorPaletteLightTealBorderActive)",$l="var(--colorPaletteLightTealForeground2)",yl="var(--colorPaletteLilacBackground2)",fb="var(--colorPaletteLilacBorderActive)",kl="var(--colorPaletteLilacForeground2)",xl="var(--colorPaletteMagentaBackground2)",bb="var(--colorPaletteMagentaBorderActive)",wl="var(--colorPaletteMagentaForeground2)",Sl="var(--colorPaletteMinkBackground2)",mb="var(--colorPaletteMinkBorderActive)",Bl="var(--colorPaletteMinkForeground2)",Cl="var(--colorPaletteNavyBackground2)",vb="var(--colorPaletteNavyBorderActive)",Pl="var(--colorPaletteNavyForeground2)",Il="var(--colorPalettePeachBackground2)",$b="var(--colorPalettePeachBorderActive)",Nl="var(--colorPalettePeachForeground2)",Tl="var(--colorPalettePinkBackground2)",yb="var(--colorPalettePinkBorderActive)",Al="var(--colorPalettePinkForeground2)",zl="var(--colorPalettePlatinumBackground2)",kb="var(--colorPalettePlatinumBorderActive)",_l="var(--colorPalettePlatinumForeground2)",Ol="var(--colorPalettePlumBackground2)",xb="var(--colorPalettePlumBorderActive)",Fl="var(--colorPalettePlumForeground2)",El="var(--colorPalettePumpkinBackground2)",wb="var(--colorPalettePumpkinBorderActive)",Dl="var(--colorPalettePumpkinForeground2)",Ll="var(--colorPalettePurpleBackground2)",Sb="var(--colorPalettePurpleBorderActive)",Ml="var(--colorPalettePurpleForeground2)",Hl="var(--colorPaletteRoyalBlueBackground2)",Bb="var(--colorPaletteRoyalBlueBorderActive)",Vl="var(--colorPaletteRoyalBlueForeground2)",Rl="var(--colorPaletteSeafoamBackground2)",Cb="var(--colorPaletteSeafoamBorderActive)",jl="var(--colorPaletteSeafoamForeground2)",ql="var(--colorPaletteSteelBackground2)",Pb="var(--colorPaletteSteelBorderActive)",Wl="var(--colorPaletteSteelForeground2)",Gl="var(--colorPaletteTealBackground2)",Ib="var(--colorPaletteTealBorderActive)",Xl="var(--colorPaletteTealForeground2)",Nb="var(--colorStatusSuccessBackground1)",Tb="var(--colorStatusSuccessBackground2)",Ab="var(--colorStatusSuccessBackground3)",zb="var(--colorStatusSuccessForeground1)",_b="var(--colorStatusSuccessForeground2)",Ob="var(--colorStatusSuccessForeground3)",Fb="var(--colorStatusSuccessForegroundInverted)",Eb="var(--colorStatusSuccessBorderActive)",Db="var(--colorStatusSuccessBorder1)",Lb="var(--colorStatusSuccessBorder2)",Mb="var(--colorStatusWarningBackground1)",Hb="var(--colorStatusWarningBackground2)",Vb="var(--colorStatusWarningBackground3)",Rb="var(--colorStatusWarningForeground1)",jb="var(--colorStatusWarningForeground2)",qb="var(--colorStatusWarningForeground3)",Wb="var(--colorStatusWarningForegroundInverted)",Gb="var(--colorStatusWarningBorderActive)",Xb="var(--colorStatusWarningBorder1)",Ub="var(--colorStatusWarningBorder2)",Kb="var(--colorStatusDangerBackground1)",Yb="var(--colorStatusDangerBackground2)",Jb="var(--colorStatusDangerBackground3)",Qb="var(--colorStatusDangerBackground3Hover)",Zb="var(--colorStatusDangerBackground3Pressed)",em="var(--colorStatusDangerForeground1)",tm="var(--colorStatusDangerForeground2)",om="var(--colorStatusDangerForeground3)",rm="var(--colorStatusDangerForegroundInverted)",nm="var(--colorStatusDangerBorderActive)",im="var(--colorStatusDangerBorder1)",sm="var(--colorStatusDangerBorder2)",Lo="var(--borderRadiusNone)",Te="var(--borderRadiusSmall)",B="var(--borderRadiusMedium)",bi="var(--borderRadiusLarge)",mi="var(--borderRadiusXLarge)",am="var(--borderRadius2XLarge)",lm="var(--borderRadius3XLarge)",cm="var(--borderRadius4XLarge)",dm="var(--borderRadius5XLarge)",hm="var(--borderRadius6XLarge)",de="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Ul="var(--fontFamilyMonospace)",Kl="var(--fontFamilyNumeric)",so="var(--fontSizeBase100)",D="var(--fontSizeBase200)",O="var(--fontSizeBase300)",he="var(--fontSizeBase400)",Ft="var(--fontSizeBase500)",Mo="var(--fontSizeBase600)",vi="var(--fontSizeHero700)",$i="var(--fontSizeHero800)",yi="var(--fontSizeHero900)",ki="var(--fontSizeHero1000)",F="var(--fontWeightRegular)",Yl="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",Ho="var(--fontWeightBold)",Vo="var(--lineHeightBase100)",j="var(--lineHeightBase200)",L="var(--lineHeightBase300)",be="var(--lineHeightBase400)",Ro="var(--lineHeightBase500)",xi="var(--lineHeightBase600)",wi="var(--lineHeightHero700)",Si="var(--lineHeightHero800)",Bi="var(--lineHeightHero900)",Ci="var(--lineHeightHero1000)",Vr="var(--shadow2)",jo="var(--shadow4)",Jl="var(--shadow8)",Rr="var(--shadow16)",Ql="var(--shadow28)",Pi="var(--shadow64)",um="var(--shadow2Brand)",pm="var(--shadow4Brand)",gm="var(--shadow8Brand)",fm="var(--shadow16Brand)",bm="var(--shadow28Brand)",mm="var(--shadow64Brand)",I="var(--strokeWidthThin)",ue="var(--strokeWidthThick)",Be="var(--strokeWidthThicker)",jr="var(--strokeWidthThickest)",vm="var(--spacingHorizontalNone)",V="var(--spacingHorizontalXXS)",te="var(--spacingHorizontalXS)",me="var(--spacingHorizontalSNudge)",Ae="var(--spacingHorizontalS)",Ye="var(--spacingHorizontalMNudge)",oe="var(--spacingHorizontalM)",Zl="var(--spacingHorizontalL)",ec="var(--spacingHorizontalXL)",qo="var(--spacingHorizontalXXL)",$m="var(--spacingHorizontalXXXL)",qr="var(--spacingVerticalNone)",Wo="var(--spacingVerticalXXS)",Et="var(--spacingVerticalXS)",ao="var(--spacingVerticalSNudge)",re="var(--spacingVerticalS)",Go="var(--spacingVerticalMNudge)",tc="var(--spacingVerticalM)",Wr="var(--spacingVerticalL)",ym="var(--spacingVerticalXL)",ft="var(--spacingVerticalXXL)",oc="var(--spacingVerticalXXXL)",Gr="var(--durationUltraFast)",Xo="var(--durationFaster)",km="var(--durationFast)",Uo="var(--durationNormal)",Xr="var(--durationGentle)",rc="var(--durationSlow)",Ii="var(--durationSlower)",Ko="var(--durationUltraSlow)",nc="var(--curveAccelerateMax)",bt="var(--curveAccelerateMid)",ic="var(--curveAccelerateMin)",Ni="var(--curveDecelerateMax)",mt="var(--curveDecelerateMid)",sc="var(--curveDecelerateMin)",Ti="var(--curveEasyEaseMax)",Yo="var(--curveEasyEase)",Ur="var(--curveLinear)",xm="var(--zIndexBackground)",wm="var(--zIndexContent)",Sm="var(--zIndexOverlay)",Bm="var(--zIndexPopup)",Cm="var(--zIndexMessages)",Pm="var(--zIndexFloating)",Im="var(--zIndexPriority)",Nm="var(--zIndexDebug)",ac=g`${w("block")} :host{max-width:fit-content;contain:content;color:${T}}.heading{height:44px;display:grid;position:relative;padding-inline:${oe} ${Ye};border-radius:${B};font-family:${v};font-size:${O};font-weight:${F};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${le};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:${Te}}: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:${Ae};grid-column:1/span 1;grid-row:1}.content{margin:0 ${oe}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Ae};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Te};outline:none;border:2px solid ${Do};box-shadow:inset 0 0 0 1px ${ce}}:host([disabled]) .button{color:${z}}: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:${O};line-height:${L}}:host([size='small']) .heading{font-size:${D};line-height:${j}}:host([size='large']) .heading{font-size:${he};line-height:${be}}:host([size='extra-large']) .heading{font-size:${Ft};line-height:${Ro}}: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:${Ae};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:${oe}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Ye} ${oe}}: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 ve(o){return o?typeof o=="string"?new Tt(o):"inline"in o?o.inline():o:Tt.empty}class st{}function at(o){return b`<slot name=end ${A("end")}>${ve(o.end)}</slot>`.inline()}function Re(o){return b`<slot name=start ${A("start")}>${ve(o.start)}</slot>`.inline()}const Tm=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>'),Am=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 zm(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} ${A("expandbutton")}><slot name=heading></slot></button> ${Re(o)}<slot name=marker-expanded>${ve(o.expandedIcon)}</slot><slot name=marker-collapsed>${ve(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const lc=zm({collapsedIcon:Tm,expandedIcon:Am}),cc={name:zu,registry:u.registry,styles:ac,template:lc};function vt(o,...e){const t=Ar.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(o.prototype,i,Object.getOwnPropertyDescriptor(r.prototype,i))}),Ar.locate(r).forEach(i=>t.push(i))})}var _m=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Kr=(o,e,t,r)=>{for(var n=r>1?void 0:r?Om(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&_m(e,t,n),n};class lo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Kr([a({attribute:"heading-level",mode:"fromView",converter:ae})],lo.prototype,"headinglevel",2),Kr([a({mode:"boolean"})],lo.prototype,"expanded",2),Kr([a({mode:"boolean"})],lo.prototype,"disabled",2),Kr([f],lo.prototype,"expandbutton",2);var Fm=Object.defineProperty,Em=Object.getOwnPropertyDescriptor,Ai=(o,e,t,r)=>{for(var n=r>1?void 0:r?Em(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Fm(e,t,n),n};class co extends lo{constructor(){super(...arguments),this.block=!1}}Ai([a],co.prototype,"size",2),Ai([a({attribute:"marker-position"})],co.prototype,"markerPosition",2),Ai([a({mode:"boolean"})],co.prototype,"block",2),vt(co,st),co.define(cc);const Yr={single:"single",multi:"multi"},Dm=`${u.prefix}-accordion`,dc=g`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function Lm(){return b`<template><slot ${Y({property:"slottedAccordionItems",filter:Co()})}></slot></template>`}const hc=Lm(),uc={name:Dm,registry:u.registry,styles:dc,template:hc};function pc(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 Jo(o,e,t){const r=t?.shallow??!1,n=t?.timeout??50,i=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,c=h=>{if(o.querySelector(s)===null||h&&h.timeRemaining()<=0){i?pc(e,{timeout:n}):e();return}pc(c,{timeout:n})};c()}var Mm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,gc=(o,e,t,r)=>{for(var n=r>1?void 0:r?Hm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Mm(e,t,n),n};class Jr extends x{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Jo(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;Pn(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===Yr.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=>Pn(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Yr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,n)=>{Pn(r)&&(this.activeItemIndex===n?(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||Yr.multi,this.setItems()}}gc([a({attribute:"expand-mode"})],Jr.prototype,"expandmode",2),gc([f],Jr.prototype,"slottedAccordionItems",2),Jr.define(uc);const Qo={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Zo={circular:"circular",rounded:"rounded",square:"square"},er={small:"small",medium:"medium",large:"large"},tr={submit:"submit",reset:"reset",button:"button"},Vm={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},Rm=`${u.prefix}-button`,fc=Qo,bc=Zo,mc=er,vc={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"},jm={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},qm=`${u.prefix}-anchor-button`,$c=g`${w("inline-flex")} :host{--icon-spacing:${me};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${P};color:${T};border:${I} solid ${Ve};padding:0 ${oe};min-width:96px;border-radius:${B};font-size:${O};font-family:${v};font-weight:${H};line-height:${L};transition-duration:${Xo};transition-property:background,border,color;transition-timing-function:${Yo};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${_o};color:${qn};border-color:${gt}}:host(:hover:active){background-color:${Fr};border-color:${no};color:${ia};outline-style:none}:host(:focus-visible){border-color:${U};outline:${ue} solid ${U};box-shadow:${jo},0 0 0 2px ${ce}}@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:${te};min-height:24px;min-width:64px;padding:0 ${Ae};border-radius:${Te};font-size:${D};line-height:${j};font-weight:${F}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${bi};padding:0 ${Zl};font-size:${he};line-height:${be}}: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:${de}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${Lo}}:host([appearance='primary']){background-color:${Jn};color:${Ke};border-color:transparent}:host([appearance='primary']:hover){background-color:${Qn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ke}}:host([appearance='primary']:hover:active){background-color:${Zn}}:host([appearance='primary']:focus-visible){border-color:${Ke};box-shadow:${Vr},0 0 0 2px ${ce}}:host([appearance='outline']){background-color:${le}}:host([appearance='outline']:hover){background-color:${Fo}}:host([appearance='outline']:hover:active){background-color:${Eo}}:host([appearance='subtle']){background-color:${Un};color:${Ne};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Oo};color:${At};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${ro};color:${zt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${To}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Ao}}:host([appearance='transparent']){background-color:${le};color:${Ne}}:host([appearance='transparent']:hover){background-color:${Fo};color:${To}}:host([appearance='transparent']:hover:active){background-color:${Eo};color:${Ao}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,ho=g`${$c} :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:${fe};color:${z};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:${le}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${le};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:${le}}@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}}`,Wm=g`${$c} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function Gm(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${Re(o)} <span class=content part=content><slot></slot></span>${at(o)}</template>`}const yc=Gm(),kc={name:qm,registry:u.registry,styles:Wm,template:yc},Qr=CSS.supports("anchor-name: --a"),Xm="anchor"in HTMLElement.prototype,xc=CSS.supports("selector(:state(g))"),wc=new Map;function N(o){return wc.get(o)??wc.set(o,xc?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!xc){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const zi=new WeakMap;function Sc(o,e){if(!o||!e)return!1;if(zi.has(o))return zi.get(o).has(e);const t=new Set(Object.values(o));return zi.set(o,t),t.has(e)}function Dt(o,e="",t="",r,n=""){$(o,`${n}${e}`,!1),(!r||Sc(r,t))&&$(o,`${n}${t}`,!0)}var Um=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,$t=(o,e,t,r)=>{for(var n=r>1?void 0:r?Km(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Um(e,t,n),n};class je 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 jm){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}}$t([a],je.prototype,"download",2),$t([a],je.prototype,"href",2),$t([a],je.prototype,"hreflang",2),$t([a],je.prototype,"ping",2),$t([a],je.prototype,"referrerpolicy",2),$t([a],je.prototype,"rel",2),$t([a],je.prototype,"target",2),$t([a],je.prototype,"type",2);var Ym=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,Zr=(o,e,t,r)=>{for(var n=r>1?void 0:r?Jm(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ym(e,t,n),n};class Lt extends je{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Dt(this.elementInternals,e,t,fc)}shapeChanged(e,t){Dt(this.elementInternals,e,t,bc)}sizeChanged(e,t){Dt(this.elementInternals,e,t,mc)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Zr([a],Lt.prototype,"appearance",2),Zr([a],Lt.prototype,"shape",2),Zr([a],Lt.prototype,"size",2),Zr([a({attribute:"icon-only",mode:"boolean"})],Lt.prototype,"iconOnly",2),vt(Lt,st),Lt.define(kc);const Qm={active:"active",inactive:"inactive"},Zm={circular:"circular",square:"square"},ev={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},_i={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"},Oi={neutral:"neutral",brand:"brand",colorful:"colorful",..._i},tv={_16:16,_20:20,_24:24,_28:28,_32:32,_36:36,_40:40,_48:48,_56:56,_64:64,_72:72,_96:96,_120:120,_128:128},ov=`${u.prefix}-avatar`,yt={fastOutSlowInMax:Ni,fastOutSlowInMid:mt,fastOutSlowInMin:sc,slowOutFastInMax:nc,slowOutFastInMid:bt,slowOutFastInMin:ic,fastEase:Ti,normalEase:Yo,nullEasing:Ur},Bc=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:${O};border-radius:${de};color:${X};background-color:${oo};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:${de}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${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 ${ue} ${P}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${so};font-weight:${F}}: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:${he}}: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:${Ft}}: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:${Mo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${B}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Te}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${bi}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${mi}}:host([data-color='brand']){color:${Wn};background-color:${ei}}:host([data-color='dark-red']){color:${cl};background-color:${ll}}:host([data-color='cranberry']){color:${il};background-color:${nl}}:host([data-color='red']){color:${Oa};background-color:${_a}}:host([data-color='pumpkin']){color:${Dl};background-color:${El}}:host([data-color='peach']){color:${Nl};background-color:${Il}}:host([data-color='marigold']){color:${Wa};background-color:${fi}}:host([data-color='gold']){color:${pl};background-color:${ul}}:host([data-color='brass']){color:${Za};background-color:${Qa}}:host([data-color='brown']){color:${tl};background-color:${el}}:host([data-color='forest']){color:${hl};background-color:${dl}}:host([data-color='seafoam']){color:${jl};background-color:${Rl}}:host([data-color='dark-green']){color:${al};background-color:${sl}}:host([data-color='light-teal']){color:${$l};background-color:${vl}}:host([data-color='teal']){color:${Xl};background-color:${Gl}}:host([data-color='steel']){color:${Wl};background-color:${ql}}:host([data-color='blue']){color:${Ja};background-color:${Ya}}:host([data-color='royal-blue']){color:${Vl};background-color:${Hl}}:host([data-color='cornflower']){color:${rl};background-color:${ol}}:host([data-color='navy']){color:${Pl};background-color:${Cl}}:host([data-color='lavender']){color:${ml};background-color:${bl}}:host([data-color='purple']){color:${Ml};background-color:${Ll}}:host([data-color='grape']){color:${fl};background-color:${gl}}:host([data-color='lilac']){color:${kl};background-color:${yl}}:host([data-color='pink']){color:${Al};background-color:${Tl}}:host([data-color='magenta']){color:${wl};background-color:${xl}}:host([data-color='plum']){color:${Fl};background-color:${Ol}}:host([data-color='beige']){color:${Ka};background-color:${Ua}}:host([data-color='mink']){color:${Bl};background-color:${Sl}}:host([data-color='platinum']){color:${_l};background-color:${zl}}:host([data-color='anchor']){color:${Xa};background-color:${Ga}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Ko},${Xo};transition-delay:${yt.fastEase},${yt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Ko},${Ii};transition-delay:${yt.fastEase},${yt.nullEasing}}:host([active])::before{box-shadow:${Jl};border-style:solid;border-color:${ei}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ue});border-width:${ue}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Be});border-width:${Be}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${jr});border-width:${jr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${jo}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Rr}}: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:${Ql}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Ko},${Xo};transition-delay:${yt.fastOutSlowInMin},${yt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Ko},${Ii};transition-delay:${yt.fastOutSlowInMin},${yt.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}}`,rv=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 nv(){return b`<slot class=default-slot ${Y("slottedDefaults")} ${A("defaultSlot")}></slot><span class=monogram ${A("monogram")}>${o=>o.initials}</span> ${rv}<slot name=badge></slot>`}const Cc=nv(),Pc={name:ov,registry:u.registry,styles:Bc,template:Cc},iv=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,sv=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,av=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,lv=/\s+/g,cv=/[\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 dv(o,e,t){let r="";const n=o.split(" ");return n.length!==0&&(r+=n[0].charAt(0).toUpperCase()),t||(n.length===2?r+=n[1].charAt(0).toUpperCase():n.length===3&&(r+=n[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function hv(o){return o=o.replace(iv,""),o=o.replace(sv,""),o=o.replace(lv," "),o=o.trim(),o}function Ic(o,e,t){return!o||(o=hv(o),cv.test(o)||!t?.allowPhoneInitials&&av.test(o))?"":dv(o,e,t?.firstInitialOnly)}var uv=Object.defineProperty,pv=Object.getOwnPropertyDescriptor,or=(o,e,t,r)=>{for(var n=r>1?void 0:r?pv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&uv(e,t,n),n};class Mt 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)}_.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||Ic(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()})}}or([f],Mt.prototype,"defaultSlot",2),or([f],Mt.prototype,"monogram",2),or([f],Mt.prototype,"slottedDefaults",2),or([a],Mt.prototype,"name",2),or([a],Mt.prototype,"initials",2);var gv=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,uo=(o,e,t,r)=>{for(var n=r>1?void 0:r?fv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&gv(e,t,n),n};const kt=class ss extends Mt{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||Ic(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Oi.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?ss.colors[bv(this.name??"")%ss.colors.length]:this.color??Oi.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)}};kt.colors=Object.values(_i),uo([a],kt.prototype,"active",2),uo([a],kt.prototype,"shape",2),uo([a],kt.prototype,"appearance",2),uo([a({converter:ae})],kt.prototype,"size",2),uo([a],kt.prototype,"color",2),uo([a({attribute:"color-id"})],kt.prototype,"colorId",2);let Nc=kt;const bv=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),n=t%8;e^=(r<<n)+(r>>8-n)}return e};Nc.define(Pc);const Tc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ac={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},mv={circular:"circular",rounded:"rounded",square:"square"},vv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},$v=`${u.prefix}-badge`,zc=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:${j};min-width:20px;height:20px;padding-inline:calc(${te} + ${V});border-radius:${de};border-color:${U};background-color:${Jn};color:${Ke};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}`,_c=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:${so};line-height:${Vo};padding-inline:calc(${V} + ${V})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${D};line-height:${j};padding-inline:calc(${te} + ${V})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${D};line-height:${j};padding-inline:calc(${me} + ${V})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,Oc=g.partial`:host([color='danger']){background-color:${si};color:${Ke}}:host([color='important']){background-color:${T};color:${P}}:host([color='informative']){background-color:${wa};color:${X}}:host([color='severe']){background-color:${ui};color:${Ke}}:host([color='subtle']){background-color:${P};color:${T}}:host([color='success']){background-color:${di};color:${Ke}}:host([color='warning']){background-color:${Ra};color:${ka}}`,Fc=g.partial`:host([appearance='ghost']){color:${zo};background-color:initial}:host([appearance='ghost'][color='danger']){color:${li}}:host([appearance='ghost'][color='important']){color:${T}}:host([appearance='ghost'][color='informative']){color:${X}}:host([appearance='ghost'][color='severe']){color:${gi}}:host([appearance='ghost'][color='subtle']){color:${dt}}:host([appearance='ghost'][color='success']){color:${Ma}}:host([appearance='ghost'][color='warning']){color:${Hr}}`,yv=g.partial`:host([appearance='outline']){border-color:currentColor;color:${zo};background-color:initial}:host([appearance='outline'][color='danger']){color:${li}}:host([appearance='outline'][color='important']){color:${X};border-color:${He}}:host([appearance='outline'][color='informative']){color:${X};border-color:${io}}:host([appearance='outline'][color='severe']){color:${gi}}:host([appearance='outline'][color='subtle']){color:${Wn}}:host([appearance='outline'][color='success']){color:${La}}:host([appearance='outline'][color='warning']){color:${Hr}}`,kv=g.partial`:host([appearance='tint']){background-color:${ti};color:${ya};border-color:${ri}}:host([appearance='tint'][color='danger']){background-color:${ii};color:${Mr};border-color:${ai}}:host([appearance='tint'][color='important']){background-color:${X};color:${P};border-color:${U}}:host([appearance='tint'][color='informative']){background-color:${xa};color:${X};border-color:${io}}:host([appearance='tint'][color='severe']){background-color:${hi};color:${Ha};border-color:${pi}}:host([appearance='tint'][color='subtle']){background-color:${P};color:${X};border-color:${io}}:host([appearance='tint'][color='success']){background-color:${ci};color:${Da};border-color:${Ea}}:host([appearance='tint'][color='warning']){background-color:${Va};color:${Hr};border-color:${ja}}`,Ec=g`:host([shape='square']){border-radius:${Lo}}:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Te}}${kv} ${yv} ${Fc} ${Oc} ${_c} ${zc} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function xv(o={}){return b`${Re(o)}<slot>${ve(o.defaultContent)}</slot>${at(o)}`}const Dc=xv(),Lc={name:$v,registry:u.registry,styles:Ec,template:Dc};var wv=Object.defineProperty,Sv=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var n=r>1?void 0:r?Sv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&wv(e,t,n),n};class Ht extends x{constructor(){super(...arguments),this.appearance=Tc.filled,this.color=Ac.brand}}en([a],Ht.prototype,"appearance",2),en([a],Ht.prototype,"color",2),en([a],Ht.prototype,"shape",2),en([a],Ht.prototype,"size",2),vt(Ht,st),Ht.define(Lc);function Fi(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Re(o)} <span class=content part=content><slot ${Y("defaultSlottedContent")}></slot></span>${at(o)}</template>`}const Mc=Fi(),Hc={name:Rm,registry:u.registry,styles:ho,template:Mc};function lt(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)&&_.enqueue(()=>{o.focus()})}var Bv=Object.defineProperty,Cv=Object.getOwnPropertyDescriptor,ze=(o,e,t,r)=>{for(var n=r>1?void 0:r?Cv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Bv(e,t,n),n};class pe 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!==tr.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(),lt(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 tr.reset:{this.resetForm();break}case tr.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!==tr.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)}}}}pe.formAssociated=!0,ze([f],pe.prototype,"defaultSlottedContent",2),ze([a({mode:"boolean"})],pe.prototype,"disabled",2),ze([a({attribute:"disabled-focusable",mode:"boolean"})],pe.prototype,"disabledFocusable",2),ze([a({attribute:"formaction"})],pe.prototype,"formAction",2),ze([a({attribute:"form"})],pe.prototype,"formAttribute",2),ze([a({attribute:"formenctype"})],pe.prototype,"formEnctype",2),ze([a({attribute:"formmethod"})],pe.prototype,"formMethod",2),ze([a({attribute:"formnovalidate",mode:"boolean"})],pe.prototype,"formNoValidate",2),ze([a({attribute:"formtarget"})],pe.prototype,"formTarget",2),ze([a],pe.prototype,"name",2),ze([a],pe.prototype,"type",2),ze([a],pe.prototype,"value",2);var Pv=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,tn=(o,e,t,r)=>{for(var n=r>1?void 0:r?Iv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Pv(e,t,n),n};class Je extends pe{constructor(){super(...arguments),this.iconOnly=!1}}tn([a],Je.prototype,"appearance",2),tn([a],Je.prototype,"shape",2),tn([a],Je.prototype,"size",2),tn([a({attribute:"icon-only",mode:"boolean"})],Je.prototype,"iconOnly",2),vt(Je,st),Je.define(Hc);const Nv={circular:"circular",square:"square"},Tv={medium:"medium",large:"large"},Av=`${u.prefix}-checkbox`,zv=N("active"),_v=N("bad-input"),y=N("checked"),Ov=N("custom-error"),Fv=N("description"),$e=N("disabled");N("error");const Ev=N("flip-block"),Dv=N("focus-visible");N("has-message");const Vt=N("indeterminate"),po=N("multiple"),Lv=N("open"),Mv=N("pattern-mismatch"),Hv=N("placeholder-shown"),M=N("pressed"),Vv=N("range-overflow"),Rv=N("range-underflow"),jv=N("required"),Ei=N("selected"),qv=N("step-mismatch"),on=N("submenu"),Wv=N("too-long"),Gv=N("too-short"),Xv=N("type-mismatch"),Uv=N("user-invalid"),Kv=N("valid"),Yv=N("value-missing"),Vc=g`${w("inline-flex")} :host{--size:16px;background-color:${P};border-radius:${Te};border:${I} solid ${He};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${ut}}:host(:active){border-color:${pt}}:host(${y}:hover){background-color:${_t};border-color:${Ta}}:host(${y}:active){background-color:${Ot};border-color:${ni}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}.indeterminate-indicator,.checked-indicator{color:${dt};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(${Vt}){border-color:${it}}:host(${y}),:host(${Vt}) .indeterminate-indicator{background-color:${ht}}:host(${Vt}) .indeterminate-indicator{border-radius:${Te};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:${de}}:host([disabled]),:host([disabled]${y}){background-color:${nt};border-color:${fe}}:host([disabled]){cursor:unset}:host([disabled]${Vt}) .indeterminate-indicator{background-color:${fe}}:host([disabled]${y}) .checked-indicator{color:${fe}}@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(${Vt}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${Vt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Vt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,Jv=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>'),Qv=b.partial("<span class=indeterminate-indicator></span>");function Zv(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>${ve(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ve(o.indeterminateIndicator)}</slot></template>`}const Rc=Zv({checkedIndicator:Jv,indeterminateIndicator:Qv}),jc={name:Av,registry:u.registry,styles:Vc,template:Rc};var e$=Object.defineProperty,t$=Object.getOwnPropertyDescriptor,Rt=(o,e,t,r)=>{for(var n=r>1?void 0:r?t$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&e$(e,t,n),n};class _e 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(),lt(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}}_e.formAssociated=!0,Rt([f],_e.prototype,"disabled",2),Rt([a({attribute:"disabled",mode:"boolean"})],_e.prototype,"disabledAttribute",2),Rt([a({attribute:"form"})],_e.prototype,"formAttribute",2),Rt([a({attribute:"checked",mode:"boolean"})],_e.prototype,"initialChecked",2),Rt([a({attribute:"value",mode:"fromView"})],_e.prototype,"initialValue",2),Rt([a],_e.prototype,"name",2),Rt([a({mode:"boolean"})],_e.prototype,"required",2);var o$=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,Di=(o,e,t,r)=>{for(var n=r>1?void 0:r?r$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&o$(e,t,n),n};class rr extends _e{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)}}Di([f],rr.prototype,"indeterminate",2),Di([a],rr.prototype,"shape",2),Di([a],rr.prototype,"size",2),rr.define(jc);const n$=Qo,i$=Zo,s$=er,a$=`${u.prefix}-compound-button`,qc=g`${ho} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${O};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ne};line-height:100%;font-size:${D};font-weight:${F}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${At}}:host(:active) ::slotted([slot='description']){color:${zt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ke}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ne}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${To}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Ao}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${z}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${me}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${te}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ae}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${be}}:host([size='large']) ::slotted([slot='description']){font-size:${O}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function l$(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Re(o)} <span class=content part=content><slot ${Y("defaultSlottedContent")}></slot><slot name=description></slot></span>${at(o)}</template>`}const Wc=l$(),Gc={name:a$,registry:u.registry,styles:qc,template:Wc};class Xc extends Je{}Xc.define(Gc);const c$={filled:"filled",ghost:"ghost"},d$={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},h$={circular:"circular",rounded:"rounded"},u$={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Uc=`${u.prefix}-counter-badge`,Kc=g`:host([shape='rounded']){border-radius:${B}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Te}}${_c} ${Oc} ${Fc} ${zc} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function p$(o={}){return b`${Re(o)} <span>${e=>e.displayValue}</span> ${at(o)}`}const Yc=p$(),Jc={name:Uc,registry:u.registry,styles:Kc,template:Yc};var g$=Object.defineProperty,f$=Object.getOwnPropertyDescriptor,nr=(o,e,t,r)=>{for(var n=r>1?void 0:r?f$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&g$(e,t,n),n};class jt 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}`}}nr([a({converter:ae})],jt.prototype,"count",2),nr([a({attribute:"overflow-count",converter:ae})],jt.prototype,"overflowCount",2),nr([a({attribute:"show-zero",mode:"boolean"})],jt.prototype,"showZero",2),nr([a({mode:"boolean"})],jt.prototype,"dot",2),nr([Se],jt.prototype,"displayValue",1);var b$=Object.defineProperty,m$=Object.getOwnPropertyDescriptor,rn=(o,e,t,r)=>{for(var n=r>1?void 0:r?m$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&b$(e,t,n),n};class qt extends jt{}rn([a],qt.prototype,"appearance",2),rn([a],qt.prototype,"color",2),rn([a],qt.prototype,"shape",2),rn([a],qt.prototype,"size",2),vt(qt,st),qt.define(Jc);const xt={modal:"modal",nonModal:"non-modal",alert:"alert"};function Li(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const v$=`${u.prefix}-dialog`,Qc=g`@layer base{:host{--dialog-backdrop:${Er};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${P};border-radius:${mi};border:none;box-shadow:${Pi};color:${T};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:${Xr};transition-timing-function:${mt};opacity:0}::backdrop{transition-timing-function:${Ur}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${bt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${U}}}}`,Zc=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()} ${A("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,ed={name:v$,registry:u.registry,styles:Qc,template:Zc};var $$=Object.defineProperty,y$=Object.getOwnPropertyDescriptor,Qe=(o,e,t,r)=>{for(var n=r>1?void 0:r?y$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$$(e,t,n),n};class Oe 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!==xt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===xt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),_.enqueue(()=>{this.type=this.type??xt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){_.enqueue(()=>{this.emitBeforeToggle(),this.type===xt.alert||this.type===xt.modal?this.dialog.showModal():this.type===xt.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==xt.alert&&e.target===this.dialog&&this.hide(),!0}}Qe([f],Oe.prototype,"dialog",2),Qe([a({attribute:"aria-describedby"})],Oe.prototype,"ariaDescribedby",2),Qe([a({attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledby",2),Qe([a({attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),Qe([a],Oe.prototype,"type",2),Qe([Se],Oe.prototype,"dialogDescribedby",1),Qe([Se],Oe.prototype,"dialogLabel",1),Qe([Se],Oe.prototype,"dialogLabelledby",1),Qe([Se],Oe.prototype,"dialogModal",1),Qe([Se],Oe.prototype,"dialogRole",1),Oe.define(ed);const k$=`${u.prefix}-dialog-body`,td=g`${w("grid")} :host{background:${P};box-sizing:border-box;gap:${re};padding:${ft} ${qo};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${P};color:${T};column-gap:8px;display:flex;font-family:${v};font-size:${Ft};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${Ro};margin-block-end:calc(${re} * -1);margin-block-start:calc(${ft} * -1);padding-block-end:${re};padding-block-start:${ft}}.content{box-sizing:border-box;color:${T};font-family:${v};font-size:${O};font-weight:${F};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${P};display:flex;flex-direction:column;gap:${re};inset-block-end:0;margin-block-end:calc(${ft} * -1);padding-block-end:${ft};padding-block-start:${Wr}}::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(${re} * -1);padding-block-start:${re}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,od=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>`,rd={name:k$,registry:u.registry,styles:td,template:od};class nd extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Li(t)&&t.hide()}return!0}}nd.define(rd);const ye={horizontal:"horizontal",vertical:"vertical"},go={separator:"separator",presentation:"presentation"},Mi=ye,x$={center:"center",start:"start",end:"end"},w$={strong:"strong",brand:"brand",subtle:"subtle"},S$=`${u.prefix}-divider`,id=g`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${io};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ne};font-family:${v};font-size:${D};font-weight:${F};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:${Ve}}:host([appearance='strong']) ::slotted(*){color:${T}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${oi}}:host([appearance='brand']) ::slotted(*){color:${zo}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ia}}: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 B$(){return b`<slot></slot>`}const sd=B$(),ad={name:S$,registry:u.registry,styles:id,template:sd};var C$=Object.defineProperty,P$=Object.getOwnPropertyDescriptor,ld=(o,e,t,r)=>{for(var n=r>1?void 0:r?P$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&C$(e,t,n),n};class nn extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??go.separator,this.role!==go.presentation&&(this.elementInternals.ariaOrientation=this.orientation??Mi.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??go.separator}`),t===go.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==go.presentation?t??null:null,Dt(this.elementInternals,e,t,Mi)}}ld([a],nn.prototype,"role",2),ld([a],nn.prototype,"orientation",2);var I$=Object.defineProperty,N$=Object.getOwnPropertyDescriptor,Hi=(o,e,t,r)=>{for(var n=r>1?void 0:r?N$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&I$(e,t,n),n};class ir extends nn{}Hi([a({attribute:"align-content"})],ir.prototype,"alignContent",2),Hi([a],ir.prototype,"appearance",2),Hi([a({mode:"boolean"})],ir.prototype,"inset",2),ir.define(ad);const cd={start:"start",end:"end"},dd={small:"small",medium:"medium",large:"large",full:"full"},fo={nonModal:"non-modal",modal:"modal",inline:"inline"},T$=`${u.prefix}-drawer`,hd=g`${w("block")} :host{--dialog-backdrop:${Er}}: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:${I} solid ${U};border-inline-end-color:${U};border-inline-start-color:var(--drawer-separator,${U});box-shadow:${Pi};box-sizing:border-box;color:${T};font-family:${v};font-size:${O};font-weight:${F};height:100%;line-height:${L};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${qo});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:${Xr};transition-timing-function:${mt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${bt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${bt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Xr};transition-timing-function:${mt};background:var(--dialog-backdrop,${Er});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ur}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function A$(){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()} ${A("dialog")}><slot></slot></dialog>`}const ud=A$(),pd={name:T$,registry:u.registry,styles:hd,template:ud};var z$=Object.defineProperty,_$=Object.getOwnPropertyDescriptor,Fe=(o,e,t,r)=>{for(var n=r>1?void 0:r?_$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&z$(e,t,n),n};class ke extends x{constructor(){super(...arguments),this.position=cd.start,this.size=dd.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===fo.modal)return!0}get dialogRole(){return this.dialog&&this.type===fo.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),_.enqueue(()=>{this.type=this.type??fo.modal})}show(){_.enqueue(()=>{this.emitBeforeToggle(),this.type===fo.inline||this.type===fo.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()}}Fe([a],ke.prototype,"type",2),Fe([a({attribute:"aria-labelledby"})],ke.prototype,"ariaLabelledby",2),Fe([a({attribute:"aria-describedby"})],ke.prototype,"ariaDescribedby",2),Fe([a],ke.prototype,"position",2),Fe([f],ke.prototype,"role",2),Fe([a({attribute:"size"})],ke.prototype,"size",2),Fe([f],ke.prototype,"dialog",2),Fe([Se],ke.prototype,"dialogDescribedby",1),Fe([Se],ke.prototype,"dialogLabel",1),Fe([Se],ke.prototype,"dialogLabelledby",1),Fe([Se],ke.prototype,"dialogModal",1),Fe([Se],ke.prototype,"dialogRole",1),ke.define(pd);const O$=`${u.prefix}-drawer-body`,Vi=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${F};`,F$=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${H};`,E$=g.partial`font-family:${v};font-size:${O};line-height:${L};font-weight:${Ho};`,gd=g.partial`font-family:${v};font-size:${he};line-height:${be};font-weight:${F};`,Ri=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${F};`,D$=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${H};`,L$=g.partial`font-family:${v};font-size:${D};line-height:${j};font-weight:${Ho};`,M$=g.partial`font-family:${v};font-size:${so};line-height:${Vo};font-weight:${F};`,H$=g.partial`font-family:${v};font-size:${so};line-height:${Vo};font-weight:${H};`,fd=g.partial`font-family:${v};font-size:${Ft};line-height:${Ro};font-weight:${H};`,V$=g.partial`font-family:${v};font-size:${he};line-height:${be};font-weight:${H};`,R$=g.partial`font-family:${v};font-size:${he};line-height:${be};font-weight:${Ho};`,j$=g.partial`font-family:${v};font-size:${$i};line-height:${Si};font-weight:${H};`,q$=g.partial`font-family:${v};font-size:${vi};line-height:${wi};font-weight:${H};`,W$=g.partial`font-family:${v};font-size:${Mo};line-height:${xi};font-weight:${H};`,G$=g.partial`font-family:${v};font-size:${yi};line-height:${Bi};font-weight:${H};`,X$=g.partial`font-family:${v};font-size:${ki};line-height:${Ci};font-weight:${H};`,bd=g`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${ec};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${fd}}.footer{display:flex;justify-content:flex-start;gap:${oe}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function U$(){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 md=U$(),vd={name:O$,registry:u.registry,styles:bd,template:md};class $d extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;Li(t,"-drawer")&&t.hide()}return!0}}$d.define(vd);function K$(o,e="-dropdown"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const yd={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Y$={small:"small",medium:"medium",large:"large"},sn={combobox:"combobox",dropdown:"dropdown",select:"select"},J$=`${u.prefix}-dropdown`,kd=g`${w("inline-flex")} :host{box-sizing:border-box;color:${T};cursor:pointer}:host(${Hv}){color:${Or}}.control{appearance:none;background-color:${P};border-radius:${B};border:${I} solid ${U};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:${ao} ${Ye};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${Vi}}:host([size='small']) .control{column-gap:${V};padding:${Et} ${me};${Ri}}:host([size='large']) .control{column-gap:${Ae};padding:${re} ${oe};${gd}}::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:${it};height:${ue};scale:0 1;transition:scale ${Gr} ${mt}}:host(:where(:focus-within)) .control{border-radius:${B};box-shadow:inset 0 0 0 1px ${Do};outline:${ue} solid ${ce}}:host(:where(${Lv},:focus-within)) .control::after{scale:1 1;transition-duration:${Uo};transition-timing-function:${bt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${He}}:host([appearance='transparent']) .control{--control-border-color:${Dr};background-color:${le};border-radius:${Lo}}:host([appearance='outline']) .control{--control-border-color:${Ve}}:host([appearance='outline']) .control:hover{--control-border-color:${gt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${ut}}:host([appearance='outline']) .control:hover::after{background-color:${_t}}:host([appearance='outline']) .control:active{--control-border-color:${no}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${pt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ot}}:host([appearance='filled-darker']) .control{background-color:${to}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${U}}: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:${fe};background-color:${nt};color:${z}}::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} + (${ao} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${j} + (${Et} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${be} + (${re} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,Q$=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${A("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>`,xd=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 ${A("control")}>`,wd=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 ${A("control")}>${o=>o.displayValue}</button>`;function Z$(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 ${A("controlSlot")}></slot><slot name=indicator ${A("indicatorSlot")}>${ve(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const Sd=Z$({indicator:Q$}),Bd={name:J$,registry:u.registry,styles:kd,template:Sd};function ji(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ey=`${u.prefix}-listbox`;function Wt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ty=`${u.prefix}-option`,ct={ltr:"ltr",rtl:"rtl"},qi=o=>o.closest("[dir]")?.dir==="rtl"?ct.rtl:ct.ltr;function Cd(o){return o.closest("[lang]")?.lang??"en"}let oy=0;function Ze(o="id-"){const e=`${o}${oy++}`;return document.getElementById(e)?Ze(o):e}var ry=Object.defineProperty,ny=Object.getOwnPropertyDescriptor,J=(o,e,t,r)=>{for(var n=r>1?void 0:r?ny(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ry(e,t,n),n};const q=class wo extends x{constructor(){super(),this.activeIndex=0,this.id=Ze("dropdown-"),this.required=!1,this.type=sn.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||qi(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((n,i)=>{n.active=i===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ze("input-"))}disabledChanged(e,t){this.listbox&&_.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(Cd(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"),_.enqueue(()=>{this.options.forEach(n=>{n.disabled=n.disabledAttribute||this.disabled,n.name=this.name}),this.enabledOptions.filter(n=>n.defaultSelected).forEach((n,i)=>{n.selected=this.multiple||i===0}),this.setValidity()}),Qr){const n=Ze("--dropdown-anchor-");this.style.setProperty("anchor-name",n),this.listbox.style.setProperty("position-anchor",n)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&_.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,Qr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Wt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===sn.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Wt(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(Wt(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(Cd(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===sn.combobox){xd.render(this,this);return}wd.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):[],n=!1;if(!r.length&&t&&(r=this.filterOptions(e),n=!0),r.length){const i=this.enabledOptions[this.activeIndex],s=r.indexOf(i),c=n?r[this.getEnabledIndexInBounds(s+1,r.length)]:s>=0?i:r[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 r=this.activeIndex;r+=t;let n=this.getEnabledIndexInBounds(r);return n===0&&this.freeformOption?.hidden&&(n=this.getEnabledIndexInBounds(r+t)),this.activeIndex=n,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Wt(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 n=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:n,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Jo(this,()=>{const r=t.assignedElements().find(n=>ji(n));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(),_.enqueue(()=>{this.insertControl()}),lt(this)}disconnectedCallback(){wo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(wo.AnchorPositionFallbackObserver||(wo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:n,target:i})=>{if(ji(i)){if(r.bottom>window.innerHeight){$(i.elementInternals,"flip-block",!0);return}r.top<0&&$(i.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,wo.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}wo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};q.formAssociated=!0,J([Se],q.prototype,"activeDescendant",1),J([f],q.prototype,"activeIndex",2),J([a({attribute:"aria-labelledby",mode:"fromView"})],q.prototype,"ariaLabelledBy",2),J([f],q.prototype,"control",2),J([a({mode:"boolean"})],q.prototype,"disabled",2),J([Se],q.prototype,"displayValue",1),J([a({attribute:"id"})],q.prototype,"id",2),J([f],q.prototype,"indicator",2),J([f],q.prototype,"indicatorSlot",2),J([a({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",2),J([f],q.prototype,"listbox",2),J([a({mode:"boolean"})],q.prototype,"multiple",2),J([a],q.prototype,"name",2),J([f],q.prototype,"open",2),J([a],q.prototype,"placeholder",2),J([a({mode:"boolean"})],q.prototype,"required",2),J([a],q.prototype,"type",2),J([a({attribute:"value"})],q.prototype,"valueAttribute",2);let Pd=q;var iy=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,Id=(o,e,t,r)=>{for(var n=r>1?void 0:r?sy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&iy(e,t,n),n};class an extends Pd{constructor(){super(...arguments),this.appearance=yd.outline}}Id([a],an.prototype,"appearance",2),Id([a],an.prototype,"size",2),an.define(Bd);const Nd={above:"above",after:"after",before:"before"},Ce={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"},ay=`${u.prefix}-field`,Td=g`${w("inline-grid")} :host{color:${T};align-items:center;gap:0 ${oe};justify-items:start}:has([slot='message']){color:${T};row-gap:${re}}: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:${oe}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Wo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${tc}}:host(${jv}) ::slotted([slot='label'])::after{content:'*'/'';color:${Mr};margin-inline-start:${te}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${X};font-family:${v};font-size:${D};font-weight:${F};grid-area:message;line-height:${j};margin-block-start:${Wo}}:host(${Dv}:focus-within){border-radius:${B};outline:${ue} solid ${ce}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${O};font-weight:${F};grid-area:label;line-height:${L};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${D};line-height:${j}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${be}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${$e}){cursor:default}::slotted([flag]){display:none}:host(${_v}) ::slotted([flag='${Ce.badInput}']),:host(${Ov}) ::slotted([flag='${Ce.customError}']),:host(${Mv}) ::slotted([flag='${Ce.patternMismatch}']),:host(${Vv}) ::slotted([flag='${Ce.rangeOverflow}']),:host(${Rv}) ::slotted([flag='${Ce.rangeUnderflow}']),:host(${qv}) ::slotted([flag='${Ce.stepMismatch}']),:host(${Wv}) ::slotted([flag='${Ce.tooLong}']),:host(${Gv}) ::slotted([flag='${Ce.tooShort}']),:host(${Xv}) ::slotted([flag='${Ce.typeMismatch}']),:host(${Yv}) ::slotted([flag='${Ce.valueMissing}']),:host(${Kv}) ::slotted([flag='${Ce.valid}']){display:block}`,Ad=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 ${Y("labelSlot")}></slot><slot name=input part=input ${Y("slottedInputs")}></slot><slot name=message part=message ${Y({property:"messageSlot",filter:Co("[flag]")})}></slot></template>`,zd={name:ay,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:Td,template:Ad};var ly=Object.defineProperty,cy=Object.getOwnPropertyDescriptor,ln=(o,e,t,r)=>{for(var n=r>1?void 0:r?cy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ly(e,t,n),n};class bo extends x{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 r=t?.filter(n=>n.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[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||Ze("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(Ce))$(this.elementInternals,t,this.input.validity[e])}}ln([f],bo.prototype,"labelSlot",2),ln([f],bo.prototype,"messageSlot",2),ln([f],bo.prototype,"slottedInputs",2),ln([f],bo.prototype,"input",2);var dy=Object.defineProperty,hy=Object.getOwnPropertyDescriptor,uy=(o,e,t,r)=>{for(var n=r>1?void 0:r?hy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&dy(e,t,n),n};class Wi extends bo{constructor(){super(...arguments),this.labelPosition=Nd.above}}uy([a({attribute:"label-position"})],Wi.prototype,"labelPosition",2),Wi.define(zd);const py={none:"none",center:"center",contain:"contain",cover:"cover"},gy={circular:"circular",rounded:"rounded",square:"square"},fy=`${u.prefix}-image`,_d=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:${I} solid ${io}}: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:${jo}}:host([shape='circular']) ::slotted(img){border-radius:${de}}:host([shape='rounded']) ::slotted(img){border-radius:${B}}`,Od=b`<slot></slot>`,Fd={name:fy,registry:u.registry,styles:_d,template:Od};var by=Object.defineProperty,my=Object.getOwnPropertyDescriptor,sr=(o,e,t,r)=>{for(var n=r>1?void 0:r?my(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&by(e,t,n),n};class Gt extends x{}sr([a({mode:"boolean"})],Gt.prototype,"block",2),sr([a({mode:"boolean"})],Gt.prototype,"bordered",2),sr([a({mode:"boolean"})],Gt.prototype,"shadow",2),sr([a],Gt.prototype,"fit",2),sr([a],Gt.prototype,"shape",2),Gt.define(Fd);const vy={small:"small",medium:"medium",large:"large"},$y={regular:"regular",semibold:"semibold"},yy=`${u.prefix}-label`,Ed=g`${w("inline-flex")} :host{color:${T};cursor:pointer;font-family:${v};font-size:${O};font-weight:${F};line-height:${L};user-select:none}.asterisk{color:${Mr};margin-inline-start:${te}}:host([size='small']){font-size:${D};line-height:${j}}:host([size='large']){font-size:${he};line-height:${be}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${z}}`;function ky(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Dd=ky(),Ld={name:yy,registry:u.registry,styles:Ed,template:Dd};var xy=Object.defineProperty,wy=Object.getOwnPropertyDescriptor,cn=(o,e,t,r)=>{for(var n=r>1?void 0:r?wy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&xy(e,t,n),n};class mo extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}cn([a],mo.prototype,"size",2),cn([a],mo.prototype,"weight",2),cn([a({mode:"boolean"})],mo.prototype,"disabled",2),cn([a({mode:"boolean"})],mo.prototype,"required",2),mo.define(Ld);const Sy={subtle:"subtle"},By=vc,Cy=`${u.prefix}-link`,Md=g`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${da};cursor:pointer;font-family:${v};font-size:${O};font-weight:${F};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${ha}}:host(:active){color:${ua}}:host([appearance='subtle']:hover){color:${ga}}:host([appearance='subtle']:active){color:${fa}}}:host([appearance='subtle']){color:${pa}}: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 Py(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Hd=Py(),Vd={name:Cy,registry:u.registry,styles:Md,template:Hd};var Iy=Object.defineProperty,Ny=Object.getOwnPropertyDescriptor,Rd=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ny(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Iy(e,t,n),n};class dn extends je{constructor(){super(...arguments),this.inline=!1}}Rd([a],dn.prototype,"appearance",2),Rd([a({mode:"boolean"})],dn.prototype,"inline",2),dn.define(Vd);const jd=g`${w("inline-flex")} :host{background-color:${P};border-radius:${B};border:${I} solid ${U};box-shadow:${Rr};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${te};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]${Ev}){margin-block-start:revert;translate:0 -100%}}`;function qd(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${A("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const Wd=qd(),Gd={name:ey,registry:u.registry,styles:jd,template:Wd};var Ty=Object.defineProperty,Ay=Object.getOwnPropertyDescriptor,ar=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ay(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ty(e,t,n),n};class Xt 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),_.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,n)=>{r.elementInternals.ariaPosInSet=`${n+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)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Wt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Jo(this,()=>{this.id=this.id||Ze("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,n)=>{const i=n===e;r.selected=i,i&&(t=n)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Jo(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Wt(r));this.options=t}})}}ar([f],Xt.prototype,"defaultSlot",2),ar([f],Xt.prototype,"multiple",2),ar([f],Xt.prototype,"options",2),ar([f],Xt.prototype,"selectedIndex",2),ar([f],Xt.prototype,"dropdown",2),Xt.define(Gd);const zy=Qo,_y=Zo,Oy=er,Fy=`${u.prefix}-menu-button`,Ey=ho,Xd=Fi({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>')}),Ud={name:Fy,registry:u.registry,styles:Ey,template:Xd};class Kd extends Je{}Kd.define(Ud);const Q={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},Dy={[Q.menuitem]:"menuitem",[Q.menuitemcheckbox]:"menuitemcheckbox",[Q.menuitemradio]:"menuitemradio"};function Ly(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const My=`${u.prefix}-menu-item`,Yd=g`${w("grid")} :host{--indent:0;align-items:center;background:${P};border-radius:${B};color:${Ne};contain:layout;cursor:pointer;flex-shrink:0;font:${F} ${O}/${L} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${_o};color:${At}}:host(:active){background-color:${Gn};color:${zt}}:host(:active) ::slotted([slot='start']){color:${ma}}:host(${$e}){background-color:${nt};color:${z}}:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:${z}}:host(:focus-visible){border-radius:${B};outline:2px solid ${ce}}.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(${on})) .submenu-glyph,:host(:not(${on})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${X};font:${F} ${D}/${j} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${on}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${on}){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(${$e}),:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:GrayText}}`,Hy=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>'),Vy=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 Ry(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>${ve(o.indicator)}</slot>${Re(o)}<div part=content class=content><slot></slot></div>${at(o)}<slot name=submenu-glyph>${ve(o.submenuGlyph)}</slot><slot name=submenu ${Y({property:"slottedSubmenu"})}></slot></template>`}const Jd=Ry({indicator:Hy,submenuGlyph:Vy}),Qd={name:My,registry:u.registry,styles:Yd,template:Jd};var jy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,vo=(o,e,t,r)=>{for(var n=r>1?void 0:r?qy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&jy(e,t,n),n};class et extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Q.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 Q.menuitemcheckbox:this.checked=!this.checked;break;case Q.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Q.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??Q.menuitem}checkedChanged(e,t){const r=this.role!==Q.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??Q.menuitem,this.elementInternals.ariaChecked=this.role!==Q.menuitem?`${!!this.checked}`:null,lt(this)}}vo([a({mode:"boolean"})],et.prototype,"disabled",2),vo([a],et.prototype,"role",2),vo([a({mode:"boolean"})],et.prototype,"checked",2),vo([a({mode:"boolean"})],et.prototype,"hidden",2),vo([f],et.prototype,"slottedSubmenu",2),vo([f],et.prototype,"submenu",2),vt(et,st),et.define(Qd);const Wy=`${u.prefix}-menu-list`,Zd=g`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${P};border:1px solid ${U};border-radius:${B};box-shadow:${Rr};padding:4px;row-gap:2px}`;function Gy(){return b`<template focusgroup=menu><slot ${Y("items")}></slot></template>`}const eh=Gy(),th={name:Wy,registry:u.registry,styles:Zd,template:eh};var lr={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Gi={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Xi(o,e){return o.contains(e)}function Xy(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function Uy(o,e,t){const r="forward",n="backward",i="block",s="inline";if(Ky(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?n:r: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?i:s,k=d?s:i,S=d?c.endsWith("-rl")!==l:l,Le=d&&l,Bt={ArrowUp:{axis:k,dir:Le?r:n},ArrowDown:{axis:k,dir:Le?n:r},ArrowLeft:{axis:p,dir:S?r:n},ArrowRight:{axis:p,dir:S?n:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!Bt||t&&Bt.axis&&Bt.axis!==t?null:Bt.dir}function Ky(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 Yy=globalThis.__FOCUSGROUP_POLYFILL__,Jy=Yy.o;function Ui(){for(const o of Jy)o.takeRecords()}var hn=class{#t;#e;#s=Gi.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#n=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(Xy()||!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.#k.bind(this),r)}disconnect(){this.#i(),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(lr.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Gi.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Gi.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(lr.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.#i(),this.#m(o)),this.#e.flush?.()}#b(){this.#i();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(lr.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(lr.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(Uy(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.#n&&(!o.relatedTarget||!Xi(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#i(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#n&&this.#i();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#k(o){if(!o.relatedTarget||!Xi(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&Xi(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:n}of this.#e.items())r.tabIndex=n?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(lr.AUTHOR_TABINDEX);this.#n||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#n=!0,Ui())}#i(){this.#n&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#n=!1,this.#l=null,this.#e.flush?.(),Ui())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#i(),Ui()}};class un{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 Qy=Object.defineProperty,Zy=Object.getOwnPropertyDescriptor,e0=(o,e,t,r)=>{for(var n=r>1?void 0:r?Zy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Qy(e,t,n),n};const Ki=class as extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&cs(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 i=r-1;i>=0;--i){const s=this.menuChildren[i],c=s.role;if(c===Q.menuitemradio&&(s.checked=!1),c==="separator")break}const n=this.menuChildren.length-1;for(let i=r+1;i<=n;++i){const s=this.menuChildren[i],c=s.role;if(c===Q.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"),_.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!==Q.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,n)=>{const i=as.elementIndent(n);return Math.max(r,i)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return Ly(e)||cs(e)&&!!e.role&&e.role in as.focusableElementRoles}};Ki.focusableElementRoles=Q,e0([f],Ki.prototype,"items",2);let oh=Ki;class rh extends oh{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new un(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}rh.define(th);const t0=`${u.prefix}-menu`,nh=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:${I} solid ${Ve};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function o0(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${A("primaryAction")}></slot><slot name=trigger ${Y({property:"slottedTriggers",filter:Co()})}></slot><slot ${Y({property:"slottedMenuList",filter:Co()})}></slot></template>`}const ih=o0(),sh={name:t0,registry:u.registry,styles:nh,template:ih};var r0=Object.defineProperty,n0=Object.getOwnPropertyDescriptor,wt=(o,e,t,r)=>{for(var n=r>1?void 0:r?n0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&r0(e,t,n),n};class tt extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof et&&(e.target.getAttribute("role")===Q.menuitemcheckbox||e.target.getAttribute("role")===Q.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(){_.enqueue(()=>{this._menuList.focus()})}focusTrigger(){_.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}}}wt([a({attribute:"open-on-hover",mode:"boolean"})],tt.prototype,"openOnHover",2),wt([a({attribute:"open-on-context",mode:"boolean"})],tt.prototype,"openOnContext",2),wt([a({attribute:"close-on-scroll",mode:"boolean"})],tt.prototype,"closeOnScroll",2),wt([a({attribute:"persist-on-item-click",mode:"boolean"})],tt.prototype,"persistOnItemClick",2),wt([a({mode:"boolean"})],tt.prototype,"split",2),wt([f],tt.prototype,"slottedMenuList",2),wt([f],tt.prototype,"slottedTriggers",2),wt([f],tt.prototype,"primaryAction",2),tt.define(sh);const i0={multiline:"multiline",singleline:"singleline"},s0={rounded:"rounded",square:"square"},a0={success:"success",warning:"warning",error:"error",info:"info"},l0=`${u.prefix}-message-bar`,ah=g`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${D};line-height:${j};width:100%;background:${to};color:${X};border:1px solid ${Ve};padding-inline:${oe};border-radius:${B};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:${ci};border-color:${Fa}}:host([intent='warning']){background-color:${hi};border-color:${pi}}:host([intent='error']){background-color:${ii};border-color:${ai}}: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:${Go};padding-inline:${oe}}.content{grid-area:body;max-width:520px;padding-block:${Go};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:${Ae}}: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:${Ae};gap:${Ae}}:host([layout='multiline']) .actions{margin-block-start:${Go};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${re}}::slotted(*){font-size:inherit}`;function c0(){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 lh=c0(),ch={name:l0,registry:u.registry,styles:ah,template:lh};var d0=Object.defineProperty,h0=Object.getOwnPropertyDescriptor,Yi=(o,e,t,r)=>{for(var n=r>1?void 0:r?h0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&d0(e,t,n),n};class cr extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Yi([a],cr.prototype,"shape",2),Yi([a],cr.prototype,"layout",2),Yi([a],cr.prototype,"intent",2),cr.define(ch);const dh=g`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${Vi} align-items:center;background-color:${P};border-radius:${B};box-sizing:border-box;color:${Ne};column-gap:${te};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${me};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${_o};color:${At}}:host(:active){background-color:${Fr};color:${zt}}:host(:disabled){background-color:${P};color:${z};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(${Ei}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${po}) .checkmark-16-filled,:host(:not(${po})) .checkmark-12-regular{display:none}:host(${po}) .checkmark-12-regular{background-color:${P};border-radius:${Te};border:${I} solid ${He};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${po}${Ei}) .checkmark-12-regular{background-color:${ht};border-color:${it};fill:${dt}}:host(:disabled${po}) .checkmark-12-regular{border-color:${fe}}:host(:disabled${po}${Ei}) .checkmark-12-regular{background-color:${nt}}:host(${zv}){border:${ue} solid ${ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${me}}}:host(${Fv}){column-gap:${me};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${X};grid-area:description;${Ri}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,u0=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 p0(o={}){return b`<slot name=checked-indicator>${ve(o.checkedIndicator)}</slot>${Re(o)}<div class=content part=content><slot ${Y({property:"freeformOutputs",filter:Co("output")})}></slot></div><div class=description part=description><slot name=description ${Y("descriptionSlot")}></slot></div>`}const hh=p0({checkedIndicator:u0}),uh={name:ty,registry:u.registry,styles:dh,template:hh};var g0=Object.defineProperty,f0=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var n=r>1?void 0:r?f0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&g0(e,t,n),n};class ne extends x{constructor(){super(),this.active=!1,this.id=Ze("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,_.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,xe([f],ne.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),xe([f],ne.prototype,"descriptionSlot",2),xe([f],ne.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ne.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ne.prototype,"freeform",2),xe([a({attribute:"id"})],ne.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),xe([f],ne.prototype,"multiple",2),xe([a],ne.prototype,"name",2),xe([f],ne.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2),ne.define(uh);const b0={medium:"medium",large:"large"},m0={rounded:"rounded",square:"square"},ph={success:"success",warning:"warning",error:"error"},v0=`${u.prefix}-progress-bar`,gh=g`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${oo};border-radius:${B};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:${Lo}}.indicator{background-color:${ht};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,${oo} 0%,${le} 50%,${oo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${si}}:host([validation-state='warning']) .indicator{background-color:${ui}}:host([validation-state='success']) .indicator{background-color:${di}}@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 $0(){return b`<div class=indicator part=indicator ${A("indicator")}></div>`}const fh=$0(),bh={name:v0,registry:u.registry,styles:gh,template:fh};var y0=Object.defineProperty,k0=Object.getOwnPropertyDescriptor,dr=(o,e,t,r)=>{for(var n=r>1?void 0:r?k0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&y0(e,t,n),n};class Ut extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){Dt(this.elementInternals,e,t,ph)}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>))")||_.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,n=t-e,i=n===0?0:Math.fround((r-e)/n*100);this.indicator?.style.setProperty("width",`${i}%`)})}}dr([f],Ut.prototype,"indicator",2),dr([a({attribute:"validation-state"})],Ut.prototype,"validationState",2),dr([a({converter:ae})],Ut.prototype,"value",2),dr([a({converter:ae})],Ut.prototype,"min",2),dr([a({converter:ae})],Ut.prototype,"max",2);var x0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,mh=(o,e,t,r)=>{for(var n=r>1?void 0:r?w0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&x0(e,t,n),n};class pn extends Ut{}mh([a],pn.prototype,"thickness",2),mh([a],pn.prototype,"shape",2),pn.define(bh);const Ji=ye,S0=`${u.prefix}-radio-group`,vh=g`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Wr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${X}}::slotted(:hover){color:${Ne}}::slotted(:active){color:${T}}::slotted(${$e}){color:${z}}::slotted(${y}){color:${T}}:host([slot='input']){margin:${re} ${Ae}}`;function B0(){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 ${Y("slottedRadios")}></slot></template>`}const $h=B0(),yh={name:S0,registry:u.registry,styles:vh,template:$h};function C0(o,e="-radio"){return ls(e)(o)}const P0=`${u.prefix}-radio`;var I0=Object.defineProperty,N0=Object.getOwnPropertyDescriptor,St=(o,e,t,r)=>{for(var n=r>1?void 0:r?N0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&I0(e,t,n),n};class qe extends x{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??Ji.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??Ji.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 n=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,c)=>{s.ariaPosInSet=`${c+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=c===n,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"&&n>=0)&&(this.checkedIndex=n);const i=t.map(s=>s.id).join(" ").trim();i&&this.setAttribute("aria-owns",i)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){this.radios=[...this.querySelectorAll("*")].filter(r=>C0(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((n,i)=>{const s=i===e;n.checked=s,s&&(r=i,t&&n.$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(c=>{c.elementInternals.setValidity({})});return}const i={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(i,s,c):c.elementInternals.setValidity({})})}}}qe.formAssociated=!0,St([f],qe.prototype,"checkedIndex",2),St([a({attribute:"disabled",mode:"boolean"})],qe.prototype,"disabled",2),St([a({attribute:"value",mode:"fromView"})],qe.prototype,"initialValue",2),St([a],qe.prototype,"name",2),St([a],qe.prototype,"orientation",2),St([f],qe.prototype,"radios",2),St([a({mode:"boolean"})],qe.prototype,"required",2),St([f],qe.prototype,"slottedRadios",2);class kh extends qe{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new un(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}kh.define(yh);const xh=g`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${P};border:${I} solid ${He};border-radius:${de};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${de};color:${dt};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:${ue} solid ${U};border-radius:${B}}:host(:not([slot='input']):focus-visible)::after{border-color:${ce}}:host(:hover){border-color:${ut}}:host(${y}){border-color:${it}}:host(${y}) .checked-indicator{background-color:${ht}}:host(${y}:hover) .checked-indicator{background-color:${_t}}:host(:active){border-color:${pt}}:host(${y}:active) .checked-indicator{background-color:${Ot}}:host(:focus-visible){outline:none}:host(${$e}){background-color:${nt};border-color:${fe}}:host(${y}${$e}) .checked-indicator{background-color:${fe}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${$e}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${$e}):hover) .checked-indicator{background-color:Highlight}:host(${$e}){border-color:GrayText;color:GrayText}:host(${$e}${y}) .checked-indicator{background-color:GrayText}}`,T0=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function A0(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>${ve(o.checkedIndicator)}</slot></template>`}const wh=A0({checkedIndicator:T0}),Sh={name:P0,registry:u.registry,styles:xh,template:wh};class Bh extends _e{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)}}Bh.define(Sh);const z0={neutral:"neutral",brand:"brand",marigold:"marigold"},_0={small:"small",medium:"medium",large:"large"},O0=`${u.prefix}-rating-display`;var F0=Object.defineProperty,E0=Object.getOwnPropertyDescriptor,hr=(o,e,t,r)=>{for(var n=r>1?void 0:r?E0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&F0(e,t,n),n};const D0=CSS.supports("width: attr(value type(<number>))"),$o={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function gn(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Kt 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($o.maskImageFilled),this.display.style.removeProperty($o.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,n=`
|
|
1
|
+
const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function ps(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function gs(...o){return o.every(e=>e instanceof HTMLElement)}const Fu={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Eu={start:"start",end:"end"};function In(o,e="-accordion-item"){return ps(e)(o)}const Du=`${h.prefix}-accordion-item`;class An{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}var le;(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"})(le||(le={}));const Co=o=>typeof o=="function",dt=o=>typeof o=="string",Lu=()=>{},Mu=Object.create(null),Se={warn(o,e){},error(o,e){return new Error(`Error ${o}`)},addMessages(o){Object.assign(Mu,o)}},Hu=Object.freeze([]);function Nn(){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 fs(){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 Pt(o){o.prototype.toJSON=Lu}class bs extends An{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}Pt(bs);function ms(o,e){return new bs(o,e)}class Tn{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 n=this.sub1,i=this.sub2;n!==void 0&&n.handleChange(r,e),i!==void 0&&i.handleChange(r,e)}else for(let n=0,i=t.length;n<i;++n)t[n].handleChange(r,e)}}class vs{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,n;let i;t?i=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new Tn(this.subject):i=(n=this.subjectSubscribers)!==null&&n!==void 0?n:this.subjectSubscribers=new Tn(this.subject),i.subscribe(e)}unsubscribe(e,t){var r,n;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(n=this.subjectSubscribers)===null||n===void 0||n.unsubscribe(e)}}const We=[],zn=[],Vu=globalThis.requestAnimationFrame;let _n=!0;function Ru(){if(zn.length)throw zn.shift()}function ju(o){try{o.call()}catch(e){if(_n)zn.push(e),setTimeout(Ru,0);else throw We.length=0,e}}function On(){let e=0;for(;e<We.length;)if(ju(We[e]),e++,e>1024){for(let t=0,r=We.length-e;t<r;t++)We[t]=We[t+e];We.length-=e,e=0}We.length=0}function ys(o){We.push(o),We.length<2&&(_n?Vu(On):On())}const N=Object.freeze({enqueue:ys,next:()=>new Promise(ys),process:On,setMode:o=>_n=o}),wr=Object.freeze({unknown:void 0,coupled:1}),m=(()=>{const o=N.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,n=d=>{throw Se.error(le.needsArrayObservation)};function i(d){var c;let f=(c=d.$fastController)!==null&&c!==void 0?c:t.get(d);return f===void 0&&(Array.isArray(d)?f=n(d):t.set(d,f=new vs(d))),f}const s=fs();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 w=this.field,F=c[w];if(F!==f){c[w]=f;const G=c[this.callback];Co(G)&&G.call(c,F,f),i(c).notify(this.name)}}}class u extends Tn{constructor(c,f,w=!1){super(c,f),this.expression=c,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(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!==wr.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 w=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let F;try{F=this.expression(c,f)}finally{r=w}return F}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 w=this.last,F=i(c),G=w===null?this.first:{};if(G.propertySource=c,G.propertyName=f,G.notifier=F,F.subscribe(this,f),w!==null){if(!this.needsRefresh){let ae;r=void 0,ae=w.propertySource[w.propertyName],r=this,c===ae&&(this.needsRefresh=!0)}w.next=G}this.last=G}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 Pt(u),Object.freeze({setArrayObserverFactory(d){n=d},getNotifier:i,track(d,c){r&&r.watch(d,c)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,c){i(d).notify(c)},defineProperty(d,c){dt(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 $s=(()=>{let o=null;return{get(){return o},set(e){o=e}}})(),Bo=Object.freeze({default:{index:0,length:0,get event(){return Bo.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return $s.get()},setEvent(o){$s.set(o)}});class qu extends An{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function ks(o,e,t=m.isVolatileBinding(o)){return new qu(o,e,t)}const Z=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),xs=o=>o,Wu=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:xs}):{createHTML:xs};let Sr=Object.freeze({createHTML(o){return Wu.createHTML(o)},protect(o,e,t,r){return r}});const Gu=Sr,Qt=Object.freeze({get policy(){return Sr},setPolicy(o){if(Sr!==Gu)throw Se.error(le.onlySetDOMPolicyOnce);Sr=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)}}),Fn="boolean",ws="reflect",Cr=Object.freeze({locate:fs()}),Xu={toView(o){return o?"":null},fromView(o){return!!o}};function Ss(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const ie={toView(o){const e=Ss(o);return e&&e.toString()},fromView:Ss};class Sn{constructor(e,t,r=t.toLowerCase(),n=ws,i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=n,this.converter=i,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,n===Fn&&i===void 0&&(this.converter=Xu)}setValue(e,t){const r=e[this.fieldName],n=this.converter;n!==void 0&&(t=n.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===Fn?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"||N.enqueue(()=>{r.add(e);const n=e[this.fieldName];switch(t){case ws:{const i=this.converter;Qt.setAttribute(e,this.attribute,i!==void 0?i.toView(n):n);break}case Fn:Qt.setBooleanAttribute(e,this.attribute,n);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Cr.locate(e));for(let n=0,i=t.length;n<i;++n){const s=t[n];if(s!==void 0)for(let l=0,u=s.length;l<u;++l){const d=s[l];dt(d)?r.push(new Sn(e,d)):r.push(new Sn(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(n,i){arguments.length>1&&(t.property=i),Cr.locate(n.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}let En;function Cs(o){return o.reduce((e,t)=>(t instanceof ge?e.push(...Cs(t.styles)):e.push(t),e),[])}class ge{get strategy(){return this._strategy===null&&(En||ge.setDefaultStrategy(ge.supportsAdoptedStyleSheets?Uu():Yu()),this.withStrategy(En)),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(Cs(this.styles)),this}static setDefaultStrategy(e){En=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ge(e):e instanceof ge?e:new ge([e])}}ge.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;function Uu(){const o=new Map;return class{constructor(t){this.sheets=t.map(r=>{if(r instanceof CSSStyleSheet)return r;let n=o.get(r);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(r),o.set(r,n)),n})}addStylesTo(t){const r=t;r.adoptedStyleSheets=[...r.adoptedStyleSheets,...this.sheets]}removeStylesFrom(t){const r=t;r.adoptedStyleSheets=r.adoptedStyleSheets.filter(n=>this.sheets.indexOf(n)===-1)}}}let Ku=0;function Yu(){return class{constructor(e){this.styles=e,this.styleClass=`fast-${++Ku}`}addStylesTo(e){const t=e===document?document.body:e;for(let r=0;r<this.styles.length;r++){const n=document.createElement("style");n.innerHTML=this.styles[r],n.className=this.styleClass,t.append(n)}}removeStylesFrom(e){const t=e===document?document.body:e,r=t.querySelectorAll(`.${this.styleClass}`);for(let n=0,i=r.length;n<i;++n)t.removeChild(r[n])}}}const Ju={},Bs=new WeakMap,Dn=Nn(),Po=Object.freeze({register(o){if(!Dn.register(o))return!1;const e=Ps(o.registry);return Object.prototype.hasOwnProperty.call(e,o.name)||m.defineProperty(e,o.name),e[o.name]=o.type,!0},getByType:Dn.getByType,getForInstance:Dn.getForInstance,whenRegistered:Zu});function Ps(o=customElements){if(o===customElements)return Ju;let e=Bs.get(o);return e||(e={},Bs.set(o,e)),e}function Is(o){return o===void 0?void 0:Po.getByType(o)}function Zu(o,e=customElements){const t=Ps(e);Object.prototype.hasOwnProperty.call(t,o)||m.defineProperty(t,o);const r=Is(t[o]);return r!==void 0?Promise.resolve(r):new Promise(n=>{const i=m.getNotifier(t),s={handleChange:()=>{const l=Is(t[o]);l!==void 0&&(i.unsubscribe(s,o),n(l))}};i.subscribe(s,o)})}const As={mode:"open"},Ns={},Ts=new Set,Br=new WeakMap,Pr=new WeakMap,It=new WeakMap,zs=new WeakMap,Qu=new WeakMap;function ep(o){return Co(o)}function tp(o){return typeof o?.then=="function"}function _s(o,e){if(Pr.delete(o),o.template===void 0&&e!==void 0&&(o.template=e),o.template!==void 0)return It.delete(o),Br.delete(o),o.template}function Os(o,e=o.registry,t){if(!t?.length)return;const r=o;let n=zs.get(r);if(!n?.has(e)){n===void 0&&(n=new WeakSet,zs.set(r,n)),n.add(e);for(const i of t)i(o)}}function Ln(o){var e;return(e=Qu.get(o))!==null&&e!==void 0?e:null}function Fs(o){if(o.template!==void 0)return It.delete(o),o.template;const e=Pr.get(o);if(e)return e;const t=Br.get(o);if(!t)return;It.delete(o);let r;try{r=t(o)}catch(n){throw It.set(o,n),n}if(tp(r)){const n=Promise.resolve(r).then(i=>_s(o,i)).catch(i=>{throw Pr.delete(o),It.set(o,i),i});return Pr.set(o,n),n}return _s(o,r)}function op(o,e){const t=o;if(e===void 0){It.delete(t);return}It.set(t,e)}class ot{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,dt(t)&&(t={name:t}),this.type=e,this.name=t.name,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements,ep(t.template)?Br.set(this,t.template):this.template=t.template;const n=e.prototype,i=Sn.collect(e,t.attributes),s=new Array(i.length),l={},u={};for(let d=0,c=i.length;d<c;++d){const f=i[d];s[d]=f.attribute,l[f.name]=f,u[f.attribute]=f,m.defineProperty(n,f)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=i,this.propertyLookup=l,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?As:t.shadowOptions===null?void 0:Object.assign(Object.assign({},As),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ns:Object.assign(Object.assign({},Ns),t.elementOptions),this.styles=ge.normalize(t.styles),this.schema=t.schema,Po.register(this)}define(e=this.registry,t){const r=this.type;if(!e.get(this.name)){if(Os(this,e,t),this.template===void 0&&Br.has(this))return Promise.resolve().then(()=>Fs(this)).then(n=>{n!==void 0&&!e.get(this.name)&&(this.platformDefined=!0,e.define(this.name,r,this.elementOptions))}).catch(n=>{op(this,n),m.notify(this,"template")}),this;this.platformDefined=!0,e.define(this.name,r,this.elementOptions)}return this}static compose(e,t){const r=Ts.has(e)||Po.getByType(e)?new ot(class extends e{},t):new ot(e,t);return Promise.resolve(r)}static registerBaseType(e){Ts.add(e)}}ot.getByType=Po.getByType,ot.getForInstance=Po.getForInstance,m.defineProperty(ot.prototype,"template");const rp={bubbles:!0,composed:!0,cancelable:!0},Mn="isConnected",Es=new WeakMap,Hn=Symbol("fast-late-attribute-observer");function Ir(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Es.get(o))!==null&&t!==void 0?t:null}let Ds;var fe;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(fe||(fe={}));class qe{get isConnected(){return m.track(this,Mn),this.stage===fe.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:Bo.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"&&Es.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(i=>{this._resolvePrerendered=i}),this.isHydrated=new Promise(i=>{this._resolveHydrated=i}),this._template=null,this.stage=fe.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new vs(e),this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const r=Reflect.getPrototypeOf(e),n=r===null?[]:m.getAccessors(r);if(n.length>0){const i=this.boundObservables=Object.create(null);for(let s=0,l=n.length;s<l;++s){const u=n[s].name,d=e[u];d!==void 0&&(delete e[u],i[u]=d)}Object.keys(i).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 n=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,i=(r=n.get(e))!==null&&r!==void 0?r:0;i===0?(n.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===fe.connected||this.stage===fe.connecting)&&e.connectedCallback(this)):n.set(e,i+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const n=r.get(e);n!==void 0&&(n===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==fe.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,n-1))}addStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=Ir(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=Ir(r))!==null&&t!==void 0?t:r).removeChild(e):e.isAttachedTo(r)&&e.removeStylesFrom(r)}connect(){this.stage===fe.disconnected&&(this.stage=fe.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=fe.connected,m.notify(this,Mn))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let n=0,i=r.length;n<i;++n){const s=r[n];e[s]=t[s]}this.boundObservables=null}}captureBoundObservables(){const e=this.source,t=Object.getOwnPropertyNames(e),r=i=>{let s=Reflect.getPrototypeOf(e);for(;s!==null;){const l=Reflect.getOwnPropertyDescriptor(s,i);if(l?.get||l?.set)return!0;s=Reflect.getPrototypeOf(s)}return!1};let n=this.boundObservables;for(let i=0,s=t.length;i<s;++i){const l=t[i],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],(n??(n=this.boundObservables=Object.create(null)))[u]=d)}}syncLateAttributes(){const e=Ln(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=Ln(this.definition);if(e===null)return;const t=this.source;t[Hn]===void 0&&(t[Hn]=new MutationObserver(r=>{const n=t.$fastController,i=Ln(n.definition);if(i!==null)for(let s=0,l=r.length;s<l;++s){const u=r[s].attributeName;u===null||i[u]===void 0||n.onAttributeChangedCallback(u,null,t.getAttribute(u))}}),t[Hn].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===fe.connected&&(this.stage=fe.disconnecting,m.notify(this,Mn),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=fe.disconnected)}onAttributeChangedCallback(e,t,r){const n=this.definition.attributeLookup[e];n!==void 0&&n.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===fe.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},rp),r))):!1}renderTemplate(e){var t;const r=this.source,n=(t=Ir(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 i=n.firstChild;i!==null;i=n.firstChild)n.removeChild(i);if(e){const i=this.hasExistingShadowRoot&&this.needsInitialization;let s=!1;i&&qe.hydrationHook&&(s=qe.hydrationHook(this,e,r,n)),s||this.renderClientSide(e,r,n),this._resolvePrerendered(i),this._resolveHydrated(s)}else this.needsInitialization&&(this._resolvePrerendered(!1),this._resolveHydrated(!1))}renderClientSide(e,t,r){if(this.hasExistingShadowRoot){for(let n=r.firstChild;n!==null;n=r.firstChild)r.removeChild(n);this.hasExistingShadowRoot=!1}this.view=e.render(t,r,t),this.view.sourceLifetime=wr.coupled}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const n=ot.getForInstance(e);if(n===void 0)throw Se.error(le.missingElementDefinition);return m.getNotifier(n).subscribe({handleChange:()=>{qe.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(n).subscribe({handleChange:()=>{qe.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Ds(e,n)}static setStrategy(e){Ds=e}static installHydrationHook(e){qe.hydrationHook=e}}qe.hydrationHook=null,Pt(qe),qe.setStrategy(qe);function Ar(o){var e;return"adoptedStyleSheets"in o?o:(e=Ir(o))!==null&&e!==void 0?e:o.getRootNode()}class Cn{constructor(e){const t=Cn.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let n=t.get(r);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(r),t.set(r,n)),n})}addStylesTo(e){Ms(Ar(e),this.sheets)}removeStylesFrom(e){Hs(Ar(e),this.sheets)}}Cn.styleSheetCache=new Map;let np=0;const ip=()=>`fast-${++np}`;function Ls(o){return o===document?document.body:o}class sp{constructor(e){this.styles=e,this.styleClass=ip()}addStylesTo(e){e=Ls(Ar(e));const t=this.styles,r=this.styleClass;for(let n=0;n<t.length;n++){const i=document.createElement("style");i.innerHTML=t[n],i.className=r,e.append(i)}}removeStylesFrom(e){e=Ls(Ar(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,n=t.length;r<n;++r)e.removeChild(t[r])}}let Ms=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Hs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ge.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ms=(o,e)=>{o.adoptedStyleSheets.push(...e)},Hs=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ge.setDefaultStrategy(Cn)}else ge.setDefaultStrategy(sp);function Vs(o){const e=class extends o{constructor(){super(),qe.forCustomElement(this)}$emit(t,r,n){return this.$fastController.emit(t,r,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,n){this.$fastController.onAttributeChangedCallback(t,r,n)}};return ot.registerBaseType(e),e}function ap(o){return typeof o?.then=="function"}function lp(o,e,t){return Array.isArray(e)&&(t=e,e=void 0),(Co(o)?ot.compose(o,e):ot.compose(this,o)).then(n=>{Os(n,n.registry,t);const i=Fs(n);return ap(i)?i.then(()=>n.define().type):n.define().type})}function cp(o){return Vs(o)}const k=Object.assign(Vs(HTMLElement),{from:cp,define:lp});function Ce(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const Vn=Nn(),Rs=Object.freeze({getForInstance:Vn.getForInstance,getByType:Vn.getByType,define(o){return Vn.register({type:o}),o}});function js(o,e){const t=[];let r="";for(let n=0,i=o.length-1;n<i;++n){r+=o[n];let s=e[n];Rs.getForInstance(s)!==void 0&&(s=s.createCSS()),s instanceof ge||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 ge(js(o,e));class qs{constructor(e){this.value=e.length===0?"":e.length===1?e[0]:new ge(e)}createCSS(){return this.value}}Rs.define(qs),p.partial=(o,...e)=>new qs(js(o,e));const Rn=`fast-${Math.random().toString(36).substring(2,8)}`,Nr=`${Rn}{`,Io=`}${Rn}`,dp=Io.length;let hp=0;const jn=()=>`${Rn}-${++hp}`,Ws=Object.freeze({interpolation:o=>`${Nr}${o}${Io}`,attribute:o=>`${jn()}="${Nr}${o}${Io}"`,comment:o=>`<!--${Nr}${o}${Io}-->`}),Tr=Object.freeze({parse(o,e){const t=o.split(Nr);if(t.length===1)return null;const r=[];for(let n=0,i=t.length;n<i;++n){const s=t[n],l=s.indexOf(Io);let u;if(l===-1)u=s;else{const d=s.substring(0,l);r.push(e[d]),u=s.substring(l+dp)}u!==""&&r.push(u)}return r}}),qn=Nn(),Ge=Object.freeze({getForInstance:qn.getForInstance,getByType:qn.getByType,define(o,e){return e=e||{},e.type=o,qn.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Z.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Z.tokenList:Z.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Z.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Z.event;break;default:o.targetAspect=e,o.aspectType=Z.attribute;break}}});class Wn{constructor(e){this.options=e}createHTML(e){return Ws.attribute(e(this))}createBehavior(){return this}}Pt(Wn);const up=o=>o.nodeType===1,Ao=o=>o?e=>e.nodeType===1&&e.matches(o):up;class pp extends Wn{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,Hu),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 Gs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,gp=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,fp=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,bp=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,mp=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,vp=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Xs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Le=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"||Gs.test(o)},isContentBindingEndMarker(o){return o==="fe:/b"||gp.test(o)},isRepeatViewStartMarker(o){return o==="fe:r"||fp.test(o)},isRepeatViewEndMarker(o){return o==="fe:/r"||bp.test(o)},isElementBoundaryStartMarker(o){return Xs(o)&&(o.data==="fe:e"||mp.test(o.data))},isElementBoundaryEndMarker(o){return Xs(o)&&(o.data==="fe:/e"||vp.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 Se.error(le.invalidHydrationAttributeMarker,{value:e});const r=parseInt(t,10);if(r<1)throw Se.error(le.invalidHydrationAttributeMarker,{value:e});return r},parseLegacyAttributeBindingIndices(o){const e=[],t=o.getAttribute(this.legacyAttributeMarkerName);if(t!==null)for(const i of t.trim().split(/\s+/)){if(i==="")continue;const s=Number(i);if(!Number.isInteger(s)||s<0)throw Se.error(le.invalidHydrationAttributeMarker,{value:t});e.push(s)}const r=`${this.legacyAttributeMarkerName}-`,n=`${this.legacyCompactAttributeMarkerName}-`;for(const i of o.getAttributeNames())if(i.startsWith(r)){const s=Number(i.slice(r.length));if(!Number.isInteger(s)||s<0)throw Se.error(le.invalidHydrationAttributeMarker,{value:i});e.push(s)}else if(i.startsWith(n)){const[s,l]=i.slice(n.length).split("-").map(u=>Number(u));if(!Number.isInteger(s)||!Number.isInteger(l)||s<0||l<1)throw Se.error(le.invalidHydrationAttributeMarker,{value:i});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 yp(Gs,o)}});function yp(o,e){const t=o.exec(e);return t===null?null:Number(t[1])}const zr=Symbol.for("fe-hydration");function Us(o){return o[zr]===zr}const $p="unknown";function kp(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 xp="content following `<!--fe:b-->` content binding marker",wp="matching `<!--fe:/b-->` content binding close marker",Sp="matching `<!--fe:/e-->` element boundary close marker";function Ks(o){return`no more attribute bindings (template defines ${o})`}function Cp(o){return`no more content bindings (template defines ${o})`}function Ys(o,e){const t=(o??$p).toLowerCase();return kp(t,e)}const Bp={formatBindingMismatch(o,e,t,r){return{message:Ys(r,void 0)}},formatStructuralError(o,e,t){return{message:Ys(e,t)}}};let Pp=Bp;function At(){return Pp}function Nt(o){var e;return o?(e=o.getRootNode().host)===null||e===void 0?void 0:e.nodeName:void 0}class Tt extends Error{constructor(e,t,r,n,i){super(e),this.factories=t,this.node=r,this.expected=n,this.received=i}}function Gn(o){return o.nodeType===Node.COMMENT_NODE}function Js(o){return o.nodeType===Node.TEXT_NODE}function Zs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,Gn(e)||Js(e)?e.data.length:e.childNodes.length),t}function Ip(o,e,t){const r=Zs(o,e),n=r.commonAncestorContainer,i=document.createTreeWalker(n,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=Tp(t);let d=u,c=i.currentNode=o;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{const f=c,w=Le.parseLegacyAttributeBindingIndices(f);if(w!==null){for(const G of w){const ae=G+u,ct=t[ae];if(!ct){const So=Ks(t.length),Pn=At().formatStructuralError(c,Nt(c),So);throw new Tt(Pn.message,t,f,Pn.expected,Pn.received)}No(ct,c,s),d=Math.max(d,ae+1)}Le.removeLegacyAttributeBindingMarkers(f);break}const F=Le.parseAttributeBindingCount(f);if(F!==null){for(let G=0;G<F;G++){const ae=t[d++];if(!ae){const ct=Ks(t.length),So=At().formatStructuralError(c,Nt(c),ct);throw new Tt(So.message,t,c,So.expected,So.received)}No(ae,c,s)}f.removeAttribute(Le.attributeMarkerName)}break}case Node.COMMENT_NODE:{const f=c.data;if(Le.isElementBoundaryStartMarker(c))c.data="",Np(i,t,c);else if(Le.isContentBindingStartMarker(f)){const w=Le.parseLegacyContentBindingStartIndex(f),F=w===null?d++:w+u,G=t[F];if(d=Math.max(d,F+1),!G){const ae=Cp(t.length),ct=At().formatStructuralError(c,Nt(c),ae);throw new Tt(ct.message,t,c,ct.expected,ct.received)}Ap(c,i,G,t,s,l)}break}}c=i.nextNode()}return r.detach(),{targets:s,boundaries:l}}function Ap(o,e,t,r,n,i){const s=[];let l=e.nextSibling();if(o.data="",l===null){const c=xp,f=At().formatStructuralError(o,Nt(o),c);throw new Tt(f.message,r,o,f.expected,f.received)}const u=l;let d=0;for(;l!==null;){if(Gn(l)){if(Le.isContentBindingStartMarker(l.data))d++;else if(Le.isContentBindingEndMarker(l.data)){if(d===0)break;d--}}s.push(l),l=e.nextSibling()}if(l===null){const c=wp,f=At().formatStructuralError(o,Nt(o),c);throw new Tt(f.message,r,o,f.expected,f.received)}if(l.data="",s.length===1&&Js(s[0]))No(t,s[0],n);else{l!==u&&l.previousSibling!==null&&(i[t.targetNodeId]={first:u,last:l.previousSibling});const c=l.parentNode.insertBefore(document.createTextNode(""),l);No(t,c,n)}}function Np(o,e,t){let r=0,n=o.nextSibling();for(;n!==null;){if(Gn(n)){if(Le.isElementBoundaryStartMarker(n))n.data="",r++;else if(Le.isElementBoundaryEndMarker(n)){if(r===0){n.data="";return}n.data="",r--}}n=o.nextSibling()}const i=Sp,s=At().formatStructuralError(t,Nt(t),i);throw new Tt(s.message,e,t,s.expected,s.received)}function Tp(o){let e=0;for(let t=0,r=o.length;t<r&&o[t].targetNodeId==="h";++t)e++;return e}function No(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}function Xn(o,e){const t=o.parentNode;let r=o,n;for(;r!==e;){if(n=r.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=n}t.removeChild(e)}class Qs{constructor(){this.index=0,this.length=0}get event(){return Bo.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 _r extends Qs{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=wr.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 n=this.firstChild,i;for(;n!==t;)i=n.nextSibling,r.insertBefore(n,e),n=i;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,e.appendChild(r),r=n;e.appendChild(t)}dispose(){Xn(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 n=this.factories;for(let i=0,s=n.length;i<s;++i){const l=n[i].createBehavior();l.bind(this),r[i]=l}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,i=r.length;n<i;++n)r[n].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){Xn(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}Pt(_r),m.defineProperty(_r.prototype,"index"),m.defineProperty(_r.prototype,"length");var ea;const To={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class zp extends Error{constructor(e,t,r,n,i,s){super(e),this.factory=t,this.fragment=r,this.templateString=n,this.expected=i,this.received=s}}class _p extends Qs{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,r,n){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=n,this[ea]=zr,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=wr.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=To.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 n=this.firstChild,i;for(;n!==t;)i=n.nextSibling,r.insertBefore(n,e),n=i;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,n;for(;r!==t;){if(n=r.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=n}e.appendChild(t)}bind(e,t=this){if(this.source===e&&this.context===t)return;this.hydrationStage!==To.hydrated&&(this._hydrationStage=To.hydrating);let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:i,boundaries:s}=Ip(this.firstChild,this.lastChild,this.factories);this._targets=i,this._bindingViewBoundaries=s}catch(i){if(i instanceof Tt){let s=this.sourceTemplate.html;typeof s!="string"&&(s=s.innerHTML),i.templateString=s}throw i}this.behaviors=r=new Array(this.factories.length);const n=this.factories;for(let i=0,s=n.length;i<s;++i){const l=n[i];if(l.targetNodeId==="h"&&this.hostBindingTarget&&No(l,this.hostBindingTarget,this._targets),l.targetNodeId in this.targets){const u=l.createBehavior();u.bind(this),r[i]=u}else{let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML);const d=Zs(this.firstChild,this.lastChild).cloneContents(),c=At().formatBindingMismatch(l,this.firstChild,this.lastChild,Nt(this.firstChild));throw new zp(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 n=0,i=r.length;n<i;++n)r[n].bind(this)}this.isBound=!0,this._hydrationStage=To.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){Xn(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}}ea=zr,Pt(_p);function Op(o){return o.create!==void 0}function Fp(o,e,t,r){if(t==null&&(t=""),Op(t)){o.textContent="";let n=o.$fastView;if(n===void 0)if(Us(r)&&Us(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==To.hydrated){const i=r.bindingViewBoundaries[this.targetNodeId];n=t.hydrate(i.first,i.last)}else n=t.create();else o.$fastTemplate!==t&&(n.isComposed&&(n.remove(),n.unbind()),n=t.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(r.source,r.context)):(n.isComposed=!0,n.bind(r.source,r.context),n.insertBefore(o),o.$fastView=n,o.$fastTemplate=t)}else{const n=o.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),o.textContent=t}}function Ep(o,e,t){var r;const n=`${this.id}-t`,i=(r=o[n])!==null&&r!==void 0?r:o[n]={v:0,cv:Object.create(null)},s=i.cv;let l=i.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 w=d[c];w!==""&&(s[w]=l,u.add(w))}}if(i.v=l+1,l!==0){l-=1;for(const d in s)s[d]===l&&u.remove(d)}}const Dp={[Z.attribute]:Qt.setAttribute,[Z.booleanAttribute]:Qt.setBooleanAttribute,[Z.property]:(o,e,t)=>o[e]=t,[Z.content]:Fp,[Z.tokenList]:Ep,[Z.event]:()=>{}};class eo{constructor(e){this.updateTarget=null,this.aspectType=Z.content,this.dataBinding=e}createHTML(e){return Ws.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Dp[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw Se.error(le.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 Z.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Z.content:e.onUnbind(this);default:{const n=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);n.target=r,n.controller=e;const i=n.bind(e);if(e._skipAttrUpdates&&(this.aspectType===Z.attribute||this.aspectType===Z.booleanAttribute))break;this.updateTarget(r,this.targetAspect,i,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){Bo.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);Bo.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const n=t.target;this.updateTarget(n,this.targetAspect,t.bind(r),r)}}Ge.define(eo,{aspected:!0});const ta=(o,e)=>`${o}.${e}`,oa={},Xe={index:0,node:null};function ra(o){o.startsWith("fast-")||Se.warn(le.hostBindingWithoutHost,{name:o})}const Lp=new Proxy(document.createElement("div"),{get(o,e){ra(e);const t=Reflect.get(o,e);return Co(t)?t.bind(o):t},set(o,e,t){return ra(e),Reflect.set(o,e,t)}});class Mp{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,n,i){var s,l;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,n)),e.id=(s=e.id)!==null&&s!==void 0?s:jn(),e.targetNodeId=r,e.targetTagName=i,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 n=this.descriptors;if(t==="r"||t==="h"||n[t])return;if(!n[e]){const s=e.lastIndexOf("."),l=e.substring(0,s),u=parseInt(e.substring(s+1),10);this.addTargetDescriptor(l,e,u)}let i=oa[t];if(!i){const s=`_${t}`;oa[t]=i={get(){var l;return(l=this[s])!==null&&l!==void 0?l:this[s]=this[e].childNodes[r]}}}n[t]=i}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Lp;for(const n of this.nodeIds)Reflect.get(r,n);return new _r(t,this.factories,r)}}function na(o,e,t,r,n,i=!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,w=Tr.parse(f,l);let F=null;w===null?i&&(F=new eo(ms(()=>f,o.policy)),Ge.assignAspect(F,c.name)):F=Un.aggregate(w,o.policy),F!==null&&(t.removeAttributeNode(c),u--,d--,o.addFactory(F,e,r,n,t.tagName))}}function Hp(o,e,t,r,n){const i=Tr.parse(e.textContent,o.directives);if(i===null)return Xe.node=e.nextSibling,Xe.index=n+1,Xe;let s,l=s=e;for(let u=0,d=i.length;u<d;++u){const c=i[u];u!==0&&(n++,r=ta(t,n),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),dt(c)?s.textContent=c:(s.textContent=" ",Ge.assignAspect(c),o.addFactory(c,t,r,n,null)),l=s}return Xe.index=n+1,Xe.node=l.nextSibling,Xe}function ia(o,e,t){let r=0,n=e.firstChild;for(;n;){const i=Vp(o,t,n,r);n=i.node,r=i.index}}function Vp(o,e,t,r){const n=ta(e,r);switch(t.nodeType){case 1:na(o,e,t,n,r),ia(o,t,n);break;case 3:return Hp(o,t,e,n,r);case 8:{const i=Tr.parse(t.data,o.directives);i!==null&&o.addFactory(Un.aggregate(i),e,n,r,null);break}}return Xe.index=r+1,Xe.node=t.nextSibling,Xe}function Rp(o,e){return o&&o.nodeType===8&&Tr.parse(o.data,e)!==null}const sa="TEMPLATE",Un={compile(o,e,t=Qt.policy){let r;if(dt(o)){r=document.createElement(sa),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===sa&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const n=document.adoptNode(r.content),i=new Mp(n,e,t);return na(i,"",r,"h",0,!0),(Rp(n.firstChild,e)||n.childNodes.length===1&&Object.keys(e).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),ia(i,n,"r"),Xe.node=null,i.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Qt.policy){if(o.length===1)return o[0];let t,r=!1,n;const i=o.length,s=o.map(d=>dt(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,n=n||d.dataBinding.policy,d.dataBinding.evaluate)),l=(d,c)=>{let f="";for(let w=0;w<i;++w)f+=s[w](d,c);return f},u=new eo(ks(l,n??e,r));return Ge.assignAspect(u,t),u}};class aa extends Wn{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ge.define(aa);const A=o=>new aa(o),jp=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,qp=Object.create(null);class zt{constructor(e,t=qp){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}zt.empty=new zt(""),Ge.define(zt);function Wp(o,e,t,r=Ge.getForInstance(o)){if(r.aspected){const n=jp.exec(e);n!==null&&Ge.assignAspect(o,n[2])}return o.createHTML(t)}class Bn{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=Un.compile(this.html,this.factories,this.policy)),this.result}inline(){return new zt(dt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw Se.error(le.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw Se.error(le.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const n=this.create(r);return n.bind(e),n.appendTo(t),n}create(e){return this.compile().createView(e)}static create(e,t,r){let n="";const i=Object.create(null),s=l=>{var u;const d=(u=l.id)!==null&&u!==void 0?u:l.id=jn();return i[d]=l,d};for(let l=0,u=e.length-1;l<u;++l){const d=e[l];let c=t[l],f;if(n+=d,Co(c))c=new eo(ks(c));else if(c instanceof An)c=new eo(c);else if(!(f=Ge.getForInstance(c))){const w=c;c=new eo(ms(()=>w))}n+=Wp(c,d,s,f)}return new Bn(n+e[e.length-1],i,r)}}Pt(Bn);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Bn.create(o,e);throw Se.error(le.directCallToHTMLTagNotAllowed)};b.partial=o=>new zt(o);const la="slotchange";class ca extends pp{observe(e){e.addEventListener(la,this)}disconnect(e){e.removeEventListener(la,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ge.define(ca);function K(o){return dt(o)&&(o={property:o}),new ca(o)}const Gp=":host([hidden]){display:none}";function x(o){return`${Gp}:host{display:${o}}`}const I="var(--colorNeutralForeground1)",Kn="var(--colorNeutralForeground1Hover)",da="var(--colorNeutralForeground1Pressed)",Xp="var(--colorNeutralForeground1Selected)",Ae="var(--colorNeutralForeground2)",_t="var(--colorNeutralForeground2Hover)",Ot="var(--colorNeutralForeground2Pressed)",zo="var(--colorNeutralForeground2Selected)",_o="var(--colorNeutralForeground2BrandHover)",Oo="var(--colorNeutralForeground2BrandPressed)",ha="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",ua="var(--colorNeutralForeground3Hover)",pa="var(--colorNeutralForeground3Pressed)",ga="var(--colorNeutralForeground3Selected)",Up="var(--colorNeutralForeground3BrandHover)",Kp="var(--colorNeutralForeground3BrandPressed)",Yp="var(--colorNeutralForeground3BrandSelected)",Or="var(--colorNeutralForeground4)",Jp="var(--colorNeutralForeground5)",Zp="var(--colorNeutralForeground5Hover)",Qp="var(--colorNeutralForeground5Pressed)",eg="var(--colorNeutralForeground5Selected)",T="var(--colorNeutralForegroundDisabled)",fa="var(--colorBrandForegroundLink)",ba="var(--colorBrandForegroundLinkHover)",ma="var(--colorBrandForegroundLinkPressed)",tg="var(--colorBrandForegroundLinkSelected)",va="var(--colorNeutralForeground2Link)",ya="var(--colorNeutralForeground2LinkHover)",$a="var(--colorNeutralForeground2LinkPressed)",og="var(--colorNeutralForeground2LinkSelected)",rg="var(--colorCompoundBrandForeground1)",ka="var(--colorCompoundBrandForeground1Hover)",xa="var(--colorCompoundBrandForeground1Pressed)",Ue="var(--colorNeutralForegroundOnBrand)",ht="var(--colorNeutralForegroundInverted)",wa="var(--colorNeutralForegroundInvertedHover)",Sa="var(--colorNeutralForegroundInvertedPressed)",ng="var(--colorNeutralForegroundInvertedSelected)",ig="var(--colorNeutralForegroundInverted2)",Yn="var(--colorNeutralForegroundStaticInverted)",sg="var(--colorNeutralForegroundInvertedLink)",ag="var(--colorNeutralForegroundInvertedLinkHover)",lg="var(--colorNeutralForegroundInvertedLinkPressed)",cg="var(--colorNeutralForegroundInvertedLinkSelected)",dg="var(--colorNeutralForegroundInvertedDisabled)",Fo="var(--colorBrandForeground1)",Ca="var(--colorBrandForeground2)",hg="var(--colorBrandForeground2Hover)",ug="var(--colorBrandForeground2Pressed)",Ba="var(--colorNeutralForeground1Static)",pg="var(--colorBrandForegroundInverted)",gg="var(--colorBrandForegroundInvertedHover)",fg="var(--colorBrandForegroundInvertedPressed)",bg="var(--colorBrandForegroundOnLight)",mg="var(--colorBrandForegroundOnLightHover)",vg="var(--colorBrandForegroundOnLightPressed)",yg="var(--colorBrandForegroundOnLightSelected)",C="var(--colorNeutralBackground1)",Eo="var(--colorNeutralBackground1Hover)",Fr="var(--colorNeutralBackground1Pressed)",Jn="var(--colorNeutralBackground1Selected)",$g="var(--colorNeutralBackground2)",kg="var(--colorNeutralBackground2Hover)",xg="var(--colorNeutralBackground2Pressed)",wg="var(--colorNeutralBackground2Selected)",to="var(--colorNeutralBackground3)",Sg="var(--colorNeutralBackground3Hover)",Cg="var(--colorNeutralBackground3Pressed)",Bg="var(--colorNeutralBackground3Selected)",Pa="var(--colorNeutralBackground4)",Pg="var(--colorNeutralBackground4Hover)",Ig="var(--colorNeutralBackground4Pressed)",Ag="var(--colorNeutralBackground4Selected)",Ia="var(--colorNeutralBackground5)",Ng="var(--colorNeutralBackground5Hover)",Tg="var(--colorNeutralBackground5Pressed)",zg="var(--colorNeutralBackground5Selected)",oo="var(--colorNeutralBackground6)",_g="var(--colorNeutralBackground7)",Og="var(--colorNeutralBackground7Hover)",Fg="var(--colorNeutralBackground7Pressed)",Eg="var(--colorNeutralBackground7Selected)",Dg="var(--colorNeutralBackground8)",Zn="var(--colorNeutralBackgroundInverted)",Lg="var(--colorNeutralBackgroundInvertedHover)",Mg="var(--colorNeutralBackgroundInvertedPressed)",Hg="var(--colorNeutralBackgroundInvertedSelected)",Vg="var(--colorNeutralBackgroundStatic)",Rg="var(--colorNeutralBackgroundAlpha)",jg="var(--colorNeutralBackgroundAlpha2)",Qn="var(--colorSubtleBackground)",Do="var(--colorSubtleBackgroundHover)",ro="var(--colorSubtleBackgroundPressed)",ei="var(--colorSubtleBackgroundSelected)",Aa="var(--colorSubtleBackgroundLightAlphaHover)",Na="var(--colorSubtleBackgroundLightAlphaPressed)",Ta="var(--colorSubtleBackgroundLightAlphaSelected)",qg="var(--colorSubtleBackgroundInverted)",Wg="var(--colorSubtleBackgroundInvertedHover)",Gg="var(--colorSubtleBackgroundInvertedPressed)",Xg="var(--colorSubtleBackgroundInvertedSelected)",ce="var(--colorTransparentBackground)",Lo="var(--colorTransparentBackgroundHover)",Mo="var(--colorTransparentBackgroundPressed)",ti="var(--colorTransparentBackgroundSelected)",rt="var(--colorNeutralBackgroundDisabled)",Ug="var(--colorNeutralBackgroundDisabled2)",Kg="var(--colorNeutralBackgroundInvertedDisabled)",Yg="var(--colorNeutralStencil1)",Jg="var(--colorNeutralStencil2)",Zg="var(--colorNeutralStencil1Alpha)",Qg="var(--colorNeutralStencil2Alpha)",Er="var(--colorBackgroundOverlay)",ef="var(--colorScrollbarOverlay)",oi="var(--colorBrandBackground)",ri="var(--colorBrandBackgroundHover)",ni="var(--colorBrandBackgroundPressed)",za="var(--colorBrandBackgroundSelected)",ut="var(--colorCompoundBrandBackground)",Ft="var(--colorCompoundBrandBackgroundHover)",Et="var(--colorCompoundBrandBackgroundPressed)",ii="var(--colorBrandBackgroundStatic)",si="var(--colorBrandBackground2)",tf="var(--colorBrandBackground2Hover)",of="var(--colorBrandBackground2Pressed)",rf="var(--colorBrandBackground3Static)",nf="var(--colorBrandBackground4Static)",sf="var(--colorBrandBackgroundInverted)",af="var(--colorBrandBackgroundInvertedHover)",lf="var(--colorBrandBackgroundInvertedPressed)",cf="var(--colorBrandBackgroundInvertedSelected)",df="var(--colorNeutralCardBackground)",hf="var(--colorNeutralCardBackgroundHover)",uf="var(--colorNeutralCardBackgroundPressed)",pf="var(--colorNeutralCardBackgroundSelected)",gf="var(--colorNeutralCardBackgroundDisabled)",Me="var(--colorNeutralStrokeAccessible)",pt="var(--colorNeutralStrokeAccessibleHover)",gt="var(--colorNeutralStrokeAccessiblePressed)",ff="var(--colorNeutralStrokeAccessibleSelected)",He="var(--colorNeutralStroke1)",ft="var(--colorNeutralStroke1Hover)",no="var(--colorNeutralStroke1Pressed)",bf="var(--colorNeutralStroke1Selected)",io="var(--colorNeutralStroke2)",_a="var(--colorNeutralStroke3)",mf="var(--colorNeutralStroke4)",vf="var(--colorNeutralStroke4Hover)",yf="var(--colorNeutralStroke4Pressed)",$f="var(--colorNeutralStroke4Selected)",kf="var(--colorNeutralStrokeSubtle)",xf="var(--colorNeutralStrokeOnBrand)",Oa="var(--colorNeutralStrokeOnBrand2)",wf="var(--colorNeutralStrokeOnBrand2Hover)",Sf="var(--colorNeutralStrokeOnBrand2Pressed)",Cf="var(--colorNeutralStrokeOnBrand2Selected)",ai="var(--colorBrandStroke1)",li="var(--colorBrandStroke2)",Bf="var(--colorBrandStroke2Hover)",Pf="var(--colorBrandStroke2Pressed)",If="var(--colorBrandStroke2Contrast)",nt="var(--colorCompoundBrandStroke)",Fa="var(--colorCompoundBrandStrokeHover)",ci="var(--colorCompoundBrandStrokePressed)",be="var(--colorNeutralStrokeDisabled)",Af="var(--colorNeutralStrokeDisabled2)",Nf="var(--colorNeutralStrokeInvertedDisabled)",U="var(--colorTransparentStroke)",Dr="var(--colorTransparentStrokeInteractive)",Tf="var(--colorTransparentStrokeDisabled)",zf="var(--colorNeutralStrokeAlpha)",_f="var(--colorNeutralStrokeAlpha2)",Ho="var(--colorStrokeFocus1)",se="var(--colorStrokeFocus2)",Ea="var(--colorNeutralShadowAmbient)",Da="var(--colorNeutralShadowKey)",Of="var(--colorNeutralShadowAmbientLighter)",Ff="var(--colorNeutralShadowKeyLighter)",Ef="var(--colorNeutralShadowAmbientDarker)",Df="var(--colorNeutralShadowKeyDarker)",Lf="var(--colorBrandShadowAmbient)",Mf="var(--colorBrandShadowKey)",di="var(--colorPaletteRedBackground1)",La="var(--colorPaletteRedBackground2)",hi="var(--colorPaletteRedBackground3)",Hf="var(--colorPaletteRedBorderActive)",ui="var(--colorPaletteRedBorder1)",Lr="var(--colorPaletteRedBorder2)",Mr="var(--colorPaletteRedForeground1)",Ma="var(--colorPaletteRedForeground2)",pi="var(--colorPaletteRedForeground3)",Vf="var(--colorPaletteRedForegroundInverted)",gi="var(--colorPaletteGreenBackground1)",Rf="var(--colorPaletteGreenBackground2)",fi="var(--colorPaletteGreenBackground3)",jf="var(--colorPaletteGreenBorderActive)",Ha="var(--colorPaletteGreenBorder1)",Va="var(--colorPaletteGreenBorder2)",Ra="var(--colorPaletteGreenForeground1)",ja="var(--colorPaletteGreenForeground2)",qa="var(--colorPaletteGreenForeground3)",qf="var(--colorPaletteGreenForegroundInverted)",bi="var(--colorPaletteDarkOrangeBackground1)",Wf="var(--colorPaletteDarkOrangeBackground2)",mi="var(--colorPaletteDarkOrangeBackground3)",Gf="var(--colorPaletteDarkOrangeBorderActive)",vi="var(--colorPaletteDarkOrangeBorder1)",Xf="var(--colorPaletteDarkOrangeBorder2)",Wa="var(--colorPaletteDarkOrangeForeground1)",Uf="var(--colorPaletteDarkOrangeForeground2)",yi="var(--colorPaletteDarkOrangeForeground3)",Ga="var(--colorPaletteYellowBackground1)",Kf="var(--colorPaletteYellowBackground2)",Xa="var(--colorPaletteYellowBackground3)",Yf="var(--colorPaletteYellowBorderActive)",Ua="var(--colorPaletteYellowBorder1)",Jf="var(--colorPaletteYellowBorder2)",Zf="var(--colorPaletteYellowForeground1)",Hr="var(--colorPaletteYellowForeground2)",Qf="var(--colorPaletteYellowForeground3)",eb="var(--colorPaletteYellowForegroundInverted)",tb="var(--colorPaletteBerryBackground1)",ob="var(--colorPaletteBerryBackground2)",rb="var(--colorPaletteBerryBackground3)",nb="var(--colorPaletteBerryBorderActive)",ib="var(--colorPaletteBerryBorder1)",sb="var(--colorPaletteBerryBorder2)",ab="var(--colorPaletteBerryForeground1)",lb="var(--colorPaletteBerryForeground2)",cb="var(--colorPaletteBerryForeground3)",db="var(--colorPaletteMarigoldBackground1)",$i="var(--colorPaletteMarigoldBackground2)",hb="var(--colorPaletteMarigoldBackground3)",Ka="var(--colorPaletteMarigoldBorderActive)",ub="var(--colorPaletteMarigoldBorder1)",pb="var(--colorPaletteMarigoldBorder2)",gb="var(--colorPaletteMarigoldForeground1)",Ya="var(--colorPaletteMarigoldForeground2)",fb="var(--colorPaletteMarigoldForeground3)",bb="var(--colorPaletteLightGreenBackground1)",mb="var(--colorPaletteLightGreenBackground2)",vb="var(--colorPaletteLightGreenBackground3)",yb="var(--colorPaletteLightGreenBorderActive)",$b="var(--colorPaletteLightGreenBorder1)",kb="var(--colorPaletteLightGreenBorder2)",xb="var(--colorPaletteLightGreenForeground1)",wb="var(--colorPaletteLightGreenForeground2)",Sb="var(--colorPaletteLightGreenForeground3)",Ja="var(--colorPaletteAnchorBackground2)",Cb="var(--colorPaletteAnchorBorderActive)",Za="var(--colorPaletteAnchorForeground2)",Qa="var(--colorPaletteBeigeBackground2)",Bb="var(--colorPaletteBeigeBorderActive)",el="var(--colorPaletteBeigeForeground2)",tl="var(--colorPaletteBlueBackground2)",Pb="var(--colorPaletteBlueBorderActive)",ol="var(--colorPaletteBlueForeground2)",rl="var(--colorPaletteBrassBackground2)",Ib="var(--colorPaletteBrassBorderActive)",nl="var(--colorPaletteBrassForeground2)",il="var(--colorPaletteBrownBackground2)",Ab="var(--colorPaletteBrownBorderActive)",sl="var(--colorPaletteBrownForeground2)",al="var(--colorPaletteCornflowerBackground2)",Nb="var(--colorPaletteCornflowerBorderActive)",ll="var(--colorPaletteCornflowerForeground2)",cl="var(--colorPaletteCranberryBackground2)",Tb="var(--colorPaletteCranberryBorderActive)",dl="var(--colorPaletteCranberryForeground2)",hl="var(--colorPaletteDarkGreenBackground2)",zb="var(--colorPaletteDarkGreenBorderActive)",ul="var(--colorPaletteDarkGreenForeground2)",pl="var(--colorPaletteDarkRedBackground2)",_b="var(--colorPaletteDarkRedBorderActive)",gl="var(--colorPaletteDarkRedForeground2)",fl="var(--colorPaletteForestBackground2)",Ob="var(--colorPaletteForestBorderActive)",bl="var(--colorPaletteForestForeground2)",ml="var(--colorPaletteGoldBackground2)",Fb="var(--colorPaletteGoldBorderActive)",vl="var(--colorPaletteGoldForeground2)",yl="var(--colorPaletteGrapeBackground2)",Eb="var(--colorPaletteGrapeBorderActive)",$l="var(--colorPaletteGrapeForeground2)",kl="var(--colorPaletteLavenderBackground2)",Db="var(--colorPaletteLavenderBorderActive)",xl="var(--colorPaletteLavenderForeground2)",wl="var(--colorPaletteLightTealBackground2)",Lb="var(--colorPaletteLightTealBorderActive)",Sl="var(--colorPaletteLightTealForeground2)",Cl="var(--colorPaletteLilacBackground2)",Mb="var(--colorPaletteLilacBorderActive)",Bl="var(--colorPaletteLilacForeground2)",Pl="var(--colorPaletteMagentaBackground2)",Hb="var(--colorPaletteMagentaBorderActive)",Il="var(--colorPaletteMagentaForeground2)",Al="var(--colorPaletteMinkBackground2)",Vb="var(--colorPaletteMinkBorderActive)",Nl="var(--colorPaletteMinkForeground2)",Tl="var(--colorPaletteNavyBackground2)",Rb="var(--colorPaletteNavyBorderActive)",zl="var(--colorPaletteNavyForeground2)",_l="var(--colorPalettePeachBackground2)",jb="var(--colorPalettePeachBorderActive)",Ol="var(--colorPalettePeachForeground2)",Fl="var(--colorPalettePinkBackground2)",qb="var(--colorPalettePinkBorderActive)",El="var(--colorPalettePinkForeground2)",Dl="var(--colorPalettePlatinumBackground2)",Wb="var(--colorPalettePlatinumBorderActive)",Ll="var(--colorPalettePlatinumForeground2)",Ml="var(--colorPalettePlumBackground2)",Gb="var(--colorPalettePlumBorderActive)",Hl="var(--colorPalettePlumForeground2)",Vl="var(--colorPalettePumpkinBackground2)",Xb="var(--colorPalettePumpkinBorderActive)",Rl="var(--colorPalettePumpkinForeground2)",jl="var(--colorPalettePurpleBackground2)",Ub="var(--colorPalettePurpleBorderActive)",ql="var(--colorPalettePurpleForeground2)",Wl="var(--colorPaletteRoyalBlueBackground2)",Kb="var(--colorPaletteRoyalBlueBorderActive)",Gl="var(--colorPaletteRoyalBlueForeground2)",Xl="var(--colorPaletteSeafoamBackground2)",Yb="var(--colorPaletteSeafoamBorderActive)",Ul="var(--colorPaletteSeafoamForeground2)",Kl="var(--colorPaletteSteelBackground2)",Jb="var(--colorPaletteSteelBorderActive)",Yl="var(--colorPaletteSteelForeground2)",Jl="var(--colorPaletteTealBackground2)",Zb="var(--colorPaletteTealBorderActive)",Zl="var(--colorPaletteTealForeground2)",Qb="var(--colorStatusSuccessBackground1)",em="var(--colorStatusSuccessBackground2)",tm="var(--colorStatusSuccessBackground3)",om="var(--colorStatusSuccessForeground1)",rm="var(--colorStatusSuccessForeground2)",nm="var(--colorStatusSuccessForeground3)",im="var(--colorStatusSuccessForegroundInverted)",sm="var(--colorStatusSuccessBorderActive)",am="var(--colorStatusSuccessBorder1)",lm="var(--colorStatusSuccessBorder2)",cm="var(--colorStatusWarningBackground1)",dm="var(--colorStatusWarningBackground2)",hm="var(--colorStatusWarningBackground3)",um="var(--colorStatusWarningForeground1)",pm="var(--colorStatusWarningForeground2)",gm="var(--colorStatusWarningForeground3)",fm="var(--colorStatusWarningForegroundInverted)",bm="var(--colorStatusWarningBorderActive)",mm="var(--colorStatusWarningBorder1)",vm="var(--colorStatusWarningBorder2)",ym="var(--colorStatusDangerBackground1)",$m="var(--colorStatusDangerBackground2)",km="var(--colorStatusDangerBackground3)",xm="var(--colorStatusDangerBackground3Hover)",wm="var(--colorStatusDangerBackground3Pressed)",Sm="var(--colorStatusDangerForeground1)",Cm="var(--colorStatusDangerForeground2)",Bm="var(--colorStatusDangerForeground3)",Pm="var(--colorStatusDangerForegroundInverted)",Im="var(--colorStatusDangerBorderActive)",Am="var(--colorStatusDangerBorder1)",Nm="var(--colorStatusDangerBorder2)",Vo="var(--borderRadiusNone)",Ne="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",ki="var(--borderRadiusLarge)",xi="var(--borderRadiusXLarge)",Tm="var(--borderRadius2XLarge)",zm="var(--borderRadius3XLarge)",_m="var(--borderRadius4XLarge)",Om="var(--borderRadius5XLarge)",Fm="var(--borderRadius6XLarge)",de="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Ql="var(--fontFamilyMonospace)",ec="var(--fontFamilyNumeric)",so="var(--fontSizeBase100)",E="var(--fontSizeBase200)",z="var(--fontSizeBase300)",he="var(--fontSizeBase400)",Dt="var(--fontSizeBase500)",Ro="var(--fontSizeBase600)",wi="var(--fontSizeHero700)",Si="var(--fontSizeHero800)",Ci="var(--fontSizeHero900)",Bi="var(--fontSizeHero1000)",_="var(--fontWeightRegular)",tc="var(--fontWeightMedium)",M="var(--fontWeightSemibold)",jo="var(--fontWeightBold)",qo="var(--lineHeightBase100)",R="var(--lineHeightBase200)",D="var(--lineHeightBase300)",me="var(--lineHeightBase400)",Wo="var(--lineHeightBase500)",Pi="var(--lineHeightBase600)",Ii="var(--lineHeightHero700)",Ai="var(--lineHeightHero800)",Ni="var(--lineHeightHero900)",Ti="var(--lineHeightHero1000)",Vr="var(--shadow2)",Go="var(--shadow4)",oc="var(--shadow8)",Rr="var(--shadow16)",rc="var(--shadow28)",zi="var(--shadow64)",Em="var(--shadow2Brand)",Dm="var(--shadow4Brand)",Lm="var(--shadow8Brand)",Mm="var(--shadow16Brand)",Hm="var(--shadow28Brand)",Vm="var(--shadow64Brand)",B="var(--strokeWidthThin)",ue="var(--strokeWidthThick)",Be="var(--strokeWidthThicker)",jr="var(--strokeWidthThickest)",Rm="var(--spacingHorizontalNone)",H="var(--spacingHorizontalXXS)",Q="var(--spacingHorizontalXS)",ve="var(--spacingHorizontalSNudge)",Te="var(--spacingHorizontalS)",Ke="var(--spacingHorizontalMNudge)",ee="var(--spacingHorizontalM)",nc="var(--spacingHorizontalL)",ic="var(--spacingHorizontalXL)",Xo="var(--spacingHorizontalXXL)",jm="var(--spacingHorizontalXXXL)",qr="var(--spacingVerticalNone)",Uo="var(--spacingVerticalXXS)",Lt="var(--spacingVerticalXS)",ao="var(--spacingVerticalSNudge)",te="var(--spacingVerticalS)",Ko="var(--spacingVerticalMNudge)",sc="var(--spacingVerticalM)",Wr="var(--spacingVerticalL)",qm="var(--spacingVerticalXL)",bt="var(--spacingVerticalXXL)",ac="var(--spacingVerticalXXXL)",Gr="var(--durationUltraFast)",Yo="var(--durationFaster)",Wm="var(--durationFast)",Jo="var(--durationNormal)",Xr="var(--durationGentle)",lc="var(--durationSlow)",_i="var(--durationSlower)",Zo="var(--durationUltraSlow)",cc="var(--curveAccelerateMax)",mt="var(--curveAccelerateMid)",dc="var(--curveAccelerateMin)",Oi="var(--curveDecelerateMax)",vt="var(--curveDecelerateMid)",hc="var(--curveDecelerateMin)",Fi="var(--curveEasyEaseMax)",Qo="var(--curveEasyEase)",Ur="var(--curveLinear)",Gm="var(--zIndexBackground)",Xm="var(--zIndexContent)",Um="var(--zIndexOverlay)",Km="var(--zIndexPopup)",Ym="var(--zIndexMessages)",Jm="var(--zIndexFloating)",Zm="var(--zIndexPriority)",Qm="var(--zIndexDebug)",uc=p`${x("block")} :host{max-width:fit-content;contain:content;color:${I}}.heading{height:44px;display:grid;position:relative;padding-inline:${ee} ${Ke};border-radius:${S};font-family:${v};font-size:${z};font-weight:${_};line-height:${D};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:${Ne}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Te};grid-column:1/span 1;grid-row:1}.content{margin:0 ${ee}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Te};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ne};outline:none;border:2px solid ${Ho};box-shadow:inset 0 0 0 1px ${se}}: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:${z};line-height:${D}}:host([size='small']) .heading{font-size:${E};line-height:${R}}:host([size='large']) .heading{font-size:${he};line-height:${me}}:host([size='extra-large']) .heading{font-size:${Dt};line-height:${Wo}}: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:${Te};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:${ee}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Ke} ${ee}}: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 ye(o){return o?typeof o=="string"?new zt(o):"inline"in o?o.inline():o:zt.empty}class it{}function st(o){return b`<slot name=end ${A("end")}>${ye(o.end)}</slot>`.inline()}function Ve(o){return b`<slot name=start ${A("start")}>${ye(o.start)}</slot>`.inline()}const ev=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>'),tv=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 ov(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} ${A("expandbutton")}><slot name=heading></slot></button> ${Ve(o)}<slot name=marker-expanded>${ye(o.expandedIcon)}</slot><slot name=marker-collapsed>${ye(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const pc=ov({collapsedIcon:ev,expandedIcon:tv}),gc={name:Du,registry:h.registry,styles:uc,template:pc};function yt(o,...e){const t=Cr.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(o.prototype,i,Object.getOwnPropertyDescriptor(r.prototype,i))}),Cr.locate(r).forEach(i=>t.push(i))})}var rv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,Kr=(o,e,t,r)=>{for(var n=r>1?void 0:r?nv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&rv(e,t,n),n};class lo extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}Kr([a({attribute:"heading-level",mode:"fromView",converter:ie})],lo.prototype,"headinglevel",2),Kr([a({mode:"boolean"})],lo.prototype,"expanded",2),Kr([a({mode:"boolean"})],lo.prototype,"disabled",2),Kr([g],lo.prototype,"expandbutton",2);var iv=Object.defineProperty,sv=Object.getOwnPropertyDescriptor,Ei=(o,e,t,r)=>{for(var n=r>1?void 0:r?sv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&iv(e,t,n),n};class co extends lo{constructor(){super(...arguments),this.block=!1}}Ei([a],co.prototype,"size",2),Ei([a({attribute:"marker-position"})],co.prototype,"markerPosition",2),Ei([a({mode:"boolean"})],co.prototype,"block",2),yt(co,it),co.define(gc);const Yr={single:"single",multi:"multi"},av=`${h.prefix}-accordion`,fc=p`${x("flex")} :host{flex-direction:column;width:100%;contain:content}`;function lv(){return b`<template><slot ${K({property:"slottedAccordionItems",filter:Ao()})}></slot></template>`}const bc=lv(),mc={name:av,registry:h.registry,styles:fc,template:bc};function vc(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 er(o,e,t){const r=t?.shallow??!1,n=t?.timeout??50,i=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,l=u=>{if(o.querySelector(s)===null||u&&u.timeRemaining()<=0){i?vc(e,{timeout:n}):e();return}vc(l,{timeout:n})};l()}var cv=Object.defineProperty,dv=Object.getOwnPropertyDescriptor,yc=(o,e,t,r)=>{for(var n=r>1?void 0:r?dv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&cv(e,t,n),n};class Jr extends k{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{er(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;In(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===Yr.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=>In(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Yr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,n)=>{In(r)&&(this.activeItemIndex===n?(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||Yr.multi,this.setItems()}}yc([a({attribute:"expand-mode"})],Jr.prototype,"expandmode",2),yc([g],Jr.prototype,"slottedAccordionItems",2),Jr.define(mc);const tr={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},or={circular:"circular",rounded:"rounded",square:"square"},rr={small:"small",medium:"medium",large:"large"},nr={submit:"submit",reset:"reset",button:"button"},hv={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},uv=`${h.prefix}-button`,$c=tr,kc=or,xc=rr,wc={_self:"_self",_blank:"_blank",_parent:"_parent",_top:"_top"},pv={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},gv=`${h.prefix}-anchor-button`,Sc=p`${x("inline-flex")} :host{--icon-spacing:${ve};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:${I};border:${B} solid ${He};padding:0 ${ee};min-width:96px;border-radius:${S};font-size:${z};font-family:${v};font-weight:${M};line-height:${D};transition-duration:${Yo};transition-property:background,border,color;transition-timing-function:${Qo};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Eo};color:${Kn};border-color:${ft}}:host(:hover:active){background-color:${Fr};border-color:${no};color:${da};outline-style:none}:host(:focus-visible){border-color:${U};outline:${ue} solid ${U};box-shadow:${Go},0 0 0 2px ${se}}@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:${Q};min-height:24px;min-width:64px;padding:0 ${Te};border-radius:${Ne};font-size:${E};line-height:${R};font-weight:${_}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${ki};padding:0 ${nc};font-size:${he};line-height:${me}}: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:${de}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${Vo}}:host([appearance='primary']){background-color:${oi};color:${Ue};border-color:transparent}:host([appearance='primary']:hover){background-color:${ri}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ue}}:host([appearance='primary']:hover:active){background-color:${ni}}:host([appearance='primary']:focus-visible){border-color:${Ue};box-shadow:${Vr},0 0 0 2px ${se}}:host([appearance='outline']){background-color:${ce}}:host([appearance='outline']:hover){background-color:${Lo}}:host([appearance='outline']:hover:active){background-color:${Mo}}:host([appearance='subtle']){background-color:${Qn};color:${Ae};border-color:transparent}:host([appearance='subtle']:hover){background-color:${Do};color:${_t};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${ro};color:${Ot};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${_o}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${Oo}}:host([appearance='transparent']){background-color:${ce};color:${Ae}}:host([appearance='transparent']:hover){background-color:${Lo};color:${_o}}:host([appearance='transparent']:hover:active){background-color:${Mo};color:${Oo}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,ho=p`${Sc} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${rt};border-color:${be};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:${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}}`,fv=p`${Sc} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function bv(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${Ve(o)} <span class=content part=content><slot></slot></span>${st(o)}</template>`}const Cc=bv(),Bc={name:gv,registry:h.registry,styles:fv,template:Cc},Zr=CSS.supports("anchor-name: --a"),mv="anchor"in HTMLElement.prototype,Pc=CSS.supports("selector(:state(g))"),Ic=new Map;function P(o){return Ic.get(o)??Ic.set(o,Pc?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!Pc){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Di=new WeakMap;function Ac(o,e){if(!o||!e)return!1;if(Di.has(o))return Di.get(o).has(e);const t=new Set(Object.values(o));return Di.set(o,t),t.has(e)}function Mt(o,e="",t="",r,n=""){y(o,`${n}${e}`,!1),(!r||Ac(r,t))&&y(o,`${n}${t}`,!0)}var vv=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,$t=(o,e,t,r)=>{for(var n=r>1?void 0:r?yv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&vv(e,t,n),n};class Re 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 pv){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}}$t([a],Re.prototype,"download",2),$t([a],Re.prototype,"href",2),$t([a],Re.prototype,"hreflang",2),$t([a],Re.prototype,"ping",2),$t([a],Re.prototype,"referrerpolicy",2),$t([a],Re.prototype,"rel",2),$t([a],Re.prototype,"target",2),$t([a],Re.prototype,"type",2);var $v=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,Qr=(o,e,t,r)=>{for(var n=r>1?void 0:r?kv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$v(e,t,n),n};class Ht extends Re{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Mt(this.elementInternals,e,t,$c)}shapeChanged(e,t){Mt(this.elementInternals,e,t,kc)}sizeChanged(e,t){Mt(this.elementInternals,e,t,xc)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}Qr([a],Ht.prototype,"appearance",2),Qr([a],Ht.prototype,"shape",2),Qr([a],Ht.prototype,"size",2),Qr([a({attribute:"icon-only",mode:"boolean"})],Ht.prototype,"iconOnly",2),yt(Ht,it),Ht.define(Bc);const xv={active:"active",inactive:"inactive"},wv={circular:"circular",square:"square"},Sv={ring:"ring",shadow:"shadow",ringShadow:"ring-shadow"},Li={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"},Mi={neutral:"neutral",brand:"brand",colorful:"colorful",...Li},Cv={_16:16,_20:20,_24:24,_28:28,_32:32,_36:36,_40:40,_48:48,_56:56,_64:64,_72:72,_96:96,_120:120,_128:128},Bv=`${h.prefix}-avatar`,kt={fastOutSlowInMax:Oi,fastOutSlowInMid:vt,fastOutSlowInMin:hc,slowOutFastInMax:cc,slowOutFastInMid:mt,slowOutFastInMin:dc,fastEase:Fi,normalEase:Qo,nullEasing:Ur},Nc=p`${x("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:${M};font-size:${z};border-radius:${de};color:${X};background-color:${oo};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:${de}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${B} ${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 ${ue} ${C}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${so};font-weight:${_}}: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:${E}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${he}}: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:${Dt}}: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:${Ro}}: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:${Ne}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${ki}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${xi}}:host([data-color='brand']){color:${Yn};background-color:${ii}}:host([data-color='dark-red']){color:${gl};background-color:${pl}}:host([data-color='cranberry']){color:${dl};background-color:${cl}}:host([data-color='red']){color:${Ma};background-color:${La}}:host([data-color='pumpkin']){color:${Rl};background-color:${Vl}}:host([data-color='peach']){color:${Ol};background-color:${_l}}:host([data-color='marigold']){color:${Ya};background-color:${$i}}:host([data-color='gold']){color:${vl};background-color:${ml}}:host([data-color='brass']){color:${nl};background-color:${rl}}:host([data-color='brown']){color:${sl};background-color:${il}}:host([data-color='forest']){color:${bl};background-color:${fl}}:host([data-color='seafoam']){color:${Ul};background-color:${Xl}}:host([data-color='dark-green']){color:${ul};background-color:${hl}}:host([data-color='light-teal']){color:${Sl};background-color:${wl}}:host([data-color='teal']){color:${Zl};background-color:${Jl}}:host([data-color='steel']){color:${Yl};background-color:${Kl}}:host([data-color='blue']){color:${ol};background-color:${tl}}:host([data-color='royal-blue']){color:${Gl};background-color:${Wl}}:host([data-color='cornflower']){color:${ll};background-color:${al}}:host([data-color='navy']){color:${zl};background-color:${Tl}}:host([data-color='lavender']){color:${xl};background-color:${kl}}:host([data-color='purple']){color:${ql};background-color:${jl}}:host([data-color='grape']){color:${$l};background-color:${yl}}:host([data-color='lilac']){color:${Bl};background-color:${Cl}}:host([data-color='pink']){color:${El};background-color:${Fl}}:host([data-color='magenta']){color:${Il};background-color:${Pl}}:host([data-color='plum']){color:${Hl};background-color:${Ml}}:host([data-color='beige']){color:${el};background-color:${Qa}}:host([data-color='mink']){color:${Nl};background-color:${Al}}:host([data-color='platinum']){color:${Ll};background-color:${Dl}}:host([data-color='anchor']){color:${Za};background-color:${Ja}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${Zo},${Yo};transition-delay:${kt.fastEase},${kt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${Zo},${_i};transition-delay:${kt.fastEase},${kt.nullEasing}}:host([active])::before{box-shadow:${oc};border-style:solid;border-color:${ii}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ue});border-width:${ue}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Be});border-width:${Be}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${jr});border-width:${jr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Go}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Rr}}: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:${rc}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${Zo},${Yo};transition-delay:${kt.fastOutSlowInMin},${kt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${Zo},${_i};transition-delay:${kt.fastOutSlowInMin},${kt.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}}`,Pv=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 Iv(){return b`<slot class=default-slot ${K("slottedDefaults")} ${A("defaultSlot")}></slot><span class=monogram ${A("monogram")}>${o=>o.initials}</span> ${Pv}<slot name=badge></slot>`}const Tc=Iv(),zc={name:Bv,registry:h.registry,styles:Nc,template:Tc},Av=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Nv=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Tv=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,zv=/\s+/g,_v=/[\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 Ov(o,e,t){let r="";const n=o.split(" ");return n.length!==0&&(r+=n[0].charAt(0).toUpperCase()),t||(n.length===2?r+=n[1].charAt(0).toUpperCase():n.length===3&&(r+=n[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function Fv(o){return o=o.replace(Av,""),o=o.replace(Nv,""),o=o.replace(zv," "),o=o.trim(),o}function _c(o,e,t){return!o||(o=Fv(o),_v.test(o)||!t?.allowPhoneInitials&&Tv.test(o))?"":Ov(o,e,t?.firstInitialOnly)}var Ev=Object.defineProperty,Dv=Object.getOwnPropertyDescriptor,ir=(o,e,t,r)=>{for(var n=r>1?void 0:r?Dv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ev(e,t,n),n};class Vt 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)}N.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||_c(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()})}}ir([g],Vt.prototype,"defaultSlot",2),ir([g],Vt.prototype,"monogram",2),ir([g],Vt.prototype,"slottedDefaults",2),ir([a],Vt.prototype,"name",2),ir([a],Vt.prototype,"initials",2);var Lv=Object.defineProperty,Mv=Object.getOwnPropertyDescriptor,uo=(o,e,t,r)=>{for(var n=r>1?void 0:r?Mv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Lv(e,t,n),n};const xt=class hs extends Vt{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||_c(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Mi.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?hs.colors[Hv(this.name??"")%hs.colors.length]:this.color??Mi.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)}};xt.colors=Object.values(Li),uo([a],xt.prototype,"active",2),uo([a],xt.prototype,"shape",2),uo([a],xt.prototype,"appearance",2),uo([a({converter:ie})],xt.prototype,"size",2),uo([a],xt.prototype,"color",2),uo([a({attribute:"color-id"})],xt.prototype,"colorId",2);let Oc=xt;const Hv=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),n=t%8;e^=(r<<n)+(r>>8-n)}return e};Oc.define(zc);const Fc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Ec={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Vv={circular:"circular",rounded:"rounded",square:"square"},Rv={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},jv=`${h.prefix}-badge`,Dc=p.partial`${x("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${M};font-size:${E};line-height:${R};min-width:20px;height:20px;padding-inline:calc(${Q} + ${H});border-radius:${de};border-color:${U};background-color:${oi};color:${Ue};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:${B};border-color:inherit;border-radius:inherit}`,Lc=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:${so};line-height:${qo};padding-inline:calc(${H} + ${H})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${E};line-height:${R};padding-inline:calc(${Q} + ${H})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${E};line-height:${R};padding-inline:calc(${ve} + ${H})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,Mc=p.partial`:host([color='danger']){background-color:${hi};color:${Ue}}:host([color='important']){background-color:${I};color:${C}}:host([color='informative']){background-color:${Ia};color:${X}}:host([color='severe']){background-color:${mi};color:${Ue}}:host([color='subtle']){background-color:${C};color:${I}}:host([color='success']){background-color:${fi};color:${Ue}}:host([color='warning']){background-color:${Xa};color:${Ba}}`,Hc=p.partial`:host([appearance='ghost']){color:${Fo};background-color:initial}:host([appearance='ghost'][color='danger']){color:${pi}}:host([appearance='ghost'][color='important']){color:${I}}:host([appearance='ghost'][color='informative']){color:${X}}:host([appearance='ghost'][color='severe']){color:${yi}}:host([appearance='ghost'][color='subtle']){color:${ht}}:host([appearance='ghost'][color='success']){color:${qa}}:host([appearance='ghost'][color='warning']){color:${Hr}}`,qv=p.partial`:host([appearance='outline']){border-color:currentColor;color:${Fo};background-color:initial}:host([appearance='outline'][color='danger']){color:${pi}}:host([appearance='outline'][color='important']){color:${X};border-color:${Me}}:host([appearance='outline'][color='informative']){color:${X};border-color:${io}}:host([appearance='outline'][color='severe']){color:${yi}}:host([appearance='outline'][color='subtle']){color:${Yn}}:host([appearance='outline'][color='success']){color:${ja}}:host([appearance='outline'][color='warning']){color:${Hr}}`,Wv=p.partial`:host([appearance='tint']){background-color:${si};color:${Ca};border-color:${li}}:host([appearance='tint'][color='danger']){background-color:${di};color:${Mr};border-color:${ui}}:host([appearance='tint'][color='important']){background-color:${X};color:${C};border-color:${U}}:host([appearance='tint'][color='informative']){background-color:${Pa};color:${X};border-color:${io}}:host([appearance='tint'][color='severe']){background-color:${bi};color:${Wa};border-color:${vi}}:host([appearance='tint'][color='subtle']){background-color:${C};color:${X};border-color:${io}}:host([appearance='tint'][color='success']){background-color:${gi};color:${Ra};border-color:${Va}}:host([appearance='tint'][color='warning']){background-color:${Ga};color:${Hr};border-color:${Ua}}`,Vc=p`:host([shape='square']){border-radius:${Vo}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ne}}${Wv} ${qv} ${Hc} ${Mc} ${Lc} ${Dc} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Gv(o={}){return b`${Ve(o)}<slot>${ye(o.defaultContent)}</slot>${st(o)}`}const Rc=Gv(),jc={name:jv,registry:h.registry,styles:Vc,template:Rc};var Xv=Object.defineProperty,Uv=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var n=r>1?void 0:r?Uv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Xv(e,t,n),n};class Rt extends k{constructor(){super(...arguments),this.appearance=Fc.filled,this.color=Ec.brand}}en([a],Rt.prototype,"appearance",2),en([a],Rt.prototype,"color",2),en([a],Rt.prototype,"shape",2),en([a],Rt.prototype,"size",2),yt(Rt,it),Rt.define(jc);function Hi(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ve(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot></span>${st(o)}</template>`}const qc=Hi(),Wc={name:uv,registry:h.registry,styles:ho,template:qc};function at(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)&&N.enqueue(()=>{o.focus()})}var Kv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,ze=(o,e,t,r)=>{for(var n=r>1?void 0:r?Yv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Kv(e,t,n),n};class pe 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!==nr.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(),at(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 nr.reset:{this.resetForm();break}case nr.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!==nr.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)}}}}pe.formAssociated=!0,ze([g],pe.prototype,"defaultSlottedContent",2),ze([a({mode:"boolean"})],pe.prototype,"disabled",2),ze([a({attribute:"disabled-focusable",mode:"boolean"})],pe.prototype,"disabledFocusable",2),ze([a({attribute:"formaction"})],pe.prototype,"formAction",2),ze([a({attribute:"form"})],pe.prototype,"formAttribute",2),ze([a({attribute:"formenctype"})],pe.prototype,"formEnctype",2),ze([a({attribute:"formmethod"})],pe.prototype,"formMethod",2),ze([a({attribute:"formnovalidate",mode:"boolean"})],pe.prototype,"formNoValidate",2),ze([a({attribute:"formtarget"})],pe.prototype,"formTarget",2),ze([a],pe.prototype,"name",2),ze([a],pe.prototype,"type",2),ze([a],pe.prototype,"value",2);var Jv=Object.defineProperty,Zv=Object.getOwnPropertyDescriptor,tn=(o,e,t,r)=>{for(var n=r>1?void 0:r?Zv(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Jv(e,t,n),n};class Ye extends pe{constructor(){super(...arguments),this.iconOnly=!1}}tn([a],Ye.prototype,"appearance",2),tn([a],Ye.prototype,"shape",2),tn([a],Ye.prototype,"size",2),tn([a({attribute:"icon-only",mode:"boolean"})],Ye.prototype,"iconOnly",2),yt(Ye,it),Ye.define(Wc);const Qv={circular:"circular",square:"square"},ey={medium:"medium",large:"large"},ty=`${h.prefix}-checkbox`,oy=P("active"),ry=P("bad-input"),$=P("checked"),ny=P("custom-error"),iy=P("description"),$e=P("disabled");P("error");const sy=P("flip-block"),ay=P("focus-visible");P("has-message");const jt=P("indeterminate"),po=P("multiple"),ly=P("open"),cy=P("pattern-mismatch"),dy=P("placeholder-shown"),L=P("pressed"),hy=P("range-overflow"),uy=P("range-underflow"),py=P("required"),Vi=P("selected"),gy=P("step-mismatch"),on=P("submenu"),fy=P("too-long"),by=P("too-short"),my=P("type-mismatch"),vy=P("user-invalid"),yy=P("valid"),$y=P("value-missing"),Gc=p`${x("inline-flex")} :host{--size:16px;background-color:${C};border-radius:${Ne};border:${B} solid ${Me};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${pt}}:host(:active){border-color:${gt}}:host(${$}:hover){background-color:${Ft};border-color:${Fa}}:host(${$}:active){background-color:${Et};border-color:${ci}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ue} solid ${U};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${se}}.indeterminate-indicator,.checked-indicator{color:${ht};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(${$})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${$}),:host(${jt}){border-color:${nt}}:host(${$}),:host(${jt}) .indeterminate-indicator{background-color:${ut}}:host(${jt}) .indeterminate-indicator{border-radius:${Ne};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:${de}}:host([disabled]),:host([disabled]${$}){background-color:${rt};border-color:${be}}:host([disabled]){cursor:unset}:host([disabled]${jt}) .indeterminate-indicator{background-color:${be}}:host([disabled]${$}) .checked-indicator{color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${$}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${$}),:host(${jt}) .indeterminate-indicator{background-color:FieldText}:host(${$}:not([disabled]):hover),:host(${jt}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${jt}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${$}) .checked-indicator{color:GrayText}}`,ky=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>'),xy=b.partial("<span class=indeterminate-indicator></span>");function wy(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>${ye(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${ye(o.indeterminateIndicator)}</slot></template>`}const Xc=wy({checkedIndicator:ky,indeterminateIndicator:xy}),Uc={name:ty,registry:h.registry,styles:Gc,template:Xc};var Sy=Object.defineProperty,Cy=Object.getOwnPropertyDescriptor,qt=(o,e,t,r)=>{for(var n=r>1?void 0:r?Cy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Sy(e,t,n),n};class _e 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(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.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(),at(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}}_e.formAssociated=!0,qt([g],_e.prototype,"disabled",2),qt([a({attribute:"disabled",mode:"boolean"})],_e.prototype,"disabledAttribute",2),qt([a({attribute:"form"})],_e.prototype,"formAttribute",2),qt([a({attribute:"checked",mode:"boolean"})],_e.prototype,"initialChecked",2),qt([a({attribute:"value",mode:"fromView"})],_e.prototype,"initialValue",2),qt([a],_e.prototype,"name",2),qt([a({mode:"boolean"})],_e.prototype,"required",2);var By=Object.defineProperty,Py=Object.getOwnPropertyDescriptor,Ri=(o,e,t,r)=>{for(var n=r>1?void 0:r?Py(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&By(e,t,n),n};class sr extends _e{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ri([g],sr.prototype,"indeterminate",2),Ri([a],sr.prototype,"shape",2),Ri([a],sr.prototype,"size",2),sr.define(Uc);const Iy=tr,Ay=or,Ny=rr,Ty=`${h.prefix}-compound-button`,Kc=p`${ho} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${z};line-height:${D}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ae};line-height:100%;font-size:${E};font-weight:${_}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${_t}}:host(:active) ::slotted([slot='description']){color:${Ot}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ue}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Ae}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${_o}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${Oo}}: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:${ve}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${Q}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Te}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${z}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function zy(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${Ve(o)} <span class=content part=content><slot ${K("defaultSlottedContent")}></slot><slot name=description></slot></span>${st(o)}</template>`}const Yc=zy(),Jc={name:Ty,registry:h.registry,styles:Kc,template:Yc};class Zc extends Ye{}Zc.define(Jc);const _y={filled:"filled",ghost:"ghost"},Oy={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Fy={circular:"circular",rounded:"rounded"},Ey={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Qc=`${h.prefix}-counter-badge`,ed=p`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ne}}${Lc} ${Mc} ${Hc} ${Dc} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Dy(o={}){return b`${Ve(o)} <span>${e=>e.displayValue}</span> ${st(o)}`}const td=Dy(),od={name:Qc,registry:h.registry,styles:ed,template:td};var Ly=Object.defineProperty,My=Object.getOwnPropertyDescriptor,ar=(o,e,t,r)=>{for(var n=r>1?void 0:r?My(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ly(e,t,n),n};class Wt 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}`}}ar([a({converter:ie})],Wt.prototype,"count",2),ar([a({attribute:"overflow-count",converter:ie})],Wt.prototype,"overflowCount",2),ar([a({attribute:"show-zero",mode:"boolean"})],Wt.prototype,"showZero",2),ar([a({mode:"boolean"})],Wt.prototype,"dot",2),ar([Ce],Wt.prototype,"displayValue",1);var Hy=Object.defineProperty,Vy=Object.getOwnPropertyDescriptor,rn=(o,e,t,r)=>{for(var n=r>1?void 0:r?Vy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Hy(e,t,n),n};class Gt extends Wt{}rn([a],Gt.prototype,"appearance",2),rn([a],Gt.prototype,"color",2),rn([a],Gt.prototype,"shape",2),rn([a],Gt.prototype,"size",2),yt(Gt,it),Gt.define(od);const wt={modal:"modal",nonModal:"non-modal",alert:"alert"};function ji(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Ry=`${h.prefix}-dialog`,rd=p`@layer base{:host{--dialog-backdrop:${Er};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${C};border-radius:${xi};border:none;box-shadow:${zi};color:${I};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:${Xr};transition-timing-function:${vt};opacity:0}::backdrop{transition-timing-function:${Ur}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${mt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${B} solid ${U}}}}`,nd=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()} ${A("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,id={name:Ry,registry:h.registry,styles:rd,template:nd};var jy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,Je=(o,e,t,r)=>{for(var n=r>1?void 0:r?qy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&jy(e,t,n),n};class Oe 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!==wt.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===wt.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.type=this.type??wt.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===wt.alert||this.type===wt.modal?this.dialog.showModal():this.type===wt.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!==wt.alert&&e.target===this.dialog&&this.hide(),!0}}Je([g],Oe.prototype,"dialog",2),Je([a({attribute:"aria-describedby"})],Oe.prototype,"ariaDescribedby",2),Je([a({attribute:"aria-labelledby"})],Oe.prototype,"ariaLabelledby",2),Je([a({attribute:"aria-label"})],Oe.prototype,"ariaLabel",2),Je([a],Oe.prototype,"type",2),Je([Ce],Oe.prototype,"dialogDescribedby",1),Je([Ce],Oe.prototype,"dialogLabel",1),Je([Ce],Oe.prototype,"dialogLabelledby",1),Je([Ce],Oe.prototype,"dialogModal",1),Je([Ce],Oe.prototype,"dialogRole",1),Oe.define(id);const Wy=`${h.prefix}-dialog-body`,sd=p`${x("grid")} :host{background:${C};box-sizing:border-box;gap:${te};padding:${bt} ${Xo};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${C};color:${I};column-gap:8px;display:flex;font-family:${v};font-size:${Dt};font-weight:${M};inset-block-start:0;justify-content:space-between;line-height:${Wo};margin-block-end:calc(${te} * -1);margin-block-start:calc(${bt} * -1);padding-block-end:${te};padding-block-start:${bt}}.content{box-sizing:border-box;color:${I};font-family:${v};font-size:${z};font-weight:${_};line-height:${D};min-height:32px}.actions{box-sizing:border-box;background:${C};display:flex;flex-direction:column;gap:${te};inset-block-end:0;margin-block-end:calc(${bt} * -1);padding-block-end:${bt};padding-block-start:${Wr}}::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(${te} * -1);padding-block-start:${te}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,ad=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>`,ld={name:Wy,registry:h.registry,styles:sd,template:ad};class cd extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ji(t)&&t.hide()}return!0}}cd.define(ld);const ke={horizontal:"horizontal",vertical:"vertical"},go={separator:"separator",presentation:"presentation"},qi=ke,Gy={center:"center",start:"start",end:"end"},Xy={strong:"strong",brand:"brand",subtle:"subtle"},Uy=`${h.prefix}-divider`,dd=p`${x("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${io};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${B}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ae};font-family:${v};font-size:${E};font-weight:${_};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:${B};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:${He}}:host([appearance='strong']) ::slotted(*){color:${I}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${ai}}:host([appearance='brand']) ::slotted(*){color:${Fo}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${_a}}: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 Ky(){return b`<slot></slot>`}const hd=Ky(),ud={name:Uy,registry:h.registry,styles:dd,template:hd};var Yy=Object.defineProperty,Jy=Object.getOwnPropertyDescriptor,pd=(o,e,t,r)=>{for(var n=r>1?void 0:r?Jy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Yy(e,t,n),n};class nn extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??go.separator,this.role!==go.presentation&&(this.elementInternals.ariaOrientation=this.orientation??qi.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??go.separator}`),t===go.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==go.presentation?t??null:null,Mt(this.elementInternals,e,t,qi)}}pd([a],nn.prototype,"role",2),pd([a],nn.prototype,"orientation",2);var Zy=Object.defineProperty,Qy=Object.getOwnPropertyDescriptor,Wi=(o,e,t,r)=>{for(var n=r>1?void 0:r?Qy(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Zy(e,t,n),n};class lr extends nn{}Wi([a({attribute:"align-content"})],lr.prototype,"alignContent",2),Wi([a],lr.prototype,"appearance",2),Wi([a({mode:"boolean"})],lr.prototype,"inset",2),lr.define(ud);const gd={start:"start",end:"end"},fd={small:"small",medium:"medium",large:"large",full:"full"},fo={nonModal:"non-modal",modal:"modal",inline:"inline"},e$=`${h.prefix}-drawer`,bd=p`${x("block")} :host{--dialog-backdrop:${Er}}: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:${B} solid ${U};border-inline-end-color:${U};border-inline-start-color:var(--drawer-separator,${U});box-shadow:${zi};box-sizing:border-box;color:${I};font-family:${v};font-size:${z};font-weight:${_};height:100%;line-height:${D};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${Xo});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:${Xr};transition-timing-function:${vt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${mt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${mt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Xr};transition-timing-function:${vt};background:var(--dialog-backdrop,${Er});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ur}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function t$(){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()} ${A("dialog")}><slot></slot></dialog>`}const md=t$(),vd={name:e$,registry:h.registry,styles:bd,template:md};var o$=Object.defineProperty,r$=Object.getOwnPropertyDescriptor,Fe=(o,e,t,r)=>{for(var n=r>1?void 0:r?r$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&o$(e,t,n),n};class xe extends k{constructor(){super(...arguments),this.position=gd.start,this.size=fd.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===fo.modal)return!0}get dialogRole(){return this.dialog&&this.type===fo.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),N.enqueue(()=>{this.type=this.type??fo.modal})}show(){N.enqueue(()=>{this.emitBeforeToggle(),this.type===fo.inline||this.type===fo.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()}}Fe([a],xe.prototype,"type",2),Fe([a({attribute:"aria-labelledby"})],xe.prototype,"ariaLabelledby",2),Fe([a({attribute:"aria-describedby"})],xe.prototype,"ariaDescribedby",2),Fe([a],xe.prototype,"position",2),Fe([g],xe.prototype,"role",2),Fe([a({attribute:"size"})],xe.prototype,"size",2),Fe([g],xe.prototype,"dialog",2),Fe([Ce],xe.prototype,"dialogDescribedby",1),Fe([Ce],xe.prototype,"dialogLabel",1),Fe([Ce],xe.prototype,"dialogLabelledby",1),Fe([Ce],xe.prototype,"dialogModal",1),Fe([Ce],xe.prototype,"dialogRole",1),xe.define(vd);const n$=`${h.prefix}-drawer-body`,Gi=p.partial`font-family:${v};font-size:${z};line-height:${D};font-weight:${_};`,i$=p.partial`font-family:${v};font-size:${z};line-height:${D};font-weight:${M};`,s$=p.partial`font-family:${v};font-size:${z};line-height:${D};font-weight:${jo};`,yd=p.partial`font-family:${v};font-size:${he};line-height:${me};font-weight:${_};`,Xi=p.partial`font-family:${v};font-size:${E};line-height:${R};font-weight:${_};`,a$=p.partial`font-family:${v};font-size:${E};line-height:${R};font-weight:${M};`,l$=p.partial`font-family:${v};font-size:${E};line-height:${R};font-weight:${jo};`,c$=p.partial`font-family:${v};font-size:${so};line-height:${qo};font-weight:${_};`,d$=p.partial`font-family:${v};font-size:${so};line-height:${qo};font-weight:${M};`,$d=p.partial`font-family:${v};font-size:${Dt};line-height:${Wo};font-weight:${M};`,h$=p.partial`font-family:${v};font-size:${he};line-height:${me};font-weight:${M};`,u$=p.partial`font-family:${v};font-size:${he};line-height:${me};font-weight:${jo};`,p$=p.partial`font-family:${v};font-size:${Si};line-height:${Ai};font-weight:${M};`,g$=p.partial`font-family:${v};font-size:${wi};line-height:${Ii};font-weight:${M};`,f$=p.partial`font-family:${v};font-size:${Ro};line-height:${Pi};font-weight:${M};`,b$=p.partial`font-family:${v};font-size:${Ci};line-height:${Ni};font-weight:${M};`,m$=p.partial`font-family:${v};font-size:${Bi};line-height:${Ti};font-weight:${M};`,kd=p`${x("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${ic};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${$d}}.footer{display:flex;justify-content:flex-start;gap:${ee}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function v$(){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 xd=v$(),wd={name:n$,registry:h.registry,styles:kd,template:xd};class Sd extends k{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ji(t,"-drawer")&&t.hide()}return!0}}Sd.define(wd);function y$(o,e="-dropdown"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Cd={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},$$={small:"small",medium:"medium",large:"large"},sn={combobox:"combobox",dropdown:"dropdown",select:"select"},k$=`${h.prefix}-dropdown`,Bd=p`${x("inline-flex")} :host{box-sizing:border-box;color:${I};cursor:pointer}:host(${dy}){color:${Or}}.control{appearance:none;background-color:${C};border-radius:${S};border:${B} solid ${U};box-shadow:inset 0 0 0 ${B} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${H};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${ao} ${Ke};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${Gi}}:host([size='small']) .control{column-gap:${H};padding:${Lt} ${ve};${Xi}}:host([size='large']) .control{column-gap:${Te};padding:${te} ${ee};${yd}}::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:${B}}.control::after{background-color:${nt};height:${ue};scale:0 1;transition:scale ${Gr} ${vt}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${Ho};outline:${ue} solid ${se}}:host(:where(${ly},:focus-within)) .control::after{scale:1 1;transition-duration:${Jo};transition-timing-function:${mt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Me}}:host([appearance='transparent']) .control{--control-border-color:${Dr};background-color:${ce};border-radius:${Vo}}:host([appearance='outline']) .control{--control-border-color:${He}}:host([appearance='outline']) .control:hover{--control-border-color:${ft}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${pt}}:host([appearance='outline']) .control:hover::after{background-color:${Ft}}:host([appearance='outline']) .control:active{--control-border-color:${no}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${gt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Et}}:host([appearance='filled-darker']) .control{background-color:${to}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${U}}: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:${be};background-color:${rt};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(${D} + (${ao} * 2) + ${B})}:host([size='small']){--margin-offset:calc(${R} + (${Lt} * 2) + ${B})}:host([size='large']){--margin-offset:calc(${me} + (${te} * 2) + ${B})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,x$=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${A("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>`,Pd=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 ${A("control")}>`,Id=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 ${A("control")}>${o=>o.displayValue}</button>`;function w$(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 ${A("controlSlot")}></slot><slot name=indicator ${A("indicatorSlot")}>${ye(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const Ad=w$({indicator:x$}),Nd={name:k$,registry:h.registry,styles:Bd,template:Ad};function Ui(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const S$=`${h.prefix}-listbox`;function St(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const C$=`${h.prefix}-option`,lt={ltr:"ltr",rtl:"rtl"},Ki=o=>o.closest("[dir]")?.dir==="rtl"?lt.rtl:lt.ltr;function Td(o){return o.closest("[lang]")?.lang??"en"}let B$=0;function Ze(o="id-"){const e=`${o}${B$++}`;return document.getElementById(e)?Ze(o):e}var P$=Object.defineProperty,I$=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var n=r>1?void 0:r?I$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&P$(e,t,n),n};const j=class wo extends k{constructor(){super(),this.activeIndex=0,this.id=Ze("dropdown-"),this.required=!1,this.type=sn.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||Ki(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((n,i)=>{n.active=i===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Ze("input-"))}disabledChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(Td(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),N.enqueue(()=>{this.options.forEach(n=>{n.disabled=n.disabledAttribute||this.disabled,n.name=this.name}),this.enabledOptions.filter(n=>n.defaultSelected).forEach((n,i)=>{n.selected=this.multiple||i===0}),this.setValidity()}),Zr){const n=Ze("--dropdown-anchor-");this.style.setProperty("anchor-name",n),this.listbox.style.setProperty("position-anchor",n)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&N.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Zr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>St(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===sn.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>St(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(St(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(Td(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===sn.combobox){Pd.render(this,this);return}Id.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):[],n=!1;if(!r.length&&t&&(r=this.filterOptions(e),n=!0),r.length){const i=this.enabledOptions[this.activeIndex],s=r.indexOf(i),l=n?r[this.getEnabledIndexInBounds(s+1,r.length)]:s>=0?i: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 n=this.getEnabledIndexInBounds(r);return n===0&&this.freeformOption?.hidden&&(n=this.getEnabledIndexInBounds(r+t)),this.activeIndex=n,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!St(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 n=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:n,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;er(this,()=>{const r=t.assignedElements().find(n=>Ui(n));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(),N.enqueue(()=>{this.insertControl()}),at(this)}disconnectedCallback(){wo.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(wo.AnchorPositionFallbackObserver||(wo.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:n,target:i})=>{if(Ui(i)){if(r.bottom>window.innerHeight){y(i.elementInternals,"flip-block",!0);return}r.top<0&&y(i.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,wo.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}wo.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};j.formAssociated=!0,Y([Ce],j.prototype,"activeDescendant",1),Y([g],j.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],j.prototype,"ariaLabelledBy",2),Y([g],j.prototype,"control",2),Y([a({mode:"boolean"})],j.prototype,"disabled",2),Y([Ce],j.prototype,"displayValue",1),Y([a({attribute:"id"})],j.prototype,"id",2),Y([g],j.prototype,"indicator",2),Y([g],j.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],j.prototype,"initialValue",2),Y([g],j.prototype,"listbox",2),Y([a({mode:"boolean"})],j.prototype,"multiple",2),Y([a],j.prototype,"name",2),Y([g],j.prototype,"open",2),Y([a],j.prototype,"placeholder",2),Y([a({mode:"boolean"})],j.prototype,"required",2),Y([a],j.prototype,"type",2),Y([a({attribute:"value"})],j.prototype,"valueAttribute",2);let zd=j;var A$=Object.defineProperty,N$=Object.getOwnPropertyDescriptor,_d=(o,e,t,r)=>{for(var n=r>1?void 0:r?N$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&A$(e,t,n),n};class an extends zd{constructor(){super(...arguments),this.appearance=Cd.outline}}_d([a],an.prototype,"appearance",2),_d([a],an.prototype,"size",2),an.define(Nd);const Od={above:"above",after:"after",before:"before"},Pe={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"},T$=`${h.prefix}-field`,Fd=p`${x("inline-grid")} :host{color:${I};align-items:center;gap:0 ${ee};justify-items:start}:has([slot='message']){color:${I};row-gap:${te}}: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:${ee}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Uo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${sc}}:host(${py}) ::slotted([slot='label'])::after{content:'*'/'';color:${Mr};margin-inline-start:${Q}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${X};font-family:${v};font-size:${E};font-weight:${_};grid-area:message;line-height:${R};margin-block-start:${Uo}}:host(${ay}:focus-within){border-radius:${S};outline:${ue} solid ${se}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${z};font-weight:${_};grid-area:label;line-height:${D};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${E};line-height:${R}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${M}}:host(${$e}){cursor:default}::slotted([flag]){display:none}:host(${ry}) ::slotted([flag='${Pe.badInput}']),:host(${ny}) ::slotted([flag='${Pe.customError}']),:host(${cy}) ::slotted([flag='${Pe.patternMismatch}']),:host(${hy}) ::slotted([flag='${Pe.rangeOverflow}']),:host(${uy}) ::slotted([flag='${Pe.rangeUnderflow}']),:host(${gy}) ::slotted([flag='${Pe.stepMismatch}']),:host(${fy}) ::slotted([flag='${Pe.tooLong}']),:host(${by}) ::slotted([flag='${Pe.tooShort}']),:host(${my}) ::slotted([flag='${Pe.typeMismatch}']),:host(${$y}) ::slotted([flag='${Pe.valueMissing}']),:host(${yy}) ::slotted([flag='${Pe.valid}']){display:block}`,Ed=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 ${K("labelSlot")}></slot><slot name=input part=input ${K("slottedInputs")}></slot><slot name=message part=message ${K({property:"messageSlot",filter:Ao("[flag]")})}></slot></template>`,Dd={name:T$,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:Fd,template:Ed};var z$=Object.defineProperty,_$=Object.getOwnPropertyDescriptor,ln=(o,e,t,r)=>{for(var n=r>1?void 0:r?_$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&z$(e,t,n),n};class bo extends k{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){y(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(n=>n.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)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ze("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&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(Pe))y(this.elementInternals,t,this.input.validity[e])}}ln([g],bo.prototype,"labelSlot",2),ln([g],bo.prototype,"messageSlot",2),ln([g],bo.prototype,"slottedInputs",2),ln([g],bo.prototype,"input",2);var O$=Object.defineProperty,F$=Object.getOwnPropertyDescriptor,E$=(o,e,t,r)=>{for(var n=r>1?void 0:r?F$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&O$(e,t,n),n};class Yi extends bo{constructor(){super(...arguments),this.labelPosition=Od.above}}E$([a({attribute:"label-position"})],Yi.prototype,"labelPosition",2),Yi.define(Dd);const D$={none:"none",center:"center",contain:"contain",cover:"cover"},L$={circular:"circular",rounded:"rounded",square:"square"},M$=`${h.prefix}-image`,Ld=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:${B} solid ${io}}: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:${Go}}:host([shape='circular']) ::slotted(img){border-radius:${de}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,Md=b`<slot></slot>`,Hd={name:M$,registry:h.registry,styles:Ld,template:Md};var H$=Object.defineProperty,V$=Object.getOwnPropertyDescriptor,cr=(o,e,t,r)=>{for(var n=r>1?void 0:r?V$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&H$(e,t,n),n};class Xt extends k{}cr([a({mode:"boolean"})],Xt.prototype,"block",2),cr([a({mode:"boolean"})],Xt.prototype,"bordered",2),cr([a({mode:"boolean"})],Xt.prototype,"shadow",2),cr([a],Xt.prototype,"fit",2),cr([a],Xt.prototype,"shape",2),Xt.define(Hd);const R$={small:"small",medium:"medium",large:"large"},j$={regular:"regular",semibold:"semibold"},q$=`${h.prefix}-label`,Vd=p`${x("inline-flex")} :host{color:${I};cursor:pointer;font-family:${v};font-size:${z};font-weight:${_};line-height:${D};user-select:none}.asterisk{color:${Mr};margin-inline-start:${Q}}:host([size='small']){font-size:${E};line-height:${R}}:host([size='large']){font-size:${he};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${M}}:host([disabled]),:host([disabled]) .asterisk{color:${T}}`;function W$(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const Rd=W$(),jd={name:q$,registry:h.registry,styles:Vd,template:Rd};var G$=Object.defineProperty,X$=Object.getOwnPropertyDescriptor,cn=(o,e,t,r)=>{for(var n=r>1?void 0:r?X$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&G$(e,t,n),n};class mo extends k{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}cn([a],mo.prototype,"size",2),cn([a],mo.prototype,"weight",2),cn([a({mode:"boolean"})],mo.prototype,"disabled",2),cn([a({mode:"boolean"})],mo.prototype,"required",2),mo.define(jd);const U$={subtle:"subtle"},K$=wc,Y$=`${h.prefix}-link`,qd=p`${x("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${fa};cursor:pointer;font-family:${v};font-size:${z};font-weight:${_};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${B};text-overflow:inherit;user-select:text}:host(:hover){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${ba}}:host(:active){color:${ma}}:host([appearance='subtle']:hover){color:${ya}}:host([appearance='subtle']:active){color:${$a}}}:host([appearance='subtle']){color:${va}}: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:${se}}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function J$(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Wd=J$(),Gd={name:Y$,registry:h.registry,styles:qd,template:Wd};var Z$=Object.defineProperty,Q$=Object.getOwnPropertyDescriptor,Xd=(o,e,t,r)=>{for(var n=r>1?void 0:r?Q$(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Z$(e,t,n),n};class dn extends Re{constructor(){super(...arguments),this.inline=!1}}Xd([a],dn.prototype,"appearance",2),Xd([a({mode:"boolean"})],dn.prototype,"inline",2),dn.define(Gd);const Ud=p`${x("inline-flex")} :host{background-color:${C};border-radius:${S};border:${B} solid ${U};box-shadow:${Rr};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${Q};row-gap:${H};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]${sy}){margin-block-start:revert;translate:0 -100%}}`;function Kd(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${A("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const Yd=Kd(),Jd={name:S$,registry:h.registry,styles:Ud,template:Yd};var e0=Object.defineProperty,t0=Object.getOwnPropertyDescriptor,dr=(o,e,t,r)=>{for(var n=r>1?void 0:r?t0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&e0(e,t,n),n};class Ut extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),N.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,n)=>{r.elementInternals.ariaPosInSet=`${n+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=>St(e)&&!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return St(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),er(this,()=>{this.id=this.id||Ze("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,n)=>{const i=n===e;r.selected=i,i&&(t=n)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){er(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>St(r));this.options=t}})}}dr([g],Ut.prototype,"defaultSlot",2),dr([g],Ut.prototype,"multiple",2),dr([g],Ut.prototype,"options",2),dr([g],Ut.prototype,"selectedIndex",2),dr([g],Ut.prototype,"dropdown",2),Ut.define(Jd);const o0=tr,r0=or,n0=rr,i0=`${h.prefix}-menu-button`,s0=ho,Zd=Hi({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>')}),Qd={name:i0,registry:h.registry,styles:s0,template:Zd};class eh extends Ye{}eh.define(Qd);const J={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},a0={[J.menuitem]:"menuitem",[J.menuitemcheckbox]:"menuitemcheckbox",[J.menuitemradio]:"menuitemradio"};function l0(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const c0=`${h.prefix}-menu-item`,th=p`${x("grid")} :host{--indent:0;align-items:center;background:${C};border-radius:${S};color:${Ae};contain:layout;cursor:pointer;flex-shrink:0;font:${_} ${z}/${D} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Eo};color:${_t}}:host(:active){background-color:${Jn};color:${Ot}}:host(:active) ::slotted([slot='start']){color:${xa}}:host(${$e}){background-color:${rt};color:${T}}:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:${T}}:host(:focus-visible){border-radius:${S};outline:2px solid ${se}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${$})) .indicator,:host(:not(${$})) ::slotted([slot='indicator']),:host(:not(${on})) .submenu-glyph,:host(:not(${on})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${X};font:${_} ${E}/${R} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${on}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${on}){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(${$e}),:host(${$e}) ::slotted([slot='start']),:host(${$e}) ::slotted([slot='end']){color:GrayText}}`,d0=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>'),h0=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 u0(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>${ye(o.indicator)}</slot>${Ve(o)}<div part=content class=content><slot></slot></div>${st(o)}<slot name=submenu-glyph>${ye(o.submenuGlyph)}</slot><slot name=submenu ${K({property:"slottedSubmenu"})}></slot></template>`}const oh=u0({indicator:d0,submenuGlyph:h0}),rh={name:c0,registry:h.registry,styles:th,template:oh};var p0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,vo=(o,e,t,r)=>{for(var n=r>1?void 0:r?g0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&p0(e,t,n),n};class Qe extends k{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=J.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 J.menuitemcheckbox:this.checked=!this.checked;break;case J.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case J.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const 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,y(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??J.menuitem}checkedChanged(e,t){const r=this.role!==J.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,y(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",y(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,y(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??J.menuitem,this.elementInternals.ariaChecked=this.role!==J.menuitem?`${!!this.checked}`:null,at(this)}}vo([a({mode:"boolean"})],Qe.prototype,"disabled",2),vo([a],Qe.prototype,"role",2),vo([a({mode:"boolean"})],Qe.prototype,"checked",2),vo([a({mode:"boolean"})],Qe.prototype,"hidden",2),vo([g],Qe.prototype,"slottedSubmenu",2),vo([g],Qe.prototype,"submenu",2),yt(Qe,it),Qe.define(rh);const f0=`${h.prefix}-menu-list`,nh=p`${x("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${C};border:1px solid ${U};border-radius:${S};box-shadow:${Rr};padding:4px;row-gap:2px}`;function b0(){return b`<template focusgroup=menu><slot ${K("items")}></slot></template>`}const ih=b0(),sh={name:f0,registry:h.registry,styles:nh,template:ih};var hr={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Ji={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function Zi(o,e){return o.contains(e)}function m0(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function v0(o,e,t){const r="forward",n="backward",i="block",s="inline";if(y0(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?n: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?i:s,w=d?s:i,F=d?l.endsWith("-rl")!==c:c,G=d&&c,ae={ArrowUp:{axis:w,dir:G?r:n},ArrowDown:{axis:w,dir:G?n:r},ArrowLeft:{axis:f,dir:F?r:n},ArrowRight:{axis:f,dir:F?n:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!ae||t&&ae.axis&&ae.axis!==t?null:ae.dir}function y0(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 $0=globalThis.__FOCUSGROUP_POLYFILL__,k0=$0.o;function Qi(){for(const o of k0)o.takeRecords()}var hn=class{#t;#e;#s=Ji.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#n=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(m0()||!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.#y.bind(this),r),this.#t.addEventListener("focusin",this.#$.bind(this),r),this.#t.addEventListener("focusout",this.#k.bind(this),r)}disconnect(){this.#i(),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(hr.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Ji.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Ji.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(hr.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.#i(),this.#m(o)),this.#e.flush?.()}#b(){this.#i();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(hr.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(hr.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#y(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(v0(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())}#$(o){const e=o.composedPath()[0];if(e===this.#t&&this.#n&&(!o.relatedTarget||!Zi(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#i(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#n&&this.#i();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#k(o){if(!o.relatedTarget||!Zi(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&Zi(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:n}of this.#e.items())r.tabIndex=n?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(hr.AUTHOR_TABINDEX);this.#n||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#n=!0,Qi())}#i(){this.#n&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#n=!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.#i(),Qi()}};class un{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 x0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,S0=(o,e,t,r)=>{for(var n=r>1?void 0:r?w0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&x0(e,t,n),n};const es=class us extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&gs(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 i=r-1;i>=0;--i){const s=this.menuChildren[i],l=s.role;if(l===J.menuitemradio&&(s.checked=!1),l==="separator")break}const n=this.menuChildren.length-1;for(let i=r+1;i<=n;++i){const s=this.menuChildren[i],l=s.role;if(l===J.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"),N.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!==J.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,n)=>{const i=us.elementIndent(n);return Math.max(r,i)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return l0(e)||gs(e)&&!!e.role&&e.role in us.focusableElementRoles}};es.focusableElementRoles=J,S0([g],es.prototype,"items",2);let ah=es;class lh extends ah{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new un(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}lh.define(sh);const C0=`${h.prefix}-menu`,ch=p`${x("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:${B} solid ${He};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:${B} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function B0(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${A("primaryAction")}></slot><slot name=trigger ${K({property:"slottedTriggers",filter:Ao()})}></slot><slot ${K({property:"slottedMenuList",filter:Ao()})}></slot></template>`}const dh=B0(),hh={name:C0,registry:h.registry,styles:ch,template:dh};var P0=Object.defineProperty,I0=Object.getOwnPropertyDescriptor,Ct=(o,e,t,r)=>{for(var n=r>1?void 0:r?I0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&P0(e,t,n),n};class et extends k{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Qe&&(e.target.getAttribute("role")===J.menuitemcheckbox||e.target.getAttribute("role")===J.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(){N.enqueue(()=>{this._menuList.focus()})}focusTrigger(){N.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}}}Ct([a({attribute:"open-on-hover",mode:"boolean"})],et.prototype,"openOnHover",2),Ct([a({attribute:"open-on-context",mode:"boolean"})],et.prototype,"openOnContext",2),Ct([a({attribute:"close-on-scroll",mode:"boolean"})],et.prototype,"closeOnScroll",2),Ct([a({attribute:"persist-on-item-click",mode:"boolean"})],et.prototype,"persistOnItemClick",2),Ct([a({mode:"boolean"})],et.prototype,"split",2),Ct([g],et.prototype,"slottedMenuList",2),Ct([g],et.prototype,"slottedTriggers",2),Ct([g],et.prototype,"primaryAction",2),et.define(hh);const A0={multiline:"multiline",singleline:"singleline"},N0={rounded:"rounded",square:"square"},T0={success:"success",warning:"warning",error:"error",info:"info"},z0=`${h.prefix}-message-bar`,uh=p`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${E};line-height:${R};width:100%;background:${to};color:${X};border:1px solid ${He};padding-inline:${ee};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:${gi};border-color:${Ha}}:host([intent='warning']){background-color:${bi};border-color:${vi}}:host([intent='error']){background-color:${di};border-color:${ui}}: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:${Ko};padding-inline:${ee}}.content{grid-area:body;max-width:520px;padding-block:${Ko};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:${Te}}: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:${Te};gap:${Te}}:host([layout='multiline']) .actions{margin-block-start:${Ko};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${te}}::slotted(*){font-size:inherit}`;function _0(){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 ph=_0(),gh={name:z0,registry:h.registry,styles:uh,template:ph};var O0=Object.defineProperty,F0=Object.getOwnPropertyDescriptor,ts=(o,e,t,r)=>{for(var n=r>1?void 0:r?F0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&O0(e,t,n),n};class ur extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}ts([a],ur.prototype,"shape",2),ts([a],ur.prototype,"layout",2),ts([a],ur.prototype,"intent",2),ur.define(gh);const fh=p`${x("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${Gi} align-items:center;background-color:${C};border-radius:${S};box-sizing:border-box;color:${Ae};column-gap:${Q};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ve};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${Eo};color:${_t}}:host(:active){background-color:${Fr};color:${Ot}}: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(${Vi}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${po}) .checkmark-16-filled,:host(:not(${po})) .checkmark-12-regular{display:none}:host(${po}) .checkmark-12-regular{background-color:${C};border-radius:${Ne};border:${B} solid ${Me};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${po}${Vi}) .checkmark-12-regular{background-color:${ut};border-color:${nt};fill:${ht}}:host(:disabled${po}) .checkmark-12-regular{border-color:${be}}:host(:disabled${po}${Vi}) .checkmark-12-regular{background-color:${rt}}:host(${oy}){border:${ue} solid ${se}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ve}}}:host(${iy}){column-gap:${ve};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${X};grid-area:description;${Xi}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,E0=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 D0(o={}){return b`<slot name=checked-indicator>${ye(o.checkedIndicator)}</slot>${Ve(o)}<div class=content part=content><slot ${K({property:"freeformOutputs",filter:Ao("output")})}></slot></div><div class=description part=description><slot name=description ${K("descriptionSlot")}></slot></div>`}const bh=D0({checkedIndicator:E0}),mh={name:C$,registry:h.registry,styles:fh,template:bh};var L0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,we=(o,e,t,r)=>{for(var n=r>1?void 0:r?M0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&L0(e,t,n),n};class oe extends k{constructor(){super(),this.active=!1,this.id=Ze("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,N.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}oe.formAssociated=!0,we([g],oe.prototype,"active",2),we([a({attribute:"current-selected",mode:"boolean"})],oe.prototype,"currentSelected",2),we([a({attribute:"selected",mode:"boolean"})],oe.prototype,"defaultSelected",2),we([g],oe.prototype,"descriptionSlot",2),we([g],oe.prototype,"disabled",2),we([a({attribute:"disabled",mode:"boolean"})],oe.prototype,"disabledAttribute",2),we([a({attribute:"form"})],oe.prototype,"formAttribute",2),we([a({mode:"boolean"})],oe.prototype,"freeform",2),we([a({attribute:"id"})],oe.prototype,"id",2),we([a({attribute:"value",mode:"fromView"})],oe.prototype,"initialValue",2),we([g],oe.prototype,"multiple",2),we([a],oe.prototype,"name",2),we([g],oe.prototype,"start",2),we([a({attribute:"text",mode:"fromView"})],oe.prototype,"textAttribute",2),oe.define(mh);const H0={medium:"medium",large:"large"},V0={rounded:"rounded",square:"square"},vh={success:"success",warning:"warning",error:"error"},R0=`${h.prefix}-progress-bar`,yh=p`${x("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${oo};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:${Vo}}.indicator{background-color:${ut};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,${oo} 0%,${ce} 50%,${oo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${hi}}:host([validation-state='warning']) .indicator{background-color:${mi}}:host([validation-state='success']) .indicator{background-color:${fi}}@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 j0(){return b`<div class=indicator part=indicator ${A("indicator")}></div>`}const $h=j0(),kh={name:R0,registry:h.registry,styles:yh,template:$h};var q0=Object.defineProperty,W0=Object.getOwnPropertyDescriptor,pr=(o,e,t,r)=>{for(var n=r>1?void 0:r?W0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&q0(e,t,n),n};class Kt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){Mt(this.elementInternals,e,t,vh)}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>))")||N.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,n=t-e,i=n===0?0:Math.fround((r-e)/n*100);this.indicator?.style.setProperty("width",`${i}%`)})}}pr([g],Kt.prototype,"indicator",2),pr([a({attribute:"validation-state"})],Kt.prototype,"validationState",2),pr([a({converter:ie})],Kt.prototype,"value",2),pr([a({converter:ie})],Kt.prototype,"min",2),pr([a({converter:ie})],Kt.prototype,"max",2);var G0=Object.defineProperty,X0=Object.getOwnPropertyDescriptor,xh=(o,e,t,r)=>{for(var n=r>1?void 0:r?X0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&G0(e,t,n),n};class pn extends Kt{}xh([a],pn.prototype,"thickness",2),xh([a],pn.prototype,"shape",2),pn.define(kh);const os=ke,U0=`${h.prefix}-radio-group`,wh=p`${x("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Wr}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${X}}::slotted(:hover){color:${Ae}}::slotted(:active){color:${I}}::slotted(${$e}){color:${T}}::slotted(${$}){color:${I}}:host([slot='input']){margin:${te} ${Te}}`;function K0(){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 ${K("slottedRadios")}></slot></template>`}const Sh=K0(),Ch={name:U0,registry:h.registry,styles:wh,template:Sh};function Y0(o,e="-radio"){return ps(e)(o)}const J0=`${h.prefix}-radio`;var Z0=Object.defineProperty,Q0=Object.getOwnPropertyDescriptor,Bt=(o,e,t,r)=>{for(var n=r>1?void 0:r?Q0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Z0(e,t,n),n};class je extends k{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??os.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??os.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 n=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===n,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"&&n>=0)&&(this.checkedIndex=n);const i=t.map(s=>s.id).join(" ").trim();i&&this.setAttribute("aria-owns",i)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){N.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(r=>Y0(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((n,i)=>{const s=i===e;n.checked=s,s&&(r=i,t&&n.$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 i={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((l,u)=>{u===0?l.elementInternals.setValidity(i,s,l):l.elementInternals.setValidity({})})}}}je.formAssociated=!0,Bt([g],je.prototype,"checkedIndex",2),Bt([a({attribute:"disabled",mode:"boolean"})],je.prototype,"disabled",2),Bt([a({attribute:"value",mode:"fromView"})],je.prototype,"initialValue",2),Bt([a],je.prototype,"name",2),Bt([a],je.prototype,"orientation",2),Bt([g],je.prototype,"radios",2),Bt([a({mode:"boolean"})],je.prototype,"required",2),Bt([g],je.prototype,"slottedRadios",2);class Bh extends je{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new un(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}Bh.define(Ch);const Ph=p`${x("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${C};border:${B} solid ${Me};border-radius:${de};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${de};color:${ht};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:${ue} solid ${U};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${se}}:host(:hover){border-color:${pt}}:host(${$}){border-color:${nt}}:host(${$}) .checked-indicator{background-color:${ut}}:host(${$}:hover) .checked-indicator{background-color:${Ft}}:host(:active){border-color:${gt}}:host(${$}:active) .checked-indicator{background-color:${Et}}:host(:focus-visible){outline:none}:host(${$e}){background-color:${rt};border-color:${be}}:host(${$}${$e}) .checked-indicator{background-color:${be}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${$e}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${$}) .checked-indicator{background-color:FieldText}:host(${$}:not(${$e}):hover) .checked-indicator{background-color:Highlight}:host(${$e}){border-color:GrayText;color:GrayText}:host(${$e}${$}) .checked-indicator{background-color:GrayText}}`,ek=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function tk(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>${ye(o.checkedIndicator)}</slot></template>`}const Ih=tk({checkedIndicator:ek}),Ah={name:J0,registry:h.registry,styles:Ph,template:Ih};class Nh extends _e{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)}}Nh.define(Ah);const ok={neutral:"neutral",brand:"brand",marigold:"marigold"},rk={small:"small",medium:"medium",large:"large"},nk=`${h.prefix}-rating-display`;var ik=Object.defineProperty,sk=Object.getOwnPropertyDescriptor,gr=(o,e,t,r)=>{for(var n=r>1?void 0:r?sk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ik(e,t,n),n};const ak=CSS.supports("width: attr(value type(<number>))"),yo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function gn(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Yt 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(yo.maskImageFilled),this.display.style.removeProperty(yo.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,n=`
|
|
6
2
|
<svg
|
|
7
3
|
viewBox="${r}"
|
|
8
4
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -13,13 +9,13 @@ Template: ${d.slice(0,200)}${d.length>200?"...":""}`),new Yu(S.join(`
|
|
|
13
9
|
fill="none"
|
|
14
10
|
stroke="black"
|
|
15
11
|
stroke-width="2"
|
|
16
|
-
>${t}</svg>`;this.display.style.setProperty(
|
|
17
|
-
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${
|
|
18
|
-
`,
|
|
12
|
+
>${t}</svg>`;this.display.style.setProperty(yo.maskImageFilled,`url(${gn(n)})`),this.display.style.setProperty(yo.maskImageOutlined,`url(${gn(i)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||ak)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(yo[e]):this.display.style.setProperty(yo[e],`${t}`)})}}gr([g],Yt.prototype,"iconSlot",2),gr([a({converter:ie})],Yt.prototype,"count",2),gr([a({attribute:"icon-view-box"})],Yt.prototype,"iconViewBox",2),gr([a({converter:ie})],Yt.prototype,"max",2),gr([a({converter:ie})],Yt.prototype,"value",2);const Th='<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" />',lk=`
|
|
13
|
+
<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${Th}</svg>
|
|
14
|
+
`,ck=`
|
|
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 H0(){return b`<div ${A("display")} class=display aria-hidden=true></div><slot name=icon ${A("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 Ph=H0(),Ih=g`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${qa};--_icon-color-empty:${fi};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${gn(L0)});--_mask-image-outlined:url(${gn(M0)});--_mask-position-x:left;align-items:center;color:${T};font-family:${v};font-size:${D};line-height:${j};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:${O};line-height:${L}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${T};--_icon-color-empty:${oo}}:host([color='brand']){--_icon-color-value:${zo};--_icon-color-empty:${ti}}@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:${te};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:${me}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${te}}: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:${me}}@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)}}`,Nh={name:O0,registry:u.registry,styles:Ih,template:Ph};var V0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,Qi=(o,e,t,r)=>{for(var n=r>1?void 0:r?R0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&V0(e,t,n),n};class ur extends Kt{constructor(){super(...arguments),this.compact=!1}}Qi([a],ur.prototype,"color",2),Qi([a],ur.prototype,"size",2),Qi([a({mode:"boolean"})],ur.prototype,"compact",2),ur.define(Nh);const j0={small:"small",medium:"medium"},Th=ye,Ah={singleValue:"single-value"},q0=`${u.prefix}-slider`,zh=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:${ht};--track-color:${He};--slider-direction:90deg;--border-radius:${B};--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:${_t}}:host(:active){--rail-color:${Ot}}:host(:disabled){--rail-color:${z};--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:${Te}}: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 ${ce};outline:1px solid ${Do}}: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:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${P} inset;border:calc(var(--thumb-size) * 0.05) solid ${Ve};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 W0(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${A("track")} part=track-container class=track style=${e=>e.position}></div><div ${A("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ve(o.thumb)}</slot></div></template>`}const _h=W0({thumb:'<div class="thumb"></div>'}),Oh={name:q0,registry:u.registry,styles:zh,template:_h};function Fh(o,e,t){return Math.min(Math.max(t,o),e)}const Zi={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 Eh(o,e,t,r){let n=Fh(0,1,(o-e)/(t-e));return r===ct.rtl&&(n=1-n),n}var G0=Object.defineProperty,X0=Object.getOwnPropertyDescriptor,ie=(o,e,t,r)=>{for(var n=r>1?void 0:r?X0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&G0(e,t,n),n};class W extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=ct.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=Ah.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,n=this.orientation===ye.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`},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 n=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const i=this.orientation===ye.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-n/2;this.value=`${this.calculateNewValue(i)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Th.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,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=Fh(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??ye.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=qi(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")}),lt(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!==ct.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!==ct.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!==ct.rtl&&this.orientation!==ye.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==ct.rtl&&this.orientation!==ye.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=Eh(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===ye.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=Eh(e,this.orientation===ye.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===ye.vertical?this.trackHeight:this.trackWidth,this.orientation===ye.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),n=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=n>=Number(this.stepAsNumber)/2?t-n+Number(this.stepAsNumber):t-n,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){_.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,ie([a],W.prototype,"size",2),ie([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),ie([f],W.prototype,"direction",2),ie([f],W.prototype,"isDragging",2),ie([f],W.prototype,"position",2),ie([f],W.prototype,"trackWidth",2),ie([f],W.prototype,"trackMinWidth",2),ie([f],W.prototype,"trackHeight",2),ie([f],W.prototype,"trackLeft",2),ie([f],W.prototype,"trackMinHeight",2),ie([f],W.prototype,"valueTextFormatter",2),ie([a({mode:"boolean"})],W.prototype,"disabled",2),ie([a({converter:Zi})],W.prototype,"min",2),ie([a({converter:Zi})],W.prototype,"max",2),ie([a({converter:Zi})],W.prototype,"step",2),ie([a],W.prototype,"orientation",2),ie([a],W.prototype,"mode",2),W.define(Oh);const U0={primary:"primary",inverted:"inverted"},K0={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},Y0=`${u.prefix}-spinner`,Dh=g`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Be};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${Be};--size:36px}:host([size='extra-large']){--indicatorSize:${Be};--size:40px}:host([size='huge']){--indicatorSize:${jr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Yo}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ri};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:${oi};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:${Na}}.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}}`,Lh=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>`,Mh={name:Y0,registry:u.registry,styles:Dh,template:Lh};class Hh extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var J0=Object.defineProperty,Q0=Object.getOwnPropertyDescriptor,Vh=(o,e,t,r)=>{for(var n=r>1?void 0:r?Q0(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&J0(e,t,n),n};class fn extends Hh{}Vh([a],fn.prototype,"size",2),Vh([a],fn.prototype,"appearance",2),fn.define(Mh);const Z0={above:"above",after:"after",before:"before"},ek=`${u.prefix}-switch`,Rh=g`${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:${le};border:1px solid ${He};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${ut}}:host(:active){border-color:${pt}}:host(:disabled),:host([readonly]){border:1px solid ${fe};background-color:none;pointer:default}:host(${y}){background:${ht};border-color:${ht}}:host(${y}:hover){background:${_t};border-color:${_t}}:host(${y}:active){background:${Ot};border-color:${Ot}}:host(${y}:disabled){background:${nt};border-color:${fe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${Uo};transition-timing-function:${Yo};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${dt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${va}}:host(${y}:active) .checked-indicator{background:${$a}}:host(:hover) .checked-indicator{background-color:${aa}}:host(:active) .checked-indicator{background-color:${la}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${z}}:host(${y}:disabled) .checked-indicator{background:${z}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ue} solid ${U};outline-offset:1px;box-shadow:${jo},0 0 0 2px ${ce}}@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 tk(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>${ve(o.switch)}</slot></template>`}const jh=tk({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),qh={name:ek,registry:u.registry,styles:Rh,template:jh};class Wh extends _e{constructor(){super(),this.elementInternals.role="switch"}}Wh.define(qh);function bn(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ok=`${u.prefix}-tab`,Gh=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:${O};color:${Ne};fill:currentcolor;grid-row:1;padding:${oe} ${Ye};border-radius:${B};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${T};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:${it};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${gt};border-radius:${de};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:${gt}}}:host([aria-selected='true'][disabled])::after{background-color:${z}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${z};color:${z};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Te};box-shadow:0 0 0 3px ${ce};outline:1px solid ${Do}}: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 rk(o={}){return b`<template slot=tab role=tab>${Re(o)} <span class=tab-content><slot></slot></span>${at(o)}</template>`}const Xh=rk({}),Uh={name:ok,registry:u.registry,styles:Gh,template:Xh};var nk=Object.defineProperty,ik=Object.getOwnPropertyDescriptor,sk=(o,e,t,r)=>{for(var n=r>1?void 0:r?ik(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&nk(e,t,n),n};class mn 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=g`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),lt(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}sk([a({mode:"boolean"})],mn.prototype,"disabled",2),vt(mn,st),mn.define(Uh);const Kh={subtle:"subtle",transparent:"transparent"},ak={small:"small",medium:"medium",large:"large"},yo=ye,lk=`${u.prefix}-tablist`,Yh=g`${w("flex")} :host{--tabPaddingInline:${Ye};--tabPaddingBlock:${oe};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ne};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ao};--tabPaddingInline:${me}}:host([size='large']){--tabPaddingBlock:${Wr};--tabPaddingInline:${Ye}}:host([orientation='vertical']){--tabPaddingBlock:${re};--tabIndicatorInsetBlock:${re};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${Wo};--tabIndicatorInsetBlock:${ao}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${re};--tabIndicatorInsetBlock:${Go}}::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:${Be};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Be};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Be};border-radius:${de};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${z}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Be};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:${Be};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${O};line-height:${L}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${be}}: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:${z}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${z}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${z}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${z}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${Oo};color:${qn};fill:${ba}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${T}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${it};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:${rc};transition-timing-function:${Ni};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Be}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Be};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:${z}}}`,Jh=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${Y("slottedTabs")}></slot></template>`,Qh={name:lk,registry:u.registry,styles:Yh,template:Jh};var ck=Object.defineProperty,dk=Object.getOwnPropertyDescriptor,pr=(o,e,t,r)=>{for(var n=r>1?void 0:r?dk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ck(e,t,n),n};class Yt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=yo.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??yo.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??yo.horizontal,Dt(this.elementInternals,e,t,yo)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>bn(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']")),n=this.getRootNode();let i="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Ze("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!i&&!s.disabled&&(i=s.id);const c=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",c),s.setAttribute("aria-selected",c.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===yo.vertical),e){const h=s.getAttribute("aria-controls")??"",d=n.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):i&&(this.activeid=i))}handleFocusIn(e){const t=e.target;!bn(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),n=e?r.getElementById(e):null,i=r.getElementById(t);if(!bn(i)||!this.contains(i))return;if(n){n.setAttribute("aria-selected","false");const c=this.tabPanelMap.get(n);c&&(c.hidden=!0)}i.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(i);s&&(s.hidden=!1),this.activetab=i,this.change()}connectedCallback(){super.connectedCallback(),Jo(this,()=>{this.setTabs()},{shallow:!0})}}pr([a({mode:"boolean"})],Yt.prototype,"disabled",2),pr([a],Yt.prototype,"orientation",2),pr([a],Yt.prototype,"activeid",2),pr([f],Yt.prototype,"slottedTabs",2),pr([f],Yt.prototype,"tabs",2);var hk=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,Zh=(o,e,t,r)=>{for(var n=r>1?void 0:r?uk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&hk(e,t,n),n};class vn extends Yt{constructor(){super(...arguments),this.appearance=Kh.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new un(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Zh([a],vn.prototype,"appearance",2),Zh([a],vn.prototype,"size",2),vn.define(Qh);const pk={small:"small",medium:"medium",large:"large"},$n={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},gk=[$n.filledLighter,$n.filledDarker],fk={on:"on",off:"off"},gr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},bk=`${u.prefix}-textarea`,eu=g`${w("inline-block")} :host{--font-size:${O};--line-height:${L};--padding-inline:${Ye};--padding-block:${ao};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${V};--color:${T};--background-color:${P};--border-color:${Ve};--border-block-end-color:${He};--placeholder-color:${Or};--focus-indicator-color:${it};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${F};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${gt};--border-block-end-color:${ut}}:host(:active){--border-color:${no};--border-block-end-color:${pt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${D};--line-height:${j};--min-block-size:40px;--padding-block:${Et};--padding-inline:${me};--control-padding-inline:${V}}:host([size='large']){--font-size:${he};--line-height:${be};--min-block-size:64px;--padding-block:${re};--padding-inline:${oe};--control-padding-inline:${me}}: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:${to};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${Vr}}:host(${Uv}){--border-color:${Lr};--border-block-end-color:${Lr}}:host(:disabled){--color:${z};--background-color:${le};--border-color:${fe};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${z};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:${B};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 ${B} ${B};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${B});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${bt};transition-duration:${Gr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Uo};transition-delay:${mt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Et};padding-inline-end:${te}}: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:${dt};background-color:${Xn}}@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 mk(){return b`<template><label ${A("labelEl")} for=control part=label><slot name=label ${Y("labelSlottedNodes")}></slot></label><div class=root part=root ${A("rootEl")}><textarea ${A("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 ${Y("defaultSlottedNodes")}></slot></div></template>`}const tu=mk(),ou={name:bk,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:eu,template:tu},vk=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var $k=Object.defineProperty,yk=Object.getOwnPropertyDescriptor,se=(o,e,t,r)=>{for(var n=r>1?void 0:r?yk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$k(e,t,n),n};class G 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=gr.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(){_.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(vk),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){Dt(this.elementInternals,e,t,gr,"resize-"),$(this.elementInternals,"resize",Sc(gr,t)&&t!==gr.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(),lt(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")}}G.formAssociated=!0,se([f],G.prototype,"controlEl",2),se([f],G.prototype,"defaultSlottedNodes",2),se([f],G.prototype,"labelSlottedNodes",2),se([a],G.prototype,"autocomplete",2),se([a({attribute:"auto-resize",mode:"boolean"})],G.prototype,"autoResize",2),se([a({attribute:"dirname"})],G.prototype,"dirName",2),se([a({mode:"boolean"})],G.prototype,"disabled",2),se([a({attribute:"display-shadow",mode:"boolean"})],G.prototype,"displayShadow",2),se([a({attribute:"form"})],G.prototype,"initialForm",2),se([a({attribute:"maxlength",converter:ae})],G.prototype,"maxLength",2),se([a({attribute:"minlength",converter:ae})],G.prototype,"minLength",2),se([a],G.prototype,"name",2),se([a],G.prototype,"placeholder",2),se([a({attribute:"readonly",mode:"boolean"})],G.prototype,"readOnly",2),se([a({mode:"boolean"})],G.prototype,"required",2),se([a({mode:"fromView"})],G.prototype,"resize",2),se([a({mode:"boolean"})],G.prototype,"spellcheck",2);var kk=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,es=(o,e,t,r)=>{for(var n=r>1?void 0:r?xk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&kk(e,t,n),n};class fr extends G{constructor(){super(...arguments),this.appearance=$n.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")}}es([a({mode:"fromView"})],fr.prototype,"appearance",2),es([a({mode:"boolean"})],fr.prototype,"block",2),es([a],fr.prototype,"size",2),fr.define(ou);const wk={small:"small",medium:"medium",large:"large"},Sk={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},ru={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Bk=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Ck=`${u.prefix}-text-input`,nu=g`${w("block")} :host{font-family:${v};font-size:${O};font-weight:${F};line-height:${L};max-width:400px}.label{display:flex;color:${T};padding-bottom:${Et};flex-shrink:0;padding-inline-end:${te}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${P};border:${I} solid ${Ve};border-bottom-color:${He};border-radius:${B};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${V};padding:0 ${Ye};position:relative;width:100%}:has(.control:user-invalid){border-color:${Lr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${B});border-radius:0 0 ${B} ${B};border-bottom:2px solid ${it};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Gr};transition-delay:${bt}}.control{width:100%;height:100%;box-sizing:border-box;color:${T};border-radius:${B};background:${le};font-family:${v};font-weight:${F};font-size:${O};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Or}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${Ft}}:host ::slotted([slot='start']){padding-right:${V}}:host ::slotted([slot='end']){padding-left:${V};gap:${te}}:host(:hover) .root{border-color:${gt};border-bottom-color:${ut}}:host(:active) .root{border-color:${no}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Uo};transition-delay:${mt}}:host(:focus-within:active) .root:after{border-bottom-color:${ni}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${Ve}}:host(:focus-within) .control{color:${T}}:host([disabled]) .root{background:${le};border:${I} solid ${fe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${z}}::selection{color:${dt};background-color:${Xn}}:host([control-size='small']) .control{font-size:${D};font-weight:${F};line-height:${j}}:host([control-size='small']) .root{height:24px;gap:${V};padding:0 ${me}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${F};line-height:${be}}:host([control-size='large']) .root{height:40px;gap:${Ae};padding:0 ${oe}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${Mo}}:host([appearance='underline']) .root{background:${le};border:0;border-radius:0;border-bottom:${I} solid ${He}}:host([appearance='underline']:hover) .root{border-bottom-color:${ut}}:host([appearance='underline']:active) .root{border-bottom-color:${pt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${pt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${fe}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${U};box-shadow:${Vr}}:host([appearance='filled-lighter']) .root{background:${P}}:host([appearance='filled-darker']) .root{background:${to}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Dr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Dr};background:${to}}`;function Pk(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${A("controlLabel")}><slot ${Y("defaultSlottedNodes")}></slot></label><div class=root part=root>${Re(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} ${A("control")}> ${at(o)}</div></template>`}const iu=Pk(),su={name:Ck,registry:u.registry,shadowOptions:{delegatesFocus:!0},styles:nu,template:iu};var Ik=Object.defineProperty,Nk=Object.getOwnPropertyDescriptor,R=(o,e,t,r)=>{for(var n=r>1?void 0:r?Nk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ik(e,t,n),n};class E extends x{constructor(){super(...arguments),this.type=ru.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){_.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){_.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(),lt(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(n=>n.getAttribute("type")==="submit");if(t){t.click();return}e.filter(n=>Bk.includes(n.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)}}}E.formAssociated=!0,R([a],E.prototype,"autocomplete",2),R([a({attribute:"current-value"})],E.prototype,"currentValue",2),R([f],E.prototype,"defaultSlottedNodes",2),R([a],E.prototype,"dirname",2),R([a({mode:"boolean"})],E.prototype,"disabled",2),R([a({attribute:"form"})],E.prototype,"formAttribute",2),R([a({attribute:"value",mode:"fromView"})],E.prototype,"initialValue",2),R([a],E.prototype,"list",2),R([a({converter:ae})],E.prototype,"maxlength",2),R([a({converter:ae})],E.prototype,"minlength",2),R([a({mode:"boolean"})],E.prototype,"multiple",2),R([a],E.prototype,"name",2),R([a],E.prototype,"pattern",2),R([a],E.prototype,"placeholder",2),R([a({attribute:"readonly",mode:"boolean"})],E.prototype,"readOnly",2),R([a({mode:"boolean"})],E.prototype,"required",2),R([a({converter:ae})],E.prototype,"size",2),R([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],E.prototype,"spellcheck",2),R([a],E.prototype,"type",2),R([f],E.prototype,"control",2),R([f],E.prototype,"controlLabel",2);var Tk=Object.defineProperty,Ak=Object.getOwnPropertyDescriptor,au=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ak(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Tk(e,t,n),n};class br extends E{}au([a],br.prototype,"appearance",2),au([a({attribute:"control-size"})],br.prototype,"controlSize",2),vt(br,st),br.define(su);const zk={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},_k={base:"base",numeric:"numeric",monospace:"monospace"},Ok={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},Fk={start:"start",end:"end",center:"center",justify:"justify"},Ek=`${u.prefix}-text`,lu=g`${w("inline")} :host{font-family:${v};font-size:${O};line-height:${L};font-weight:${F};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:${so};line-height:${Vo}}:host([size='200']){font-size:${D};line-height:${j}}:host([size='400']){font-size:${he};line-height:${be}}:host([size='500']){font-size:${Ft};line-height:${Ro}}:host([size='600']){font-size:${Mo};line-height:${xi}}:host([size='700']){font-size:${vi};line-height:${wi}}:host([size='800']){font-size:${$i};line-height:${Si}}:host([size='900']){font-size:${yi};line-height:${Bi}}:host([size='1000']){font-size:${ki};line-height:${Ci}}:host([font='monospace']){font-family:${Ul}}:host([font='numeric']){font-family:${Kl}}:host([weight='medium']){font-weight:${Yl}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${Ho}}: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}`,cu=b`<slot></slot>`,du={name:Ek,registry:u.registry,styles:lu,template:cu};var Dk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,ot=(o,e,t,r)=>{for(var n=r>1?void 0:r?Lk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Dk(e,t,n),n};class Ee 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}}ot([a({mode:"boolean"})],Ee.prototype,"nowrap",2),ot([a({mode:"boolean"})],Ee.prototype,"truncate",2),ot([a({mode:"boolean"})],Ee.prototype,"italic",2),ot([a({mode:"boolean"})],Ee.prototype,"underline",2),ot([a({mode:"boolean"})],Ee.prototype,"strikethrough",2),ot([a({mode:"boolean"})],Ee.prototype,"block",2),ot([a],Ee.prototype,"size",2),ot([a],Ee.prototype,"font",2),ot([a],Ee.prototype,"weight",2),ot([a],Ee.prototype,"align",2),Ee.define(du);const Mk=Qo,Hk=Zo,Vk=er,Rk=`${u.prefix}-toggle-button`,hu=g`${ho} :host(${M}){border-color:${Ve};background-color:${Gn};color:${T};border-width:${I}}:host(${M}:hover){border-color:${gt};background-color:${_o}}:host(${M}:active){border-color:${no};background-color:${Fr}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${Pa};color:${Ke}}:host(${M}[appearance='primary']:hover){background-color:${Qn}}:host(${M}[appearance='primary']:active){background-color:${Zn}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${Kn};color:${No}}:host(${M}[appearance='subtle']:hover){background-color:${Oo};color:${At}}:host(${M}[appearance='subtle']:active){background-color:${ro};color:${zt}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${Yn}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${Fo}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${Eo}}:host(${M}[appearance='transparent']){border-color:transparent;color:${sa}}:host(${M}[appearance='transparent']:hover){color:${To}}:host(${M}[appearance='transparent']:active){color:${Ao}}@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}}`,uu=Fi(),pu={name:Rk,registry:u.registry,styles:hu,template:uu};var jk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,gu=(o,e,t,r)=>{for(var n=r>1?void 0:r?qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&jk(e,t,n),n};class yn extends Je{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))}}gu([a({mode:"boolean"})],yn.prototype,"pressed",2),gu([a({mode:"boolean"})],yn.prototype,"mixed",2),yn.define(pu);const Pe={"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"},Wk=`${u.prefix}-tooltip`,fu=g`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Et};--inline-offset:${te};background:${P};border-radius:${B};border:1px solid ${U};box-sizing:border-box;color:${T};display:inline-flex;filter:drop-shadow(0 0 2px ${Aa}) drop-shadow(0 4px 8px ${za});font-family:${v};font-size:${D};inset:unset;line-height:${j};margin:unset;max-width:240px;overflow:visible;padding:4px ${Ye} 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:${Pe["above-start"]}}:host([positioning='above']){--position-area:${Pe.above}}:host([positioning='above-end']){--position-area:${Pe["above-end"]}}:host([positioning='below-start']){--position-area:${Pe["below-start"]}}:host([positioning='below']){--position-area:${Pe.below}}:host([positioning='below-end']){--position-area:${Pe["below-end"]}}:host([positioning='before-top']){--position-area:${Pe["before-top"]}}:host([positioning='before']){--position-area:${Pe.before}}:host([positioning='before-bottom']){--position-area:${Pe["before-bottom"]}}:host([positioning='after-top']){--position-area:${Pe["after-top"]}}:host([positioning='after']){--position-area:${Pe.after}}:host([positioning='after-bottom']){--position-area:${Pe["after-bottom"]}}`,bu=b`<template popover aria-hidden=true><slot></slot></template>`,mu={name:Wk,registry:u.registry,styles:fu,template:bu};var Gk=Object.defineProperty,Xk=Object.getOwnPropertyDescriptor,kn=(o,e,t,r)=>{for(var n=r>1?void 0:r?Xk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Gk(e,t,n),n};class ko extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ze("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),Qr){Xm||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}_.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(Qr){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 n={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},i=n[t]??n.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[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
17
|
+
>${Th}</svg>
|
|
18
|
+
`;function dk(){return b`<div ${A("display")} class=display aria-hidden=true></div><slot name=icon ${A("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 zh=dk(),_h=p`${x("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${Ka};--_icon-color-empty:${$i};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${gn(lk)});--_mask-image-outlined:url(${gn(ck)});--_mask-position-x:left;align-items:center;color:${I};font-family:${v};font-size:${E};line-height:${R};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:${z};line-height:${D}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${I};--_icon-color-empty:${oo}}:host([color='brand']){--_icon-color-value:${Fo};--_icon-color-empty:${si}}@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) + ${H});--_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) - ${H}/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:${Q};font-weight:${M}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${H}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ve}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${Q}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${H}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ve}}@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)}}`,Oh={name:nk,registry:h.registry,styles:_h,template:zh};var hk=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,rs=(o,e,t,r)=>{for(var n=r>1?void 0:r?uk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&hk(e,t,n),n};class fr extends Yt{constructor(){super(...arguments),this.compact=!1}}rs([a],fr.prototype,"color",2),rs([a],fr.prototype,"size",2),rs([a({mode:"boolean"})],fr.prototype,"compact",2),fr.define(Oh);const pk={small:"small",medium:"medium"},Fh=ke,Eh={singleValue:"single-value"},gk=`${h.prefix}-slider`,Dh=p`${x("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:${ut};--track-color:${Me};--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:${Ft}}:host(:active){--rail-color:${Et}}:host(:disabled){--rail-color:${T};--track-color:${rt}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ne}}: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 ${se};outline:1px solid ${Ho}}: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:${de};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${He};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 fk(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${A("track")} part=track-container class=track style=${e=>e.position}></div><div ${A("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${ye(o.thumb)}</slot></div></template>`}const Lh=fk({thumb:'<div class="thumb"></div>'}),Mh={name:gk,registry:h.registry,styles:Dh,template:Lh};function Hh(o,e,t){return Math.min(Math.max(t,o),e)}const ns={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 Vh(o,e,t,r){let n=Hh(0,1,(o-e)/(t-e));return r===lt.rtl&&(n=1-n),n}var bk=Object.defineProperty,mk=Object.getOwnPropertyDescriptor,re=(o,e,t,r)=>{for(var n=r>1?void 0:r?mk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&bk(e,t,n),n};class q extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=lt.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=Eh.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,n=this.orientation===ke.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(n)}`},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 n=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const i=this.orientation===ke.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-n/2;this.value=`${this.calculateNewValue(i)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??Fh.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=Hh(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??ke.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=Ki(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")}),at(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!==lt.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!==lt.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!==lt.rtl&&this.orientation!==ke.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==lt.rtl&&this.orientation!==ke.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=Vh(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===ke.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=Vh(e,this.orientation===ke.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===ke.vertical?this.trackHeight:this.trackWidth,this.orientation===ke.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),n=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=n>=Number(this.stepAsNumber)/2?t-n+Number(this.stepAsNumber):t-n,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){N.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}q.formAssociated=!0,re([a],q.prototype,"size",2),re([a({attribute:"value",mode:"fromView"})],q.prototype,"initialValue",2),re([g],q.prototype,"direction",2),re([g],q.prototype,"isDragging",2),re([g],q.prototype,"position",2),re([g],q.prototype,"trackWidth",2),re([g],q.prototype,"trackMinWidth",2),re([g],q.prototype,"trackHeight",2),re([g],q.prototype,"trackLeft",2),re([g],q.prototype,"trackMinHeight",2),re([g],q.prototype,"valueTextFormatter",2),re([a({mode:"boolean"})],q.prototype,"disabled",2),re([a({converter:ns})],q.prototype,"min",2),re([a({converter:ns})],q.prototype,"max",2),re([a({converter:ns})],q.prototype,"step",2),re([a],q.prototype,"orientation",2),re([a],q.prototype,"mode",2),q.define(Mh);const vk={primary:"primary",inverted:"inverted"},yk={tiny:"tiny",extraSmall:"extra-small",small:"small",medium:"medium",large:"large",extraLarge:"extra-large",huge:"huge"},$k=`${h.prefix}-spinner`,Rh=p`${x("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Be};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ue};--size:20px}:host([size='extra-small']){--indicatorSize:${ue};--size:24px}:host([size='small']){--indicatorSize:${ue};--size:28px}:host([size='large']){--indicatorSize:${Be};--size:36px}:host([size='extra-large']){--indicatorSize:${Be};--size:40px}:host([size='huge']){--indicatorSize:${jr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${Qo}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${li};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:${ai};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:${Oa}}.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}}`,jh=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>`,qh={name:$k,registry:h.registry,styles:Rh,template:jh};class Wh extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var kk=Object.defineProperty,xk=Object.getOwnPropertyDescriptor,Gh=(o,e,t,r)=>{for(var n=r>1?void 0:r?xk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&kk(e,t,n),n};class fn extends Wh{}Gh([a],fn.prototype,"size",2),Gh([a],fn.prototype,"appearance",2),fn.define(qh);const wk={above:"above",after:"after",before:"before"},Sk=`${h.prefix}-switch`,Xh=p`${x("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${H};width:40px;height:20px;background-color:${ce};border:1px solid ${Me};border-radius:${de}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${pt}}:host(:active){border-color:${gt}}:host(:disabled),:host([readonly]){border:1px solid ${be};background-color:none;pointer:default}:host(${$}){background:${ut};border-color:${ut}}:host(${$}:hover){background:${Ft};border-color:${Ft}}:host(${$}:active){background:${Et};border-color:${Et}}:host(${$}:disabled){background:${rt};border-color:${be}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${Jo};transition-timing-function:${Qo};transition-property:margin-inline-start}:host(${$}) .checked-indicator{background-color:${ht};margin-inline-start:calc(100% - 14px)}:host(${$}:hover) .checked-indicator{background:${wa}}:host(${$}:active) .checked-indicator{background:${Sa}}:host(:hover) .checked-indicator{background-color:${ua}}:host(:active) .checked-indicator{background-color:${pa}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${$}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ue} solid ${U};outline-offset:1px;box-shadow:${Go},0 0 0 2px ${se}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${$}),:host(${$}:active),:host(${$}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${$}) .checked-indicator,:host(${$}:hover) .checked-indicator,:host(${$}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${$}:disabled) .checked-indicator{background-color:GrayText}}`;function Ck(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>${ye(o.switch)}</slot></template>`}const Uh=Ck({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Kh={name:Sk,registry:h.registry,styles:Xh,template:Uh};class Yh extends _e{constructor(){super(),this.elementInternals.role="switch"}}Yh.define(Kh);function bn(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Bk=`${h.prefix}-tab`,Jh=p`${x("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${D};font-family:${v};font-size:${z};color:${Ae};fill:currentcolor;grid-row:1;padding:${ee} ${Ke};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${I};font-weight:${M}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${D};font-weight:${M}}:host([aria-selected='true'])::after{background-color:${nt};border-radius:${de};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${ft};border-radius:${de};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:${ft}}}: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:${Ne};box-shadow:0 0 0 3px ${se};outline:1px solid ${Ho}}: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 Pk(o={}){return b`<template slot=tab role=tab>${Ve(o)} <span class=tab-content><slot></slot></span>${st(o)}</template>`}const Zh=Pk({}),Qh={name:Bk,registry:h.registry,styles:Jh,template:Zh};var Ik=Object.defineProperty,Ak=Object.getOwnPropertyDescriptor,Nk=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ak(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Ik(e,t,n),n};class mn 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=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),at(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Nk([a({mode:"boolean"})],mn.prototype,"disabled",2),yt(mn,it),mn.define(Qh);const eu={subtle:"subtle",transparent:"transparent"},Tk={small:"small",medium:"medium",large:"large"},$o=ke,zk=`${h.prefix}-tablist`,tu=p`${x("flex")} :host{--tabPaddingInline:${Ke};--tabPaddingBlock:${ee};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ae};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ao};--tabPaddingInline:${ve}}:host([size='large']){--tabPaddingBlock:${Wr};--tabPaddingInline:${Ke}}:host([orientation='vertical']){--tabPaddingBlock:${te};--tabIndicatorInsetBlock:${te};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${Uo};--tabIndicatorInsetBlock:${ao}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${te};--tabIndicatorInsetBlock:${Ko}}::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:${Be};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Be};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Be};border-radius:${de};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:${Be};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:${Be};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${z};line-height:${D}}:host([size='large']) ::slotted([slot='tab']){font-size:${he};line-height:${me}}: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:${Do};color:${Kn};fill:${ka}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${ro};fill:${ro};color:${I}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${nt};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:${lc};transition-timing-function:${Oi};z-index:3;border-radius:${de};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Be}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Be};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}}}`,ou=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${K("slottedTabs")}></slot></template>`,ru={name:zk,registry:h.registry,styles:tu,template:ou};var _k=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,br=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ok(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&_k(e,t,n),n};class Jt extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=$o.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??$o.horizontal}disabledChanged(e,t){this.elementInternals&&y(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??$o.horizontal,Mt(this.elementInternals,e,t,$o)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>bn(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']")),n=this.getRootNode();let i="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Ze("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!i&&!s.disabled&&(i=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===$o.vertical),e){const u=s.getAttribute("aria-controls")??"",d=n.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):i&&(this.activeid=i))}handleFocusIn(e){const t=e.target;!bn(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),n=e?r.getElementById(e):null,i=r.getElementById(t);if(!bn(i)||!this.contains(i))return;if(n){n.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(n);l&&(l.hidden=!0)}i.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(i);s&&(s.hidden=!1),this.activetab=i,this.change()}connectedCallback(){super.connectedCallback(),er(this,()=>{this.setTabs()},{shallow:!0})}}br([a({mode:"boolean"})],Jt.prototype,"disabled",2),br([a],Jt.prototype,"orientation",2),br([a],Jt.prototype,"activeid",2),br([g],Jt.prototype,"slottedTabs",2),br([g],Jt.prototype,"tabs",2);var Fk=Object.defineProperty,Ek=Object.getOwnPropertyDescriptor,nu=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ek(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Fk(e,t,n),n};class vn extends Jt{constructor(){super(...arguments),this.appearance=eu.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new un(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new hn(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}nu([a],vn.prototype,"appearance",2),nu([a],vn.prototype,"size",2),vn.define(ru);const Dk={small:"small",medium:"medium",large:"large"},yn={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Lk=[yn.filledLighter,yn.filledDarker],Mk={on:"on",off:"off"},mr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},Hk=`${h.prefix}-textarea`,iu=p`${x("inline-block")} :host{--font-size:${z};--line-height:${D};--padding-inline:${Ke};--padding-block:${ao};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${B};--control-padding-inline:${H};--color:${I};--background-color:${C};--border-color:${He};--border-block-end-color:${Me};--placeholder-color:${Or};--focus-indicator-color:${nt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${_};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${ft};--border-block-end-color:${pt}}:host(:active){--border-color:${no};--border-block-end-color:${gt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${E};--line-height:${R};--min-block-size:40px;--padding-block:${Lt};--padding-inline:${ve};--control-padding-inline:${H}}:host([size='large']){--font-size:${he};--line-height:${me};--min-block-size:64px;--padding-block:${te};--padding-inline:${ee};--control-padding-inline:${ve}}: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:${to};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${Vr}}:host(${vy}){--border-color:${Lr};--border-block-end-color:${Lr}}:host(:disabled){--color:${T};--background-color:${ce};--border-color:${be};--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:${mt};transition-duration:${Gr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Jo};transition-delay:${vt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${Lt};padding-inline-end:${Q}}: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:${ht};background-color:${Zn}}@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 Vk(){return b`<template><label ${A("labelEl")} for=control part=label><slot name=label ${K("labelSlottedNodes")}></slot></label><div class=root part=root ${A("rootEl")}><textarea ${A("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 ${K("defaultSlottedNodes")}></slot></div></template>`}const su=Vk(),au={name:Hk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:iu,template:su},Rk=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var jk=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,ne=(o,e,t,r)=>{for(var n=r>1?void 0:r?qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&jk(e,t,n),n};class W 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=mr.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(){N.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(Rk),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(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){Mt(this.elementInternals,e,t,mr,"resize-"),y(this.elementInternals,"resize",Ac(mr,t)&&t!==mr.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(),at(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(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.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")}}W.formAssociated=!0,ne([g],W.prototype,"controlEl",2),ne([g],W.prototype,"defaultSlottedNodes",2),ne([g],W.prototype,"labelSlottedNodes",2),ne([a],W.prototype,"autocomplete",2),ne([a({attribute:"auto-resize",mode:"boolean"})],W.prototype,"autoResize",2),ne([a({attribute:"dirname"})],W.prototype,"dirName",2),ne([a({mode:"boolean"})],W.prototype,"disabled",2),ne([a({attribute:"display-shadow",mode:"boolean"})],W.prototype,"displayShadow",2),ne([a({attribute:"form"})],W.prototype,"initialForm",2),ne([a({attribute:"maxlength",converter:ie})],W.prototype,"maxLength",2),ne([a({attribute:"minlength",converter:ie})],W.prototype,"minLength",2),ne([a],W.prototype,"name",2),ne([a],W.prototype,"placeholder",2),ne([a({attribute:"readonly",mode:"boolean"})],W.prototype,"readOnly",2),ne([a({mode:"boolean"})],W.prototype,"required",2),ne([a({mode:"fromView"})],W.prototype,"resize",2),ne([a({mode:"boolean"})],W.prototype,"spellcheck",2);var Wk=Object.defineProperty,Gk=Object.getOwnPropertyDescriptor,is=(o,e,t,r)=>{for(var n=r>1?void 0:r?Gk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Wk(e,t,n),n};class vr extends W{constructor(){super(...arguments),this.appearance=yn.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")}}is([a({mode:"fromView"})],vr.prototype,"appearance",2),is([a({mode:"boolean"})],vr.prototype,"block",2),is([a],vr.prototype,"size",2),vr.define(au);const Xk={small:"small",medium:"medium",large:"large"},Uk={outline:"outline",underline:"underline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},lu={email:"email",password:"password",tel:"tel",text:"text",url:"url"},Kk=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],Yk=`${h.prefix}-text-input`,cu=p`${x("block")} :host{font-family:${v};font-size:${z};font-weight:${_};line-height:${D};max-width:400px}.label{display:flex;color:${I};padding-bottom:${Lt};flex-shrink:0;padding-inline-end:${Q}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${B} solid ${He};border-bottom-color:${Me};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${H};padding:0 ${Ke};position:relative;width:100%}:has(.control:user-invalid){border-color:${Lr}}.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 ${nt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Gr};transition-delay:${mt}}.control{width:100%;height:100%;box-sizing:border-box;color:${I};border-radius:${S};background:${ce};font-family:${v};font-weight:${_};font-size:${z};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${Or}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${Dt}}:host ::slotted([slot='start']){padding-right:${H}}:host ::slotted([slot='end']){padding-left:${H};gap:${Q}}:host(:hover) .root{border-color:${ft};border-bottom-color:${pt}}:host(:active) .root{border-color:${no}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Jo};transition-delay:${vt}}:host(:focus-within:active) .root:after{border-bottom-color:${ci}}:host([appearance='outline']:focus-within) .root{border:${B} solid ${He}}:host(:focus-within) .control{color:${I}}:host([disabled]) .root{background:${ce};border:${B} solid ${be}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${ht};background-color:${Zn}}:host([control-size='small']) .control{font-size:${E};font-weight:${_};line-height:${R}}:host([control-size='small']) .root{height:24px;gap:${H};padding:0 ${ve}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${_};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${Te};padding:0 ${ee}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${Ro}}:host([appearance='underline']) .root{background:${ce};border:0;border-radius:0;border-bottom:${B} solid ${Me}}:host([appearance='underline']:hover) .root{border-bottom-color:${pt}}:host([appearance='underline']:active) .root{border-bottom-color:${gt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${gt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${be}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${B} solid ${U};box-shadow:${Vr}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${to}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${Dr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${Dr};background:${to}}`;function Jk(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${A("controlLabel")}><slot ${K("defaultSlottedNodes")}></slot></label><div class=root part=root>${Ve(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} ${A("control")}> ${st(o)}</div></template>`}const du=Jk(),hu={name:Yk,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:cu,template:du};var Zk=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,V=(o,e,t,r)=>{for(var n=r>1?void 0:r?Qk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Zk(e,t,n),n};class O extends k{constructor(){super(...arguments),this.type=lu.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){N.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){N.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(),at(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(n=>n.getAttribute("type")==="submit");if(t){t.click();return}e.filter(n=>Kk.includes(n.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)}}}O.formAssociated=!0,V([a],O.prototype,"autocomplete",2),V([a({attribute:"current-value"})],O.prototype,"currentValue",2),V([g],O.prototype,"defaultSlottedNodes",2),V([a],O.prototype,"dirname",2),V([a({mode:"boolean"})],O.prototype,"disabled",2),V([a({attribute:"form"})],O.prototype,"formAttribute",2),V([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),V([a],O.prototype,"list",2),V([a({converter:ie})],O.prototype,"maxlength",2),V([a({converter:ie})],O.prototype,"minlength",2),V([a({mode:"boolean"})],O.prototype,"multiple",2),V([a],O.prototype,"name",2),V([a],O.prototype,"pattern",2),V([a],O.prototype,"placeholder",2),V([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),V([a({mode:"boolean"})],O.prototype,"required",2),V([a({converter:ie})],O.prototype,"size",2),V([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),V([a],O.prototype,"type",2),V([g],O.prototype,"control",2),V([g],O.prototype,"controlLabel",2);var ex=Object.defineProperty,tx=Object.getOwnPropertyDescriptor,uu=(o,e,t,r)=>{for(var n=r>1?void 0:r?tx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ex(e,t,n),n};class yr extends O{}uu([a],yr.prototype,"appearance",2),uu([a({attribute:"control-size"})],yr.prototype,"controlSize",2),yt(yr,it),yr.define(hu);const ox={_100:"100",_200:"200",_300:"300",_400:"400",_500:"500",_600:"600",_700:"700",_800:"800",_900:"900",_1000:"1000"},rx={base:"base",numeric:"numeric",monospace:"monospace"},nx={medium:"medium",regular:"regular",semibold:"semibold",bold:"bold"},ix={start:"start",end:"end",center:"center",justify:"justify"},sx=`${h.prefix}-text`,pu=p`${x("inline")} :host{font-family:${v};font-size:${z};line-height:${D};font-weight:${_};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:${so};line-height:${qo}}:host([size='200']){font-size:${E};line-height:${R}}:host([size='400']){font-size:${he};line-height:${me}}:host([size='500']){font-size:${Dt};line-height:${Wo}}:host([size='600']){font-size:${Ro};line-height:${Pi}}:host([size='700']){font-size:${wi};line-height:${Ii}}:host([size='800']){font-size:${Si};line-height:${Ai}}:host([size='900']){font-size:${Ci};line-height:${Ni}}:host([size='1000']){font-size:${Bi};line-height:${Ti}}:host([font='monospace']){font-family:${Ql}}:host([font='numeric']){font-family:${ec}}:host([weight='medium']){font-weight:${tc}}:host([weight='semibold']){font-weight:${M}}:host([weight='bold']){font-weight:${jo}}: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}`,gu=b`<slot></slot>`,fu={name:sx,registry:h.registry,styles:pu,template:gu};var ax=Object.defineProperty,lx=Object.getOwnPropertyDescriptor,tt=(o,e,t,r)=>{for(var n=r>1?void 0:r?lx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&ax(e,t,n),n};class Ee 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}}tt([a({mode:"boolean"})],Ee.prototype,"nowrap",2),tt([a({mode:"boolean"})],Ee.prototype,"truncate",2),tt([a({mode:"boolean"})],Ee.prototype,"italic",2),tt([a({mode:"boolean"})],Ee.prototype,"underline",2),tt([a({mode:"boolean"})],Ee.prototype,"strikethrough",2),tt([a({mode:"boolean"})],Ee.prototype,"block",2),tt([a],Ee.prototype,"size",2),tt([a],Ee.prototype,"font",2),tt([a],Ee.prototype,"weight",2),tt([a],Ee.prototype,"align",2),Ee.define(fu);const cx=tr,dx=or,hx=rr,ux=`${h.prefix}-toggle-button`,bu=p`${ho} :host(${L}){border-color:${He};background-color:${Jn};color:${I};border-width:${B}}:host(${L}:hover){border-color:${ft};background-color:${Eo}}:host(${L}:active){border-color:${no};background-color:${Fr}}:host(${L}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${L}[appearance='primary']){background-color:${za};color:${Ue}}:host(${L}[appearance='primary']:hover){background-color:${ri}}:host(${L}[appearance='primary']:active){background-color:${ni}}:host(${L}[appearance='subtle']){border-color:transparent;background-color:${ei};color:${zo}}:host(${L}[appearance='subtle']:hover){background-color:${Do};color:${_t}}:host(${L}[appearance='subtle']:active){background-color:${ro};color:${Ot}}:host(${L}[appearance='outline']),:host(${L}[appearance='transparent']){background-color:${ti}}:host(${L}[appearance='outline']:hover),:host(${L}[appearance='transparent']:hover){background-color:${Lo}}:host(${L}[appearance='outline']:active),:host(${L}[appearance='transparent']:active){background-color:${Mo}}:host(${L}[appearance='transparent']){border-color:transparent;color:${ha}}:host(${L}[appearance='transparent']:hover){color:${_o}}:host(${L}[appearance='transparent']:active){color:${Oo}}@media (forced-colors:active){:host(${L}),:host( ${L}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${L}[appearance='primary']){color:SelectedItemText}}`,mu=Hi(),vu={name:ux,registry:h.registry,styles:bu,template:mu};var px=Object.defineProperty,gx=Object.getOwnPropertyDescriptor,yu=(o,e,t,r)=>{for(var n=r>1?void 0:r?gx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&px(e,t,n),n};class $n extends Ye{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}`,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}yu([a({mode:"boolean"})],$n.prototype,"pressed",2),yu([a({mode:"boolean"})],$n.prototype,"mixed",2),$n.define(vu);const Ie={"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"},fx=`${h.prefix}-tooltip`,$u=p`${x("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${Lt};--inline-offset:${Q};background:${C};border-radius:${S};border:1px solid ${U};box-sizing:border-box;color:${I};display:inline-flex;filter:drop-shadow(0 0 2px ${Ea}) drop-shadow(0 4px 8px ${Da});font-family:${v};font-size:${E};inset:unset;line-height:${R};margin:unset;max-width:240px;overflow:visible;padding:4px ${Ke} 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:${Ie["above-start"]}}:host([positioning='above']){--position-area:${Ie.above}}:host([positioning='above-end']){--position-area:${Ie["above-end"]}}:host([positioning='below-start']){--position-area:${Ie["below-start"]}}:host([positioning='below']){--position-area:${Ie.below}}:host([positioning='below-end']){--position-area:${Ie["below-end"]}}:host([positioning='before-top']){--position-area:${Ie["before-top"]}}:host([positioning='before']){--position-area:${Ie.before}}:host([positioning='before-bottom']){--position-area:${Ie["before-bottom"]}}:host([positioning='after-top']){--position-area:${Ie["after-top"]}}:host([positioning='after']){--position-area:${Ie.after}}:host([positioning='after-bottom']){--position-area:${Ie["after-bottom"]}}`,ku=b`<template popover aria-hidden=true><slot></slot></template>`,xu={name:fx,registry:h.registry,styles:$u,template:ku};var bx=Object.defineProperty,mx=Object.getOwnPropertyDescriptor,kn=(o,e,t,r)=>{for(var n=r>1?void 0:r?mx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&bx(e,t,n),n};class ko extends k{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ze("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),Zr){mv||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}N.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(Zr){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 n={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},i=n[t]??n.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 Yu(S.join(`
|
|
|
28
24
|
position-anchor: ${e};
|
|
29
25
|
position: fixed;
|
|
30
26
|
${i}
|
|
31
|
-
${
|
|
27
|
+
${l}
|
|
32
28
|
}
|
|
33
|
-
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}kn([a],ko.prototype,"id",2),kn([a({converter:ae})],ko.prototype,"delay",2),kn([a],ko.prototype,"positioning",2),kn([a],ko.prototype,"anchor",2),ko.define(mu);const Uk=`${u.prefix}-tree`,vu=g`${w("block")} :host{outline:none}`,$u=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 ${A("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,yu={name:Uk,registry:u.registry,styles:vu,template:$u},ku={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},xu={small:"small",medium:"medium"};function De(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Kk=`${u.prefix}-tree-item`;var Yk=Object.defineProperty,Jk=Object.getOwnPropertyDescriptor,ts=(o,e,t,r)=>{for(var n=r>1?void 0:r?Jk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Yk(e,t,n),n};class mr 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(!De(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:De(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(!De(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!De(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&De(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=>De(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const n of r)e.push(n),t(n.childTreeItems)};return t(this.childTreeItems),e}}ts([f],mr.prototype,"currentSelected",2),ts([f],mr.prototype,"defaultSlot",2),ts([f],mr.prototype,"childTreeItems",2);var Qk=Object.defineProperty,Zk=Object.getOwnPropertyDescriptor,wu=(o,e,t,r)=>{for(var n=r>1?void 0:r?Zk(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Qk(e,t,n),n};class xn extends mr{constructor(){super(...arguments),this.size=xu.small,this.appearance=ku.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new un(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new hn(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()}}wu([a],xn.prototype,"size",2),wu([a],xn.prototype,"appearance",2),xn.define(yu);const Su=g`${w("block")} :host{outline:none;font-size:${O};line-height:${L}}:host(:focus-visible) .positioning-region{box-shadow:${qr} ${qr} ${qr} ${Wo} ${ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${oc};padding-inline-start:calc(var(--indent) * ${qo});padding-inline-end:${re};border-radius:${B};background-color:${Un};color:${Ne};gap:${te}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${ce}}}.content{display:flex;align-items:center;gap:${te}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${qo};height:${ft};transition:transform ${Xo} ${Ti};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:${Oo};color:${At}}.positioning-region:active{background-color:${ro};color:${zt}}::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:${Kn};color:${No}}:host([selected]) .content,:host([selected]) .chevron{color:${ca}}:host([size='small']) .positioning-region{height:${ft};padding-inline-start:calc(var(--indent) * ${oe})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Sa}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Ba}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Ca};color:${No}}:host([appearance='transparent']) .positioning-region{background-color:${le}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Fo}}:host([appearance='transparent']) .positioning-region:active{background-color:${Eo}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${Yn};color:${No}}:host([expanded]) .chevron{transform:rotate(90deg)}`,ex=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>`,Bu=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>${ex}</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 ${A("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Cu={name:Kk,registry:u.registry,styles:Su,template:Bu};var tx=Object.defineProperty,ox=Object.getOwnPropertyDescriptor,xo=(o,e,t,r)=>{for(var n=r>1?void 0:r?ox(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&tx(e,t,n),n};class Jt 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"),De(this.parentElement)&&(this.slot||(this.slot="item")),lt(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,n=>De(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const n=r.currentNode;t?n.removeAttribute("focusgroup"):(n.selected&&(n.selected=!1),n.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=>De(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 De(this.parentElement)}get isHidden(){let e=this.parentElement;for(;De(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>De(e))}}xo([f],Jt.prototype,"itemSlot",2),xo([a({mode:"boolean"})],Jt.prototype,"expanded",2),xo([a({mode:"boolean"})],Jt.prototype,"selected",2),xo([a({mode:"boolean"})],Jt.prototype,"empty",2),xo([a({attribute:"data-indent"})],Jt.prototype,"dataIndent",2),xo([f],Jt.prototype,"childTreeItems",2);var rx=Object.defineProperty,nx=Object.getOwnPropertyDescriptor,Pu=(o,e,t,r)=>{for(var n=r>1?void 0:r?nx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&rx(e,t,n),n};class wn extends Jt{constructor(){super(...arguments),this.size=xu.small,this.appearance=ku.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})}}Pu([a],wn.prototype,"size",2),Pu([a],wn.prototype,"appearance",2),wn.define(Cu);const ix="adoptedStyleSheets"in document,sx="CSSScopeRule"in window,os=new Map,rs=new Map,vr=new Map,ns=new Map,$r=new CSSStyleSheet;function Iu(o,e=document){if(!(!e||!ax(e))){if(!ix||e instanceof HTMLElement&&!e.shadowRoot&&!sx){const t=e===document?document.documentElement:e;ux(o,t);return}[document,document.documentElement,document.body].includes(e)?lx(o):cx(o,e)}}function is(o){if(!os.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);os.set(o,e.join(""))}return os.get(o)}function ax(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function lx(o){if(o===null){document.adoptedStyleSheets.includes($r)&&$r.replaceSync("");return}$r.replaceSync(`
|
|
29
|
+
`,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}kn([a],ko.prototype,"id",2),kn([a({converter:ie})],ko.prototype,"delay",2),kn([a],ko.prototype,"positioning",2),kn([a],ko.prototype,"anchor",2),ko.define(xu);const vx=`${h.prefix}-tree`,wu=p`${x("block")} :host{outline:none}`,Su=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 ${A("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Cu={name:vx,registry:h.registry,styles:wu,template:Su},Bu={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Pu={small:"small",medium:"medium"};function De(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const yx=`${h.prefix}-tree-item`;var $x=Object.defineProperty,kx=Object.getOwnPropertyDescriptor,ss=(o,e,t,r)=>{for(var n=r>1?void 0:r?kx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&$x(e,t,n),n};class $r 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(!De(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:De(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(!De(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!De(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&De(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=>De(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const n of r)e.push(n),t(n.childTreeItems)};return t(this.childTreeItems),e}}ss([g],$r.prototype,"currentSelected",2),ss([g],$r.prototype,"defaultSlot",2),ss([g],$r.prototype,"childTreeItems",2);var xx=Object.defineProperty,wx=Object.getOwnPropertyDescriptor,Iu=(o,e,t,r)=>{for(var n=r>1?void 0:r?wx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&xx(e,t,n),n};class xn extends $r{constructor(){super(...arguments),this.size=Pu.small,this.appearance=Bu.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new un(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new hn(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()}}Iu([a],xn.prototype,"size",2),Iu([a],xn.prototype,"appearance",2),xn.define(Cu);const Au=p`${x("block")} :host{outline:none;font-size:${z};line-height:${D}}:host(:focus-visible) .positioning-region{box-shadow:${qr} ${qr} ${qr} ${Uo} ${se} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${ac};padding-inline-start:calc(var(--indent) * ${Xo});padding-inline-end:${te};border-radius:${S};background-color:${Qn};color:${Ae};gap:${Q}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${se}}}.content{display:flex;align-items:center;gap:${Q}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${Xo};height:${bt};transition:transform ${Yo} ${Fi};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:${Do};color:${_t}}.positioning-region:active{background-color:${ro};color:${Ot}}::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:${H}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${ei};color:${zo}}:host([selected]) .content,:host([selected]) .chevron{color:${ga}}:host([size='small']) .positioning-region{height:${bt};padding-inline-start:calc(var(--indent) * ${ee})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Aa}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Na}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Ta};color:${zo}}:host([appearance='transparent']) .positioning-region{background-color:${ce}}:host([appearance='transparent']) .positioning-region:hover{background-color:${Lo}}:host([appearance='transparent']) .positioning-region:active{background-color:${Mo}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${ti};color:${zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Sx=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>`,Nu=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>${Sx}</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 ${A("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,Tu={name:yx,registry:h.registry,styles:Au,template:Nu};var Cx=Object.defineProperty,Bx=Object.getOwnPropertyDescriptor,xo=(o,e,t,r)=>{for(var n=r>1?void 0:r?Bx(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Cx(e,t,n),n};class Zt 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"),De(this.parentElement)&&(this.slot||(this.slot="item")),at(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,n=>De(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const n=r.currentNode;t?n.removeAttribute("focusgroup"):(n.selected&&(n.selected=!1),n.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&(y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`: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=>De(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 De(this.parentElement)}get isHidden(){let e=this.parentElement;for(;De(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>De(e))}}xo([g],Zt.prototype,"itemSlot",2),xo([a({mode:"boolean"})],Zt.prototype,"expanded",2),xo([a({mode:"boolean"})],Zt.prototype,"selected",2),xo([a({mode:"boolean"})],Zt.prototype,"empty",2),xo([a({attribute:"data-indent"})],Zt.prototype,"dataIndent",2),xo([g],Zt.prototype,"childTreeItems",2);var Px=Object.defineProperty,Ix=Object.getOwnPropertyDescriptor,zu=(o,e,t,r)=>{for(var n=r>1?void 0:r?Ix(e,t):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(e,t,n):s(n))||n);return r&&n&&Px(e,t,n),n};class wn extends Zt{constructor(){super(...arguments),this.size=Pu.small,this.appearance=Bu.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})}}zu([a],wn.prototype,"size",2),zu([a],wn.prototype,"appearance",2),wn.define(Tu);const Ax="adoptedStyleSheets"in document,Nx="CSSScopeRule"in window,as=new Map,ls=new Map,kr=new Map,cs=new Map,xr=new CSSStyleSheet;function _u(o,e=document){if(!(!e||!Tx(e))){if(!Ax||e instanceof HTMLElement&&!e.shadowRoot&&!Nx){const t=e===document?document.documentElement:e;Ex(o,t);return}[document,document.documentElement,document.body].includes(e)?zx(o):_x(o,e)}}function ds(o){if(!as.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);as.set(o,e.join(""))}return as.get(o)}function Tx(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function zx(o){if(o===null){document.adoptedStyleSheets.includes(xr)&&xr.replaceSync("");return}xr.replaceSync(`
|
|
34
30
|
html {
|
|
35
|
-
${
|
|
31
|
+
${ds(o)}
|
|
36
32
|
}
|
|
37
|
-
`),document.adoptedStyleSheets.includes(
|
|
33
|
+
`),document.adoptedStyleSheets.includes(xr)||document.adoptedStyleSheets.push(xr)}function _x(o,e){if(o===null){e.shadowRoot&&kr.has(e)?kr.get(e).replaceSync(""):(delete e.dataset.fluentTheme,Ou(e));return}e.shadowRoot?Ox(e).replaceSync(`
|
|
38
34
|
:host {
|
|
39
|
-
${
|
|
35
|
+
${ds(o)}
|
|
40
36
|
}
|
|
41
|
-
`):(e.dataset.fluentTheme=
|
|
37
|
+
`):(e.dataset.fluentTheme=Fx(o),Ou(e))}function Ox(o){if(!kr.has(o)){const e=new CSSStyleSheet;kr.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return kr.get(o)}function Fx(o){if(!ls.has(o)){const e=Ze("fluent-theme-"),t=new CSSStyleSheet;ls.set(o,e),t.replaceSync(`
|
|
42
38
|
@scope ([data-fluent-theme="${e}"]) {
|
|
43
39
|
:scope {
|
|
44
|
-
${
|
|
40
|
+
${ds(o)}
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
|
-
`),document.adoptedStyleSheets.push(t)}return rs.get(o)}function ux(o,e){let t;if(o===null){if(!ns.has(e))return;t=ns.get(e)}else ns.set(e,o),t=o;for(const[r,n]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,n.toString())}const{userAgent:px}=navigator,gx=/\bAppleWebKit\/[\d+\.]+\b/.test(px);function Nu(o){if(!gx)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),_.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:Iu};export{Jr as Accordion,Yr as AccordionExpandMode,co as AccordionItem,Au as AccordionItemMarkerPosition,Tu as AccordionItemSize,Lt as AnchorButton,fc as AnchorButtonAppearance,kc as AnchorButtonDefinition,bc as AnchorButtonShape,mc as AnchorButtonSize,yc as AnchorButtonTemplate,vc as AnchorTarget,Nc as Avatar,Qm as AvatarActive,ev as AvatarAppearance,Oi as AvatarColor,Pc as AvatarDefinition,_i as AvatarNamedColor,Zm as AvatarShape,tv as AvatarSize,Bc as AvatarStyles,Cc as AvatarTemplate,Ht as Badge,Tc as BadgeAppearance,Ac as BadgeColor,Lc as BadgeDefinition,mv as BadgeShape,vv as BadgeSize,Ec as BadgeStyles,Dc as BadgeTemplate,lo as BaseAccordionItem,je as BaseAnchor,Mt as BaseAvatar,pe as BaseButton,_e as BaseCheckbox,jt as BaseCounterBadge,nn as BaseDivider,Pd as BaseDropdown,bo as BaseField,oh as BaseMenuList,Ut as BaseProgressBar,qe as BaseRadioGroup,Kt as BaseRatingDisplay,Hh as BaseSpinner,Yt as BaseTablist,G as BaseTextArea,E as BaseTextInput,mr as BaseTree,Je as Button,Qo as ButtonAppearance,Hc as ButtonDefinition,Vm as ButtonFormTarget,Zo as ButtonShape,er as ButtonSize,ho as ButtonStyles,Mc as ButtonTemplate,tr as ButtonType,rr as Checkbox,jc as CheckboxDefinition,Nv as CheckboxShape,Tv as CheckboxSize,Vc as CheckboxStyles,Rc as CheckboxTemplate,Xc as CompoundButton,n$ as CompoundButtonAppearance,Gc as CompoundButtonDefinition,i$ as CompoundButtonShape,s$ as CompoundButtonSize,qc as CompoundButtonStyles,Wc as CompoundButtonTemplate,qt as CounterBadge,c$ as CounterBadgeAppearance,d$ as CounterBadgeColor,Jc as CounterBadgeDefinition,h$ as CounterBadgeShape,u$ as CounterBadgeSize,Kc as CounterBadgeStyles,Uc as CounterBadgeTagName,Yc as CounterBadgeTemplate,Oe as Dialog,nd as DialogBody,rd as DialogBodyDefinition,td as DialogBodyStyles,od as DialogBodyTemplate,ed as DialogDefinition,Qc as DialogStyles,Zc as DialogTemplate,xt as DialogType,ct as Direction,ir as Divider,x$ as DividerAlignContent,w$ as DividerAppearance,ad as DividerDefinition,Mi as DividerOrientation,go as DividerRole,id as DividerStyles,sd as DividerTemplate,ke as Drawer,$d as DrawerBody,vd as DrawerBodyDefinition,bd as DrawerBodyStyles,md as DrawerBodyTemplate,pd as DrawerDefinition,cd as DrawerPosition,dd as DrawerSize,hd as DrawerStyles,ud as DrawerTemplate,fo as DrawerType,an as Dropdown,yd as DropdownAppearance,Bd as DropdownDefinition,ne as DropdownOption,uh as DropdownOptionDefinition,dh as DropdownOptionStyles,hh as DropdownOptionTemplate,Y$ as DropdownSize,kd as DropdownStyles,Sd as DropdownTemplate,sn as DropdownType,Wi as Field,zd as FieldDefinition,Nd as FieldLabelPosition,Td as FieldStyles,Ad as FieldTemplate,u as FluentDesignSystem,Gt as Image,Fd as ImageDefinition,py as ImageFit,gy as ImageShape,_d as ImageStyles,Od as ImageTemplate,mo as Label,Ld as LabelDefinition,vy as LabelSize,Ed as LabelStyles,Dd as LabelTemplate,$y as LabelWeight,dn as Link,Sy as LinkAppearance,Vd as LinkDefinition,Md as LinkStyles,By as LinkTarget,Hd as LinkTemplate,Xt as Listbox,Gd as ListboxDefinition,jd as ListboxStyles,Wd as ListboxTemplate,tt as Menu,Kd as MenuButton,zy as MenuButtonAppearance,Ud as MenuButtonDefinition,_y as MenuButtonShape,Oy as MenuButtonSize,ho as MenuButtonStyles,Xd as MenuButtonTemplate,sh as MenuDefinition,et as MenuItem,Qd as MenuItemDefinition,Q as MenuItemRole,Yd as MenuItemStyles,Jd as MenuItemTemplate,rh as MenuList,th as MenuListDefinition,Zd as MenuListStyles,eh as MenuListTemplate,nh as MenuStyles,ih as MenuTemplate,cr as MessageBar,ch as MessageBarDefinition,a0 as MessageBarIntent,i0 as MessageBarLayout,s0 as MessageBarShape,ah as MessageBarStyles,lh as MessageBarTemplate,ye as Orientation,pn as ProgressBar,bh as ProgressBarDefinition,m0 as ProgressBarShape,gh as ProgressBarStyles,fh as ProgressBarTemplate,b0 as ProgressBarThickness,ph as ProgressBarValidationState,Bh as Radio,Sh as RadioDefinition,kh as RadioGroup,yh as RadioGroupDefinition,Ji as RadioGroupOrientation,vh as RadioGroupStyles,$h as RadioGroupTemplate,xh as RadioStyles,wh as RadioTemplate,ur as RatingDisplay,z0 as RatingDisplayColor,Nh as RatingDisplayDefinition,_0 as RatingDisplaySize,Ih as RatingDisplayStyles,Ph as RatingDisplayTemplate,W as Slider,Oh as SliderDefinition,Ah as SliderMode,Th as SliderOrientation,j0 as SliderSize,zh as SliderStyles,_h as SliderTemplate,fn as Spinner,U0 as SpinnerAppearance,Mh as SpinnerDefinition,K0 as SpinnerSize,Dh as SpinnerStyles,Lh as SpinnerTemplate,st as StartEnd,Wh as Switch,qh as SwitchDefinition,Z0 as SwitchLabelPosition,Rh as SwitchStyles,jh as SwitchTemplate,mn as Tab,Uh as TabDefinition,Gh as TabStyles,Xh as TabTemplate,vn as Tablist,Kh as TablistAppearance,Qh as TablistDefinition,yo as TablistOrientation,ak as TablistSize,Yh as TablistStyles,Jh as TablistTemplate,Ee as Text,Fk as TextAlign,fr as TextArea,$n as TextAreaAppearance,gk as TextAreaAppearancesForDisplayShadow,fk as TextAreaAutocomplete,ou as TextAreaDefinition,gr as TextAreaResize,pk as TextAreaSize,eu as TextAreaStyles,tu as TextAreaTemplate,du as TextDefinition,_k as TextFont,br as TextInput,Sk as TextInputAppearance,wk as TextInputControlSize,su as TextInputDefinition,nu as TextInputStyles,iu as TextInputTemplate,ru as TextInputType,zk as TextSize,lu as TextStyles,cu as TextTemplate,Ok as TextWeight,yn as ToggleButton,Mk as ToggleButtonAppearance,pu as ToggleButtonDefinition,Hk as ToggleButtonShape,Vk as ToggleButtonSize,hu as ToggleButtonStyles,uu as ToggleButtonTemplate,ko as Tooltip,mu as TooltipDefinition,Pe as TooltipPositioningOption,fu as TooltipStyles,bu as TooltipTemplate,xn as Tree,yu as TreeDefinition,wn as TreeItem,Cu as TreeItemDefinition,Su as TreeItemStyles,Bu as TreeItemTemplate,vu as TreeStyles,$u as TreeTemplate,Ce as ValidationFlags,uc as accordionDefinition,cc as accordionItemDefinition,ac as accordionItemStyles,lc as accordionItemTemplate,dc as accordionStyles,hc as accordionTemplate,am as borderRadius2XLarge,lm as borderRadius3XLarge,cm as borderRadius4XLarge,dm as borderRadius5XLarge,hm as borderRadius6XLarge,de as borderRadiusCircular,bi as borderRadiusLarge,B as borderRadiusMedium,Lo as borderRadiusNone,Te as borderRadiusSmall,mi as borderRadiusXLarge,Er as colorBackgroundOverlay,Jn as colorBrandBackground,ti as colorBrandBackground2,Ag as colorBrandBackground2Hover,zg as colorBrandBackground2Pressed,_g as colorBrandBackground3Static,Og as colorBrandBackground4Static,Qn as colorBrandBackgroundHover,Fg as colorBrandBackgroundInverted,Eg as colorBrandBackgroundInvertedHover,Dg as colorBrandBackgroundInvertedPressed,Lg as colorBrandBackgroundInvertedSelected,Zn as colorBrandBackgroundPressed,Pa as colorBrandBackgroundSelected,ei as colorBrandBackgroundStatic,zo as colorBrandForeground1,ya as colorBrandForeground2,Vp as colorBrandForeground2Hover,Rp as colorBrandForeground2Pressed,jp as colorBrandForegroundInverted,qp as colorBrandForegroundInvertedHover,Wp as colorBrandForegroundInvertedPressed,da as colorBrandForegroundLink,ha as colorBrandForegroundLinkHover,ua as colorBrandForegroundLinkPressed,Ap as colorBrandForegroundLinkSelected,Gp as colorBrandForegroundOnLight,Xp as colorBrandForegroundOnLightHover,Up as colorBrandForegroundOnLightPressed,Kp as colorBrandForegroundOnLightSelected,gf as colorBrandShadowAmbient,ff as colorBrandShadowKey,oi as colorBrandStroke1,ri as colorBrandStroke2,rf as colorBrandStroke2Contrast,tf as colorBrandStroke2Hover,of as colorBrandStroke2Pressed,ht as colorCompoundBrandBackground,_t as colorCompoundBrandBackgroundHover,Ot as colorCompoundBrandBackgroundPressed,_p as colorCompoundBrandForeground1,ba as colorCompoundBrandForeground1Hover,ma as colorCompoundBrandForeground1Pressed,it as colorCompoundBrandStroke,Ta as colorCompoundBrandStrokeHover,ni as colorCompoundBrandStrokePressed,P as colorNeutralBackground1,_o as colorNeutralBackground1Hover,Fr as colorNeutralBackground1Pressed,Gn as colorNeutralBackground1Selected,Yp as colorNeutralBackground2,Jp as colorNeutralBackground2Hover,Qp as colorNeutralBackground2Pressed,Zp as colorNeutralBackground2Selected,to as colorNeutralBackground3,eg as colorNeutralBackground3Hover,tg as colorNeutralBackground3Pressed,og as colorNeutralBackground3Selected,xa as colorNeutralBackground4,rg as colorNeutralBackground4Hover,ng as colorNeutralBackground4Pressed,ig as colorNeutralBackground4Selected,wa as colorNeutralBackground5,sg as colorNeutralBackground5Hover,ag as colorNeutralBackground5Pressed,lg as colorNeutralBackground5Selected,oo as colorNeutralBackground6,cg as colorNeutralBackground7,dg as colorNeutralBackground7Hover,hg as colorNeutralBackground7Pressed,ug as colorNeutralBackground7Selected,pg as colorNeutralBackground8,vg as colorNeutralBackgroundAlpha,$g as colorNeutralBackgroundAlpha2,nt as colorNeutralBackgroundDisabled,Sg as colorNeutralBackgroundDisabled2,Xn as colorNeutralBackgroundInverted,Bg as colorNeutralBackgroundInvertedDisabled,gg as colorNeutralBackgroundInvertedHover,fg as colorNeutralBackgroundInvertedPressed,bg as colorNeutralBackgroundInvertedSelected,mg as colorNeutralBackgroundStatic,Mg as colorNeutralCardBackground,jg as colorNeutralCardBackgroundDisabled,Hg as colorNeutralCardBackgroundHover,Vg as colorNeutralCardBackgroundPressed,Rg as colorNeutralCardBackgroundSelected,T as colorNeutralForeground1,qn as colorNeutralForeground1Hover,ia as colorNeutralForeground1Pressed,wp as colorNeutralForeground1Selected,ka as colorNeutralForeground1Static,Ne as colorNeutralForeground2,To as colorNeutralForeground2BrandHover,Ao as colorNeutralForeground2BrandPressed,sa as colorNeutralForeground2BrandSelected,At as colorNeutralForeground2Hover,pa as colorNeutralForeground2Link,ga as colorNeutralForeground2LinkHover,fa as colorNeutralForeground2LinkPressed,zp as colorNeutralForeground2LinkSelected,zt as colorNeutralForeground2Pressed,No as colorNeutralForeground2Selected,X as colorNeutralForeground3,Sp as colorNeutralForeground3BrandHover,Bp as colorNeutralForeground3BrandPressed,Cp as colorNeutralForeground3BrandSelected,aa as colorNeutralForeground3Hover,la as colorNeutralForeground3Pressed,ca as colorNeutralForeground3Selected,Or as colorNeutralForeground4,Pp as colorNeutralForeground5,Ip as colorNeutralForeground5Hover,Np as colorNeutralForeground5Pressed,Tp as colorNeutralForeground5Selected,z as colorNeutralForegroundDisabled,dt as colorNeutralForegroundInverted,Fp as colorNeutralForegroundInverted2,Hp as colorNeutralForegroundInvertedDisabled,va as colorNeutralForegroundInvertedHover,Ep as colorNeutralForegroundInvertedLink,Dp as colorNeutralForegroundInvertedLinkHover,Lp as colorNeutralForegroundInvertedLinkPressed,Mp as colorNeutralForegroundInvertedLinkSelected,$a as colorNeutralForegroundInvertedPressed,Op as colorNeutralForegroundInvertedSelected,Ke as colorNeutralForegroundOnBrand,Wn as colorNeutralForegroundStaticInverted,Aa as colorNeutralShadowAmbient,uf as colorNeutralShadowAmbientDarker,df as colorNeutralShadowAmbientLighter,za as colorNeutralShadowKey,pf as colorNeutralShadowKeyDarker,hf as colorNeutralShadowKeyLighter,Cg as colorNeutralStencil1,Ig as colorNeutralStencil1Alpha,Pg as colorNeutralStencil2,Ng as colorNeutralStencil2Alpha,Ve as colorNeutralStroke1,gt as colorNeutralStroke1Hover,no as colorNeutralStroke1Pressed,Wg as colorNeutralStroke1Selected,io as colorNeutralStroke2,Ia as colorNeutralStroke3,Gg as colorNeutralStroke4,Xg as colorNeutralStroke4Hover,Ug as colorNeutralStroke4Pressed,Kg as colorNeutralStroke4Selected,He as colorNeutralStrokeAccessible,ut as colorNeutralStrokeAccessibleHover,pt as colorNeutralStrokeAccessiblePressed,qg as colorNeutralStrokeAccessibleSelected,lf as colorNeutralStrokeAlpha,cf as colorNeutralStrokeAlpha2,fe as colorNeutralStrokeDisabled,nf as colorNeutralStrokeDisabled2,sf as colorNeutralStrokeInvertedDisabled,Jg as colorNeutralStrokeOnBrand,Na as colorNeutralStrokeOnBrand2,Qg as colorNeutralStrokeOnBrand2Hover,Zg as colorNeutralStrokeOnBrand2Pressed,ef as colorNeutralStrokeOnBrand2Selected,Yg as colorNeutralStrokeSubtle,Ga as colorPaletteAnchorBackground2,tb as colorPaletteAnchorBorderActive,Xa as colorPaletteAnchorForeground2,Ua as colorPaletteBeigeBackground2,ob as colorPaletteBeigeBorderActive,Ka as colorPaletteBeigeForeground2,Af as colorPaletteBerryBackground1,zf as colorPaletteBerryBackground2,_f as colorPaletteBerryBackground3,Ff as colorPaletteBerryBorder1,Ef as colorPaletteBerryBorder2,Of as colorPaletteBerryBorderActive,Df as colorPaletteBerryForeground1,Lf as colorPaletteBerryForeground2,Mf as colorPaletteBerryForeground3,Ya as colorPaletteBlueBackground2,rb as colorPaletteBlueBorderActive,Ja as colorPaletteBlueForeground2,Qa as colorPaletteBrassBackground2,nb as colorPaletteBrassBorderActive,Za as colorPaletteBrassForeground2,el as colorPaletteBrownBackground2,ib as colorPaletteBrownBorderActive,tl as colorPaletteBrownForeground2,ol as colorPaletteCornflowerBackground2,sb as colorPaletteCornflowerBorderActive,rl as colorPaletteCornflowerForeground2,nl as colorPaletteCranberryBackground2,ab as colorPaletteCranberryBorderActive,il as colorPaletteCranberryForeground2,sl as colorPaletteDarkGreenBackground2,lb as colorPaletteDarkGreenBorderActive,al as colorPaletteDarkGreenForeground2,hi as colorPaletteDarkOrangeBackground1,kf as colorPaletteDarkOrangeBackground2,ui as colorPaletteDarkOrangeBackground3,pi as colorPaletteDarkOrangeBorder1,wf as colorPaletteDarkOrangeBorder2,xf as colorPaletteDarkOrangeBorderActive,Ha as colorPaletteDarkOrangeForeground1,Sf as colorPaletteDarkOrangeForeground2,gi as colorPaletteDarkOrangeForeground3,ll as colorPaletteDarkRedBackground2,cb as colorPaletteDarkRedBorderActive,cl as colorPaletteDarkRedForeground2,dl as colorPaletteForestBackground2,db as colorPaletteForestBorderActive,hl as colorPaletteForestForeground2,ul as colorPaletteGoldBackground2,hb as colorPaletteGoldBorderActive,pl as colorPaletteGoldForeground2,gl as colorPaletteGrapeBackground2,ub as colorPaletteGrapeBorderActive,fl as colorPaletteGrapeForeground2,ci as colorPaletteGreenBackground1,vf as colorPaletteGreenBackground2,di as colorPaletteGreenBackground3,Fa as colorPaletteGreenBorder1,Ea as colorPaletteGreenBorder2,$f as colorPaletteGreenBorderActive,Da as colorPaletteGreenForeground1,La as colorPaletteGreenForeground2,Ma as colorPaletteGreenForeground3,yf as colorPaletteGreenForegroundInverted,bl as colorPaletteLavenderBackground2,pb as colorPaletteLavenderBorderActive,ml as colorPaletteLavenderForeground2,Gf as colorPaletteLightGreenBackground1,Xf as colorPaletteLightGreenBackground2,Uf as colorPaletteLightGreenBackground3,Yf as colorPaletteLightGreenBorder1,Jf as colorPaletteLightGreenBorder2,Kf as colorPaletteLightGreenBorderActive,Qf as colorPaletteLightGreenForeground1,Zf as colorPaletteLightGreenForeground2,eb as colorPaletteLightGreenForeground3,vl as colorPaletteLightTealBackground2,gb as colorPaletteLightTealBorderActive,$l as colorPaletteLightTealForeground2,yl as colorPaletteLilacBackground2,fb as colorPaletteLilacBorderActive,kl as colorPaletteLilacForeground2,xl as colorPaletteMagentaBackground2,bb as colorPaletteMagentaBorderActive,wl as colorPaletteMagentaForeground2,Hf as colorPaletteMarigoldBackground1,fi as colorPaletteMarigoldBackground2,Vf as colorPaletteMarigoldBackground3,Rf as colorPaletteMarigoldBorder1,jf as colorPaletteMarigoldBorder2,qa as colorPaletteMarigoldBorderActive,qf as colorPaletteMarigoldForeground1,Wa as colorPaletteMarigoldForeground2,Wf as colorPaletteMarigoldForeground3,Sl as colorPaletteMinkBackground2,mb as colorPaletteMinkBorderActive,Bl as colorPaletteMinkForeground2,Cl as colorPaletteNavyBackground2,vb as colorPaletteNavyBorderActive,Pl as colorPaletteNavyForeground2,Il as colorPalettePeachBackground2,$b as colorPalettePeachBorderActive,Nl as colorPalettePeachForeground2,Tl as colorPalettePinkBackground2,yb as colorPalettePinkBorderActive,Al as colorPalettePinkForeground2,zl as colorPalettePlatinumBackground2,kb as colorPalettePlatinumBorderActive,_l as colorPalettePlatinumForeground2,Ol as colorPalettePlumBackground2,xb as colorPalettePlumBorderActive,Fl as colorPalettePlumForeground2,El as colorPalettePumpkinBackground2,wb as colorPalettePumpkinBorderActive,Dl as colorPalettePumpkinForeground2,Ll as colorPalettePurpleBackground2,Sb as colorPalettePurpleBorderActive,Ml as colorPalettePurpleForeground2,ii as colorPaletteRedBackground1,_a as colorPaletteRedBackground2,si as colorPaletteRedBackground3,ai as colorPaletteRedBorder1,Lr as colorPaletteRedBorder2,bf as colorPaletteRedBorderActive,Mr as colorPaletteRedForeground1,Oa as colorPaletteRedForeground2,li as colorPaletteRedForeground3,mf as colorPaletteRedForegroundInverted,Hl as colorPaletteRoyalBlueBackground2,Bb as colorPaletteRoyalBlueBorderActive,Vl as colorPaletteRoyalBlueForeground2,Rl as colorPaletteSeafoamBackground2,Cb as colorPaletteSeafoamBorderActive,jl as colorPaletteSeafoamForeground2,ql as colorPaletteSteelBackground2,Pb as colorPaletteSteelBorderActive,Wl as colorPaletteSteelForeground2,Gl as colorPaletteTealBackground2,Ib as colorPaletteTealBorderActive,Xl as colorPaletteTealForeground2,Va as colorPaletteYellowBackground1,Bf as colorPaletteYellowBackground2,Ra as colorPaletteYellowBackground3,ja as colorPaletteYellowBorder1,Pf as colorPaletteYellowBorder2,Cf as colorPaletteYellowBorderActive,If as colorPaletteYellowForeground1,Hr as colorPaletteYellowForeground2,Nf as colorPaletteYellowForeground3,Tf as colorPaletteYellowForegroundInverted,Tg as colorScrollbarOverlay,Kb as colorStatusDangerBackground1,Yb as colorStatusDangerBackground2,Jb as colorStatusDangerBackground3,Qb as colorStatusDangerBackground3Hover,Zb as colorStatusDangerBackground3Pressed,im as colorStatusDangerBorder1,sm as colorStatusDangerBorder2,nm as colorStatusDangerBorderActive,em as colorStatusDangerForeground1,tm as colorStatusDangerForeground2,om as colorStatusDangerForeground3,rm as colorStatusDangerForegroundInverted,Nb as colorStatusSuccessBackground1,Tb as colorStatusSuccessBackground2,Ab as colorStatusSuccessBackground3,Db as colorStatusSuccessBorder1,Lb as colorStatusSuccessBorder2,Eb as colorStatusSuccessBorderActive,zb as colorStatusSuccessForeground1,_b as colorStatusSuccessForeground2,Ob as colorStatusSuccessForeground3,Fb as colorStatusSuccessForegroundInverted,Mb as colorStatusWarningBackground1,Hb as colorStatusWarningBackground2,Vb as colorStatusWarningBackground3,Xb as colorStatusWarningBorder1,Ub as colorStatusWarningBorder2,Gb as colorStatusWarningBorderActive,Rb as colorStatusWarningForeground1,jb as colorStatusWarningForeground2,qb as colorStatusWarningForeground3,Wb as colorStatusWarningForegroundInverted,Do as colorStrokeFocus1,ce as colorStrokeFocus2,Un as colorSubtleBackground,Oo as colorSubtleBackgroundHover,yg as colorSubtleBackgroundInverted,kg as colorSubtleBackgroundInvertedHover,xg as colorSubtleBackgroundInvertedPressed,wg as colorSubtleBackgroundInvertedSelected,Sa as colorSubtleBackgroundLightAlphaHover,Ba as colorSubtleBackgroundLightAlphaPressed,Ca as colorSubtleBackgroundLightAlphaSelected,ro as colorSubtleBackgroundPressed,Kn as colorSubtleBackgroundSelected,le as colorTransparentBackground,Fo as colorTransparentBackgroundHover,Eo as colorTransparentBackgroundPressed,Yn as colorTransparentBackgroundSelected,U as colorTransparentStroke,af as colorTransparentStrokeDisabled,Dr as colorTransparentStrokeInteractive,nc as curveAccelerateMax,bt as curveAccelerateMid,ic as curveAccelerateMin,Ni as curveDecelerateMax,mt as curveDecelerateMid,sc as curveDecelerateMin,Yo as curveEasyEase,Ti as curveEasyEaseMax,Ur as curveLinear,w as display,wd as dropdownButtonTemplate,xd as dropdownInputTemplate,km as durationFast,Xo as durationFaster,Xr as durationGentle,Uo as durationNormal,rc as durationSlow,Ii as durationSlower,Gr as durationUltraFast,Ko as durationUltraSlow,at as endSlotTemplate,v as fontFamilyBase,Ul as fontFamilyMonospace,Kl as fontFamilyNumeric,so as fontSizeBase100,D as fontSizeBase200,O as fontSizeBase300,he as fontSizeBase400,Ft as fontSizeBase500,Mo as fontSizeBase600,ki as fontSizeHero1000,vi as fontSizeHero700,$i as fontSizeHero800,yi as fontSizeHero900,Ho as fontWeightBold,Yl as fontWeightMedium,F as fontWeightRegular,H as fontWeightSemibold,qi as getDirection,Li as isDialog,K$ as isDropdown,Wt as isDropdownOption,ji as isListbox,bn as isTab,Vo as lineHeightBase100,j as lineHeightBase200,L as lineHeightBase300,be as lineHeightBase400,Ro as lineHeightBase500,xi as lineHeightBase600,Ci as lineHeightHero1000,wi as lineHeightHero700,Si as lineHeightHero800,Bi as lineHeightHero900,qd as listboxTemplate,Dy as roleForMenuItem,Iu as setTheme,Rr as shadow16,fm as shadow16Brand,Vr as shadow2,Ql as shadow28,bm as shadow28Brand,um as shadow2Brand,jo as shadow4,pm as shadow4Brand,Pi as shadow64,mm as shadow64Brand,Jl as shadow8,gm as shadow8Brand,Zl as spacingHorizontalL,oe as spacingHorizontalM,Ye as spacingHorizontalMNudge,vm as spacingHorizontalNone,Ae as spacingHorizontalS,me as spacingHorizontalSNudge,ec as spacingHorizontalXL,te as spacingHorizontalXS,qo as spacingHorizontalXXL,V as spacingHorizontalXXS,$m as spacingHorizontalXXXL,Wr as spacingVerticalL,tc as spacingVerticalM,Go as spacingVerticalMNudge,qr as spacingVerticalNone,re as spacingVerticalS,ao as spacingVerticalSNudge,ym as spacingVerticalXL,Et as spacingVerticalXS,ft as spacingVerticalXXL,Wo as spacingVerticalXXS,oc as spacingVerticalXXXL,Re as startSlotTemplate,ue as strokeWidthThick,Be as strokeWidthThicker,jr as strokeWidthThickest,I as strokeWidthThin,F$ as typographyBody1StrongStyles,E$ as typographyBody1StrongerStyles,Vi as typographyBody1Styles,gd as typographyBody2Styles,D$ as typographyCaption1StrongStyles,L$ as typographyCaption1StrongerStyles,Ri as typographyCaption1Styles,H$ as typographyCaption2StrongStyles,M$ as typographyCaption2Styles,X$ as typographyDisplayStyles,G$ as typographyLargeTitleStyles,fd as typographySubtitle1Styles,R$ as typographySubtitle2StrongerStyles,V$ as typographySubtitle2Styles,j$ as typographyTitle1Styles,q$ as typographyTitle2Styles,W$ as typographyTitle3Styles,xm as zIndexBackground,wm as zIndexContent,Nm as zIndexDebug,Pm as zIndexFloating,Cm as zIndexMessages,Sm as zIndexOverlay,Bm as zIndexPopup,Im as zIndexPriority};
|
|
43
|
+
`),document.adoptedStyleSheets.push(t)}return ls.get(o)}function Ex(o,e){let t;if(o===null){if(!cs.has(e))return;t=cs.get(e)}else cs.set(e,o),t=o;for(const[r,n]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,n.toString())}const{userAgent:Dx}=navigator,Lx=/\bAppleWebKit\/[\d+\.]+\b/.test(Dx);function Ou(o){if(!Lx)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),N.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:_u};export{Jr as Accordion,Yr as AccordionExpandMode,co as AccordionItem,Eu as AccordionItemMarkerPosition,Fu as AccordionItemSize,Ht as AnchorButton,$c as AnchorButtonAppearance,Bc as AnchorButtonDefinition,kc as AnchorButtonShape,xc as AnchorButtonSize,Cc as AnchorButtonTemplate,wc as AnchorTarget,Oc as Avatar,xv as AvatarActive,Sv as AvatarAppearance,Mi as AvatarColor,zc as AvatarDefinition,Li as AvatarNamedColor,wv as AvatarShape,Cv as AvatarSize,Nc as AvatarStyles,Tc as AvatarTemplate,Rt as Badge,Fc as BadgeAppearance,Ec as BadgeColor,jc as BadgeDefinition,Vv as BadgeShape,Rv as BadgeSize,Vc as BadgeStyles,Rc as BadgeTemplate,lo as BaseAccordionItem,Re as BaseAnchor,Vt as BaseAvatar,pe as BaseButton,_e as BaseCheckbox,Wt as BaseCounterBadge,nn as BaseDivider,zd as BaseDropdown,bo as BaseField,ah as BaseMenuList,Kt as BaseProgressBar,je as BaseRadioGroup,Yt as BaseRatingDisplay,Wh as BaseSpinner,Jt as BaseTablist,W as BaseTextArea,O as BaseTextInput,$r as BaseTree,Ye as Button,tr as ButtonAppearance,Wc as ButtonDefinition,hv as ButtonFormTarget,or as ButtonShape,rr as ButtonSize,ho as ButtonStyles,qc as ButtonTemplate,nr as ButtonType,sr as Checkbox,Uc as CheckboxDefinition,Qv as CheckboxShape,ey as CheckboxSize,Gc as CheckboxStyles,Xc as CheckboxTemplate,Zc as CompoundButton,Iy as CompoundButtonAppearance,Jc as CompoundButtonDefinition,Ay as CompoundButtonShape,Ny as CompoundButtonSize,Kc as CompoundButtonStyles,Yc as CompoundButtonTemplate,Gt as CounterBadge,_y as CounterBadgeAppearance,Oy as CounterBadgeColor,od as CounterBadgeDefinition,Fy as CounterBadgeShape,Ey as CounterBadgeSize,ed as CounterBadgeStyles,Qc as CounterBadgeTagName,td as CounterBadgeTemplate,Oe as Dialog,cd as DialogBody,ld as DialogBodyDefinition,sd as DialogBodyStyles,ad as DialogBodyTemplate,id as DialogDefinition,rd as DialogStyles,nd as DialogTemplate,wt as DialogType,lt as Direction,lr as Divider,Gy as DividerAlignContent,Xy as DividerAppearance,ud as DividerDefinition,qi as DividerOrientation,go as DividerRole,dd as DividerStyles,hd as DividerTemplate,xe as Drawer,Sd as DrawerBody,wd as DrawerBodyDefinition,kd as DrawerBodyStyles,xd as DrawerBodyTemplate,vd as DrawerDefinition,gd as DrawerPosition,fd as DrawerSize,bd as DrawerStyles,md as DrawerTemplate,fo as DrawerType,an as Dropdown,Cd as DropdownAppearance,Nd as DropdownDefinition,oe as DropdownOption,mh as DropdownOptionDefinition,fh as DropdownOptionStyles,bh as DropdownOptionTemplate,$$ as DropdownSize,Bd as DropdownStyles,Ad as DropdownTemplate,sn as DropdownType,Yi as Field,Dd as FieldDefinition,Od as FieldLabelPosition,Fd as FieldStyles,Ed as FieldTemplate,h as FluentDesignSystem,Xt as Image,Hd as ImageDefinition,D$ as ImageFit,L$ as ImageShape,Ld as ImageStyles,Md as ImageTemplate,mo as Label,jd as LabelDefinition,R$ as LabelSize,Vd as LabelStyles,Rd as LabelTemplate,j$ as LabelWeight,dn as Link,U$ as LinkAppearance,Gd as LinkDefinition,qd as LinkStyles,K$ as LinkTarget,Wd as LinkTemplate,Ut as Listbox,Jd as ListboxDefinition,Ud as ListboxStyles,Yd as ListboxTemplate,et as Menu,eh as MenuButton,o0 as MenuButtonAppearance,Qd as MenuButtonDefinition,r0 as MenuButtonShape,n0 as MenuButtonSize,ho as MenuButtonStyles,Zd as MenuButtonTemplate,hh as MenuDefinition,Qe as MenuItem,rh as MenuItemDefinition,J as MenuItemRole,th as MenuItemStyles,oh as MenuItemTemplate,lh as MenuList,sh as MenuListDefinition,nh as MenuListStyles,ih as MenuListTemplate,ch as MenuStyles,dh as MenuTemplate,ur as MessageBar,gh as MessageBarDefinition,T0 as MessageBarIntent,A0 as MessageBarLayout,N0 as MessageBarShape,uh as MessageBarStyles,ph as MessageBarTemplate,ke as Orientation,pn as ProgressBar,kh as ProgressBarDefinition,V0 as ProgressBarShape,yh as ProgressBarStyles,$h as ProgressBarTemplate,H0 as ProgressBarThickness,vh as ProgressBarValidationState,Nh as Radio,Ah as RadioDefinition,Bh as RadioGroup,Ch as RadioGroupDefinition,os as RadioGroupOrientation,wh as RadioGroupStyles,Sh as RadioGroupTemplate,Ph as RadioStyles,Ih as RadioTemplate,fr as RatingDisplay,ok as RatingDisplayColor,Oh as RatingDisplayDefinition,rk as RatingDisplaySize,_h as RatingDisplayStyles,zh as RatingDisplayTemplate,q as Slider,Mh as SliderDefinition,Eh as SliderMode,Fh as SliderOrientation,pk as SliderSize,Dh as SliderStyles,Lh as SliderTemplate,fn as Spinner,vk as SpinnerAppearance,qh as SpinnerDefinition,yk as SpinnerSize,Rh as SpinnerStyles,jh as SpinnerTemplate,it as StartEnd,Yh as Switch,Kh as SwitchDefinition,wk as SwitchLabelPosition,Xh as SwitchStyles,Uh as SwitchTemplate,mn as Tab,Qh as TabDefinition,Jh as TabStyles,Zh as TabTemplate,vn as Tablist,eu as TablistAppearance,ru as TablistDefinition,$o as TablistOrientation,Tk as TablistSize,tu as TablistStyles,ou as TablistTemplate,Ee as Text,ix as TextAlign,vr as TextArea,yn as TextAreaAppearance,Lk as TextAreaAppearancesForDisplayShadow,Mk as TextAreaAutocomplete,au as TextAreaDefinition,mr as TextAreaResize,Dk as TextAreaSize,iu as TextAreaStyles,su as TextAreaTemplate,fu as TextDefinition,rx as TextFont,yr as TextInput,Uk as TextInputAppearance,Xk as TextInputControlSize,hu as TextInputDefinition,cu as TextInputStyles,du as TextInputTemplate,lu as TextInputType,ox as TextSize,pu as TextStyles,gu as TextTemplate,nx as TextWeight,$n as ToggleButton,cx as ToggleButtonAppearance,vu as ToggleButtonDefinition,dx as ToggleButtonShape,hx as ToggleButtonSize,bu as ToggleButtonStyles,mu as ToggleButtonTemplate,ko as Tooltip,xu as TooltipDefinition,Ie as TooltipPositioningOption,$u as TooltipStyles,ku as TooltipTemplate,xn as Tree,Cu as TreeDefinition,wn as TreeItem,Tu as TreeItemDefinition,Au as TreeItemStyles,Nu as TreeItemTemplate,wu as TreeStyles,Su as TreeTemplate,Pe as ValidationFlags,mc as accordionDefinition,gc as accordionItemDefinition,uc as accordionItemStyles,pc as accordionItemTemplate,fc as accordionStyles,bc as accordionTemplate,Tm as borderRadius2XLarge,zm as borderRadius3XLarge,_m as borderRadius4XLarge,Om as borderRadius5XLarge,Fm as borderRadius6XLarge,de as borderRadiusCircular,ki as borderRadiusLarge,S as borderRadiusMedium,Vo as borderRadiusNone,Ne as borderRadiusSmall,xi as borderRadiusXLarge,Er as colorBackgroundOverlay,oi as colorBrandBackground,si as colorBrandBackground2,tf as colorBrandBackground2Hover,of as colorBrandBackground2Pressed,rf as colorBrandBackground3Static,nf as colorBrandBackground4Static,ri as colorBrandBackgroundHover,sf as colorBrandBackgroundInverted,af as colorBrandBackgroundInvertedHover,lf as colorBrandBackgroundInvertedPressed,cf as colorBrandBackgroundInvertedSelected,ni as colorBrandBackgroundPressed,za as colorBrandBackgroundSelected,ii as colorBrandBackgroundStatic,Fo as colorBrandForeground1,Ca as colorBrandForeground2,hg as colorBrandForeground2Hover,ug as colorBrandForeground2Pressed,pg as colorBrandForegroundInverted,gg as colorBrandForegroundInvertedHover,fg as colorBrandForegroundInvertedPressed,fa as colorBrandForegroundLink,ba as colorBrandForegroundLinkHover,ma as colorBrandForegroundLinkPressed,tg as colorBrandForegroundLinkSelected,bg as colorBrandForegroundOnLight,mg as colorBrandForegroundOnLightHover,vg as colorBrandForegroundOnLightPressed,yg as colorBrandForegroundOnLightSelected,Lf as colorBrandShadowAmbient,Mf as colorBrandShadowKey,ai as colorBrandStroke1,li as colorBrandStroke2,If as colorBrandStroke2Contrast,Bf as colorBrandStroke2Hover,Pf as colorBrandStroke2Pressed,ut as colorCompoundBrandBackground,Ft as colorCompoundBrandBackgroundHover,Et as colorCompoundBrandBackgroundPressed,rg as colorCompoundBrandForeground1,ka as colorCompoundBrandForeground1Hover,xa as colorCompoundBrandForeground1Pressed,nt as colorCompoundBrandStroke,Fa as colorCompoundBrandStrokeHover,ci as colorCompoundBrandStrokePressed,C as colorNeutralBackground1,Eo as colorNeutralBackground1Hover,Fr as colorNeutralBackground1Pressed,Jn as colorNeutralBackground1Selected,$g as colorNeutralBackground2,kg as colorNeutralBackground2Hover,xg as colorNeutralBackground2Pressed,wg as colorNeutralBackground2Selected,to as colorNeutralBackground3,Sg as colorNeutralBackground3Hover,Cg as colorNeutralBackground3Pressed,Bg as colorNeutralBackground3Selected,Pa as colorNeutralBackground4,Pg as colorNeutralBackground4Hover,Ig as colorNeutralBackground4Pressed,Ag as colorNeutralBackground4Selected,Ia as colorNeutralBackground5,Ng as colorNeutralBackground5Hover,Tg as colorNeutralBackground5Pressed,zg as colorNeutralBackground5Selected,oo as colorNeutralBackground6,_g as colorNeutralBackground7,Og as colorNeutralBackground7Hover,Fg as colorNeutralBackground7Pressed,Eg as colorNeutralBackground7Selected,Dg as colorNeutralBackground8,Rg as colorNeutralBackgroundAlpha,jg as colorNeutralBackgroundAlpha2,rt as colorNeutralBackgroundDisabled,Ug as colorNeutralBackgroundDisabled2,Zn as colorNeutralBackgroundInverted,Kg as colorNeutralBackgroundInvertedDisabled,Lg as colorNeutralBackgroundInvertedHover,Mg as colorNeutralBackgroundInvertedPressed,Hg as colorNeutralBackgroundInvertedSelected,Vg as colorNeutralBackgroundStatic,df as colorNeutralCardBackground,gf as colorNeutralCardBackgroundDisabled,hf as colorNeutralCardBackgroundHover,uf as colorNeutralCardBackgroundPressed,pf as colorNeutralCardBackgroundSelected,I as colorNeutralForeground1,Kn as colorNeutralForeground1Hover,da as colorNeutralForeground1Pressed,Xp as colorNeutralForeground1Selected,Ba as colorNeutralForeground1Static,Ae as colorNeutralForeground2,_o as colorNeutralForeground2BrandHover,Oo as colorNeutralForeground2BrandPressed,ha as colorNeutralForeground2BrandSelected,_t as colorNeutralForeground2Hover,va as colorNeutralForeground2Link,ya as colorNeutralForeground2LinkHover,$a as colorNeutralForeground2LinkPressed,og as colorNeutralForeground2LinkSelected,Ot as colorNeutralForeground2Pressed,zo as colorNeutralForeground2Selected,X as colorNeutralForeground3,Up as colorNeutralForeground3BrandHover,Kp as colorNeutralForeground3BrandPressed,Yp as colorNeutralForeground3BrandSelected,ua as colorNeutralForeground3Hover,pa as colorNeutralForeground3Pressed,ga as colorNeutralForeground3Selected,Or as colorNeutralForeground4,Jp as colorNeutralForeground5,Zp as colorNeutralForeground5Hover,Qp as colorNeutralForeground5Pressed,eg as colorNeutralForeground5Selected,T as colorNeutralForegroundDisabled,ht as colorNeutralForegroundInverted,ig as colorNeutralForegroundInverted2,dg as colorNeutralForegroundInvertedDisabled,wa as colorNeutralForegroundInvertedHover,sg as colorNeutralForegroundInvertedLink,ag as colorNeutralForegroundInvertedLinkHover,lg as colorNeutralForegroundInvertedLinkPressed,cg as colorNeutralForegroundInvertedLinkSelected,Sa as colorNeutralForegroundInvertedPressed,ng as colorNeutralForegroundInvertedSelected,Ue as colorNeutralForegroundOnBrand,Yn as colorNeutralForegroundStaticInverted,Ea as colorNeutralShadowAmbient,Ef as colorNeutralShadowAmbientDarker,Of as colorNeutralShadowAmbientLighter,Da as colorNeutralShadowKey,Df as colorNeutralShadowKeyDarker,Ff as colorNeutralShadowKeyLighter,Yg as colorNeutralStencil1,Zg as colorNeutralStencil1Alpha,Jg as colorNeutralStencil2,Qg as colorNeutralStencil2Alpha,He as colorNeutralStroke1,ft as colorNeutralStroke1Hover,no as colorNeutralStroke1Pressed,bf as colorNeutralStroke1Selected,io as colorNeutralStroke2,_a as colorNeutralStroke3,mf as colorNeutralStroke4,vf as colorNeutralStroke4Hover,yf as colorNeutralStroke4Pressed,$f as colorNeutralStroke4Selected,Me as colorNeutralStrokeAccessible,pt as colorNeutralStrokeAccessibleHover,gt as colorNeutralStrokeAccessiblePressed,ff as colorNeutralStrokeAccessibleSelected,zf as colorNeutralStrokeAlpha,_f as colorNeutralStrokeAlpha2,be as colorNeutralStrokeDisabled,Af as colorNeutralStrokeDisabled2,Nf as colorNeutralStrokeInvertedDisabled,xf as colorNeutralStrokeOnBrand,Oa as colorNeutralStrokeOnBrand2,wf as colorNeutralStrokeOnBrand2Hover,Sf as colorNeutralStrokeOnBrand2Pressed,Cf as colorNeutralStrokeOnBrand2Selected,kf as colorNeutralStrokeSubtle,Ja as colorPaletteAnchorBackground2,Cb as colorPaletteAnchorBorderActive,Za as colorPaletteAnchorForeground2,Qa as colorPaletteBeigeBackground2,Bb as colorPaletteBeigeBorderActive,el as colorPaletteBeigeForeground2,tb as colorPaletteBerryBackground1,ob as colorPaletteBerryBackground2,rb as colorPaletteBerryBackground3,ib as colorPaletteBerryBorder1,sb as colorPaletteBerryBorder2,nb as colorPaletteBerryBorderActive,ab as colorPaletteBerryForeground1,lb as colorPaletteBerryForeground2,cb as colorPaletteBerryForeground3,tl as colorPaletteBlueBackground2,Pb as colorPaletteBlueBorderActive,ol as colorPaletteBlueForeground2,rl as colorPaletteBrassBackground2,Ib as colorPaletteBrassBorderActive,nl as colorPaletteBrassForeground2,il as colorPaletteBrownBackground2,Ab as colorPaletteBrownBorderActive,sl as colorPaletteBrownForeground2,al as colorPaletteCornflowerBackground2,Nb as colorPaletteCornflowerBorderActive,ll as colorPaletteCornflowerForeground2,cl as colorPaletteCranberryBackground2,Tb as colorPaletteCranberryBorderActive,dl as colorPaletteCranberryForeground2,hl as colorPaletteDarkGreenBackground2,zb as colorPaletteDarkGreenBorderActive,ul as colorPaletteDarkGreenForeground2,bi as colorPaletteDarkOrangeBackground1,Wf as colorPaletteDarkOrangeBackground2,mi as colorPaletteDarkOrangeBackground3,vi as colorPaletteDarkOrangeBorder1,Xf as colorPaletteDarkOrangeBorder2,Gf as colorPaletteDarkOrangeBorderActive,Wa as colorPaletteDarkOrangeForeground1,Uf as colorPaletteDarkOrangeForeground2,yi as colorPaletteDarkOrangeForeground3,pl as colorPaletteDarkRedBackground2,_b as colorPaletteDarkRedBorderActive,gl as colorPaletteDarkRedForeground2,fl as colorPaletteForestBackground2,Ob as colorPaletteForestBorderActive,bl as colorPaletteForestForeground2,ml as colorPaletteGoldBackground2,Fb as colorPaletteGoldBorderActive,vl as colorPaletteGoldForeground2,yl as colorPaletteGrapeBackground2,Eb as colorPaletteGrapeBorderActive,$l as colorPaletteGrapeForeground2,gi as colorPaletteGreenBackground1,Rf as colorPaletteGreenBackground2,fi as colorPaletteGreenBackground3,Ha as colorPaletteGreenBorder1,Va as colorPaletteGreenBorder2,jf as colorPaletteGreenBorderActive,Ra as colorPaletteGreenForeground1,ja as colorPaletteGreenForeground2,qa as colorPaletteGreenForeground3,qf as colorPaletteGreenForegroundInverted,kl as colorPaletteLavenderBackground2,Db as colorPaletteLavenderBorderActive,xl as colorPaletteLavenderForeground2,bb as colorPaletteLightGreenBackground1,mb as colorPaletteLightGreenBackground2,vb as colorPaletteLightGreenBackground3,$b as colorPaletteLightGreenBorder1,kb as colorPaletteLightGreenBorder2,yb as colorPaletteLightGreenBorderActive,xb as colorPaletteLightGreenForeground1,wb as colorPaletteLightGreenForeground2,Sb as colorPaletteLightGreenForeground3,wl as colorPaletteLightTealBackground2,Lb as colorPaletteLightTealBorderActive,Sl as colorPaletteLightTealForeground2,Cl as colorPaletteLilacBackground2,Mb as colorPaletteLilacBorderActive,Bl as colorPaletteLilacForeground2,Pl as colorPaletteMagentaBackground2,Hb as colorPaletteMagentaBorderActive,Il as colorPaletteMagentaForeground2,db as colorPaletteMarigoldBackground1,$i as colorPaletteMarigoldBackground2,hb as colorPaletteMarigoldBackground3,ub as colorPaletteMarigoldBorder1,pb as colorPaletteMarigoldBorder2,Ka as colorPaletteMarigoldBorderActive,gb as colorPaletteMarigoldForeground1,Ya as colorPaletteMarigoldForeground2,fb as colorPaletteMarigoldForeground3,Al as colorPaletteMinkBackground2,Vb as colorPaletteMinkBorderActive,Nl as colorPaletteMinkForeground2,Tl as colorPaletteNavyBackground2,Rb as colorPaletteNavyBorderActive,zl as colorPaletteNavyForeground2,_l as colorPalettePeachBackground2,jb as colorPalettePeachBorderActive,Ol as colorPalettePeachForeground2,Fl as colorPalettePinkBackground2,qb as colorPalettePinkBorderActive,El as colorPalettePinkForeground2,Dl as colorPalettePlatinumBackground2,Wb as colorPalettePlatinumBorderActive,Ll as colorPalettePlatinumForeground2,Ml as colorPalettePlumBackground2,Gb as colorPalettePlumBorderActive,Hl as colorPalettePlumForeground2,Vl as colorPalettePumpkinBackground2,Xb as colorPalettePumpkinBorderActive,Rl as colorPalettePumpkinForeground2,jl as colorPalettePurpleBackground2,Ub as colorPalettePurpleBorderActive,ql as colorPalettePurpleForeground2,di as colorPaletteRedBackground1,La as colorPaletteRedBackground2,hi as colorPaletteRedBackground3,ui as colorPaletteRedBorder1,Lr as colorPaletteRedBorder2,Hf as colorPaletteRedBorderActive,Mr as colorPaletteRedForeground1,Ma as colorPaletteRedForeground2,pi as colorPaletteRedForeground3,Vf as colorPaletteRedForegroundInverted,Wl as colorPaletteRoyalBlueBackground2,Kb as colorPaletteRoyalBlueBorderActive,Gl as colorPaletteRoyalBlueForeground2,Xl as colorPaletteSeafoamBackground2,Yb as colorPaletteSeafoamBorderActive,Ul as colorPaletteSeafoamForeground2,Kl as colorPaletteSteelBackground2,Jb as colorPaletteSteelBorderActive,Yl as colorPaletteSteelForeground2,Jl as colorPaletteTealBackground2,Zb as colorPaletteTealBorderActive,Zl as colorPaletteTealForeground2,Ga as colorPaletteYellowBackground1,Kf as colorPaletteYellowBackground2,Xa as colorPaletteYellowBackground3,Ua as colorPaletteYellowBorder1,Jf as colorPaletteYellowBorder2,Yf as colorPaletteYellowBorderActive,Zf as colorPaletteYellowForeground1,Hr as colorPaletteYellowForeground2,Qf as colorPaletteYellowForeground3,eb as colorPaletteYellowForegroundInverted,ef as colorScrollbarOverlay,ym as colorStatusDangerBackground1,$m as colorStatusDangerBackground2,km as colorStatusDangerBackground3,xm as colorStatusDangerBackground3Hover,wm as colorStatusDangerBackground3Pressed,Am as colorStatusDangerBorder1,Nm as colorStatusDangerBorder2,Im as colorStatusDangerBorderActive,Sm as colorStatusDangerForeground1,Cm as colorStatusDangerForeground2,Bm as colorStatusDangerForeground3,Pm as colorStatusDangerForegroundInverted,Qb as colorStatusSuccessBackground1,em as colorStatusSuccessBackground2,tm as colorStatusSuccessBackground3,am as colorStatusSuccessBorder1,lm as colorStatusSuccessBorder2,sm as colorStatusSuccessBorderActive,om as colorStatusSuccessForeground1,rm as colorStatusSuccessForeground2,nm as colorStatusSuccessForeground3,im as colorStatusSuccessForegroundInverted,cm as colorStatusWarningBackground1,dm as colorStatusWarningBackground2,hm as colorStatusWarningBackground3,mm as colorStatusWarningBorder1,vm as colorStatusWarningBorder2,bm as colorStatusWarningBorderActive,um as colorStatusWarningForeground1,pm as colorStatusWarningForeground2,gm as colorStatusWarningForeground3,fm as colorStatusWarningForegroundInverted,Ho as colorStrokeFocus1,se as colorStrokeFocus2,Qn as colorSubtleBackground,Do as colorSubtleBackgroundHover,qg as colorSubtleBackgroundInverted,Wg as colorSubtleBackgroundInvertedHover,Gg as colorSubtleBackgroundInvertedPressed,Xg as colorSubtleBackgroundInvertedSelected,Aa as colorSubtleBackgroundLightAlphaHover,Na as colorSubtleBackgroundLightAlphaPressed,Ta as colorSubtleBackgroundLightAlphaSelected,ro as colorSubtleBackgroundPressed,ei as colorSubtleBackgroundSelected,ce as colorTransparentBackground,Lo as colorTransparentBackgroundHover,Mo as colorTransparentBackgroundPressed,ti as colorTransparentBackgroundSelected,U as colorTransparentStroke,Tf as colorTransparentStrokeDisabled,Dr as colorTransparentStrokeInteractive,cc as curveAccelerateMax,mt as curveAccelerateMid,dc as curveAccelerateMin,Oi as curveDecelerateMax,vt as curveDecelerateMid,hc as curveDecelerateMin,Qo as curveEasyEase,Fi as curveEasyEaseMax,Ur as curveLinear,x as display,Id as dropdownButtonTemplate,Pd as dropdownInputTemplate,Wm as durationFast,Yo as durationFaster,Xr as durationGentle,Jo as durationNormal,lc as durationSlow,_i as durationSlower,Gr as durationUltraFast,Zo as durationUltraSlow,st as endSlotTemplate,v as fontFamilyBase,Ql as fontFamilyMonospace,ec as fontFamilyNumeric,so as fontSizeBase100,E as fontSizeBase200,z as fontSizeBase300,he as fontSizeBase400,Dt as fontSizeBase500,Ro as fontSizeBase600,Bi as fontSizeHero1000,wi as fontSizeHero700,Si as fontSizeHero800,Ci as fontSizeHero900,jo as fontWeightBold,tc as fontWeightMedium,_ as fontWeightRegular,M as fontWeightSemibold,Ki as getDirection,ji as isDialog,y$ as isDropdown,St as isDropdownOption,Ui as isListbox,bn as isTab,qo as lineHeightBase100,R as lineHeightBase200,D as lineHeightBase300,me as lineHeightBase400,Wo as lineHeightBase500,Pi as lineHeightBase600,Ti as lineHeightHero1000,Ii as lineHeightHero700,Ai as lineHeightHero800,Ni as lineHeightHero900,Kd as listboxTemplate,a0 as roleForMenuItem,_u as setTheme,Rr as shadow16,Mm as shadow16Brand,Vr as shadow2,rc as shadow28,Hm as shadow28Brand,Em as shadow2Brand,Go as shadow4,Dm as shadow4Brand,zi as shadow64,Vm as shadow64Brand,oc as shadow8,Lm as shadow8Brand,nc as spacingHorizontalL,ee as spacingHorizontalM,Ke as spacingHorizontalMNudge,Rm as spacingHorizontalNone,Te as spacingHorizontalS,ve as spacingHorizontalSNudge,ic as spacingHorizontalXL,Q as spacingHorizontalXS,Xo as spacingHorizontalXXL,H as spacingHorizontalXXS,jm as spacingHorizontalXXXL,Wr as spacingVerticalL,sc as spacingVerticalM,Ko as spacingVerticalMNudge,qr as spacingVerticalNone,te as spacingVerticalS,ao as spacingVerticalSNudge,qm as spacingVerticalXL,Lt as spacingVerticalXS,bt as spacingVerticalXXL,Uo as spacingVerticalXXS,ac as spacingVerticalXXXL,Ve as startSlotTemplate,ue as strokeWidthThick,Be as strokeWidthThicker,jr as strokeWidthThickest,B as strokeWidthThin,i$ as typographyBody1StrongStyles,s$ as typographyBody1StrongerStyles,Gi as typographyBody1Styles,yd as typographyBody2Styles,a$ as typographyCaption1StrongStyles,l$ as typographyCaption1StrongerStyles,Xi as typographyCaption1Styles,d$ as typographyCaption2StrongStyles,c$ as typographyCaption2Styles,m$ as typographyDisplayStyles,b$ as typographyLargeTitleStyles,$d as typographySubtitle1Styles,u$ as typographySubtitle2StrongerStyles,h$ as typographySubtitle2Styles,p$ as typographyTitle1Styles,g$ as typographyTitle2Styles,f$ as typographyTitle3Styles,Gm as zIndexBackground,Xm as zIndexContent,Qm as zIndexDebug,Jm as zIndexFloating,Ym as zIndexMessages,Um as zIndexOverlay,Km as zIndexPopup,Zm as zIndexPriority};
|