@fluentui/web-components 2.2.2 → 2.2.3

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.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 27 Jan 2022 07:33:19 GMT",
5
+ "date": "Fri, 18 Feb 2022 07:21:31 GMT",
6
+ "tag": "@fluentui/web-components_v2.2.3",
7
+ "version": "2.2.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "47367562+bheston@users.noreply.github.com",
12
+ "package": "@fluentui/web-components",
13
+ "commit": "b8bea1a92f7aee43b6887c9f035e33d4c26ddac0",
14
+ "comment": "Aligned \"plus 2\" type ramp line height size"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 27 Jan 2022 07:34:08 GMT",
6
21
  "tag": "@fluentui/web-components_v2.2.2",
7
22
  "version": "2.2.2",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Thu, 27 Jan 2022 07:33:19 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 18 Feb 2022 07:21:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [2.2.3](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v2.2.3)
8
+
9
+ Fri, 18 Feb 2022 07:21:31 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v2.2.2..@fluentui/web-components_v2.2.3)
11
+
12
+ ### Patches
13
+
14
+ - Aligned "plus 2" type ramp line height size ([PR #21698](https://github.com/microsoft/fluentui/pull/21698) by 47367562+bheston@users.noreply.github.com)
15
+
7
16
  ## [2.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v2.2.2)
8
17
 
9
- Thu, 27 Jan 2022 07:33:19 GMT
18
+ Thu, 27 Jan 2022 07:34:08 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v2.2.1..@fluentui/web-components_v2.2.2)
11
20
 
12
21
  ### Patches
@@ -66,7 +66,7 @@ export const typeRampPlus1LineHeight = create('type-ramp-plus-1-line-height').wi
66
66
  /** @public */
67
67
  export const typeRampPlus2FontSize = create('type-ramp-plus-2-font-size').withDefault('20px');
68
68
  /** @public */
69
- export const typeRampPlus2LineHeight = create('type-ramp-plus-2-line-height').withDefault('28px');
69
+ export const typeRampPlus2LineHeight = create('type-ramp-plus-2-line-height').withDefault('26px');
70
70
  /** @public */
71
71
  export const typeRampPlus3FontSize = create('type-ramp-plus-3-font-size').withDefault('24px');
72
72
  /** @public */
@@ -21148,7 +21148,7 @@ const typeRampPlus1LineHeight = create('type-ramp-plus-1-line-height').withDefau
21148
21148
  const typeRampPlus2FontSize = create('type-ramp-plus-2-font-size').withDefault('20px');
21149
21149
  /** @public */
21150
21150
 
21151
- const typeRampPlus2LineHeight = create('type-ramp-plus-2-line-height').withDefault('28px');
21151
+ const typeRampPlus2LineHeight = create('type-ramp-plus-2-line-height').withDefault('26px');
21152
21152
  /** @public */
21153
21153
 
21154
21154
  const typeRampPlus3FontSize = create('type-ramp-plus-3-font-size').withDefault('24px');
@@ -18,7 +18,7 @@ function ne(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPr
18
18
  * tabbable 5.2.0
19
19
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
20
20
  */
21
- var Ro=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Eo=Ro.join(","),Oo="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Lo=function(t){return"INPUT"===t.tagName},Ao=function(t){return function(t){return Lo(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},zo=function(t,e){return!(e.disabled||function(t){return Lo(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Oo.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Oo.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},Ho=function(t,e){return!(!zo(t,e)||Ao(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},Po=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Oo.call(t,Eo)&&Ho(e,t)},Mo=Ro.concat("iframe").join(","),Bo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Oo.call(t,Mo)&&zo(e,t)};class No extends je{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>No.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),d.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss")}show(){this.hidden=!1}hide(){this.hidden=!0}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=C.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:Po(e)||No.isFocusableFastElement(e)&&No.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(No.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>Po(t))}}ne([ft({mode:"boolean"})],No.prototype,"modal",void 0),ne([ft({mode:"boolean"})],No.prototype,"hidden",void 0),ne([ft({attribute:"trap-focus",mode:"boolean"})],No.prototype,"trapFocus",void 0),ne([ft({attribute:"aria-describedby"})],No.prototype,"ariaDescribedby",void 0),ne([ft({attribute:"aria-labelledby"})],No.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],No.prototype,"ariaLabel",void 0);var jo,Uo;!function(t){t.separator="separator",t.presentation="presentation"}(jo||(jo={}));class qo extends je{constructor(){super(...arguments),this.role=jo.separator,this.orientation=We.horizontal}}ne([ft],qo.prototype,"role",void 0),ne([ft],qo.prototype,"orientation",void 0),function(t){t.next="next",t.previous="previous"}(Uo||(Uo={}));class _o extends je{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Uo.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"===e&&this.$emit("click",t),"Escape"===e&&this.blur()}}}ne([ft({mode:"boolean"})],_o.prototype,"disabled",void 0),ne([ft({attribute:"aria-hidden",converter:ut})],_o.prototype,"hiddenFromAT",void 0),ne([ft],_o.prototype,"direction",void 0);var Go;!function(t){t.menuitem="menuitem",t.menuitemcheckbox="menuitemcheckbox",t.menuitemradio="menuitemradio"}(Go||(Go={}));const Wo={[Go.menuitem]:"menuitem",[Go.menuitemcheckbox]:"menuitemcheckbox",[Go.menuitemradio]:"menuitemradio"};class Ko extends je{constructor(){super(...arguments),this.role=Go.menuitem,this.hasSubmenu=!1,this.currentDirection=Ze.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Go.menuitemcheckbox:this.checked=!this.checked;break;case Go.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Go.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=hi(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children)}}ne([ft({mode:"boolean"})],Ko.prototype,"disabled",void 0),ne([ft({mode:"boolean"})],Ko.prototype,"expanded",void 0),ne([T],Ko.prototype,"startColumnCount",void 0),ne([ft],Ko.prototype,"role",void 0),ne([ft({mode:"boolean"})],Ko.prototype,"checked",void 0),ne([T],Ko.prototype,"submenuRegion",void 0),ne([T],Ko.prototype,"hasSubmenu",void 0),ne([T],Ko.prototype,"currentDirection",void 0),ne([T],Ko.prototype,"submenu",void 0),_e(Ko,te);class Xo extends je{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Ke(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.setItems=()=>{const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const e=t.reduce((t,e)=>{const i=(o=e)instanceof Ko?o.role!==Go.menuitem&&null===o.querySelector("[slot=start]")||o.role===Go.menuitem&&null!==o.querySelector("[slot=start]")?1:o.role!==Go.menuitem&&null!==o.querySelector("[slot=start]")?2:0:1;var o;return t>i?t:i},0);t.forEach((t,i)=>{t.setAttribute("tabindex",0===i?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Ko&&(t.startColumnCount=e)})},this.resetItems=t=>{t.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.changeHandler=t=>{const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Go.menuitemradio&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Go.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Ke(t)&&Xo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&(this.menuItems=this.domChildren(),this.resetItems(t),this.setItems())}connectedCallback(){super.connectedCallback(),this.menuItems=this.domChildren(),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuItems=[],this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children)}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}Xo.focusableElementRoles=Wo,ne([T],Xo.prototype,"items",void 0);class Yo extends je{}class Qo extends(bi(Yo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Zo;!function(t){t.email="email",t.password="password",t.tel="tel",t.text="text",t.url="url"}(Zo||(Zo={}));class Jo extends Qo{constructor(){super(...arguments),this.type=Zo.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],Jo.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],Jo.prototype,"autofocus",void 0),ne([ft],Jo.prototype,"placeholder",void 0),ne([ft],Jo.prototype,"type",void 0),ne([ft],Jo.prototype,"list",void 0),ne([ft({converter:pt})],Jo.prototype,"maxlength",void 0),ne([ft({converter:pt})],Jo.prototype,"minlength",void 0),ne([ft],Jo.prototype,"pattern",void 0),ne([ft({converter:pt})],Jo.prototype,"size",void 0),ne([ft({mode:"boolean"})],Jo.prototype,"spellcheck",void 0),ne([T],Jo.prototype,"defaultSlottedNodes",void 0);class ts{}_e(ts,ai),_e(Jo,te,ts);class es extends je{}class is extends(bi(es)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class os extends is{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}ne([ft({attribute:"readonly",mode:"boolean"})],os.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],os.prototype,"autofocus",void 0),ne([ft({attribute:"hide-step",mode:"boolean"})],os.prototype,"hideStep",void 0),ne([ft],os.prototype,"placeholder",void 0),ne([ft],os.prototype,"list",void 0),ne([ft({converter:pt})],os.prototype,"maxlength",void 0),ne([ft({converter:pt})],os.prototype,"minlength",void 0),ne([ft({converter:pt})],os.prototype,"size",void 0),ne([ft({converter:pt})],os.prototype,"step",void 0),ne([ft({converter:pt})],os.prototype,"max",void 0),ne([ft({converter:pt})],os.prototype,"min",void 0),ne([T],os.prototype,"defaultSlottedNodes",void 0),_e(os,te,ts);class ss extends je{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}ne([ft({converter:pt})],ss.prototype,"value",void 0),ne([ft({converter:pt})],ss.prototype,"min",void 0),ne([ft({converter:pt})],ss.prototype,"max",void 0),ne([ft({mode:"boolean"})],ss.prototype,"paused",void 0),ne([T],ss.prototype,"percentComplete",void 0);class ns extends je{constructor(){super(...arguments),this.orientation=We.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in Qe&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Ze.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===Ze.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("value")===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=hi(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ne([ft({attribute:"readonly",mode:"boolean"})],ns.prototype,"readOnly",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],ns.prototype,"disabled",void 0),ne([ft],ns.prototype,"name",void 0),ne([ft],ns.prototype,"value",void 0),ne([ft],ns.prototype,"orientation",void 0),ne([T],ns.prototype,"childItems",void 0),ne([T],ns.prototype,"slottedRadioButtons",void 0);class rs extends je{}class as extends(vi(rs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ls extends as{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}ne([ft({attribute:"readonly",mode:"boolean"})],ls.prototype,"readOnly",void 0),ne([T],ls.prototype,"name",void 0),ne([T],ls.prototype,"defaultSlottedNodes",void 0);class cs extends je{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&d.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e<=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}ne([ft({converter:pt})],cs.prototype,"speed",void 0),ne([ft],cs.prototype,"duration",void 0),ne([ft],cs.prototype,"easing",void 0),ne([ft({attribute:"aria-hidden",converter:ut})],cs.prototype,"flippersHiddenFromAT",void 0),ne([T],cs.prototype,"scrolling",void 0),ne([T],cs.prototype,"scrollItems",void 0),ne([ft({attribute:"view"})],cs.prototype,"view",void 0);class hs extends je{}class ds extends(bi(hs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class us extends ds{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],us.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],us.prototype,"autofocus",void 0),ne([ft],us.prototype,"placeholder",void 0),ne([ft],us.prototype,"list",void 0),ne([ft({converter:pt})],us.prototype,"maxlength",void 0),ne([ft({converter:pt})],us.prototype,"minlength",void 0),ne([ft],us.prototype,"pattern",void 0),ne([ft({converter:pt})],us.prototype,"size",void 0),ne([ft({mode:"boolean"})],us.prototype,"spellcheck",void 0),ne([T],us.prototype,"defaultSlottedNodes",void 0);class ps{}_e(ps,ai),_e(us,te,ps);class gs extends Ui{}class fs extends(bi(gs)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class ms extends fs{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.position=Gi.below,this.maxHeight=0,this.displayValue=""}openChanged(){if(this.open)return this.ariaControls=this.listbox.id,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void(this.indexWhenOpened=this.selectedIndex);this.ariaControls="",this.ariaExpanded="false"}get value(){return C.track(this,"value"),this._value}set value(t){const e=""+this._value;if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex(e=>e.value===t),i=this.options[this.selectedIndex],o=this.options[e],s=i?i.value:null,n=o?o.value:null;-1!==e&&s===n||(t="",this.selectedIndex=e),this.firstSelectedOption&&(t=this.firstSelectedOption.value)}e!==t&&(this._value=t,super.valueChanged(e,t),C.notify(this,"value"))}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Gi.above:Gi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Gi.above?~~t.top:~~e}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),this.setDefaultSelectedOption(),this.value=this.firstSelectedOption.value}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.setProxyOptions(),this.updateValue()}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.appendChild(e)}))}keydownHandler(t){super.keydownHandler(t);switch(t.key||t.key.charCodeAt(0)){case" ":this.typeaheadExpired&&(t.preventDefault(),this.open=!this.open);break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;t.preventDefault(),this.open=!1}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!0}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.listbox.id||(this.listbox.id=ii("listbox-"))}}ne([ft({attribute:"open",mode:"boolean"})],ms.prototype,"open",void 0),ne([ft({attribute:"position"})],ms.prototype,"positionAttribute",void 0),ne([T],ms.prototype,"position",void 0),ne([T],ms.prototype,"maxHeight",void 0),ne([T],ms.prototype,"displayValue",void 0);class bs{}ne([T],bs.prototype,"ariaControls",void 0),_e(bs,qi),_e(ms,te,bs);class vs extends je{constructor(){super(...arguments),this.shape="rect"}}ne([ft],vs.prototype,"fill",void 0),ne([ft],vs.prototype,"shape",void 0),ne([ft],vs.prototype,"pattern",void 0),ne([ft({mode:"boolean"})],vs.prototype,"shimmer",void 0);function ys(t,e,i,o){let s=ti(0,1,(t-e)/(i-e));return o===Ze.rtl&&(s=1-s),s}const xs={min:0,max:0,direction:Ze.ltr,orientation:We.horizontal,disabled:!1};class $s extends je{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Ze.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||Ze.ltr,this.sliderOrientation=s||We.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=xs.direction||Ze.ltr,this.sliderOrientation=xs.orientation||We.horizontal,this.sliderMaxPosition=xs.max,this.sliderMinPosition=xs.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:Ze.ltr,e=ys(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===We.horizontal?t===Ze.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=C.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}ne([T],$s.prototype,"positionStyle",void 0),ne([ft],$s.prototype,"position",void 0),ne([ft({attribute:"hide-mark",mode:"boolean"})],$s.prototype,"hideMark",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],$s.prototype,"disabled",void 0),ne([T],$s.prototype,"sliderOrientation",void 0),ne([T],$s.prototype,"sliderMinPosition",void 0),ne([T],$s.prototype,"sliderMaxPosition",void 0),ne([T],$s.prototype,"sliderDirection",void 0);class ws extends je{}class ks extends(bi(ws)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Cs;!function(t){t.singleValue="single-value"}(Cs||(Cs={}));class Fs extends ks{constructor(){super(...arguments),this.direction=Ze.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=We.horizontal,this.mode=Cs.singleValue,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown),this.thumb[e]("touchstart",this.handleThumbMouseDown),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.preventDefault(),t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),window[e]("touchmove",this.handleMouseMove),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===We.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=ys(t,this.orientation===We.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===We.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===We.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=hi(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=ys(Number(this.value),Number(this.min),Number(this.max),t),i=Math.round(100*(1-e));this.orientation===We.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}ne([ft({attribute:"readonly",mode:"boolean"})],Fs.prototype,"readOnly",void 0),ne([T],Fs.prototype,"direction",void 0),ne([T],Fs.prototype,"isDragging",void 0),ne([T],Fs.prototype,"position",void 0),ne([T],Fs.prototype,"trackWidth",void 0),ne([T],Fs.prototype,"trackMinWidth",void 0),ne([T],Fs.prototype,"trackHeight",void 0),ne([T],Fs.prototype,"trackLeft",void 0),ne([T],Fs.prototype,"trackMinHeight",void 0),ne([T],Fs.prototype,"valueTextFormatter",void 0),ne([ft({converter:pt})],Fs.prototype,"min",void 0),ne([ft({converter:pt})],Fs.prototype,"max",void 0),ne([ft({converter:pt})],Fs.prototype,"step",void 0),ne([ft],Fs.prototype,"orientation",void 0),ne([ft],Fs.prototype,"mode",void 0);class Is extends je{}class Ts extends(vi(Is)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ds extends Ts{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}ne([ft({attribute:"readonly",mode:"boolean"})],Ds.prototype,"readOnly",void 0),ne([T],Ds.prototype,"defaultSlottedNodes",void 0);class Vs extends je{}class Ss extends je{}ne([ft({mode:"boolean"})],Ss.prototype,"disabled",void 0);var Rs,Es;!function(t){t.vertical="vertical",t.horizontal="horizontal"}(Rs||(Rs={}));class Os extends je{constructor(){super(...arguments),this.orientation=Rs.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],o=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?"tab-"+(i+1):t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof o?"panel-"+(i+1):o),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof o?"panel-"+(e+1):o),t.setAttribute("aria-labelledby","string"!=typeof i?"tab-"+(e+1):i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>t.getAttribute("id"))}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id"))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Rs.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Je(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}ne([ft],Os.prototype,"orientation",void 0),ne([ft],Os.prototype,"activeid",void 0),ne([T],Os.prototype,"tabs",void 0),ne([T],Os.prototype,"tabpanels",void 0),ne([ft({mode:"boolean"})],Os.prototype,"activeindicator",void 0),ne([T],Os.prototype,"activeIndicatorRef",void 0),ne([T],Os.prototype,"showActiveIndicator",void 0),_e(Os,te);class Ls extends je{}class As extends(bi(Ls)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(Es||(Es={}));class zs extends As{constructor(){super(...arguments),this.resize=Es.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}handleChange(){this.$emit("change")}}ne([ft({mode:"boolean"})],zs.prototype,"readOnly",void 0),ne([ft],zs.prototype,"resize",void 0),ne([ft({mode:"boolean"})],zs.prototype,"autofocus",void 0),ne([ft({attribute:"form"})],zs.prototype,"formId",void 0),ne([ft],zs.prototype,"list",void 0),ne([ft({converter:pt})],zs.prototype,"maxlength",void 0),ne([ft({converter:pt})],zs.prototype,"minlength",void 0),ne([ft],zs.prototype,"name",void 0),ne([ft],zs.prototype,"placeholder",void 0),ne([ft({converter:pt,mode:"fromView"})],zs.prototype,"cols",void 0),ne([ft({converter:pt,mode:"fromView"})],zs.prototype,"rows",void 0),ne([ft({mode:"boolean"})],zs.prototype,"spellcheck",void 0),ne([T],zs.prototype,"defaultSlottedNodes",void 0),_e(zs,ts);const Hs=Object.freeze({[Qe.ArrowUp]:{[We.vertical]:-1},[Qe.ArrowDown]:{[We.vertical]:1},[Qe.ArrowLeft]:{[We.horizontal]:{[Ze.ltr]:-1,[Ze.rtl]:1}},[Qe.ArrowRight]:{[We.horizontal]:{[Ze.ltr]:1,[Ze.rtl]:-1}}});class Ps extends je{constructor(){super(...arguments),this._activeIndex=0,this.direction=Ze.ltr,this.orientation=We.horizontal}get activeIndex(){return C.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=ti(0,this.focusableElements.length-1,t),C.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=hi(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=Hs[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=Hs[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in Qe)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(Ps.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Bo(t));return Bo(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Ps.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}ne([T],Ps.prototype,"direction",void 0),ne([ft],Ps.prototype,"orientation",void 0),ne([T],Ps.prototype,"slottedItems",void 0),ne([T],Ps.prototype,"slottedLabel",void 0);class Ms{}ne([ft({attribute:"aria-labelledby"})],Ms.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],Ms.prototype,"ariaLabel",void 0),_e(Ms,ai),_e(Ps,te,Ms);var Bs;!function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left",t.start="start",t.end="end"}(Bs||(Bs={}));class Ns extends je{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Ze.ltr,this.delayTimer=null,this.isAnchorHoveredFocused=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleAnchorMouseOver=t=>{this.startHoverTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.handleAnchorFocusIn=t=>{this.startHoverTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.startHoverTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.delayTimer&&(this.delayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearDelayTimer=()=>{null!==this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=hi(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),d.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&this.updateLayout()}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startHoverTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateLayout(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.position){case Bs.top:case Bs.bottom:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Bs.right:case Bs.left:case Bs.start:case Bs.end:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}ne([ft({mode:"boolean"})],Ns.prototype,"visible",void 0),ne([ft],Ns.prototype,"anchor",void 0),ne([ft],Ns.prototype,"delay",void 0),ne([ft],Ns.prototype,"position",void 0),ne([ft({attribute:"auto-update-mode"})],Ns.prototype,"autoUpdateMode",void 0),ne([ft({attribute:"horizontal-viewport-lock"})],Ns.prototype,"horizontalViewportLock",void 0),ne([ft({attribute:"vertical-viewport-lock"})],Ns.prototype,"verticalViewportLock",void 0),ne([T],Ns.prototype,"anchorElement",void 0),ne([T],Ns.prototype,"viewportElement",void 0),ne([T],Ns.prototype,"verticalPositioningMode",void 0),ne([T],Ns.prototype,"horizontalPositioningMode",void 0),ne([T],Ns.prototype,"horizontalInset",void 0),ne([T],Ns.prototype,"verticalInset",void 0),ne([T],Ns.prototype,"horizontalScaling",void 0),ne([T],Ns.prototype,"verticalScaling",void 0),ne([T],Ns.prototype,"verticalDefaultPosition",void 0),ne([T],Ns.prototype,"horizontalDefaultPosition",void 0),ne([T],Ns.prototype,"tooltipVisible",void 0),ne([T],Ns.prototype,"currentDirection",void 0);function js(t){return Ke(t)&&"treeitem"===t.getAttribute("role")}class Us extends je{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.handleExpandCollapseButtonClick=t=>{this.disabled||(t.preventDefault(),this.setExpanded(!this.expanded))},this.handleClick=t=>{if(!t.defaultPrevented){return t.composedPath().find(t=>t instanceof HTMLElement&&js(t))===this&&this.handleSelected(),!0}},this.isNestedItem=()=>js(this.parentElement)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{js(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>js(t));return t?t.length:0}handleSelected(t){(null==t?void 0:t.defaultPrevented)||(null==t||t.preventDefault(),this.disabled||this.$emit("selected-change",t))}setExpanded(t){this.expanded=t,this.$emit("expanded-change",this)}}ne([ft({mode:"boolean"})],Us.prototype,"expanded",void 0),ne([ft({mode:"boolean"})],Us.prototype,"selected",void 0),ne([ft({mode:"boolean"})],Us.prototype,"disabled",void 0),ne([T],Us.prototype,"focusable",void 0),ne([T],Us.prototype,"childItems",void 0),ne([T],Us.prototype,"items",void 0),ne([T],Us.prototype,"nested",void 0),ne([T],Us.prototype,"renderCollapsedChildren",void 0),_e(Us,te);class qs extends je{constructor(){super(...arguments),this.handleBlur=t=>{const{relatedTarget:e,target:i}=t;i instanceof HTMLElement&&(null===e||!this.contains(e))&&this.setAttribute("tabindex","0")},this.handleFocus=t=>{const{relatedTarget:e,target:i}=t;if(i instanceof HTMLElement&&(null===e||!this.contains(e))){const t=this;i===this&&this.currentFocused instanceof Us&&(Us.focusItem(this.currentFocused),this.currentFocused.setAttribute("tabindex","0")),t.setAttribute("tabindex","-1")}},this.handleKeyDown=t=>{if(!this.treeItems)return!0;switch(t.key){case"Home":this.treeItems&&this.treeItems.length&&(Us.focusItem(this.treeItems[0]),this.treeItems[0].setAttribute("tabindex","0"));break;case"End":this.treeItems&&this.treeItems.length&&(Us.focusItem(this.treeItems[this.treeItems.length-1]),this.treeItems[this.treeItems.length-1].setAttribute("tabindex","0"));break;case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Us&&e.childItemLength()>0&&(e.expanded=!1)}break;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Us&&e.childItemLength()>0&&(e.expanded=!0)}break;case"ArrowDown":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target);break;case"ArrowUp":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target);break;case"Enter":this.handleSelected(t.target);break;default:return!0}},this.setItems=()=>{let t=this.treeItems.findIndex(this.isSelectedElement);-1===t&&(t=this.treeItems.findIndex(this.isFocusableElement));for(let e=0;e<this.treeItems.length;e++)e===t&&(this.treeItems[e].setAttribute("tabindex","0"),this.currentFocused=this.treeItems[e]),this.treeItems[e].addEventListener("selected-change",this.handleItemSelected)},this.resetItems=()=>{for(let t=0;t<this.treeItems.length;t++)this.treeItems[t].removeEventListener("selected-change",this.handleItemSelected)},this.handleItemSelected=t=>{const e=t.target;e!==this.currentSelected&&this.handleSelected(e)},this.isFocusableElement=t=>js(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(t,e){this.$fastController.isConnected&&(this.resetItems(),this.treeItems=this.getVisibleNodes(),this.setItems(),this.checkForNestedItems()&&this.slottedTreeItems.forEach(t=>{js(t)&&(t.nested=!0)}))}checkForNestedItems(){return this.slottedTreeItems.some(t=>js(t)&&t.querySelector("[role='treeitem']"))}connectedCallback(){super.connectedCallback(),this.treeItems=this.getVisibleNodes(),d.queueUpdate(()=>{const t=this.treeView.querySelector("[aria-selected='true']");t&&(this.currentSelected=t)})}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i.indexOf(e),s=i[o];(t<0&&o>0||t>0&&o<i.length-1)&&s.setAttribute("tabindex","-1");const n=i[i.indexOf(e)+t];Ke(n)&&(Us.focusItem(n),n.setAttribute("tabindex","0"),this.currentFocused=n)}handleSelected(t){this.currentSelected!==t&&(t.setAttribute("tabindex","0"),this.currentSelected instanceof Us&&this.currentFocused&&(t.disabled||(this.currentSelected.selected=!1),this.currentFocused.setAttribute("tabindex","-1")),this.currentSelected||this.slottedTreeItems.forEach(t=>{t instanceof Us&&t.setAttribute("tabindex","-1")}),t.disabled||(t.selected=!0,this.currentSelected=t),this.currentFocused=t)}getVisibleNodes(){return function(t,e){if(!t||!e||!Ke(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}function _s(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function Gs(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Ws(t,e,i){return isNaN(t)?e:e+t*(i-e)}function Ks(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function Xs(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}ne([ft({attribute:"render-collapsed-nodes"})],qs.prototype,"renderCollapsedNodes",void 0),ne([T],qs.prototype,"currentSelected",void 0),ne([T],qs.prototype,"nested",void 0),ne([T],qs.prototype,"slottedTreeItems",void 0);class Ys{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new Ys(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new Ys(Xs(this.h,t),Xs(this.s,t),Xs(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Qs{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Qs(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Qs(Xs(this.l,t),Xs(this.a,t),Xs(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Qs.epsilon=216/24389,Qs.kappa=24389/27;class Zs{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Zs(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Ws(this.r,0,255))},${Math.round(Ws(this.g,0,255))},${Math.round(Ws(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Ws(this.r,0,255))},${Math.round(Ws(this.g,0,255))},${Math.round(Ws(this.b,0,255))},${_s(this.a,0,1)})`}roundToPrecision(t){return new Zs(Xs(this.r,t),Xs(this.g,t),Xs(this.b,t),Xs(this.a,t))}clamp(){return new Zs(_s(this.r,0,1),_s(this.g,0,1),_s(this.b,0,1),_s(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(_s(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Ws(t,0,255))}}class Js{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new Js(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new Js(Xs(this.x,t),Xs(this.y,t),Xs(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function tn(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return function(t){return.2126*t.r+.7152*t.g+.0722*t.b}(new Zs(e(t.r),e(t.g),e(t.b),1))}function en(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new Ys(s,r,n)}function on(t){return function(t){function e(t){return t>Qs.epsilon?Math.pow(t,1/3):(Qs.kappa*t+16)/116}const i=e(t.x/Js.whitePoint.x),o=e(t.y/Js.whitePoint.y),s=e(t.z/Js.whitePoint.z);return new Qs(116*o-16,500*(i-o),200*(o-s))}(function(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new Js(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}(t))}function sn(t,e=1){return function(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Zs(o,s,n,e)}(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Qs.epsilon?s:(116*i-16)/Qs.kappa;let l=0;l=t.l>Qs.epsilon*Qs.kappa?n:t.l/Qs.kappa;let c=0;return c=r>Qs.epsilon?r:(116*o-16)/Qs.kappa,a=Js.whitePoint.x*a,l=Js.whitePoint.y*l,c=Js.whitePoint.z*c,new Js(a,l,c)}(t),e)}var nn,rn;function an(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Zs(Ks(t,e.r,i.r),Ks(t,e.g,i.g),Ks(t,e.b,i.b),Ks(t,e.a,i.a))}Js.whitePoint=new Js(.95047,1,1.08883),function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(nn||(nn={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(rn||(rn={}));const ln=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function cn(t){const e=ln.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new Zs(Gs((16711680&o)>>>16,0,255),Gs((65280&o)>>>8,0,255),Gs(255&o,0,255),1)}function hn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const dn=Object.freeze({create:(t,e,i)=>new un(t,e,i),from:t=>new un(t.r,t.g,t.b)});class un extends Zs{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=hn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=tn(this)}static fromObject(t){return new un(t.r,t.g,t.b)}}const pn=(-.1+Math.sqrt(.21))/2;function gn(t){return t.relativeLuminance<=pn}function fn(t){return gn(t)?-1:1}const mn={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};const bn=Object.freeze({create:function(t,e,i){return"number"==typeof t?bn.from(dn.create(t,e,i)):bn.from(t)},from:function(t,e){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?vn.from(t,e):vn.from(dn.create(t.r,t.g,t.b),e)}});class vn{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=fn(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>hn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[_s(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static saturationBump(t,e){const i=en(t).s,o=en(e);if(o.s<i){return function(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Zs(n+s,r+s,a+s,e)}(new Ys(o.h,i,o.l))}return e}static ramp(t){const e=t/100;return e>.5?(e-.5)/.5:2*e}static createHighResolutionPalette(t){const e=[],i=on(Zs.fromObject(t).roundToPrecision(4)),o=sn(new Qs(0,i.a,i.b)).clamp().roundToPrecision(4),s=sn(new Qs(50,i.a,i.b)).clamp().roundToPrecision(4),n=sn(new Qs(100,i.a,i.b)).clamp().roundToPrecision(4),r=new Zs(0,0,0),a=new Zs(1,1,1),l=n.equalValue(a)?0:14,c=o.equalValue(r)?0:14;for(let t=100+l;t>=0-c;t-=.5){let i;if(t<0){i=an(t/c+1,r,o)}else if(t<=50)i=an(vn.ramp(t),o,s);else if(t<=100)i=an(vn.ramp(t),s,n);else{i=an((t-100)/l,n,a)}i=vn.saturationBump(s,i).roundToPrecision(4),e.push(dn.from(i))}return new vn(t,e)}static adjustEnd(t,e,i,o){const s=-1===o?e.swatches:e.reversedSwatches,n=t=>{const i=e.closestIndexOf(t);return 1===o?e.lastIndex-i:i};1===o&&i.reverse();const r=t(i[i.length-2]);if(Xs(hn(i[i.length-1],i[i.length-2]),2)<r){i.pop();const t=n(e.colorContrast(s[e.lastIndex],r,void 0,o))-n(i[i.length-2]);let a=1;for(let o=i.length-t-1;o<i.length;o++){const t=n(i[o]),r=o===i.length-1?e.lastIndex:t+a;i[o]=s[r],a++}}1===o&&i.reverse()}static createColorPaletteByContrast(t,e){const i=vn.createHighResolutionPalette(t),o=t=>Xs(e.stepContrast+e.stepContrast*(1-t.relativeLuminance)*e.stepContrastRamp,2),s=[];let n=e.preserveSource?t:i.swatches[0];s.push(n);do{const t=o(n);n=i.colorContrast(n,t,void 0,1),s.push(n)}while(n.relativeLuminance>0);if(e.preserveSource){n=t;do{const t=o(n);n=i.colorContrast(n,t,void 0,-1),s.unshift(n)}while(n.relativeLuminance<1)}return this.adjustEnd(o,i,s,-1),e.preserveSource&&this.adjustEnd(o,i,s,1),s}static from(t,e){const i=void 0===e?mn:Object.assign(Object.assign({},mn),e);return new vn(t,Object.freeze(vn.createColorPaletteByContrast(t,i)))}}const yn=dn.create(1,1,1),xn=dn.create(0,0,0),$n=dn.create(.5,.5,.5),wn=cn("#0078D4"),kn=dn.create(wn.r,wn.g,wn.b);function Cn(t,e,i,o,s){const n=t=>t.contrast(yn)>=s?yn:xn,r=n(t),a=n(e);return{rest:r,hover:a,active:r.relativeLuminance===a.relativeLuminance?r:n(i),focus:n(o)}}class Fn{constructor(t,e,i,o){this.toColorString=()=>this.cssGradient,this.contrast=hn.bind(null,this),this.createCSS=this.toColorString,this.color=new Zs(t,e,i),this.cssGradient=o,this.relativeLuminance=tn(this.color),this.r=t,this.g=e,this.b=i}static fromObject(t,e){return new Fn(t.r,t.g,t.b,e)}}const In=new Zs(0,0,0),Tn=new Zs(1,1,1);function Dn(t,e,i,o,s,n,r,a,l=10,c=!1){const h=t.closestIndexOf(e);function d(i){if(c){const o=t.closestIndexOf(e),s=t.get(o),n=i.relativeLuminance<e.relativeLuminance?In:Tn,r=function(t,e,i){const o=((t.r-e.r)/(i.r-e.r)+(t.g-e.g)/(i.g-e.g)+(t.b-e.b)/(i.b-e.b))/3;return new Zs(i.r,i.g,i.b,o)}(cn(i.toColorString()),cn(s.toColorString()),n).roundToPrecision(2),a=function(t,e){if(e.a>=1)return e;if(e.a<=0)return new Zs(t.r,t.g,t.b,1);const i=e.a*e.r+(1-e.a)*t.r,o=e.a*e.g+(1-e.a)*t.g,s=e.a*e.b+(1-e.a)*t.b;return new Zs(i,o,s,1)}(cn(e.toColorString()),r);return dn.from(a)}return i}void 0===a&&(a=fn(e));const u=h+a*i,p=u+a*(o-i),g=u+a*(s-i),f=u+a*(n-i),m=-1===a?0:100-l,b=-1===a?l:100;function v(e,i){const o=t.get(e);if(i){const i=t.get(e+a*r),s=-1===a?i:o,n=-1===a?o:i,l=`linear-gradient(${d(s).toColorString()} ${m}%, ${d(n).toColorString()} ${b}%)`;return Fn.fromObject(s,l)}return d(o)}return{rest:v(u,!0),hover:v(p,!0),active:v(g,!1),focus:v(f,!0)}}function Vn(t,e,i,o,s,n,r,a){null==a&&(a=fn(e));const l=t.closestIndexOf(t.colorContrast(e,i));return{rest:t.get(l+a*o),hover:t.get(l+a*s),active:t.get(l+a*n),focus:t.get(l+a*r)}}function Sn(t,e,i,o,s,n,r){const a=t.closestIndexOf(e);return null==r&&(r=fn(e)),{rest:t.get(a+r*i),hover:t.get(a+r*o),active:t.get(a+r*s),focus:t.get(a+r*n)}}function Rn(t,e,i,o,s,n,r,a,l,c,h,d){return gn(e)?Sn(t,e,a,l,c,h,d):Sn(t,e,i,o,s,n,r)}var En;function On(t,e){return t.closestIndexOf((i=e,dn.create(i,i,i)));var i}function Ln(t,e,i){return t.get(On(t,e)+-1*i)}!function(t){t[t.LightMode=.98]="LightMode",t[t.DarkMode=.15]="DarkMode"}(En||(En={}));const{create:An}=wo;function zn(t){return wo.create({name:t,cssCustomPropertyName:null})}const Hn=An("direction").withDefault(Ze.ltr),Pn=An("disabled-opacity").withDefault(.3),Mn=An("base-height-multiplier").withDefault(8),Bn=An("base-horizontal-spacing-multiplier").withDefault(3),Nn=An("density").withDefault(0),jn=An("design-unit").withDefault(4),Un=An("control-corner-radius").withDefault(4),qn=An("layer-corner-radius").withDefault(8),_n=An("stroke-width").withDefault(1),Gn=An("focus-stroke-width").withDefault(2),Wn=An("body-font").withDefault("Segoe UI, sans-serif"),Kn=An("type-ramp-base-font-size").withDefault("14px"),Xn=An("type-ramp-base-line-height").withDefault("20px"),Yn=An("type-ramp-minus-1-font-size").withDefault("12px"),Qn=An("type-ramp-minus-1-line-height").withDefault("16px"),Zn=An("type-ramp-minus-2-font-size").withDefault("10px"),Jn=An("type-ramp-minus-2-line-height").withDefault("14px"),tr=An("type-ramp-plus-1-font-size").withDefault("16px"),er=An("type-ramp-plus-1-line-height").withDefault("22px"),ir=An("type-ramp-plus-2-font-size").withDefault("20px"),or=An("type-ramp-plus-2-line-height").withDefault("28px"),sr=An("type-ramp-plus-3-font-size").withDefault("24px"),nr=An("type-ramp-plus-3-line-height").withDefault("32px"),rr=An("type-ramp-plus-4-font-size").withDefault("28px"),ar=An("type-ramp-plus-4-line-height").withDefault("36px"),lr=An("type-ramp-plus-5-font-size").withDefault("32px"),cr=An("type-ramp-plus-5-line-height").withDefault("40px"),hr=An("type-ramp-plus-6-font-size").withDefault("40px"),dr=An("type-ramp-plus-6-line-height").withDefault("52px"),ur=An("base-layer-luminance").withDefault(En.LightMode),pr=zn("accent-fill-rest-delta").withDefault(0),gr=zn("accent-fill-hover-delta").withDefault(-2),fr=zn("accent-fill-active-delta").withDefault(-5),mr=zn("accent-fill-focus-delta").withDefault(0),br=zn("accent-foreground-rest-delta").withDefault(0),vr=zn("accent-foreground-hover-delta").withDefault(3),yr=zn("accent-foreground-active-delta").withDefault(-8),xr=zn("accent-foreground-focus-delta").withDefault(0),$r=zn("neutral-fill-rest-delta").withDefault(-1),wr=zn("neutral-fill-hover-delta").withDefault(1),kr=zn("neutral-fill-active-delta").withDefault(0),Cr=zn("neutral-fill-focus-delta").withDefault(0),Fr=zn("neutral-fill-input-rest-delta").withDefault(-1),Ir=zn("neutral-fill-input-hover-delta").withDefault(1),Tr=zn("neutral-fill-input-active-delta").withDefault(0),Dr=zn("neutral-fill-input-focus-delta").withDefault(-2),Vr=zn("neutral-fill-input-alt-rest-delta").withDefault(2),Sr=zn("neutral-fill-input-alt-hover-delta").withDefault(4),Rr=zn("neutral-fill-input-alt-active-delta").withDefault(6),Er=zn("neutral-fill-input-alt-focus-delta").withDefault(2),Or=zn("neutral-fill-layer-rest-delta").withDefault(-2),Lr=zn("neutral-fill-layer-hover-delta").withDefault(-3),Ar=zn("neutral-fill-layer-active-delta").withDefault(-3),zr=zn("neutral-fill-layer-alt-rest-delta").withDefault(-1),Hr=zn("neutral-fill-secondary-rest-delta").withDefault(3),Pr=zn("neutral-fill-secondary-hover-delta").withDefault(2),Mr=zn("neutral-fill-secondary-active-delta").withDefault(1),Br=zn("neutral-fill-secondary-focus-delta").withDefault(3),Nr=zn("neutral-fill-stealth-rest-delta").withDefault(0),jr=zn("neutral-fill-stealth-hover-delta").withDefault(3),Ur=zn("neutral-fill-stealth-active-delta").withDefault(2),qr=zn("neutral-fill-stealth-focus-delta").withDefault(0),_r=zn("neutral-fill-strong-rest-delta").withDefault(0),Gr=zn("neutral-fill-strong-hover-delta").withDefault(8),Wr=zn("neutral-fill-strong-active-delta").withDefault(-5),Kr=zn("neutral-fill-strong-focus-delta").withDefault(0),Xr=zn("neutral-stroke-rest-delta").withDefault(8),Yr=zn("neutral-stroke-hover-delta").withDefault(12),Qr=zn("neutral-stroke-active-delta").withDefault(6),Zr=zn("neutral-stroke-focus-delta").withDefault(8),Jr=zn("neutral-stroke-control-rest-delta").withDefault(3),ta=zn("neutral-stroke-control-hover-delta").withDefault(5),ea=zn("neutral-stroke-control-active-delta").withDefault(5),ia=zn("neutral-stroke-control-focus-delta").withDefault(5),oa=zn("neutral-stroke-divider-rest-delta").withDefault(4),sa=zn("neutral-stroke-layer-rest-delta").withDefault(3),na=zn("neutral-stroke-layer-hover-delta").withDefault(3),ra=zn("neutral-stroke-layer-active-delta").withDefault(3),aa=zn("neutral-stroke-strong-hover-delta").withDefault(0),la=zn("neutral-stroke-strong-active-delta").withDefault(0),ca=zn("neutral-stroke-strong-focus-delta").withDefault(0),ha=An("neutral-base-color").withDefault($n),da=zn("neutral-palette").withDefault(t=>bn.from(ha.getValueFor(t))),ua=An("accent-base-color").withDefault(kn),pa=zn("accent-palette").withDefault(t=>bn.from(ua.getValueFor(t))),ga=zn("neutral-layer-card-container-recipe").withDefault({evaluate:t=>Ln(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),fa=An("neutral-layer-card-container").withDefault(t=>ga.getValueFor(t).evaluate(t)),ma=zn("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+i)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),ba=An("neutral-layer-floating").withDefault(t=>ma.getValueFor(t).evaluate(t)),va=zn("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(On(t,e))}(da.getValueFor(t),ur.getValueFor(t))}),ya=An("neutral-layer-1").withDefault(t=>va.getValueFor(t).evaluate(t)),xa=zn("neutral-layer-2-recipe").withDefault({evaluate:t=>Ln(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),$a=An("neutral-layer-2").withDefault(t=>xa.getValueFor(t).evaluate(t)),wa=zn("neutral-layer-3-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+-1*i*2)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),ka=An("neutral-layer-3").withDefault(t=>wa.getValueFor(t).evaluate(t)),Ca=zn("neutral-layer-4-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+-1*i*3)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),Fa=An("neutral-layer-4").withDefault(t=>Ca.getValueFor(t).evaluate(t)),Ia=An("fill-color").withDefault(t=>ya.getValueFor(t));var Ta;!function(t){t[t.normal=4.5]="normal",t[t.large=3]="large"}(Ta||(Ta={}));const Da=zn("accent-fill-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c,h,d,u,p){return gn(e)?Vn(t,e,l,c,h,d,u,p):Vn(t,e,i,o,s,n,r,a)}(pa.getValueFor(t),e||Ia.getValueFor(t),5,pr.getValueFor(t),gr.getValueFor(t),fr.getValueFor(t),mr.getValueFor(t),void 0,8,pr.getValueFor(t),gr.getValueFor(t),fr.getValueFor(t),mr.getValueFor(t),void 0)}),Va=An("accent-fill-rest").withDefault(t=>Da.getValueFor(t).evaluate(t).rest),Sa=An("accent-fill-hover").withDefault(t=>Da.getValueFor(t).evaluate(t).hover),Ra=An("accent-fill-active").withDefault(t=>Da.getValueFor(t).evaluate(t).active),Ea=An("accent-fill-focus").withDefault(t=>Da.getValueFor(t).evaluate(t).focus),Oa=zn("foreground-on-accent-recipe").withDefault({evaluate:t=>Cn(Va.getValueFor(t),Sa.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t),Ta.normal)}),La=An("foreground-on-accent-rest").withDefault(t=>Oa.getValueFor(t).evaluate(t).rest),Aa=An("foreground-on-accent-hover").withDefault(t=>Oa.getValueFor(t).evaluate(t).hover),za=An("foreground-on-accent-active").withDefault(t=>Oa.getValueFor(t).evaluate(t).active),Ha=An("foreground-on-accent-focus").withDefault(t=>Oa.getValueFor(t).evaluate(t).focus),Pa=zn("accent-foreground-recipe").withDefault({evaluate:(t,e)=>Vn(pa.getValueFor(t),e||Ia.getValueFor(t),9.5,br.getValueFor(t),vr.getValueFor(t),yr.getValueFor(t),xr.getValueFor(t))}),Ma=An("accent-foreground-rest").withDefault(t=>Pa.getValueFor(t).evaluate(t).rest),Ba=An("accent-foreground-hover").withDefault(t=>Pa.getValueFor(t).evaluate(t).hover),Na=An("accent-foreground-active").withDefault(t=>Pa.getValueFor(t).evaluate(t).active),ja=An("accent-foreground-focus").withDefault(t=>Pa.getValueFor(t).evaluate(t).focus),Ua=zn("accent-stroke-control-recipe").withDefault({evaluate:(t,e)=>Dn(da.getValueFor(t),e||Ia.getValueFor(t),-3,-3,-3,-3,10,1,void 0,!0)}),qa=An("accent-stroke-control-rest").withDefault(t=>Ua.getValueFor(t).evaluate(t,Va.getValueFor(t)).rest),_a=An("accent-stroke-control-hover").withDefault(t=>Ua.getValueFor(t).evaluate(t,Sa.getValueFor(t)).hover),Ga=An("accent-stroke-control-active").withDefault(t=>Ua.getValueFor(t).evaluate(t,Ra.getValueFor(t)).active),Wa=An("accent-stroke-control-focus").withDefault(t=>Ua.getValueFor(t).evaluate(t,Ea.getValueFor(t)).focus),Ka=zn("neutral-fill-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t),kr.getValueFor(t),Cr.getValueFor(t),void 0,2,3,1,2,void 0)}),Xa=An("neutral-fill-rest").withDefault(t=>Ka.getValueFor(t).evaluate(t).rest),Ya=An("neutral-fill-hover").withDefault(t=>Ka.getValueFor(t).evaluate(t).hover),Qa=An("neutral-fill-active").withDefault(t=>Ka.getValueFor(t).evaluate(t).active),Za=An("neutral-fill-focus").withDefault(t=>Ka.getValueFor(t).evaluate(t).focus),Ja=zn("neutral-fill-input-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),Fr.getValueFor(t),Ir.getValueFor(t),Tr.getValueFor(t),Dr.getValueFor(t),void 0,2,3,1,0,void 0)}),tl=An("neutral-fill-input-rest").withDefault(t=>Ja.getValueFor(t).evaluate(t).rest),el=An("neutral-fill-input-hover").withDefault(t=>Ja.getValueFor(t).evaluate(t).hover),il=An("neutral-fill-input-active").withDefault(t=>Ja.getValueFor(t).evaluate(t).active),ol=An("neutral-fill-input-focus").withDefault(t=>Ja.getValueFor(t).evaluate(t).focus),sl=zn("neutral-fill-input-alt-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),Vr.getValueFor(t),Sr.getValueFor(t),Rr.getValueFor(t),Er.getValueFor(t),1,Vr.getValueFor(t),Vr.getValueFor(t)-Sr.getValueFor(t),Vr.getValueFor(t)-Rr.getValueFor(t),Er.getValueFor(t),1)}),nl=An("neutral-fill-input-alt-rest").withDefault(t=>sl.getValueFor(t).evaluate(t).rest),rl=An("neutral-fill-input-alt-hover").withDefault(t=>sl.getValueFor(t).evaluate(t).hover),al=An("neutral-fill-input-alt-active").withDefault(t=>sl.getValueFor(t).evaluate(t).active),ll=An("neutral-fill-input-alt-focus").withDefault(t=>sl.getValueFor(t).evaluate(t).focus),cl=zn("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Or.getValueFor(t),Lr.getValueFor(t),Ar.getValueFor(t),Or.getValueFor(t),1)}),hl=An("neutral-fill-layer-rest").withDefault(t=>cl.getValueFor(t).evaluate(t).rest),dl=An("neutral-fill-layer-hover").withDefault(t=>cl.getValueFor(t).evaluate(t).hover),ul=An("neutral-fill-layer-active").withDefault(t=>cl.getValueFor(t).evaluate(t).active),pl=zn("neutral-fill-layer-alt-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t))}),gl=An("neutral-fill-layer-alt-rest").withDefault(t=>pl.getValueFor(t).evaluate(t).rest),fl=zn("neutral-fill-secondary-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Hr.getValueFor(t),Pr.getValueFor(t),Mr.getValueFor(t),Br.getValueFor(t))}),ml=An("neutral-fill-secondary-rest").withDefault(t=>fl.getValueFor(t).evaluate(t).rest),bl=An("neutral-fill-secondary-hover").withDefault(t=>fl.getValueFor(t).evaluate(t).hover),vl=An("neutral-fill-secondary-active").withDefault(t=>fl.getValueFor(t).evaluate(t).active),yl=An("neutral-fill-secondary-focus").withDefault(t=>fl.getValueFor(t).evaluate(t).focus),xl=zn("neutral-fill-stealth-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),qr.getValueFor(t))}),$l=An("neutral-fill-stealth-rest").withDefault(t=>xl.getValueFor(t).evaluate(t).rest),wl=An("neutral-fill-stealth-hover").withDefault(t=>xl.getValueFor(t).evaluate(t).hover),kl=An("neutral-fill-stealth-active").withDefault(t=>xl.getValueFor(t).evaluate(t).active),Cl=An("neutral-fill-stealth-focus").withDefault(t=>xl.getValueFor(t).evaluate(t).focus),Fl=zn("neutral-fill-strong-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),4.5,_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t),Kr.getValueFor(t))}),Il=An("neutral-fill-strong-rest").withDefault(t=>Fl.getValueFor(t).evaluate(t).rest),Tl=An("neutral-fill-strong-hover").withDefault(t=>Fl.getValueFor(t).evaluate(t).hover),Dl=An("neutral-fill-strong-active").withDefault(t=>Fl.getValueFor(t).evaluate(t).active),Vl=An("neutral-fill-strong-focus").withDefault(t=>Fl.getValueFor(t).evaluate(t).focus),Sl=zn("neutral-foreground-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),16,0,-19,-30,0)}),Rl=An("neutral-foreground-rest").withDefault(t=>Sl.getValueFor(t).evaluate(t).rest),El=An("neutral-foreground-hover").withDefault(t=>Sl.getValueFor(t).evaluate(t).hover),Ol=An("neutral-foreground-active").withDefault(t=>Sl.getValueFor(t).evaluate(t).active),Ll=An("neutral-foreground-focus").withDefault(t=>Sl.getValueFor(t).evaluate(t).focus),Al=zn("neutral-foreground-hint-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.colorContrast(e,i)}(da.getValueFor(t),e||Ia.getValueFor(t),4.5)}),zl=An("neutral-foreground-hint").withDefault(t=>Al.getValueFor(t).evaluate(t)),Hl=zn("neutral-stroke-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Xr.getValueFor(t),Yr.getValueFor(t),Qr.getValueFor(t),Zr.getValueFor(t))}),Pl=An("neutral-stroke-rest").withDefault(t=>Hl.getValueFor(t).evaluate(t).rest),Ml=An("neutral-stroke-hover").withDefault(t=>Hl.getValueFor(t).evaluate(t).hover),Bl=An("neutral-stroke-active").withDefault(t=>Hl.getValueFor(t).evaluate(t).active),Nl=An("neutral-stroke-focus").withDefault(t=>Hl.getValueFor(t).evaluate(t).focus),jl=zn("neutral-stroke-control-recipe").withDefault({evaluate:(t,e)=>Dn(da.getValueFor(t),e||Ia.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),ia.getValueFor(t),5)}),Ul=An("neutral-stroke-control-rest").withDefault(t=>jl.getValueFor(t).evaluate(t).rest),ql=An("neutral-stroke-control-hover").withDefault(t=>jl.getValueFor(t).evaluate(t).hover),_l=An("neutral-stroke-control-active").withDefault(t=>jl.getValueFor(t).evaluate(t).active),Gl=An("neutral-stroke-control-focus").withDefault(t=>jl.getValueFor(t).evaluate(t).focus),Wl=zn("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+fn(e)*i)}(da.getValueFor(t),e||Ia.getValueFor(t),oa.getValueFor(t))}),Kl=An("neutral-stroke-divider-rest").withDefault(t=>Wl.getValueFor(t).evaluate(t)),Xl=zn("neutral-stroke-input-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a){const l=t.closestIndexOf(e),c=fn(e),h=l+c*i,d=h+c*(o-i),u=h+c*(s-i),p=h+c*(n-i),g=`calc(100% - ${a})`;function f(e,i){const o=t.get(e);if(i){const i=t.get(e+c*r),s=`linear-gradient(${o.toColorString()} ${g}, ${i.toColorString()} ${g}, ${i.toColorString()})`;return Fn.fromObject(o,s)}return o}return{rest:f(h,!0),hover:f(d,!0),active:f(u,!1),focus:f(p,!0)}}(da.getValueFor(t),e||Ia.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),ia.getValueFor(t),20,_n.getValueFor(t)+"px")}),Yl=An("neutral-stroke-input-rest").withDefault(t=>Xl.getValueFor(t).evaluate(t).rest),Ql=An("neutral-stroke-input-hover").withDefault(t=>Xl.getValueFor(t).evaluate(t).hover),Zl=An("neutral-stroke-input-active").withDefault(t=>Xl.getValueFor(t).evaluate(t).active),Jl=An("neutral-stroke-input-focus").withDefault(t=>Xl.getValueFor(t).evaluate(t).focus),tc=zn("neutral-stroke-layer-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),ra.getValueFor(t),sa.getValueFor(t))}),ec=An("neutral-stroke-layer-rest").withDefault(t=>tc.getValueFor(t).evaluate(t).rest),ic=An("neutral-stroke-layer-hover").withDefault(t=>tc.getValueFor(t).evaluate(t).hover),oc=An("neutral-stroke-layer-active").withDefault(t=>tc.getValueFor(t).evaluate(t).active),sc=zn("neutral-stroke-strong-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),5.5,0,aa.getValueFor(t),la.getValueFor(t),ca.getValueFor(t))}),nc=An("neutral-stroke-strong-rest").withDefault(t=>sc.getValueFor(t).evaluate(t).rest),rc=An("neutral-stroke-strong-hover").withDefault(t=>sc.getValueFor(t).evaluate(t).hover),ac=An("neutral-stroke-strong-active").withDefault(t=>sc.getValueFor(t).evaluate(t).active),lc=An("neutral-stroke-strong-focus").withDefault(t=>sc.getValueFor(t).evaluate(t).focus),cc=zn("focus-stroke-outer-recipe").withDefault({evaluate:t=>(da.getValueFor(t),gn(Ia.getValueFor(t))?yn:xn)}),hc=An("focus-stroke-outer").withDefault(t=>cc.getValueFor(t).evaluate(t)),dc=zn("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return pa.getValueFor(t),e=Ia.getValueFor(t),hc.getValueFor(t),gn(e)?xn:yn;var e}}),uc=An("focus-stroke-inner").withDefault(t=>dc.getValueFor(t).evaluate(t)),pc=zn("foreground-on-accent-large-recipe").withDefault({evaluate:t=>Cn(Va.getValueFor(t),Sa.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t),Ta.large)}),gc=An("foreground-on-accent-rest-large").withDefault(t=>pc.getValueFor(t).evaluate(t).rest),fc=An("foreground-on-accent-hover-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Sa.getValueFor(t)).hover),mc=An("foreground-on-accent-active-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Ra.getValueFor(t)).active),bc=An("foreground-on-accent-focus-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Ea.getValueFor(t)).focus),vc=An("neutral-fill-inverse-rest-delta").withDefault(0),yc=An("neutral-fill-inverse-hover-delta").withDefault(-3),xc=An("neutral-fill-inverse-active-delta").withDefault(7),$c=An("neutral-fill-inverse-focus-delta").withDefault(0);const wc=zn("neutral-fill-inverse-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=fn(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(da.getValueFor(t),e||Ia.getValueFor(t),vc.getValueFor(t),yc.getValueFor(t),xc.getValueFor(t),$c.getValueFor(t))}),kc=An("neutral-fill-inverse-rest").withDefault(t=>wc.getValueFor(t).evaluate(t).rest),Cc=An("neutral-fill-inverse-hover").withDefault(t=>wc.getValueFor(t).evaluate(t).hover),Fc=An("neutral-fill-inverse-active").withDefault(t=>wc.getValueFor(t).evaluate(t).active),Ic=An("neutral-fill-inverse-focus").withDefault(t=>wc.getValueFor(t).evaluate(t).focus),Tc=Un,Dc=qn,Vc=_n,Sc=Gn,Rc=vc,Ec=yc,Oc=xc,Lc=$c,Ac=Or,zc=_r,Hc=Gr,Pc=Wr,Mc=Kr,Bc=oa,Nc=ya,jc=$a,Uc=ka,qc=Fa,_c=La,Gc=gc,Wc=Kl,Kc=hl,Xc=kc,Yc=Cc,Qc=Fc,Zc=Ic,Jc=Il,th=Tl,eh=Dl,ih=Vl,oh=hc,sh=uc,nh=Pl,rh=Ml,ah=Bl,lh=Nl,ch=(t,e)=>Dt`
21
+ var Ro=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Eo=Ro.join(","),Oo="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Lo=function(t){return"INPUT"===t.tagName},Ao=function(t){return function(t){return Lo(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},zo=function(t,e){return!(e.disabled||function(t){return Lo(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Oo.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Oo.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},Ho=function(t,e){return!(!zo(t,e)||Ao(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},Po=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Oo.call(t,Eo)&&Ho(e,t)},Mo=Ro.concat("iframe").join(","),Bo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Oo.call(t,Mo)&&zo(e,t)};class No extends je{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>No.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),d.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss")}show(){this.hidden=!1}hide(){this.hidden=!0}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=C.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:Po(e)||No.isFocusableFastElement(e)&&No.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(No.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>Po(t))}}ne([ft({mode:"boolean"})],No.prototype,"modal",void 0),ne([ft({mode:"boolean"})],No.prototype,"hidden",void 0),ne([ft({attribute:"trap-focus",mode:"boolean"})],No.prototype,"trapFocus",void 0),ne([ft({attribute:"aria-describedby"})],No.prototype,"ariaDescribedby",void 0),ne([ft({attribute:"aria-labelledby"})],No.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],No.prototype,"ariaLabel",void 0);var jo,Uo;!function(t){t.separator="separator",t.presentation="presentation"}(jo||(jo={}));class qo extends je{constructor(){super(...arguments),this.role=jo.separator,this.orientation=We.horizontal}}ne([ft],qo.prototype,"role",void 0),ne([ft],qo.prototype,"orientation",void 0),function(t){t.next="next",t.previous="previous"}(Uo||(Uo={}));class _o extends je{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Uo.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"===e&&this.$emit("click",t),"Escape"===e&&this.blur()}}}ne([ft({mode:"boolean"})],_o.prototype,"disabled",void 0),ne([ft({attribute:"aria-hidden",converter:ut})],_o.prototype,"hiddenFromAT",void 0),ne([ft],_o.prototype,"direction",void 0);var Go;!function(t){t.menuitem="menuitem",t.menuitemcheckbox="menuitemcheckbox",t.menuitemradio="menuitemradio"}(Go||(Go={}));const Wo={[Go.menuitem]:"menuitem",[Go.menuitemcheckbox]:"menuitemcheckbox",[Go.menuitemradio]:"menuitemradio"};class Ko extends je{constructor(){super(...arguments),this.role=Go.menuitem,this.hasSubmenu=!1,this.currentDirection=Ze.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Go.menuitemcheckbox:this.checked=!this.checked;break;case Go.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Go.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=hi(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children)}}ne([ft({mode:"boolean"})],Ko.prototype,"disabled",void 0),ne([ft({mode:"boolean"})],Ko.prototype,"expanded",void 0),ne([T],Ko.prototype,"startColumnCount",void 0),ne([ft],Ko.prototype,"role",void 0),ne([ft({mode:"boolean"})],Ko.prototype,"checked",void 0),ne([T],Ko.prototype,"submenuRegion",void 0),ne([T],Ko.prototype,"hasSubmenu",void 0),ne([T],Ko.prototype,"currentDirection",void 0),ne([T],Ko.prototype,"submenu",void 0),_e(Ko,te);class Xo extends je{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Ke(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.setItems=()=>{const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const e=t.reduce((t,e)=>{const i=(o=e)instanceof Ko?o.role!==Go.menuitem&&null===o.querySelector("[slot=start]")||o.role===Go.menuitem&&null!==o.querySelector("[slot=start]")?1:o.role!==Go.menuitem&&null!==o.querySelector("[slot=start]")?2:0:1;var o;return t>i?t:i},0);t.forEach((t,i)=>{t.setAttribute("tabindex",0===i?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Ko&&(t.startColumnCount=e)})},this.resetItems=t=>{t.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.changeHandler=t=>{const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Go.menuitemradio&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Go.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Ke(t)&&Xo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&(this.menuItems=this.domChildren(),this.resetItems(t),this.setItems())}connectedCallback(){super.connectedCallback(),this.menuItems=this.domChildren(),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuItems=[],this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children)}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}Xo.focusableElementRoles=Wo,ne([T],Xo.prototype,"items",void 0);class Yo extends je{}class Qo extends(bi(Yo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Zo;!function(t){t.email="email",t.password="password",t.tel="tel",t.text="text",t.url="url"}(Zo||(Zo={}));class Jo extends Qo{constructor(){super(...arguments),this.type=Zo.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],Jo.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],Jo.prototype,"autofocus",void 0),ne([ft],Jo.prototype,"placeholder",void 0),ne([ft],Jo.prototype,"type",void 0),ne([ft],Jo.prototype,"list",void 0),ne([ft({converter:pt})],Jo.prototype,"maxlength",void 0),ne([ft({converter:pt})],Jo.prototype,"minlength",void 0),ne([ft],Jo.prototype,"pattern",void 0),ne([ft({converter:pt})],Jo.prototype,"size",void 0),ne([ft({mode:"boolean"})],Jo.prototype,"spellcheck",void 0),ne([T],Jo.prototype,"defaultSlottedNodes",void 0);class ts{}_e(ts,ai),_e(Jo,te,ts);class es extends je{}class is extends(bi(es)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class os extends is{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}ne([ft({attribute:"readonly",mode:"boolean"})],os.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],os.prototype,"autofocus",void 0),ne([ft({attribute:"hide-step",mode:"boolean"})],os.prototype,"hideStep",void 0),ne([ft],os.prototype,"placeholder",void 0),ne([ft],os.prototype,"list",void 0),ne([ft({converter:pt})],os.prototype,"maxlength",void 0),ne([ft({converter:pt})],os.prototype,"minlength",void 0),ne([ft({converter:pt})],os.prototype,"size",void 0),ne([ft({converter:pt})],os.prototype,"step",void 0),ne([ft({converter:pt})],os.prototype,"max",void 0),ne([ft({converter:pt})],os.prototype,"min",void 0),ne([T],os.prototype,"defaultSlottedNodes",void 0),_e(os,te,ts);class ss extends je{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}ne([ft({converter:pt})],ss.prototype,"value",void 0),ne([ft({converter:pt})],ss.prototype,"min",void 0),ne([ft({converter:pt})],ss.prototype,"max",void 0),ne([ft({mode:"boolean"})],ss.prototype,"paused",void 0),ne([T],ss.prototype,"percentComplete",void 0);class ns extends je{constructor(){super(...arguments),this.orientation=We.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in Qe&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Ze.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===Ze.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("value")===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=hi(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ne([ft({attribute:"readonly",mode:"boolean"})],ns.prototype,"readOnly",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],ns.prototype,"disabled",void 0),ne([ft],ns.prototype,"name",void 0),ne([ft],ns.prototype,"value",void 0),ne([ft],ns.prototype,"orientation",void 0),ne([T],ns.prototype,"childItems",void 0),ne([T],ns.prototype,"slottedRadioButtons",void 0);class rs extends je{}class as extends(vi(rs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ls extends as{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}ne([ft({attribute:"readonly",mode:"boolean"})],ls.prototype,"readOnly",void 0),ne([T],ls.prototype,"name",void 0),ne([T],ls.prototype,"defaultSlottedNodes",void 0);class cs extends je{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&d.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e<=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}ne([ft({converter:pt})],cs.prototype,"speed",void 0),ne([ft],cs.prototype,"duration",void 0),ne([ft],cs.prototype,"easing",void 0),ne([ft({attribute:"aria-hidden",converter:ut})],cs.prototype,"flippersHiddenFromAT",void 0),ne([T],cs.prototype,"scrolling",void 0),ne([T],cs.prototype,"scrollItems",void 0),ne([ft({attribute:"view"})],cs.prototype,"view",void 0);class hs extends je{}class ds extends(bi(hs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class us extends ds{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],us.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],us.prototype,"autofocus",void 0),ne([ft],us.prototype,"placeholder",void 0),ne([ft],us.prototype,"list",void 0),ne([ft({converter:pt})],us.prototype,"maxlength",void 0),ne([ft({converter:pt})],us.prototype,"minlength",void 0),ne([ft],us.prototype,"pattern",void 0),ne([ft({converter:pt})],us.prototype,"size",void 0),ne([ft({mode:"boolean"})],us.prototype,"spellcheck",void 0),ne([T],us.prototype,"defaultSlottedNodes",void 0);class ps{}_e(ps,ai),_e(us,te,ps);class gs extends Ui{}class fs extends(bi(gs)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class ms extends fs{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.position=Gi.below,this.maxHeight=0,this.displayValue=""}openChanged(){if(this.open)return this.ariaControls=this.listbox.id,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void(this.indexWhenOpened=this.selectedIndex);this.ariaControls="",this.ariaExpanded="false"}get value(){return C.track(this,"value"),this._value}set value(t){const e=""+this._value;if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex(e=>e.value===t),i=this.options[this.selectedIndex],o=this.options[e],s=i?i.value:null,n=o?o.value:null;-1!==e&&s===n||(t="",this.selectedIndex=e),this.firstSelectedOption&&(t=this.firstSelectedOption.value)}e!==t&&(this._value=t,super.valueChanged(e,t),C.notify(this,"value"))}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Gi.above:Gi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Gi.above?~~t.top:~~e}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),this.setDefaultSelectedOption(),this.value=this.firstSelectedOption.value}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.setProxyOptions(),this.updateValue()}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.appendChild(e)}))}keydownHandler(t){super.keydownHandler(t);switch(t.key||t.key.charCodeAt(0)){case" ":this.typeaheadExpired&&(t.preventDefault(),this.open=!this.open);break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;t.preventDefault(),this.open=!1}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!0}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.listbox.id||(this.listbox.id=ii("listbox-"))}}ne([ft({attribute:"open",mode:"boolean"})],ms.prototype,"open",void 0),ne([ft({attribute:"position"})],ms.prototype,"positionAttribute",void 0),ne([T],ms.prototype,"position",void 0),ne([T],ms.prototype,"maxHeight",void 0),ne([T],ms.prototype,"displayValue",void 0);class bs{}ne([T],bs.prototype,"ariaControls",void 0),_e(bs,qi),_e(ms,te,bs);class vs extends je{constructor(){super(...arguments),this.shape="rect"}}ne([ft],vs.prototype,"fill",void 0),ne([ft],vs.prototype,"shape",void 0),ne([ft],vs.prototype,"pattern",void 0),ne([ft({mode:"boolean"})],vs.prototype,"shimmer",void 0);function ys(t,e,i,o){let s=ti(0,1,(t-e)/(i-e));return o===Ze.rtl&&(s=1-s),s}const xs={min:0,max:0,direction:Ze.ltr,orientation:We.horizontal,disabled:!1};class $s extends je{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Ze.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||Ze.ltr,this.sliderOrientation=s||We.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=xs.direction||Ze.ltr,this.sliderOrientation=xs.orientation||We.horizontal,this.sliderMaxPosition=xs.max,this.sliderMinPosition=xs.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:Ze.ltr,e=ys(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===We.horizontal?t===Ze.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=C.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}ne([T],$s.prototype,"positionStyle",void 0),ne([ft],$s.prototype,"position",void 0),ne([ft({attribute:"hide-mark",mode:"boolean"})],$s.prototype,"hideMark",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],$s.prototype,"disabled",void 0),ne([T],$s.prototype,"sliderOrientation",void 0),ne([T],$s.prototype,"sliderMinPosition",void 0),ne([T],$s.prototype,"sliderMaxPosition",void 0),ne([T],$s.prototype,"sliderDirection",void 0);class ws extends je{}class ks extends(bi(ws)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Cs;!function(t){t.singleValue="single-value"}(Cs||(Cs={}));class Fs extends ks{constructor(){super(...arguments),this.direction=Ze.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=We.horizontal,this.mode=Cs.singleValue,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown),this.thumb[e]("touchstart",this.handleThumbMouseDown),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.preventDefault(),t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),window[e]("touchmove",this.handleMouseMove),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===We.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=ys(t,this.orientation===We.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===We.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===We.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=hi(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=ys(Number(this.value),Number(this.min),Number(this.max),t),i=Math.round(100*(1-e));this.orientation===We.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}ne([ft({attribute:"readonly",mode:"boolean"})],Fs.prototype,"readOnly",void 0),ne([T],Fs.prototype,"direction",void 0),ne([T],Fs.prototype,"isDragging",void 0),ne([T],Fs.prototype,"position",void 0),ne([T],Fs.prototype,"trackWidth",void 0),ne([T],Fs.prototype,"trackMinWidth",void 0),ne([T],Fs.prototype,"trackHeight",void 0),ne([T],Fs.prototype,"trackLeft",void 0),ne([T],Fs.prototype,"trackMinHeight",void 0),ne([T],Fs.prototype,"valueTextFormatter",void 0),ne([ft({converter:pt})],Fs.prototype,"min",void 0),ne([ft({converter:pt})],Fs.prototype,"max",void 0),ne([ft({converter:pt})],Fs.prototype,"step",void 0),ne([ft],Fs.prototype,"orientation",void 0),ne([ft],Fs.prototype,"mode",void 0);class Is extends je{}class Ts extends(vi(Is)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ds extends Ts{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}ne([ft({attribute:"readonly",mode:"boolean"})],Ds.prototype,"readOnly",void 0),ne([T],Ds.prototype,"defaultSlottedNodes",void 0);class Vs extends je{}class Ss extends je{}ne([ft({mode:"boolean"})],Ss.prototype,"disabled",void 0);var Rs,Es;!function(t){t.vertical="vertical",t.horizontal="horizontal"}(Rs||(Rs={}));class Os extends je{constructor(){super(...arguments),this.orientation=Rs.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],o=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?"tab-"+(i+1):t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof o?"panel-"+(i+1):o),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof o?"panel-"+(e+1):o),t.setAttribute("aria-labelledby","string"!=typeof i?"tab-"+(e+1):i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>t.getAttribute("id"))}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id"))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Rs.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Je(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}ne([ft],Os.prototype,"orientation",void 0),ne([ft],Os.prototype,"activeid",void 0),ne([T],Os.prototype,"tabs",void 0),ne([T],Os.prototype,"tabpanels",void 0),ne([ft({mode:"boolean"})],Os.prototype,"activeindicator",void 0),ne([T],Os.prototype,"activeIndicatorRef",void 0),ne([T],Os.prototype,"showActiveIndicator",void 0),_e(Os,te);class Ls extends je{}class As extends(bi(Ls)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(Es||(Es={}));class zs extends As{constructor(){super(...arguments),this.resize=Es.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}handleChange(){this.$emit("change")}}ne([ft({mode:"boolean"})],zs.prototype,"readOnly",void 0),ne([ft],zs.prototype,"resize",void 0),ne([ft({mode:"boolean"})],zs.prototype,"autofocus",void 0),ne([ft({attribute:"form"})],zs.prototype,"formId",void 0),ne([ft],zs.prototype,"list",void 0),ne([ft({converter:pt})],zs.prototype,"maxlength",void 0),ne([ft({converter:pt})],zs.prototype,"minlength",void 0),ne([ft],zs.prototype,"name",void 0),ne([ft],zs.prototype,"placeholder",void 0),ne([ft({converter:pt,mode:"fromView"})],zs.prototype,"cols",void 0),ne([ft({converter:pt,mode:"fromView"})],zs.prototype,"rows",void 0),ne([ft({mode:"boolean"})],zs.prototype,"spellcheck",void 0),ne([T],zs.prototype,"defaultSlottedNodes",void 0),_e(zs,ts);const Hs=Object.freeze({[Qe.ArrowUp]:{[We.vertical]:-1},[Qe.ArrowDown]:{[We.vertical]:1},[Qe.ArrowLeft]:{[We.horizontal]:{[Ze.ltr]:-1,[Ze.rtl]:1}},[Qe.ArrowRight]:{[We.horizontal]:{[Ze.ltr]:1,[Ze.rtl]:-1}}});class Ps extends je{constructor(){super(...arguments),this._activeIndex=0,this.direction=Ze.ltr,this.orientation=We.horizontal}get activeIndex(){return C.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=ti(0,this.focusableElements.length-1,t),C.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=hi(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=Hs[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=Hs[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in Qe)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(Ps.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Bo(t));return Bo(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Ps.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}ne([T],Ps.prototype,"direction",void 0),ne([ft],Ps.prototype,"orientation",void 0),ne([T],Ps.prototype,"slottedItems",void 0),ne([T],Ps.prototype,"slottedLabel",void 0);class Ms{}ne([ft({attribute:"aria-labelledby"})],Ms.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],Ms.prototype,"ariaLabel",void 0),_e(Ms,ai),_e(Ps,te,Ms);var Bs;!function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left",t.start="start",t.end="end"}(Bs||(Bs={}));class Ns extends je{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Ze.ltr,this.delayTimer=null,this.isAnchorHoveredFocused=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleAnchorMouseOver=t=>{this.startHoverTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.handleAnchorFocusIn=t=>{this.startHoverTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.startHoverTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.delayTimer&&(this.delayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearDelayTimer=()=>{null!==this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=hi(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),d.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&this.updateLayout()}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startHoverTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateLayout(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.position){case Bs.top:case Bs.bottom:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Bs.right:case Bs.left:case Bs.start:case Bs.end:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}ne([ft({mode:"boolean"})],Ns.prototype,"visible",void 0),ne([ft],Ns.prototype,"anchor",void 0),ne([ft],Ns.prototype,"delay",void 0),ne([ft],Ns.prototype,"position",void 0),ne([ft({attribute:"auto-update-mode"})],Ns.prototype,"autoUpdateMode",void 0),ne([ft({attribute:"horizontal-viewport-lock"})],Ns.prototype,"horizontalViewportLock",void 0),ne([ft({attribute:"vertical-viewport-lock"})],Ns.prototype,"verticalViewportLock",void 0),ne([T],Ns.prototype,"anchorElement",void 0),ne([T],Ns.prototype,"viewportElement",void 0),ne([T],Ns.prototype,"verticalPositioningMode",void 0),ne([T],Ns.prototype,"horizontalPositioningMode",void 0),ne([T],Ns.prototype,"horizontalInset",void 0),ne([T],Ns.prototype,"verticalInset",void 0),ne([T],Ns.prototype,"horizontalScaling",void 0),ne([T],Ns.prototype,"verticalScaling",void 0),ne([T],Ns.prototype,"verticalDefaultPosition",void 0),ne([T],Ns.prototype,"horizontalDefaultPosition",void 0),ne([T],Ns.prototype,"tooltipVisible",void 0),ne([T],Ns.prototype,"currentDirection",void 0);function js(t){return Ke(t)&&"treeitem"===t.getAttribute("role")}class Us extends je{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.handleExpandCollapseButtonClick=t=>{this.disabled||(t.preventDefault(),this.setExpanded(!this.expanded))},this.handleClick=t=>{if(!t.defaultPrevented){return t.composedPath().find(t=>t instanceof HTMLElement&&js(t))===this&&this.handleSelected(),!0}},this.isNestedItem=()=>js(this.parentElement)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{js(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>js(t));return t?t.length:0}handleSelected(t){(null==t?void 0:t.defaultPrevented)||(null==t||t.preventDefault(),this.disabled||this.$emit("selected-change",t))}setExpanded(t){this.expanded=t,this.$emit("expanded-change",this)}}ne([ft({mode:"boolean"})],Us.prototype,"expanded",void 0),ne([ft({mode:"boolean"})],Us.prototype,"selected",void 0),ne([ft({mode:"boolean"})],Us.prototype,"disabled",void 0),ne([T],Us.prototype,"focusable",void 0),ne([T],Us.prototype,"childItems",void 0),ne([T],Us.prototype,"items",void 0),ne([T],Us.prototype,"nested",void 0),ne([T],Us.prototype,"renderCollapsedChildren",void 0),_e(Us,te);class qs extends je{constructor(){super(...arguments),this.handleBlur=t=>{const{relatedTarget:e,target:i}=t;i instanceof HTMLElement&&(null===e||!this.contains(e))&&this.setAttribute("tabindex","0")},this.handleFocus=t=>{const{relatedTarget:e,target:i}=t;if(i instanceof HTMLElement&&(null===e||!this.contains(e))){const t=this;i===this&&this.currentFocused instanceof Us&&(Us.focusItem(this.currentFocused),this.currentFocused.setAttribute("tabindex","0")),t.setAttribute("tabindex","-1")}},this.handleKeyDown=t=>{if(!this.treeItems)return!0;switch(t.key){case"Home":this.treeItems&&this.treeItems.length&&(Us.focusItem(this.treeItems[0]),this.treeItems[0].setAttribute("tabindex","0"));break;case"End":this.treeItems&&this.treeItems.length&&(Us.focusItem(this.treeItems[this.treeItems.length-1]),this.treeItems[this.treeItems.length-1].setAttribute("tabindex","0"));break;case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Us&&e.childItemLength()>0&&(e.expanded=!1)}break;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Us&&e.childItemLength()>0&&(e.expanded=!0)}break;case"ArrowDown":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target);break;case"ArrowUp":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target);break;case"Enter":this.handleSelected(t.target);break;default:return!0}},this.setItems=()=>{let t=this.treeItems.findIndex(this.isSelectedElement);-1===t&&(t=this.treeItems.findIndex(this.isFocusableElement));for(let e=0;e<this.treeItems.length;e++)e===t&&(this.treeItems[e].setAttribute("tabindex","0"),this.currentFocused=this.treeItems[e]),this.treeItems[e].addEventListener("selected-change",this.handleItemSelected)},this.resetItems=()=>{for(let t=0;t<this.treeItems.length;t++)this.treeItems[t].removeEventListener("selected-change",this.handleItemSelected)},this.handleItemSelected=t=>{const e=t.target;e!==this.currentSelected&&this.handleSelected(e)},this.isFocusableElement=t=>js(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(t,e){this.$fastController.isConnected&&(this.resetItems(),this.treeItems=this.getVisibleNodes(),this.setItems(),this.checkForNestedItems()&&this.slottedTreeItems.forEach(t=>{js(t)&&(t.nested=!0)}))}checkForNestedItems(){return this.slottedTreeItems.some(t=>js(t)&&t.querySelector("[role='treeitem']"))}connectedCallback(){super.connectedCallback(),this.treeItems=this.getVisibleNodes(),d.queueUpdate(()=>{const t=this.treeView.querySelector("[aria-selected='true']");t&&(this.currentSelected=t)})}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i.indexOf(e),s=i[o];(t<0&&o>0||t>0&&o<i.length-1)&&s.setAttribute("tabindex","-1");const n=i[i.indexOf(e)+t];Ke(n)&&(Us.focusItem(n),n.setAttribute("tabindex","0"),this.currentFocused=n)}handleSelected(t){this.currentSelected!==t&&(t.setAttribute("tabindex","0"),this.currentSelected instanceof Us&&this.currentFocused&&(t.disabled||(this.currentSelected.selected=!1),this.currentFocused.setAttribute("tabindex","-1")),this.currentSelected||this.slottedTreeItems.forEach(t=>{t instanceof Us&&t.setAttribute("tabindex","-1")}),t.disabled||(t.selected=!0,this.currentSelected=t),this.currentFocused=t)}getVisibleNodes(){return function(t,e){if(!t||!e||!Ke(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}function _s(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function Gs(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Ws(t,e,i){return isNaN(t)?e:e+t*(i-e)}function Ks(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function Xs(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}ne([ft({attribute:"render-collapsed-nodes"})],qs.prototype,"renderCollapsedNodes",void 0),ne([T],qs.prototype,"currentSelected",void 0),ne([T],qs.prototype,"nested",void 0),ne([T],qs.prototype,"slottedTreeItems",void 0);class Ys{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new Ys(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new Ys(Xs(this.h,t),Xs(this.s,t),Xs(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Qs{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Qs(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Qs(Xs(this.l,t),Xs(this.a,t),Xs(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Qs.epsilon=216/24389,Qs.kappa=24389/27;class Zs{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Zs(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Ws(this.r,0,255))},${Math.round(Ws(this.g,0,255))},${Math.round(Ws(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Ws(this.r,0,255))},${Math.round(Ws(this.g,0,255))},${Math.round(Ws(this.b,0,255))},${_s(this.a,0,1)})`}roundToPrecision(t){return new Zs(Xs(this.r,t),Xs(this.g,t),Xs(this.b,t),Xs(this.a,t))}clamp(){return new Zs(_s(this.r,0,1),_s(this.g,0,1),_s(this.b,0,1),_s(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(_s(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Ws(t,0,255))}}class Js{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new Js(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new Js(Xs(this.x,t),Xs(this.y,t),Xs(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function tn(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return function(t){return.2126*t.r+.7152*t.g+.0722*t.b}(new Zs(e(t.r),e(t.g),e(t.b),1))}function en(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new Ys(s,r,n)}function on(t){return function(t){function e(t){return t>Qs.epsilon?Math.pow(t,1/3):(Qs.kappa*t+16)/116}const i=e(t.x/Js.whitePoint.x),o=e(t.y/Js.whitePoint.y),s=e(t.z/Js.whitePoint.z);return new Qs(116*o-16,500*(i-o),200*(o-s))}(function(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new Js(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}(t))}function sn(t,e=1){return function(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Zs(o,s,n,e)}(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Qs.epsilon?s:(116*i-16)/Qs.kappa;let l=0;l=t.l>Qs.epsilon*Qs.kappa?n:t.l/Qs.kappa;let c=0;return c=r>Qs.epsilon?r:(116*o-16)/Qs.kappa,a=Js.whitePoint.x*a,l=Js.whitePoint.y*l,c=Js.whitePoint.z*c,new Js(a,l,c)}(t),e)}var nn,rn;function an(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Zs(Ks(t,e.r,i.r),Ks(t,e.g,i.g),Ks(t,e.b,i.b),Ks(t,e.a,i.a))}Js.whitePoint=new Js(.95047,1,1.08883),function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(nn||(nn={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(rn||(rn={}));const ln=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function cn(t){const e=ln.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new Zs(Gs((16711680&o)>>>16,0,255),Gs((65280&o)>>>8,0,255),Gs(255&o,0,255),1)}function hn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const dn=Object.freeze({create:(t,e,i)=>new un(t,e,i),from:t=>new un(t.r,t.g,t.b)});class un extends Zs{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=hn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=tn(this)}static fromObject(t){return new un(t.r,t.g,t.b)}}const pn=(-.1+Math.sqrt(.21))/2;function gn(t){return t.relativeLuminance<=pn}function fn(t){return gn(t)?-1:1}const mn={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};const bn=Object.freeze({create:function(t,e,i){return"number"==typeof t?bn.from(dn.create(t,e,i)):bn.from(t)},from:function(t,e){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?vn.from(t,e):vn.from(dn.create(t.r,t.g,t.b),e)}});class vn{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=fn(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>hn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[_s(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static saturationBump(t,e){const i=en(t).s,o=en(e);if(o.s<i){return function(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Zs(n+s,r+s,a+s,e)}(new Ys(o.h,i,o.l))}return e}static ramp(t){const e=t/100;return e>.5?(e-.5)/.5:2*e}static createHighResolutionPalette(t){const e=[],i=on(Zs.fromObject(t).roundToPrecision(4)),o=sn(new Qs(0,i.a,i.b)).clamp().roundToPrecision(4),s=sn(new Qs(50,i.a,i.b)).clamp().roundToPrecision(4),n=sn(new Qs(100,i.a,i.b)).clamp().roundToPrecision(4),r=new Zs(0,0,0),a=new Zs(1,1,1),l=n.equalValue(a)?0:14,c=o.equalValue(r)?0:14;for(let t=100+l;t>=0-c;t-=.5){let i;if(t<0){i=an(t/c+1,r,o)}else if(t<=50)i=an(vn.ramp(t),o,s);else if(t<=100)i=an(vn.ramp(t),s,n);else{i=an((t-100)/l,n,a)}i=vn.saturationBump(s,i).roundToPrecision(4),e.push(dn.from(i))}return new vn(t,e)}static adjustEnd(t,e,i,o){const s=-1===o?e.swatches:e.reversedSwatches,n=t=>{const i=e.closestIndexOf(t);return 1===o?e.lastIndex-i:i};1===o&&i.reverse();const r=t(i[i.length-2]);if(Xs(hn(i[i.length-1],i[i.length-2]),2)<r){i.pop();const t=n(e.colorContrast(s[e.lastIndex],r,void 0,o))-n(i[i.length-2]);let a=1;for(let o=i.length-t-1;o<i.length;o++){const t=n(i[o]),r=o===i.length-1?e.lastIndex:t+a;i[o]=s[r],a++}}1===o&&i.reverse()}static createColorPaletteByContrast(t,e){const i=vn.createHighResolutionPalette(t),o=t=>Xs(e.stepContrast+e.stepContrast*(1-t.relativeLuminance)*e.stepContrastRamp,2),s=[];let n=e.preserveSource?t:i.swatches[0];s.push(n);do{const t=o(n);n=i.colorContrast(n,t,void 0,1),s.push(n)}while(n.relativeLuminance>0);if(e.preserveSource){n=t;do{const t=o(n);n=i.colorContrast(n,t,void 0,-1),s.unshift(n)}while(n.relativeLuminance<1)}return this.adjustEnd(o,i,s,-1),e.preserveSource&&this.adjustEnd(o,i,s,1),s}static from(t,e){const i=void 0===e?mn:Object.assign(Object.assign({},mn),e);return new vn(t,Object.freeze(vn.createColorPaletteByContrast(t,i)))}}const yn=dn.create(1,1,1),xn=dn.create(0,0,0),$n=dn.create(.5,.5,.5),wn=cn("#0078D4"),kn=dn.create(wn.r,wn.g,wn.b);function Cn(t,e,i,o,s){const n=t=>t.contrast(yn)>=s?yn:xn,r=n(t),a=n(e);return{rest:r,hover:a,active:r.relativeLuminance===a.relativeLuminance?r:n(i),focus:n(o)}}class Fn{constructor(t,e,i,o){this.toColorString=()=>this.cssGradient,this.contrast=hn.bind(null,this),this.createCSS=this.toColorString,this.color=new Zs(t,e,i),this.cssGradient=o,this.relativeLuminance=tn(this.color),this.r=t,this.g=e,this.b=i}static fromObject(t,e){return new Fn(t.r,t.g,t.b,e)}}const In=new Zs(0,0,0),Tn=new Zs(1,1,1);function Dn(t,e,i,o,s,n,r,a,l=10,c=!1){const h=t.closestIndexOf(e);function d(i){if(c){const o=t.closestIndexOf(e),s=t.get(o),n=i.relativeLuminance<e.relativeLuminance?In:Tn,r=function(t,e,i){const o=((t.r-e.r)/(i.r-e.r)+(t.g-e.g)/(i.g-e.g)+(t.b-e.b)/(i.b-e.b))/3;return new Zs(i.r,i.g,i.b,o)}(cn(i.toColorString()),cn(s.toColorString()),n).roundToPrecision(2),a=function(t,e){if(e.a>=1)return e;if(e.a<=0)return new Zs(t.r,t.g,t.b,1);const i=e.a*e.r+(1-e.a)*t.r,o=e.a*e.g+(1-e.a)*t.g,s=e.a*e.b+(1-e.a)*t.b;return new Zs(i,o,s,1)}(cn(e.toColorString()),r);return dn.from(a)}return i}void 0===a&&(a=fn(e));const u=h+a*i,p=u+a*(o-i),g=u+a*(s-i),f=u+a*(n-i),m=-1===a?0:100-l,b=-1===a?l:100;function v(e,i){const o=t.get(e);if(i){const i=t.get(e+a*r),s=-1===a?i:o,n=-1===a?o:i,l=`linear-gradient(${d(s).toColorString()} ${m}%, ${d(n).toColorString()} ${b}%)`;return Fn.fromObject(s,l)}return d(o)}return{rest:v(u,!0),hover:v(p,!0),active:v(g,!1),focus:v(f,!0)}}function Vn(t,e,i,o,s,n,r,a){null==a&&(a=fn(e));const l=t.closestIndexOf(t.colorContrast(e,i));return{rest:t.get(l+a*o),hover:t.get(l+a*s),active:t.get(l+a*n),focus:t.get(l+a*r)}}function Sn(t,e,i,o,s,n,r){const a=t.closestIndexOf(e);return null==r&&(r=fn(e)),{rest:t.get(a+r*i),hover:t.get(a+r*o),active:t.get(a+r*s),focus:t.get(a+r*n)}}function Rn(t,e,i,o,s,n,r,a,l,c,h,d){return gn(e)?Sn(t,e,a,l,c,h,d):Sn(t,e,i,o,s,n,r)}var En;function On(t,e){return t.closestIndexOf((i=e,dn.create(i,i,i)));var i}function Ln(t,e,i){return t.get(On(t,e)+-1*i)}!function(t){t[t.LightMode=.98]="LightMode",t[t.DarkMode=.15]="DarkMode"}(En||(En={}));const{create:An}=wo;function zn(t){return wo.create({name:t,cssCustomPropertyName:null})}const Hn=An("direction").withDefault(Ze.ltr),Pn=An("disabled-opacity").withDefault(.3),Mn=An("base-height-multiplier").withDefault(8),Bn=An("base-horizontal-spacing-multiplier").withDefault(3),Nn=An("density").withDefault(0),jn=An("design-unit").withDefault(4),Un=An("control-corner-radius").withDefault(4),qn=An("layer-corner-radius").withDefault(8),_n=An("stroke-width").withDefault(1),Gn=An("focus-stroke-width").withDefault(2),Wn=An("body-font").withDefault("Segoe UI, sans-serif"),Kn=An("type-ramp-base-font-size").withDefault("14px"),Xn=An("type-ramp-base-line-height").withDefault("20px"),Yn=An("type-ramp-minus-1-font-size").withDefault("12px"),Qn=An("type-ramp-minus-1-line-height").withDefault("16px"),Zn=An("type-ramp-minus-2-font-size").withDefault("10px"),Jn=An("type-ramp-minus-2-line-height").withDefault("14px"),tr=An("type-ramp-plus-1-font-size").withDefault("16px"),er=An("type-ramp-plus-1-line-height").withDefault("22px"),ir=An("type-ramp-plus-2-font-size").withDefault("20px"),or=An("type-ramp-plus-2-line-height").withDefault("26px"),sr=An("type-ramp-plus-3-font-size").withDefault("24px"),nr=An("type-ramp-plus-3-line-height").withDefault("32px"),rr=An("type-ramp-plus-4-font-size").withDefault("28px"),ar=An("type-ramp-plus-4-line-height").withDefault("36px"),lr=An("type-ramp-plus-5-font-size").withDefault("32px"),cr=An("type-ramp-plus-5-line-height").withDefault("40px"),hr=An("type-ramp-plus-6-font-size").withDefault("40px"),dr=An("type-ramp-plus-6-line-height").withDefault("52px"),ur=An("base-layer-luminance").withDefault(En.LightMode),pr=zn("accent-fill-rest-delta").withDefault(0),gr=zn("accent-fill-hover-delta").withDefault(-2),fr=zn("accent-fill-active-delta").withDefault(-5),mr=zn("accent-fill-focus-delta").withDefault(0),br=zn("accent-foreground-rest-delta").withDefault(0),vr=zn("accent-foreground-hover-delta").withDefault(3),yr=zn("accent-foreground-active-delta").withDefault(-8),xr=zn("accent-foreground-focus-delta").withDefault(0),$r=zn("neutral-fill-rest-delta").withDefault(-1),wr=zn("neutral-fill-hover-delta").withDefault(1),kr=zn("neutral-fill-active-delta").withDefault(0),Cr=zn("neutral-fill-focus-delta").withDefault(0),Fr=zn("neutral-fill-input-rest-delta").withDefault(-1),Ir=zn("neutral-fill-input-hover-delta").withDefault(1),Tr=zn("neutral-fill-input-active-delta").withDefault(0),Dr=zn("neutral-fill-input-focus-delta").withDefault(-2),Vr=zn("neutral-fill-input-alt-rest-delta").withDefault(2),Sr=zn("neutral-fill-input-alt-hover-delta").withDefault(4),Rr=zn("neutral-fill-input-alt-active-delta").withDefault(6),Er=zn("neutral-fill-input-alt-focus-delta").withDefault(2),Or=zn("neutral-fill-layer-rest-delta").withDefault(-2),Lr=zn("neutral-fill-layer-hover-delta").withDefault(-3),Ar=zn("neutral-fill-layer-active-delta").withDefault(-3),zr=zn("neutral-fill-layer-alt-rest-delta").withDefault(-1),Hr=zn("neutral-fill-secondary-rest-delta").withDefault(3),Pr=zn("neutral-fill-secondary-hover-delta").withDefault(2),Mr=zn("neutral-fill-secondary-active-delta").withDefault(1),Br=zn("neutral-fill-secondary-focus-delta").withDefault(3),Nr=zn("neutral-fill-stealth-rest-delta").withDefault(0),jr=zn("neutral-fill-stealth-hover-delta").withDefault(3),Ur=zn("neutral-fill-stealth-active-delta").withDefault(2),qr=zn("neutral-fill-stealth-focus-delta").withDefault(0),_r=zn("neutral-fill-strong-rest-delta").withDefault(0),Gr=zn("neutral-fill-strong-hover-delta").withDefault(8),Wr=zn("neutral-fill-strong-active-delta").withDefault(-5),Kr=zn("neutral-fill-strong-focus-delta").withDefault(0),Xr=zn("neutral-stroke-rest-delta").withDefault(8),Yr=zn("neutral-stroke-hover-delta").withDefault(12),Qr=zn("neutral-stroke-active-delta").withDefault(6),Zr=zn("neutral-stroke-focus-delta").withDefault(8),Jr=zn("neutral-stroke-control-rest-delta").withDefault(3),ta=zn("neutral-stroke-control-hover-delta").withDefault(5),ea=zn("neutral-stroke-control-active-delta").withDefault(5),ia=zn("neutral-stroke-control-focus-delta").withDefault(5),oa=zn("neutral-stroke-divider-rest-delta").withDefault(4),sa=zn("neutral-stroke-layer-rest-delta").withDefault(3),na=zn("neutral-stroke-layer-hover-delta").withDefault(3),ra=zn("neutral-stroke-layer-active-delta").withDefault(3),aa=zn("neutral-stroke-strong-hover-delta").withDefault(0),la=zn("neutral-stroke-strong-active-delta").withDefault(0),ca=zn("neutral-stroke-strong-focus-delta").withDefault(0),ha=An("neutral-base-color").withDefault($n),da=zn("neutral-palette").withDefault(t=>bn.from(ha.getValueFor(t))),ua=An("accent-base-color").withDefault(kn),pa=zn("accent-palette").withDefault(t=>bn.from(ua.getValueFor(t))),ga=zn("neutral-layer-card-container-recipe").withDefault({evaluate:t=>Ln(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),fa=An("neutral-layer-card-container").withDefault(t=>ga.getValueFor(t).evaluate(t)),ma=zn("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+i)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),ba=An("neutral-layer-floating").withDefault(t=>ma.getValueFor(t).evaluate(t)),va=zn("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(On(t,e))}(da.getValueFor(t),ur.getValueFor(t))}),ya=An("neutral-layer-1").withDefault(t=>va.getValueFor(t).evaluate(t)),xa=zn("neutral-layer-2-recipe").withDefault({evaluate:t=>Ln(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),$a=An("neutral-layer-2").withDefault(t=>xa.getValueFor(t).evaluate(t)),wa=zn("neutral-layer-3-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+-1*i*2)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),ka=An("neutral-layer-3").withDefault(t=>wa.getValueFor(t).evaluate(t)),Ca=zn("neutral-layer-4-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+-1*i*3)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),Fa=An("neutral-layer-4").withDefault(t=>Ca.getValueFor(t).evaluate(t)),Ia=An("fill-color").withDefault(t=>ya.getValueFor(t));var Ta;!function(t){t[t.normal=4.5]="normal",t[t.large=3]="large"}(Ta||(Ta={}));const Da=zn("accent-fill-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c,h,d,u,p){return gn(e)?Vn(t,e,l,c,h,d,u,p):Vn(t,e,i,o,s,n,r,a)}(pa.getValueFor(t),e||Ia.getValueFor(t),5,pr.getValueFor(t),gr.getValueFor(t),fr.getValueFor(t),mr.getValueFor(t),void 0,8,pr.getValueFor(t),gr.getValueFor(t),fr.getValueFor(t),mr.getValueFor(t),void 0)}),Va=An("accent-fill-rest").withDefault(t=>Da.getValueFor(t).evaluate(t).rest),Sa=An("accent-fill-hover").withDefault(t=>Da.getValueFor(t).evaluate(t).hover),Ra=An("accent-fill-active").withDefault(t=>Da.getValueFor(t).evaluate(t).active),Ea=An("accent-fill-focus").withDefault(t=>Da.getValueFor(t).evaluate(t).focus),Oa=zn("foreground-on-accent-recipe").withDefault({evaluate:t=>Cn(Va.getValueFor(t),Sa.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t),Ta.normal)}),La=An("foreground-on-accent-rest").withDefault(t=>Oa.getValueFor(t).evaluate(t).rest),Aa=An("foreground-on-accent-hover").withDefault(t=>Oa.getValueFor(t).evaluate(t).hover),za=An("foreground-on-accent-active").withDefault(t=>Oa.getValueFor(t).evaluate(t).active),Ha=An("foreground-on-accent-focus").withDefault(t=>Oa.getValueFor(t).evaluate(t).focus),Pa=zn("accent-foreground-recipe").withDefault({evaluate:(t,e)=>Vn(pa.getValueFor(t),e||Ia.getValueFor(t),9.5,br.getValueFor(t),vr.getValueFor(t),yr.getValueFor(t),xr.getValueFor(t))}),Ma=An("accent-foreground-rest").withDefault(t=>Pa.getValueFor(t).evaluate(t).rest),Ba=An("accent-foreground-hover").withDefault(t=>Pa.getValueFor(t).evaluate(t).hover),Na=An("accent-foreground-active").withDefault(t=>Pa.getValueFor(t).evaluate(t).active),ja=An("accent-foreground-focus").withDefault(t=>Pa.getValueFor(t).evaluate(t).focus),Ua=zn("accent-stroke-control-recipe").withDefault({evaluate:(t,e)=>Dn(da.getValueFor(t),e||Ia.getValueFor(t),-3,-3,-3,-3,10,1,void 0,!0)}),qa=An("accent-stroke-control-rest").withDefault(t=>Ua.getValueFor(t).evaluate(t,Va.getValueFor(t)).rest),_a=An("accent-stroke-control-hover").withDefault(t=>Ua.getValueFor(t).evaluate(t,Sa.getValueFor(t)).hover),Ga=An("accent-stroke-control-active").withDefault(t=>Ua.getValueFor(t).evaluate(t,Ra.getValueFor(t)).active),Wa=An("accent-stroke-control-focus").withDefault(t=>Ua.getValueFor(t).evaluate(t,Ea.getValueFor(t)).focus),Ka=zn("neutral-fill-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t),kr.getValueFor(t),Cr.getValueFor(t),void 0,2,3,1,2,void 0)}),Xa=An("neutral-fill-rest").withDefault(t=>Ka.getValueFor(t).evaluate(t).rest),Ya=An("neutral-fill-hover").withDefault(t=>Ka.getValueFor(t).evaluate(t).hover),Qa=An("neutral-fill-active").withDefault(t=>Ka.getValueFor(t).evaluate(t).active),Za=An("neutral-fill-focus").withDefault(t=>Ka.getValueFor(t).evaluate(t).focus),Ja=zn("neutral-fill-input-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),Fr.getValueFor(t),Ir.getValueFor(t),Tr.getValueFor(t),Dr.getValueFor(t),void 0,2,3,1,0,void 0)}),tl=An("neutral-fill-input-rest").withDefault(t=>Ja.getValueFor(t).evaluate(t).rest),el=An("neutral-fill-input-hover").withDefault(t=>Ja.getValueFor(t).evaluate(t).hover),il=An("neutral-fill-input-active").withDefault(t=>Ja.getValueFor(t).evaluate(t).active),ol=An("neutral-fill-input-focus").withDefault(t=>Ja.getValueFor(t).evaluate(t).focus),sl=zn("neutral-fill-input-alt-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),Vr.getValueFor(t),Sr.getValueFor(t),Rr.getValueFor(t),Er.getValueFor(t),1,Vr.getValueFor(t),Vr.getValueFor(t)-Sr.getValueFor(t),Vr.getValueFor(t)-Rr.getValueFor(t),Er.getValueFor(t),1)}),nl=An("neutral-fill-input-alt-rest").withDefault(t=>sl.getValueFor(t).evaluate(t).rest),rl=An("neutral-fill-input-alt-hover").withDefault(t=>sl.getValueFor(t).evaluate(t).hover),al=An("neutral-fill-input-alt-active").withDefault(t=>sl.getValueFor(t).evaluate(t).active),ll=An("neutral-fill-input-alt-focus").withDefault(t=>sl.getValueFor(t).evaluate(t).focus),cl=zn("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Or.getValueFor(t),Lr.getValueFor(t),Ar.getValueFor(t),Or.getValueFor(t),1)}),hl=An("neutral-fill-layer-rest").withDefault(t=>cl.getValueFor(t).evaluate(t).rest),dl=An("neutral-fill-layer-hover").withDefault(t=>cl.getValueFor(t).evaluate(t).hover),ul=An("neutral-fill-layer-active").withDefault(t=>cl.getValueFor(t).evaluate(t).active),pl=zn("neutral-fill-layer-alt-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t))}),gl=An("neutral-fill-layer-alt-rest").withDefault(t=>pl.getValueFor(t).evaluate(t).rest),fl=zn("neutral-fill-secondary-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Hr.getValueFor(t),Pr.getValueFor(t),Mr.getValueFor(t),Br.getValueFor(t))}),ml=An("neutral-fill-secondary-rest").withDefault(t=>fl.getValueFor(t).evaluate(t).rest),bl=An("neutral-fill-secondary-hover").withDefault(t=>fl.getValueFor(t).evaluate(t).hover),vl=An("neutral-fill-secondary-active").withDefault(t=>fl.getValueFor(t).evaluate(t).active),yl=An("neutral-fill-secondary-focus").withDefault(t=>fl.getValueFor(t).evaluate(t).focus),xl=zn("neutral-fill-stealth-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),qr.getValueFor(t))}),$l=An("neutral-fill-stealth-rest").withDefault(t=>xl.getValueFor(t).evaluate(t).rest),wl=An("neutral-fill-stealth-hover").withDefault(t=>xl.getValueFor(t).evaluate(t).hover),kl=An("neutral-fill-stealth-active").withDefault(t=>xl.getValueFor(t).evaluate(t).active),Cl=An("neutral-fill-stealth-focus").withDefault(t=>xl.getValueFor(t).evaluate(t).focus),Fl=zn("neutral-fill-strong-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),4.5,_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t),Kr.getValueFor(t))}),Il=An("neutral-fill-strong-rest").withDefault(t=>Fl.getValueFor(t).evaluate(t).rest),Tl=An("neutral-fill-strong-hover").withDefault(t=>Fl.getValueFor(t).evaluate(t).hover),Dl=An("neutral-fill-strong-active").withDefault(t=>Fl.getValueFor(t).evaluate(t).active),Vl=An("neutral-fill-strong-focus").withDefault(t=>Fl.getValueFor(t).evaluate(t).focus),Sl=zn("neutral-foreground-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),16,0,-19,-30,0)}),Rl=An("neutral-foreground-rest").withDefault(t=>Sl.getValueFor(t).evaluate(t).rest),El=An("neutral-foreground-hover").withDefault(t=>Sl.getValueFor(t).evaluate(t).hover),Ol=An("neutral-foreground-active").withDefault(t=>Sl.getValueFor(t).evaluate(t).active),Ll=An("neutral-foreground-focus").withDefault(t=>Sl.getValueFor(t).evaluate(t).focus),Al=zn("neutral-foreground-hint-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.colorContrast(e,i)}(da.getValueFor(t),e||Ia.getValueFor(t),4.5)}),zl=An("neutral-foreground-hint").withDefault(t=>Al.getValueFor(t).evaluate(t)),Hl=zn("neutral-stroke-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Xr.getValueFor(t),Yr.getValueFor(t),Qr.getValueFor(t),Zr.getValueFor(t))}),Pl=An("neutral-stroke-rest").withDefault(t=>Hl.getValueFor(t).evaluate(t).rest),Ml=An("neutral-stroke-hover").withDefault(t=>Hl.getValueFor(t).evaluate(t).hover),Bl=An("neutral-stroke-active").withDefault(t=>Hl.getValueFor(t).evaluate(t).active),Nl=An("neutral-stroke-focus").withDefault(t=>Hl.getValueFor(t).evaluate(t).focus),jl=zn("neutral-stroke-control-recipe").withDefault({evaluate:(t,e)=>Dn(da.getValueFor(t),e||Ia.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),ia.getValueFor(t),5)}),Ul=An("neutral-stroke-control-rest").withDefault(t=>jl.getValueFor(t).evaluate(t).rest),ql=An("neutral-stroke-control-hover").withDefault(t=>jl.getValueFor(t).evaluate(t).hover),_l=An("neutral-stroke-control-active").withDefault(t=>jl.getValueFor(t).evaluate(t).active),Gl=An("neutral-stroke-control-focus").withDefault(t=>jl.getValueFor(t).evaluate(t).focus),Wl=zn("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+fn(e)*i)}(da.getValueFor(t),e||Ia.getValueFor(t),oa.getValueFor(t))}),Kl=An("neutral-stroke-divider-rest").withDefault(t=>Wl.getValueFor(t).evaluate(t)),Xl=zn("neutral-stroke-input-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a){const l=t.closestIndexOf(e),c=fn(e),h=l+c*i,d=h+c*(o-i),u=h+c*(s-i),p=h+c*(n-i),g=`calc(100% - ${a})`;function f(e,i){const o=t.get(e);if(i){const i=t.get(e+c*r),s=`linear-gradient(${o.toColorString()} ${g}, ${i.toColorString()} ${g}, ${i.toColorString()})`;return Fn.fromObject(o,s)}return o}return{rest:f(h,!0),hover:f(d,!0),active:f(u,!1),focus:f(p,!0)}}(da.getValueFor(t),e||Ia.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),ia.getValueFor(t),20,_n.getValueFor(t)+"px")}),Yl=An("neutral-stroke-input-rest").withDefault(t=>Xl.getValueFor(t).evaluate(t).rest),Ql=An("neutral-stroke-input-hover").withDefault(t=>Xl.getValueFor(t).evaluate(t).hover),Zl=An("neutral-stroke-input-active").withDefault(t=>Xl.getValueFor(t).evaluate(t).active),Jl=An("neutral-stroke-input-focus").withDefault(t=>Xl.getValueFor(t).evaluate(t).focus),tc=zn("neutral-stroke-layer-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),ra.getValueFor(t),sa.getValueFor(t))}),ec=An("neutral-stroke-layer-rest").withDefault(t=>tc.getValueFor(t).evaluate(t).rest),ic=An("neutral-stroke-layer-hover").withDefault(t=>tc.getValueFor(t).evaluate(t).hover),oc=An("neutral-stroke-layer-active").withDefault(t=>tc.getValueFor(t).evaluate(t).active),sc=zn("neutral-stroke-strong-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),5.5,0,aa.getValueFor(t),la.getValueFor(t),ca.getValueFor(t))}),nc=An("neutral-stroke-strong-rest").withDefault(t=>sc.getValueFor(t).evaluate(t).rest),rc=An("neutral-stroke-strong-hover").withDefault(t=>sc.getValueFor(t).evaluate(t).hover),ac=An("neutral-stroke-strong-active").withDefault(t=>sc.getValueFor(t).evaluate(t).active),lc=An("neutral-stroke-strong-focus").withDefault(t=>sc.getValueFor(t).evaluate(t).focus),cc=zn("focus-stroke-outer-recipe").withDefault({evaluate:t=>(da.getValueFor(t),gn(Ia.getValueFor(t))?yn:xn)}),hc=An("focus-stroke-outer").withDefault(t=>cc.getValueFor(t).evaluate(t)),dc=zn("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return pa.getValueFor(t),e=Ia.getValueFor(t),hc.getValueFor(t),gn(e)?xn:yn;var e}}),uc=An("focus-stroke-inner").withDefault(t=>dc.getValueFor(t).evaluate(t)),pc=zn("foreground-on-accent-large-recipe").withDefault({evaluate:t=>Cn(Va.getValueFor(t),Sa.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t),Ta.large)}),gc=An("foreground-on-accent-rest-large").withDefault(t=>pc.getValueFor(t).evaluate(t).rest),fc=An("foreground-on-accent-hover-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Sa.getValueFor(t)).hover),mc=An("foreground-on-accent-active-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Ra.getValueFor(t)).active),bc=An("foreground-on-accent-focus-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Ea.getValueFor(t)).focus),vc=An("neutral-fill-inverse-rest-delta").withDefault(0),yc=An("neutral-fill-inverse-hover-delta").withDefault(-3),xc=An("neutral-fill-inverse-active-delta").withDefault(7),$c=An("neutral-fill-inverse-focus-delta").withDefault(0);const wc=zn("neutral-fill-inverse-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=fn(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(da.getValueFor(t),e||Ia.getValueFor(t),vc.getValueFor(t),yc.getValueFor(t),xc.getValueFor(t),$c.getValueFor(t))}),kc=An("neutral-fill-inverse-rest").withDefault(t=>wc.getValueFor(t).evaluate(t).rest),Cc=An("neutral-fill-inverse-hover").withDefault(t=>wc.getValueFor(t).evaluate(t).hover),Fc=An("neutral-fill-inverse-active").withDefault(t=>wc.getValueFor(t).evaluate(t).active),Ic=An("neutral-fill-inverse-focus").withDefault(t=>wc.getValueFor(t).evaluate(t).focus),Tc=Un,Dc=qn,Vc=_n,Sc=Gn,Rc=vc,Ec=yc,Oc=xc,Lc=$c,Ac=Or,zc=_r,Hc=Gr,Pc=Wr,Mc=Kr,Bc=oa,Nc=ya,jc=$a,Uc=ka,qc=Fa,_c=La,Gc=gc,Wc=Kl,Kc=hl,Xc=kc,Yc=Cc,Qc=Fc,Zc=Ic,Jc=Il,th=Tl,eh=Dl,ih=Vl,oh=hc,sh=uc,nh=Pl,rh=Ml,ah=Bl,lh=Nl,ch=(t,e)=>Dt`
22
22
  ${io("flex")} :host{box-sizing:border-box;flex-direction:column;font-family:${Wn};font-size:${Kn};line-height:${Xn};color:${Rl};gap:calc(${jn} * 1px)}`,hh=St`(${Mn} + ${Nn}) * ${jn}`,dh=wo.create("neutral-fill-stealth-rest-on-neutral-fill-layer-rest").withDefault(t=>{const e=cl.getValueFor(t);return xl.getValueFor(t).evaluate(t,e.evaluate(t).rest).rest}),uh=wo.create("neutral-fill-stealth-hover-on-neutral-fill-layer-rest").withDefault(t=>{const e=cl.getValueFor(t);return xl.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),ph=wo.create("neutral-fill-stealth-active-on-neutral-fill-layer-rest").withDefault(t=>{const e=cl.getValueFor(t);return xl.getValueFor(t).evaluate(t,e.evaluate(t).rest).active}),gh=(t,e)=>Dt`
23
23
  ${io("flex")} :host{box-sizing:border-box;font-family:${Wn};flex-direction:column;font-size:${Kn};line-height:${Xn};background:${hl};color:${Rl};border:calc(${_n} * 1px) solid ${ec};border-radius:calc(${qn} * 1px)}.region{display:none;padding:calc(${jn} * 2 * 1px);background:${gl}}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto auto;align-items:center}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;margin:calc(${jn} * 3 * 1px) 0;padding:0 calc(${jn} * 2 * 1px);text-align:left;color:inherit;cursor:pointer;font-family:inherit}.button::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer}.button:${oo}::before{outline:none;border:calc(${_n} * 1px) solid ${hc};border-radius:calc(${qn} * 1px);box-shadow:0 0 0 calc((${Gn} - ${_n}) * 1px) ${hc}}:host(.expanded) .button:${oo}::before{border-bottom-left-radius:0;border-bottom-right-radius:0}:host(.expanded) .region{display:block;border-top:calc(${_n} * 1px) solid ${ec};border-bottom-left-radius:calc((${qn} - ${_n}) * 1px);border-bottom-right-radius:calc((${qn} - ${_n}) * 1px)}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;pointer-events:none;background:${dh};border-radius:calc(${Un} * 1px);fill:currentcolor;width:calc(${hh} * 1px);height:calc(${hh} * 1px);margin:calc(${jn} * 2 * 1px)}.heading:hover .icon{background:${uh}}.heading:active .icon{background:${ph}}slot[name='collapsed-icon']{display:flex}:host(.expanded) slot[name='collapsed-icon']{display:none}slot[name='expanded-icon']{display:none}:host(.expanded) slot[name='expanded-icon']{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${jn} * 2 * 1px);justify-content:center;grid-column:1}.end{display:flex;align-items:center;justify-content:center;grid-column:3}.icon,.start,.end{position:relative}`.withBehaviors(to(Dt`
24
24
  .button:${oo}::before{border-color:${oi.Highlight};box-shadow:0 0 0 calc((${Gn} - ${_n}) * 1px) ${oi.Highlight}}.icon{fill:${oi.ButtonText}}`)),fh=Ge.compose({baseName:"accordion-item",template:(t,e)=>nt`<template class="${t=>t.expanded?"expanded":""}"><div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Bt("expandbutton")} aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading"><slot name="heading" part="heading"></slot></span></button>${ie(0,e)} ${ee(0,e)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon" part="expanded-icon">${e.expandedIcon||""}</slot><slot name="collapsed-icon" part="collapsed-icon">${e.collapsedIcon||""}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div></template>`,styles:gh,collapsedIcon:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n ',expandedIcon:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 7.35c.2.2.5.2.7 0L6 4.21l3.15 3.14a.5.5 0 10.7-.7l-3.5-3.5a.5.5 0 00-.7 0l-3.5 3.5a.5.5 0 000 .7z"/>\n </svg>\n '}),mh=gh,bh=ni.compose({baseName:"accordion",template:(t,e)=>nt`<template><slot ${Qt({property:"accordionItems",filter:Kt()})}></slot><slot name="item" part="item" ${Qt("accordionItems")}></slot></template>`,styles:ch}),vh=ch;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "description": "A library of Fluent Web Components",
4
4
  "sideEffects": false,
5
- "version": "2.2.2",
5
+ "version": "2.2.3",
6
6
  "author": {
7
7
  "name": "Microsoft",
8
8
  "url": "https://discord.gg/FcSNfg4"